tccd-ui 0.0.93 → 0.0.94

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.d.mts CHANGED
@@ -154,7 +154,6 @@ interface NumberFieldProps {
154
154
  disabled?: boolean;
155
155
  error?: string;
156
156
  className?: string;
157
- inputClassName?: string;
158
157
  }
159
158
  declare const NumberField: React$1.FC<NumberFieldProps>;
160
159
 
package/dist/index.d.ts CHANGED
@@ -154,7 +154,6 @@ interface NumberFieldProps {
154
154
  disabled?: boolean;
155
155
  error?: string;
156
156
  className?: string;
157
- inputClassName?: string;
158
157
  }
159
158
  declare const NumberField: React$1.FC<NumberFieldProps>;
160
159
 
package/dist/index.js CHANGED
@@ -1631,8 +1631,7 @@ var NumberField = ({
1631
1631
  placeholder = "",
1632
1632
  disabled = false,
1633
1633
  error = "",
1634
- className = "",
1635
- inputClassName = ""
1634
+ className = ""
1636
1635
  }) => {
1637
1636
  const [internalValue, setInternalValue] = (0, import_react13.useState)(value);
1638
1637
  const [dark, setDark] = (0, import_react13.useState)(getDarkModeEnabled());
@@ -1650,7 +1649,13 @@ var NumberField = ({
1650
1649
  onChange(val === "" ? "" : Number(val));
1651
1650
  };
1652
1651
  return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: `flex flex-col ${className}`, children: [
1653
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("label", { className: `mb-1 font-medium ${dark ? "text-gray-200" : "text-gray-700"}`, children: label }),
1652
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1653
+ "label",
1654
+ {
1655
+ className: dark ? "text-gray-200 text-[14px] md:text-[15px] lg:text-[16px] mb-2 font-semibold" : "text-label text-[14px] md:text-[15px] lg:text-[16px] mb-2 font-semibold",
1656
+ children: label
1657
+ }
1658
+ ),
1654
1659
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1655
1660
  "input",
1656
1661
  {
@@ -1662,7 +1667,7 @@ var NumberField = ({
1662
1667
  step,
1663
1668
  placeholder,
1664
1669
  disabled,
1665
- className: `border rounded px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500 ${error ? "border-red-500" : dark ? "border-gray-700 bg-gray-900 text-white placeholder-gray-400" : "border-gray-300 bg-white text-gray-900 placeholder-gray-400"} ${inputClassName}`
1670
+ className: `border-gray-400 rounded-2xl px-2 py-1.5 md:px-3 md:py-2 border outline-none ${error ? dark ? "border-red-700 focus:border-red-600" : "border-red-300 focus:border-red-500 focus:ring-red-500/30" : dark ? "focus:border-primary" : "focus:border-primary"} transition-all duration-300 ease-in-out text-sm ${dark ? "bg-gray-900 text-white placeholder-gray-400 border-gray-600" : ""}`
1666
1671
  }
1667
1672
  ),
1668
1673
  error && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "mt-1 text-sm text-red-500", children: error })