lsp-uikit 1.5.4 → 1.5.6
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/components/badge/badge.d.ts +2 -2
- package/dist/components/button/button.d.ts +2 -2
- package/dist/components/dropdown/dropdown.d.ts +3 -1
- package/dist/components/dropdown/dropdown.js +1 -1
- package/dist/components/sidebar/sidebar.d.ts +1 -1
- package/dist/components/toggle/toggle.d.ts +1 -1
- package/dist/components/tooltip/tooltip.d.ts +1 -1
- package/package.json +1 -1
|
@@ -4,8 +4,8 @@ import { useRender } from '@base-ui/react/use-render';
|
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
5
|
|
|
6
6
|
declare const badgeVariants: (props?: ({
|
|
7
|
-
size?: "default" | "
|
|
8
|
-
variant?: "success" | "warning" | "
|
|
7
|
+
size?: "default" | "lg" | "sm" | null | undefined;
|
|
8
|
+
variant?: "success" | "warning" | "primary" | "primary_ghost" | "primary_outline" | "success_ghost" | "success_outline" | "warning_ghost" | "warning_outline" | "secondary" | "destructive" | "destructive_ghost" | "destructive_outline" | "outline" | null | undefined;
|
|
9
9
|
rounded?: "sm" | "md" | "full" | null | undefined;
|
|
10
10
|
textOverflow?: "default" | "hidden" | null | undefined;
|
|
11
11
|
hovered?: boolean | null | undefined;
|
|
@@ -4,8 +4,8 @@ import { Button as Button$1 } from '@base-ui/react/button';
|
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
5
|
|
|
6
6
|
declare const buttonVariants: (props?: ({
|
|
7
|
-
variant?: "default" | "
|
|
8
|
-
size?: "default" | "
|
|
7
|
+
variant?: "default" | "link" | "warning" | "secondary" | "destructive" | "outline" | "default_invert" | "destructive_invert" | "warning_invert" | "ghost" | "clear" | null | undefined;
|
|
8
|
+
size?: "default" | "lg" | "sm" | "icon" | "icon-lg" | "icon-sm" | "icon-xl" | "icon-xs" | null | undefined;
|
|
9
9
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
10
|
interface ButtonProps extends Button$1.Props, VariantProps<typeof buttonVariants> {
|
|
11
11
|
isLoading?: boolean;
|
|
@@ -2,7 +2,9 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import { Menu } from '@base-ui/react/menu';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
|
|
5
|
-
declare function DropdownMenu({ modal, ...props }: Menu.Root.Props
|
|
5
|
+
declare function DropdownMenu({ modal, onOpenChange, defaultTriggerBehavior, ...props }: Menu.Root.Props & {
|
|
6
|
+
defaultTriggerBehavior?: boolean;
|
|
7
|
+
}): react_jsx_runtime.JSX.Element;
|
|
6
8
|
declare function DropdownMenuPortal({ ...props }: Menu.Portal.Props): react_jsx_runtime.JSX.Element;
|
|
7
9
|
declare function DropdownMenuTrigger({ ...props }: Menu.Trigger.Props): react_jsx_runtime.JSX.Element;
|
|
8
10
|
declare function DropdownMenuContent({ align, alignOffset, side, sideOffset, className, ...props }: Menu.Popup.Props & Pick<Menu.Positioner.Props, 'align' | 'alignOffset' | 'side' | 'sideOffset'>): react_jsx_runtime.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{jsx as e,jsxs as t}from"react/jsx-runtime";import{Menu as n}from"@base-ui/react/menu";import{CheckIcon as o,ChevronRightIcon as a}from"lucide-react";import{cn as r}from"../../lib/utils/cn.js";function s({modal:t=!1,...
|
|
2
|
+
import{jsx as e,jsxs as t}from"react/jsx-runtime";import{Menu as n}from"@base-ui/react/menu";import{CheckIcon as o,ChevronRightIcon as a}from"lucide-react";import{cn as r}from"../../lib/utils/cn.js";function s({modal:t=!1,onOpenChange:o,defaultTriggerBehavior:a=!1,...r}){return e(n.Root,{modal:t,"data-slot":"dropdown-menu",onOpenChange:(e,t)=>{("trigger-hover"!==t.reason||a)&&o?.(e,t)},...r})}function d({...t}){return e(n.Portal,{"data-slot":"dropdown-menu-portal",...t})}function i({...t}){return e(n.Trigger,{"data-slot":"dropdown-menu-trigger",...t})}function c({align:t="start",alignOffset:o=0,side:a="bottom",sideOffset:s=4,className:d,...i}){return e(n.Portal,{children:e(n.Positioner,{className:"isolate z-50 outline-none",align:t,alignOffset:o,side:a,sideOffset:s,children:e(n.Popup,{"data-slot":"dropdown-menu-content",className:r("popup-animate ring-foreground/10 bg-popover text-popover-foreground z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 overflow-x-hidden overflow-y-auto rounded-lg py-2 shadow-md ring-1 outline-none data-closed:overflow-hidden",d),...i})})})}function u({...t}){return e(n.Group,{"data-slot":"dropdown-menu-group",...t})}function l({className:t,inset:o,...a}){return e(n.GroupLabel,{"data-slot":"dropdown-menu-label","data-inset":o,className:r("text-muted-foreground px-3 py-1 text-xs font-medium data-[inset]:pl-8",t),...a})}function p({className:t,inset:o,variant:a="default",...s}){return e(n.Item,{"data-slot":"dropdown-menu-item","data-inset":o,"data-variant":a,className:r("focus:bg-accent data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:text-destructive group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 px-3 py-[6px] text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...s})}function m({...t}){return e(n.SubmenuRoot,{"data-slot":"dropdown-menu-sub",...t})}function f({className:o,inset:s,children:d,...i}){return t(n.SubmenuTrigger,{"data-slot":"dropdown-menu-sub-trigger","data-inset":s,className:r("focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-popup-open:bg-accent data-popup-open:text-accent-foreground flex cursor-default items-center gap-1.5 px-3 py-[6px] text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",o),...i,children:[d,e(a,{className:"ml-auto"})]})}function g({align:t="start",alignOffset:n=-3,side:o="right",sideOffset:a=0,className:s,...d}){return e(c,{"data-slot":"dropdown-menu-sub-content",className:r("popup-animate ring-foreground/10 bg-popover text-popover-foreground w-auto min-w-[96px] rounded-lg py-2 shadow-lg ring-1 duration-100",s),align:t,alignOffset:n,side:o,sideOffset:a,...d})}function v({className:a,children:s,checked:d,...i}){return t(n.CheckboxItem,{"data-slot":"dropdown-menu-checkbox-item",className:r("focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground relative flex cursor-default items-center gap-1.5 px-3 py-[6px] pr-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",a),checked:d,...i,children:[e("span",{className:"pointer-events-none absolute right-2 flex items-center justify-center","data-slot":"dropdown-menu-checkbox-item-indicator",children:e(n.CheckboxItemIndicator,{children:e(o,{})})}),s]})}function x({...t}){return e(n.RadioGroup,{"data-slot":"dropdown-menu-radio-group",...t})}function h({className:a,children:s,...d}){return t(n.RadioItem,{"data-slot":"dropdown-menu-radio-item",className:r("focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground relative flex cursor-default items-center gap-1.5 py-[6px] pr-8 pl-3 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",a),...d,children:[e("span",{className:"pointer-events-none absolute right-2 flex items-center justify-center","data-slot":"dropdown-menu-radio-item-indicator",children:e(n.RadioItemIndicator,{children:e(o,{})})}),s]})}function b({className:t,...o}){return e(n.Separator,{"data-slot":"dropdown-menu-separator",className:r("bg-border -mx-1 my-1 h-px",t),...o})}function w({className:t,...n}){return e("span",{"data-slot":"dropdown-menu-shortcut",className:r("text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground ml-auto text-xs tracking-widest",t),...n})}export{s as DropdownMenu,v as DropdownMenuCheckboxItem,c as DropdownMenuContent,u as DropdownMenuGroup,p as DropdownMenuItem,l as DropdownMenuLabel,d as DropdownMenuPortal,x as DropdownMenuRadioGroup,h as DropdownMenuRadioItem,b as DropdownMenuSeparator,w as DropdownMenuShortcut,m as DropdownMenuSub,g as DropdownMenuSubContent,f as DropdownMenuSubTrigger,i as DropdownMenuTrigger};
|
|
@@ -47,7 +47,7 @@ declare function SidebarMenu({ className, ...props }: React.ComponentProps<'ul'>
|
|
|
47
47
|
declare function SidebarMenuItem({ className, ...props }: React.ComponentProps<'li'>): react_jsx_runtime.JSX.Element;
|
|
48
48
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
49
49
|
variant?: "default" | "outline" | null | undefined;
|
|
50
|
-
size?: "default" | "
|
|
50
|
+
size?: "default" | "lg" | "sm" | null | undefined;
|
|
51
51
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
52
52
|
declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip, className, ...props }: React.ComponentProps<'button'> & {
|
|
53
53
|
asChild?: boolean;
|
|
@@ -5,7 +5,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
5
5
|
|
|
6
6
|
declare const toggleVariants: (props?: ({
|
|
7
7
|
variant?: "default" | "outline" | null | undefined;
|
|
8
|
-
size?: "default" | "
|
|
8
|
+
size?: "default" | "lg" | "sm" | null | undefined;
|
|
9
9
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
10
|
declare function Toggle({ className, variant, size, ...props }: Toggle$1.Props & VariantProps<typeof toggleVariants>): react_jsx_runtime.JSX.Element;
|
|
11
11
|
|
|
@@ -7,7 +7,7 @@ import * as React from 'react';
|
|
|
7
7
|
import { PopoverRootProps, PopoverTrigger } from '../popover/popover.js';
|
|
8
8
|
|
|
9
9
|
declare const tooltipVariants: (props?: ({
|
|
10
|
-
variant?: "default" | "
|
|
10
|
+
variant?: "default" | "primary" | "secondary" | "destructive" | "foreground" | null | undefined;
|
|
11
11
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
12
12
|
declare const TooltipCreateHandle: typeof Tooltip$1.createHandle;
|
|
13
13
|
declare const TooltipProvider: React.FC<_base_ui_react.TooltipProviderProps>;
|