lsp-uikit 1.5.5 → 1.5.7
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/alert/alert.d.ts +1 -1
- package/dist/components/badge/badge.d.ts +2 -2
- package/dist/components/badge/badge.js +1 -1
- package/dist/components/button/button.d.ts +2 -2
- package/dist/components/button/copy-button.d.ts +14 -0
- package/dist/components/button/copy-button.js +2 -0
- package/dist/components/dialog/dialog.js +1 -1
- package/dist/components/dropdown/dropdown.d.ts +6 -2
- 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/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
|
|
6
6
|
declare const alertVariants: (props?: ({
|
|
7
|
-
variant?: "default" | "
|
|
7
|
+
variant?: "default" | "success" | "warning" | "error" | "info" | null | undefined;
|
|
8
8
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
9
|
declare function Alert({ className, variant, hideDefaultIcon, children, ...props }: React.ComponentProps<'div'> & VariantProps<typeof alertVariants> & {
|
|
10
10
|
hideDefaultIcon?: boolean;
|
|
@@ -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?: "
|
|
7
|
+
size?: "default" | "lg" | "sm" | null | undefined;
|
|
8
|
+
variant?: "primary" | "primary_ghost" | "primary_outline" | "success" | "success_ghost" | "success_outline" | "warning" | "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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{mergeProps as r}from"@base-ui/react/merge-props";import{useRender as e}from"@base-ui/react/use-render";import{cva as t}from"class-variance-authority";import{cn as a}from"../../lib/utils/cn.js";const n=t("focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-md border px-2 py-1 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] [&>svg]:pointer-events-none [&>svg]:size-3",{variants:{size:{default:"h-
|
|
1
|
+
import{mergeProps as r}from"@base-ui/react/merge-props";import{useRender as e}from"@base-ui/react/use-render";import{cva as t}from"class-variance-authority";import{cn as a}from"../../lib/utils/cn.js";const n=t("focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-md border px-2 py-1 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] [&>svg]:pointer-events-none [&>svg]:size-3",{variants:{size:{default:"h-auto min-w-5.5 px-[calc(--spacing(1.5)-1px)] sm:min-w-4.5",lg:"h-auto min-w-6.5 px-[calc(--spacing(2.5)-1px)] py-1 text-sm sm:min-w-5.5",sm:"h-auto min-w-5 rounded-[calc(var(--radius-sm)-2px)] px-[calc(--spacing(1)-1px)] text-xs leading-none sm:min-w-4 sm:text-[.625rem]"},variant:{primary:"text-primary-foreground border-transparent bg-blue-500",primary_ghost:"text-primary bg-primary/10 border-none dark:bg-blue-800/20",primary_outline:"border-primary/50 text-primary dark:border-primary dark:text-primary-foreground bg-blue-100/50 dark:bg-blue-600/70",success:"text-primary-foreground border-transparent bg-green-500",success_ghost:"border-none bg-green-500/10 text-green-600",success_outline:"dark:text-primary-foreground border-green-300 bg-green-100/50 text-green-600 dark:border-green-700 dark:bg-green-700/70",warning:"bg-warning dark:bg-warning/70 text-primary-foreground border-transparent",warning_ghost:"bg-warning/10 dark:bg-warning/15 border-none text-amber-600",warning_outline:"dark:text-primary-foreground border-amber-300 bg-amber-100/50 text-amber-600 dark:border-amber-700 dark:bg-amber-700/70",secondary:"bg-secondary text-secondary-foreground border-transparent",destructive:"bg-destructive border-transparent text-white",destructive_ghost:"bg-destructive/5 dark:bg-destructive/10 text-destructive border-none",destructive_outline:"border-destructive/60 dark:border-destructive bg-destructive/20 dark:bg-destructive/20 text-red-500",outline:"text-foreground"},rounded:{sm:"rounded-sm",md:"rounded-md",full:"rounded-full"},textOverflow:{default:"inline-flex",hidden:"block overflow-hidden text-ellipsis whitespace-nowrap"},hovered:{true:"hover:opacity-80"}},defaultVariants:{size:"default",variant:"primary_outline",rounded:"sm",textOverflow:"default"}});function i({className:t,variant:i,rounded:d,hovered:o,render:s,size:u="default",textOverflow:g="default",...b}){const m={className:a(n({className:t,size:u,textOverflow:g,variant:i,rounded:d,hovered:o})),"data-slot":"badge"};return e({defaultTagName:"span",props:r(m,b),render:s})}export{i as Badge,n as badgeVariants};
|
|
@@ -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" | "warning" | "secondary" | "destructive" | "outline" | "link" | "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;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { TooltipPopup } from '../tooltip/tooltip.js';
|
|
3
|
+
import { ButtonProps } from './button.js';
|
|
4
|
+
|
|
5
|
+
type Props = ButtonProps & {
|
|
6
|
+
text: string;
|
|
7
|
+
label?: ReactNode;
|
|
8
|
+
tooltip?: string | React.ComponentProps<typeof TooltipPopup>;
|
|
9
|
+
tooltipDurationMs?: number;
|
|
10
|
+
logError?: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare const CopyButton: FC<Props>;
|
|
13
|
+
|
|
14
|
+
export { CopyButton };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{jsxs as e,jsx as t}from"react/jsx-runtime";import o from"copy-to-clipboard";import{CheckIcon as r,CopyIcon as i}from"lucide-react";import{useState as a}from"react";import{cn as l}from"../../lib/utils/cn.js";import{TooltipProvider as s,Tooltip as c,TooltipTrigger as n,TooltipPopup as p}from"../tooltip/tooltip.js";import{Button as m}from"./button.js";const d=({text:d,label:f,tooltip:u,tooltipDurationMs:y=1500,logError:g=!1,children:h,onClick:b,className:k,disabled:x,...N})=>{const[j,z]=a(!1),C=e(m,{variant:"outline",size:f?"default":"icon-lg",...N,className:l("relative disabled:opacity-100",k),onClick:e=>{b?.(e),(async()=>{if(!j)try{o(d),z(!0),setTimeout(()=>z(!1),y)}catch(e){if(!g)return;console.error("Failed to copy text: ",e)}})()},disabled:x||j,children:[t("span",{className:l("transition-all",j?"scale-100 opacity-100":"scale-0 opacity-0"),children:t(r,{size:16,className:"stroke-green-600 dark:stroke-green-400"})}),t("span",{className:l("absolute transition-all",f?"left-3":"left-[52%] translate-x-[-50%]",j?"scale-0 opacity-0":"scale-100 opacity-100"),children:t(i,{size:16})}),f??h]});return u?("string"==typeof u&&(u={children:u}),t(s,{delay:0,closeDelay:0,timeout:0,children:e(c,{open:j,onOpenChange:(e,t)=>{"trigger-press"===t.reason&&t.cancel()},children:[t(n,{render:C}),t(p,{side:"top",align:"center",...u})]})})):C};export{d as CopyButton};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{jsx as e,jsxs as a}from"react/jsx-runtime";import{Dialog as o}from"@base-ui/react/dialog";import{XIcon as t}from"lucide-react";import*as l from"react";import{cn as s}from"../../lib/utils/cn.js";import{Button as
|
|
2
|
+
import{jsx as e,jsxs as a}from"react/jsx-runtime";import{Dialog as o}from"@base-ui/react/dialog";import{XIcon as t}from"lucide-react";import*as l from"react";import{cn as s}from"../../lib/utils/cn.js";import{Button as d}from"../button/button.js";import"copy-to-clipboard";import"../tooltip/tooltip.js";import{ScrollArea as n}from"../scroll-area/scroll-area.js";import{VStack as r}from"../stack/stack.js";const i=o.createHandle,c=o.Root,m=o.Portal;function u(a){return e(o.Trigger,{"data-slot":"dialog-trigger",...a})}function p(a){return e(o.Close,{"data-slot":"dialog-close",...a,tabIndex:-1})}function x({className:a,...t}){return e(o.Backdrop,{className:s("data-[closed]:animate-out data-[open]:animate-in data-[closed]:fade-out-0 data-[open]:fade-in-0 fixed inset-0 z-50 bg-black/32 backdrop-blur-sm data-[closed]:pointer-events-none data-[closed]:duration-200 data-[closed]:ease-in-out data-[open]:duration-200 data-[open]:ease-in-out",a),"data-slot":"dialog-backdrop",...t})}function f({className:a,...t}){return e(o.Viewport,{className:s("fixed inset-0 top-0 left-0 z-50 flex flex-col items-center justify-center overflow-hidden p-4",a),"data-slot":"dialog-viewport",...t})}function b({className:i,children:c,contentRef:u,radixClassName:p,bottomStickOnMobile:b=!0,hideCloseButton:g=!1,animateVariant:h="slide",...v}){const w=l.useRef(null);return a(m,{children:[e(x,{}),e(f,{className:s(b&&"max-xs:grid-rows-[1fr_auto] max-xs:p-0 max-xs:pt-12"),children:a(o.Popup,{ref:w,initialFocus:!0,className:s("bg-dialog text-popover-foreground border-background xs:max-h-[94%] data-[closed]:animate-out data-[open]:animate-in data-[closed]:fade-out-0 data-[open]:fade-in-0 dark:border-border/70 fixed flex max-h-[98%] min-h-0 w-full max-w-[calc(100%-2rem)] min-w-0 -translate-y-[calc(1.25rem*var(--nested-dialogs))] scale-[calc(1-0.1*var(--nested-dialogs))] flex-col gap-3 overflow-hidden rounded-3xl border opacity-[calc(1-0.1*var(--nested-dialogs))] shadow-lg/5 will-change-transform not-dark:bg-clip-padding before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-2xl)-1px)] before:shadow-[0_1px_--theme(--color-black/6%)] focus:outline-none focus-visible:outline-none data-nested-dialog-open:origin-top data-[closed]:pointer-events-none data-[closed]:duration-200 data-[closed]:ease-in-out data-[open]:duration-200 data-[open]:ease-in-out sm:max-w-lg dark:border-[2px] dark:before:shadow-[0_-1px_--theme(--color-white/6%)]","data-[nested]:data-[closed]:slide-out-to-bottom-8 data-[nested]:data-[open]:slide-in-from-bottom-8","scale"===h&&"data-[closed]:zoom-out-98 data-[open]:zoom-in-98","slide"===h&&"data-[closed]:slide-out-to-bottom-8 data-[open]:slide-in-from-bottom-8",b&&"max-xs:max-w-none max-xs:rounded-none max-xs:border-x-0 max-xs:border-t max-xs:border-b-0 max-xs:opacity-[calc(1-min(var(--nested-dialogs),1))] max-xs:before:hidden max-xs:before:rounded-none max-xs:data-[closed]:slide-out-to-bottom-4 max-xs:data-[open]:slide-in-from-bottom-4",p),"data-slot":"dialog-popup",...v,children:[e(n,{viewportRef:u,viewportProps:{tabIndex:-1},className:s("flex h-full w-full flex-col gap-2",i),children:e(r,{children:c})}),!g&&a(o.Close,{"aria-label":"Close",className:"absolute top-[25px] right-[25px] rounded-md [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",render:e(d,{variant:"secondary",className:"h-auto rounded-md p-[6px]"}),children:[e(t,{className:"xs:size-4 size-5"}),e("span",{className:"sr-only",children:"Close"})]})]})})]})}function g({className:a,pin:o,...t}){return e("div",{"data-slot":"dialog-header",className:s("bg-background flex w-full flex-col rounded-b-3xl p-[30px] text-left",{"outline-dialog sticky top-0 left-0 outline-[8px]":o},a),...t})}function h({className:a,...o}){return e("div",{className:s("bg-background w-full rounded-3xl p-[30px]",a),...o})}function v({className:a,pin:o,...t}){return e("div",{"data-slot":"dialog-footer",className:s("bg-background flex w-full flex-col-reverse gap-2 rounded-t-3xl p-[30px] sm:flex-row sm:justify-end",{"outline-dialog sticky bottom-0 left-0 outline-[8px]":o},a),...t})}function w({className:a,...t}){return e(o.Title,{"data-slot":"dialog-title",className:s("line-clamp-2 pr-5 text-xl leading-tight font-medium break-words text-ellipsis",a),...t})}function N({className:a,...t}){return e(o.Description,{"data-slot":"dialog-description",className:s("text-muted-foreground mt-2 text-sm",a),...t})}export{c as Dialog,p as DialogClose,b as DialogContent,h as DialogContentSection,i as DialogCreateHandle,N as DialogDescription,v as DialogFooter,g as DialogHeader,x as DialogOverlay,m as DialogPortal,w as DialogTitle,u as DialogTrigger,f as DialogViewport};
|
|
@@ -2,10 +2,14 @@ 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
|
-
declare function DropdownMenuContent({ align, alignOffset, side, sideOffset, className, ...props }: Menu.Popup.Props & Pick<Menu.Positioner.Props, 'align' | 'alignOffset' | 'side' | 'sideOffset'>
|
|
10
|
+
declare function DropdownMenuContent({ align, alignOffset, side, sideOffset, behavior, className, ...props }: Menu.Popup.Props & Pick<Menu.Positioner.Props, 'align' | 'alignOffset' | 'side' | 'sideOffset'> & {
|
|
11
|
+
behavior?: 'menu' | 'context-menu';
|
|
12
|
+
}): react_jsx_runtime.JSX.Element;
|
|
9
13
|
declare function DropdownMenuGroup({ ...props }: Menu.Group.Props): react_jsx_runtime.JSX.Element;
|
|
10
14
|
declare function DropdownMenuLabel({ className, inset, ...props }: Menu.GroupLabel.Props & {
|
|
11
15
|
inset?: boolean;
|
|
@@ -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,behavior:d="menu",className:i,...c}){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","context-menu"===d&&"transition-none",i),...c})})})}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>;
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { Alert, AlertDescription, AlertTitle, alertVariants } from './components
|
|
|
3
3
|
export { Avatar, AvatarFallback, AvatarImage } from './components/avatar/avatar.js';
|
|
4
4
|
export { Badge, BadgeProps, badgeVariants } from './components/badge/badge.js';
|
|
5
5
|
export { Button, ButtonProps, buttonVariants } from './components/button/button.js';
|
|
6
|
-
export {
|
|
6
|
+
export { CopyButton } from './components/button/copy-button.js';
|
|
7
7
|
export { Calendar, CalendarDayButton } from './components/calendar/calendar.js';
|
|
8
8
|
export { Card, CardDescription, CardHeader, CardTitle } from './components/card/card.js';
|
|
9
9
|
export { Checkbox } from './components/checkbox/checkbox.js';
|
|
@@ -43,5 +43,6 @@ export { Tabs, TabsPanel as TabsContent, TabsList, TabsPanel, TabsTab, TabsTab a
|
|
|
43
43
|
export { Text, TextProps } from './components/text/text.js';
|
|
44
44
|
export { Textarea, TextareaProps, textareaVariants } from './components/textarea/textarea.js';
|
|
45
45
|
export { Toggle, toggleVariants } from './components/toggle/toggle.js';
|
|
46
|
+
export { Tooltip, TooltipPopup as TooltipContent, TooltipCreateHandle, TooltipPopover, TooltipPopup, TooltipProvider, TooltipTrigger } from './components/tooltip/tooltip.js';
|
|
46
47
|
export { Tour, TourArrow, TourClose, TourDescription, TourFooter, TourHeader, TourNext, TourPortal, TourPrev, TourProps, TourSkip, TourSpotlight, TourSpotlightRing, TourStep, TourStepCounter, TourStepProps, TourTitle } from './components/tour/tour.js';
|
|
47
48
|
export { TourCoachMarkCard, TourCoachMarkProvider } from './components/tour/tour-coach-mark.js';
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{Accordion,AccordionContent,AccordionItem,AccordionTrigger}from"./components/accordion/accordion.js";export{Alert,AlertDescription,AlertTitle,alertVariants}from"./components/alert/alert.js";export{Avatar,AvatarFallback,AvatarImage}from"./components/avatar/avatar.js";export{Badge,badgeVariants}from"./components/badge/badge.js";export{Button,buttonVariants}from"./components/button/button.js";
|
|
2
|
+
export{Accordion,AccordionContent,AccordionItem,AccordionTrigger}from"./components/accordion/accordion.js";export{Alert,AlertDescription,AlertTitle,alertVariants}from"./components/alert/alert.js";export{Avatar,AvatarFallback,AvatarImage}from"./components/avatar/avatar.js";export{Badge,badgeVariants}from"./components/badge/badge.js";export{Button,buttonVariants}from"./components/button/button.js";export{CopyButton}from"./components/button/copy-button.js";export{Calendar,CalendarDayButton}from"./components/calendar/calendar.js";export{Card,CardDescription,CardHeader,CardTitle}from"./components/card/card.js";export{Checkbox}from"./components/checkbox/checkbox.js";export{Collapsible,CollapsiblePanel as CollapsibleContent,CollapsiblePanel,CollapsibleTrigger}from"./components/collapsible/collapsible.js";export{Combobox,ComboboxChip,ComboboxChips,ComboboxClear,ComboboxCollection,ComboboxEmpty,ComboboxGroup,ComboboxGroupLabel,ComboboxInput,ComboboxItem,ComboboxList,ComboboxPopup,ComboboxRow,ComboboxSeparator,ComboboxStatus,ComboboxTrigger,ComboboxValue,useComboboxFilter}from"./components/combobox/combobox.js";export{ContextMenu,ContextMenuCheckboxItem,ContextMenuContent,ContextMenuGroup,ContextMenuItem,ContextMenuLabel,ContextMenuPortal,ContextMenuRadioGroup,ContextMenuRadioItem,ContextMenuSeparator,ContextMenuShortcut,ContextMenuSub,ContextMenuSubContent,ContextMenuSubTrigger,ContextMenuTrigger}from"./components/context-menu/context-menu.js";export{DatePicker}from"./components/date-picker/date-picker.js";export{DateRangePicker}from"./components/date-range-picker/date-range-picker.js";export{Dialog,DialogClose,DialogContent,DialogContentSection,DialogCreateHandle,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogTitle,DialogTrigger,DialogViewport}from"./components/dialog/dialog.js";export{DropdownMenu,DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuGroup,DropdownMenuItem,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger,DropdownMenuTrigger}from"./components/dropdown/dropdown.js";export{Empty,EmptyContent,EmptyDescription,EmptyHeader,EmptyMedia,EmptyTitle}from"./components/empty/empty.js";export{Field,FieldContent,FieldDescription,FieldError,FieldGroup,FieldLabel,FieldLegend,FieldSeparator,FieldSet,FieldTitle}from"./components/field/field.js";export{Input}from"./components/input/input.js";export{Label}from"./components/label/label.js";export{Loader}from"./components/loader/loader.js";export{NativeTable,NativeTableBody,NativeTableCaption,NativeTableCell,NativeTableFooter,NativeTableHead,NativeTableHeader,NativeTableRow}from"./components/native-table/native-table.js";export{NumberField,NumberFieldDecrement,NumberFieldGroup,NumberFieldIncrement,NumberFieldInput,NumberFieldScrubArea}from"./components/number-field/number-field.js";export{Pagination,PaginationContent,PaginationEllipsis,PaginationItem,PaginationLink,PaginationNext,PaginationPrevious}from"./components/pagination/pagination.js";export{Popover,PopoverBackdrop,PopoverClose,PopoverContent,PopoverCreateHandle,PopoverDescription,PopoverHeader,PopoverTitle,PopoverTrigger}from"./components/popover/popover.js";export{CoachMark,CoachMarkClose}from"./components/popover/coach-mark.js";export{PreviewCard,PreviewCardPopup,PreviewCardTrigger}from"./components/preview-card/preview-card.js";export{Progress,ProgressIndicator,ProgressLabel,ProgressTrack,ProgressValue}from"./components/progress/progress.js";export{RDialog,RDialogContent,RDialogDescription,RDialogFooter,RDialogHeader,RDialogOnly,RDialogTitle,RDialogTrigger}from"./components/r-dialog/r-dialog.js";export{Radio,RadioGroup,Radio as RadioGroupItem}from"./components/radio-group/radio-group.js";export{ScrollArea,ScrollBar}from"./components/scroll-area/scroll-area.js";export{Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue}from"./components/select/select.js";export{Separator}from"./components/separator/separator.js";export{Sheet,SheetClose,SheetContent,SheetContentSection,SheetDescription,SheetFooter,SheetHeader,SheetTitle,SheetTrigger}from"./components/sheet/sheet.js";export{Sidebar,SidebarContent,SidebarFooter,SidebarGroup,SidebarGroupAction,SidebarGroupContent,SidebarGroupLabel,SidebarHeader,SidebarInput,SidebarInset,SidebarMenu,SidebarMenuAction,SidebarMenuBadge,SidebarMenuButton,SidebarMenuItem,SidebarMenuSkeleton,SidebarMenuSub,SidebarMenuSubButton,SidebarMenuSubItem,SidebarProvider,SidebarRail,SidebarSeparator,SidebarTrigger,useSidebar}from"./components/sidebar/sidebar.js";export{Skeleton}from"./components/skeleton/skeleton.js";export{Slider}from"./components/slider/slider.js";export{Toaster,toast,useSonner}from"./components/sonner/sonner.js";export{HStack,VStack}from"./components/stack/stack.js";export{Switch}from"./components/switch/switch.js";export{EmptyTableRow,Table,TableBody,TableCell,TableHeader,TableRow}from"./components/table/table.js";export{Tabs,TabsPanel as TabsContent,TabsList,TabsPanel,TabsTab,TabsTab as TabsTrigger}from"./components/tabs/tabs.js";export{Text}from"./components/text/text.js";export{Textarea,textareaVariants}from"./components/textarea/textarea.js";export{Toggle,toggleVariants}from"./components/toggle/toggle.js";export{Tooltip,TooltipPopup as TooltipContent,TooltipCreateHandle,TooltipPopover,TooltipPopup,TooltipProvider,TooltipTrigger}from"./components/tooltip/tooltip.js";export{Tour,TourArrow,TourClose,TourDescription,TourFooter,TourHeader,TourNext,TourPortal,TourPrev,TourSkip,TourSpotlight,TourSpotlightRing,TourStep,TourStepCounter,TourTitle}from"./components/tour/tour.js";export{TourCoachMarkCard,TourCoachMarkProvider}from"./components/tour/tour-coach-mark.js";
|