@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/xui-status-dropdown",
3
- "version": "0.223.0",
3
+ "version": "0.224.0",
4
4
  "main": "./web/index.js",
5
5
  "module": "./web/index.mjs",
6
6
  "types": "./web/index.d.ts",
@@ -13,10 +13,10 @@
13
13
  "test:coverage": "vitest run --coverage"
14
14
  },
15
15
  "dependencies": {
16
- "@xsolla/xui-context-menu": "0.223.0",
17
- "@xsolla/xui-core": "0.223.0",
18
- "@xsolla/xui-primitives-core": "0.223.0",
19
- "@xsolla/xui-status": "0.223.0"
16
+ "@xsolla/xui-context-menu": "0.224.0",
17
+ "@xsolla/xui-core": "0.224.0",
18
+ "@xsolla/xui-primitives-core": "0.224.0",
19
+ "@xsolla/xui-status": "0.224.0"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "react": ">=16.8.0",
package/web/index.js CHANGED
@@ -1144,6 +1144,8 @@ var import_jsx_runtime732 = require("react/jsx-runtime");
1144
1144
  var import_jsx_runtime733 = require("react/jsx-runtime");
1145
1145
  var import_jsx_runtime734 = require("react/jsx-runtime");
1146
1146
  var import_jsx_runtime735 = require("react/jsx-runtime");
1147
+ var import_jsx_runtime736 = require("react/jsx-runtime");
1148
+ var import_jsx_runtime737 = require("react/jsx-runtime");
1147
1149
  var StyledIcon2 = import_styled_components4.default.div`
1148
1150
  display: inline-flex;
1149
1151
  align-items: center;
@@ -1161,8 +1163,8 @@ var BaseIcon = ({
1161
1163
  variant = "line",
1162
1164
  size = 24,
1163
1165
  color = "currentColor",
1164
- solidContent: solidContent732,
1165
- lineContent: lineContent732,
1166
+ solidContent: solidContent734,
1167
+ lineContent: lineContent734,
1166
1168
  className,
1167
1169
  style,
1168
1170
  "data-testid": testId,
@@ -1170,7 +1172,7 @@ var BaseIcon = ({
1170
1172
  "aria-label": ariaLabel,
1171
1173
  "aria-hidden": ariaHidden
1172
1174
  }) => {
1173
- const svgContent = variant === "line" ? lineContent732 : solidContent732;
1175
+ const svgContent = variant === "line" ? lineContent734 : solidContent734;
1174
1176
  const sizeValue = (0, import_xui_primitives_core.resolveIconSize)(size);
1175
1177
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1176
1178
  StyledIcon2,
@@ -1187,12 +1189,12 @@ var BaseIcon = ({
1187
1189
  }
1188
1190
  );
1189
1191
  };
1190
- 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>`;
1191
- 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>`;
1192
- var ChevronDown = (props) => /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(BaseIcon, { ...props, solidContent: solidContent126, lineContent: lineContent126 });
1192
+ 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>`;
1193
+ 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>`;
1194
+ var ChevronDown = (props) => /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(BaseIcon, { ...props, solidContent: solidContent127, lineContent: lineContent127 });
1193
1195
 
1194
1196
  // src/StatusDropdown.tsx
1195
- var import_jsx_runtime736 = require("react/jsx-runtime");
1197
+ var import_jsx_runtime738 = require("react/jsx-runtime");
1196
1198
  var gapMap = {
1197
1199
  xl: 4,
1198
1200
  lg: 4,
@@ -1275,7 +1277,7 @@ var StatusDropdown = (0, import_react3.forwardRef)(
1275
1277
  setInternalIsOpen(open);
1276
1278
  }
1277
1279
  };
1278
- const trigger = /* @__PURE__ */ (0, import_jsx_runtime736.jsxs)(
1280
+ const trigger = /* @__PURE__ */ (0, import_jsx_runtime738.jsxs)(
1279
1281
  Box,
1280
1282
  {
1281
1283
  ref,
@@ -1320,7 +1322,7 @@ var StatusDropdown = (0, import_react3.forwardRef)(
1320
1322
  outlineOffset: isFocusVisible ? 2 : void 0
1321
1323
  } : void 0,
1322
1324
  children: [
1323
- isWeb && /* @__PURE__ */ (0, import_jsx_runtime736.jsx)(
1325
+ isWeb && /* @__PURE__ */ (0, import_jsx_runtime738.jsx)(
1324
1326
  Box,
1325
1327
  {
1326
1328
  "aria-hidden": true,
@@ -1333,7 +1335,7 @@ var StatusDropdown = (0, import_react3.forwardRef)(
1333
1335
  hoverStyle: { backgroundColor: theme.colors.overlay.mono }
1334
1336
  }
1335
1337
  ),
1336
- dot && /* @__PURE__ */ (0, import_jsx_runtime736.jsx)(
1338
+ dot && /* @__PURE__ */ (0, import_jsx_runtime738.jsx)(
1337
1339
  Box,
1338
1340
  {
1339
1341
  width: sizeStyles.iconSize,
@@ -1341,7 +1343,7 @@ var StatusDropdown = (0, import_react3.forwardRef)(
1341
1343
  alignItems: "center",
1342
1344
  justifyContent: "center",
1343
1345
  flexShrink: 0,
1344
- children: /* @__PURE__ */ (0, import_jsx_runtime736.jsx)(
1346
+ children: /* @__PURE__ */ (0, import_jsx_runtime738.jsx)(
1345
1347
  Box,
1346
1348
  {
1347
1349
  testID: testID ? `${testID}-dot` : "status-dropdown-dot",
@@ -1353,14 +1355,14 @@ var StatusDropdown = (0, import_react3.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
  paddingHorizontal: gap,
1360
1362
  flexShrink: 1,
1361
1363
  minWidth: 0,
1362
1364
  ...isWeb ? { overflow: "hidden" } : {},
1363
- children: /* @__PURE__ */ (0, import_jsx_runtime736.jsx)(
1365
+ children: /* @__PURE__ */ (0, import_jsx_runtime738.jsx)(
1364
1366
  Text,
1365
1367
  {
1366
1368
  color: contentColor,
@@ -1383,7 +1385,7 @@ var StatusDropdown = (0, import_react3.forwardRef)(
1383
1385
  )
1384
1386
  }
1385
1387
  ),
1386
- /* @__PURE__ */ (0, import_jsx_runtime736.jsx)(
1388
+ /* @__PURE__ */ (0, import_jsx_runtime738.jsx)(
1387
1389
  Box,
1388
1390
  {
1389
1391
  width: sizeStyles.iconSize,
@@ -1391,7 +1393,7 @@ var StatusDropdown = (0, import_react3.forwardRef)(
1391
1393
  alignItems: "center",
1392
1394
  justifyContent: "center",
1393
1395
  flexShrink: 0,
1394
- children: /* @__PURE__ */ (0, import_jsx_runtime736.jsx)(
1396
+ children: /* @__PURE__ */ (0, import_jsx_runtime738.jsx)(
1395
1397
  Icon,
1396
1398
  {
1397
1399
  size: sizeStyles.iconSize,
@@ -1400,7 +1402,7 @@ var StatusDropdown = (0, import_react3.forwardRef)(
1400
1402
  transform: isOpen ? "rotate(180deg)" : "rotate(0deg)",
1401
1403
  ...isWeb ? { transition: "transform 0.2s ease-in-out" } : {}
1402
1404
  },
1403
- children: /* @__PURE__ */ (0, import_jsx_runtime736.jsx)(ChevronDown, {})
1405
+ children: /* @__PURE__ */ (0, import_jsx_runtime738.jsx)(ChevronDown, {})
1404
1406
  }
1405
1407
  )
1406
1408
  }
@@ -1408,7 +1410,7 @@ var StatusDropdown = (0, import_react3.forwardRef)(
1408
1410
  ]
1409
1411
  }
1410
1412
  );
1411
- return /* @__PURE__ */ (0, import_jsx_runtime736.jsx)(
1413
+ return /* @__PURE__ */ (0, import_jsx_runtime738.jsx)(
1412
1414
  import_xui_context_menu.ContextMenu,
1413
1415
  {
1414
1416
  trigger,