@chekinapp/ui 0.0.68 → 0.0.69

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.cjs CHANGED
@@ -7708,7 +7708,7 @@ var SectionGroupItem = ({
7708
7708
  return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("section", { className: cn("flex flex-col gap-5", className), children: [
7709
7709
  divider && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: cn("h-px w-full bg-[var(--section-group-divider-bg)]") }),
7710
7710
  (title || subtitle) && /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: "flex flex-col gap-1 px-8", children: [
7711
- title && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("h3", { className: "text-sm font-semibold leading-6 text-[var(--section-group-muted-text)]", children: title }),
7711
+ title && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("h3", { className: "text-base font-semibold leading-6 text-[var(--section-group-muted-text)]", children: title }),
7712
7712
  subtitle && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("p", { className: "text-sm font-medium leading-6 text-[var(--section-group-muted-text)]", children: subtitle })
7713
7713
  ] }),
7714
7714
  /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: cn("flex flex-col gap-4 px-8", contentClassName), children })
@@ -9759,6 +9759,7 @@ var getValueArray = (value) => {
9759
9759
  return [];
9760
9760
  };
9761
9761
  var convertStringToValue = (stringValue, option) => {
9762
+ debugger;
9762
9763
  if (option) {
9763
9764
  return option.value;
9764
9765
  }
@@ -9808,6 +9809,7 @@ function TogglesInternal({
9808
9809
  const option2 = options.find((opt) => String(opt.value) === item);
9809
9810
  return convertStringToValue(item, option2);
9810
9811
  });
9812
+ debugger;
9811
9813
  onChange?.(
9812
9814
  typedValues,
9813
9815
  {}
@@ -13693,7 +13695,7 @@ function Fieldset({
13693
13695
  className: cn(
13694
13696
  "absolute box-border inline-flex max-w-full cursor-text items-center pl-[3px] pr-5 transition-all duration-100 ease-in",
13695
13697
  "left-[13px] text-[var(--chekin-color-gray-1)]",
13696
- isEmpty && !isFocused ? "top-[14px]" : "top-[-8px] !pl-1 !pr-[22px]",
13698
+ isEmpty && !isFocused ? "top-[14px]" : "top-[-10px] !pl-1 !pr-[22px]",
13697
13699
  isFocused && "text-[var(--chekin-color-brand-blue)]",
13698
13700
  raised && invalid && "text-[var(--error-message-color)]",
13699
13701
  readOnly && "cursor-default",
@@ -13856,7 +13858,7 @@ var DashboardInput = React53.forwardRef(
13856
13858
  className: cn(
13857
13859
  "relative block min-h-[68px]",
13858
13860
  disabled && "cursor-not-allowed opacity-50",
13859
- loading && "cursor-progress",
13861
+ loading && "cursor-progress opacity-50",
13860
13862
  wrapperClassName,
13861
13863
  className
13862
13864
  ),
@@ -13895,7 +13897,10 @@ var DashboardInput = React53.forwardRef(
13895
13897
  labelId: `${inputId}-label`,
13896
13898
  legend: typeof label === "string" ? label : void 0,
13897
13899
  label,
13898
- tooltip
13900
+ tooltip,
13901
+ labelClassName: cn({
13902
+ "pl-[28px]": !!leftIcon
13903
+ })
13899
13904
  }
13900
13905
  ),
13901
13906
  leftIcon && /* @__PURE__ */ (0, import_jsx_runtime155.jsx)("span", { className: "pointer-events-none absolute left-0 top-0 flex h-full max-w-10 items-center justify-center text-[var(--chekin-color-gray-2)]", children: /* @__PURE__ */ (0, import_jsx_runtime155.jsx)("span", { className: "flex h-full w-10 items-center justify-center", children: leftIcon }) }),
@@ -13938,7 +13943,7 @@ var DashboardInput = React53.forwardRef(
13938
13943
  ),
13939
13944
  sign && /* @__PURE__ */ (0, import_jsx_runtime155.jsx)("span", { className: "pointer-events-none absolute right-[14px] top-0 flex h-full items-center text-[18px] font-medium leading-6 text-[var(--chekin-color-brand-navy)]", children: sign }),
13940
13945
  trailingAdornment && /* @__PURE__ */ (0, import_jsx_runtime155.jsx)("span", { className: "pointer-events-none absolute right-[14px] top-0 flex h-full items-center", children: trailingAdornment }),
13941
- onReset && /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(
13946
+ onReset && !isEmpty && /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(
13942
13947
  "button",
13943
13948
  {
13944
13949
  type: "button",
@@ -13954,13 +13959,13 @@ var DashboardInput = React53.forwardRef(
13954
13959
  {
13955
13960
  type: "button",
13956
13961
  onClick: togglePasswordReveal,
13957
- className: "absolute right-[14px] top-[13px] flex h-[13px] w-[21px] cursor-pointer items-center justify-center border-0 bg-transparent p-0 hover:opacity-85",
13962
+ className: "absolute right-[14px] top-[18px] flex h-[13px] w-[21px] cursor-pointer items-center justify-center border-0 bg-transparent p-0 hover:opacity-85",
13958
13963
  "aria-label": isPasswordRevealed ? "Hide password" : "Show password",
13959
13964
  children: /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(
13960
13965
  import_lucide_react46.Eye,
13961
13966
  {
13967
+ size: 20,
13962
13968
  className: cn(
13963
- "h-[13px] w-[21px]",
13964
13969
  isPasswordRevealed ? "text-[#fc98dd]" : "text-[var(--chekin-color-gray-2)]"
13965
13970
  )
13966
13971
  }
@@ -13968,7 +13973,7 @@ var DashboardInput = React53.forwardRef(
13968
13973
  }
13969
13974
  )
13970
13975
  ] }),
13971
- type === "number" && showNumberButtons && /* @__PURE__ */ (0, import_jsx_runtime155.jsxs)("div", { className: "absolute right-[18px] top-[10px] inline-flex items-center text-right", children: [
13976
+ type === "number" && showNumberButtons && /* @__PURE__ */ (0, import_jsx_runtime155.jsxs)("div", { className: "absolute right-[18px] top-[13px] inline-flex items-center text-right", children: [
13972
13977
  /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(
13973
13978
  "button",
13974
13979
  {