lsp-uikit 1.5.1 → 1.5.2
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 +3 -2
- package/dist/components/button/button.d.ts +2 -2
- package/dist/components/checkbox/checkbox.js +1 -1
- package/dist/components/date-range-picker/date-range-picker.d.ts +1 -0
- package/dist/components/date-range-picker/date-range-picker.js +1 -1
- package/dist/components/dialog/dialog.js +1 -1
- package/dist/components/dropdown/dropdown.js +1 -1
- package/dist/components/empty/empty.js +1 -1
- package/dist/components/field/field.js +1 -1
- package/dist/components/popover/coach-mark.js +1 -1
- package/dist/components/popover/popover.js +1 -1
- package/dist/components/sheet/sheet.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 +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
|
hover?: boolean | null | undefined;
|
|
@@ -18,3 +18,4 @@ interface BadgeProps extends useRender.ComponentProps<'span'> {
|
|
|
18
18
|
declare function Badge({ className, variant, size, render, textOverflow, ...props }: BadgeProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
19
19
|
|
|
20
20
|
export { Badge, badgeVariants };
|
|
21
|
+
export type { BadgeProps };
|
|
@@ -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" | "warning" | "
|
|
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;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{jsx as r}from"react/jsx-runtime";import{Checkbox as e}from"@base-ui/react/checkbox";import{CheckIcon as i}from"lucide-react";import{cn as a}from"../../lib/utils/cn.js";function t({className:t,...d}){return r(e.Root,{"data-slot":"checkbox",className:a("border-input dark:bg-input/30 data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary data-checked:border-primary aria-invalid:aria-checked:border-primary aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border transition-colors outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-[3px] data-disabled:opacity-50",t),...d,children:r(e.Indicator,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-
|
|
2
|
+
import{jsx as r}from"react/jsx-runtime";import{Checkbox as e}from"@base-ui/react/checkbox";import{CheckIcon as i}from"lucide-react";import{cn as a}from"../../lib/utils/cn.js";function t({className:t,...d}){return r(e.Root,{"data-slot":"checkbox",className:a("border-input dark:bg-input/30 data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary data-checked:border-primary aria-invalid:aria-checked:border-primary aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border transition-colors outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-[3px] data-disabled:opacity-50",t),...d,children:r(e.Indicator,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-white transition-none [&>svg]:size-3.5",children:r(i,{})})})}export{t as Checkbox};
|
|
@@ -12,6 +12,7 @@ type Props = {
|
|
|
12
12
|
className?: string;
|
|
13
13
|
onApply: (datesRange: DatesStringRange | undefined) => void;
|
|
14
14
|
render?: Popover.Trigger.Props['render'];
|
|
15
|
+
triggerClassName?: string;
|
|
15
16
|
} & React.ComponentProps<typeof DayPicker>;
|
|
16
17
|
declare const DateRangePicker: FC<Props>;
|
|
17
18
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{jsx as e,jsxs as
|
|
2
|
+
import{jsx as e,jsxs as r}from"react/jsx-runtime";import{format as o,subDays as t}from"date-fns";import{useState as a,useEffect as n}from"react";import{LuCalendarFold as i}from"react-icons/lu";import{cn as l}from"../../lib/utils/cn.js";import{Button as s}from"../button/button.js";import{Calendar as d}from"../calendar/calendar.js";import{Popover as m,PopoverTrigger as c,PopoverContent as f}from"../popover/popover.js";import"lucide-react";const y=y=>{const{className:p,datesRange:u,withDatesMacroses:M,triggerClassName:h,render:v,onApply:w,...g}=y,[N,x]=a(!1),[k,C]=a();n(()=>{C({from:u?.from?new Date(u?.from):void 0,to:u?.to?new Date(u?.to):void 0})},[u]);const j=e=>{const r=new Date;let a=new Date(r);"week"===e&&(a=t(r,6)),"month"===e&&(a=t(r,30)),"year"===e&&(a=t(r,365)),w({from:o(a,"yyyy-MM-dd"),to:o(r,"yyyy-MM-dd")}),x(!1)};return e("div",{className:l("grid gap-2",p),children:r(m,{open:N,onOpenChange:x,children:[r(c,{render:v??e(s,{id:"date",variant:"secondary",className:l("justify-start text-left font-normal",!u&&"text-muted-foreground",h)}),children:[e(i,{}),k?.from?k.to?`${o(k.from,"dd MMM yyyy")} - ${o(k.to,"dd MMM yyyy")}`:o(k.from,"dd MMM yyyy"):"Укажите даты"]}),e(f,{className:"w-fit p-0",align:"start",children:r("div",{className:"flex w-full flex-col",children:[M&&r("div",{className:"flex w-full items-center gap-2 p-3",children:[e(s,{size:"sm",variant:"secondary",onClick:()=>j("week"),children:"7 дней"}),e(s,{size:"sm",variant:"secondary",onClick:()=>j("month"),children:"30 дней"}),e(s,{size:"sm",variant:"secondary",onClick:()=>j("year"),children:"Год"})]}),e(d,{...g,autoFocus:!0,mode:"range",defaultMonth:k?.from,selected:k,onSelect:C,numberOfMonths:2}),r("div",{className:"flex w-full gap-3 p-3",children:[e(s,{className:"w-full",onClick:()=>{w(void 0),x(!1)},variant:"outline",size:"sm",children:"Сбросить период"}),e(s,{variant:"default_invert",disabled:!k?.from||!k.to,className:"w-full",onClick:()=>{w({from:o(k.from,"yyyy-MM-dd"),to:o(k.to,"yyyy-MM-dd")}),x(!1)},size:"sm",children:"Применить"})]})]})})]})})};export{y as DateRangePicker};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{jsx as e,jsxs as a}from"react/jsx-runtime";import{Dialog 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 s from"react";import{cn as l}from"../../lib/utils/cn.js";import{Button as n}from"../button/button.js";const d=o.createHandle,r=o.Root,i=o.Portal;function c(a){return e(o.Trigger,{"data-slot":"dialog-trigger",...a})}function m(a){return e(o.Close,{"data-slot":"dialog-close",...a,tabIndex:-1})}function u({className:a,...t}){return e(o.Backdrop,{className:l("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]:duration-200 data-[closed]:ease-in-out data-[open]:duration-200 data-[open]:ease-in-out",a),"data-slot":"dialog-backdrop",...t})}function x({className:a,...t}){return e(o.Viewport,{className:l("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 p({className:d,children:r,contentRef:c,radixClassName:m,bottomStickOnMobile:p=!0,hideCloseButton:f=!1,...g}){const b=s.useRef(null);return a(i,{children:[e(u,{}),e(x,{className:l(p&&"max-xs:grid-rows-[1fr_auto] max-xs:p-0 max-xs:pt-12"),children:a(o.Popup,{ref:b,initialFocus:!0,className:l("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 data-[closed]:zoom-out-98 data-[open]:zoom-in-98 data-[nested]:data-[closed]:slide-out-to-bottom-8 data-[nested]:data-[open]:slide-in-from-bottom-8 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]:duration-200 data-[closed]:ease-in-out data-[open]:duration-200 data-[open]:ease-in-out sm:max-w-lg dark:before:shadow-[0_-1px_--theme(--color-white/6%)]",p&&"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",m),"data-slot":"dialog-popup",...g,children:[e("div",{ref:c,className:l("flex h-full w-full flex-col gap-2 overflow-y-auto",d),children:r}),!f&&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(n,{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 f({className:a,pin:o,...t}){return e("div",{"data-slot":"dialog-header",className:l("bg-background flex flex-col rounded-b-3xl p-[30px] text-left",{"outline-dialog sticky top-0 left-0 outline-[8px]":o},a),...t})}function g({className:a,...o}){return e("div",{className:l("bg-background rounded-3xl p-[30px]",a),...o})}function b({className:a,pin:o,...t}){return e("div",{"data-slot":"dialog-footer",className:l("bg-background flex 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 h({className:a,...t}){return e(o.Title,{"data-slot":"dialog-title",className:l("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:l("text-muted-foreground mt-2 text-sm",a),...t})}export{r as Dialog,m as DialogClose,p as DialogContent,g as DialogContentSection,d as DialogCreateHandle,N as DialogDescription,b as DialogFooter,f as DialogHeader,u as DialogOverlay,i as DialogPortal,h as DialogTitle,c as DialogTrigger,x as DialogViewport};
|
|
@@ -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,...o}){return e(n.Root,{modal:t,"data-slot":"dropdown-menu",...o})}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-2 text-xs 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 focus:text-accent-foreground 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 not-data-[variant=destructive]:focus:**:text-accent-foreground 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};
|
|
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,...o}){return e(n.Root,{modal:t,"data-slot":"dropdown-menu",...o})}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-2 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 focus:text-accent-foreground 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 not-data-[variant=destructive]:focus:**:text-accent-foreground 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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t,Fragment as a}from"react/jsx-runtime";import{cva as r}from"class-variance-authority";import{cn as n}from"../../lib/utils/cn.js";function s({className:t,...a}){return e("div",{className:n("flex min-w-0 flex-1 flex-col items-center justify-center gap-6 p-0 text-center text-balance md:p-12",t),"data-slot":"empty",...a})}function o({className:t,...a}){return e("div",{className:n("flex max-w-sm flex-col items-center text-center",t),"data-slot":"empty-header",...a})}const i=r("flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{defaultVariants:{variant:"default"},variants:{variant:{default:"bg-transparent",icon:"bg-card text-foreground relative flex size-10 shrink-0 items-center justify-center rounded-md border shadow-sm/5 before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-md)-1px)] before:shadow-[0_1px_--theme(--color-black/6%)] dark:before:shadow-[0_-1px_--theme(--color-white/6%)] [&_svg:not([class*='size-'])]:size-6"}}});function l({className:r,variant:s="default",...o}){return t("div",{className:n("group relative mb-5",r),"data-slot":"empty-media","data-variant":s,...o,children:["icon"===s&&t(a,{children:[e("div",{"aria-hidden":"true",className:n(i({className:r,variant:s}),"pointer-events-none absolute bottom-px origin-bottom-left -translate-x-0.5 scale-84 -rotate-10 shadow-none transition-transform group-hover:-translate-x-1.5")}),e("div",{"aria-hidden":"true",className:n(i({className:r,variant:s}),"pointer-events-none absolute bottom-px origin-bottom-right translate-x-0.5 scale-84 rotate-10 shadow-none transition-transform group-hover:translate-x-1.5")})]}),e("div",{className:n(i({className:r,variant:s})),...o})]})}function m({className:t,...a}){return e("div",{className:n("font-heading text-
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as a}from"react/jsx-runtime";import{cva as r}from"class-variance-authority";import{cn as n}from"../../lib/utils/cn.js";function s({className:t,...a}){return e("div",{className:n("flex min-w-0 flex-1 flex-col items-center justify-center gap-6 p-0 text-center text-balance md:p-12",t),"data-slot":"empty",...a})}function o({className:t,...a}){return e("div",{className:n("flex max-w-sm flex-col items-center text-center",t),"data-slot":"empty-header",...a})}const i=r("flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{defaultVariants:{variant:"default"},variants:{variant:{default:"bg-transparent",icon:"bg-card text-foreground relative flex size-10 shrink-0 items-center justify-center rounded-md border shadow-sm/5 before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-md)-1px)] before:shadow-[0_1px_--theme(--color-black/6%)] dark:before:shadow-[0_-1px_--theme(--color-white/6%)] [&_svg:not([class*='size-'])]:size-6"}}});function l({className:r,variant:s="default",...o}){return t("div",{className:n("group relative mb-5",r),"data-slot":"empty-media","data-variant":s,...o,children:["icon"===s&&t(a,{children:[e("div",{"aria-hidden":"true",className:n(i({className:r,variant:s}),"pointer-events-none absolute bottom-px origin-bottom-left -translate-x-0.5 scale-84 -rotate-10 shadow-none transition-transform group-hover:-translate-x-1.5")}),e("div",{"aria-hidden":"true",className:n(i({className:r,variant:s}),"pointer-events-none absolute bottom-px origin-bottom-right translate-x-0.5 scale-84 rotate-10 shadow-none transition-transform group-hover:translate-x-1.5")})]}),e("div",{className:n(i({className:r,variant:s})),...o})]})}function m({className:t,...a}){return e("div",{className:n("font-heading text-base",t),"data-slot":"empty-title",...a})}function c({className:t,...a}){return e("div",{className:n("text-muted-foreground [&>a:hover]:text-primary text-sm [&>a]:underline [&>a]:underline-offset-4 [[data-slot=empty-title]+&]:mt-1",t),"data-slot":"empty-description",...a})}function d({className:t,...a}){return e("div",{className:n("flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance",t),"data-slot":"empty-content",...a})}export{s as Empty,d as EmptyContent,c as EmptyDescription,o as EmptyHeader,l as EmptyMedia,m as EmptyTitle};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{jsx as a,jsxs as e}from"react/jsx-runtime";import{cva as t}from"class-variance-authority";import{useMemo as l}from"react";import{TiWarning as o}from"react-icons/ti";import{cn as r}from"../../lib/utils/cn.js";import{Label as s}from"../label/label.js";import{Separator as i}from"../separator/separator.js";import{HStack as d}from"../stack/stack.js";import{Text as n}from"../text/text.js";function c({className:e,...t}){return a("fieldset",{"data-slot":"field-set",className:r("flex flex-col gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3",e),...t})}function f({className:e,variant:t="legend",...l}){return a("legend",{"data-slot":"field-legend","data-variant":t,className:r("mb-1.5 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base",e),...l})}function m({className:e,...t}){return a("div",{"data-slot":"field-group",className:r("group/field-group @container/field-group flex w-full flex-col gap-5 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4",e),...t})}const u=t("group/field flex w-full gap-2",{variants:{orientation:{vertical:"flex-col [&>*]:w-full [&>.sr-only]:w-auto",horizontal:"flex-row items-center has-[>[data-slot=field-content]]:items-start [&>[data-slot=field-label]]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",responsive:"flex-col @md/field-group:flex-row @md/field-group:items-center @md/field-group:has-[>[data-slot=field-content]]:items-start [&>*]:w-full @md/field-group:[&>*]:w-auto [&>.sr-only]:w-auto @md/field-group:[&>[data-slot=field-label]]:flex-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"}},defaultVariants:{orientation:"vertical"}});function p({className:e,orientation:t="vertical",...l}){return a("div",{role:"group","data-slot":"field","data-orientation":t,className:r(u({orientation:t}),e),...l})}function g({className:e,...t}){return a("div",{"data-slot":"field-content",className:r("group/field-content flex flex-1 flex-col gap-0.5 leading-snug",e),...t})}function x({className:e,...t}){return a(s,{"data-slot":"field-label",className:r("has-data-checked:bg-primary/5 has-data-checked:border-primary dark:has-data-checked:bg-primary/10 group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-2.5","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col",e),...t})}function h({className:e,...t}){return a("div",{"data-slot":"field-label",className:r("flex w-fit items-center gap-2 text-sm leading-snug font-medium group-data-[disabled=true]/field:opacity-50",e),...t})}function b({className:e,...t}){return a("p",{"data-slot":"field-description",className:r("text-muted-foreground text-left text-sm leading-normal font-normal group-has-[[data-orientation=horizontal]]/field:text-balance [[data-variant=legend]+&]:-mt-1.5","last:mt-0 nth-last-2:-mt-1","[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",e),...t})}function N({children:t,className:l,...o}){return e("div",{"data-slot":"field-separator","data-content":!!t,className:r("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2",l),...o,children:[a(i,{className:"absolute inset-0 top-1/2"}),t&&a("span",{className:"text-muted-foreground bg-background relative mx-auto block w-fit px-2","data-slot":"field-separator-content",children:t})]})}function v({className:t,children:s,message:i,...c}){const f=l(()=>s||(i?e(d,{className:"items-start gap-1",children:[a(o,{size:16,className:"mt-[
|
|
2
|
+
import{jsx as a,jsxs as e}from"react/jsx-runtime";import{cva as t}from"class-variance-authority";import{useMemo as l}from"react";import{TiWarning as o}from"react-icons/ti";import{cn as r}from"../../lib/utils/cn.js";import{Label as s}from"../label/label.js";import{Separator as i}from"../separator/separator.js";import{HStack as d}from"../stack/stack.js";import{Text as n}from"../text/text.js";function c({className:e,...t}){return a("fieldset",{"data-slot":"field-set",className:r("flex flex-col gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3",e),...t})}function f({className:e,variant:t="legend",...l}){return a("legend",{"data-slot":"field-legend","data-variant":t,className:r("mb-1.5 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base",e),...l})}function m({className:e,...t}){return a("div",{"data-slot":"field-group",className:r("group/field-group @container/field-group flex w-full flex-col gap-5 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4",e),...t})}const u=t("group/field flex w-full gap-2",{variants:{orientation:{vertical:"flex-col [&>*]:w-full [&>.sr-only]:w-auto",horizontal:"flex-row items-center has-[>[data-slot=field-content]]:items-start [&>[data-slot=field-label]]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",responsive:"flex-col @md/field-group:flex-row @md/field-group:items-center @md/field-group:has-[>[data-slot=field-content]]:items-start [&>*]:w-full @md/field-group:[&>*]:w-auto [&>.sr-only]:w-auto @md/field-group:[&>[data-slot=field-label]]:flex-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"}},defaultVariants:{orientation:"vertical"}});function p({className:e,orientation:t="vertical",...l}){return a("div",{role:"group","data-slot":"field","data-orientation":t,className:r(u({orientation:t}),e),...l})}function g({className:e,...t}){return a("div",{"data-slot":"field-content",className:r("group/field-content flex flex-1 flex-col gap-0.5 leading-snug",e),...t})}function x({className:e,...t}){return a(s,{"data-slot":"field-label",className:r("has-data-checked:bg-primary/5 has-data-checked:border-primary dark:has-data-checked:bg-primary/10 group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-2.5","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col",e),...t})}function h({className:e,...t}){return a("div",{"data-slot":"field-label",className:r("flex w-fit items-center gap-2 text-sm leading-snug font-medium group-data-[disabled=true]/field:opacity-50",e),...t})}function b({className:e,...t}){return a("p",{"data-slot":"field-description",className:r("text-muted-foreground text-left text-sm leading-normal font-normal group-has-[[data-orientation=horizontal]]/field:text-balance [[data-variant=legend]+&]:-mt-1.5","last:mt-0 nth-last-2:-mt-1","[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",e),...t})}function N({children:t,className:l,...o}){return e("div",{"data-slot":"field-separator","data-content":!!t,className:r("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2",l),...o,children:[a(i,{className:"absolute inset-0 top-1/2"}),t&&a("span",{className:"text-muted-foreground bg-background relative mx-auto block w-fit px-2","data-slot":"field-separator-content",children:t})]})}function v({className:t,children:s,message:i,...c}){const f=l(()=>s||(i?e(d,{className:"items-start gap-1",children:[a(o,{size:16,className:"mt-[1px] min-w-[16px]"}),a(n,{className:"line-clamp-2 overflow-ellipsis",children:i})]}):null),[s,i]);return f?a("div",{role:"alert","data-slot":"field-error",className:r("text-destructive text-sm font-normal",t),...c,children:f}):null}export{p as Field,g as FieldContent,b as FieldDescription,v as FieldError,m as FieldGroup,x as FieldLabel,f as FieldLegend,N as FieldSeparator,c as FieldSet,h as FieldTitle};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as e,jsx as r}from"react/jsx-runtime";import{X as n}from"lucide-react";import o from"react";import{cn as t}from"../../lib/utils/cn.js";import{Button as s}from"../button/button.js";import{Popover as i,PopoverTrigger as c,PopoverClose as p}from"./popover.js";function a({defaultOpen:n,open:t,trigger:s,children:p,canOpen:a=!0,showOnce:m=!0,onOpenChange:u,closeOnOutsidePress:l=!1,closeOnEscape:d=!1,closeOnTriggerPress:f=!1,...
|
|
1
|
+
import{jsxs as e,jsx as r}from"react/jsx-runtime";import{X as n}from"lucide-react";import o from"react";import{cn as t}from"../../lib/utils/cn.js";import{Button as s}from"../button/button.js";import{Popover as i,PopoverTrigger as c,PopoverClose as p}from"./popover.js";function a({defaultOpen:n,open:t,trigger:s,children:p,canOpen:a=!0,showOnce:m=!0,onOpenChange:u,closeOnOutsidePress:l=!1,closeOnEscape:d=!1,closeOnTriggerPress:f=!1,...g}){const[O,h]=o.useState(!1),[v,b]=o.useState(!1),j=void 0!==t;return o.useEffect(()=>{b(!0)},[]),O||!a?s:e(i,{defaultOpen:n??!1,open:(t||void 0===t)&&v,onOpenChangeComplete:e=>{!e&&m&&h(!0)},onOpenChange:(e,r)=>{if(e&&"trigger-press"!==r.reason)return void u?.(e,r);const n=r?.reason;("close-press"===n||"imperative-action"===n||l&&"outside-press"===n||d&&"escape-key"===n||f&&"trigger-press"===n)&&(u?.(e,r),j||b(!1))},...g,children:[r(c,{render:s}),p]})}function m({className:e,...o}){return r(p,{render:r(s,{size:"icon-sm",variant:"secondary",className:t("absolute top-0 right-0",e)}),children:r(n,{}),...o})}export{a as CoachMark,m as CoachMarkClose};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{jsx as t,jsxs as a}from"react/jsx-runtime";import{Popover as e}from"@base-ui/react/popover";import*as o from"react";import{cn as i}from"../../lib/utils/cn.js";const r=e.createHandle,n=o.createContext({withBackdrop:!1});function s({withBackdrop:a=!1,...o}){return t(n.Provider,{value:{withBackdrop:a},children:t(e.Root,{...o})})}const d=e.Backdrop,p=e.Close;function l({className:a,...r}){const{withBackdrop:s}=o.useContext(n);return t(e.Trigger,{"data-slot":"popover-trigger",className:i(s&&"relative z-50",a),...r})}function c({className:r,children:s,align:d="center",alignOffset:p=0,side:l="bottom",withArrow:c=!
|
|
2
|
+
import{jsx as t,jsxs as a}from"react/jsx-runtime";import{Popover as e}from"@base-ui/react/popover";import*as o from"react";import{cn as i}from"../../lib/utils/cn.js";const r=e.createHandle,n=o.createContext({withBackdrop:!1});function s({withBackdrop:a=!1,...o}){return t(n.Provider,{value:{withBackdrop:a},children:t(e.Root,{...o})})}const d=e.Backdrop,p=e.Close;function l({className:a,...r}){const{withBackdrop:s}=o.useContext(n);return t(e.Trigger,{"data-slot":"popover-trigger",className:i(s&&"relative z-50",a),...r})}function c({className:r,children:s,align:d="center",alignOffset:p=0,side:l="bottom",withArrow:c=!1,sideOffset:u=(c?8:4),...h}){const{withBackdrop:f}=o.useContext(n);return a(e.Portal,{children:[f&&t(e.Backdrop,{className:"fixed inset-0 z-40 bg-black/60 transition-all duration-200 data-ending-style:opacity-0 data-starting-style:opacity-0"}),t(e.Positioner,{align:d,alignOffset:p,side:l,sideOffset:u,collisionAvoidance:{align:"none"},className:"z-50 h-(--positioner-height) w-(--positioner-width) max-w-(--available-width) transition-[top,left,right,bottom,transform] [--viewport-inline-padding:--spacing(4)] data-instant:transition-none",children:a(e.Popup,{"data-slot":"popover-content",className:i("bg-popover text-popover-foreground popup-animate relative flex h-(--popup-height,auto) w-(--popup-width,auto) rounded-lg border px-(--viewport-inline-padding) py-4 shadow-lg/5 transition-[width,height,scale,opacity] not-dark:bg-clip-padding before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] before:shadow-[0_1px_--theme(--color-black/6%)] dark:before:shadow-[0_-1px_--theme(--color-white/6%)]",r),...h,children:[c&&t(e.Arrow,{className:"data-[side=bottom]:top-[-8px] data-[side=left]:right-[-13px] data-[side=left]:rotate-90 data-[side=right]:left-[-13px] data-[side=right]:-rotate-90 data-[side=top]:bottom-[-8px] data-[side=top]:rotate-180",children:t(g,{})}),t(e.Viewport,{className:i("relative size-full max-h-(--positioner-height) overflow-clip outline-none **:data-current:w-[calc(var(--popup-width)-2*var(--viewport-inline-padding)-2px)] **:data-current:opacity-100 **:data-current:transition-opacity **:data-current:data-ending-style:opacity-0 data-instant:transition-none **:data-previous:w-[calc(var(--popup-width)-2*var(--viewport-inline-padding)-2px)] **:data-previous:opacity-100 **:data-previous:transition-opacity **:data-previous:data-ending-style:opacity-0 **:data-current:data-starting-style:opacity-0 **:data-previous:data-starting-style:opacity-0"),"data-slot":"popover-viewport",children:s})]})})]})}function u({className:a,...e}){return t("div",{"data-slot":"popover-header",className:i("flex flex-col gap-0.5 text-sm",a),...e})}function h({className:a,...o}){return t(e.Title,{"data-slot":"popover-title",className:i("font-medium",a),...o})}function f({className:a,...o}){return t(e.Description,{"data-slot":"popover-description",className:i("text-muted-foreground",a),...o})}function g(e){return a("svg",{width:"20",height:"10",viewBox:"0 0 20 10",fill:"none",...e,children:[t("path",{d:"M9.66437 2.60207L4.80758 6.97318C4.07308 7.63423 3.11989 8 2.13172 8H0V10H20V8H18.5349C17.5468 8 16.5936 7.63423 15.8591 6.97318L11.0023 2.60207C10.622 2.2598 10.0447 2.25979 9.66437 2.60207Z",className:"fill-background"}),t("path",{d:"M8.99542 1.85876C9.75604 1.17425 10.9106 1.17422 11.6713 1.85878L16.5281 6.22989C17.0789 6.72568 17.7938 7.00001 18.5349 7.00001L15.89 7L11.0023 2.60207C10.622 2.2598 10.0447 2.2598 9.66436 2.60207L4.77734 7L2.13171 7.00001C2.87284 7.00001 3.58774 6.72568 4.13861 6.22989L8.99542 1.85876Z",className:"fill-border"}),t("path",{d:"M10.3333 3.34539L5.47654 7.71648C4.55842 8.54279 3.36693 9 2.13172 9H0V8H2.13172C3.11989 8 4.07308 7.63423 4.80758 6.97318L9.66437 2.60207C10.0447 2.25979 10.622 2.2598 11.0023 2.60207L15.8591 6.97318C16.5936 7.63423 17.5468 8 18.5349 8H20V9H18.5349C17.2998 9 16.1083 8.54278 15.1901 7.71648L10.3333 3.34539Z"})]})}export{s as Popover,d as PopoverBackdrop,p as PopoverClose,c as PopoverContent,r as PopoverCreateHandle,f as PopoverDescription,u as PopoverHeader,h as PopoverTitle,l as PopoverTrigger};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{jsx as e,jsxs as t}from"react/jsx-runtime";import{Dialog as a}from"@base-ui/react/dialog";import{XIcon as
|
|
2
|
+
import{jsx as e,jsxs as t}from"react/jsx-runtime";import{Dialog as a}from"@base-ui/react/dialog";import{XIcon as o}from"lucide-react";import{cn as l}from"../../lib/utils/cn.js";import{Button as d}from"../button/button.js";const s=a.Root,r=a.Portal;function i(t){return e(a.Trigger,{"data-slot":"sheet-trigger",...t})}function n(t){return e(a.Close,{"data-slot":"sheet-close",...t})}function c({className:t,...o}){return e(a.Backdrop,{className:l("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]:duration-200 data-[closed]:ease-in-out data-[open]:duration-200 data-[open]:ease-in-out",t),"data-slot":"sheet-backdrop",...o})}function u({className:t,side:o,inset:d=!1,...s}){return e(a.Viewport,{className:l("fixed inset-0 z-50 grid","bottom"===o&&"flex flex-col justify-end","top"===o&&"grid grid-rows-[auto_1fr] pb-12","left"===o&&"flex justify-start","right"===o&&"flex justify-end",d&&"sm:p-4"),"data-slot":"sheet-viewport",...s})}function f({className:s,children:i,contentRef:n,radixClassName:f,hideCloseButton:m=!1,side:p="right",inset:x=!1,...b}){return t(r,{children:[e(c,{}),e(u,{inset:x,side:p,children:t(a.Popup,{className:l("bg-dialog max-xs:w-full data-[closed]:animate-out data-[open]:animate-in data-[closed]:fade-out-0 data-[open]:fade-in-0 relative flex max-h-full min-h-0 w-full min-w-0 flex-col overflow-hidden shadow-lg/5 will-change-transform not-dark:bg-clip-padding before:pointer-events-none before:absolute before:inset-0 before:shadow-[0_1px_--theme(--color-black/6%)] data-[closed]:duration-200 data-[closed]:ease-in-out data-[open]:duration-200 data-[open]:ease-in-out max-sm:before:hidden dark:before:shadow-[0_-1px_--theme(--color-white/6%)]","bottom"===p&&"data-[closed]:slide-out-to-bottom-8 data-[open]:slide-in-from-bottom-8 max-h-[98%] rounded-t-3xl border-t","top"===p&&"data-[closed]:slide-out-to-top-8 data-[open]:slide-in-from-top-8 border-b","left"===p&&"data-[closed]:slide-out-to-left-8 data-[open]:slide-in-from-left-8 w-[calc(100%-(--spacing(12)))] max-w-md border-e","right"===p&&"data-[closed]:slide-out-to-right-8 data-[open]:slide-in-from-right-8 col-start-2 w-[calc(100%-(--spacing(12)))] max-w-md border-s",x&&"before:hidden sm:rounded-2xl sm:border sm:before:rounded-[calc(var(--radius-2xl)-1px)] sm:**:data-[slot=sheet-footer]:rounded-b-[calc(var(--radius-2xl)-1px)]",f),"data-slot":"sheet-popup",...b,children:[e("div",{ref:n,className:l("flex h-full w-full flex-1 flex-col gap-2 overflow-y-auto",s),children:i}),!m&&e(a.Close,{"aria-label":"Close",className:"absolute top-[25px] right-[25px] rounded-md",render:e(d,{size:"icon",variant:"secondary",className:"h-auto rounded-md p-[6px]"}),children:e(o,{className:"xs:size-4 size-5"})})]})})]})}function m({className:t,pin:a,children:o,...d}){return e("div",{"data-slot":"sheet-header",className:l("bg-background flex flex-col gap-1.5 rounded-b-3xl p-[30px]",{"outline-dialog sticky top-0 left-0 outline-[8px]":a},t),...d,children:o})}function p({className:t,...a}){return e("div",{className:l("bg-background flex flex-col rounded-3xl p-[30px]",t),...a})}function x({className:t,pin:a,...o}){return e("div",{"data-slot":"sheet-footer",className:l("bg-background flex h-full flex-1 flex-col gap-2 rounded-t-3xl p-[30px]",{"outline-dialog sticky bottom-0 left-0 outline-[8px]":a},t),...o})}function b({className:t,...o}){return e(a.Title,{"data-slot":"sheet-title",className:l("text-foreground line-clamp-2 pr-[38px] text-xl leading-tight font-medium break-words text-ellipsis",t),...o})}function h({className:t,...o}){return e(a.Description,{"data-slot":"sheet-description",className:l("text-muted-foreground text-sm",t),...o})}export{s as Sheet,n as SheetClose,f as SheetContent,p as SheetContentSection,h as SheetDescription,x as SheetFooter,m as SheetHeader,b as SheetTitle,i as SheetTrigger};
|
|
@@ -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
|
|
|
@@ -6,7 +6,7 @@ import { Tooltip as Tooltip$1 } from '@base-ui/react/tooltip';
|
|
|
6
6
|
import { VariantProps } from 'class-variance-authority';
|
|
7
7
|
|
|
8
8
|
declare const tooltipVariants: (props?: ({
|
|
9
|
-
variant?: "default" | "
|
|
9
|
+
variant?: "default" | "primary" | "secondary" | "destructive" | "foreground" | null | undefined;
|
|
10
10
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
11
11
|
declare const TooltipCreateHandle: typeof Tooltip$1.createHandle;
|
|
12
12
|
declare const TooltipProvider: React.FC<_base_ui_react.TooltipProviderProps>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from './components/accordion/accordion.js';
|
|
2
2
|
export { Alert, AlertDescription, AlertTitle, alertVariants } from './components/alert/alert.js';
|
|
3
3
|
export { Avatar, AvatarFallback, AvatarImage } from './components/avatar/avatar.js';
|
|
4
|
-
export { Badge, badgeVariants } from './components/badge/badge.js';
|
|
4
|
+
export { Badge, BadgeProps, badgeVariants } from './components/badge/badge.js';
|
|
5
5
|
export { Button, ButtonProps, buttonVariants } from './components/button/button.js';
|
|
6
6
|
export { Calendar, CalendarDayButton } from './components/calendar/calendar.js';
|
|
7
7
|
export { Card, CardDescription, CardHeader, CardTitle } from './components/card/card.js';
|