next-recomponents 2.0.40 → 2.0.41

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
@@ -3890,15 +3890,15 @@ function Input({
3890
3890
  const isPassword = props.type === "password";
3891
3891
  const [showPassword, setShowPassword] = (0, import_react4.useState)(false);
3892
3892
  const svg = icon;
3893
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "w-full relative", children: [
3894
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "relative flex items-center border rounded bg-white pr-1 mb-5", children: [
3893
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "w-full relative my-3", children: [
3894
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "relative flex items-center border rounded bg-white pr-1 mb-5 w-full", children: [
3895
3895
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
3896
3896
  "input",
3897
3897
  {
3898
3898
  ...props,
3899
3899
  type: isPassword && showPassword ? "text" : props.type,
3900
3900
  className: [
3901
- "flex p-2 w-full bg-transparent pt-4",
3901
+ "block p-2 w-full bg-transparent min-w-0",
3902
3902
  isPassword && "pr-10",
3903
3903
  value !== "" && !isValid && "bg-red-200 text-black",
3904
3904
  value !== "" && isValid && "bg-green-200 text-black",
@@ -3906,7 +3906,7 @@ function Input({
3906
3906
  ].filter(Boolean).join(" ")
3907
3907
  }
3908
3908
  ),
3909
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("label", { className: "absolute -top-2.5 left-2 text-xs font-bold bg-white px-1", children: [
3909
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("label", { className: "absolute -top-2.5 left-2 text-xs font-bold px-1", children: [
3910
3910
  label,
3911
3911
  (props == null ? void 0 : props.required) && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "text-red-500 ml-1", children: "*" })
3912
3912
  ] }),
@@ -36177,7 +36177,7 @@ function TextArea({
36177
36177
  ...props
36178
36178
  }) {
36179
36179
  const [value, setValue] = (0, import_react6.useState)((props == null ? void 0 : props.value) || "");
36180
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "w-full relative mb-5", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "relative flex items-center border rounded bg-white ", children: [
36180
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "w-full relative my-3", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "relative flex items-center border rounded bg-white ", children: [
36181
36181
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
36182
36182
  "textarea",
36183
36183
  {
@@ -36194,7 +36194,7 @@ function TextArea({
36194
36194
  }
36195
36195
  ),
36196
36196
  " ",
36197
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { className: "absolute -top-2.5 left-2 text-xs font-bold bg-white px-1", children: [
36197
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { className: "absolute -top-2.5 left-2 text-xs font-bold px-1", children: [
36198
36198
  label,
36199
36199
  " ",
36200
36200
  (props == null ? void 0 : props.required) && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "text-red-500", children: "*" })
@@ -36814,7 +36814,7 @@ function Select({
36814
36814
  }
36815
36815
  }
36816
36816
  }, [isOpen]);
36817
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { ref: containerRef, className: "w-full relative mb-5", children: [
36817
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { ref: containerRef, className: "w-full relative my-3", children: [
36818
36818
  /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "relative flex items-center border rounded bg-white", children: [
36819
36819
  /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
36820
36820
  "input",
@@ -36852,7 +36852,7 @@ function Select({
36852
36852
  onKeyDown: handleKeyDown
36853
36853
  }
36854
36854
  ),
36855
- label && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("label", { className: "absolute -top-2.5 left-2 text-xs font-bold bg-white px-1", children: [
36855
+ label && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("label", { className: "absolute -top-2.5 left-2 text-xs font-bold px-1", children: [
36856
36856
  label,
36857
36857
  " ",
36858
36858
  (props == null ? void 0 : props.required) && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "text-red-500", children: "*" })
package/dist/index.mjs CHANGED
@@ -3870,15 +3870,15 @@ function Input({
3870
3870
  const isPassword = props.type === "password";
3871
3871
  const [showPassword, setShowPassword] = useState4(false);
3872
3872
  const svg = icon;
3873
- return /* @__PURE__ */ jsxs4("div", { className: "w-full relative", children: [
3874
- /* @__PURE__ */ jsxs4("div", { className: "relative flex items-center border rounded bg-white pr-1 mb-5", children: [
3873
+ return /* @__PURE__ */ jsxs4("div", { className: "w-full relative my-3", children: [
3874
+ /* @__PURE__ */ jsxs4("div", { className: "relative flex items-center border rounded bg-white pr-1 mb-5 w-full", children: [
3875
3875
  /* @__PURE__ */ jsx5(
3876
3876
  "input",
3877
3877
  {
3878
3878
  ...props,
3879
3879
  type: isPassword && showPassword ? "text" : props.type,
3880
3880
  className: [
3881
- "flex p-2 w-full bg-transparent pt-4",
3881
+ "block p-2 w-full bg-transparent min-w-0",
3882
3882
  isPassword && "pr-10",
3883
3883
  value !== "" && !isValid && "bg-red-200 text-black",
3884
3884
  value !== "" && isValid && "bg-green-200 text-black",
@@ -3886,7 +3886,7 @@ function Input({
3886
3886
  ].filter(Boolean).join(" ")
3887
3887
  }
3888
3888
  ),
3889
- /* @__PURE__ */ jsxs4("label", { className: "absolute -top-2.5 left-2 text-xs font-bold bg-white px-1", children: [
3889
+ /* @__PURE__ */ jsxs4("label", { className: "absolute -top-2.5 left-2 text-xs font-bold px-1", children: [
3890
3890
  label,
3891
3891
  (props == null ? void 0 : props.required) && /* @__PURE__ */ jsx5("span", { className: "text-red-500 ml-1", children: "*" })
3892
3892
  ] }),
@@ -36159,7 +36159,7 @@ function TextArea({
36159
36159
  ...props
36160
36160
  }) {
36161
36161
  const [value, setValue] = useState6((props == null ? void 0 : props.value) || "");
36162
- return /* @__PURE__ */ jsx7("div", { className: "w-full relative mb-5", children: /* @__PURE__ */ jsxs6("div", { className: "relative flex items-center border rounded bg-white ", children: [
36162
+ return /* @__PURE__ */ jsx7("div", { className: "w-full relative my-3", children: /* @__PURE__ */ jsxs6("div", { className: "relative flex items-center border rounded bg-white ", children: [
36163
36163
  /* @__PURE__ */ jsx7(
36164
36164
  "textarea",
36165
36165
  {
@@ -36176,7 +36176,7 @@ function TextArea({
36176
36176
  }
36177
36177
  ),
36178
36178
  " ",
36179
- /* @__PURE__ */ jsxs6("label", { className: "absolute -top-2.5 left-2 text-xs font-bold bg-white px-1", children: [
36179
+ /* @__PURE__ */ jsxs6("label", { className: "absolute -top-2.5 left-2 text-xs font-bold px-1", children: [
36180
36180
  label,
36181
36181
  " ",
36182
36182
  (props == null ? void 0 : props.required) && /* @__PURE__ */ jsx7("span", { className: "text-red-500", children: "*" })
@@ -36800,7 +36800,7 @@ function Select({
36800
36800
  }
36801
36801
  }
36802
36802
  }, [isOpen]);
36803
- return /* @__PURE__ */ jsxs7("div", { ref: containerRef, className: "w-full relative mb-5", children: [
36803
+ return /* @__PURE__ */ jsxs7("div", { ref: containerRef, className: "w-full relative my-3", children: [
36804
36804
  /* @__PURE__ */ jsxs7("div", { className: "relative flex items-center border rounded bg-white", children: [
36805
36805
  /* @__PURE__ */ jsx10(
36806
36806
  "input",
@@ -36838,7 +36838,7 @@ function Select({
36838
36838
  onKeyDown: handleKeyDown
36839
36839
  }
36840
36840
  ),
36841
- label && /* @__PURE__ */ jsxs7("label", { className: "absolute -top-2.5 left-2 text-xs font-bold bg-white px-1", children: [
36841
+ label && /* @__PURE__ */ jsxs7("label", { className: "absolute -top-2.5 left-2 text-xs font-bold px-1", children: [
36842
36842
  label,
36843
36843
  " ",
36844
36844
  (props == null ? void 0 : props.required) && /* @__PURE__ */ jsx10("span", { className: "text-red-500", children: "*" })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-recomponents",
3
- "version": "2.0.40",
3
+ "version": "2.0.41",
4
4
  "description": "description nueva",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -21,13 +21,13 @@ export default function Input({
21
21
  const [showPassword, setShowPassword] = useState(false);
22
22
  const svg = icon;
23
23
  return (
24
- <div className="w-full relative">
25
- <div className="relative flex items-center border rounded bg-white pr-1 mb-5">
24
+ <div className="w-full relative my-3">
25
+ <div className="relative flex items-center border rounded bg-white pr-1 mb-5 w-full">
26
26
  <input
27
27
  {...props}
28
28
  type={isPassword && showPassword ? "text" : props.type}
29
29
  className={[
30
- "flex p-2 w-full bg-transparent pt-4",
30
+ "block p-2 w-full bg-transparent min-w-0",
31
31
  isPassword && "pr-10",
32
32
  value !== "" && !isValid && "bg-red-200 text-black",
33
33
  value !== "" && isValid && "bg-green-200 text-black",
@@ -36,7 +36,7 @@ export default function Input({
36
36
  .filter(Boolean)
37
37
  .join(" ")}
38
38
  />
39
- <label className="absolute -top-2.5 left-2 text-xs font-bold bg-white px-1">
39
+ <label className="absolute -top-2.5 left-2 text-xs font-bold px-1">
40
40
  {label}
41
41
  {props?.required && <span className="text-red-500 ml-1">*</span>}
42
42
  </label>
@@ -119,7 +119,7 @@ export default function Select({
119
119
  }
120
120
  }, [isOpen]);
121
121
  return (
122
- <div ref={containerRef} className="w-full relative mb-5">
122
+ <div ref={containerRef} className="w-full relative my-3">
123
123
  <div className="relative flex items-center border rounded bg-white">
124
124
  <input
125
125
  autoComplete="off"
@@ -163,7 +163,7 @@ export default function Select({
163
163
  onKeyDown={handleKeyDown}
164
164
  />
165
165
  {label && (
166
- <label className="absolute -top-2.5 left-2 text-xs font-bold bg-white px-1">
166
+ <label className="absolute -top-2.5 left-2 text-xs font-bold px-1">
167
167
  {label} {props?.required && <span className="text-red-500">*</span>}
168
168
  </label>
169
169
  )}
@@ -21,7 +21,7 @@ export default function TextArea({
21
21
  }: Props) {
22
22
  const [value, setValue] = useState<string>((props?.value as string) || "");
23
23
  return (
24
- <div className="w-full relative mb-5">
24
+ <div className="w-full relative my-3">
25
25
  <div className="relative flex items-center border rounded bg-white ">
26
26
  <textarea
27
27
  {...props}
@@ -35,7 +35,7 @@ export default function TextArea({
35
35
  onChange?.(e);
36
36
  }}
37
37
  ></textarea>{" "}
38
- <label className="absolute -top-2.5 left-2 text-xs font-bold bg-white px-1">
38
+ <label className="absolute -top-2.5 left-2 text-xs font-bold px-1">
39
39
  {label} {props?.required && <span className="text-red-500">*</span>}
40
40
  </label>
41
41
  {maxLength && (