@codapet/design-system 0.4.9 → 0.5.0

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.mjs CHANGED
@@ -2323,13 +2323,13 @@ function DateInput({
2323
2323
  }
2324
2324
  };
2325
2325
  return /* @__PURE__ */ jsx22("div", { className: cn("relative flex gap-2", className), children: /* @__PURE__ */ jsxs10(Popover, { open, onOpenChange: setOpen, children: [
2326
- /* @__PURE__ */ jsx22(PopoverTrigger, { asChild: true, disabled: isInputDisabled, children: /* @__PURE__ */ jsx22("div", { className: "w-full relative", children: /* @__PURE__ */ jsx22(
2326
+ /* @__PURE__ */ jsx22(PopoverTrigger, { asChild: true, disabled: isInputDisabled, children: /* @__PURE__ */ jsx22("div", { className: "w-full relative group", children: /* @__PURE__ */ jsx22(
2327
2327
  Input,
2328
2328
  {
2329
2329
  id: "date",
2330
2330
  value,
2331
2331
  placeholder: resolvedPlaceholder,
2332
- className: cn("bg-background cursor-pointer", open && "border-blue-500", inputClassName),
2332
+ className: cn("bg-background cursor-pointer", "group-data-[state=open]:border-blue-500 group-data-[state=open]:hover:border-blue-500", inputClassName),
2333
2333
  onChange: handleInputChange,
2334
2334
  onBlur: handleBlur,
2335
2335
  disabled: isInputDisabled,
@@ -2513,7 +2513,7 @@ function DateRangeInput({
2513
2513
  className: cn(
2514
2514
  inputVariants({ size }),
2515
2515
  "bg-background cursor-pointer w-full text-left flex items-center justify-between gap-2 font-normal",
2516
- open && "border-blue-500",
2516
+ "data-[state=open]:border-blue-500 data-[state=open]:hover:border-blue-500",
2517
2517
  isInputDisabled && "pointer-events-none cursor-not-allowed opacity-50",
2518
2518
  inputClassName
2519
2519
  ),
@@ -5309,7 +5309,7 @@ function TimeInput({
5309
5309
  className: cn(
5310
5310
  inputVariants({ size }),
5311
5311
  "bg-background cursor-pointer w-full text-left flex items-center justify-between gap-2 font-normal",
5312
- open && "border-blue-500",
5312
+ "data-[state=open]:border-blue-500 data-[state=open]:hover:border-blue-500",
5313
5313
  inputDisabled && "pointer-events-none cursor-not-allowed opacity-50",
5314
5314
  inputClassName
5315
5315
  ),