@codapet/design-system 0.4.8 → 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.d.mts CHANGED
@@ -601,7 +601,7 @@ interface TimeInputProps {
601
601
  icon?: React$1.ReactNode;
602
602
  formatDisplay?: (time: TimeValue) => string;
603
603
  }
604
- declare function TimeInput({ time, setTime, timeFormat, minuteStep, inputDisabled, className, inputClassName, size, placeholder, icon, formatDisplay, }: TimeInputProps): react_jsx_runtime.JSX.Element;
604
+ declare function TimeInput({ time, setTime, timeFormat, minuteStep, inputDisabled, className, inputClassName, size, placeholder, icon, formatDisplay }: TimeInputProps): react_jsx_runtime.JSX.Element;
605
605
 
606
606
  declare const toggleVariants: (props?: ({
607
607
  variant?: "default" | "outline" | null | undefined;
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", 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,6 +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
+ "data-[state=open]:border-blue-500 data-[state=open]:hover:border-blue-500",
2516
2517
  isInputDisabled && "pointer-events-none cursor-not-allowed opacity-50",
2517
2518
  inputClassName
2518
2519
  ),
@@ -5308,6 +5309,7 @@ function TimeInput({
5308
5309
  className: cn(
5309
5310
  inputVariants({ size }),
5310
5311
  "bg-background cursor-pointer w-full text-left flex items-center justify-between gap-2 font-normal",
5312
+ "data-[state=open]:border-blue-500 data-[state=open]:hover:border-blue-500",
5311
5313
  inputDisabled && "pointer-events-none cursor-not-allowed opacity-50",
5312
5314
  inputClassName
5313
5315
  ),
@@ -5339,7 +5341,7 @@ function TimeInput({
5339
5341
  },
5340
5342
  h
5341
5343
  )) }) }),
5342
- /* @__PURE__ */ jsx49("div", { className: "h-56 w-16 overflow-y-auto overscroll-y-contain [-webkit-overflow-scrolling:touch]", children: /* @__PURE__ */ jsx49("div", { ref: minutesRef, className: "flex flex-col p-1 ", children: minutesList.map((m) => /* @__PURE__ */ jsx49(
5344
+ /* @__PURE__ */ jsx49("div", { className: "h-56 w-16 overflow-y-auto overscroll-y-contain [-webkit-overflow-scrolling:touch]", children: /* @__PURE__ */ jsx49("div", { ref: minutesRef, className: cn("flex flex-col p-1", minutesList.length <= 12 && "h-full justify-center"), children: minutesList.map((m) => /* @__PURE__ */ jsx49(
5343
5345
  Button,
5344
5346
  {
5345
5347
  variant: "ghost",