@xsolla/xui-multi-select 0.134.0 → 0.136.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
@@ -1080,14 +1080,10 @@ var StyledIcon3 = import_styled_components5.default.div`
1080
1080
  var Icon4 = ({ children, ...props }) => {
1081
1081
  return /* @__PURE__ */ (0, import_jsx_runtime395.jsx)(StyledIcon3, { ...props, children });
1082
1082
  };
1083
- var SELECTABLE_BORDER_RADIUS = 8;
1084
1083
  var Tag = ({
1085
1084
  size = "md",
1086
1085
  tone = "primary",
1087
1086
  type = "solid",
1088
- variant = "default",
1089
- selected = false,
1090
- onPress,
1091
1087
  children,
1092
1088
  iconLeft,
1093
1089
  iconRight,
@@ -1098,20 +1094,6 @@ var Tag = ({
1098
1094
  const { theme } = (0, import_xui_core.useResolvedTheme)({ themeMode, themeProductContext });
1099
1095
  const sizeStyles = theme.sizing.tag(size);
1100
1096
  const resolveColors = () => {
1101
- if (variant === "selectable") {
1102
- if (selected) {
1103
- return {
1104
- bg: theme.colors.control.brand.secondary.bg,
1105
- text: theme.colors.content.brand.primary,
1106
- border: theme.colors.border.secondary
1107
- };
1108
- }
1109
- return {
1110
- bg: theme.colors.overlay.mono,
1111
- text: theme.colors.content.primary,
1112
- border: theme.colors.border.secondary
1113
- };
1114
- }
1115
1097
  const isOutlined = type === "outlined";
1116
1098
  switch (tone) {
1117
1099
  case "primary":
@@ -1165,16 +1147,12 @@ var Tag = ({
1165
1147
  }
1166
1148
  };
1167
1149
  const { bg, text, border } = resolveColors();
1168
- const isSelectable = variant === "selectable";
1169
- const borderRadius = isSelectable ? SELECTABLE_BORDER_RADIUS : sizeStyles.radius;
1170
1150
  const isIconOnly = !children && (!!iconLeft || !!iconRight);
1171
1151
  return /* @__PURE__ */ (0, import_jsx_runtime396.jsxs)(
1172
1152
  Box2,
1173
1153
  {
1174
- as: isSelectable ? "button" : void 0,
1175
- onPress: isSelectable ? onPress : void 0,
1176
1154
  backgroundColor: bg,
1177
- borderRadius,
1155
+ borderRadius: sizeStyles.radius,
1178
1156
  height: sizeStyles.height,
1179
1157
  width: isIconOnly ? sizeStyles.height : void 0,
1180
1158
  paddingHorizontal: isIconOnly ? 0 : sizeStyles.padding,
@@ -1185,8 +1163,6 @@ var Tag = ({
1185
1163
  borderWidth: sizeStyles.borderWidth,
1186
1164
  borderColor: border,
1187
1165
  borderStyle: "solid",
1188
- cursor: isSelectable ? "pointer" : "default",
1189
- hoverStyle: isSelectable && !selected ? { backgroundColor: theme.colors.control.brand.tertiary.bgHover } : void 0,
1190
1166
  style: {
1191
1167
  overflow: "hidden",
1192
1168
  textOverflow: "ellipsis",