@xsolla/xui-b2b-itemer-group 0.178.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/web/index.js ADDED
@@ -0,0 +1,441 @@
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
+ ItemerGroup: () => ItemerGroup,
34
+ ItemerGroupContext: () => ItemerGroupContext,
35
+ ItemerGroupRow: () => ItemerGroupRow
36
+ });
37
+ module.exports = __toCommonJS(index_exports);
38
+
39
+ // src/ItemerGroup.tsx
40
+ var import_react4 = __toESM(require("react"));
41
+
42
+ // ../../foundation/primitives-web/src/Box.tsx
43
+ var import_react2 = __toESM(require("react"));
44
+ var import_styled_components = __toESM(require("styled-components"));
45
+
46
+ // ../../foundation/primitives-web/src/filterDOMProps.ts
47
+ var import_react = __toESM(require("react"));
48
+
49
+ // ../../../node_modules/@emotion/memoize/dist/memoize.esm.js
50
+ function memoize(fn) {
51
+ var cache = {};
52
+ return function(arg) {
53
+ if (cache[arg] === void 0) cache[arg] = fn(arg);
54
+ return cache[arg];
55
+ };
56
+ }
57
+ var memoize_esm_default = memoize;
58
+
59
+ // ../../../node_modules/@emotion/is-prop-valid/dist/is-prop-valid.esm.js
60
+ var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
61
+ var index = memoize_esm_default(
62
+ function(prop) {
63
+ return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
64
+ }
65
+ /* Z+1 */
66
+ );
67
+ var is_prop_valid_esm_default = index;
68
+
69
+ // ../../foundation/primitives-web/src/filterDOMProps.ts
70
+ var ADDITIONAL_BLOCKED_PROPS = /* @__PURE__ */ new Set([
71
+ // RN-only event handlers (pass isPropValid's on* pattern)
72
+ "onPress",
73
+ "onChangeText",
74
+ "onLayout",
75
+ "onMoveShouldSetResponder",
76
+ "onResponderGrant",
77
+ "onResponderMove",
78
+ "onResponderRelease",
79
+ "onResponderTerminate",
80
+ // SVG attributes that pass isPropValid
81
+ "strokeWidth",
82
+ // CSS properties that pass isPropValid but are used as component props
83
+ "overflow",
84
+ "cursor",
85
+ "fontSize",
86
+ "fontWeight",
87
+ "fontFamily",
88
+ "textDecoration"
89
+ ]);
90
+ function shouldForwardProp(key) {
91
+ if (ADDITIONAL_BLOCKED_PROPS.has(key)) return false;
92
+ return is_prop_valid_esm_default(key);
93
+ }
94
+ function createFilteredElement(defaultTag) {
95
+ const Component = import_react.default.forwardRef(
96
+ ({ children, elementType, ...props }, ref) => {
97
+ const Tag = elementType || defaultTag;
98
+ const htmlProps = {};
99
+ for (const key of Object.keys(props)) {
100
+ if (shouldForwardProp(key)) {
101
+ htmlProps[key] = props[key];
102
+ }
103
+ }
104
+ return import_react.default.createElement(
105
+ Tag,
106
+ { ref, ...htmlProps },
107
+ children
108
+ );
109
+ }
110
+ );
111
+ Component.displayName = `Filtered(${defaultTag})`;
112
+ return Component;
113
+ }
114
+
115
+ // ../../foundation/primitives-web/src/Box.tsx
116
+ var import_jsx_runtime = require("react/jsx-runtime");
117
+ var FilteredDiv = createFilteredElement("div");
118
+ var StyledBox = (0, import_styled_components.default)(FilteredDiv)`
119
+ display: flex;
120
+ box-sizing: border-box;
121
+ background-color: ${(props) => props.backgroundColor || "transparent"};
122
+ border-color: ${(props) => props.borderColor || "transparent"};
123
+ border-width: ${(props) => typeof props.borderWidth === "number" ? `${props.borderWidth}px` : props.borderWidth || 0};
124
+
125
+ ${(props) => props.borderBottomWidth !== void 0 && `
126
+ border-bottom-width: ${typeof props.borderBottomWidth === "number" ? `${props.borderBottomWidth}px` : props.borderBottomWidth};
127
+ border-bottom-color: ${props.borderBottomColor || props.borderColor || "transparent"};
128
+ border-bottom-style: solid;
129
+ `}
130
+ ${(props) => props.borderTopWidth !== void 0 && `
131
+ border-top-width: ${typeof props.borderTopWidth === "number" ? `${props.borderTopWidth}px` : props.borderTopWidth};
132
+ border-top-color: ${props.borderTopColor || props.borderColor || "transparent"};
133
+ border-top-style: solid;
134
+ `}
135
+ ${(props) => props.borderLeftWidth !== void 0 && `
136
+ border-left-width: ${typeof props.borderLeftWidth === "number" ? `${props.borderLeftWidth}px` : props.borderLeftWidth};
137
+ border-left-color: ${props.borderLeftColor || props.borderColor || "transparent"};
138
+ border-left-style: solid;
139
+ `}
140
+ ${(props) => props.borderRightWidth !== void 0 && `
141
+ border-right-width: ${typeof props.borderRightWidth === "number" ? `${props.borderRightWidth}px` : props.borderRightWidth};
142
+ border-right-color: ${props.borderRightColor || props.borderColor || "transparent"};
143
+ border-right-style: solid;
144
+ `}
145
+
146
+ border-style: ${(props) => props.borderStyle || (props.borderWidth || props.borderBottomWidth || props.borderTopWidth || props.borderLeftWidth || props.borderRightWidth ? "solid" : "none")};
147
+ border-radius: ${(props) => typeof props.borderRadius === "number" ? `${props.borderRadius}px` : props.borderRadius || 0};
148
+ height: ${(props) => typeof props.height === "number" ? `${props.height}px` : props.height || "auto"};
149
+ width: ${(props) => typeof props.width === "number" ? `${props.width}px` : props.width || "auto"};
150
+ min-width: ${(props) => typeof props.minWidth === "number" ? `${props.minWidth}px` : props.minWidth || "auto"};
151
+ min-height: ${(props) => typeof props.minHeight === "number" ? `${props.minHeight}px` : props.minHeight || "auto"};
152
+ max-width: ${(props) => typeof props.maxWidth === "number" ? `${props.maxWidth}px` : props.maxWidth || "none"};
153
+ max-height: ${(props) => typeof props.maxHeight === "number" ? `${props.maxHeight}px` : props.maxHeight || "none"};
154
+
155
+ padding: ${(props) => typeof props.padding === "number" ? `${props.padding}px` : props.padding || 0};
156
+ ${(props) => props.paddingHorizontal && `
157
+ padding-left: ${typeof props.paddingHorizontal === "number" ? `${props.paddingHorizontal}px` : props.paddingHorizontal};
158
+ padding-right: ${typeof props.paddingHorizontal === "number" ? `${props.paddingHorizontal}px` : props.paddingHorizontal};
159
+ `}
160
+ ${(props) => props.paddingVertical && `
161
+ padding-top: ${typeof props.paddingVertical === "number" ? `${props.paddingVertical}px` : props.paddingVertical};
162
+ padding-bottom: ${typeof props.paddingVertical === "number" ? `${props.paddingVertical}px` : props.paddingVertical};
163
+ `}
164
+ ${(props) => props.paddingTop !== void 0 && `padding-top: ${typeof props.paddingTop === "number" ? `${props.paddingTop}px` : props.paddingTop};`}
165
+ ${(props) => props.paddingBottom !== void 0 && `padding-bottom: ${typeof props.paddingBottom === "number" ? `${props.paddingBottom}px` : props.paddingBottom};`}
166
+ ${(props) => props.paddingLeft !== void 0 && `padding-left: ${typeof props.paddingLeft === "number" ? `${props.paddingLeft}px` : props.paddingLeft};`}
167
+ ${(props) => props.paddingRight !== void 0 && `padding-right: ${typeof props.paddingRight === "number" ? `${props.paddingRight}px` : props.paddingRight};`}
168
+
169
+ margin: ${(props) => typeof props.margin === "number" ? `${props.margin}px` : props.margin || 0};
170
+ ${(props) => props.marginTop !== void 0 && `margin-top: ${typeof props.marginTop === "number" ? `${props.marginTop}px` : props.marginTop};`}
171
+ ${(props) => props.marginBottom !== void 0 && `margin-bottom: ${typeof props.marginBottom === "number" ? `${props.marginBottom}px` : props.marginBottom};`}
172
+ ${(props) => props.marginLeft !== void 0 && `margin-left: ${typeof props.marginLeft === "number" ? `${props.marginLeft}px` : props.marginLeft};`}
173
+ ${(props) => props.marginRight !== void 0 && `margin-right: ${typeof props.marginRight === "number" ? `${props.marginRight}px` : props.marginRight};`}
174
+
175
+ flex-direction: ${(props) => props.flexDirection || "column"};
176
+ flex-wrap: ${(props) => props.flexWrap || "nowrap"};
177
+ align-items: ${(props) => props.alignItems || "stretch"};
178
+ justify-content: ${(props) => props.justifyContent || "flex-start"};
179
+ cursor: ${(props) => props.cursor ? props.cursor : props.onClick || props.onPress ? "pointer" : "inherit"};
180
+ position: ${(props) => props.position || "static"};
181
+ top: ${(props) => typeof props.top === "number" ? `${props.top}px` : props.top};
182
+ bottom: ${(props) => typeof props.bottom === "number" ? `${props.bottom}px` : props.bottom};
183
+ left: ${(props) => typeof props.left === "number" ? `${props.left}px` : props.left};
184
+ right: ${(props) => typeof props.right === "number" ? `${props.right}px` : props.right};
185
+ flex: ${(props) => props.flex};
186
+ flex-shrink: ${(props) => props.flexShrink ?? 1};
187
+ gap: ${(props) => typeof props.gap === "number" ? `${props.gap}px` : props.gap || 0};
188
+ align-self: ${(props) => props.alignSelf || "auto"};
189
+ overflow: ${(props) => props.overflow || "visible"};
190
+ overflow-x: ${(props) => props.overflowX || "visible"};
191
+ overflow-y: ${(props) => props.overflowY || "visible"};
192
+ z-index: ${(props) => props.zIndex};
193
+ opacity: ${(props) => props.disabled ? 0.5 : 1};
194
+ pointer-events: ${(props) => props.disabled ? "none" : "auto"};
195
+
196
+ &:hover {
197
+ ${(props) => props.hoverStyle?.backgroundColor && `background-color: ${props.hoverStyle.backgroundColor};`}
198
+ ${(props) => props.hoverStyle?.borderColor && `border-color: ${props.hoverStyle.borderColor};`}
199
+ }
200
+
201
+ &:active {
202
+ ${(props) => props.pressStyle?.backgroundColor && `background-color: ${props.pressStyle.backgroundColor};`}
203
+ }
204
+ `;
205
+ var Box = import_react2.default.forwardRef(
206
+ ({
207
+ children,
208
+ onPress,
209
+ onKeyDown,
210
+ onKeyUp,
211
+ role,
212
+ "aria-label": ariaLabel,
213
+ "aria-labelledby": ariaLabelledBy,
214
+ "aria-current": ariaCurrent,
215
+ "aria-disabled": ariaDisabled,
216
+ "aria-live": ariaLive,
217
+ "aria-busy": ariaBusy,
218
+ "aria-describedby": ariaDescribedBy,
219
+ "aria-expanded": ariaExpanded,
220
+ "aria-haspopup": ariaHasPopup,
221
+ "aria-pressed": ariaPressed,
222
+ "aria-controls": ariaControls,
223
+ tabIndex,
224
+ as,
225
+ src,
226
+ alt,
227
+ onError,
228
+ onLoad,
229
+ type,
230
+ disabled,
231
+ id,
232
+ testID,
233
+ "data-testid": dataTestId,
234
+ ...props
235
+ }, ref) => {
236
+ if (as === "img" && src) {
237
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
238
+ "img",
239
+ {
240
+ src,
241
+ alt: alt || "",
242
+ onError,
243
+ onLoad,
244
+ style: {
245
+ display: "block",
246
+ objectFit: "cover",
247
+ width: typeof props.width === "number" ? `${props.width}px` : props.width,
248
+ height: typeof props.height === "number" ? `${props.height}px` : props.height,
249
+ borderRadius: typeof props.borderRadius === "number" ? `${props.borderRadius}px` : props.borderRadius,
250
+ position: props.position,
251
+ top: typeof props.top === "number" ? `${props.top}px` : props.top,
252
+ left: typeof props.left === "number" ? `${props.left}px` : props.left,
253
+ right: typeof props.right === "number" ? `${props.right}px` : props.right,
254
+ bottom: typeof props.bottom === "number" ? `${props.bottom}px` : props.bottom,
255
+ ...props.style
256
+ }
257
+ }
258
+ );
259
+ }
260
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
261
+ StyledBox,
262
+ {
263
+ ref,
264
+ elementType: as,
265
+ id,
266
+ type: as === "button" ? type || "button" : void 0,
267
+ disabled: as === "button" ? disabled : void 0,
268
+ onClick: onPress,
269
+ onKeyDown,
270
+ onKeyUp,
271
+ role,
272
+ "aria-label": ariaLabel,
273
+ "aria-labelledby": ariaLabelledBy,
274
+ "aria-current": ariaCurrent,
275
+ "aria-disabled": ariaDisabled,
276
+ "aria-busy": ariaBusy,
277
+ "aria-describedby": ariaDescribedBy,
278
+ "aria-expanded": ariaExpanded,
279
+ "aria-haspopup": ariaHasPopup,
280
+ "aria-pressed": ariaPressed,
281
+ "aria-controls": ariaControls,
282
+ "aria-live": ariaLive,
283
+ tabIndex: tabIndex !== void 0 ? tabIndex : void 0,
284
+ "data-testid": dataTestId || testID,
285
+ ...props,
286
+ children
287
+ }
288
+ );
289
+ }
290
+ );
291
+ Box.displayName = "Box";
292
+
293
+ // src/ItemerGroup.tsx
294
+ var import_xui_core = require("@xsolla/xui-core");
295
+ var import_xui_button = require("@xsolla/xui-button");
296
+ var import_xui_typography = require("@xsolla/xui-typography");
297
+ var import_xui_icons_base = require("@xsolla/xui-icons-base");
298
+
299
+ // src/ItemerGroupContext.tsx
300
+ var import_react3 = require("react");
301
+ var ItemerGroupContext = (0, import_react3.createContext)({
302
+ draggable: false,
303
+ rowCount: 0
304
+ });
305
+ var useItemerGroupContext = () => (0, import_react3.useContext)(ItemerGroupContext);
306
+
307
+ // src/ItemerGroup.tsx
308
+ var import_jsx_runtime2 = require("react/jsx-runtime");
309
+ var REMOVE_BUTTON_SIZE = 40;
310
+ var ItemerGroup = ({
311
+ label,
312
+ children,
313
+ draggable = false,
314
+ onAdd,
315
+ addButtonLabel = "Add line",
316
+ showAddButton,
317
+ className,
318
+ testID,
319
+ themeMode,
320
+ themeProductContext
321
+ }) => {
322
+ const { theme } = (0, import_xui_core.useResolvedTheme)({ themeMode, themeProductContext });
323
+ const shouldShowAddButton = showAddButton ?? Boolean(onAdd);
324
+ const rowCount = import_react4.default.Children.toArray(children).length;
325
+ const contextValue = (0, import_react4.useMemo)(
326
+ () => ({ draggable, rowCount }),
327
+ [draggable, rowCount]
328
+ );
329
+ const showDragSpacer = draggable && rowCount > 1;
330
+ const renderLabel = () => {
331
+ if (!label) return null;
332
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(Box, { flexDirection: "row", alignItems: "center", gap: 8, children: [
333
+ showDragSpacer && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Box, { width: 28, flexShrink: 0 }),
334
+ Array.isArray(label) ? /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
335
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Box, { flex: 1, flexDirection: "row", alignItems: "flex-start", gap: 4, children: label.map((l, i) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Box, { flex: 1, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
336
+ import_xui_typography.Typography,
337
+ {
338
+ variant: "bodyXs",
339
+ color: theme.colors.content.secondary,
340
+ children: l
341
+ }
342
+ ) }, i)) }),
343
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Box, { width: REMOVE_BUTTON_SIZE, flexShrink: 0 })
344
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_xui_typography.Typography, { variant: "bodyXs", color: theme.colors.content.secondary, children: label })
345
+ ] });
346
+ };
347
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ItemerGroupContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(Box, { flexDirection: "column", gap: 8, testID, className, children: [
348
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(Box, { flexDirection: "column", gap: 4, children: [
349
+ renderLabel(),
350
+ children
351
+ ] }),
352
+ shouldShowAddButton && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(Box, { flexDirection: "row", alignItems: "center", gap: 8, children: [
353
+ showDragSpacer && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Box, { width: 28, flexShrink: 0 }),
354
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
355
+ import_xui_button.Button,
356
+ {
357
+ variant: "secondary",
358
+ tone: "brand",
359
+ size: "sm",
360
+ iconRight: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_xui_icons_base.Plus, { size: 16 }),
361
+ onPress: onAdd,
362
+ children: addButtonLabel
363
+ }
364
+ )
365
+ ] })
366
+ ] }) });
367
+ };
368
+ ItemerGroup.displayName = "ItemerGroup";
369
+
370
+ // src/ItemerGroupRow.tsx
371
+ var import_xui_core2 = require("@xsolla/xui-core");
372
+ var import_xui_button2 = require("@xsolla/xui-button");
373
+ var import_xui_icons_base2 = require("@xsolla/xui-icons-base");
374
+ var import_jsx_runtime3 = require("react/jsx-runtime");
375
+ var ItemerGroupRow = ({
376
+ children,
377
+ onRemove,
378
+ onAdd,
379
+ className
380
+ }) => {
381
+ const { theme } = (0, import_xui_core2.useResolvedTheme)({});
382
+ const { draggable, rowCount } = useItemerGroupContext();
383
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(Box, { flexDirection: "row", alignItems: "center", gap: 8, className, children: [
384
+ draggable && rowCount > 1 && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
385
+ Box,
386
+ {
387
+ "data-drag-handle": "true",
388
+ width: 28,
389
+ height: 28,
390
+ alignItems: "center",
391
+ justifyContent: "center",
392
+ flexShrink: 0,
393
+ style: { cursor: "grab" },
394
+ children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_xui_icons_base2.Drag, { size: 20, color: theme.colors.content.tertiary })
395
+ }
396
+ ),
397
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
398
+ Box,
399
+ {
400
+ flex: 1,
401
+ flexDirection: "row",
402
+ alignItems: "flex-start",
403
+ gap: 4,
404
+ minWidth: 0,
405
+ children: [
406
+ children,
407
+ onAdd && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
408
+ import_xui_button2.IconButton,
409
+ {
410
+ "aria-label": "Add row",
411
+ variant: "secondary",
412
+ tone: "mono",
413
+ size: "sm",
414
+ onPress: onAdd,
415
+ icon: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_xui_icons_base2.Plus, { size: 20 })
416
+ }
417
+ ),
418
+ onRemove && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
419
+ import_xui_button2.IconButton,
420
+ {
421
+ "aria-label": "Remove row",
422
+ variant: "secondary",
423
+ tone: "mono",
424
+ size: "sm",
425
+ onPress: onRemove,
426
+ icon: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_xui_icons_base2.Remove, { size: 20 })
427
+ }
428
+ )
429
+ ]
430
+ }
431
+ )
432
+ ] });
433
+ };
434
+ ItemerGroupRow.displayName = "ItemerGroupRow";
435
+ // Annotate the CommonJS export names for ESM import in node:
436
+ 0 && (module.exports = {
437
+ ItemerGroup,
438
+ ItemerGroupContext,
439
+ ItemerGroupRow
440
+ });
441
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/index.tsx","../../src/ItemerGroup.tsx","../../../../foundation/primitives-web/src/Box.tsx","../../../../foundation/primitives-web/src/filterDOMProps.ts","../../../../../node_modules/@emotion/memoize/dist/memoize.esm.js","../../../../../node_modules/@emotion/is-prop-valid/dist/is-prop-valid.esm.js","../../src/ItemerGroupContext.tsx","../../src/ItemerGroupRow.tsx"],"sourcesContent":["export { ItemerGroup } from \"./ItemerGroup\";\nexport { ItemerGroupRow } from \"./ItemerGroupRow\";\nexport { ItemerGroupContext } from \"./ItemerGroupContext\";\nexport type { ItemerGroupProps, ItemerGroupRowProps } from \"./types\";\n","import React, { useMemo } from \"react\";\n// @ts-expect-error - this will be resolved at build time\nimport { Box } from \"@xsolla/xui-primitives\";\nimport { useResolvedTheme } from \"@xsolla/xui-core\";\nimport { Button } from \"@xsolla/xui-button\";\nimport { Typography } from \"@xsolla/xui-typography\";\nimport { Plus } from \"@xsolla/xui-icons-base\";\nimport { ItemerGroupContext } from \"./ItemerGroupContext\";\nimport type { ItemerGroupProps } from \"./types\";\n\n// Size of the IconButton size=\"sm\" — used to reserve matching space in the label row\nconst REMOVE_BUTTON_SIZE = 40;\n\nexport const ItemerGroup: React.FC<ItemerGroupProps> = ({\n label,\n children,\n draggable = false,\n onAdd,\n addButtonLabel = \"Add line\",\n showAddButton,\n className,\n testID,\n themeMode,\n themeProductContext,\n}) => {\n const { theme } = useResolvedTheme({ themeMode, themeProductContext });\n const shouldShowAddButton = showAddButton ?? Boolean(onAdd);\n const rowCount = React.Children.toArray(children).length;\n const contextValue = useMemo(\n () => ({ draggable, rowCount }),\n [draggable, rowCount]\n );\n\n const showDragSpacer = draggable && rowCount > 1;\n\n const renderLabel = () => {\n if (!label) return null;\n\n return (\n <Box flexDirection=\"row\" alignItems=\"center\" gap={8}>\n {showDragSpacer && <Box width={28} flexShrink={0} />}\n {Array.isArray(label) ? (\n <>\n <Box flex={1} flexDirection=\"row\" alignItems=\"flex-start\" gap={4}>\n {label.map((l, i) => (\n <Box flex={1} key={i}>\n <Typography\n variant=\"bodyXs\"\n color={theme.colors.content.secondary}\n >\n {l}\n </Typography>\n </Box>\n ))}\n </Box>\n <Box width={REMOVE_BUTTON_SIZE} flexShrink={0} />\n </>\n ) : (\n <Typography variant=\"bodyXs\" color={theme.colors.content.secondary}>\n {label}\n </Typography>\n )}\n </Box>\n );\n };\n\n return (\n <ItemerGroupContext.Provider value={contextValue}>\n <Box flexDirection=\"column\" gap={8} testID={testID} className={className}>\n <Box flexDirection=\"column\" gap={4}>\n {renderLabel()}\n {children}\n </Box>\n {shouldShowAddButton && (\n <Box flexDirection=\"row\" alignItems=\"center\" gap={8}>\n {showDragSpacer && <Box width={28} flexShrink={0} />}\n <Button\n variant=\"secondary\"\n tone=\"brand\"\n size=\"sm\"\n iconRight={<Plus size={16} />}\n onPress={onAdd}\n >\n {addButtonLabel}\n </Button>\n </Box>\n )}\n </Box>\n </ItemerGroupContext.Provider>\n );\n};\n\nItemerGroup.displayName = \"ItemerGroup\";\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport type { BoxProps } from \"@xsolla/xui-primitives-core\";\nimport { createFilteredElement } from \"./filterDOMProps\";\n\nconst FilteredDiv = createFilteredElement(\"div\");\n\nconst StyledBox = styled(FilteredDiv)<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 max-width: ${(props) =>\n typeof props.maxWidth === \"number\"\n ? `${props.maxWidth}px`\n : props.maxWidth || \"none\"};\n max-height: ${(props) =>\n typeof props.maxHeight === \"number\"\n ? `${props.maxHeight}px`\n : props.maxHeight || \"none\"};\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 onError,\n onLoad,\n type,\n disabled,\n id,\n testID,\n \"data-testid\": dataTestId,\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 onError={onError}\n onLoad={onLoad}\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 ...props.style,\n }}\n />\n );\n }\n\n return (\n <StyledBox\n ref={ref}\n elementType={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 data-testid={dataTestId || testID}\n {...props}\n >\n {children}\n </StyledBox>\n );\n }\n);\n\nBox.displayName = \"Box\";\n","import React from \"react\";\nimport isPropValid from \"@emotion/is-prop-valid\";\n\n// Props that @emotion/is-prop-valid incorrectly treats as valid HTML.\n// These are React Native or component-specific props that match\n// valid HTML patterns (on* event handlers, SVG attributes).\nexport const ADDITIONAL_BLOCKED_PROPS = new Set([\n // RN-only event handlers (pass isPropValid's on* pattern)\n \"onPress\",\n \"onChangeText\",\n \"onLayout\",\n \"onMoveShouldSetResponder\",\n \"onResponderGrant\",\n \"onResponderMove\",\n \"onResponderRelease\",\n \"onResponderTerminate\",\n // SVG attributes that pass isPropValid\n \"strokeWidth\",\n // CSS properties that pass isPropValid but are used as component props\n \"overflow\",\n \"cursor\",\n \"fontSize\",\n \"fontWeight\",\n \"fontFamily\",\n \"textDecoration\",\n]);\n\nfunction shouldForwardProp(key: string): boolean {\n if (ADDITIONAL_BLOCKED_PROPS.has(key)) return false;\n return isPropValid(key);\n}\n\n/**\n * Creates a React component that renders the given HTML tag\n * but filters out non-HTML props before they reach the DOM.\n *\n * Uses @emotion/is-prop-valid (same library styled-components v4\n * uses internally) to automatically block invalid HTML attributes,\n * plus a small blocklist for false positives (RN on* handlers, SVG attrs).\n *\n * Usage: `const FilteredDiv = createFilteredElement(\"div\");`\n * Then: `const StyledBox = styled(FilteredDiv)<BoxProps>\\`...\\`;`\n *\n * styled-components can still read ALL props for CSS interpolation,\n * but only valid HTML attributes are forwarded to the DOM element.\n */\nexport function createFilteredElement(defaultTag: string) {\n const Component = React.forwardRef<HTMLElement, Record<string, unknown>>(\n ({ children, elementType, ...props }, ref) => {\n const Tag = (elementType as string) || defaultTag;\n const htmlProps: Record<string, unknown> = {};\n for (const key of Object.keys(props)) {\n if (shouldForwardProp(key)) {\n htmlProps[key] = props[key];\n }\n }\n return React.createElement(\n Tag,\n { ref, ...htmlProps },\n children as React.ReactNode\n );\n }\n );\n Component.displayName = `Filtered(${defaultTag})`;\n return Component;\n}\n","function memoize(fn) {\n var cache = {};\n return function (arg) {\n if (cache[arg] === undefined) cache[arg] = fn(arg);\n return cache[arg];\n };\n}\n\nexport default memoize;\n","import memoize from '@emotion/memoize';\n\nvar reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23\n\nvar index = memoize(function (prop) {\n return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111\n /* o */\n && prop.charCodeAt(1) === 110\n /* n */\n && prop.charCodeAt(2) < 91;\n}\n/* Z+1 */\n);\n\nexport default index;\n","import { createContext, useContext } from \"react\";\n\ninterface ItemerGroupContextValue {\n draggable: boolean;\n rowCount: number;\n}\n\nexport const ItemerGroupContext = createContext<ItemerGroupContextValue>({\n draggable: false,\n rowCount: 0,\n});\n\nexport const useItemerGroupContext = () => useContext(ItemerGroupContext);\n","import React from \"react\";\n// @ts-expect-error - this will be resolved at build time\nimport { Box } from \"@xsolla/xui-primitives\";\nimport { useResolvedTheme } from \"@xsolla/xui-core\";\nimport { IconButton } from \"@xsolla/xui-button\";\nimport { Drag, Plus, Remove } from \"@xsolla/xui-icons-base\";\nimport { useItemerGroupContext } from \"./ItemerGroupContext\";\nimport type { ItemerGroupRowProps } from \"./types\";\n\nexport const ItemerGroupRow: React.FC<ItemerGroupRowProps> = ({\n children,\n onRemove,\n onAdd,\n className,\n}) => {\n const { theme } = useResolvedTheme({});\n const { draggable, rowCount } = useItemerGroupContext();\n\n return (\n <Box flexDirection=\"row\" alignItems=\"center\" gap={8} className={className}>\n {draggable && rowCount > 1 && (\n <Box\n data-drag-handle=\"true\"\n width={28}\n height={28}\n alignItems=\"center\"\n justifyContent=\"center\"\n flexShrink={0}\n style={{ cursor: \"grab\" }}\n >\n <Drag size={20} color={theme.colors.content.tertiary} />\n </Box>\n )}\n <Box\n flex={1}\n flexDirection=\"row\"\n alignItems=\"flex-start\"\n gap={4}\n minWidth={0}\n >\n {children}\n {onAdd && (\n <IconButton\n aria-label=\"Add row\"\n variant=\"secondary\"\n tone=\"mono\"\n size=\"sm\"\n onPress={onAdd}\n icon={<Plus size={20} />}\n />\n )}\n {onRemove && (\n <IconButton\n aria-label=\"Remove row\"\n variant=\"secondary\"\n tone=\"mono\"\n size=\"sm\"\n onPress={onRemove}\n icon={<Remove size={20} />}\n />\n )}\n </Box>\n </Box>\n );\n};\n\nItemerGroupRow.displayName = \"ItemerGroupRow\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,IAAAA,gBAA+B;;;ACA/B,IAAAC,gBAAkB;AAClB,+BAAmB;;;ACDnB,mBAAkB;;;ACAlB,SAAS,QAAQ,IAAI;AACnB,MAAI,QAAQ,CAAC;AACb,SAAO,SAAU,KAAK;AACpB,QAAI,MAAM,GAAG,MAAM,OAAW,OAAM,GAAG,IAAI,GAAG,GAAG;AACjD,WAAO,MAAM,GAAG;AAAA,EAClB;AACF;AAEA,IAAO,sBAAQ;;;ACNf,IAAI,kBAAkB;AAEtB,IAAI,QAAQ;AAAA,EAAQ,SAAU,MAAM;AAClC,WAAO,gBAAgB,KAAK,IAAI,KAAK,KAAK,WAAW,CAAC,MAAM,OAEzD,KAAK,WAAW,CAAC,MAAM,OAEvB,KAAK,WAAW,CAAC,IAAI;AAAA,EAC1B;AAAA;AAEA;AAEA,IAAO,4BAAQ;;;AFRR,IAAM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A,QACX,KAAK;AAAA,QACL,UAAU;AAAA,QAET;AAAA;AAAA,UACA,SACC;AAAA,YAAC;AAAA;AAAA,cACC,cAAW;AAAA,cACX,SAAQ;AAAA,cACR,MAAK;AAAA,cACL,MAAK;AAAA,cACL,SAAS;AAAA,cACT,MAAM,6CAAC,+BAAK,MAAM,IAAI;AAAA;AAAA,UACxB;AAAA,UAED,YACC;AAAA,YAAC;AAAA;AAAA,cACC,cAAW;AAAA,cACX,SAAQ;AAAA,cACR,MAAK;AAAA,cACL,MAAK;AAAA,cACL,SAAS;AAAA,cACT,MAAM,6CAAC,iCAAO,MAAM,IAAI;AAAA;AAAA,UAC1B;AAAA;AAAA;AAAA,IAEJ;AAAA,KACF;AAEJ;AAEA,eAAe,cAAc;","names":["import_react","import_react","React","styled","React","import_react","import_jsx_runtime","React","import_xui_core","import_xui_button","import_xui_icons_base","import_jsx_runtime"]}