@cnc-ti/layout-basic 8.3.28 → 8.3.29

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
@@ -10759,15 +10759,18 @@ TabsContent.displayName = TabsPrimitive.Content.displayName;
10759
10759
  var React58 = __toESM(require("react"));
10760
10760
  var import_jsx_runtime32 = require("react/jsx-runtime");
10761
10761
  var Input = React58.forwardRef(
10762
- ({ className, type, id, label, ...props }, ref) => {
10762
+ ({ className, type, id, label, required, ...props }, ref) => {
10763
10763
  const idGenerate = id ? id : label && `field-${Date.now()}-${Math.random() * 1e5}`;
10764
10764
  return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "cnc-w-full", children: [
10765
- label && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
10765
+ label && /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
10766
10766
  "label",
10767
10767
  {
10768
10768
  htmlFor: idGenerate,
10769
10769
  className: "cnc-block cnc-text-sm cnc-mb-1 cnc-font-medium cnc-text-brand-gray-600",
10770
- children: label
10770
+ children: [
10771
+ label,
10772
+ required && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "text-red-500", children: " *" })
10773
+ ]
10771
10774
  }
10772
10775
  ),
10773
10776
  /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(