@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/web/index.mjs CHANGED
@@ -1108,6 +1108,8 @@ import { jsx as jsx729 } from "react/jsx-runtime";
1108
1108
  import { jsx as jsx730 } from "react/jsx-runtime";
1109
1109
  import { jsx as jsx731 } from "react/jsx-runtime";
1110
1110
  import { jsx as jsx732 } from "react/jsx-runtime";
1111
+ import { jsx as jsx733 } from "react/jsx-runtime";
1112
+ import { jsx as jsx734 } from "react/jsx-runtime";
1111
1113
  var StyledIcon2 = styled4.div`
1112
1114
  display: inline-flex;
1113
1115
  align-items: center;
@@ -1125,8 +1127,8 @@ var BaseIcon = ({
1125
1127
  variant = "line",
1126
1128
  size = 24,
1127
1129
  color = "currentColor",
1128
- solidContent: solidContent732,
1129
- lineContent: lineContent732,
1130
+ solidContent: solidContent734,
1131
+ lineContent: lineContent734,
1130
1132
  className,
1131
1133
  style,
1132
1134
  "data-testid": testId,
@@ -1134,7 +1136,7 @@ var BaseIcon = ({
1134
1136
  "aria-label": ariaLabel,
1135
1137
  "aria-hidden": ariaHidden
1136
1138
  }) => {
1137
- const svgContent = variant === "line" ? lineContent732 : solidContent732;
1139
+ const svgContent = variant === "line" ? lineContent734 : solidContent734;
1138
1140
  const sizeValue = resolveIconSize(size);
1139
1141
  return /* @__PURE__ */ jsx4(
1140
1142
  StyledIcon2,
@@ -1151,12 +1153,12 @@ var BaseIcon = ({
1151
1153
  }
1152
1154
  );
1153
1155
  };
1154
- 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>`;
1155
- 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>`;
1156
- var ChevronDown = (props) => /* @__PURE__ */ jsx127(BaseIcon, { ...props, solidContent: solidContent126, lineContent: lineContent126 });
1156
+ 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>`;
1157
+ 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>`;
1158
+ var ChevronDown = (props) => /* @__PURE__ */ jsx128(BaseIcon, { ...props, solidContent: solidContent127, lineContent: lineContent127 });
1157
1159
 
1158
1160
  // src/StatusDropdown.tsx
1159
- import { jsx as jsx733, jsxs } from "react/jsx-runtime";
1161
+ import { jsx as jsx735, jsxs } from "react/jsx-runtime";
1160
1162
  var gapMap = {
1161
1163
  xl: 4,
1162
1164
  lg: 4,
@@ -1284,7 +1286,7 @@ var StatusDropdown = forwardRef(
1284
1286
  outlineOffset: isFocusVisible ? 2 : void 0
1285
1287
  } : void 0,
1286
1288
  children: [
1287
- isWeb && /* @__PURE__ */ jsx733(
1289
+ isWeb && /* @__PURE__ */ jsx735(
1288
1290
  Box,
1289
1291
  {
1290
1292
  "aria-hidden": true,
@@ -1297,7 +1299,7 @@ var StatusDropdown = forwardRef(
1297
1299
  hoverStyle: { backgroundColor: theme.colors.overlay.mono }
1298
1300
  }
1299
1301
  ),
1300
- dot && /* @__PURE__ */ jsx733(
1302
+ dot && /* @__PURE__ */ jsx735(
1301
1303
  Box,
1302
1304
  {
1303
1305
  width: sizeStyles.iconSize,
@@ -1305,7 +1307,7 @@ var StatusDropdown = forwardRef(
1305
1307
  alignItems: "center",
1306
1308
  justifyContent: "center",
1307
1309
  flexShrink: 0,
1308
- children: /* @__PURE__ */ jsx733(
1310
+ children: /* @__PURE__ */ jsx735(
1309
1311
  Box,
1310
1312
  {
1311
1313
  testID: testID ? `${testID}-dot` : "status-dropdown-dot",
@@ -1317,14 +1319,14 @@ var StatusDropdown = forwardRef(
1317
1319
  )
1318
1320
  }
1319
1321
  ),
1320
- /* @__PURE__ */ jsx733(
1322
+ /* @__PURE__ */ jsx735(
1321
1323
  Box,
1322
1324
  {
1323
1325
  paddingHorizontal: gap,
1324
1326
  flexShrink: 1,
1325
1327
  minWidth: 0,
1326
1328
  ...isWeb ? { overflow: "hidden" } : {},
1327
- children: /* @__PURE__ */ jsx733(
1329
+ children: /* @__PURE__ */ jsx735(
1328
1330
  Text,
1329
1331
  {
1330
1332
  color: contentColor,
@@ -1347,7 +1349,7 @@ var StatusDropdown = forwardRef(
1347
1349
  )
1348
1350
  }
1349
1351
  ),
1350
- /* @__PURE__ */ jsx733(
1352
+ /* @__PURE__ */ jsx735(
1351
1353
  Box,
1352
1354
  {
1353
1355
  width: sizeStyles.iconSize,
@@ -1355,7 +1357,7 @@ var StatusDropdown = forwardRef(
1355
1357
  alignItems: "center",
1356
1358
  justifyContent: "center",
1357
1359
  flexShrink: 0,
1358
- children: /* @__PURE__ */ jsx733(
1360
+ children: /* @__PURE__ */ jsx735(
1359
1361
  Icon,
1360
1362
  {
1361
1363
  size: sizeStyles.iconSize,
@@ -1364,7 +1366,7 @@ var StatusDropdown = forwardRef(
1364
1366
  transform: isOpen ? "rotate(180deg)" : "rotate(0deg)",
1365
1367
  ...isWeb ? { transition: "transform 0.2s ease-in-out" } : {}
1366
1368
  },
1367
- children: /* @__PURE__ */ jsx733(ChevronDown, {})
1369
+ children: /* @__PURE__ */ jsx735(ChevronDown, {})
1368
1370
  }
1369
1371
  )
1370
1372
  }
@@ -1372,7 +1374,7 @@ var StatusDropdown = forwardRef(
1372
1374
  ]
1373
1375
  }
1374
1376
  );
1375
- return /* @__PURE__ */ jsx733(
1377
+ return /* @__PURE__ */ jsx735(
1376
1378
  ContextMenu,
1377
1379
  {
1378
1380
  trigger,