@matchain/matchid-sdk-react 0.1.29 → 0.1.30

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.mjs CHANGED
@@ -694,18 +694,24 @@ function Input({
694
694
  ...props
695
695
  }) {
696
696
  const [inputType, setInputType] = useState(type);
697
- return /* @__PURE__ */ jsxs24("div", { className: `matchid-input-box ${props.value.length > 0 ? "matchid-input-has-content" : ""} ${className}`, children: [
698
- /* @__PURE__ */ jsx37("input", { type: inputType, onChange, ...props, className: "matchid-input-field" }),
699
- props.value.length > 0 && /* @__PURE__ */ jsx37(DeleteRoundIcon, { onClick: (e) => {
700
- if (onChange) {
701
- onChange({ target: { value: "" } });
702
- }
703
- }, className: "matchid-input-delete-icon", color: "var(--matchid-input-delete-icon-color)" }),
704
- type === "password" && /* @__PURE__ */ jsx37("div", { className: "matchid-input-eye-icon", onClick: () => {
705
- setInputType(inputType === "password" ? "text" : "password");
706
- }, children: inputType === "password" ? /* @__PURE__ */ jsx37(CloseEyeIcon, {}) : /* @__PURE__ */ jsx37(OpenEyeIcon, {}) }),
707
- after
708
- ] });
697
+ return /* @__PURE__ */ jsxs24(
698
+ "div",
699
+ {
700
+ className: `matchid-input-box ${props.value.length > 0 ? "matchid-input-has-content" : ""} ${className}`,
701
+ children: [
702
+ /* @__PURE__ */ jsx37("input", { type: inputType, onChange, ...props, className: "matchid-input-field" }),
703
+ props.value.length > 0 && /* @__PURE__ */ jsx37("div", { className: "matchid-input-delete-icon", onClick: (e) => {
704
+ if (onChange) {
705
+ onChange({ target: { value: "" } });
706
+ }
707
+ }, children: /* @__PURE__ */ jsx37(DeleteRoundIcon, { className: "", color: "var(--matchid-input-delete-icon-color)" }) }),
708
+ type === "password" && /* @__PURE__ */ jsx37("div", { className: "matchid-input-eye-icon", onClick: () => {
709
+ setInputType(inputType === "password" ? "text" : "password");
710
+ }, children: inputType === "password" ? /* @__PURE__ */ jsx37(CloseEyeIcon, {}) : /* @__PURE__ */ jsx37(OpenEyeIcon, {}) }),
711
+ after
712
+ ]
713
+ }
714
+ );
709
715
  }
710
716
 
711
717
  // src/components/Field/index.tsx