@firecms/ui 3.0.0-canary.50 → 3.0.0-canary.51

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,4 +1,7 @@
1
1
  import * as React from "react";
2
2
  import * as LabelPrimitive from "@radix-ui/react-label";
3
- declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
3
+ declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & {
4
+ border?: boolean | undefined;
5
+ onClick?: React.MouseEventHandler<HTMLLabelElement> | undefined;
6
+ } & React.RefAttributes<HTMLLabelElement>>;
4
7
  export { Label };
@@ -13,7 +13,7 @@ export type TextFieldProps<T extends string | number> = {
13
13
  endAdornment?: React.ReactNode;
14
14
  autoFocus?: boolean;
15
15
  placeholder?: string;
16
- size?: "small" | "medium";
16
+ size?: "smallest" | "small" | "medium";
17
17
  className?: string;
18
18
  style?: React.CSSProperties;
19
19
  inputClassName?: string;
package/dist/index.es.js CHANGED
@@ -14771,11 +14771,21 @@ const we = "hover:bg-slate-200 hover:bg-opacity-75 dark:hover:bg-gray-700 dark:h
14771
14771
  ),
14772
14772
  children: n
14773
14773
  }
14774
- ), fn = k.forwardRef(Ae), An = K.forwardRef(({ className: n, ...t }, r) => /* @__PURE__ */ e(
14774
+ ), fn = k.forwardRef(Ae), An = K.forwardRef(({
14775
+ className: n,
14776
+ ...t
14777
+ }, r) => /* @__PURE__ */ e(
14775
14778
  bn.Root,
14776
14779
  {
14777
14780
  ref: r,
14778
- className: _("text-sm font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70", j, n),
14781
+ onClick: t.onClick,
14782
+ className: _(
14783
+ "text-sm font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
14784
+ t.border && "border border-gray-300 dark:border-gray-700 rounded-md px-3 py-1.5",
14785
+ t.onClick && "hover:cursor-pointer hover:bg-gray-200 dark:hover:bg-gray-800",
14786
+ j,
14787
+ n
14788
+ ),
14779
14789
  ...t
14780
14790
  }
14781
14791
  ));
@@ -17057,7 +17067,7 @@ function qe({
17057
17067
  "rounded-md",
17058
17068
  i ? In : A,
17059
17069
  l ? G : z,
17060
- d === "small" ? "min-h-[48px]" : "min-h-[64px]",
17070
+ d === "smallest" ? "min-h-[32px]" : d === "small" ? "min-h-[48px]" : "min-h-[64px]",
17061
17071
  r ? d === "medium" ? "pt-[28px] pb-2" : "pt-4 pb-2" : "py-2",
17062
17072
  D ? "text-text-primary dark:text-text-primary-dark" : "",
17063
17073
  f ? "pr-10" : "pr-3",
@@ -17082,6 +17092,7 @@ function qe({
17082
17092
  l ? G : z,
17083
17093
  s ? "border border-red-500 dark:border-red-600" : "",
17084
17094
  {
17095
+ "min-h-[32px]": !i && d === "smallest",
17085
17096
  "min-h-[48px]": !i && d === "small",
17086
17097
  "min-h-[64px]": !i && d === "medium"
17087
17098
  },