@codapet/design-system 0.4.8 → 0.4.9
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 +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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
|
|
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
|
@@ -2329,7 +2329,7 @@ function DateInput({
|
|
|
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", open && "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
|
+
open && "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
|
+
open && "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",
|