@codefast/ui 0.2.31 → 0.2.34
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/CHANGELOG.md +36 -0
- package/README.md +67 -67
- package/dist/{chunk-SXYB6LLL.js → chunk-55UJC5G4.js} +2 -2
- package/dist/chunk-62FSD36V.cjs +2 -0
- package/dist/chunk-62FSD36V.cjs.map +1 -0
- package/dist/chunk-C5XLUSUU.js +2 -0
- package/dist/chunk-C5XLUSUU.js.map +1 -0
- package/dist/chunk-CGU7BQSL.js +2 -0
- package/dist/chunk-CGU7BQSL.js.map +1 -0
- package/dist/{chunk-ASI3MMOG.cjs → chunk-EBHV6RMB.cjs} +2 -2
- package/dist/{chunk-ASI3MMOG.cjs.map → chunk-EBHV6RMB.cjs.map} +1 -1
- package/dist/chunk-FKBFCM7D.js +2 -0
- package/dist/chunk-FKBFCM7D.js.map +1 -0
- package/dist/{chunk-MX4VRXZV.js → chunk-GXFGJ53T.js} +2 -2
- package/dist/{chunk-PYHULPLG.cjs → chunk-ICLHBN2W.cjs} +2 -2
- package/dist/{chunk-PYHULPLG.cjs.map → chunk-ICLHBN2W.cjs.map} +1 -1
- package/dist/{chunk-67WF7GP7.js → chunk-JFPE2M2V.js} +2 -2
- package/dist/{chunk-67WF7GP7.js.map → chunk-JFPE2M2V.js.map} +1 -1
- package/dist/chunk-M5WBW5H3.cjs +2 -0
- package/dist/chunk-M5WBW5H3.cjs.map +1 -0
- package/dist/chunk-NBKDS5DF.cjs +2 -0
- package/dist/chunk-NBKDS5DF.cjs.map +1 -0
- package/dist/chunk-SQLHRPWG.js +2 -0
- package/dist/chunk-SQLHRPWG.js.map +1 -0
- package/dist/{chunk-HH6A66HR.cjs → chunk-ZICEZCOU.cjs} +2 -2
- package/dist/{chunk-HH6A66HR.cjs.map → chunk-ZICEZCOU.cjs.map} +1 -1
- package/dist/chunk-ZRPXXXUJ.cjs +2 -0
- package/dist/chunk-ZRPXXXUJ.cjs.map +1 -0
- package/dist/components/alert-dialog.cjs +1 -1
- package/dist/components/alert-dialog.js +1 -1
- package/dist/components/card.cjs +1 -1
- package/dist/components/card.cjs.map +1 -1
- package/dist/components/card.d.cts +2 -1
- package/dist/components/card.d.ts +2 -1
- package/dist/components/card.js +1 -1
- package/dist/components/command.cjs +1 -1
- package/dist/components/command.js +1 -1
- package/dist/components/dialog.cjs +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/drawer.cjs +1 -1
- package/dist/components/drawer.js +1 -1
- package/dist/components/sheet.cjs +1 -1
- package/dist/components/sheet.js +1 -1
- package/dist/components/sidebar.cjs +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +9 -9
- package/dist/chunk-2EVCRJID.cjs +0 -2
- package/dist/chunk-2EVCRJID.cjs.map +0 -1
- package/dist/chunk-2IMNP5E3.js +0 -2
- package/dist/chunk-2IMNP5E3.js.map +0 -1
- package/dist/chunk-62H6UZHH.js +0 -2
- package/dist/chunk-62H6UZHH.js.map +0 -1
- package/dist/chunk-AHHONQBW.js +0 -2
- package/dist/chunk-AHHONQBW.js.map +0 -1
- package/dist/chunk-CEK2UYDP.cjs +0 -2
- package/dist/chunk-CEK2UYDP.cjs.map +0 -1
- package/dist/chunk-IJRHIFOZ.cjs +0 -2
- package/dist/chunk-IJRHIFOZ.cjs.map +0 -1
- package/dist/chunk-NUJF2BA2.cjs +0 -2
- package/dist/chunk-NUJF2BA2.cjs.map +0 -1
- package/dist/chunk-UCRTI76K.js +0 -2
- package/dist/chunk-UCRTI76K.js.map +0 -1
- /package/dist/{chunk-SXYB6LLL.js.map → chunk-55UJC5G4.js.map} +0 -0
- /package/dist/{chunk-MX4VRXZV.js.map → chunk-GXFGJ53T.js.map} +0 -0
package/dist/chunk-CEK2UYDP.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _jsxruntime = require('react/jsx-runtime');function a({className:e,...t}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),"data-slot":"card",...t})}function s({className:e,...t}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "flex flex-col gap-1.5 px-6",e),"data-slot":"card-header",...t})}function l({children:e,className:t,...r}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "font-semibold leading-none",t),"data-slot":"card-title",...r,children:e})}function i({className:e,...t}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-muted-foreground text-sm",e),"data-slot":"card-description",...t})}function c({className:e,...t}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "px-6",e),"data-slot":"card-content",...t})}function m({className:e,...t}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "flex items-center px-6",e),"data-slot":"card-footer",...t})}exports.a = a; exports.b = s; exports.c = l; exports.d = i; exports.e = c; exports.f = m;
|
|
2
|
-
//# sourceMappingURL=chunk-CEK2UYDP.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-CEK2UYDP.cjs","../src/components/card.tsx"],"names":["Card","className","props","jsx","cn","CardHeader","CardTitle","children","CardDescription","CardContent","CardFooter"],"mappings":"AAAA,iIAAwC,+CCUpC,SAFKA,CAAAA,CAAK,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAuC,C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CAAA,CAAI,SAAA,CAAWC,iCAAAA,wBAAG,CAA0BH,CAAS,CAAA,CAAG,WAAA,CAAU,aAAA,CAAe,GAAGC,CAAAA,CAAO,CACrG,CAAA,yFAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-CEK2UYDP.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Card\n * -------------------------------------------------------------------------- */\n\nfunction Card({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <div\n className={cn('bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm', className)}\n data-slot=\"card\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CardHeader\n * -------------------------------------------------------------------------- */\n\nfunction CardHeader({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return <div className={cn('flex flex-col gap-1.5 px-6', className)} data-slot=\"card-header\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CardTitle\n * -------------------------------------------------------------------------- */\n\nfunction CardTitle({ children, className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <div className={cn('font-semibold leading-none', className)} data-slot=\"card-title\" {...props}>\n {children}\n </div>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CardDescription\n * -------------------------------------------------------------------------- */\n\nfunction CardDescription({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return <div className={cn('text-muted-foreground text-sm', className)} data-slot=\"card-description\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CardContent\n * -------------------------------------------------------------------------- */\n\nfunction CardContent({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return <div className={cn('px-6', className)} data-slot=\"card-content\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CardFooter\n * -------------------------------------------------------------------------- */\n\nfunction CardFooter({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return <div className={cn('flex items-center px-6', className)} data-slot=\"card-footer\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };\n"]}
|
package/dist/chunk-IJRHIFOZ.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkTNP6NVCRcjs = require('./chunk-TNP6NVCR.cjs');var _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _reactdialog = require('@radix-ui/react-dialog'); var o = _interopRequireWildcard(_reactdialog);var _lucidereact = require('lucide-react');var _jsxruntime = require('react/jsx-runtime');function f({...t}){return _jsxruntime.jsx.call(void 0, o.Root,{"data-slot":"dialog",...t})}function c({...t}){return _jsxruntime.jsx.call(void 0, o.Trigger,{"data-slot":"dialog-trigger",...t})}function u({children:t,className:e,classNames:r,...n}){return _jsxruntime.jsxs.call(void 0, o.Portal,{children:[_jsxruntime.jsx.call(void 0, o.Overlay,{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-popover-overlay data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 backdrop-blur-sm",_optionalChain([r, 'optionalAccess', _ => _.overlay])),"data-slot":"dialog-overlay"}),_jsxruntime.jsx.call(void 0, o.Content,{className:_chunkSMJEDCFPcjs.a.call(void 0, "data-[state=open]:animate-in max-sm:data-[state=open]:animation-duration-500 max-sm:data-[state=open]:slide-in-from-bottom sm:data-[state=open]:fade-in-0 sm:data-[state=open]:zoom-in-95 data-[state=closed]:animate-out max-sm:data-[state=closed]:animation-duration-500 max-sm:data-[state=closed]:slide-out-to-bottom sm:data-[state=closed]:fade-out-0 sm:data-[state=closed]:zoom-out-95 fixed inset-0 z-50 grid grid-rows-[1fr_auto] justify-items-center overflow-auto sm:grid-rows-[1fr_auto_3fr] sm:p-4",_optionalChain([r, 'optionalAccess', _2 => _2.wrapper])),"data-slot":"dialog-content-wrapper",...n,children:_jsxruntime.jsxs.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-popover text-popover-foreground relative row-start-2 flex w-full flex-col rounded-t-2xl border shadow-lg sm:max-w-lg sm:rounded-2xl",_optionalChain([r, 'optionalAccess', _3 => _3.content]),e),"data-slot":"dialog-content",children:[t,_jsxruntime.jsxs.call(void 0, o.Close,{className:_chunkTNP6NVCRcjs.a.call(void 0, {className:["absolute right-2.5 top-2.5 size-7",_optionalChain([r, 'optionalAccess', _4 => _4.close])],size:"icon",variant:"ghost"}),"data-slot":"dialog-close",children:[_jsxruntime.jsx.call(void 0, _lucidereact.XIcon,{className:"size-4"}),_jsxruntime.jsx.call(void 0, "span",{className:"sr-only",children:"Close"})]})]})})]})}function v({className:t,...e}){return _jsxruntime.jsx.call(void 0, "header",{className:_chunkSMJEDCFPcjs.a.call(void 0, "flex shrink-0 flex-col gap-1.5 px-6 pb-2 pt-6 text-center sm:text-left",t),"data-slot":"dialog-header",...e})}function P({className:t,...e}){return _jsxruntime.jsx.call(void 0, "main",{className:_chunkSMJEDCFPcjs.a.call(void 0, "overflow-auto px-6 py-2",t),"data-slot":"dialog-body",...e})}function D({className:t,...e}){return _jsxruntime.jsx.call(void 0, "footer",{className:_chunkSMJEDCFPcjs.a.call(void 0, "flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-2 sm:flex-row sm:justify-end",t),"data-slot":"dialog-footer",...e})}function x({className:t,...e}){return _jsxruntime.jsx.call(void 0, o.Title,{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-lg font-semibold leading-none tracking-tight",t),"data-slot":"dialog-title",...e})}function y({className:t,...e}){return _jsxruntime.jsx.call(void 0, o.Description,{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-muted-foreground text-sm",t),"data-slot":"dialog-description",...e})}function C({className:t,size:e,variant:r="outline",...n}){return _jsxruntime.jsx.call(void 0, o.Close,{className:_chunkTNP6NVCRcjs.a.call(void 0, {className:t,size:e,variant:r}),"data-slot":"dialog-close",...n})}exports.a = f; exports.b = c; exports.c = u; exports.d = v; exports.e = P; exports.f = D; exports.g = x; exports.h = y; exports.i = C;
|
|
2
|
-
//# sourceMappingURL=chunk-IJRHIFOZ.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-IJRHIFOZ.cjs","../src/components/dialog.tsx"],"names":["Dialog","props","jsx","DialogTrigger","DialogContent","children","className","classNames","jsxs","cn","buttonVariants","XIcon","DialogHeader","DialogBody","DialogFooter","DialogTitle","DialogDescription","DialogClose","size","variant"],"mappings":"AAAA,u5BAAwC,wDAAyC,oGCGhD,2CACX,+CAUb,SADAA,CAAAA,CAAO,CAAE,GAAGC,CAAM,CAAA,CAA6D,CACtF,OAAOC,6BAAAA,CAAiB,CAAA,IAAA,CAAhB,CAAqB,WAAA,CAAU,QAAA,CAAU,GAAGD,CAAAA,CAAO,CAC7D,CAMA,SAASE,CAAAA,CAAc,CAAE,GAAGF,CAAM,CAAA,CAAgE,CAChG,OAAOC,6BAAAA,CAAiB,CAAA,OAAA,CAAhB,CAAwB,WAAA,CAAU,gBAAA,CAAkB,GAAGD,CAAAA,CAAO,CACxE,CAMA,SAASG,CAAAA,CAAc,CACrB,QAAA,C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iB,SAAA,CAAAJ,CAAAA,CAAW,IAAA,CAAAY,CAAAA,CAAM,OAAA,CAAAC,CAAQ,CAAC,CAAA,CACtD,WAAA,CAAU,cAAA,CACT,GAAGlB,CAAAA,CACN,CAEJ,CAAA,sIAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-IJRHIFOZ.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\nimport type { VariantProps } from 'tailwind-variants';\n\nimport * as DialogPrimitive from '@radix-ui/react-dialog';\nimport { XIcon } from 'lucide-react';\n\nimport { buttonVariants } from '@/components/button';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Dialog\n * -------------------------------------------------------------------------- */\n\nfunction Dialog({ ...props }: ComponentProps<typeof DialogPrimitive.Root>): JSX.Element {\n return <DialogPrimitive.Root data-slot=\"dialog\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogTrigger\n * -------------------------------------------------------------------------- */\n\nfunction DialogTrigger({ ...props }: ComponentProps<typeof DialogPrimitive.Trigger>): JSX.Element {\n return <DialogPrimitive.Trigger data-slot=\"dialog-trigger\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogContent\n * -------------------------------------------------------------------------- */\n\nfunction DialogContent({\n children,\n className,\n classNames,\n ...props\n}: ComponentProps<typeof DialogPrimitive.Content> & {\n classNames?: {\n close?: string;\n content?: string;\n overlay?: string;\n wrapper?: string;\n };\n}): JSX.Element {\n return (\n <DialogPrimitive.Portal>\n <DialogPrimitive.Overlay\n className={cn(\n 'bg-popover-overlay data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 backdrop-blur-sm',\n classNames?.overlay,\n )}\n data-slot=\"dialog-overlay\"\n />\n <DialogPrimitive.Content\n className={cn(\n 'data-[state=open]:animate-in max-sm:data-[state=open]:animation-duration-500 max-sm:data-[state=open]:slide-in-from-bottom sm:data-[state=open]:fade-in-0 sm:data-[state=open]:zoom-in-95 data-[state=closed]:animate-out max-sm:data-[state=closed]:animation-duration-500 max-sm:data-[state=closed]:slide-out-to-bottom sm:data-[state=closed]:fade-out-0 sm:data-[state=closed]:zoom-out-95 fixed inset-0 z-50 grid grid-rows-[1fr_auto] justify-items-center overflow-auto sm:grid-rows-[1fr_auto_3fr] sm:p-4',\n classNames?.wrapper,\n )}\n data-slot=\"dialog-content-wrapper\"\n {...props}\n >\n <div\n className={cn(\n 'bg-popover text-popover-foreground relative row-start-2 flex w-full flex-col rounded-t-2xl border shadow-lg sm:max-w-lg sm:rounded-2xl',\n classNames?.content,\n className,\n )}\n data-slot=\"dialog-content\"\n >\n {children}\n <DialogPrimitive.Close\n className={buttonVariants({\n className: ['absolute right-2.5 top-2.5 size-7', classNames?.close],\n size: 'icon',\n variant: 'ghost',\n })}\n data-slot=\"dialog-close\"\n >\n <XIcon className=\"size-4\" />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n </div>\n </DialogPrimitive.Content>\n </DialogPrimitive.Portal>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogHeader\n * -------------------------------------------------------------------------- */\n\nfunction DialogHeader({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <header\n className={cn('flex shrink-0 flex-col gap-1.5 px-6 pb-2 pt-6 text-center sm:text-left', className)}\n data-slot=\"dialog-header\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogBody\n * -------------------------------------------------------------------------- */\n\nfunction DialogBody({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return <main className={cn('overflow-auto px-6 py-2', className)} data-slot=\"dialog-body\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogFooter\n * -------------------------------------------------------------------------- */\n\nfunction DialogFooter({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <footer\n className={cn('flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-2 sm:flex-row sm:justify-end', className)}\n data-slot=\"dialog-footer\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogTitle\n * -------------------------------------------------------------------------- */\n\nfunction DialogTitle({ className, ...props }: ComponentProps<typeof DialogPrimitive.Title>): JSX.Element {\n return (\n <DialogPrimitive.Title\n className={cn('text-lg font-semibold leading-none tracking-tight', className)}\n data-slot=\"dialog-title\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogDescription\n * -------------------------------------------------------------------------- */\n\nfunction DialogDescription({ className, ...props }: ComponentProps<typeof DialogPrimitive.Description>): JSX.Element {\n return (\n <DialogPrimitive.Description\n className={cn('text-muted-foreground text-sm', className)}\n data-slot=\"dialog-description\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogClose\n * -------------------------------------------------------------------------- */\n\nfunction DialogClose({\n className,\n size,\n variant = 'outline',\n ...props\n}: Omit<ComponentProps<typeof DialogPrimitive.Close>, 'ref'> & {\n size?: VariantProps<typeof buttonVariants>['size'];\n variant?: VariantProps<typeof buttonVariants>['variant'];\n}): JSX.Element {\n return (\n <DialogPrimitive.Close\n className={buttonVariants({ className, size, variant })}\n data-slot=\"dialog-close\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Dialog,\n DialogBody,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n DialogTrigger,\n};\n"]}
|
package/dist/chunk-NUJF2BA2.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";var _chunkTNP6NVCRcjs = require('./chunk-TNP6NVCR.cjs');var _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _vaul = require('vaul');var _jsxruntime = require('react/jsx-runtime');function u({shouldScaleBackground:t=!0,...r}){return _jsxruntime.jsx.call(void 0, _vaul.Drawer.Root,{"data-slot":"drawer",shouldScaleBackground:t,...r})}function w({...t}){return _jsxruntime.jsx.call(void 0, _vaul.Drawer.Trigger,{"data-slot":"drawer-trigger",...t})}function c({children:t,className:r,classNames:i,...n}){return _jsxruntime.jsxs.call(void 0, _vaul.Drawer.Portal,{children:[_jsxruntime.jsx.call(void 0, _vaul.Drawer.Overlay,{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-popover-overlay fixed inset-0 z-50 backdrop-blur-sm",_optionalChain([i, 'optionalAccess', _ => _.overlay])),"data-slot":"drawer-overlay"}),_jsxruntime.jsxs.call(void 0, _vaul.Drawer.Content,{className:_chunkSMJEDCFPcjs.a.call(void 0, "group/drawer-content bg-background fixed z-50 flex h-auto flex-col data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm",_optionalChain([i, 'optionalAccess', _2 => _2.content]),r),"data-slot":"drawer-content",...n,children:[_jsxruntime.jsx.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-muted mx-auto mt-4 hidden h-1.5 w-12 shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block",_optionalChain([i, 'optionalAccess', _3 => _3.handle]))}),t]})]})}function v({className:t,...r}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "flex flex-col gap-1.5 p-4",t),"data-slot":"drawer-header",...r})}function f({className:t,...r}){return _jsxruntime.jsx.call(void 0, "main",{className:_chunkSMJEDCFPcjs.a.call(void 0, "overflow-auto px-4 py-2",t),"data-slot":"drawer-body",...r})}function g({className:t,...r}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "mt-auto flex flex-col gap-2 p-4",t),"data-slot":"drawer-footer",...r})}function P({className:t,...r}){return _jsxruntime.jsx.call(void 0, _vaul.Drawer.Title,{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-foreground font-semibold",t),"data-slot":"drawer-title",...r})}function D({className:t,...r}){return _jsxruntime.jsx.call(void 0, _vaul.Drawer.Description,{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-muted-foreground text-sm",t),"data-slot":"drawer-description",...r})}function b({className:t,size:r,variant:i="outline",...n}){return _jsxruntime.jsx.call(void 0, _vaul.Drawer.Close,{className:_chunkTNP6NVCRcjs.a.call(void 0, {className:t,size:r,variant:i}),"data-slot":"drawer-close",...n})}exports.a = u; exports.b = w; exports.c = c; exports.d = v; exports.e = f; exports.f = g; exports.g = P; exports.h = D; exports.i = b;
|
|
2
|
-
//# sourceMappingURL=chunk-NUJF2BA2.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-NUJF2BA2.cjs","../src/components/drawer.tsx"],"names":["DrawerPrimitive","DrawerTrigger","DrawerContent","children","className","classNames","jsx","cn","DrawerHeader","DrawerBody","DrawerFooter","DrawerTitle","DrawerDescription","DrawerClose","props","buttonVariants"],"mappings":"AAAA,ylBAAY,CAAC,wDAAwC,wDCK5C,4BAUA,+CADS,SAAA,CAAA,CAAA,CAAA,qBAChB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAAQA,CAAAA,CAAgB,CAAA,CAAA,OAAK,6BAAA,YAAA,CAAA,IAAA,CAAU,CAAA,WAAS,CAAA,QAAA,CAAA,qBAOlD,CAAA,CAAA,CAAA,GAASC,CAAAA,CAAc,CAAE,CAAA,SACvB,CAAA,CAAA,CAAA,GAAQD,CAAAA,CAAgB,CAAA,CAAA,OAAQ,6BAAA,YAAA,CAAA,OAAA,CAAU,CAAA,WAAA,CAAA,gBAO5C,CAAA,GAASE,CAAAA,CAAc,CACrB,CAAA,SAAAC,CACA,CAAA,CAAA,QAAAC,CAAAA,CACA,CAAA,SAAA,CAAAC,CAAAA,CACA,UAQA,CAAA,CAAA,CAAA,GACGL,CAAAA,CAAgB,CAAA,CAAA,OACf,8BAAA,YAAA,CAAA,MAAAM,CAACN,CAAAA,QAAgB,CAAhB,CACC,6BAAA,YAAA,CAAA,OAAWO,CAAG,CAAA,SAAA,CAAA,iCAAA,wDACd,iBAAA,CAAA,2BAAA,SAAA,CAAU,CAAA,WAAA,CAAA,gBAEK,CAAA,CAAhB,CACC,8BAAA,YAAA,CAAA,OAAWA,CACT,CAAA,SAAA,CAAA,iCAAA,21BAGF,iBAAA,CACA,6BAAA,SAAA,CAAA,CAAA,CAAU,CAAA,WAAA,CAAA,gBAGV,CAAA,GAAAD,CAAC,CAAA,QACC,CAAA,CAAA,6BAAA,KAAWC,CACT,CAAA,SAAA,CAAA,iCAAA,8HAGJ,iBACCJ,CAAAA,6BACH,QASN,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAASK,CAAAA,CAAa,CAAE,CAAA,SAAAJ,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H,CAAA,GACGd,CAAAA,CAAgB,CAAA,CAAA,OACf,6BAAA,YAAA,CAAA,KAAWe,CAAe,CAAE,SAAA,CAAAX,iCAAAA,CAAW,SAAM,CAAA,CAAA,CAAA,IAAS,CAAA,CACtD,CAAA,OAAA,CAAA,CAAA,CAAA,CAAU,CAAA,WAAA,CAAA,cAIhB,CAAA,GAAA,CAAA,CAAA,CAAA,CAAA,sIAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-NUJF2BA2.cjs","sourcesContent":[null,"'use client';\n\nimport type { ComponentProps, JSX } from 'react';\nimport type { VariantProps } from 'tailwind-variants';\n\nimport { Drawer as DrawerPrimitive } from 'vaul';\n\nimport { buttonVariants } from '@/components/button';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Drawer\n * -------------------------------------------------------------------------- */\n\nfunction Drawer({ shouldScaleBackground = true, ...props }: ComponentProps<typeof DrawerPrimitive.Root>): JSX.Element {\n return <DrawerPrimitive.Root data-slot=\"drawer\" shouldScaleBackground={shouldScaleBackground} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerTrigger\n * -------------------------------------------------------------------------- */\n\nfunction DrawerTrigger({ ...props }: ComponentProps<typeof DrawerPrimitive.Trigger>): JSX.Element {\n return <DrawerPrimitive.Trigger data-slot=\"drawer-trigger\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerContent\n * -------------------------------------------------------------------------- */\n\nfunction DrawerContent({\n children,\n className,\n classNames,\n ...props\n}: ComponentProps<typeof DrawerPrimitive.Content> & {\n classNames?: {\n content?: string;\n handle?: string;\n overlay?: string;\n };\n}): JSX.Element {\n return (\n <DrawerPrimitive.Portal>\n <DrawerPrimitive.Overlay\n className={cn('bg-popover-overlay fixed inset-0 z-50 backdrop-blur-sm', classNames?.overlay)}\n data-slot=\"drawer-overlay\"\n />\n <DrawerPrimitive.Content\n className={cn(\n 'group/drawer-content bg-background fixed z-50 flex h-auto flex-col data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm',\n classNames?.content,\n className,\n )}\n data-slot=\"drawer-content\"\n {...props}\n >\n <div\n className={cn(\n 'bg-muted mx-auto mt-4 hidden h-1.5 w-12 shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block',\n classNames?.handle,\n )}\n />\n {children}\n </DrawerPrimitive.Content>\n </DrawerPrimitive.Portal>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerHeader\n * -------------------------------------------------------------------------- */\n\nfunction DrawerHeader({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return <div className={cn('flex flex-col gap-1.5 p-4', className)} data-slot=\"drawer-header\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerBody\n * -------------------------------------------------------------------------- */\n\nfunction DrawerBody({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return <main className={cn('overflow-auto px-4 py-2', className)} data-slot=\"drawer-body\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerFooter\n * -------------------------------------------------------------------------- */\n\nfunction DrawerFooter({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return <div className={cn('mt-auto flex flex-col gap-2 p-4', className)} data-slot=\"drawer-footer\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerTitle\n * -------------------------------------------------------------------------- */\n\nfunction DrawerTitle({ className, ...props }: ComponentProps<typeof DrawerPrimitive.Title>): JSX.Element {\n return (\n <DrawerPrimitive.Title\n className={cn('text-foreground font-semibold', className)}\n data-slot=\"drawer-title\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerDescription\n * -------------------------------------------------------------------------- */\n\nfunction DrawerDescription({ className, ...props }: ComponentProps<typeof DrawerPrimitive.Description>): JSX.Element {\n return (\n <DrawerPrimitive.Description\n className={cn('text-muted-foreground text-sm', className)}\n data-slot=\"drawer-description\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerClose\n * -------------------------------------------------------------------------- */\n\nfunction DrawerClose({\n className,\n size,\n variant = 'outline',\n ...props\n}: ComponentProps<typeof DrawerPrimitive.Close> & {\n size?: VariantProps<typeof buttonVariants>['size'];\n variant?: VariantProps<typeof buttonVariants>['variant'];\n}): JSX.Element {\n return (\n <DrawerPrimitive.Close\n className={buttonVariants({ className, size, variant })}\n data-slot=\"drawer-close\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Drawer,\n DrawerBody,\n DrawerClose,\n DrawerContent,\n DrawerDescription,\n DrawerFooter,\n DrawerHeader,\n DrawerTitle,\n DrawerTrigger,\n};\n"]}
|
package/dist/chunk-UCRTI76K.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as n}from"./chunk-ZFCLI44C.js";import{a as i}from"./chunk-OKUFCFYT.js";import*as e from"@radix-ui/react-alert-dialog";import{jsx as a,jsxs as s}from"react/jsx-runtime";function d({...t}){return a(e.Root,{"data-slot":"alert-dialog",...t})}function g({...t}){return a(e.Trigger,{"data-slot":"alert-dialog-trigger",...t})}function f({children:t,className:o,classNames:r,...l}){return s(e.Portal,{children:[a(e.Overlay,{className:i("bg-popover-overlay data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 backdrop-blur-sm",r?.overlay),"data-slot":"alert-dialog-overlay"}),a(e.Content,{className:i("data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 fixed inset-0 z-50 grid grid-rows-[1fr_auto_1fr] justify-items-center overflow-auto p-8 sm:grid-rows-[1fr_auto_3fr] sm:p-4",r?.wrapper),"data-slot":"alert-dialog-content-wrapper",...l,children:a("div",{className:i("bg-popover text-popover-foreground relative row-start-2 flex w-full max-w-lg flex-col rounded-2xl border shadow-lg",r?.content,o),"data-slot":"alert-dialog-content",children:t})})]})}function c({className:t,...o}){return a("div",{className:i("flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left",t),"data-slot":"alert-dialog-header",...o})}function v({className:t,...o}){return a("main",{className:i("overflow-auto px-6 py-2",t),"data-slot":"alert-dialog-body",...o})}function u({className:t,...o}){return a("div",{className:i("flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end",t),"data-slot":"alert-dialog-footer",...o})}function P({className:t,...o}){return a(e.Title,{className:i("text-lg font-semibold leading-none tracking-tight",t),"data-slot":"alert-dialog-title",...o})}function A({className:t,...o}){return a(e.Description,{className:i("text-muted-foreground text-sm",t),"data-slot":"alert-dialog-description",...o})}function D({className:t,size:o,variant:r,...l}){return a(e.Action,{className:n({className:t,size:o,variant:r}),"data-slot":"alert-dialog-action",...l})}function y({className:t,size:o,variant:r="outline",...l}){return a(e.Cancel,{className:n({className:t,size:o,variant:r}),"data-slot":"alert-dialog-cancel",...l})}export{d as a,g as b,f as c,c as d,v as e,u as f,P as g,A as h,D as i,y as j};
|
|
2
|
-
//# sourceMappingURL=chunk-UCRTI76K.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/alert-dialog.tsx"],"names":["AlertDialogPrimitive","jsx","jsxs","AlertDialog","props","AlertDialogTrigger","AlertDialogContent","children","className","classNames","cn","AlertDialogHeader","AlertDialogBody","AlertDialogFooter","AlertDialogTitle","AlertDialogDescription","AlertDialogAction","size","variant","buttonVariants","AlertDialogCancel"],"mappings":"gFAGA,UAAYA,MAA0B,+BAU7B,cAAAC,EA4BL,QAAAC,MA5BK,oBADT,SAASC,EAAY,CAAE,GAAGC,CAAM,EAAkE,CAChG,OAAOH,EAAsB,OAArB,CAA0B,YAAU,eAAgB,GAAGG,EAAO,CACxE,CAMA,SAASC,EAAmB,CAAE,GAAGD,CAAM,EAAqE,CAC1G,OAAOH,EAAsB,UAArB,CAA6B,YAAU,uBAAwB,GAAGG,EAAO,CACnF,CAMA,SAASE,EAAmB,CAC1B,SAAAC,EACA,UAAAC,EACA,WAAAC,EACA,GAAGL,CACL,EAMgB,CACd,OACEF,EAAsB,SAArB,CACC,UAAAD,EAAsB,UAArB,CACC,UAAWS,EACT,gIACAD,GAAY,OACd,EACA,YAAU,uBACZ,EACAR,EAAsB,UAArB,CACC,UAAWS,EACT,kTACAD,GAAY,OACd,EACA,YAAU,+BACT,GAAGL,EAEJ,SAAAH,EAAC,OACC,UAAWS,EACT,qHACAD,GAAY,QACZD,CACF,EACA,YAAU,uBAET,SAAAD,EACH,EACF,GACF,CAEJ,CAMA,SAASI,EAAkB,CAAE,UAAAH,EAAW,GAAGJ,CAAM,EAAuC,CACtF,OACEH,EAAC,OACC,UAAWS,EAAG,yEAA0EF,CAAS,EACjG,YAAU,sBACT,GAAGJ,EACN,CAEJ,CAMA,SAASQ,EAAgB,CAAE,UAAAJ,EAAW,GAAGJ,CAAM,EAAuC,CACpF,OAAOH,EAAC,QAAK,UAAWS,EAAG,0BAA2BF,CAAS,EAAG,YAAU,oBAAqB,GAAGJ,EAAO,CAC7G,CAMA,SAASS,EAAkB,CAAE,UAAAL,EAAW,GAAGJ,CAAM,EAAuC,CACtF,OACEH,EAAC,OACC,UAAWS,EAAG,iFAAkFF,CAAS,EACzG,YAAU,sBACT,GAAGJ,EACN,CAEJ,CAMA,SAASU,EAAiB,CAAE,UAAAN,EAAW,GAAGJ,CAAM,EAAmE,CACjH,OACEH,EAAsB,QAArB,CACC,UAAWS,EAAG,oDAAqDF,CAAS,EAC5E,YAAU,qBACT,GAAGJ,EACN,CAEJ,CAMA,SAASW,EAAuB,CAC9B,UAAAP,EACA,GAAGJ,CACL,EAAyE,CACvE,OACEH,EAAsB,cAArB,CACC,UAAWS,EAAG,gCAAiCF,CAAS,EACxD,YAAU,2BACT,GAAGJ,EACN,CAEJ,CAMA,SAASY,EAAkB,CACzB,UAAAR,EACA,KAAAS,EACA,QAAAC,EACA,GAAGd,CACL,EAGgB,CACd,OACEH,EAAsB,SAArB,CACC,UAAWkB,EAAe,CAAE,UAAAX,EAAW,KAAAS,EAAM,QAAAC,CAAQ,CAAC,EACtD,YAAU,sBACT,GAAGd,EACN,CAEJ,CAMA,SAASgB,EAAkB,CACzB,UAAAZ,EACA,KAAAS,EACA,QAAAC,EAAU,UACV,GAAGd,CACL,EAGgB,CACd,OACEH,EAAsB,SAArB,CACC,UAAWkB,EAAe,CAAE,UAAAX,EAAW,KAAAS,EAAM,QAAAC,CAAQ,CAAC,EACtD,YAAU,sBACT,GAAGd,EACN,CAEJ","sourcesContent":["import type { ComponentProps, JSX } from 'react';\nimport type { VariantProps } from 'tailwind-variants';\n\nimport * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';\n\nimport { buttonVariants } from '@/components/button';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialog\n * -------------------------------------------------------------------------- */\n\nfunction AlertDialog({ ...props }: ComponentProps<typeof AlertDialogPrimitive.Root>): JSX.Element {\n return <AlertDialogPrimitive.Root data-slot=\"alert-dialog\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTrigger\n * -------------------------------------------------------------------------- */\n\nfunction AlertDialogTrigger({ ...props }: ComponentProps<typeof AlertDialogPrimitive.Trigger>): JSX.Element {\n return <AlertDialogPrimitive.Trigger data-slot=\"alert-dialog-trigger\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogContent\n * -------------------------------------------------------------------------- */\n\nfunction AlertDialogContent({\n children,\n className,\n classNames,\n ...props\n}: ComponentProps<typeof AlertDialogPrimitive.Content> & {\n classNames?: {\n content?: string;\n overlay?: string;\n wrapper?: string;\n };\n}): JSX.Element {\n return (\n <AlertDialogPrimitive.Portal>\n <AlertDialogPrimitive.Overlay\n className={cn(\n 'bg-popover-overlay data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 backdrop-blur-sm',\n classNames?.overlay,\n )}\n data-slot=\"alert-dialog-overlay\"\n />\n <AlertDialogPrimitive.Content\n className={cn(\n 'data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 fixed inset-0 z-50 grid grid-rows-[1fr_auto_1fr] justify-items-center overflow-auto p-8 sm:grid-rows-[1fr_auto_3fr] sm:p-4',\n classNames?.wrapper,\n )}\n data-slot=\"alert-dialog-content-wrapper\"\n {...props}\n >\n <div\n className={cn(\n 'bg-popover text-popover-foreground relative row-start-2 flex w-full max-w-lg flex-col rounded-2xl border shadow-lg',\n classNames?.content,\n className,\n )}\n data-slot=\"alert-dialog-content\"\n >\n {children}\n </div>\n </AlertDialogPrimitive.Content>\n </AlertDialogPrimitive.Portal>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogHeader\n * -------------------------------------------------------------------------- */\n\nfunction AlertDialogHeader({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <div\n className={cn('flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left', className)}\n data-slot=\"alert-dialog-header\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogBody\n * -------------------------------------------------------------------------- */\n\nfunction AlertDialogBody({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return <main className={cn('overflow-auto px-6 py-2', className)} data-slot=\"alert-dialog-body\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogFooter\n * -------------------------------------------------------------------------- */\n\nfunction AlertDialogFooter({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <div\n className={cn('flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end', className)}\n data-slot=\"alert-dialog-footer\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTitle\n * -------------------------------------------------------------------------- */\n\nfunction AlertDialogTitle({ className, ...props }: ComponentProps<typeof AlertDialogPrimitive.Title>): JSX.Element {\n return (\n <AlertDialogPrimitive.Title\n className={cn('text-lg font-semibold leading-none tracking-tight', className)}\n data-slot=\"alert-dialog-title\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogDescription\n * -------------------------------------------------------------------------- */\n\nfunction AlertDialogDescription({\n className,\n ...props\n}: ComponentProps<typeof AlertDialogPrimitive.Description>): JSX.Element {\n return (\n <AlertDialogPrimitive.Description\n className={cn('text-muted-foreground text-sm', className)}\n data-slot=\"alert-dialog-description\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogAction\n * -------------------------------------------------------------------------- */\n\nfunction AlertDialogAction({\n className,\n size,\n variant,\n ...props\n}: ComponentProps<typeof AlertDialogPrimitive.Action> & {\n size?: VariantProps<typeof buttonVariants>['size'];\n variant?: VariantProps<typeof buttonVariants>['variant'];\n}): JSX.Element {\n return (\n <AlertDialogPrimitive.Action\n className={buttonVariants({ className, size, variant })}\n data-slot=\"alert-dialog-action\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogCancel\n * -------------------------------------------------------------------------- */\n\nfunction AlertDialogCancel({\n className,\n size,\n variant = 'outline',\n ...props\n}: ComponentProps<typeof AlertDialogPrimitive.Cancel> & {\n size?: VariantProps<typeof buttonVariants>['size'];\n variant?: VariantProps<typeof buttonVariants>['variant'];\n}): JSX.Element {\n return (\n <AlertDialogPrimitive.Cancel\n className={buttonVariants({ className, size, variant })}\n data-slot=\"alert-dialog-cancel\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n AlertDialog,\n AlertDialogAction,\n AlertDialogBody,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogFooter,\n AlertDialogHeader,\n AlertDialogTitle,\n AlertDialogTrigger,\n};\n"]}
|
|
File without changes
|
|
File without changes
|