@xsolla/xui-status-dropdown 0.222.0 → 0.223.1
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 +19 -17
- package/native/index.js.map +1 -1
- package/native/index.mjs +18 -16
- package/native/index.mjs.map +1 -1
- package/package.json +5 -5
- package/web/index.js +19 -17
- package/web/index.js.map +1 -1
- package/web/index.mjs +18 -16
- package/web/index.mjs.map +1 -1
package/native/index.mjs
CHANGED
|
@@ -1085,6 +1085,8 @@ import { jsx as jsx729 } from "react/jsx-runtime";
|
|
|
1085
1085
|
import { jsx as jsx730 } from "react/jsx-runtime";
|
|
1086
1086
|
import { jsx as jsx731 } from "react/jsx-runtime";
|
|
1087
1087
|
import { jsx as jsx732 } from "react/jsx-runtime";
|
|
1088
|
+
import { jsx as jsx733 } from "react/jsx-runtime";
|
|
1089
|
+
import { jsx as jsx734 } from "react/jsx-runtime";
|
|
1088
1090
|
var StyledIcon = styled.div`
|
|
1089
1091
|
display: inline-flex;
|
|
1090
1092
|
align-items: center;
|
|
@@ -1102,8 +1104,8 @@ var BaseIcon = ({
|
|
|
1102
1104
|
variant = "line",
|
|
1103
1105
|
size = 24,
|
|
1104
1106
|
color = "currentColor",
|
|
1105
|
-
solidContent:
|
|
1106
|
-
lineContent:
|
|
1107
|
+
solidContent: solidContent734,
|
|
1108
|
+
lineContent: lineContent734,
|
|
1107
1109
|
className,
|
|
1108
1110
|
style,
|
|
1109
1111
|
"data-testid": testId,
|
|
@@ -1111,7 +1113,7 @@ var BaseIcon = ({
|
|
|
1111
1113
|
"aria-label": ariaLabel,
|
|
1112
1114
|
"aria-hidden": ariaHidden
|
|
1113
1115
|
}) => {
|
|
1114
|
-
const svgContent = variant === "line" ?
|
|
1116
|
+
const svgContent = variant === "line" ? lineContent734 : solidContent734;
|
|
1115
1117
|
const sizeValue = resolveIconSize(size);
|
|
1116
1118
|
return /* @__PURE__ */ jsx4(
|
|
1117
1119
|
StyledIcon,
|
|
@@ -1128,12 +1130,12 @@ var BaseIcon = ({
|
|
|
1128
1130
|
}
|
|
1129
1131
|
);
|
|
1130
1132
|
};
|
|
1131
|
-
var
|
|
1132
|
-
var
|
|
1133
|
-
var ChevronDown = (props) => /* @__PURE__ */
|
|
1133
|
+
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>`;
|
|
1134
|
+
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>`;
|
|
1135
|
+
var ChevronDown = (props) => /* @__PURE__ */ jsx128(BaseIcon, { ...props, solidContent: solidContent127, lineContent: lineContent127 });
|
|
1134
1136
|
|
|
1135
1137
|
// src/StatusDropdown.tsx
|
|
1136
|
-
import { jsx as
|
|
1138
|
+
import { jsx as jsx735, jsxs } from "react/jsx-runtime";
|
|
1137
1139
|
var gapMap = {
|
|
1138
1140
|
xl: 4,
|
|
1139
1141
|
lg: 4,
|
|
@@ -1261,7 +1263,7 @@ var StatusDropdown = forwardRef(
|
|
|
1261
1263
|
outlineOffset: isFocusVisible ? 2 : void 0
|
|
1262
1264
|
} : void 0,
|
|
1263
1265
|
children: [
|
|
1264
|
-
isWeb && /* @__PURE__ */
|
|
1266
|
+
isWeb && /* @__PURE__ */ jsx735(
|
|
1265
1267
|
Box,
|
|
1266
1268
|
{
|
|
1267
1269
|
"aria-hidden": true,
|
|
@@ -1274,7 +1276,7 @@ var StatusDropdown = forwardRef(
|
|
|
1274
1276
|
hoverStyle: { backgroundColor: theme.colors.overlay.mono }
|
|
1275
1277
|
}
|
|
1276
1278
|
),
|
|
1277
|
-
dot && /* @__PURE__ */
|
|
1279
|
+
dot && /* @__PURE__ */ jsx735(
|
|
1278
1280
|
Box,
|
|
1279
1281
|
{
|
|
1280
1282
|
width: sizeStyles.iconSize,
|
|
@@ -1282,7 +1284,7 @@ var StatusDropdown = forwardRef(
|
|
|
1282
1284
|
alignItems: "center",
|
|
1283
1285
|
justifyContent: "center",
|
|
1284
1286
|
flexShrink: 0,
|
|
1285
|
-
children: /* @__PURE__ */
|
|
1287
|
+
children: /* @__PURE__ */ jsx735(
|
|
1286
1288
|
Box,
|
|
1287
1289
|
{
|
|
1288
1290
|
testID: testID ? `${testID}-dot` : "status-dropdown-dot",
|
|
@@ -1294,14 +1296,14 @@ var StatusDropdown = forwardRef(
|
|
|
1294
1296
|
)
|
|
1295
1297
|
}
|
|
1296
1298
|
),
|
|
1297
|
-
/* @__PURE__ */
|
|
1299
|
+
/* @__PURE__ */ jsx735(
|
|
1298
1300
|
Box,
|
|
1299
1301
|
{
|
|
1300
1302
|
paddingHorizontal: gap,
|
|
1301
1303
|
flexShrink: 1,
|
|
1302
1304
|
minWidth: 0,
|
|
1303
1305
|
...isWeb ? { overflow: "hidden" } : {},
|
|
1304
|
-
children: /* @__PURE__ */
|
|
1306
|
+
children: /* @__PURE__ */ jsx735(
|
|
1305
1307
|
Text,
|
|
1306
1308
|
{
|
|
1307
1309
|
color: contentColor,
|
|
@@ -1324,7 +1326,7 @@ var StatusDropdown = forwardRef(
|
|
|
1324
1326
|
)
|
|
1325
1327
|
}
|
|
1326
1328
|
),
|
|
1327
|
-
/* @__PURE__ */
|
|
1329
|
+
/* @__PURE__ */ jsx735(
|
|
1328
1330
|
Box,
|
|
1329
1331
|
{
|
|
1330
1332
|
width: sizeStyles.iconSize,
|
|
@@ -1332,7 +1334,7 @@ var StatusDropdown = forwardRef(
|
|
|
1332
1334
|
alignItems: "center",
|
|
1333
1335
|
justifyContent: "center",
|
|
1334
1336
|
flexShrink: 0,
|
|
1335
|
-
children: /* @__PURE__ */
|
|
1337
|
+
children: /* @__PURE__ */ jsx735(
|
|
1336
1338
|
Icon,
|
|
1337
1339
|
{
|
|
1338
1340
|
size: sizeStyles.iconSize,
|
|
@@ -1341,7 +1343,7 @@ var StatusDropdown = forwardRef(
|
|
|
1341
1343
|
transform: isOpen ? "rotate(180deg)" : "rotate(0deg)",
|
|
1342
1344
|
...isWeb ? { transition: "transform 0.2s ease-in-out" } : {}
|
|
1343
1345
|
},
|
|
1344
|
-
children: /* @__PURE__ */
|
|
1346
|
+
children: /* @__PURE__ */ jsx735(ChevronDown, {})
|
|
1345
1347
|
}
|
|
1346
1348
|
)
|
|
1347
1349
|
}
|
|
@@ -1349,7 +1351,7 @@ var StatusDropdown = forwardRef(
|
|
|
1349
1351
|
]
|
|
1350
1352
|
}
|
|
1351
1353
|
);
|
|
1352
|
-
return /* @__PURE__ */
|
|
1354
|
+
return /* @__PURE__ */ jsx735(
|
|
1353
1355
|
ContextMenu,
|
|
1354
1356
|
{
|
|
1355
1357
|
trigger,
|