lecom-ui 5.4.38 → 5.4.39
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.
|
@@ -160,7 +160,6 @@ const Sidebar = React.forwardRef(
|
|
|
160
160
|
className: cn(
|
|
161
161
|
"duration-200 relative inset-y-0 z-10 hidden h-full w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex border-grey-400",
|
|
162
162
|
side === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] group-data-[collapsible=offcanvas]:!w-0 group-data-[collapsible=offcanvas]:group-data-[state=expanded]:!w-[--sidebar-width-icon] group-data-[collapsible=offcanvas]:group-data-[state=expanded]:left-0" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] group-data-[collapsible=offcanvas]:!w-0 group-data-[collapsible=offcanvas]:group-data-[state=expanded]:!w-[--sidebar-width-icon] group-data-[collapsible=offcanvas]:group-data-[state=expanded]:right-0",
|
|
163
|
-
// Adjust the padding for floating and inset variants.
|
|
164
163
|
variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]" : "group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",
|
|
165
164
|
className
|
|
166
165
|
),
|
|
@@ -332,7 +331,6 @@ const SidebarGroupAction = React.forwardRef(({ className, asChild = false, ...pr
|
|
|
332
331
|
"data-sidebar": "group-action",
|
|
333
332
|
className: cn(
|
|
334
333
|
"absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
335
|
-
// Increases the hit area of the button on mobile.
|
|
336
334
|
"after:absolute after:-inset-2 after:md:hidden",
|
|
337
335
|
"group-data-[collapsible=icon]:hidden",
|
|
338
336
|
className
|
|
@@ -456,7 +454,6 @@ const SidebarMenuAction = React.forwardRef(({ className, asChild = false, showOn
|
|
|
456
454
|
"data-sidebar": "menu-action",
|
|
457
455
|
className: cn(
|
|
458
456
|
"absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0",
|
|
459
|
-
// Increases the hit area of the button on mobile.
|
|
460
457
|
"after:absolute after:-inset-2 after:md:hidden",
|
|
461
458
|
"peer-data-[size=sm]/menu-button:top-1",
|
|
462
459
|
"peer-data-[size=default]/menu-button:top-1.5",
|
package/dist/index.d.ts
CHANGED
|
@@ -788,8 +788,8 @@ interface HeaderProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<
|
|
|
788
788
|
|
|
789
789
|
declare const inputVariants: (props?: ({
|
|
790
790
|
variant?: "default" | "filled" | "borderless" | null | undefined;
|
|
791
|
-
size?: "
|
|
792
|
-
radius?: "
|
|
791
|
+
size?: "default" | "small" | "large" | null | undefined;
|
|
792
|
+
radius?: "default" | "small" | "large" | "full" | null | undefined;
|
|
793
793
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
794
794
|
interface InputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'size' | 'sufix' | 'prefix'>, VariantProps<typeof inputVariants> {
|
|
795
795
|
sufix?: React$1.ReactNode;
|
|
@@ -995,7 +995,7 @@ declare const RadioGroup: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimi
|
|
|
995
995
|
declare const RadioGroupItem: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
996
996
|
|
|
997
997
|
declare const ResizablePanelGroup: ({ className, ...props }: React$1.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => React$1.JSX.Element;
|
|
998
|
-
declare const ResizablePanel: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<
|
|
998
|
+
declare const ResizablePanel: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement | HTMLElement | HTMLButtonElement | HTMLOListElement | HTMLLIElement | HTMLAnchorElement | HTMLSpanElement | 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"> & {
|
|
999
999
|
className?: string;
|
|
1000
1000
|
collapsedSize?: number | undefined;
|
|
1001
1001
|
collapsible?: boolean | undefined;
|
|
@@ -1162,9 +1162,9 @@ declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.
|
|
|
1162
1162
|
|
|
1163
1163
|
declare const textareaVariants: (props?: ({
|
|
1164
1164
|
variant?: "default" | "filled" | "borderless" | null | undefined;
|
|
1165
|
-
size?: "
|
|
1166
|
-
radius?: "
|
|
1167
|
-
resize?: "
|
|
1165
|
+
size?: "default" | "small" | "large" | null | undefined;
|
|
1166
|
+
radius?: "default" | "small" | "large" | "full" | null | undefined;
|
|
1167
|
+
resize?: "default" | "both" | "horizontal" | "vertical" | "vertical-limited" | null | undefined;
|
|
1168
1168
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1169
1169
|
interface TextareaProps extends React$1.ComponentProps<'textarea'>, VariantProps<typeof textareaVariants> {
|
|
1170
1170
|
}
|
|
@@ -1307,7 +1307,7 @@ declare const SheetClose: React$1.ForwardRefExoticComponent<DialogPrimitive.Dial
|
|
|
1307
1307
|
declare const SheetPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
1308
1308
|
declare const SheetOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1309
1309
|
declare const sheetVariants: (props?: ({
|
|
1310
|
-
side?: "
|
|
1310
|
+
side?: "left" | "right" | "top" | "bottom" | null | undefined;
|
|
1311
1311
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1312
1312
|
interface SheetContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
1313
1313
|
}
|