lecom-ui 5.3.95 → 5.3.96
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.
|
@@ -123,7 +123,10 @@ function DatePicker({
|
|
|
123
123
|
borderColor: "bg-grey-500",
|
|
124
124
|
borderWidth: 1
|
|
125
125
|
},
|
|
126
|
-
className:
|
|
126
|
+
className: cn(
|
|
127
|
+
"relative cursor-text",
|
|
128
|
+
className?.includes("w-full") ? "w-full" : "w-fit"
|
|
129
|
+
)
|
|
127
130
|
},
|
|
128
131
|
/* @__PURE__ */ React.createElement("div", { className: "absolute left-2 top-1/2 -translate-y-1/2 h-8 w-8 flex items-center justify-center pointer-events-none" }, /* @__PURE__ */ React.createElement(CalendarIcon, { className: "h-4 w-4 text-grey-600" })),
|
|
129
132
|
/* @__PURE__ */ React.createElement(
|
|
@@ -137,7 +140,8 @@ function DatePicker({
|
|
|
137
140
|
placeholder,
|
|
138
141
|
variant: inputVariant,
|
|
139
142
|
className: cn(
|
|
140
|
-
"
|
|
143
|
+
"pl-10 border-none focus:border-none focus:ring-0",
|
|
144
|
+
className?.includes("w-full") ? "w-full" : "w-auto",
|
|
141
145
|
status === "error" && "border-red-600 focus:border-red-600 focus:ring-red-600",
|
|
142
146
|
className
|
|
143
147
|
)
|
package/dist/index.d.ts
CHANGED
|
@@ -756,9 +756,9 @@ interface HeaderProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<
|
|
|
756
756
|
}
|
|
757
757
|
|
|
758
758
|
declare const inputVariants: (props?: ({
|
|
759
|
-
variant?: "
|
|
760
|
-
size?: "small" | "
|
|
761
|
-
radius?: "small" | "
|
|
759
|
+
variant?: "filled" | "default" | "borderless" | null | undefined;
|
|
760
|
+
size?: "small" | "large" | "default" | null | undefined;
|
|
761
|
+
radius?: "small" | "large" | "default" | "full" | null | undefined;
|
|
762
762
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
763
763
|
interface InputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'size' | 'sufix' | 'prefix'>, VariantProps<typeof inputVariants> {
|
|
764
764
|
sufix?: React$1.ReactNode;
|
|
@@ -963,7 +963,7 @@ declare const RadioGroup: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimi
|
|
|
963
963
|
declare const RadioGroupItem: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
964
964
|
|
|
965
965
|
declare const ResizablePanelGroup: ({ className, ...props }: React$1.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => React$1.JSX.Element;
|
|
966
|
-
declare const ResizablePanel: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLElement | HTMLOListElement | HTMLLIElement | HTMLAnchorElement | HTMLSpanElement | HTMLDivElement |
|
|
966
|
+
declare const ResizablePanel: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLButtonElement | HTMLElement | HTMLOListElement | HTMLLIElement | HTMLAnchorElement | HTMLSpanElement | HTMLDivElement | HTMLHeadingElement | HTMLParagraphElement | HTMLLabelElement | HTMLInputElement | HTMLUListElement | HTMLObjectElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableCaptionElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLFormElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLImageElement | HTMLLegendElement | HTMLLinkElement | HTMLMapElement | HTMLMenuElement | HTMLMetaElement | HTMLMeterElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLPictureElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSelectElement | HTMLSlotElement | HTMLSourceElement | HTMLStyleElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTemplateElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | HTMLTableRowElement | HTMLTrackElement | HTMLVideoElement>, "id" | "onResize"> & {
|
|
967
967
|
className?: string;
|
|
968
968
|
collapsedSize?: number | undefined;
|
|
969
969
|
collapsible?: boolean | undefined;
|
|
@@ -1129,9 +1129,9 @@ declare const TabsTrigger: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.
|
|
|
1129
1129
|
declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1130
1130
|
|
|
1131
1131
|
declare const textareaVariants: (props?: ({
|
|
1132
|
-
variant?: "
|
|
1133
|
-
size?: "small" | "
|
|
1134
|
-
radius?: "small" | "
|
|
1132
|
+
variant?: "filled" | "default" | "borderless" | null | undefined;
|
|
1133
|
+
size?: "small" | "large" | "default" | null | undefined;
|
|
1134
|
+
radius?: "small" | "large" | "default" | "full" | null | undefined;
|
|
1135
1135
|
resize?: "default" | "both" | "horizontal" | "vertical" | "vertical-limited" | null | undefined;
|
|
1136
1136
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1137
1137
|
interface TextareaProps extends React$1.ComponentProps<'textarea'>, VariantProps<typeof textareaVariants> {
|
|
@@ -1271,7 +1271,7 @@ declare const SheetClose: React$1.ForwardRefExoticComponent<DialogPrimitive.Dial
|
|
|
1271
1271
|
declare const SheetPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
1272
1272
|
declare const SheetOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1273
1273
|
declare const sheetVariants: (props?: ({
|
|
1274
|
-
side?: "
|
|
1274
|
+
side?: "top" | "bottom" | "right" | "left" | null | undefined;
|
|
1275
1275
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1276
1276
|
interface SheetContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
1277
1277
|
}
|