@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 +6 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -10643,15 +10643,18 @@ TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
|
10643
10643
|
import * as React58 from "react";
|
|
10644
10644
|
import { jsx as jsx32, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
10645
10645
|
var Input = React58.forwardRef(
|
|
10646
|
-
({ className, type, id, label, ...props }, ref) => {
|
|
10646
|
+
({ className, type, id, label, required, ...props }, ref) => {
|
|
10647
10647
|
const idGenerate = id ? id : label && `field-${Date.now()}-${Math.random() * 1e5}`;
|
|
10648
10648
|
return /* @__PURE__ */ jsxs10("div", { className: "cnc-w-full", children: [
|
|
10649
|
-
label && /* @__PURE__ */
|
|
10649
|
+
label && /* @__PURE__ */ jsxs10(
|
|
10650
10650
|
"label",
|
|
10651
10651
|
{
|
|
10652
10652
|
htmlFor: idGenerate,
|
|
10653
10653
|
className: "cnc-block cnc-text-sm cnc-mb-1 cnc-font-medium cnc-text-brand-gray-600",
|
|
10654
|
-
children:
|
|
10654
|
+
children: [
|
|
10655
|
+
label,
|
|
10656
|
+
required && /* @__PURE__ */ jsx32("span", { className: "text-red-500", children: " *" })
|
|
10657
|
+
]
|
|
10655
10658
|
}
|
|
10656
10659
|
),
|
|
10657
10660
|
/* @__PURE__ */ jsx32(
|