@chekinapp/ui 0.0.38 → 0.0.39

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.cts CHANGED
@@ -54,14 +54,14 @@ declare enum AlertSize {
54
54
  L = "L"
55
55
  }
56
56
  interface AlertBoxProps {
57
- text: string | React$1.ReactNode;
57
+ children: React$1.ReactNode;
58
58
  type?: AlertType;
59
59
  size?: AlertSize;
60
60
  withIcon?: boolean;
61
61
  className?: string;
62
62
  customIcon?: React$1.ReactNode;
63
63
  }
64
- declare function AlertBox({ text, className, withIcon, size, type, customIcon, }: AlertBoxProps): react_jsx_runtime.JSX.Element;
64
+ declare function AlertBox({ children, className, withIcon, size, type, customIcon, }: AlertBoxProps): react_jsx_runtime.JSX.Element;
65
65
  declare namespace AlertBox {
66
66
  var displayName: string;
67
67
  }
package/dist/index.d.ts CHANGED
@@ -54,14 +54,14 @@ declare enum AlertSize {
54
54
  L = "L"
55
55
  }
56
56
  interface AlertBoxProps {
57
- text: string | React$1.ReactNode;
57
+ children: React$1.ReactNode;
58
58
  type?: AlertType;
59
59
  size?: AlertSize;
60
60
  withIcon?: boolean;
61
61
  className?: string;
62
62
  customIcon?: React$1.ReactNode;
63
63
  }
64
- declare function AlertBox({ text, className, withIcon, size, type, customIcon, }: AlertBoxProps): react_jsx_runtime.JSX.Element;
64
+ declare function AlertBox({ children, className, withIcon, size, type, customIcon, }: AlertBoxProps): react_jsx_runtime.JSX.Element;
65
65
  declare namespace AlertBox {
66
66
  var displayName: string;
67
67
  }
package/dist/index.js CHANGED
@@ -141,7 +141,7 @@ var typeStyles = {
141
141
  ["LIGHT" /* LIGHT */]: ""
142
142
  };
143
143
  function AlertBox({
144
- text,
144
+ children,
145
145
  className = "",
146
146
  withIcon = true,
147
147
  size = "L" /* L */,
@@ -161,7 +161,7 @@ function AlertBox({
161
161
  ),
162
162
  children: [
163
163
  isIconVisible && (customIcon || getIcon(type)),
164
- /* @__PURE__ */ jsx2("div", { className: "max-w-4xl text-left font-medium lg:max-w-full", children: text })
164
+ /* @__PURE__ */ jsx2("div", { className: "max-w-4xl text-left font-medium lg:max-w-full", children })
165
165
  ]
166
166
  }
167
167
  );
@@ -10424,7 +10424,7 @@ var FieldTrigger = React32.forwardRef(
10424
10424
  className: cn(
10425
10425
  "absolute left-0 origin-left truncate transition-all duration-200 ease-out",
10426
10426
  hasLabelMeta ? "" : "pointer-events-none",
10427
- isAirbnbVariant ? isRaised ? "top-0 translate-y-0 text-xs leading-5" : "top-1/2 -translate-y-1/2 text-[16px] leading-7" : isRaised ? "-top-2 translate-y-0 bg-white px-1 text-[12px] font-medium leading-4" : "top-1/2 -translate-y-1/2 text-[16px] leading-6",
10427
+ isAirbnbVariant ? isRaised ? "top-[-1px] translate-y-0 text-xs leading-5" : "top-1/2 -translate-y-1/2 text-[16px] leading-7" : isRaised ? "-top-2 translate-y-0 bg-white px-1 text-[12px] font-medium leading-4" : "top-1/2 -translate-y-1/2 text-[16px] leading-6",
10428
10428
  hasInvalidState ? "text-[var(--error-message-color)]" : isAirbnbVariant ? "text-[#6c6c6c]" : "text-[#7A8399]"
10429
10429
  ),
10430
10430
  children: animatedLabel