@xsolla/xui-status-dropdown 0.223.0 → 0.224.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/native/index.js CHANGED
@@ -1114,6 +1114,8 @@ var import_jsx_runtime732 = require("react/jsx-runtime");
1114
1114
  var import_jsx_runtime733 = require("react/jsx-runtime");
1115
1115
  var import_jsx_runtime734 = require("react/jsx-runtime");
1116
1116
  var import_jsx_runtime735 = require("react/jsx-runtime");
1117
+ var import_jsx_runtime736 = require("react/jsx-runtime");
1118
+ var import_jsx_runtime737 = require("react/jsx-runtime");
1117
1119
  var StyledIcon = import_styled_components.default.div`
1118
1120
  display: inline-flex;
1119
1121
  align-items: center;
@@ -1131,8 +1133,8 @@ var BaseIcon = ({
1131
1133
  variant = "line",
1132
1134
  size = 24,
1133
1135
  color = "currentColor",
1134
- solidContent: solidContent732,
1135
- lineContent: lineContent732,
1136
+ solidContent: solidContent734,
1137
+ lineContent: lineContent734,
1136
1138
  className,
1137
1139
  style,
1138
1140
  "data-testid": testId,
@@ -1140,7 +1142,7 @@ var BaseIcon = ({
1140
1142
  "aria-label": ariaLabel,
1141
1143
  "aria-hidden": ariaHidden
1142
1144
  }) => {
1143
- const svgContent = variant === "line" ? lineContent732 : solidContent732;
1145
+ const svgContent = variant === "line" ? lineContent734 : solidContent734;
1144
1146
  const sizeValue = (0, import_xui_primitives_core.resolveIconSize)(size);
1145
1147
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1146
1148
  StyledIcon,
@@ -1157,12 +1159,12 @@ var BaseIcon = ({
1157
1159
  }
1158
1160
  );
1159
1161
  };
1160
- var solidContent126 = `<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><g id="icon_chevron-down--solid"><path id="Union" d="M7.20706 9L16.7928 9C17.2383 9 17.4614 9.53857 17.1464 9.85355L12.3535 14.6464C12.1582 14.8417 11.8417 14.8417 11.6464 14.6464L6.8535 9.85355C6.53852 9.53857 6.7616 9 7.20706 9Z" style="fill: currentColor"/></g></svg>`;
1161
- var lineContent126 = `<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><g id="icon_chevron-down--line"><path id="Union" d="M19.707 9.70703L12.3536 17.0605C12.1583 17.2558 11.8417 17.2558 11.6464 17.0605L4.29297 9.70703L5.70703 8.29297L12 14.5859L18.293 8.29297L19.707 9.70703Z" style="fill: currentColor"/></g></svg>`;
1162
- var ChevronDown = (props) => /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(BaseIcon, { ...props, solidContent: solidContent126, lineContent: lineContent126 });
1162
+ var solidContent127 = `<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><g id="icon_chevron-down--solid"><path id="Union" d="M7.20706 9L16.7928 9C17.2383 9 17.4614 9.53857 17.1464 9.85355L12.3535 14.6464C12.1582 14.8417 11.8417 14.8417 11.6464 14.6464L6.8535 9.85355C6.53852 9.53857 6.7616 9 7.20706 9Z" style="fill: currentColor"/></g></svg>`;
1163
+ var lineContent127 = `<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><g id="icon_chevron-down--line"><path id="Union" d="M19.707 9.70703L12.3536 17.0605C12.1583 17.2558 11.8417 17.2558 11.6464 17.0605L4.29297 9.70703L5.70703 8.29297L12 14.5859L18.293 8.29297L19.707 9.70703Z" style="fill: currentColor"/></g></svg>`;
1164
+ var ChevronDown = (props) => /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(BaseIcon, { ...props, solidContent: solidContent127, lineContent: lineContent127 });
1163
1165
 
1164
1166
  // src/StatusDropdown.tsx
1165
- var import_jsx_runtime736 = require("react/jsx-runtime");
1167
+ var import_jsx_runtime738 = require("react/jsx-runtime");
1166
1168
  var gapMap = {
1167
1169
  xl: 4,
1168
1170
  lg: 4,
@@ -1245,7 +1247,7 @@ var StatusDropdown = (0, import_react2.forwardRef)(
1245
1247
  setInternalIsOpen(open);
1246
1248
  }
1247
1249
  };
1248
- const trigger = /* @__PURE__ */ (0, import_jsx_runtime736.jsxs)(
1250
+ const trigger = /* @__PURE__ */ (0, import_jsx_runtime738.jsxs)(
1249
1251
  Box,
1250
1252
  {
1251
1253
  ref,
@@ -1290,7 +1292,7 @@ var StatusDropdown = (0, import_react2.forwardRef)(
1290
1292
  outlineOffset: isFocusVisible ? 2 : void 0
1291
1293
  } : void 0,
1292
1294
  children: [
1293
- isWeb && /* @__PURE__ */ (0, import_jsx_runtime736.jsx)(
1295
+ isWeb && /* @__PURE__ */ (0, import_jsx_runtime738.jsx)(
1294
1296
  Box,
1295
1297
  {
1296
1298
  "aria-hidden": true,
@@ -1303,7 +1305,7 @@ var StatusDropdown = (0, import_react2.forwardRef)(
1303
1305
  hoverStyle: { backgroundColor: theme.colors.overlay.mono }
1304
1306
  }
1305
1307
  ),
1306
- dot && /* @__PURE__ */ (0, import_jsx_runtime736.jsx)(
1308
+ dot && /* @__PURE__ */ (0, import_jsx_runtime738.jsx)(
1307
1309
  Box,
1308
1310
  {
1309
1311
  width: sizeStyles.iconSize,
@@ -1311,7 +1313,7 @@ var StatusDropdown = (0, import_react2.forwardRef)(
1311
1313
  alignItems: "center",
1312
1314
  justifyContent: "center",
1313
1315
  flexShrink: 0,
1314
- children: /* @__PURE__ */ (0, import_jsx_runtime736.jsx)(
1316
+ children: /* @__PURE__ */ (0, import_jsx_runtime738.jsx)(
1315
1317
  Box,
1316
1318
  {
1317
1319
  testID: testID ? `${testID}-dot` : "status-dropdown-dot",
@@ -1323,14 +1325,14 @@ var StatusDropdown = (0, import_react2.forwardRef)(
1323
1325
  )
1324
1326
  }
1325
1327
  ),
1326
- /* @__PURE__ */ (0, import_jsx_runtime736.jsx)(
1328
+ /* @__PURE__ */ (0, import_jsx_runtime738.jsx)(
1327
1329
  Box,
1328
1330
  {
1329
1331
  paddingHorizontal: gap,
1330
1332
  flexShrink: 1,
1331
1333
  minWidth: 0,
1332
1334
  ...isWeb ? { overflow: "hidden" } : {},
1333
- children: /* @__PURE__ */ (0, import_jsx_runtime736.jsx)(
1335
+ children: /* @__PURE__ */ (0, import_jsx_runtime738.jsx)(
1334
1336
  Text,
1335
1337
  {
1336
1338
  color: contentColor,
@@ -1353,7 +1355,7 @@ var StatusDropdown = (0, import_react2.forwardRef)(
1353
1355
  )
1354
1356
  }
1355
1357
  ),
1356
- /* @__PURE__ */ (0, import_jsx_runtime736.jsx)(
1358
+ /* @__PURE__ */ (0, import_jsx_runtime738.jsx)(
1357
1359
  Box,
1358
1360
  {
1359
1361
  width: sizeStyles.iconSize,
@@ -1361,7 +1363,7 @@ var StatusDropdown = (0, import_react2.forwardRef)(
1361
1363
  alignItems: "center",
1362
1364
  justifyContent: "center",
1363
1365
  flexShrink: 0,
1364
- children: /* @__PURE__ */ (0, import_jsx_runtime736.jsx)(
1366
+ children: /* @__PURE__ */ (0, import_jsx_runtime738.jsx)(
1365
1367
  Icon,
1366
1368
  {
1367
1369
  size: sizeStyles.iconSize,
@@ -1370,7 +1372,7 @@ var StatusDropdown = (0, import_react2.forwardRef)(
1370
1372
  transform: isOpen ? "rotate(180deg)" : "rotate(0deg)",
1371
1373
  ...isWeb ? { transition: "transform 0.2s ease-in-out" } : {}
1372
1374
  },
1373
- children: /* @__PURE__ */ (0, import_jsx_runtime736.jsx)(ChevronDown, {})
1375
+ children: /* @__PURE__ */ (0, import_jsx_runtime738.jsx)(ChevronDown, {})
1374
1376
  }
1375
1377
  )
1376
1378
  }
@@ -1378,7 +1380,7 @@ var StatusDropdown = (0, import_react2.forwardRef)(
1378
1380
  ]
1379
1381
  }
1380
1382
  );
1381
- return /* @__PURE__ */ (0, import_jsx_runtime736.jsx)(
1383
+ return /* @__PURE__ */ (0, import_jsx_runtime738.jsx)(
1382
1384
  import_xui_context_menu.ContextMenu,
1383
1385
  {
1384
1386
  trigger,