lsp-uikit 1.4.1 → 1.4.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.
|
@@ -4,7 +4,7 @@ import * as React from 'react';
|
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
5
|
|
|
6
6
|
declare const buttonVariants: (props?: ({
|
|
7
|
-
variant?: "default" | "
|
|
7
|
+
variant?: "default" | "default_invert" | "destructive" | "destructive_invert" | "outline" | "secondary" | "ghost" | "link" | "clear" | null | undefined;
|
|
8
8
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
9
9
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
10
|
interface ButtonProps extends React.ComponentProps<'button'>, VariantProps<typeof buttonVariants> {
|
|
@@ -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 l,Portal as i,Overlay as r}from"../../node_modules/@radix-ui/react-dialog/dist/index.js";import{XIcon as u}from"lucide-react";import{cn as c}from"../../lib/utils/cn.js";import{onPointerDownOutside as f}from"../../lib/utils/events.js";import{Button as m}from"../button/button.js";function p({...e}){return t(a,{"data-slot":"sheet",...e})}function x({...e}){return t(o,{"data-slot":"sheet-trigger",...e})}function h({...e}){return t(s,{"data-slot":"sheet-close",...e})}function g({...e}){return t(i,{"data-slot":"sheet-portal",...e})}function b({className:e,...a}){return t(r,{"data-slot":"sheet-overlay",className:c("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,contentClassName:o,children:s,side:d="right",duration:l="default",...i}){return e(g,{children:[t(b,{}),t(n,{onPointerDownOutside:f,"data-slot":"sheet-content",onOpenAutoFocus:t=>t.preventDefault(),className:c("bg-dialog data-[state=open]:animate-in data-[state=closed]:animate-out max-xs:w-full fixed z-50 flex flex-col gap-2 overflow-hidden shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-300","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 max-h-[98%] rounded-t-3xl border-t data-[state=closed]:!duration-300 data-[state=open]:!duration-300","default"===l&&"data-[state=closed]:duration-300 data-[state=open]:duration-500","fast"===l&&"data-[state=closed]:duration-200 data-[state=open]:duration-300",o),...i,children:t("div",{className:c("flex h-full w-full flex-col gap-2 overflow-y-auto",a),children:s})})]})}function y({className:a,pin:o,children:n,...d}){return e("div",{"data-slot":"sheet-header",className:c("bg-background flex flex-col gap-1.5 rounded-b-3xl p-[30px]",{"outline-dialog sticky top-0 left-0 outline-[8px]":o},a),...d,children:[n,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(m,{variant:"secondary",className:"xs:bg-secondary h-auto rounded-md bg-transparent p-[6px]",children:[t(u,{className:"xs:size-4 size-5"}),t("span",{className:"sr-only",children:"Close"})]})})]})}function v({className:e,...a}){return t("div",{className:c("bg-background flex flex-col rounded-3xl p-[30px]",e),...a})}function w({className:e,pin:a,...o}){return t("div",{"data-slot":"sheet-footer",className:c("bg-background flex h-full flex-col gap-2 rounded-t-3xl p-[30px]",{"outline-dialog sticky bottom-0 left-0 outline-[8px]":a},e),...o})}function k({className:e,...a}){return t(d,{"data-slot":"sheet-title",className:c("text-foreground pr-[38px] text-xl leading-tight font-medium",e),...a})}function j({className:e,...a}){return t(l,{"data-slot":"sheet-description",className:c("text-muted-foreground text-sm",e),...a})}export{p as Sheet,h as SheetClose,N as SheetContent,v as SheetContentSection,j as SheetDescription,w as SheetFooter,y as SheetHeader,k as SheetTitle,x as SheetTrigger};
|
|
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 l,Portal as i,Overlay as r}from"../../node_modules/@radix-ui/react-dialog/dist/index.js";import{XIcon as u}from"lucide-react";import{cn as c}from"../../lib/utils/cn.js";import{onPointerDownOutside as f}from"../../lib/utils/events.js";import{Button as m}from"../button/button.js";function p({...e}){return t(a,{"data-slot":"sheet",...e})}function x({...e}){return t(o,{"data-slot":"sheet-trigger",...e})}function h({...e}){return t(s,{"data-slot":"sheet-close",...e})}function g({...e}){return t(i,{"data-slot":"sheet-portal",...e})}function b({className:e,...a}){return t(r,{"data-slot":"sheet-overlay",className:c("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,contentClassName:o,children:s,side:d="right",duration:l="default",...i}){return e(g,{children:[t(b,{}),t(n,{onPointerDownOutside:f,"data-slot":"sheet-content",onOpenAutoFocus:t=>t.preventDefault(),className:c("bg-dialog data-[state=open]:animate-in data-[state=closed]:animate-out max-xs:w-full fixed z-50 flex flex-col gap-2 overflow-hidden shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-300","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 max-h-[98%] rounded-t-3xl border-t data-[state=closed]:!duration-300 data-[state=open]:!duration-300","default"===l&&"data-[state=closed]:duration-300 data-[state=open]:duration-500","fast"===l&&"data-[state=closed]:duration-200 data-[state=open]:duration-300",o),...i,children:t("div",{className:c("flex h-full w-full flex-1 flex-col gap-2 overflow-y-auto",a),children:s})})]})}function y({className:a,pin:o,children:n,...d}){return e("div",{"data-slot":"sheet-header",className:c("bg-background flex flex-col gap-1.5 rounded-b-3xl p-[30px]",{"outline-dialog sticky top-0 left-0 outline-[8px]":o},a),...d,children:[n,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(m,{variant:"secondary",className:"xs:bg-secondary h-auto rounded-md bg-transparent p-[6px]",children:[t(u,{className:"xs:size-4 size-5"}),t("span",{className:"sr-only",children:"Close"})]})})]})}function v({className:e,...a}){return t("div",{className:c("bg-background flex flex-col rounded-3xl p-[30px]",e),...a})}function w({className:e,pin:a,...o}){return t("div",{"data-slot":"sheet-footer",className:c("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},e),...o})}function k({className:e,...a}){return t(d,{"data-slot":"sheet-title",className:c("text-foreground pr-[38px] text-xl leading-tight font-medium",e),...a})}function j({className:e,...a}){return t(l,{"data-slot":"sheet-description",className:c("text-muted-foreground text-sm",e),...a})}export{p as Sheet,h as SheetClose,N as SheetContent,v as SheetContentSection,j as SheetDescription,w as SheetFooter,y as SheetHeader,k as SheetTitle,x as SheetTrigger};
|