onekijs-ui 0.20.4 → 0.20.5

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/dist/index.js CHANGED
@@ -6641,9 +6641,9 @@ const SelectIconComponent = ({ onClick, open, loading }) => {
6641
6641
  };
6642
6642
 
6643
6643
  const SelectTokenComponent = ({ token, onRemove, index, }) => {
6644
- return (React.createElement("div", { className: "o-select-token" },
6644
+ return (React.createElement("div", { className: `o-select-token${token.disabled ? ' o-select-token-disabled' : ''}` },
6645
6645
  React.createElement("div", { className: "o-select-token-text", key: "o-select-token-text" }, token.text),
6646
- React.createElement("div", { className: "o-select-token-remove", key: "o-select-token-remove", onClick: (e) => {
6646
+ !token.disabled && React.createElement("div", { className: "o-select-token-remove", key: "o-select-token-remove", onClick: (e) => {
6647
6647
  onRemove(token, index);
6648
6648
  e.stopPropagation();
6649
6649
  } }, "\u2716")));