@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/web/index.mjs CHANGED
@@ -1014,14 +1014,10 @@ var StyledIcon4 = styled32.div`
1014
1014
  var Icon4 = ({ children, ...props }) => {
1015
1015
  return /* @__PURE__ */ jsx390(StyledIcon4, { ...props, children });
1016
1016
  };
1017
- var SELECTABLE_BORDER_RADIUS = 8;
1018
1017
  var Tag = ({
1019
1018
  size = "md",
1020
1019
  tone = "primary",
1021
1020
  type = "solid",
1022
- variant = "default",
1023
- selected = false,
1024
- onPress,
1025
1021
  children,
1026
1022
  iconLeft,
1027
1023
  iconRight,
@@ -1032,20 +1028,6 @@ var Tag = ({
1032
1028
  const { theme } = useResolvedTheme({ themeMode, themeProductContext });
1033
1029
  const sizeStyles = theme.sizing.tag(size);
1034
1030
  const resolveColors = () => {
1035
- if (variant === "selectable") {
1036
- if (selected) {
1037
- return {
1038
- bg: theme.colors.control.brand.secondary.bg,
1039
- text: theme.colors.content.brand.primary,
1040
- border: theme.colors.border.secondary
1041
- };
1042
- }
1043
- return {
1044
- bg: theme.colors.overlay.mono,
1045
- text: theme.colors.content.primary,
1046
- border: theme.colors.border.secondary
1047
- };
1048
- }
1049
1031
  const isOutlined = type === "outlined";
1050
1032
  switch (tone) {
1051
1033
  case "primary":
@@ -1099,16 +1081,12 @@ var Tag = ({
1099
1081
  }
1100
1082
  };
1101
1083
  const { bg, text, border } = resolveColors();
1102
- const isSelectable = variant === "selectable";
1103
- const borderRadius = isSelectable ? SELECTABLE_BORDER_RADIUS : sizeStyles.radius;
1104
1084
  const isIconOnly = !children && (!!iconLeft || !!iconRight);
1105
1085
  return /* @__PURE__ */ jsxs(
1106
1086
  Box2,
1107
1087
  {
1108
- as: isSelectable ? "button" : void 0,
1109
- onPress: isSelectable ? onPress : void 0,
1110
1088
  backgroundColor: bg,
1111
- borderRadius,
1089
+ borderRadius: sizeStyles.radius,
1112
1090
  height: sizeStyles.height,
1113
1091
  width: isIconOnly ? sizeStyles.height : void 0,
1114
1092
  paddingHorizontal: isIconOnly ? 0 : sizeStyles.padding,
@@ -1119,8 +1097,6 @@ var Tag = ({
1119
1097
  borderWidth: sizeStyles.borderWidth,
1120
1098
  borderColor: border,
1121
1099
  borderStyle: "solid",
1122
- cursor: isSelectable ? "pointer" : "default",
1123
- hoverStyle: isSelectable && !selected ? { backgroundColor: theme.colors.control.brand.tertiary.bgHover } : void 0,
1124
1100
  style: {
1125
1101
  overflow: "hidden",
1126
1102
  textOverflow: "ellipsis",