lsp-uikit 1.3.4 → 1.3.5
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 +1 -1
- package/dist/components/badge/badge.js +1 -1
- package/dist/components/button/button.d.ts +2 -2
- package/dist/components/button/button.js +1 -1
- package/dist/components/drawer/drawer.js +1 -1
- package/dist/components/input/input.d.ts +1 -2
- package/dist/components/input/input.js +1 -1
- package/dist/components/pagination/pagination.js +1 -1
- package/dist/components/sheet/sheet.js +1 -1
- package/dist/components/sidebar/sidebar.d.ts +2 -2
- package/dist/components/table/table.d.ts +1 -0
- package/dist/components/table/table.js +1 -1
- package/dist/components/tabs/tabs.js +1 -1
- package/dist/components/toggle/toggle.d.ts +2 -2
- 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?: "
|
|
7
|
+
variant?: "success" | "destructive" | "default" | "warning" | null | undefined;
|
|
8
8
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
9
|
declare function Alert({ className, variant, ...props }: React.ComponentProps<'div'> & VariantProps<typeof alertVariants>): react_jsx_runtime.JSX.Element;
|
|
10
10
|
declare function AlertTitle({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
@@ -4,7 +4,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
|
|
6
6
|
declare const badgeVariants: (props?: ({
|
|
7
|
-
variant?: "
|
|
7
|
+
variant?: "primary" | "primary_ghost" | "primary_outline" | "success" | "success_ghost" | "success_outline" | "purple" | "purple_ghost" | "purple_outline" | "secondary" | "destructive" | "destructive_ghost" | "destructive_outline" | "outline" | null | undefined;
|
|
8
8
|
rounded?: "sm" | "md" | "full" | null | undefined;
|
|
9
9
|
textOverflow?: "default" | "hidden" | null | undefined;
|
|
10
10
|
hover?: boolean | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as r}from"react/jsx-runtime";import{Root as e}from"../../node_modules/@radix-ui/react-slot/dist/index.js";import{cva as t}from"../../node_modules/class-variance-authority/dist/index.js";import{cn as
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{Root as e}from"../../node_modules/@radix-ui/react-slot/dist/index.js";import{cva as t}from"../../node_modules/class-variance-authority/dist/index.js";import{cn as o}from"../../lib/utils/cn.js";const d=t("inline-flex items-center justify-center rounded-md border px-2 py-1 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{primary:"border-transparent text-primary-foreground bg-blue-500",primary_ghost:"border-none text-primary bg-primary/10 dark:bg-blue-800/20",primary_outline:"border-primary/50 text-primary dark:border-primary bg-blue-100/50 dark:bg-blue-600/70 dark:text-primary-foreground",success:"border-transparent text-primary-foreground bg-green-500",success_ghost:"border-none text-green-600 bg-green-500/10",success_outline:"border-green-300 dark:border-green-700 bg-green-100/50 dark:bg-green-700/70 dark:text-primary-foreground",purple:"border-transparent text-primary-foreground bg-purple-500",purple_ghost:"border-none text-purple-600 bg-purple-500/10",purple_outline:"border-purple-300 dark:border-transparent bg-purple-100/50 dark:bg-purple-500 text-purple-800 dark:text-primary-foreground",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent text-white bg-destructive",destructive_ghost:"border-none bg-destructive/5 dark:bg-destructive/10 text-destructive",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:"overflow-hidden text-ellipsis whitespace-nowrap block"},hover:{true:"hover:opacity-80"}},defaultVariants:{variant:"primary_outline",rounded:"sm",textOverflow:"default"}});function i({className:t,variant:i,textOverflow:n="default",hover:a=!1,asChild:s=!1,...u}){return r(s?e:"span",{"data-slot":"badge",className:o(d({variant:i,textOverflow:n,hover:a}),t),...u})}export{i as Badge,d as badgeVariants};
|
|
@@ -4,8 +4,8 @@ import * as React from 'react';
|
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
5
|
|
|
6
6
|
declare const buttonVariants: (props?: ({
|
|
7
|
-
variant?: "
|
|
8
|
-
size?: "
|
|
7
|
+
variant?: "secondary" | "destructive" | "outline" | "default" | "default_invert" | "destructive_invert" | "ghost" | "link" | "clear" | null | undefined;
|
|
8
|
+
size?: "sm" | "default" | "lg" | "icon" | null | undefined;
|
|
9
9
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
10
|
interface ButtonProps extends React.ComponentProps<'button'>, VariantProps<typeof buttonVariants> {
|
|
11
11
|
asChild?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as e,jsx as r}from"react/jsx-runtime";import{Root as t}from"../../node_modules/@radix-ui/react-slot/dist/index.js";import{cva as i}from"../../node_modules/class-variance-authority/dist/index.js";import{Loader2 as a}from"lucide-react";import{cn as
|
|
1
|
+
import{jsxs as e,jsx as r}from"react/jsx-runtime";import{Root as t}from"../../node_modules/@radix-ui/react-slot/dist/index.js";import{cva as i}from"../../node_modules/class-variance-authority/dist/index.js";import{Loader2 as a}from"lucide-react";import{cn as n}from"../../lib/utils/cn.js";const s=i('inline-flex items-center cursor-pointer justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*="size-"])]:size-4 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive',{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",default_invert:"text-primary dark:border-primary bg-primary/10 dark:bg-blue-600/25 dark:text-blue-500 hover:bg-primary/15 dark:hover:bg-blue-600/30",destructive:"bg-destructive text-white hover:bg-destructive/90",destructive_invert:"bg-destructive/10 dark:bg-destructive/15 text-destructive dark:text-red-500 hover:bg-destructive/15 dark:hover:bg-destructive/25",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/60",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",clear:"p-0"},size:{default:"h-10 px-4 py-2",sm:"h-9 px-3 py-2",lg:"h-11 px-8",icon:"h-8 w-8 [&_svg]:size-[18px]"}},defaultVariants:{variant:"default",size:"default"}});function d({className:i,variant:d,size:o,isLoading:c,replaceSvgWithLoading:u=!0,asChild:l=!1,children:v,...g}){return e(l?t:"button",{"data-slot":"button",disabled:c||g.disabled,className:n(s({variant:d,size:o,className:i}),{"[&>svg:not(:first-child)]:hidden":u}),...g,children:[c&&r(a,{className:"mr-1 h-4 w-4 animate-spin","data-loading":"true"}),v]})}export{d as Button,s as buttonVariants};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{jsx as t,jsxs as a}from"react/jsx-runtime";import{Drawer as r}from"../../node_modules/vaul/dist/index.js";import{cn as e}from"../../lib/utils/cn.js";function d({...a}){return t(r.Root,{"data-slot":"drawer",...a})}function o({...a}){return t(r.Trigger,{"data-slot":"drawer-trigger",...a})}function i({...a}){return t(r.Portal,{"data-slot":"drawer-portal",...a})}function n({className:a,...d}){return t(r.Overlay,{"data-slot":"drawer-overlay",className:e("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",a),...d})}function l({className:d,children:o,...l}){return a(i,{"data-slot":"drawer-portal",children:[t(n,{}),a(r.Content,{"data-slot":"drawer-content",className:e("group/drawer-content bg-background fixed z-50 flex h-auto flex-col gap-4 px-4 pb-
|
|
2
|
+
import{jsx as t,jsxs as a}from"react/jsx-runtime";import{Drawer as r}from"../../node_modules/vaul/dist/index.js";import{cn as e}from"../../lib/utils/cn.js";function d({...a}){return t(r.Root,{"data-slot":"drawer",...a})}function o({...a}){return t(r.Trigger,{"data-slot":"drawer-trigger",...a})}function i({...a}){return t(r.Portal,{"data-slot":"drawer-portal",...a})}function n({className:a,...d}){return t(r.Overlay,{"data-slot":"drawer-overlay",className:e("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",a),...d})}function l({className:d,children:o,...l}){return a(i,{"data-slot":"drawer-portal",children:[t(n,{}),a(r.Content,{"data-slot":"drawer-content",className:e("group/drawer-content bg-background fixed z-50 flex h-auto flex-col gap-4 px-4 pb-[30px]","data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b","data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t","data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm","data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",d),...l,children:[t("div",{className:"bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block"}),o]})]})}function c({className:a,...r}){return t("div",{"data-slot":"drawer-header",className:e("flex flex-col gap-0.5 py-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left",a),...r})}function u({className:a,...r}){return t("div",{"data-slot":"drawer-footer",className:e("mt-auto flex flex-col gap-2 py-4",a),...r})}function s({className:a,...d}){return t(r.Title,{"data-slot":"drawer-title",className:e("text-foreground font-semibold",a),...d})}function m({className:a,...d}){return t(r.Description,{"data-slot":"drawer-description",className:e("text-muted-foreground text-sm",a),...d})}export{d as Drawer,l as DrawerContent,m as DrawerDescription,u as DrawerFooter,c as DrawerHeader,n as DrawerOverlay,i as DrawerPortal,s as DrawerTitle,o as DrawerTrigger};
|
|
@@ -4,9 +4,8 @@ import * as React from 'react';
|
|
|
4
4
|
declare function Input({ className, type, error, ...props }: React.ComponentProps<'input'> & {
|
|
5
5
|
error?: boolean;
|
|
6
6
|
}): react_jsx_runtime.JSX.Element;
|
|
7
|
-
declare function FormInput({ className,
|
|
7
|
+
declare function FormInput({ className, type, error, ...props }: React.ComponentProps<'input'> & {
|
|
8
8
|
error?: string;
|
|
9
|
-
wrapClassName?: string;
|
|
10
9
|
}): react_jsx_runtime.JSX.Element;
|
|
11
10
|
|
|
12
11
|
export { FormInput, Input };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as r}from"react/jsx-runtime";import{
|
|
1
|
+
import{jsx as e,jsxs as r}from"react/jsx-runtime";import{TiWarning as i}from"react-icons/ti";import{cn as t}from"../../lib/utils/cn.js";import{HStack as a}from"../stack/stack.js";import{Text as n}from"../text/text.js";function o({className:r,type:i,error:a,...n}){return e("input",{type:i,"data-slot":"input","aria-invalid":a,className:t("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-10 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",r),...n})}function s({className:s,type:l,error:d,...c}){return r("div",{className:t("relative",s),children:[e(o,{type:l,error:!!d,...c}),d&&r(a,{className:"text-destructive mt-[2px]",children:[e(i,{size:16}),e(n,{className:"line-clamp-1 break-all text-ellipsis",children:d})]})]})}export{s as FormInput,o as Input};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as a,Fragment as e,jsxs as i}from"react/jsx-runtime";import{ChevronLeftIcon as t,ChevronRightIcon as n,MoreHorizontalIcon as s}from"lucide-react";import*as l from"react";import{cn as o}from"../../lib/utils/cn.js";import{buttonVariants as r}from"../button/button.js";function c(i){const{limit:t,offset:n,total:s,className:o,onChange:r}=i,c=Math.ceil(s/t),d=0===n?1:c-Math.ceil((s-n)/t)+1,f=l.useCallback(a=>{if(d===a)return;document.body.offsetHeight>window.innerHeight&&window.scrollTo({top:0,left:0,behavior:"smooth"}),r(a)},[d,r]);return s<=t?null:a(m,{className:o,children:a(u,{children:c>1&&a(e,{children:Array.from({length:7},(a,e)=>d-3+e).map(e=>e<1||e>c?null:a(p,{isActive:e===d,onClick:()=>f(e),children:e},e))})})})}function m({className:e,...i}){return a("nav",{role:"navigation","aria-label":"pagination","data-slot":"pagination",className:o("mx-auto flex w-full justify-center",e),...i})}function u({className:e,...i}){return a("ul",{"data-slot":"pagination-content",className:o("flex flex-row items-center gap-1",e),...i})}function p({className:e,isActive:i,size:t="icon",...n}){return a("li",{"data-slot":"pagination-item",className:o(r({variant:i?"
|
|
1
|
+
import{jsx as a,Fragment as e,jsxs as i}from"react/jsx-runtime";import{ChevronLeftIcon as t,ChevronRightIcon as n,MoreHorizontalIcon as s}from"lucide-react";import*as l from"react";import{cn as o}from"../../lib/utils/cn.js";import{buttonVariants as r}from"../button/button.js";function c(i){const{limit:t,offset:n,total:s,className:o,onChange:r}=i,c=Math.ceil(s/t),d=0===n?1:c-Math.ceil((s-n)/t)+1,f=l.useCallback(a=>{if(d===a)return;document.body.offsetHeight>window.innerHeight&&window.scrollTo({top:0,left:0,behavior:"smooth"}),r(a)},[d,r]);return s<=t?null:a(m,{className:o,children:a(u,{children:c>1&&a(e,{children:Array.from({length:7},(a,e)=>d-3+e).map(e=>e<1||e>c?null:a(p,{isActive:e===d,onClick:()=>f(e),children:e},e))})})})}function m({className:e,...i}){return a("nav",{role:"navigation","aria-label":"pagination","data-slot":"pagination",className:o("mx-auto flex w-full justify-center",e),...i})}function u({className:e,...i}){return a("ul",{"data-slot":"pagination-content",className:o("flex flex-row items-center gap-1",e),...i})}function p({className:e,isActive:i,size:t="icon",...n}){return a("li",{"data-slot":"pagination-item",className:o(r({variant:i?"secondary":"ghost",size:t}),e,"cursor-pointer"),...n})}function d({className:e,isActive:i,size:t="icon",...n}){return a("a",{"aria-current":i?"page":void 0,"data-slot":"pagination-link","data-active":i,className:o(r({variant:i?"outline":"ghost",size:t}),e),...n})}function f({className:e,...n}){return i(d,{"aria-label":"Go to previous page",size:"default",className:o("gap-1 px-2.5 sm:pl-2.5",e),...n,children:[a(t,{}),a("span",{className:"hidden sm:block",children:"Previous"})]})}function h({className:e,...t}){return i(d,{"aria-label":"Go to next page",size:"default",className:o("gap-1 px-2.5 sm:pr-2.5",e),...t,children:[a("span",{className:"hidden sm:block",children:"Next"}),a(n,{})]})}function N({className:e,...t}){return i("span",{"aria-hidden":!0,"data-slot":"pagination-ellipsis",className:o("flex size-9 items-center justify-center",e),...t,children:[a(s,{className:"size-4"}),a("span",{className:"sr-only",children:"More pages"})]})}export{c as Pagination,u as PaginationContent,N as PaginationEllipsis,p as PaginationItem,d as PaginationLink,h as PaginationNext,f as PaginationPrevious};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{jsx as t,jsxs as e}from"react/jsx-runtime";import{Root as a,Trigger as o,Close as s,Content as n,Title as d,Description as i,Portal as r,Overlay as l}from"../../node_modules/@radix-ui/react-dialog/dist/index.js";import{XIcon as c}from"lucide-react";import{cn as u}from"../../lib/utils/cn.js";import{onPointerDownOutside as m}from"../../lib/utils/events.js";import{Button as f}from"../button/button.js";function p({...e}){return t(a,{"data-slot":"sheet",...e})}function h({...e}){return t(o,{"data-slot":"sheet-trigger",...e})}function g({...e}){return t(s,{"data-slot":"sheet-close",...e})}function
|
|
2
|
+
import{jsx as t,jsxs as e}from"react/jsx-runtime";import{Root as a,Trigger as o,Close as s,Content as n,Title as d,Description as i,Portal as r,Overlay as l}from"../../node_modules/@radix-ui/react-dialog/dist/index.js";import{XIcon as c}from"lucide-react";import{cn as u}from"../../lib/utils/cn.js";import{onPointerDownOutside as m}from"../../lib/utils/events.js";import{Button as f}from"../button/button.js";function p({...e}){return t(a,{"data-slot":"sheet",...e})}function h({...e}){return t(o,{"data-slot":"sheet-trigger",...e})}function g({...e}){return t(s,{"data-slot":"sheet-close",...e})}function x({...e}){return t(r,{"data-slot":"sheet-portal",...e})}function b({className:e,...a}){return t(l,{"data-slot":"sheet-overlay",className:u("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...a})}function N({className:a,children:o,side:d="right",duration:i="default",...r}){return e(x,{children:[t(b,{}),e(n,{onPointerDownOutside:m,"data-slot":"sheet-content",className:u("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500","right"===d&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm","left"===d&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm","top"===d&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b","bottom"===d&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t","default"===i&&"data-[state=closed]:duration-300 data-[state=open]:duration-500","fast"===i&&"data-[state=closed]:duration-200 data-[state=open]:duration-300",a),...r,children:[o,t(s,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-[25px] right-[25px] rounded-xs bg-transparent opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",asChild:!0,children:e(f,{variant:"secondary",className:"bg-secondary h-auto rounded-md p-[6px]",children:[t(c,{className:"size-4"}),t("span",{className:"sr-only",children:"Close"})]})})]})]})}function y({className:e,...a}){return t("div",{"data-slot":"sheet-header",className:u("flex flex-col gap-1.5 pt-[28px] pb-2 max-md:px-5 md:px-[30px]",e),...a})}function v({className:e,...a}){return t("div",{"data-slot":"sheet-footer",className:u("mt-auto flex flex-col gap-2 p-4",e),...a})}function w({className:e,...a}){return t(d,{"data-slot":"sheet-title",className:u("text-foreground pr-[38px] leading-tight font-medium md:text-lg",e),...a})}function j({className:e,...a}){return t(i,{"data-slot":"sheet-description",className:u("text-muted-foreground text-sm",e),...a})}export{p as Sheet,g as SheetClose,N as SheetContent,j as SheetDescription,v as SheetFooter,y as SheetHeader,w as SheetTitle,h as SheetTrigger};
|
|
@@ -46,8 +46,8 @@ declare function SidebarGroupContent({ className, ...props }: React.ComponentPro
|
|
|
46
46
|
declare function SidebarMenu({ className, ...props }: React.ComponentProps<'ul'>): react_jsx_runtime.JSX.Element;
|
|
47
47
|
declare function SidebarMenuItem({ className, ...props }: React.ComponentProps<'li'>): react_jsx_runtime.JSX.Element;
|
|
48
48
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
49
|
-
variant?: "
|
|
50
|
-
size?: "
|
|
49
|
+
variant?: "outline" | "default" | null | undefined;
|
|
50
|
+
size?: "sm" | "default" | "lg" | 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;
|
|
@@ -15,6 +15,7 @@ type TableCellProps = ComponentProps<'td'> & PropsWithChildren & {
|
|
|
15
15
|
declare const TableCell: FC<TableCellProps>;
|
|
16
16
|
type EmptyTableRowProps = ComponentProps<'tr'> & {
|
|
17
17
|
text?: string;
|
|
18
|
+
asChild?: boolean;
|
|
18
19
|
};
|
|
19
20
|
declare const EmptyTableRow: FC<EmptyTableRowProps>;
|
|
20
21
|
type TableStatusCellProps = ComponentProps<'td'> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as
|
|
1
|
+
import{jsx as e,jsxs as r}from"react/jsx-runtime";import{MoveRight as s,Ban as l}from"lucide-react";import{TiWarning as t}from"react-icons/ti";import{cn as a}from"../../lib/utils/cn.js";import{Skeleton as c}from"../skeleton/skeleton.js";import{VStack as i,HStack as n}from"../stack/stack.js";import{Text as o}from"../text/text.js";const m=s=>{const{header:l,children:t,className:c,...n}=s;return e(i,{className:a("table-wrapper",c),...n,children:r("table",{className:"table",children:[e("thead",{children:l}),e("tbody",{children:t})]})})},d=l=>{const{className:t,onClick:c,children:i,...n}=l;return r("tr",{...n,onClick:c,className:a("table__row",t,c&&"cursor-pointer"),children:[i,c&&r(N,{className:"arrow-cell",children:[e("div",{className:"table__row__bg"}),e(s,{size:18})]})]})},h=r=>{const{className:s,...l}=r;return e("tr",{className:a("w-full",r.className),...l,children:e(N,{className:"h-[49px] w-full px-1 py-[2px]",children:e(c,{className:"h-full w-full"})})})},N=r=>{const{className:s,children:l,...t}=r;return e("td",{className:s,...t,children:l})},p=s=>{const{text:l,children:a,asChild:c,...i}=s;return e(d,c?{className:"table__row table__row__empty",...i,children:e(N,{children:a})}:{className:"table__row table__row__empty",...i,children:r(N,{children:[e(n,{className:"bg-secondary mb-2 h-auto w-fit rounded-lg p-2",children:e(t,{className:"text-muted-foreground",size:22})}),e(o,{className:"text-muted-foreground",as:"span",children:l||"Тут ничего нет"})]})})},u=({isNegative:s,negativeText:t,positiveText:a,...c})=>e(N,{...c,children:s?r(n,{className:"text-destructive",children:[t||"Заблокирован",e(l,{size:16})]}):e(o,{as:"span",className:"text-green-600",children:a||"Активен"})});export{p as EmptyTableRow,m as Table,N as TableCell,d as TableRow,h as TableRowSkeleton,u as TableStatusCell};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{jsx as t}from"react/jsx-runtime";import{Root as e,List as a,Trigger as s,Content as
|
|
2
|
+
import{jsx as t}from"react/jsx-runtime";import{Root as e,List as a,Trigger as s,Content as r}from"../../node_modules/@radix-ui/react-tabs/dist/index.js";import{cn as i}from"../../lib/utils/cn.js";function n({className:a,...s}){return t(e,{"data-slot":"tabs",className:i("flex flex-col gap-2",a),...s})}function o({className:e,...s}){return t(a,{"data-slot":"tabs-list",className:i("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...s})}function d({className:e,...a}){return t(s,{"data-slot":"tabs-trigger",className:i("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-background text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...a})}function c({className:e,...a}){return t(r,{"data-slot":"tabs-content",className:i("flex-1 outline-none",e),...a})}export{n as Tabs,c as TabsContent,o as TabsList,d as TabsTrigger};
|
|
@@ -5,8 +5,8 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
|
|
7
7
|
declare const toggleVariants: (props?: ({
|
|
8
|
-
variant?: "
|
|
9
|
-
size?: "
|
|
8
|
+
variant?: "outline" | "default" | null | undefined;
|
|
9
|
+
size?: "sm" | "default" | "lg" | null | undefined;
|
|
10
10
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
11
11
|
declare function Toggle({ className, variant, size, ...props }: React.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime.JSX.Element;
|
|
12
12
|
|