@underverse-ui/underverse 1.0.99 → 1.0.100

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "package": "@underverse-ui/underverse",
3
- "version": "1.0.99",
3
+ "version": "1.0.100",
4
4
  "sourceEntry": "src/index.ts",
5
5
  "totalExports": 225,
6
6
  "exports": [
package/dist/index.cjs CHANGED
@@ -22844,7 +22844,7 @@ var useFormField = () => {
22844
22844
  var FormItemContext = React63.createContext({});
22845
22845
  var FormItem = React63.forwardRef(({ className, ...props }, ref) => {
22846
22846
  const id = React63.useId();
22847
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { ref, className: cn("space-y-2", className), ...props }) });
22847
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { ref, className: cn("group space-y-2", className), ...props }) });
22848
22848
  });
22849
22849
  FormItem.displayName = "FormItem";
22850
22850
  var FormLabel = React63.forwardRef(
@@ -22852,10 +22852,24 @@ var FormLabel = React63.forwardRef(
22852
22852
  const { error, formItemId } = useFormField();
22853
22853
  const config = React63.useContext(FormConfigContext);
22854
22854
  const sizeClass = config.size === "sm" ? "text-xs" : config.size === "lg" ? "text-base" : "text-sm";
22855
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(Label, { ref, className: cn(sizeClass, error && "text-destructive", className), htmlFor: formItemId, ...props, children: [
22856
- children,
22857
- required && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "text-destructive ml-1", children: "*" })
22858
- ] });
22855
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
22856
+ Label,
22857
+ {
22858
+ ref,
22859
+ className: cn(
22860
+ sizeClass,
22861
+ "transition-colors duration-200",
22862
+ error ? "text-destructive" : "group-focus-within:text-primary",
22863
+ className
22864
+ ),
22865
+ htmlFor: formItemId,
22866
+ ...props,
22867
+ children: [
22868
+ children,
22869
+ required && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "text-destructive ml-1", children: "*" })
22870
+ ]
22871
+ }
22872
+ );
22859
22873
  }
22860
22874
  );
22861
22875
  FormLabel.displayName = "FormLabel";