@xsolla/xui-badge-web 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,13 @@
1
+ import React from 'react';
2
+
3
+ interface BadgeProps {
4
+ children?: React.ReactNode;
5
+ icon?: React.ReactNode;
6
+ size?: "xl" | "l" | "m" | "s" | "xs";
7
+ showStroke?: boolean;
8
+ "aria-label"?: string;
9
+ "aria-hidden"?: boolean;
10
+ }
11
+ declare const Badge: React.FC<BadgeProps>;
12
+
13
+ export { Badge, type BadgeProps };
package/index.d.ts ADDED
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+
3
+ interface BadgeProps {
4
+ children?: React.ReactNode;
5
+ icon?: React.ReactNode;
6
+ size?: "xl" | "l" | "m" | "s" | "xs";
7
+ showStroke?: boolean;
8
+ "aria-label"?: string;
9
+ "aria-hidden"?: boolean;
10
+ }
11
+ declare const Badge: React.FC<BadgeProps>;
12
+
13
+ export { Badge, type BadgeProps };
package/index.js ADDED
@@ -0,0 +1,546 @@
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
+ Badge: () => Badge
34
+ });
35
+ module.exports = __toCommonJS(index_exports);
36
+
37
+ // ../primitives-web/src/Box.tsx
38
+ var import_react = __toESM(require("react"));
39
+ var import_styled_components = __toESM(require("styled-components"));
40
+ var import_jsx_runtime = require("react/jsx-runtime");
41
+ var StyledBox = import_styled_components.default.div`
42
+ display: flex;
43
+ box-sizing: border-box;
44
+ background-color: ${(props) => props.backgroundColor || "transparent"};
45
+ border-color: ${(props) => props.borderColor || "transparent"};
46
+ border-width: ${(props) => typeof props.borderWidth === "number" ? `${props.borderWidth}px` : props.borderWidth || 0};
47
+
48
+ ${(props) => props.borderBottomWidth !== void 0 && `
49
+ border-bottom-width: ${typeof props.borderBottomWidth === "number" ? `${props.borderBottomWidth}px` : props.borderBottomWidth};
50
+ border-bottom-color: ${props.borderBottomColor || props.borderColor || "transparent"};
51
+ border-bottom-style: solid;
52
+ `}
53
+ ${(props) => props.borderTopWidth !== void 0 && `
54
+ border-top-width: ${typeof props.borderTopWidth === "number" ? `${props.borderTopWidth}px` : props.borderTopWidth};
55
+ border-top-color: ${props.borderTopColor || props.borderColor || "transparent"};
56
+ border-top-style: solid;
57
+ `}
58
+ ${(props) => props.borderLeftWidth !== void 0 && `
59
+ border-left-width: ${typeof props.borderLeftWidth === "number" ? `${props.borderLeftWidth}px` : props.borderLeftWidth};
60
+ border-left-color: ${props.borderLeftColor || props.borderColor || "transparent"};
61
+ border-left-style: solid;
62
+ `}
63
+ ${(props) => props.borderRightWidth !== void 0 && `
64
+ border-right-width: ${typeof props.borderRightWidth === "number" ? `${props.borderRightWidth}px` : props.borderRightWidth};
65
+ border-right-color: ${props.borderRightColor || props.borderColor || "transparent"};
66
+ border-right-style: solid;
67
+ `}
68
+
69
+ border-style: ${(props) => props.borderStyle || (props.borderWidth || props.borderBottomWidth || props.borderTopWidth || props.borderLeftWidth || props.borderRightWidth ? "solid" : "none")};
70
+ border-radius: ${(props) => typeof props.borderRadius === "number" ? `${props.borderRadius}px` : props.borderRadius || 0};
71
+ height: ${(props) => typeof props.height === "number" ? `${props.height}px` : props.height || "auto"};
72
+ width: ${(props) => typeof props.width === "number" ? `${props.width}px` : props.width || "auto"};
73
+ min-width: ${(props) => typeof props.minWidth === "number" ? `${props.minWidth}px` : props.minWidth || "auto"};
74
+ min-height: ${(props) => typeof props.minHeight === "number" ? `${props.minHeight}px` : props.minHeight || "auto"};
75
+
76
+ padding: ${(props) => typeof props.padding === "number" ? `${props.padding}px` : props.padding || 0};
77
+ ${(props) => props.paddingHorizontal && `
78
+ padding-left: ${typeof props.paddingHorizontal === "number" ? `${props.paddingHorizontal}px` : props.paddingHorizontal};
79
+ padding-right: ${typeof props.paddingHorizontal === "number" ? `${props.paddingHorizontal}px` : props.paddingHorizontal};
80
+ `}
81
+ ${(props) => props.paddingVertical && `
82
+ padding-top: ${typeof props.paddingVertical === "number" ? `${props.paddingVertical}px` : props.paddingVertical};
83
+ padding-bottom: ${typeof props.paddingVertical === "number" ? `${props.paddingVertical}px` : props.paddingVertical};
84
+ `}
85
+ ${(props) => props.paddingTop !== void 0 && `padding-top: ${typeof props.paddingTop === "number" ? `${props.paddingTop}px` : props.paddingTop};`}
86
+ ${(props) => props.paddingBottom !== void 0 && `padding-bottom: ${typeof props.paddingBottom === "number" ? `${props.paddingBottom}px` : props.paddingBottom};`}
87
+ ${(props) => props.paddingLeft !== void 0 && `padding-left: ${typeof props.paddingLeft === "number" ? `${props.paddingLeft}px` : props.paddingLeft};`}
88
+ ${(props) => props.paddingRight !== void 0 && `padding-right: ${typeof props.paddingRight === "number" ? `${props.paddingRight}px` : props.paddingRight};`}
89
+
90
+ margin: ${(props) => typeof props.margin === "number" ? `${props.margin}px` : props.margin || 0};
91
+ ${(props) => props.marginTop !== void 0 && `margin-top: ${typeof props.marginTop === "number" ? `${props.marginTop}px` : props.marginTop};`}
92
+ ${(props) => props.marginBottom !== void 0 && `margin-bottom: ${typeof props.marginBottom === "number" ? `${props.marginBottom}px` : props.marginBottom};`}
93
+ ${(props) => props.marginLeft !== void 0 && `margin-left: ${typeof props.marginLeft === "number" ? `${props.marginLeft}px` : props.marginLeft};`}
94
+ ${(props) => props.marginRight !== void 0 && `margin-right: ${typeof props.marginRight === "number" ? `${props.marginRight}px` : props.marginRight};`}
95
+
96
+ flex-direction: ${(props) => props.flexDirection || "column"};
97
+ flex-wrap: ${(props) => props.flexWrap || "nowrap"};
98
+ align-items: ${(props) => props.alignItems || "stretch"};
99
+ justify-content: ${(props) => props.justifyContent || "flex-start"};
100
+ cursor: ${(props) => props.cursor ? props.cursor : props.onClick || props.onPress ? "pointer" : "inherit"};
101
+ position: ${(props) => props.position || "static"};
102
+ top: ${(props) => typeof props.top === "number" ? `${props.top}px` : props.top};
103
+ bottom: ${(props) => typeof props.bottom === "number" ? `${props.bottom}px` : props.bottom};
104
+ left: ${(props) => typeof props.left === "number" ? `${props.left}px` : props.left};
105
+ right: ${(props) => typeof props.right === "number" ? `${props.right}px` : props.right};
106
+ flex: ${(props) => props.flex};
107
+ flex-shrink: ${(props) => props.flexShrink ?? 1};
108
+ gap: ${(props) => typeof props.gap === "number" ? `${props.gap}px` : props.gap || 0};
109
+ align-self: ${(props) => props.alignSelf || "auto"};
110
+ overflow: ${(props) => props.overflow || "visible"};
111
+ overflow-x: ${(props) => props.overflowX || "visible"};
112
+ overflow-y: ${(props) => props.overflowY || "visible"};
113
+ z-index: ${(props) => props.zIndex};
114
+ opacity: ${(props) => props.disabled ? 0.5 : 1};
115
+ pointer-events: ${(props) => props.disabled ? "none" : "auto"};
116
+
117
+ &:hover {
118
+ ${(props) => props.hoverStyle?.backgroundColor && `background-color: ${props.hoverStyle.backgroundColor};`}
119
+ ${(props) => props.hoverStyle?.borderColor && `border-color: ${props.hoverStyle.borderColor};`}
120
+ }
121
+
122
+ &:active {
123
+ ${(props) => props.pressStyle?.backgroundColor && `background-color: ${props.pressStyle.backgroundColor};`}
124
+ }
125
+ `;
126
+ var Box = import_react.default.forwardRef(
127
+ ({
128
+ children,
129
+ onPress,
130
+ onKeyDown,
131
+ onKeyUp,
132
+ role,
133
+ "aria-label": ariaLabel,
134
+ "aria-labelledby": ariaLabelledBy,
135
+ "aria-current": ariaCurrent,
136
+ "aria-disabled": ariaDisabled,
137
+ "aria-live": ariaLive,
138
+ "aria-busy": ariaBusy,
139
+ "aria-describedby": ariaDescribedBy,
140
+ "aria-expanded": ariaExpanded,
141
+ "aria-haspopup": ariaHasPopup,
142
+ "aria-pressed": ariaPressed,
143
+ "aria-controls": ariaControls,
144
+ tabIndex,
145
+ as,
146
+ src,
147
+ alt,
148
+ type,
149
+ disabled,
150
+ id,
151
+ ...props
152
+ }, ref) => {
153
+ if (as === "img" && src) {
154
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
155
+ "img",
156
+ {
157
+ src,
158
+ alt: alt || "",
159
+ style: {
160
+ display: "block",
161
+ objectFit: "cover",
162
+ width: typeof props.width === "number" ? `${props.width}px` : props.width,
163
+ height: typeof props.height === "number" ? `${props.height}px` : props.height,
164
+ borderRadius: typeof props.borderRadius === "number" ? `${props.borderRadius}px` : props.borderRadius,
165
+ position: props.position,
166
+ top: typeof props.top === "number" ? `${props.top}px` : props.top,
167
+ left: typeof props.left === "number" ? `${props.left}px` : props.left,
168
+ right: typeof props.right === "number" ? `${props.right}px` : props.right,
169
+ bottom: typeof props.bottom === "number" ? `${props.bottom}px` : props.bottom
170
+ }
171
+ }
172
+ );
173
+ }
174
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
175
+ StyledBox,
176
+ {
177
+ ref,
178
+ as,
179
+ id,
180
+ type: as === "button" ? type || "button" : void 0,
181
+ disabled: as === "button" ? disabled : void 0,
182
+ onClick: onPress,
183
+ onKeyDown,
184
+ onKeyUp,
185
+ role,
186
+ "aria-label": ariaLabel,
187
+ "aria-labelledby": ariaLabelledBy,
188
+ "aria-current": ariaCurrent,
189
+ "aria-disabled": ariaDisabled,
190
+ "aria-busy": ariaBusy,
191
+ "aria-describedby": ariaDescribedBy,
192
+ "aria-expanded": ariaExpanded,
193
+ "aria-haspopup": ariaHasPopup,
194
+ "aria-pressed": ariaPressed,
195
+ "aria-controls": ariaControls,
196
+ "aria-live": ariaLive,
197
+ tabIndex: tabIndex !== void 0 ? tabIndex : void 0,
198
+ ...props,
199
+ children
200
+ }
201
+ );
202
+ }
203
+ );
204
+ Box.displayName = "Box";
205
+
206
+ // ../primitives-web/src/Text.tsx
207
+ var import_styled_components2 = __toESM(require("styled-components"));
208
+ var import_jsx_runtime2 = require("react/jsx-runtime");
209
+ var StyledText = import_styled_components2.default.span`
210
+ color: ${(props) => props.color || "inherit"};
211
+ font-size: ${(props) => typeof props.fontSize === "number" ? `${props.fontSize}px` : props.fontSize || "inherit"};
212
+ font-weight: ${(props) => props.fontWeight || "normal"};
213
+ font-family: ${(props) => props.fontFamily || '"Pilat Wide Bold", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important'};
214
+ line-height: ${(props) => typeof props.lineHeight === "number" ? `${props.lineHeight}px` : props.lineHeight || "inherit"};
215
+ white-space: ${(props) => props.whiteSpace || "normal"};
216
+ text-align: ${(props) => props.textAlign || "inherit"};
217
+ text-decoration: ${(props) => props.textDecoration || "none"};
218
+ `;
219
+ var Text = ({
220
+ style,
221
+ className,
222
+ id,
223
+ role,
224
+ ...props
225
+ }) => {
226
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
227
+ StyledText,
228
+ {
229
+ ...props,
230
+ style,
231
+ className,
232
+ id,
233
+ role
234
+ }
235
+ );
236
+ };
237
+
238
+ // ../primitives-web/src/Spinner.tsx
239
+ var import_styled_components3 = __toESM(require("styled-components"));
240
+ var import_jsx_runtime3 = require("react/jsx-runtime");
241
+ var rotate = import_styled_components3.keyframes`
242
+ from {
243
+ transform: rotate(0deg);
244
+ }
245
+ to {
246
+ transform: rotate(360deg);
247
+ }
248
+ `;
249
+ var StyledSpinner = import_styled_components3.default.div`
250
+ width: ${(props) => typeof props.size === "number" ? `${props.size}px` : props.size || "24px"};
251
+ height: ${(props) => typeof props.size === "number" ? `${props.size}px` : props.size || "24px"};
252
+ border: ${(props) => props.strokeWidth || 2}px solid
253
+ ${(props) => props.color || "currentColor"};
254
+ border-bottom-color: transparent;
255
+ border-radius: 50%;
256
+ display: inline-block;
257
+ box-sizing: border-box;
258
+ animation: ${rotate} 1s linear infinite;
259
+ `;
260
+ var Spinner = ({
261
+ role = "status",
262
+ "aria-label": ariaLabel,
263
+ "aria-live": ariaLive = "polite",
264
+ "aria-describedby": ariaDescribedBy,
265
+ testID,
266
+ ...props
267
+ }) => {
268
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
269
+ StyledSpinner,
270
+ {
271
+ role,
272
+ "aria-label": ariaLabel,
273
+ "aria-live": ariaLive,
274
+ "aria-describedby": ariaDescribedBy,
275
+ "data-testid": testID,
276
+ ...props
277
+ }
278
+ );
279
+ };
280
+ Spinner.displayName = "Spinner";
281
+
282
+ // ../primitives-web/src/Icon.tsx
283
+ var import_styled_components4 = __toESM(require("styled-components"));
284
+ var import_jsx_runtime4 = require("react/jsx-runtime");
285
+ var StyledIcon = import_styled_components4.default.div`
286
+ display: flex;
287
+ align-items: center;
288
+ justify-content: center;
289
+ width: ${(props) => typeof props.size === "number" ? `${props.size}px` : props.size || "24px"};
290
+ height: ${(props) => typeof props.size === "number" ? `${props.size}px` : props.size || "24px"};
291
+ color: ${(props) => props.color || "currentColor"};
292
+
293
+ svg {
294
+ width: 100%;
295
+ height: 100%;
296
+ fill: none;
297
+ stroke: currentColor;
298
+ }
299
+ `;
300
+ var Icon = ({ children, ...props }) => {
301
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(StyledIcon, { ...props, children });
302
+ };
303
+
304
+ // ../primitives-web/src/Divider.tsx
305
+ var import_styled_components5 = __toESM(require("styled-components"));
306
+ var import_jsx_runtime5 = require("react/jsx-runtime");
307
+ var StyledDivider = import_styled_components5.default.div`
308
+ background-color: ${(props) => props.dashStroke ? "transparent" : props.color || "rgba(255, 255, 255, 0.15)"};
309
+ width: ${(props) => props.vertical ? typeof props.width === "number" ? `${props.width}px` : props.width || "1px" : "100%"};
310
+ height: ${(props) => props.vertical ? "100%" : typeof props.height === "number" ? `${props.height}px` : props.height || "1px"};
311
+
312
+ ${(props) => props.dashStroke && `
313
+ border-style: dashed;
314
+ border-color: ${props.color || "rgba(255, 255, 255, 0.15)"};
315
+ border-width: 0;
316
+ ${props.vertical ? `
317
+ border-left-width: ${typeof props.width === "number" ? `${props.width}px` : props.width || "1px"};
318
+ height: 100%;
319
+ ` : `
320
+ border-top-width: ${typeof props.height === "number" ? `${props.height}px` : props.height || "1px"};
321
+ width: 100%;
322
+ `}
323
+ `}
324
+ `;
325
+
326
+ // ../primitives-web/src/Input.tsx
327
+ var import_react2 = require("react");
328
+ var import_styled_components6 = __toESM(require("styled-components"));
329
+ var import_jsx_runtime6 = require("react/jsx-runtime");
330
+ var StyledInput = import_styled_components6.default.input`
331
+ background: transparent;
332
+ border: none;
333
+ outline: none;
334
+ width: 100%;
335
+ height: 100%;
336
+ padding: 0;
337
+ margin: 0;
338
+ color: ${(props) => props.color || "inherit"};
339
+ font-size: ${(props) => typeof props.fontSize === "number" ? `${props.fontSize}px` : props.fontSize || "inherit"};
340
+ font-family: inherit;
341
+ text-align: inherit;
342
+
343
+ &::placeholder {
344
+ color: ${(props) => props.placeholderTextColor || "rgba(255, 255, 255, 0.5)"};
345
+ }
346
+
347
+ &:disabled {
348
+ cursor: not-allowed;
349
+ }
350
+ `;
351
+ var InputPrimitive = (0, import_react2.forwardRef)(
352
+ ({
353
+ value,
354
+ placeholder,
355
+ onChange,
356
+ onChangeText,
357
+ onFocus,
358
+ onBlur,
359
+ onKeyDown,
360
+ disabled,
361
+ secureTextEntry,
362
+ style,
363
+ color,
364
+ fontSize,
365
+ placeholderTextColor,
366
+ maxLength,
367
+ name,
368
+ type,
369
+ inputMode,
370
+ autoComplete,
371
+ id,
372
+ "aria-invalid": ariaInvalid,
373
+ "aria-describedby": ariaDescribedBy,
374
+ "aria-labelledby": ariaLabelledBy,
375
+ "aria-label": ariaLabel,
376
+ "aria-disabled": ariaDisabled,
377
+ "data-testid": dataTestId,
378
+ ...rest
379
+ }, ref) => {
380
+ const handleChange = (e) => {
381
+ if (onChange) {
382
+ onChange(e);
383
+ }
384
+ if (onChangeText) {
385
+ onChangeText(e.target.value);
386
+ }
387
+ };
388
+ const inputValue = value !== void 0 ? value : "";
389
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
390
+ StyledInput,
391
+ {
392
+ ref,
393
+ id,
394
+ value: inputValue,
395
+ name,
396
+ placeholder,
397
+ onChange: handleChange,
398
+ onFocus,
399
+ onBlur,
400
+ onKeyDown,
401
+ disabled,
402
+ type: secureTextEntry ? "password" : type || "text",
403
+ inputMode,
404
+ autoComplete,
405
+ style,
406
+ color,
407
+ fontSize,
408
+ placeholderTextColor,
409
+ maxLength,
410
+ "aria-invalid": ariaInvalid,
411
+ "aria-describedby": ariaDescribedBy,
412
+ "aria-labelledby": ariaLabelledBy,
413
+ "aria-label": ariaLabel,
414
+ "aria-disabled": ariaDisabled,
415
+ "data-testid": dataTestId,
416
+ ...rest
417
+ }
418
+ );
419
+ }
420
+ );
421
+ InputPrimitive.displayName = "InputPrimitive";
422
+
423
+ // ../primitives-web/src/TextArea.tsx
424
+ var import_react3 = require("react");
425
+ var import_styled_components7 = __toESM(require("styled-components"));
426
+ var import_jsx_runtime7 = require("react/jsx-runtime");
427
+ var StyledTextArea = import_styled_components7.default.textarea`
428
+ background: transparent;
429
+ border: none;
430
+ outline: none;
431
+ width: 100%;
432
+ height: 100%;
433
+ padding: 0;
434
+ margin: 0;
435
+ color: ${(props) => props.color || "inherit"};
436
+ font-size: ${(props) => typeof props.fontSize === "number" ? `${props.fontSize}px` : props.fontSize || "inherit"};
437
+ font-family: inherit;
438
+ text-align: inherit;
439
+ resize: none;
440
+
441
+ &::placeholder {
442
+ color: ${(props) => props.placeholderTextColor || "rgba(255, 255, 255, 0.5)"};
443
+ }
444
+
445
+ &:disabled {
446
+ cursor: not-allowed;
447
+ }
448
+ `;
449
+ var TextAreaPrimitive = (0, import_react3.forwardRef)(
450
+ ({
451
+ value,
452
+ placeholder,
453
+ onChangeText,
454
+ onFocus,
455
+ onBlur,
456
+ onKeyDown,
457
+ disabled,
458
+ style,
459
+ color,
460
+ fontSize,
461
+ placeholderTextColor,
462
+ maxLength,
463
+ rows
464
+ }, ref) => {
465
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
466
+ StyledTextArea,
467
+ {
468
+ ref,
469
+ value,
470
+ placeholder,
471
+ onChange: (e) => onChangeText?.(e.target.value),
472
+ onFocus,
473
+ onBlur,
474
+ onKeyDown,
475
+ disabled,
476
+ style,
477
+ color,
478
+ fontSize,
479
+ placeholderTextColor,
480
+ maxLength,
481
+ rows
482
+ }
483
+ );
484
+ }
485
+ );
486
+ TextAreaPrimitive.displayName = "TextAreaPrimitive";
487
+
488
+ // src/Badge.tsx
489
+ var import_xui_core = require("@xsolla/xui-core");
490
+ var import_jsx_runtime8 = require("react/jsx-runtime");
491
+ var Badge = ({
492
+ children,
493
+ icon,
494
+ size = "m",
495
+ showStroke = false,
496
+ "aria-label": ariaLabel,
497
+ "aria-hidden": ariaHidden
498
+ }) => {
499
+ const { theme } = (0, import_xui_core.useDesignSystem)();
500
+ const sizeConfig = theme.sizing.badge(size);
501
+ const isDotOnly = size === "s" || size === "xs";
502
+ const hasContent = !isDotOnly && (!!children || !!icon);
503
+ const showContent = hasContent && !isDotOnly;
504
+ const isShortContent = !icon && (typeof children === "string" || typeof children === "number") && String(children).trim().length === 1;
505
+ const shouldUseFixedWidth = isDotOnly || !showContent || isShortContent;
506
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
507
+ Box,
508
+ {
509
+ backgroundColor: theme.colors.background.alert.primary,
510
+ borderRadius: 999,
511
+ height: sizeConfig.size,
512
+ width: shouldUseFixedWidth ? sizeConfig.size : void 0,
513
+ paddingHorizontal: showContent && !isShortContent ? sizeConfig.padding : 0,
514
+ flexDirection: "row",
515
+ alignItems: "center",
516
+ justifyContent: "center",
517
+ borderColor: showStroke ? theme.colors.border.primary : "transparent",
518
+ borderWidth: showStroke ? 1 : 0,
519
+ position: "relative",
520
+ gap: showContent && icon && children ? 2 : 0,
521
+ role: "status",
522
+ "aria-label": ariaLabel,
523
+ "aria-hidden": ariaHidden ?? (!showContent && !ariaLabel || void 0),
524
+ children: [
525
+ showContent && icon && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon, { size: sizeConfig.iconSize, color: theme.colors.content.on.alert, children: icon }),
526
+ showContent && children && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
527
+ Text,
528
+ {
529
+ color: theme.colors.content.on.alert,
530
+ fontSize: sizeConfig.fontSize,
531
+ lineHeight: sizeConfig.lineHeight,
532
+ fontWeight: "600",
533
+ textTransform: "uppercase",
534
+ letterSpacing: 1,
535
+ children
536
+ }
537
+ )
538
+ ]
539
+ }
540
+ );
541
+ };
542
+ // Annotate the CommonJS export names for ESM import in node:
543
+ 0 && (module.exports = {
544
+ Badge
545
+ });
546
+ //# sourceMappingURL=index.js.map
package/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/index.tsx","../../../primitives-web/src/Box.tsx","../../../primitives-web/src/Text.tsx","../../../primitives-web/src/Spinner.tsx","../../../primitives-web/src/Icon.tsx","../../../primitives-web/src/Divider.tsx","../../../primitives-web/src/Input.tsx","../../../primitives-web/src/TextArea.tsx","../../src/Badge.tsx"],"sourcesContent":["export * from \"./Badge\";\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport type { BoxProps } from \"@xsolla/xui-primitives-core\";\n\nconst StyledBox = styled.div<BoxProps>`\n display: flex;\n box-sizing: border-box;\n background-color: ${(props) => props.backgroundColor || \"transparent\"};\n border-color: ${(props) => props.borderColor || \"transparent\"};\n border-width: ${(props) =>\n typeof props.borderWidth === \"number\"\n ? `${props.borderWidth}px`\n : props.borderWidth || 0};\n\n ${(props) =>\n props.borderBottomWidth !== undefined &&\n `\n border-bottom-width: ${typeof props.borderBottomWidth === \"number\" ? `${props.borderBottomWidth}px` : props.borderBottomWidth};\n border-bottom-color: ${props.borderBottomColor || props.borderColor || \"transparent\"};\n border-bottom-style: solid;\n `}\n ${(props) =>\n props.borderTopWidth !== undefined &&\n `\n border-top-width: ${typeof props.borderTopWidth === \"number\" ? `${props.borderTopWidth}px` : props.borderTopWidth};\n border-top-color: ${props.borderTopColor || props.borderColor || \"transparent\"};\n border-top-style: solid;\n `}\n ${(props) =>\n props.borderLeftWidth !== undefined &&\n `\n border-left-width: ${typeof props.borderLeftWidth === \"number\" ? `${props.borderLeftWidth}px` : props.borderLeftWidth};\n border-left-color: ${props.borderLeftColor || props.borderColor || \"transparent\"};\n border-left-style: solid;\n `}\n ${(props) =>\n props.borderRightWidth !== undefined &&\n `\n border-right-width: ${typeof props.borderRightWidth === \"number\" ? `${props.borderRightWidth}px` : props.borderRightWidth};\n border-right-color: ${props.borderRightColor || props.borderColor || \"transparent\"};\n border-right-style: solid;\n `}\n\n border-style: ${(props) =>\n props.borderStyle ||\n (props.borderWidth ||\n props.borderBottomWidth ||\n props.borderTopWidth ||\n props.borderLeftWidth ||\n props.borderRightWidth\n ? \"solid\"\n : \"none\")};\n border-radius: ${(props) =>\n typeof props.borderRadius === \"number\"\n ? `${props.borderRadius}px`\n : props.borderRadius || 0};\n height: ${(props) =>\n typeof props.height === \"number\"\n ? `${props.height}px`\n : props.height || \"auto\"};\n width: ${(props) =>\n typeof props.width === \"number\"\n ? `${props.width}px`\n : props.width || \"auto\"};\n min-width: ${(props) =>\n typeof props.minWidth === \"number\"\n ? `${props.minWidth}px`\n : props.minWidth || \"auto\"};\n min-height: ${(props) =>\n typeof props.minHeight === \"number\"\n ? `${props.minHeight}px`\n : props.minHeight || \"auto\"};\n\n padding: ${(props) =>\n typeof props.padding === \"number\"\n ? `${props.padding}px`\n : props.padding || 0};\n ${(props) =>\n props.paddingHorizontal &&\n `\n padding-left: ${typeof props.paddingHorizontal === \"number\" ? `${props.paddingHorizontal}px` : props.paddingHorizontal};\n padding-right: ${typeof props.paddingHorizontal === \"number\" ? `${props.paddingHorizontal}px` : props.paddingHorizontal};\n `}\n ${(props) =>\n props.paddingVertical &&\n `\n padding-top: ${typeof props.paddingVertical === \"number\" ? `${props.paddingVertical}px` : props.paddingVertical};\n padding-bottom: ${typeof props.paddingVertical === \"number\" ? `${props.paddingVertical}px` : props.paddingVertical};\n `}\n ${(props) =>\n props.paddingTop !== undefined &&\n `padding-top: ${typeof props.paddingTop === \"number\" ? `${props.paddingTop}px` : props.paddingTop};`}\n ${(props) =>\n props.paddingBottom !== undefined &&\n `padding-bottom: ${typeof props.paddingBottom === \"number\" ? `${props.paddingBottom}px` : props.paddingBottom};`}\n ${(props) =>\n props.paddingLeft !== undefined &&\n `padding-left: ${typeof props.paddingLeft === \"number\" ? `${props.paddingLeft}px` : props.paddingLeft};`}\n ${(props) =>\n props.paddingRight !== undefined &&\n `padding-right: ${typeof props.paddingRight === \"number\" ? `${props.paddingRight}px` : props.paddingRight};`}\n\n margin: ${(props) =>\n typeof props.margin === \"number\" ? `${props.margin}px` : props.margin || 0};\n ${(props) =>\n props.marginTop !== undefined &&\n `margin-top: ${typeof props.marginTop === \"number\" ? `${props.marginTop}px` : props.marginTop};`}\n ${(props) =>\n props.marginBottom !== undefined &&\n `margin-bottom: ${typeof props.marginBottom === \"number\" ? `${props.marginBottom}px` : props.marginBottom};`}\n ${(props) =>\n props.marginLeft !== undefined &&\n `margin-left: ${typeof props.marginLeft === \"number\" ? `${props.marginLeft}px` : props.marginLeft};`}\n ${(props) =>\n props.marginRight !== undefined &&\n `margin-right: ${typeof props.marginRight === \"number\" ? `${props.marginRight}px` : props.marginRight};`}\n\n flex-direction: ${(props) => props.flexDirection || \"column\"};\n flex-wrap: ${(props) => props.flexWrap || \"nowrap\"};\n align-items: ${(props) => props.alignItems || \"stretch\"};\n justify-content: ${(props) => props.justifyContent || \"flex-start\"};\n cursor: ${(props) =>\n props.cursor\n ? props.cursor\n : props.onClick || props.onPress\n ? \"pointer\"\n : \"inherit\"};\n position: ${(props) => props.position || \"static\"};\n top: ${(props) =>\n typeof props.top === \"number\" ? `${props.top}px` : props.top};\n bottom: ${(props) =>\n typeof props.bottom === \"number\" ? `${props.bottom}px` : props.bottom};\n left: ${(props) =>\n typeof props.left === \"number\" ? `${props.left}px` : props.left};\n right: ${(props) =>\n typeof props.right === \"number\" ? `${props.right}px` : props.right};\n flex: ${(props) => props.flex};\n flex-shrink: ${(props) => props.flexShrink ?? 1};\n gap: ${(props) =>\n typeof props.gap === \"number\" ? `${props.gap}px` : props.gap || 0};\n align-self: ${(props) => props.alignSelf || \"auto\"};\n overflow: ${(props) => props.overflow || \"visible\"};\n overflow-x: ${(props) => props.overflowX || \"visible\"};\n overflow-y: ${(props) => props.overflowY || \"visible\"};\n z-index: ${(props) => props.zIndex};\n opacity: ${(props) => (props.disabled ? 0.5 : 1)};\n pointer-events: ${(props) => (props.disabled ? \"none\" : \"auto\")};\n\n &:hover {\n ${(props) =>\n props.hoverStyle?.backgroundColor &&\n `background-color: ${props.hoverStyle.backgroundColor};`}\n ${(props) =>\n props.hoverStyle?.borderColor &&\n `border-color: ${props.hoverStyle.borderColor};`}\n }\n\n &:active {\n ${(props) =>\n props.pressStyle?.backgroundColor &&\n `background-color: ${props.pressStyle.backgroundColor};`}\n }\n`;\n\nexport const Box = React.forwardRef<\n HTMLDivElement | HTMLButtonElement,\n BoxProps\n>(\n (\n {\n children,\n onPress,\n onKeyDown,\n onKeyUp,\n role,\n \"aria-label\": ariaLabel,\n \"aria-labelledby\": ariaLabelledBy,\n \"aria-current\": ariaCurrent,\n \"aria-disabled\": ariaDisabled,\n \"aria-live\": ariaLive,\n \"aria-busy\": ariaBusy,\n \"aria-describedby\": ariaDescribedBy,\n \"aria-expanded\": ariaExpanded,\n \"aria-haspopup\": ariaHasPopup,\n \"aria-pressed\": ariaPressed,\n \"aria-controls\": ariaControls,\n tabIndex,\n as,\n src,\n alt,\n type,\n disabled,\n id,\n ...props\n },\n ref\n ) => {\n // Handle as=\"img\" for rendering images with proper border-radius\n if (as === \"img\" && src) {\n return (\n <img\n src={src}\n alt={alt || \"\"}\n style={{\n display: \"block\",\n objectFit: \"cover\",\n width:\n typeof props.width === \"number\"\n ? `${props.width}px`\n : props.width,\n height:\n typeof props.height === \"number\"\n ? `${props.height}px`\n : props.height,\n borderRadius:\n typeof props.borderRadius === \"number\"\n ? `${props.borderRadius}px`\n : props.borderRadius,\n position: props.position,\n top: typeof props.top === \"number\" ? `${props.top}px` : props.top,\n left:\n typeof props.left === \"number\" ? `${props.left}px` : props.left,\n right:\n typeof props.right === \"number\"\n ? `${props.right}px`\n : props.right,\n bottom:\n typeof props.bottom === \"number\"\n ? `${props.bottom}px`\n : props.bottom,\n }}\n />\n );\n }\n\n return (\n <StyledBox\n ref={ref}\n as={as}\n id={id}\n type={as === \"button\" ? type || \"button\" : undefined}\n disabled={as === \"button\" ? disabled : undefined}\n onClick={onPress}\n onKeyDown={onKeyDown}\n onKeyUp={onKeyUp}\n role={role}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledBy}\n aria-current={ariaCurrent}\n aria-disabled={ariaDisabled}\n aria-busy={ariaBusy}\n aria-describedby={ariaDescribedBy}\n aria-expanded={ariaExpanded}\n aria-haspopup={ariaHasPopup}\n aria-pressed={ariaPressed}\n aria-controls={ariaControls}\n aria-live={ariaLive}\n tabIndex={tabIndex !== undefined ? tabIndex : undefined}\n {...props}\n >\n {children}\n </StyledBox>\n );\n }\n);\n\nBox.displayName = \"Box\";\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport { TextProps } from \"@xsolla/xui-primitives-core\";\n\nconst StyledText = styled.span<TextProps>`\n color: ${(props) => props.color || \"inherit\"};\n font-size: ${(props) =>\n typeof props.fontSize === \"number\"\n ? `${props.fontSize}px`\n : props.fontSize || \"inherit\"};\n font-weight: ${(props) => props.fontWeight || \"normal\"};\n font-family: ${(props) =>\n props.fontFamily ||\n '\"Pilat Wide Bold\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif !important'};\n line-height: ${(props) =>\n typeof props.lineHeight === \"number\"\n ? `${props.lineHeight}px`\n : props.lineHeight || \"inherit\"};\n white-space: ${(props) => props.whiteSpace || \"normal\"};\n text-align: ${(props) => props.textAlign || \"inherit\"};\n text-decoration: ${(props) => props.textDecoration || \"none\"};\n`;\n\nexport const Text: React.FC<TextProps> = ({\n style,\n className,\n id,\n role,\n ...props\n}) => {\n return (\n <StyledText\n {...props}\n style={style}\n className={className}\n id={id}\n role={role}\n />\n );\n};\n","import React from \"react\";\nimport styled, { keyframes } from \"styled-components\";\nimport type { SpinnerProps } from \"@xsolla/xui-primitives-core\";\n\nconst rotate = keyframes`\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n`;\n\nconst StyledSpinner = styled.div<SpinnerProps>`\n width: ${(props) =>\n typeof props.size === \"number\" ? `${props.size}px` : props.size || \"24px\"};\n height: ${(props) =>\n typeof props.size === \"number\" ? `${props.size}px` : props.size || \"24px\"};\n border: ${(props) => props.strokeWidth || 2}px solid\n ${(props) => props.color || \"currentColor\"};\n border-bottom-color: transparent;\n border-radius: 50%;\n display: inline-block;\n box-sizing: border-box;\n animation: ${rotate} 1s linear infinite;\n`;\n\nexport const Spinner: React.FC<SpinnerProps> = ({\n role = \"status\",\n \"aria-label\": ariaLabel,\n \"aria-live\": ariaLive = \"polite\",\n \"aria-describedby\": ariaDescribedBy,\n testID,\n ...props\n}) => {\n return (\n <StyledSpinner\n role={role}\n aria-label={ariaLabel}\n aria-live={ariaLive}\n aria-describedby={ariaDescribedBy}\n data-testid={testID}\n {...props}\n />\n );\n};\n\nSpinner.displayName = \"Spinner\";\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport { IconProps } from \"@xsolla/xui-primitives-core\";\n\nconst StyledIcon = styled.div<IconProps>`\n display: flex;\n align-items: center;\n justify-content: center;\n width: ${(props) =>\n typeof props.size === \"number\" ? `${props.size}px` : props.size || \"24px\"};\n height: ${(props) =>\n typeof props.size === \"number\" ? `${props.size}px` : props.size || \"24px\"};\n color: ${(props) => props.color || \"currentColor\"};\n\n svg {\n width: 100%;\n height: 100%;\n fill: none;\n stroke: currentColor;\n }\n`;\n\nexport const Icon: React.FC<IconProps> = ({ children, ...props }) => {\n return <StyledIcon {...props}>{children}</StyledIcon>;\n};\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport { DividerProps } from \"@xsolla/xui-primitives-core\";\n\nconst StyledDivider = styled.div<DividerProps>`\n background-color: ${(props) =>\n props.dashStroke\n ? \"transparent\"\n : props.color || \"rgba(255, 255, 255, 0.15)\"};\n width: ${(props) =>\n props.vertical\n ? typeof props.width === \"number\"\n ? `${props.width}px`\n : props.width || \"1px\"\n : \"100%\"};\n height: ${(props) =>\n props.vertical\n ? \"100%\"\n : typeof props.height === \"number\"\n ? `${props.height}px`\n : props.height || \"1px\"};\n\n ${(props) =>\n props.dashStroke &&\n `\n border-style: dashed;\n border-color: ${props.color || \"rgba(255, 255, 255, 0.15)\"};\n border-width: 0;\n ${\n props.vertical\n ? `\n border-left-width: ${typeof props.width === \"number\" ? `${props.width}px` : props.width || \"1px\"};\n height: 100%;\n `\n : `\n border-top-width: ${typeof props.height === \"number\" ? `${props.height}px` : props.height || \"1px\"};\n width: 100%;\n `\n }\n `}\n`;\n\nexport const Divider: React.FC<DividerProps> = (props) => {\n return <StyledDivider {...props} />;\n};\n","import React, { forwardRef } from \"react\";\nimport styled from \"styled-components\";\nimport { InputPrimitiveProps } from \"@xsolla/xui-primitives-core\";\n\nconst StyledInput = styled.input<InputPrimitiveProps>`\n background: transparent;\n border: none;\n outline: none;\n width: 100%;\n height: 100%;\n padding: 0;\n margin: 0;\n color: ${(props) => props.color || \"inherit\"};\n font-size: ${(props) =>\n typeof props.fontSize === \"number\"\n ? `${props.fontSize}px`\n : props.fontSize || \"inherit\"};\n font-family: inherit;\n text-align: inherit;\n\n &::placeholder {\n color: ${(props) =>\n props.placeholderTextColor || \"rgba(255, 255, 255, 0.5)\"};\n }\n\n &:disabled {\n cursor: not-allowed;\n }\n`;\n\nexport const InputPrimitive = forwardRef<HTMLInputElement, 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 ...rest\n },\n ref\n ) => {\n const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n if (onChange) {\n onChange(e);\n }\n if (onChangeText) {\n onChangeText(e.target.value);\n }\n };\n\n // Always pass value to make it a controlled input\n const inputValue = value !== undefined ? value : \"\";\n\n return (\n <StyledInput\n ref={ref}\n id={id}\n value={inputValue}\n name={name}\n placeholder={placeholder}\n onChange={handleChange}\n onFocus={onFocus}\n onBlur={onBlur}\n onKeyDown={onKeyDown}\n disabled={disabled}\n type={secureTextEntry ? \"password\" : type || \"text\"}\n inputMode={inputMode}\n autoComplete={autoComplete}\n style={style}\n color={color}\n fontSize={fontSize}\n placeholderTextColor={placeholderTextColor}\n maxLength={maxLength}\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 {...rest}\n />\n );\n }\n);\n\nInputPrimitive.displayName = \"InputPrimitive\";\n","import React, { forwardRef } from \"react\";\nimport styled from \"styled-components\";\nimport { TextAreaPrimitiveProps } from \"@xsolla/xui-primitives-core\";\n\nconst StyledTextArea = styled.textarea<TextAreaPrimitiveProps>`\n background: transparent;\n border: none;\n outline: none;\n width: 100%;\n height: 100%;\n padding: 0;\n margin: 0;\n color: ${(props) => props.color || \"inherit\"};\n font-size: ${(props) =>\n typeof props.fontSize === \"number\"\n ? `${props.fontSize}px`\n : props.fontSize || \"inherit\"};\n font-family: inherit;\n text-align: inherit;\n resize: none;\n\n &::placeholder {\n color: ${(props) =>\n props.placeholderTextColor || \"rgba(255, 255, 255, 0.5)\"};\n }\n\n &:disabled {\n cursor: not-allowed;\n }\n`;\n\nexport const TextAreaPrimitive = forwardRef<\n HTMLTextAreaElement,\n TextAreaPrimitiveProps\n>(\n (\n {\n value,\n placeholder,\n onChangeText,\n onFocus,\n onBlur,\n onKeyDown,\n disabled,\n style,\n color,\n fontSize,\n placeholderTextColor,\n maxLength,\n rows,\n },\n ref\n ) => {\n return (\n <StyledTextArea\n ref={ref}\n value={value}\n placeholder={placeholder}\n onChange={(e) => onChangeText?.(e.target.value)}\n onFocus={onFocus}\n onBlur={onBlur}\n onKeyDown={onKeyDown}\n disabled={disabled}\n style={style}\n color={color}\n fontSize={fontSize}\n placeholderTextColor={placeholderTextColor}\n maxLength={maxLength}\n rows={rows}\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, Text, Icon } from \"@xsolla/xui-primitives\";\nimport { useDesignSystem } from \"@xsolla/xui-core\";\n\nexport interface BadgeProps {\n children?: React.ReactNode;\n icon?: React.ReactNode;\n size?: \"xl\" | \"l\" | \"m\" | \"s\" | \"xs\";\n showStroke?: boolean;\n \"aria-label\"?: string;\n \"aria-hidden\"?: boolean;\n}\n\nexport const Badge: React.FC<BadgeProps> = ({\n children,\n icon,\n size = \"m\",\n showStroke = false,\n \"aria-label\": ariaLabel,\n \"aria-hidden\": ariaHidden,\n}) => {\n const { theme } = useDesignSystem();\n const sizeConfig = theme.sizing.badge(size);\n\n // S and XS sizes are dot-only (no content support)\n const isDotOnly = size === \"s\" || size === \"xs\";\n const hasContent = !isDotOnly && (!!children || !!icon);\n const showContent = hasContent && !isDotOnly;\n\n const isShortContent =\n !icon &&\n (typeof children === \"string\" || typeof children === \"number\") &&\n String(children).trim().length === 1;\n\n // Use fixed width for dots and short content (to stay circular)\n // Use minWidth + padding for longer content (to become pill-shaped)\n const shouldUseFixedWidth = isDotOnly || !showContent || isShortContent;\n\n return (\n <Box\n backgroundColor={theme.colors.background.alert.primary}\n borderRadius={999}\n height={sizeConfig.size}\n width={shouldUseFixedWidth ? sizeConfig.size : undefined}\n paddingHorizontal={\n showContent && !isShortContent ? sizeConfig.padding : 0\n }\n flexDirection=\"row\"\n alignItems=\"center\"\n justifyContent=\"center\"\n borderColor={showStroke ? theme.colors.border.primary : \"transparent\"}\n borderWidth={showStroke ? 1 : 0}\n position=\"relative\"\n gap={showContent && icon && children ? 2 : 0}\n role=\"status\"\n aria-label={ariaLabel}\n aria-hidden={ariaHidden ?? ((!showContent && !ariaLabel) || undefined)}\n >\n {showContent && icon && (\n <Icon size={sizeConfig.iconSize} color={theme.colors.content.on.alert}>\n {icon}\n </Icon>\n )}\n {showContent && children && (\n <Text\n color={theme.colors.content.on.alert}\n fontSize={sizeConfig.fontSize}\n lineHeight={sizeConfig.lineHeight}\n fontWeight=\"600\"\n textTransform=\"uppercase\"\n letterSpacing={1}\n >\n {children}\n </Text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U,OAAO,MAAM,OAAO,QAAQ,GAAG,OAC7D,gBACH;AAAA,QAED,eAAe,YACd;AAAA,UAAC;AAAA;AAAA,YACC,OAAO,MAAM,OAAO,QAAQ,GAAG;AAAA,YAC/B,UAAU,WAAW;AAAA,YACrB,YAAY,WAAW;AAAA,YACvB,YAAW;AAAA,YACX,eAAc;AAAA,YACd,eAAe;AAAA,YAEd;AAAA;AAAA,QACH;AAAA;AAAA;AAAA,EAEJ;AAEJ;","names":["styled","React","import_styled_components","import_jsx_runtime","styled","import_styled_components","import_jsx_runtime","styled","import_styled_components","import_jsx_runtime","styled","import_styled_components","import_jsx_runtime","styled","import_react","import_styled_components","import_jsx_runtime","styled","import_react","import_styled_components","import_jsx_runtime","styled","import_jsx_runtime"]}
package/index.mjs ADDED
@@ -0,0 +1,509 @@
1
+ // ../primitives-web/src/Box.tsx
2
+ import React from "react";
3
+ import styled from "styled-components";
4
+ import { jsx } from "react/jsx-runtime";
5
+ var StyledBox = styled.div`
6
+ display: flex;
7
+ box-sizing: border-box;
8
+ background-color: ${(props) => props.backgroundColor || "transparent"};
9
+ border-color: ${(props) => props.borderColor || "transparent"};
10
+ border-width: ${(props) => typeof props.borderWidth === "number" ? `${props.borderWidth}px` : props.borderWidth || 0};
11
+
12
+ ${(props) => props.borderBottomWidth !== void 0 && `
13
+ border-bottom-width: ${typeof props.borderBottomWidth === "number" ? `${props.borderBottomWidth}px` : props.borderBottomWidth};
14
+ border-bottom-color: ${props.borderBottomColor || props.borderColor || "transparent"};
15
+ border-bottom-style: solid;
16
+ `}
17
+ ${(props) => props.borderTopWidth !== void 0 && `
18
+ border-top-width: ${typeof props.borderTopWidth === "number" ? `${props.borderTopWidth}px` : props.borderTopWidth};
19
+ border-top-color: ${props.borderTopColor || props.borderColor || "transparent"};
20
+ border-top-style: solid;
21
+ `}
22
+ ${(props) => props.borderLeftWidth !== void 0 && `
23
+ border-left-width: ${typeof props.borderLeftWidth === "number" ? `${props.borderLeftWidth}px` : props.borderLeftWidth};
24
+ border-left-color: ${props.borderLeftColor || props.borderColor || "transparent"};
25
+ border-left-style: solid;
26
+ `}
27
+ ${(props) => props.borderRightWidth !== void 0 && `
28
+ border-right-width: ${typeof props.borderRightWidth === "number" ? `${props.borderRightWidth}px` : props.borderRightWidth};
29
+ border-right-color: ${props.borderRightColor || props.borderColor || "transparent"};
30
+ border-right-style: solid;
31
+ `}
32
+
33
+ border-style: ${(props) => props.borderStyle || (props.borderWidth || props.borderBottomWidth || props.borderTopWidth || props.borderLeftWidth || props.borderRightWidth ? "solid" : "none")};
34
+ border-radius: ${(props) => typeof props.borderRadius === "number" ? `${props.borderRadius}px` : props.borderRadius || 0};
35
+ height: ${(props) => typeof props.height === "number" ? `${props.height}px` : props.height || "auto"};
36
+ width: ${(props) => typeof props.width === "number" ? `${props.width}px` : props.width || "auto"};
37
+ min-width: ${(props) => typeof props.minWidth === "number" ? `${props.minWidth}px` : props.minWidth || "auto"};
38
+ min-height: ${(props) => typeof props.minHeight === "number" ? `${props.minHeight}px` : props.minHeight || "auto"};
39
+
40
+ padding: ${(props) => typeof props.padding === "number" ? `${props.padding}px` : props.padding || 0};
41
+ ${(props) => props.paddingHorizontal && `
42
+ padding-left: ${typeof props.paddingHorizontal === "number" ? `${props.paddingHorizontal}px` : props.paddingHorizontal};
43
+ padding-right: ${typeof props.paddingHorizontal === "number" ? `${props.paddingHorizontal}px` : props.paddingHorizontal};
44
+ `}
45
+ ${(props) => props.paddingVertical && `
46
+ padding-top: ${typeof props.paddingVertical === "number" ? `${props.paddingVertical}px` : props.paddingVertical};
47
+ padding-bottom: ${typeof props.paddingVertical === "number" ? `${props.paddingVertical}px` : props.paddingVertical};
48
+ `}
49
+ ${(props) => props.paddingTop !== void 0 && `padding-top: ${typeof props.paddingTop === "number" ? `${props.paddingTop}px` : props.paddingTop};`}
50
+ ${(props) => props.paddingBottom !== void 0 && `padding-bottom: ${typeof props.paddingBottom === "number" ? `${props.paddingBottom}px` : props.paddingBottom};`}
51
+ ${(props) => props.paddingLeft !== void 0 && `padding-left: ${typeof props.paddingLeft === "number" ? `${props.paddingLeft}px` : props.paddingLeft};`}
52
+ ${(props) => props.paddingRight !== void 0 && `padding-right: ${typeof props.paddingRight === "number" ? `${props.paddingRight}px` : props.paddingRight};`}
53
+
54
+ margin: ${(props) => typeof props.margin === "number" ? `${props.margin}px` : props.margin || 0};
55
+ ${(props) => props.marginTop !== void 0 && `margin-top: ${typeof props.marginTop === "number" ? `${props.marginTop}px` : props.marginTop};`}
56
+ ${(props) => props.marginBottom !== void 0 && `margin-bottom: ${typeof props.marginBottom === "number" ? `${props.marginBottom}px` : props.marginBottom};`}
57
+ ${(props) => props.marginLeft !== void 0 && `margin-left: ${typeof props.marginLeft === "number" ? `${props.marginLeft}px` : props.marginLeft};`}
58
+ ${(props) => props.marginRight !== void 0 && `margin-right: ${typeof props.marginRight === "number" ? `${props.marginRight}px` : props.marginRight};`}
59
+
60
+ flex-direction: ${(props) => props.flexDirection || "column"};
61
+ flex-wrap: ${(props) => props.flexWrap || "nowrap"};
62
+ align-items: ${(props) => props.alignItems || "stretch"};
63
+ justify-content: ${(props) => props.justifyContent || "flex-start"};
64
+ cursor: ${(props) => props.cursor ? props.cursor : props.onClick || props.onPress ? "pointer" : "inherit"};
65
+ position: ${(props) => props.position || "static"};
66
+ top: ${(props) => typeof props.top === "number" ? `${props.top}px` : props.top};
67
+ bottom: ${(props) => typeof props.bottom === "number" ? `${props.bottom}px` : props.bottom};
68
+ left: ${(props) => typeof props.left === "number" ? `${props.left}px` : props.left};
69
+ right: ${(props) => typeof props.right === "number" ? `${props.right}px` : props.right};
70
+ flex: ${(props) => props.flex};
71
+ flex-shrink: ${(props) => props.flexShrink ?? 1};
72
+ gap: ${(props) => typeof props.gap === "number" ? `${props.gap}px` : props.gap || 0};
73
+ align-self: ${(props) => props.alignSelf || "auto"};
74
+ overflow: ${(props) => props.overflow || "visible"};
75
+ overflow-x: ${(props) => props.overflowX || "visible"};
76
+ overflow-y: ${(props) => props.overflowY || "visible"};
77
+ z-index: ${(props) => props.zIndex};
78
+ opacity: ${(props) => props.disabled ? 0.5 : 1};
79
+ pointer-events: ${(props) => props.disabled ? "none" : "auto"};
80
+
81
+ &:hover {
82
+ ${(props) => props.hoverStyle?.backgroundColor && `background-color: ${props.hoverStyle.backgroundColor};`}
83
+ ${(props) => props.hoverStyle?.borderColor && `border-color: ${props.hoverStyle.borderColor};`}
84
+ }
85
+
86
+ &:active {
87
+ ${(props) => props.pressStyle?.backgroundColor && `background-color: ${props.pressStyle.backgroundColor};`}
88
+ }
89
+ `;
90
+ var Box = React.forwardRef(
91
+ ({
92
+ children,
93
+ onPress,
94
+ onKeyDown,
95
+ onKeyUp,
96
+ role,
97
+ "aria-label": ariaLabel,
98
+ "aria-labelledby": ariaLabelledBy,
99
+ "aria-current": ariaCurrent,
100
+ "aria-disabled": ariaDisabled,
101
+ "aria-live": ariaLive,
102
+ "aria-busy": ariaBusy,
103
+ "aria-describedby": ariaDescribedBy,
104
+ "aria-expanded": ariaExpanded,
105
+ "aria-haspopup": ariaHasPopup,
106
+ "aria-pressed": ariaPressed,
107
+ "aria-controls": ariaControls,
108
+ tabIndex,
109
+ as,
110
+ src,
111
+ alt,
112
+ type,
113
+ disabled,
114
+ id,
115
+ ...props
116
+ }, ref) => {
117
+ if (as === "img" && src) {
118
+ return /* @__PURE__ */ jsx(
119
+ "img",
120
+ {
121
+ src,
122
+ alt: alt || "",
123
+ style: {
124
+ display: "block",
125
+ objectFit: "cover",
126
+ width: typeof props.width === "number" ? `${props.width}px` : props.width,
127
+ height: typeof props.height === "number" ? `${props.height}px` : props.height,
128
+ borderRadius: typeof props.borderRadius === "number" ? `${props.borderRadius}px` : props.borderRadius,
129
+ position: props.position,
130
+ top: typeof props.top === "number" ? `${props.top}px` : props.top,
131
+ left: typeof props.left === "number" ? `${props.left}px` : props.left,
132
+ right: typeof props.right === "number" ? `${props.right}px` : props.right,
133
+ bottom: typeof props.bottom === "number" ? `${props.bottom}px` : props.bottom
134
+ }
135
+ }
136
+ );
137
+ }
138
+ return /* @__PURE__ */ jsx(
139
+ StyledBox,
140
+ {
141
+ ref,
142
+ as,
143
+ id,
144
+ type: as === "button" ? type || "button" : void 0,
145
+ disabled: as === "button" ? disabled : void 0,
146
+ onClick: onPress,
147
+ onKeyDown,
148
+ onKeyUp,
149
+ role,
150
+ "aria-label": ariaLabel,
151
+ "aria-labelledby": ariaLabelledBy,
152
+ "aria-current": ariaCurrent,
153
+ "aria-disabled": ariaDisabled,
154
+ "aria-busy": ariaBusy,
155
+ "aria-describedby": ariaDescribedBy,
156
+ "aria-expanded": ariaExpanded,
157
+ "aria-haspopup": ariaHasPopup,
158
+ "aria-pressed": ariaPressed,
159
+ "aria-controls": ariaControls,
160
+ "aria-live": ariaLive,
161
+ tabIndex: tabIndex !== void 0 ? tabIndex : void 0,
162
+ ...props,
163
+ children
164
+ }
165
+ );
166
+ }
167
+ );
168
+ Box.displayName = "Box";
169
+
170
+ // ../primitives-web/src/Text.tsx
171
+ import styled2 from "styled-components";
172
+ import { jsx as jsx2 } from "react/jsx-runtime";
173
+ var StyledText = styled2.span`
174
+ color: ${(props) => props.color || "inherit"};
175
+ font-size: ${(props) => typeof props.fontSize === "number" ? `${props.fontSize}px` : props.fontSize || "inherit"};
176
+ font-weight: ${(props) => props.fontWeight || "normal"};
177
+ font-family: ${(props) => props.fontFamily || '"Pilat Wide Bold", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important'};
178
+ line-height: ${(props) => typeof props.lineHeight === "number" ? `${props.lineHeight}px` : props.lineHeight || "inherit"};
179
+ white-space: ${(props) => props.whiteSpace || "normal"};
180
+ text-align: ${(props) => props.textAlign || "inherit"};
181
+ text-decoration: ${(props) => props.textDecoration || "none"};
182
+ `;
183
+ var Text = ({
184
+ style,
185
+ className,
186
+ id,
187
+ role,
188
+ ...props
189
+ }) => {
190
+ return /* @__PURE__ */ jsx2(
191
+ StyledText,
192
+ {
193
+ ...props,
194
+ style,
195
+ className,
196
+ id,
197
+ role
198
+ }
199
+ );
200
+ };
201
+
202
+ // ../primitives-web/src/Spinner.tsx
203
+ import styled3, { keyframes } from "styled-components";
204
+ import { jsx as jsx3 } from "react/jsx-runtime";
205
+ var rotate = keyframes`
206
+ from {
207
+ transform: rotate(0deg);
208
+ }
209
+ to {
210
+ transform: rotate(360deg);
211
+ }
212
+ `;
213
+ var StyledSpinner = styled3.div`
214
+ width: ${(props) => typeof props.size === "number" ? `${props.size}px` : props.size || "24px"};
215
+ height: ${(props) => typeof props.size === "number" ? `${props.size}px` : props.size || "24px"};
216
+ border: ${(props) => props.strokeWidth || 2}px solid
217
+ ${(props) => props.color || "currentColor"};
218
+ border-bottom-color: transparent;
219
+ border-radius: 50%;
220
+ display: inline-block;
221
+ box-sizing: border-box;
222
+ animation: ${rotate} 1s linear infinite;
223
+ `;
224
+ var Spinner = ({
225
+ role = "status",
226
+ "aria-label": ariaLabel,
227
+ "aria-live": ariaLive = "polite",
228
+ "aria-describedby": ariaDescribedBy,
229
+ testID,
230
+ ...props
231
+ }) => {
232
+ return /* @__PURE__ */ jsx3(
233
+ StyledSpinner,
234
+ {
235
+ role,
236
+ "aria-label": ariaLabel,
237
+ "aria-live": ariaLive,
238
+ "aria-describedby": ariaDescribedBy,
239
+ "data-testid": testID,
240
+ ...props
241
+ }
242
+ );
243
+ };
244
+ Spinner.displayName = "Spinner";
245
+
246
+ // ../primitives-web/src/Icon.tsx
247
+ import styled4 from "styled-components";
248
+ import { jsx as jsx4 } from "react/jsx-runtime";
249
+ var StyledIcon = styled4.div`
250
+ display: flex;
251
+ align-items: center;
252
+ justify-content: center;
253
+ width: ${(props) => typeof props.size === "number" ? `${props.size}px` : props.size || "24px"};
254
+ height: ${(props) => typeof props.size === "number" ? `${props.size}px` : props.size || "24px"};
255
+ color: ${(props) => props.color || "currentColor"};
256
+
257
+ svg {
258
+ width: 100%;
259
+ height: 100%;
260
+ fill: none;
261
+ stroke: currentColor;
262
+ }
263
+ `;
264
+ var Icon = ({ children, ...props }) => {
265
+ return /* @__PURE__ */ jsx4(StyledIcon, { ...props, children });
266
+ };
267
+
268
+ // ../primitives-web/src/Divider.tsx
269
+ import styled5 from "styled-components";
270
+ import { jsx as jsx5 } from "react/jsx-runtime";
271
+ var StyledDivider = styled5.div`
272
+ background-color: ${(props) => props.dashStroke ? "transparent" : props.color || "rgba(255, 255, 255, 0.15)"};
273
+ width: ${(props) => props.vertical ? typeof props.width === "number" ? `${props.width}px` : props.width || "1px" : "100%"};
274
+ height: ${(props) => props.vertical ? "100%" : typeof props.height === "number" ? `${props.height}px` : props.height || "1px"};
275
+
276
+ ${(props) => props.dashStroke && `
277
+ border-style: dashed;
278
+ border-color: ${props.color || "rgba(255, 255, 255, 0.15)"};
279
+ border-width: 0;
280
+ ${props.vertical ? `
281
+ border-left-width: ${typeof props.width === "number" ? `${props.width}px` : props.width || "1px"};
282
+ height: 100%;
283
+ ` : `
284
+ border-top-width: ${typeof props.height === "number" ? `${props.height}px` : props.height || "1px"};
285
+ width: 100%;
286
+ `}
287
+ `}
288
+ `;
289
+
290
+ // ../primitives-web/src/Input.tsx
291
+ import { forwardRef } from "react";
292
+ import styled6 from "styled-components";
293
+ import { jsx as jsx6 } from "react/jsx-runtime";
294
+ var StyledInput = styled6.input`
295
+ background: transparent;
296
+ border: none;
297
+ outline: none;
298
+ width: 100%;
299
+ height: 100%;
300
+ padding: 0;
301
+ margin: 0;
302
+ color: ${(props) => props.color || "inherit"};
303
+ font-size: ${(props) => typeof props.fontSize === "number" ? `${props.fontSize}px` : props.fontSize || "inherit"};
304
+ font-family: inherit;
305
+ text-align: inherit;
306
+
307
+ &::placeholder {
308
+ color: ${(props) => props.placeholderTextColor || "rgba(255, 255, 255, 0.5)"};
309
+ }
310
+
311
+ &:disabled {
312
+ cursor: not-allowed;
313
+ }
314
+ `;
315
+ var InputPrimitive = forwardRef(
316
+ ({
317
+ value,
318
+ placeholder,
319
+ onChange,
320
+ onChangeText,
321
+ onFocus,
322
+ onBlur,
323
+ onKeyDown,
324
+ disabled,
325
+ secureTextEntry,
326
+ style,
327
+ color,
328
+ fontSize,
329
+ placeholderTextColor,
330
+ maxLength,
331
+ name,
332
+ type,
333
+ inputMode,
334
+ autoComplete,
335
+ id,
336
+ "aria-invalid": ariaInvalid,
337
+ "aria-describedby": ariaDescribedBy,
338
+ "aria-labelledby": ariaLabelledBy,
339
+ "aria-label": ariaLabel,
340
+ "aria-disabled": ariaDisabled,
341
+ "data-testid": dataTestId,
342
+ ...rest
343
+ }, ref) => {
344
+ const handleChange = (e) => {
345
+ if (onChange) {
346
+ onChange(e);
347
+ }
348
+ if (onChangeText) {
349
+ onChangeText(e.target.value);
350
+ }
351
+ };
352
+ const inputValue = value !== void 0 ? value : "";
353
+ return /* @__PURE__ */ jsx6(
354
+ StyledInput,
355
+ {
356
+ ref,
357
+ id,
358
+ value: inputValue,
359
+ name,
360
+ placeholder,
361
+ onChange: handleChange,
362
+ onFocus,
363
+ onBlur,
364
+ onKeyDown,
365
+ disabled,
366
+ type: secureTextEntry ? "password" : type || "text",
367
+ inputMode,
368
+ autoComplete,
369
+ style,
370
+ color,
371
+ fontSize,
372
+ placeholderTextColor,
373
+ maxLength,
374
+ "aria-invalid": ariaInvalid,
375
+ "aria-describedby": ariaDescribedBy,
376
+ "aria-labelledby": ariaLabelledBy,
377
+ "aria-label": ariaLabel,
378
+ "aria-disabled": ariaDisabled,
379
+ "data-testid": dataTestId,
380
+ ...rest
381
+ }
382
+ );
383
+ }
384
+ );
385
+ InputPrimitive.displayName = "InputPrimitive";
386
+
387
+ // ../primitives-web/src/TextArea.tsx
388
+ import { forwardRef as forwardRef2 } from "react";
389
+ import styled7 from "styled-components";
390
+ import { jsx as jsx7 } from "react/jsx-runtime";
391
+ var StyledTextArea = styled7.textarea`
392
+ background: transparent;
393
+ border: none;
394
+ outline: none;
395
+ width: 100%;
396
+ height: 100%;
397
+ padding: 0;
398
+ margin: 0;
399
+ color: ${(props) => props.color || "inherit"};
400
+ font-size: ${(props) => typeof props.fontSize === "number" ? `${props.fontSize}px` : props.fontSize || "inherit"};
401
+ font-family: inherit;
402
+ text-align: inherit;
403
+ resize: none;
404
+
405
+ &::placeholder {
406
+ color: ${(props) => props.placeholderTextColor || "rgba(255, 255, 255, 0.5)"};
407
+ }
408
+
409
+ &:disabled {
410
+ cursor: not-allowed;
411
+ }
412
+ `;
413
+ var TextAreaPrimitive = forwardRef2(
414
+ ({
415
+ value,
416
+ placeholder,
417
+ onChangeText,
418
+ onFocus,
419
+ onBlur,
420
+ onKeyDown,
421
+ disabled,
422
+ style,
423
+ color,
424
+ fontSize,
425
+ placeholderTextColor,
426
+ maxLength,
427
+ rows
428
+ }, ref) => {
429
+ return /* @__PURE__ */ jsx7(
430
+ StyledTextArea,
431
+ {
432
+ ref,
433
+ value,
434
+ placeholder,
435
+ onChange: (e) => onChangeText?.(e.target.value),
436
+ onFocus,
437
+ onBlur,
438
+ onKeyDown,
439
+ disabled,
440
+ style,
441
+ color,
442
+ fontSize,
443
+ placeholderTextColor,
444
+ maxLength,
445
+ rows
446
+ }
447
+ );
448
+ }
449
+ );
450
+ TextAreaPrimitive.displayName = "TextAreaPrimitive";
451
+
452
+ // src/Badge.tsx
453
+ import { useDesignSystem } from "@xsolla/xui-core";
454
+ import { jsx as jsx8, jsxs } from "react/jsx-runtime";
455
+ var Badge = ({
456
+ children,
457
+ icon,
458
+ size = "m",
459
+ showStroke = false,
460
+ "aria-label": ariaLabel,
461
+ "aria-hidden": ariaHidden
462
+ }) => {
463
+ const { theme } = useDesignSystem();
464
+ const sizeConfig = theme.sizing.badge(size);
465
+ const isDotOnly = size === "s" || size === "xs";
466
+ const hasContent = !isDotOnly && (!!children || !!icon);
467
+ const showContent = hasContent && !isDotOnly;
468
+ const isShortContent = !icon && (typeof children === "string" || typeof children === "number") && String(children).trim().length === 1;
469
+ const shouldUseFixedWidth = isDotOnly || !showContent || isShortContent;
470
+ return /* @__PURE__ */ jsxs(
471
+ Box,
472
+ {
473
+ backgroundColor: theme.colors.background.alert.primary,
474
+ borderRadius: 999,
475
+ height: sizeConfig.size,
476
+ width: shouldUseFixedWidth ? sizeConfig.size : void 0,
477
+ paddingHorizontal: showContent && !isShortContent ? sizeConfig.padding : 0,
478
+ flexDirection: "row",
479
+ alignItems: "center",
480
+ justifyContent: "center",
481
+ borderColor: showStroke ? theme.colors.border.primary : "transparent",
482
+ borderWidth: showStroke ? 1 : 0,
483
+ position: "relative",
484
+ gap: showContent && icon && children ? 2 : 0,
485
+ role: "status",
486
+ "aria-label": ariaLabel,
487
+ "aria-hidden": ariaHidden ?? (!showContent && !ariaLabel || void 0),
488
+ children: [
489
+ showContent && icon && /* @__PURE__ */ jsx8(Icon, { size: sizeConfig.iconSize, color: theme.colors.content.on.alert, children: icon }),
490
+ showContent && children && /* @__PURE__ */ jsx8(
491
+ Text,
492
+ {
493
+ color: theme.colors.content.on.alert,
494
+ fontSize: sizeConfig.fontSize,
495
+ lineHeight: sizeConfig.lineHeight,
496
+ fontWeight: "600",
497
+ textTransform: "uppercase",
498
+ letterSpacing: 1,
499
+ children
500
+ }
501
+ )
502
+ ]
503
+ }
504
+ );
505
+ };
506
+ export {
507
+ Badge
508
+ };
509
+ //# sourceMappingURL=index.mjs.map
package/index.mjs.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../primitives-web/src/Box.tsx","../../../primitives-web/src/Text.tsx","../../../primitives-web/src/Spinner.tsx","../../../primitives-web/src/Icon.tsx","../../../primitives-web/src/Divider.tsx","../../../primitives-web/src/Input.tsx","../../../primitives-web/src/TextArea.tsx","../../src/Badge.tsx"],"sourcesContent":["import React from \"react\";\nimport styled from \"styled-components\";\nimport type { BoxProps } from \"@xsolla/xui-primitives-core\";\n\nconst StyledBox = styled.div<BoxProps>`\n display: flex;\n box-sizing: border-box;\n background-color: ${(props) => props.backgroundColor || \"transparent\"};\n border-color: ${(props) => props.borderColor || \"transparent\"};\n border-width: ${(props) =>\n typeof props.borderWidth === \"number\"\n ? `${props.borderWidth}px`\n : props.borderWidth || 0};\n\n ${(props) =>\n props.borderBottomWidth !== undefined &&\n `\n border-bottom-width: ${typeof props.borderBottomWidth === \"number\" ? `${props.borderBottomWidth}px` : props.borderBottomWidth};\n border-bottom-color: ${props.borderBottomColor || props.borderColor || \"transparent\"};\n border-bottom-style: solid;\n `}\n ${(props) =>\n props.borderTopWidth !== undefined &&\n `\n border-top-width: ${typeof props.borderTopWidth === \"number\" ? `${props.borderTopWidth}px` : props.borderTopWidth};\n border-top-color: ${props.borderTopColor || props.borderColor || \"transparent\"};\n border-top-style: solid;\n `}\n ${(props) =>\n props.borderLeftWidth !== undefined &&\n `\n border-left-width: ${typeof props.borderLeftWidth === \"number\" ? `${props.borderLeftWidth}px` : props.borderLeftWidth};\n border-left-color: ${props.borderLeftColor || props.borderColor || \"transparent\"};\n border-left-style: solid;\n `}\n ${(props) =>\n props.borderRightWidth !== undefined &&\n `\n border-right-width: ${typeof props.borderRightWidth === \"number\" ? `${props.borderRightWidth}px` : props.borderRightWidth};\n border-right-color: ${props.borderRightColor || props.borderColor || \"transparent\"};\n border-right-style: solid;\n `}\n\n border-style: ${(props) =>\n props.borderStyle ||\n (props.borderWidth ||\n props.borderBottomWidth ||\n props.borderTopWidth ||\n props.borderLeftWidth ||\n props.borderRightWidth\n ? \"solid\"\n : \"none\")};\n border-radius: ${(props) =>\n typeof props.borderRadius === \"number\"\n ? `${props.borderRadius}px`\n : props.borderRadius || 0};\n height: ${(props) =>\n typeof props.height === \"number\"\n ? `${props.height}px`\n : props.height || \"auto\"};\n width: ${(props) =>\n typeof props.width === \"number\"\n ? `${props.width}px`\n : props.width || \"auto\"};\n min-width: ${(props) =>\n typeof props.minWidth === \"number\"\n ? `${props.minWidth}px`\n : props.minWidth || \"auto\"};\n min-height: ${(props) =>\n typeof props.minHeight === \"number\"\n ? `${props.minHeight}px`\n : props.minHeight || \"auto\"};\n\n padding: ${(props) =>\n typeof props.padding === \"number\"\n ? `${props.padding}px`\n : props.padding || 0};\n ${(props) =>\n props.paddingHorizontal &&\n `\n padding-left: ${typeof props.paddingHorizontal === \"number\" ? `${props.paddingHorizontal}px` : props.paddingHorizontal};\n padding-right: ${typeof props.paddingHorizontal === \"number\" ? `${props.paddingHorizontal}px` : props.paddingHorizontal};\n `}\n ${(props) =>\n props.paddingVertical &&\n `\n padding-top: ${typeof props.paddingVertical === \"number\" ? `${props.paddingVertical}px` : props.paddingVertical};\n padding-bottom: ${typeof props.paddingVertical === \"number\" ? `${props.paddingVertical}px` : props.paddingVertical};\n `}\n ${(props) =>\n props.paddingTop !== undefined &&\n `padding-top: ${typeof props.paddingTop === \"number\" ? `${props.paddingTop}px` : props.paddingTop};`}\n ${(props) =>\n props.paddingBottom !== undefined &&\n `padding-bottom: ${typeof props.paddingBottom === \"number\" ? `${props.paddingBottom}px` : props.paddingBottom};`}\n ${(props) =>\n props.paddingLeft !== undefined &&\n `padding-left: ${typeof props.paddingLeft === \"number\" ? `${props.paddingLeft}px` : props.paddingLeft};`}\n ${(props) =>\n props.paddingRight !== undefined &&\n `padding-right: ${typeof props.paddingRight === \"number\" ? `${props.paddingRight}px` : props.paddingRight};`}\n\n margin: ${(props) =>\n typeof props.margin === \"number\" ? `${props.margin}px` : props.margin || 0};\n ${(props) =>\n props.marginTop !== undefined &&\n `margin-top: ${typeof props.marginTop === \"number\" ? `${props.marginTop}px` : props.marginTop};`}\n ${(props) =>\n props.marginBottom !== undefined &&\n `margin-bottom: ${typeof props.marginBottom === \"number\" ? `${props.marginBottom}px` : props.marginBottom};`}\n ${(props) =>\n props.marginLeft !== undefined &&\n `margin-left: ${typeof props.marginLeft === \"number\" ? `${props.marginLeft}px` : props.marginLeft};`}\n ${(props) =>\n props.marginRight !== undefined &&\n `margin-right: ${typeof props.marginRight === \"number\" ? `${props.marginRight}px` : props.marginRight};`}\n\n flex-direction: ${(props) => props.flexDirection || \"column\"};\n flex-wrap: ${(props) => props.flexWrap || \"nowrap\"};\n align-items: ${(props) => props.alignItems || \"stretch\"};\n justify-content: ${(props) => props.justifyContent || \"flex-start\"};\n cursor: ${(props) =>\n props.cursor\n ? props.cursor\n : props.onClick || props.onPress\n ? \"pointer\"\n : \"inherit\"};\n position: ${(props) => props.position || \"static\"};\n top: ${(props) =>\n typeof props.top === \"number\" ? `${props.top}px` : props.top};\n bottom: ${(props) =>\n typeof props.bottom === \"number\" ? `${props.bottom}px` : props.bottom};\n left: ${(props) =>\n typeof props.left === \"number\" ? `${props.left}px` : props.left};\n right: ${(props) =>\n typeof props.right === \"number\" ? `${props.right}px` : props.right};\n flex: ${(props) => props.flex};\n flex-shrink: ${(props) => props.flexShrink ?? 1};\n gap: ${(props) =>\n typeof props.gap === \"number\" ? `${props.gap}px` : props.gap || 0};\n align-self: ${(props) => props.alignSelf || \"auto\"};\n overflow: ${(props) => props.overflow || \"visible\"};\n overflow-x: ${(props) => props.overflowX || \"visible\"};\n overflow-y: ${(props) => props.overflowY || \"visible\"};\n z-index: ${(props) => props.zIndex};\n opacity: ${(props) => (props.disabled ? 0.5 : 1)};\n pointer-events: ${(props) => (props.disabled ? \"none\" : \"auto\")};\n\n &:hover {\n ${(props) =>\n props.hoverStyle?.backgroundColor &&\n `background-color: ${props.hoverStyle.backgroundColor};`}\n ${(props) =>\n props.hoverStyle?.borderColor &&\n `border-color: ${props.hoverStyle.borderColor};`}\n }\n\n &:active {\n ${(props) =>\n props.pressStyle?.backgroundColor &&\n `background-color: ${props.pressStyle.backgroundColor};`}\n }\n`;\n\nexport const Box = React.forwardRef<\n HTMLDivElement | HTMLButtonElement,\n BoxProps\n>(\n (\n {\n children,\n onPress,\n onKeyDown,\n onKeyUp,\n role,\n \"aria-label\": ariaLabel,\n \"aria-labelledby\": ariaLabelledBy,\n \"aria-current\": ariaCurrent,\n \"aria-disabled\": ariaDisabled,\n \"aria-live\": ariaLive,\n \"aria-busy\": ariaBusy,\n \"aria-describedby\": ariaDescribedBy,\n \"aria-expanded\": ariaExpanded,\n \"aria-haspopup\": ariaHasPopup,\n \"aria-pressed\": ariaPressed,\n \"aria-controls\": ariaControls,\n tabIndex,\n as,\n src,\n alt,\n type,\n disabled,\n id,\n ...props\n },\n ref\n ) => {\n // Handle as=\"img\" for rendering images with proper border-radius\n if (as === \"img\" && src) {\n return (\n <img\n src={src}\n alt={alt || \"\"}\n style={{\n display: \"block\",\n objectFit: \"cover\",\n width:\n typeof props.width === \"number\"\n ? `${props.width}px`\n : props.width,\n height:\n typeof props.height === \"number\"\n ? `${props.height}px`\n : props.height,\n borderRadius:\n typeof props.borderRadius === \"number\"\n ? `${props.borderRadius}px`\n : props.borderRadius,\n position: props.position,\n top: typeof props.top === \"number\" ? `${props.top}px` : props.top,\n left:\n typeof props.left === \"number\" ? `${props.left}px` : props.left,\n right:\n typeof props.right === \"number\"\n ? `${props.right}px`\n : props.right,\n bottom:\n typeof props.bottom === \"number\"\n ? `${props.bottom}px`\n : props.bottom,\n }}\n />\n );\n }\n\n return (\n <StyledBox\n ref={ref}\n as={as}\n id={id}\n type={as === \"button\" ? type || \"button\" : undefined}\n disabled={as === \"button\" ? disabled : undefined}\n onClick={onPress}\n onKeyDown={onKeyDown}\n onKeyUp={onKeyUp}\n role={role}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledBy}\n aria-current={ariaCurrent}\n aria-disabled={ariaDisabled}\n aria-busy={ariaBusy}\n aria-describedby={ariaDescribedBy}\n aria-expanded={ariaExpanded}\n aria-haspopup={ariaHasPopup}\n aria-pressed={ariaPressed}\n aria-controls={ariaControls}\n aria-live={ariaLive}\n tabIndex={tabIndex !== undefined ? tabIndex : undefined}\n {...props}\n >\n {children}\n </StyledBox>\n );\n }\n);\n\nBox.displayName = \"Box\";\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport { TextProps } from \"@xsolla/xui-primitives-core\";\n\nconst StyledText = styled.span<TextProps>`\n color: ${(props) => props.color || \"inherit\"};\n font-size: ${(props) =>\n typeof props.fontSize === \"number\"\n ? `${props.fontSize}px`\n : props.fontSize || \"inherit\"};\n font-weight: ${(props) => props.fontWeight || \"normal\"};\n font-family: ${(props) =>\n props.fontFamily ||\n '\"Pilat Wide Bold\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif !important'};\n line-height: ${(props) =>\n typeof props.lineHeight === \"number\"\n ? `${props.lineHeight}px`\n : props.lineHeight || \"inherit\"};\n white-space: ${(props) => props.whiteSpace || \"normal\"};\n text-align: ${(props) => props.textAlign || \"inherit\"};\n text-decoration: ${(props) => props.textDecoration || \"none\"};\n`;\n\nexport const Text: React.FC<TextProps> = ({\n style,\n className,\n id,\n role,\n ...props\n}) => {\n return (\n <StyledText\n {...props}\n style={style}\n className={className}\n id={id}\n role={role}\n />\n );\n};\n","import React from \"react\";\nimport styled, { keyframes } from \"styled-components\";\nimport type { SpinnerProps } from \"@xsolla/xui-primitives-core\";\n\nconst rotate = keyframes`\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n`;\n\nconst StyledSpinner = styled.div<SpinnerProps>`\n width: ${(props) =>\n typeof props.size === \"number\" ? `${props.size}px` : props.size || \"24px\"};\n height: ${(props) =>\n typeof props.size === \"number\" ? `${props.size}px` : props.size || \"24px\"};\n border: ${(props) => props.strokeWidth || 2}px solid\n ${(props) => props.color || \"currentColor\"};\n border-bottom-color: transparent;\n border-radius: 50%;\n display: inline-block;\n box-sizing: border-box;\n animation: ${rotate} 1s linear infinite;\n`;\n\nexport const Spinner: React.FC<SpinnerProps> = ({\n role = \"status\",\n \"aria-label\": ariaLabel,\n \"aria-live\": ariaLive = \"polite\",\n \"aria-describedby\": ariaDescribedBy,\n testID,\n ...props\n}) => {\n return (\n <StyledSpinner\n role={role}\n aria-label={ariaLabel}\n aria-live={ariaLive}\n aria-describedby={ariaDescribedBy}\n data-testid={testID}\n {...props}\n />\n );\n};\n\nSpinner.displayName = \"Spinner\";\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport { IconProps } from \"@xsolla/xui-primitives-core\";\n\nconst StyledIcon = styled.div<IconProps>`\n display: flex;\n align-items: center;\n justify-content: center;\n width: ${(props) =>\n typeof props.size === \"number\" ? `${props.size}px` : props.size || \"24px\"};\n height: ${(props) =>\n typeof props.size === \"number\" ? `${props.size}px` : props.size || \"24px\"};\n color: ${(props) => props.color || \"currentColor\"};\n\n svg {\n width: 100%;\n height: 100%;\n fill: none;\n stroke: currentColor;\n }\n`;\n\nexport const Icon: React.FC<IconProps> = ({ children, ...props }) => {\n return <StyledIcon {...props}>{children}</StyledIcon>;\n};\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport { DividerProps } from \"@xsolla/xui-primitives-core\";\n\nconst StyledDivider = styled.div<DividerProps>`\n background-color: ${(props) =>\n props.dashStroke\n ? \"transparent\"\n : props.color || \"rgba(255, 255, 255, 0.15)\"};\n width: ${(props) =>\n props.vertical\n ? typeof props.width === \"number\"\n ? `${props.width}px`\n : props.width || \"1px\"\n : \"100%\"};\n height: ${(props) =>\n props.vertical\n ? \"100%\"\n : typeof props.height === \"number\"\n ? `${props.height}px`\n : props.height || \"1px\"};\n\n ${(props) =>\n props.dashStroke &&\n `\n border-style: dashed;\n border-color: ${props.color || \"rgba(255, 255, 255, 0.15)\"};\n border-width: 0;\n ${\n props.vertical\n ? `\n border-left-width: ${typeof props.width === \"number\" ? `${props.width}px` : props.width || \"1px\"};\n height: 100%;\n `\n : `\n border-top-width: ${typeof props.height === \"number\" ? `${props.height}px` : props.height || \"1px\"};\n width: 100%;\n `\n }\n `}\n`;\n\nexport const Divider: React.FC<DividerProps> = (props) => {\n return <StyledDivider {...props} />;\n};\n","import React, { forwardRef } from \"react\";\nimport styled from \"styled-components\";\nimport { InputPrimitiveProps } from \"@xsolla/xui-primitives-core\";\n\nconst StyledInput = styled.input<InputPrimitiveProps>`\n background: transparent;\n border: none;\n outline: none;\n width: 100%;\n height: 100%;\n padding: 0;\n margin: 0;\n color: ${(props) => props.color || \"inherit\"};\n font-size: ${(props) =>\n typeof props.fontSize === \"number\"\n ? `${props.fontSize}px`\n : props.fontSize || \"inherit\"};\n font-family: inherit;\n text-align: inherit;\n\n &::placeholder {\n color: ${(props) =>\n props.placeholderTextColor || \"rgba(255, 255, 255, 0.5)\"};\n }\n\n &:disabled {\n cursor: not-allowed;\n }\n`;\n\nexport const InputPrimitive = forwardRef<HTMLInputElement, 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 ...rest\n },\n ref\n ) => {\n const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n if (onChange) {\n onChange(e);\n }\n if (onChangeText) {\n onChangeText(e.target.value);\n }\n };\n\n // Always pass value to make it a controlled input\n const inputValue = value !== undefined ? value : \"\";\n\n return (\n <StyledInput\n ref={ref}\n id={id}\n value={inputValue}\n name={name}\n placeholder={placeholder}\n onChange={handleChange}\n onFocus={onFocus}\n onBlur={onBlur}\n onKeyDown={onKeyDown}\n disabled={disabled}\n type={secureTextEntry ? \"password\" : type || \"text\"}\n inputMode={inputMode}\n autoComplete={autoComplete}\n style={style}\n color={color}\n fontSize={fontSize}\n placeholderTextColor={placeholderTextColor}\n maxLength={maxLength}\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 {...rest}\n />\n );\n }\n);\n\nInputPrimitive.displayName = \"InputPrimitive\";\n","import React, { forwardRef } from \"react\";\nimport styled from \"styled-components\";\nimport { TextAreaPrimitiveProps } from \"@xsolla/xui-primitives-core\";\n\nconst StyledTextArea = styled.textarea<TextAreaPrimitiveProps>`\n background: transparent;\n border: none;\n outline: none;\n width: 100%;\n height: 100%;\n padding: 0;\n margin: 0;\n color: ${(props) => props.color || \"inherit\"};\n font-size: ${(props) =>\n typeof props.fontSize === \"number\"\n ? `${props.fontSize}px`\n : props.fontSize || \"inherit\"};\n font-family: inherit;\n text-align: inherit;\n resize: none;\n\n &::placeholder {\n color: ${(props) =>\n props.placeholderTextColor || \"rgba(255, 255, 255, 0.5)\"};\n }\n\n &:disabled {\n cursor: not-allowed;\n }\n`;\n\nexport const TextAreaPrimitive = forwardRef<\n HTMLTextAreaElement,\n TextAreaPrimitiveProps\n>(\n (\n {\n value,\n placeholder,\n onChangeText,\n onFocus,\n onBlur,\n onKeyDown,\n disabled,\n style,\n color,\n fontSize,\n placeholderTextColor,\n maxLength,\n rows,\n },\n ref\n ) => {\n return (\n <StyledTextArea\n ref={ref}\n value={value}\n placeholder={placeholder}\n onChange={(e) => onChangeText?.(e.target.value)}\n onFocus={onFocus}\n onBlur={onBlur}\n onKeyDown={onKeyDown}\n disabled={disabled}\n style={style}\n color={color}\n fontSize={fontSize}\n placeholderTextColor={placeholderTextColor}\n maxLength={maxLength}\n rows={rows}\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, Text, Icon } from \"@xsolla/xui-primitives\";\nimport { useDesignSystem } from \"@xsolla/xui-core\";\n\nexport interface BadgeProps {\n children?: React.ReactNode;\n icon?: React.ReactNode;\n size?: \"xl\" | \"l\" | \"m\" | \"s\" | \"xs\";\n showStroke?: boolean;\n \"aria-label\"?: string;\n \"aria-hidden\"?: boolean;\n}\n\nexport const Badge: React.FC<BadgeProps> = ({\n children,\n icon,\n size = \"m\",\n showStroke = false,\n \"aria-label\": ariaLabel,\n \"aria-hidden\": ariaHidden,\n}) => {\n const { theme } = useDesignSystem();\n const sizeConfig = theme.sizing.badge(size);\n\n // S and XS sizes are dot-only (no content support)\n const isDotOnly = size === \"s\" || size === \"xs\";\n const hasContent = !isDotOnly && (!!children || !!icon);\n const showContent = hasContent && !isDotOnly;\n\n const isShortContent =\n !icon &&\n (typeof children === \"string\" || typeof children === \"number\") &&\n String(children).trim().length === 1;\n\n // Use fixed width for dots and short content (to stay circular)\n // Use minWidth + padding for longer content (to become pill-shaped)\n const shouldUseFixedWidth = isDotOnly || !showContent || isShortContent;\n\n return (\n <Box\n backgroundColor={theme.colors.background.alert.primary}\n borderRadius={999}\n height={sizeConfig.size}\n width={shouldUseFixedWidth ? sizeConfig.size : undefined}\n paddingHorizontal={\n showContent && !isShortContent ? sizeConfig.padding : 0\n }\n flexDirection=\"row\"\n alignItems=\"center\"\n justifyContent=\"center\"\n borderColor={showStroke ? theme.colors.border.primary : \"transparent\"}\n borderWidth={showStroke ? 1 : 0}\n position=\"relative\"\n gap={showContent && icon && children ? 2 : 0}\n role=\"status\"\n aria-label={ariaLabel}\n aria-hidden={ariaHidden ?? ((!showContent && !ariaLabel) || undefined)}\n >\n {showContent && icon && (\n <Icon size={sizeConfig.iconSize} color={theme.colors.content.on.alert}>\n {icon}\n </Icon>\n )}\n {showContent && children && (\n <Text\n color={theme.colors.content.on.alert}\n fontSize={sizeConfig.fontSize}\n lineHeight={sizeConfig.lineHeight}\n fontWeight=\"600\"\n textTransform=\"uppercase\"\n letterSpacing={1}\n >\n {children}\n </Text>\n )}\n </Box>\n );\n};\n"],"mappings":";AAAA,OAAO,WAAW;AAClB,OAAO,YAAY;AAuMX;AApMR,IAAM,YAAY,OAAO;AAAA;AAAA;AAAA,sBAGH,CAAC,UAAU,MAAM,mBAAmB,aAAa;AAAA,kBACrD,CAAC,UAAU,MAAM,eAAe,aAAa;AAAA,kBAC7C,CAAC,UACf,OAAO,MAAM,gBAAgB,WACzB,GAAG,MAAM,WAAW,OACpB,MAAM,eAAe,CAAC;AAAA;AAAA,IAE1B,CAA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package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "@xsolla/xui-badge-web",
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
+ "test": "vitest",
12
+ "test:run": "vitest run",
13
+ "test:watch": "vitest --watch",
14
+ "test:coverage": "vitest run --coverage"
15
+ },
16
+ "dependencies": {
17
+ "@xsolla/xui-core": "0.64.0-pr56.1768348754",
18
+ "@xsolla/xui-primitives-core": "0.64.0-pr56.1768348754"
19
+ },
20
+ "peerDependencies": {
21
+ "react": ">=16.8.0",
22
+ "styled-components": ">=4"
23
+ },
24
+ "devDependencies": {
25
+ "@testing-library/jest-dom": "^6.1.5",
26
+ "@testing-library/react": "^14.1.2",
27
+ "@testing-library/user-event": "^14.5.1",
28
+ "@vitest/coverage-v8": "^1.0.0",
29
+ "jsdom": "^24.0.0",
30
+ "react": "^18.0.0",
31
+ "react-dom": "^18.0.0",
32
+ "tsup": "^8.0.0",
33
+ "vitest": "^1.0.0"
34
+ },
35
+ "license": "MIT"
36
+ }