@codefast/ui 0.1.4 → 0.1.6
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/{chunk-ZJPXJFFQ.cjs → chunk-7NEJ7IQ3.cjs} +2 -2
- package/dist/{chunk-ZJPXJFFQ.cjs.map → chunk-7NEJ7IQ3.cjs.map} +1 -1
- package/dist/{chunk-QI2XU7BP.js → chunk-EYL4UQ5E.js} +2 -2
- package/dist/{chunk-QI2XU7BP.js.map → chunk-EYL4UQ5E.js.map} +1 -1
- package/dist/chunk-UYD4MGAB.cjs +2 -0
- package/dist/chunk-UYD4MGAB.cjs.map +1 -0
- package/dist/chunk-VOYJX4JS.js +2 -0
- package/dist/chunk-VOYJX4JS.js.map +1 -0
- package/dist/react/alert-dialog.cjs +1 -1
- package/dist/react/alert-dialog.cjs.map +1 -1
- package/dist/react/alert-dialog.d.cts +13 -4
- package/dist/react/alert-dialog.d.ts +13 -4
- package/dist/react/alert-dialog.js +1 -1
- package/dist/react/alert-dialog.js.map +1 -1
- package/dist/react/calendar.cjs +1 -1
- package/dist/react/calendar.cjs.map +1 -1
- package/dist/react/calendar.d.cts +1 -1
- package/dist/react/calendar.d.ts +1 -1
- package/dist/react/calendar.js +1 -1
- package/dist/react/calendar.js.map +1 -1
- package/dist/react/command.cjs +1 -1
- package/dist/react/command.cjs.map +1 -1
- package/dist/react/command.d.cts +3 -0
- package/dist/react/command.d.ts +3 -0
- package/dist/react/command.js +1 -1
- package/dist/react/command.js.map +1 -1
- package/dist/react/dialog.cjs +1 -1
- package/dist/react/dialog.cjs.map +1 -1
- package/dist/react/dialog.d.cts +8 -2
- package/dist/react/dialog.d.ts +8 -2
- package/dist/react/dialog.js +1 -1
- package/dist/react/drawer.cjs +1 -1
- package/dist/react/drawer.cjs.map +1 -1
- package/dist/react/drawer.d.cts +11 -3
- package/dist/react/drawer.d.ts +11 -3
- package/dist/react/drawer.js +1 -1
- package/dist/react/drawer.js.map +1 -1
- package/dist/react/number-input.cjs +1 -1
- package/dist/react/number-input.js +1 -1
- package/dist/react/sheet.cjs +1 -1
- package/dist/react/sheet.cjs.map +1 -1
- package/dist/react/sheet.d.cts +6 -2
- package/dist/react/sheet.d.ts +6 -2
- package/dist/react/sheet.js +1 -1
- package/dist/react/sheet.js.map +1 -1
- package/dist/react/style/input.cjs +1 -1
- package/dist/react/style/input.js +1 -1
- package/dist/react/text-input.cjs +1 -1
- package/dist/react/text-input.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/package.json +7 -7
- package/dist/chunk-MXS6YFVO.js +0 -2
- package/dist/chunk-MXS6YFVO.js.map +0 -1
- package/dist/chunk-VYHH6LAG.cjs +0 -2
- package/dist/chunk-VYHH6LAG.cjs.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _tailwindvariants = require('tailwind-variants');var e=_tailwindvariants.tv.call(void 0, {slots:{root:"border-input inline-flex w-full cursor-text items-center gap-3 rounded-md border bg-transparent px-3 shadow-sm transition focus-within:outline focus-within:outline-2 focus-within:outline-offset-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _tailwindvariants = require('tailwind-variants');var e=_tailwindvariants.tv.call(void 0, {slots:{root:"border-input inline-flex w-full cursor-text items-center gap-3 rounded-md border bg-transparent px-3 shadow-sm transition focus-within:outline focus-within:outline-2 focus-within:outline-offset-2 has-[[disabled]]:cursor-default has-[[type=file]]:cursor-pointer has-[[disabled]]:opacity-50 [&_svg]:size-4",input:"placeholder:text-muted-foreground peer size-full flex-1 bg-transparent text-sm outline-none file:cursor-pointer file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:cursor-default"},variants:{inputSize:{default:{root:"h-10",input:"file:py-2.25"},xs:{root:"h-8",input:"file:py-1.25"},sm:{root:"h-9",input:"file:py-1.75"},lg:{root:"h-11",input:"file:py-2.75"}}},defaultVariants:{inputSize:"default"}}),{root:r,input:o}=e();exports.a = e; exports.b = r; exports.c = o;
|
|
2
|
+
//# sourceMappingURL=chunk-7NEJ7IQ3.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/react/style/input.ts"],"names":["inputVariants","tv","root","input"],"mappings":"AAAA,8HAAsC,IAMhCA,CAAAA,CAAgBC,kCAAAA,CACpB,KAAA,CAAO,CACL,IAAA,CAAM,iTAAA,CACN,KAAA,CACE,yMACJ,CAAA,CACA,QAAA,CAAU,CACR,SAAA,CAAW,CACT,OAAA,CAAS,CACP,IAAA,CAAM,MAAA,CACN,KAAA,CAAO,cACT,CAAA,CACA,EAAA,CAAI,CACF,IAAA,CAAM,KAAA,CACN,KAAA,CAAO,cACT,CAAA,CACA,EAAA,CAAI,CACF,IAAA,CAAM,KAAA,CACN,KAAA,CAAO,cACT,CAAA,CACA,EAAA,CAAI,CACF,IAAA,CAAM,MAAA,CACN,KAAA,CAAO,cACT,CACF,CACF,CAAA,CACA,eAAA,CAAiB,CACf,SAAA,CAAW,SACb,CACF,CAAC,CAAA,CAIK,CAAE,IAAA,CAAAC,CAAAA,CAAM,KAAA,CAAAC,CAAM,CAAA,CAAIH,CAAAA,CAAc,CAAA,CAAA,4CAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["../src/react/style/input.ts"],"names":["inputVariants","tv","root","input"],"mappings":"AAAA,8HAAsC,IAMhCA,CAAAA,CAAgBC,kCAAAA,CACpB,KAAA,CAAO,CACL,IAAA,CAAM,iTAAA,CACN,KAAA,CACE,yMACJ,CAAA,CACA,QAAA,CAAU,CACR,SAAA,CAAW,CACT,OAAA,CAAS,CACP,IAAA,CAAM,MAAA,CACN,KAAA,CAAO,cACT,CAAA,CACA,EAAA,CAAI,CACF,IAAA,CAAM,KAAA,CACN,KAAA,CAAO,cACT,CAAA,CACA,EAAA,CAAI,CACF,IAAA,CAAM,KAAA,CACN,KAAA,CAAO,cACT,CAAA,CACA,EAAA,CAAI,CACF,IAAA,CAAM,MAAA,CACN,KAAA,CAAO,cACT,CACF,CACF,CAAA,CACA,eAAA,CAAiB,CACf,SAAA,CAAW,SACb,CACF,CAAC,CAAA,CAIK,CAAE,IAAA,CAAAC,CAAAA,CAAM,KAAA,CAAAC,CAAM,CAAA,CAAIH,CAAAA,CAAc,CAAA,CAAA,4CAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-7NEJ7IQ3.cjs","sourcesContent":["import { tv, type VariantProps } from 'tailwind-variants';\n\n/* -----------------------------------------------------------------------------\n * Variant: Input\n * -------------------------------------------------------------------------- */\n\nconst inputVariants = tv({\n slots: {\n root: 'border-input inline-flex w-full cursor-text items-center gap-3 rounded-md border bg-transparent px-3 shadow-sm transition focus-within:outline focus-within:outline-2 focus-within:outline-offset-2 has-[[disabled]]:cursor-default has-[[type=file]]:cursor-pointer has-[[disabled]]:opacity-50 [&_svg]:size-4',\n input:\n 'placeholder:text-muted-foreground peer size-full flex-1 bg-transparent text-sm outline-none file:cursor-pointer file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:cursor-default',\n },\n variants: {\n inputSize: {\n default: {\n root: 'h-10',\n input: 'file:py-2.25',\n },\n xs: {\n root: 'h-8',\n input: 'file:py-1.25',\n },\n sm: {\n root: 'h-9',\n input: 'file:py-1.75',\n },\n lg: {\n root: 'h-11',\n input: 'file:py-2.75',\n },\n },\n },\n defaultVariants: {\n inputSize: 'default',\n },\n});\n\ntype InputVariantsProps = VariantProps<typeof inputVariants>;\n\nconst { root, input } = inputVariants();\n\nexport { root, input, inputVariants, type InputVariantsProps };\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{tv as t}from"tailwind-variants";var e=t({slots:{root:"border-input inline-flex w-full cursor-text items-center gap-3 rounded-md border bg-transparent px-3 shadow-sm transition focus-within:outline focus-within:outline-2 focus-within:outline-offset-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{tv as t}from"tailwind-variants";var e=t({slots:{root:"border-input inline-flex w-full cursor-text items-center gap-3 rounded-md border bg-transparent px-3 shadow-sm transition focus-within:outline focus-within:outline-2 focus-within:outline-offset-2 has-[[disabled]]:cursor-default has-[[type=file]]:cursor-pointer has-[[disabled]]:opacity-50 [&_svg]:size-4",input:"placeholder:text-muted-foreground peer size-full flex-1 bg-transparent text-sm outline-none file:cursor-pointer file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:cursor-default"},variants:{inputSize:{default:{root:"h-10",input:"file:py-2.25"},xs:{root:"h-8",input:"file:py-1.25"},sm:{root:"h-9",input:"file:py-1.75"},lg:{root:"h-11",input:"file:py-2.75"}}},defaultVariants:{inputSize:"default"}}),{root:r,input:o}=e();export{e as a,r as b,o as c};
|
|
2
|
+
//# sourceMappingURL=chunk-EYL4UQ5E.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/react/style/input.ts"],"sourcesContent":["import { tv, type VariantProps } from 'tailwind-variants';\n\n/* -----------------------------------------------------------------------------\n * Variant: Input\n * -------------------------------------------------------------------------- */\n\nconst inputVariants = tv({\n slots: {\n root: 'border-input inline-flex w-full cursor-text items-center gap-3 rounded-md border bg-transparent px-3 shadow-sm transition focus-within:outline focus-within:outline-2 focus-within:outline-offset-
|
|
1
|
+
{"version":3,"sources":["../src/react/style/input.ts"],"sourcesContent":["import { tv, type VariantProps } from 'tailwind-variants';\n\n/* -----------------------------------------------------------------------------\n * Variant: Input\n * -------------------------------------------------------------------------- */\n\nconst inputVariants = tv({\n slots: {\n root: 'border-input inline-flex w-full cursor-text items-center gap-3 rounded-md border bg-transparent px-3 shadow-sm transition focus-within:outline focus-within:outline-2 focus-within:outline-offset-2 has-[[disabled]]:cursor-default has-[[type=file]]:cursor-pointer has-[[disabled]]:opacity-50 [&_svg]:size-4',\n input:\n 'placeholder:text-muted-foreground peer size-full flex-1 bg-transparent text-sm outline-none file:cursor-pointer file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:cursor-default',\n },\n variants: {\n inputSize: {\n default: {\n root: 'h-10',\n input: 'file:py-2.25',\n },\n xs: {\n root: 'h-8',\n input: 'file:py-1.25',\n },\n sm: {\n root: 'h-9',\n input: 'file:py-1.75',\n },\n lg: {\n root: 'h-11',\n input: 'file:py-2.75',\n },\n },\n },\n defaultVariants: {\n inputSize: 'default',\n },\n});\n\ntype InputVariantsProps = VariantProps<typeof inputVariants>;\n\nconst { root, input } = inputVariants();\n\nexport { root, input, inputVariants, type InputVariantsProps };\n"],"mappings":"AAAA,OAAS,MAAAA,MAA6B,oBAMtC,IAAMC,EAAgBD,EAAG,CACvB,MAAO,CACL,KAAM,kTACN,MACE,yMACJ,EACA,SAAU,CACR,UAAW,CACT,QAAS,CACP,KAAM,OACN,MAAO,cACT,EACA,GAAI,CACF,KAAM,MACN,MAAO,cACT,EACA,GAAI,CACF,KAAM,MACN,MAAO,cACT,EACA,GAAI,CACF,KAAM,OACN,MAAO,cACT,CACF,CACF,EACA,gBAAiB,CACf,UAAW,SACb,CACF,CAAC,EAIK,CAAE,KAAAE,EAAM,MAAAC,CAAM,EAAIF,EAAc","names":["tv","inputVariants","root","input"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
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; } }var _chunkBASRQOAAcjs = require('./chunk-BASRQOAA.cjs');var _chunk4XRBMJ5Qcjs = require('./chunk-4XRBMJ5Q.cjs');var _react = require('react'); var r = _interopRequireWildcard(_react);var _reactdialog = require('@radix-ui/react-dialog'); var e = _interopRequireWildcard(_reactdialog);var _reacticons = require('@radix-ui/react-icons');var _jsxruntime = require('react/jsx-runtime');var v=e.Root,R= exports.b =e.Trigger,D= exports.c =r.forwardRef(({children:t,className:o,...a},s)=>_jsxruntime.jsx.call(void 0, e.Portal,{children:_jsxruntime.jsx.call(void 0, e.Overlay,{className:"data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 grid place-items-center overflow-auto bg-black/80 p-4 sm:pb-12 sm:pt-8",children:_jsxruntime.jsxs.call(void 0, e.Content,{ref:s,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "bg-background data-[state=open]:animate-in data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95 data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:fade-in data-[state=closed]:animate-out data-[state=closed]:fade-out relative z-50 flex w-full max-w-lg flex-col rounded-lg border shadow-lg",o),...a,children:[t,_jsxruntime.jsxs.call(void 0, e.Close,{className:"data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute right-4 top-4 rounded-sm p-1 opacity-70 transition hover:opacity-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none",children:[_jsxruntime.jsx.call(void 0, _reacticons.Cross2Icon,{className:"size-4"}),_jsxruntime.jsx.call(void 0, "span",{className:"sr-only",children:"Close"})]})]})})}));D.displayName=e.Content.displayName;function C({className:t,...o}){return _jsxruntime.jsx.call(void 0, "header",{className:_chunk4XRBMJ5Qcjs.a.call(void 0, "flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left",t),...o})}function T({className:t,...o}){return _jsxruntime.jsx.call(void 0, "main",{className:_chunk4XRBMJ5Qcjs.a.call(void 0, "overflow-auto px-6 py-2",t),...o})}function b({className:t,...o}){return _jsxruntime.jsx.call(void 0, "footer",{className:_chunk4XRBMJ5Qcjs.a.call(void 0, "flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end",t),...o})}var c=r.forwardRef(({className:t,...o},a)=>_jsxruntime.jsx.call(void 0, e.Title,{ref:a,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "text-lg font-semibold leading-none tracking-tight",t),...o}));c.displayName=e.Title.displayName;var d=r.forwardRef(({className:t,...o},a)=>_jsxruntime.jsx.call(void 0, e.Description,{ref:a,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "text-muted-foreground text-sm",t),...o}));d.displayName=e.Description.displayName;var f=r.forwardRef(({className:t,size:o,variant:a="outline",...s},m)=>_jsxruntime.jsx.call(void 0, e.Close,{ref:m,className:_chunkBASRQOAAcjs.a.call(void 0, {className:t,size:o,variant:a}),...s}));f.displayName=e.Close.displayName;exports.a = v; exports.b = R; exports.c = D; exports.d = C; exports.e = T; exports.f = b; exports.g = c; exports.h = d; exports.i = f;
|
|
2
|
+
//# sourceMappingURL=chunk-UYD4MGAB.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-UYD4MGAB.cjs","../src/react/dialog.tsx"],"names":["Dialog","DialogTrigger","DialogContent","children","className","props","forwardedRef","jsx","jsxs","cn","Cross2Icon","DialogHeader","DialogBody","DialogFooter","DialogTitle","DialogDescription","DialogClose","size","variant","buttonVariants"],"mappings":"AAAA,mZAAwC,wDAAyC,uECE1D,oGACU,mDACN,+CAsCjB,IA7BJA,CAAAA,CAAyB,CAAA,CAAA,IAAA,CAOzBC,CAAAA,aAAgC,CAAA,CAAA,OAAA,CAShCC,CAAAA,aAAsB,CAAA,CAAA,UAAA,CAC1B,CAAC,CAAE,QAAA,CAAAC,CAAAA,CAAU,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAClCC,6BAAAA,CAAiB,CAAA,MAAA,CAAhB,CACC,QAAA,CAAAA,6BAAAA,CAAiB,CAAA,OAAA,CAAhB,CAAwB,SAAA,CAAU,kPAAA,CACjC,QAAA,CAAAC,8BAAAA,CAAiB,CAAA,OAAA,CAAhB,C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AA,CAAAA,EACnGC,6BAAAA,CAAiB,CAAA,KAAA,CAAhB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWG,iCAAAA,mDAAG,CAAqDL,CAAS,CAAA,CAC3E,GAAGC,CAAAA,CACN,CACD,CAAA,CAEDS,CAAAA,CAAY,WAAA,CAA8B,CAAA,CAAA,KAAA,CAAM,WAAA,CAShD,IAAMC,CAAAA,CAA0B,CAAA,CAAA,UAAA,CAC9B,CAAC,CAAE,SAAA,CAAAX,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,CAAiB,CAAA,WAAA,CAAhB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWG,iCAAAA,+BAAG,CAAiCL,CAAS,CAAA,CACvD,GAAGC,CAAAA,CACN,CAEJ,CAAA,CAEAU,CAAAA,CAAkB,WAAA,CAA8B,CAAA,CAAA,WAAA,CAAY,WAAA,CAa5D,IAAMC,CAAAA,CAAoB,CAAA,CAAA,UAAA,CACxB,CAAC,CAAE,SAAA,CAAAZ,CAAAA,CAAW,IAAA,CAAAa,CAAAA,CAAM,OAAA,CAAAC,CAAAA,CAAU,SAAA,CAAW,GAAGb,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACnDC,6BAAAA,CAAiB,CAAA,KAAA,CAAhB,CAAsB,GAAA,CAAKD,CAAAA,CAAc,SAAA,CAAWa,iCAAAA,CAAiB,SAAA,CAAAf,CAAAA,CAAW,IAAA,CAAAa,CAAAA,CAAM,OAAA,CAAAC,CAAQ,CAAC,CAAA,CAAI,GAAGb,CAAAA,CAAO,CAElH,CAAA,CAEAW,CAAAA,CAAY,WAAA,CAA8B,CAAA,CAAA,KAAA,CAAM,WAAA,CAAA,sIAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-UYD4MGAB.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport * as DialogPrimitive from '@radix-ui/react-dialog';\nimport { Cross2Icon } from '@radix-ui/react-icons';\nimport { cn } from '@/lib/utils';\nimport { buttonVariants, type ButtonVariantsProps } from '@/react/button';\n\n/* -----------------------------------------------------------------------------\n * Component: Dialog\n * -------------------------------------------------------------------------- */\n\ntype DialogProps = React.ComponentProps<typeof DialogPrimitive.Root>;\nconst Dialog = DialogPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: DialogTrigger\n * -------------------------------------------------------------------------- */\n\ntype DialogTriggerProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Trigger>;\nconst DialogTrigger = DialogPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: DialogContent\n * -------------------------------------------------------------------------- */\n\ntype DialogContentElement = React.ElementRef<typeof DialogPrimitive.Content>;\ntype DialogContentProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>;\n\nconst DialogContent = React.forwardRef<DialogContentElement, DialogContentProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <DialogPrimitive.Portal>\n <DialogPrimitive.Overlay className=\"data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 grid place-items-center overflow-auto bg-black/80 p-4 sm:pb-12 sm:pt-8\">\n <DialogPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-background data-[state=open]:animate-in data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95 data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:fade-in data-[state=closed]:animate-out data-[state=closed]:fade-out relative z-50 flex w-full max-w-lg flex-col rounded-lg border shadow-lg',\n className,\n )}\n {...props}\n >\n {children}\n <DialogPrimitive.Close className=\"data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute right-4 top-4 rounded-sm p-1 opacity-70 transition hover:opacity-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none\">\n <Cross2Icon className=\"size-4\" />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n </DialogPrimitive.Content>\n </DialogPrimitive.Overlay>\n </DialogPrimitive.Portal>\n ),\n);\n\nDialogContent.displayName = DialogPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DialogHeader\n * -------------------------------------------------------------------------- */\n\ntype DialogHeaderProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction DialogHeader({ className, ...props }: DialogHeaderProps): React.JSX.Element {\n return (\n <header\n className={cn('flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogBody\n * -------------------------------------------------------------------------- */\n\ntype DialogBodyProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction DialogBody({ className, ...props }: DialogBodyProps): React.JSX.Element {\n return <main className={cn('overflow-auto px-6 py-2', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogFooter\n * -------------------------------------------------------------------------- */\n\ntype DialogFooterProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction DialogFooter({ className, ...props }: DialogFooterProps): React.JSX.Element {\n return (\n <footer\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 {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogTitle\n * -------------------------------------------------------------------------- */\n\ntype DialogTitleElement = React.ElementRef<typeof DialogPrimitive.Title>;\ntype DialogTitleProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>;\n\nconst DialogTitle = React.forwardRef<DialogTitleElement, DialogTitleProps>(({ className, ...props }, forwardedRef) => (\n <DialogPrimitive.Title\n ref={forwardedRef}\n className={cn('text-lg font-semibold leading-none tracking-tight', className)}\n {...props}\n />\n));\n\nDialogTitle.displayName = DialogPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DialogDescription\n * -------------------------------------------------------------------------- */\n\ntype DialogDescriptionElement = React.ElementRef<typeof DialogPrimitive.Description>;\ntype DialogDescriptionProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>;\n\nconst DialogDescription = React.forwardRef<DialogDescriptionElement, DialogDescriptionProps>(\n ({ className, ...props }, forwardedRef) => (\n <DialogPrimitive.Description\n ref={forwardedRef}\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n ),\n);\n\nDialogDescription.displayName = DialogPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DialogClose\n * -------------------------------------------------------------------------- */\n\ntype DialogCloseElement = React.ElementRef<typeof DialogPrimitive.Close>;\n\ninterface DialogCloseProps extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Close> {\n size?: ButtonVariantsProps['size'];\n variant?: ButtonVariantsProps['variant'];\n}\n\nconst DialogClose = React.forwardRef<DialogCloseElement, DialogCloseProps>(\n ({ className, size, variant = 'outline', ...props }, forwardedRef) => (\n <DialogPrimitive.Close ref={forwardedRef} className={buttonVariants({ className, size, variant })} {...props} />\n ),\n);\n\nDialogClose.displayName = DialogPrimitive.Close.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Dialog,\n DialogTrigger,\n DialogClose,\n DialogContent,\n DialogHeader,\n DialogBody,\n DialogFooter,\n DialogTitle,\n DialogDescription,\n type DialogProps,\n type DialogTriggerProps,\n type DialogCloseProps,\n type DialogContentProps,\n type DialogHeaderProps,\n type DialogBodyProps,\n type DialogFooterProps,\n type DialogTitleProps,\n type DialogDescriptionProps,\n};\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as n}from"./chunk-U62JBFEF.js";import{a as l}from"./chunk-VRBUDJBH.js";import*as r from"react";import*as e from"@radix-ui/react-dialog";import{Cross2Icon as g}from"@radix-ui/react-icons";import{jsx as i,jsxs as p}from"react/jsx-runtime";var v=e.Root,R=e.Trigger,D=r.forwardRef(({children:t,className:o,...a},s)=>i(e.Portal,{children:i(e.Overlay,{className:"data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 grid place-items-center overflow-auto bg-black/80 p-4 sm:pb-12 sm:pt-8",children:p(e.Content,{ref:s,className:l("bg-background data-[state=open]:animate-in data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95 data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:fade-in data-[state=closed]:animate-out data-[state=closed]:fade-out relative z-50 flex w-full max-w-lg flex-col rounded-lg border shadow-lg",o),...a,children:[t,p(e.Close,{className:"data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute right-4 top-4 rounded-sm p-1 opacity-70 transition hover:opacity-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none",children:[i(g,{className:"size-4"}),i("span",{className:"sr-only",children:"Close"})]})]})})}));D.displayName=e.Content.displayName;function C({className:t,...o}){return i("header",{className:l("flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left",t),...o})}function T({className:t,...o}){return i("main",{className:l("overflow-auto px-6 py-2",t),...o})}function b({className:t,...o}){return i("footer",{className:l("flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end",t),...o})}var c=r.forwardRef(({className:t,...o},a)=>i(e.Title,{ref:a,className:l("text-lg font-semibold leading-none tracking-tight",t),...o}));c.displayName=e.Title.displayName;var d=r.forwardRef(({className:t,...o},a)=>i(e.Description,{ref:a,className:l("text-muted-foreground text-sm",t),...o}));d.displayName=e.Description.displayName;var f=r.forwardRef(({className:t,size:o,variant:a="outline",...s},m)=>i(e.Close,{ref:m,className:n({className:t,size:o,variant:a}),...s}));f.displayName=e.Close.displayName;export{v as a,R as b,D as c,C as d,T as e,b as f,c as g,d as h,f as i};
|
|
2
|
+
//# sourceMappingURL=chunk-VOYJX4JS.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/react/dialog.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as DialogPrimitive from '@radix-ui/react-dialog';\nimport { Cross2Icon } from '@radix-ui/react-icons';\nimport { cn } from '@/lib/utils';\nimport { buttonVariants, type ButtonVariantsProps } from '@/react/button';\n\n/* -----------------------------------------------------------------------------\n * Component: Dialog\n * -------------------------------------------------------------------------- */\n\ntype DialogProps = React.ComponentProps<typeof DialogPrimitive.Root>;\nconst Dialog = DialogPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: DialogTrigger\n * -------------------------------------------------------------------------- */\n\ntype DialogTriggerProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Trigger>;\nconst DialogTrigger = DialogPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: DialogContent\n * -------------------------------------------------------------------------- */\n\ntype DialogContentElement = React.ElementRef<typeof DialogPrimitive.Content>;\ntype DialogContentProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>;\n\nconst DialogContent = React.forwardRef<DialogContentElement, DialogContentProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <DialogPrimitive.Portal>\n <DialogPrimitive.Overlay className=\"data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 grid place-items-center overflow-auto bg-black/80 p-4 sm:pb-12 sm:pt-8\">\n <DialogPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-background data-[state=open]:animate-in data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95 data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:fade-in data-[state=closed]:animate-out data-[state=closed]:fade-out relative z-50 flex w-full max-w-lg flex-col rounded-lg border shadow-lg',\n className,\n )}\n {...props}\n >\n {children}\n <DialogPrimitive.Close className=\"data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute right-4 top-4 rounded-sm p-1 opacity-70 transition hover:opacity-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none\">\n <Cross2Icon className=\"size-4\" />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n </DialogPrimitive.Content>\n </DialogPrimitive.Overlay>\n </DialogPrimitive.Portal>\n ),\n);\n\nDialogContent.displayName = DialogPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DialogHeader\n * -------------------------------------------------------------------------- */\n\ntype DialogHeaderProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction DialogHeader({ className, ...props }: DialogHeaderProps): React.JSX.Element {\n return (\n <header\n className={cn('flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogBody\n * -------------------------------------------------------------------------- */\n\ntype DialogBodyProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction DialogBody({ className, ...props }: DialogBodyProps): React.JSX.Element {\n return <main className={cn('overflow-auto px-6 py-2', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogFooter\n * -------------------------------------------------------------------------- */\n\ntype DialogFooterProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction DialogFooter({ className, ...props }: DialogFooterProps): React.JSX.Element {\n return (\n <footer\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 {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogTitle\n * -------------------------------------------------------------------------- */\n\ntype DialogTitleElement = React.ElementRef<typeof DialogPrimitive.Title>;\ntype DialogTitleProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>;\n\nconst DialogTitle = React.forwardRef<DialogTitleElement, DialogTitleProps>(({ className, ...props }, forwardedRef) => (\n <DialogPrimitive.Title\n ref={forwardedRef}\n className={cn('text-lg font-semibold leading-none tracking-tight', className)}\n {...props}\n />\n));\n\nDialogTitle.displayName = DialogPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DialogDescription\n * -------------------------------------------------------------------------- */\n\ntype DialogDescriptionElement = React.ElementRef<typeof DialogPrimitive.Description>;\ntype DialogDescriptionProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>;\n\nconst DialogDescription = React.forwardRef<DialogDescriptionElement, DialogDescriptionProps>(\n ({ className, ...props }, forwardedRef) => (\n <DialogPrimitive.Description\n ref={forwardedRef}\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n ),\n);\n\nDialogDescription.displayName = DialogPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DialogClose\n * -------------------------------------------------------------------------- */\n\ntype DialogCloseElement = React.ElementRef<typeof DialogPrimitive.Close>;\n\ninterface DialogCloseProps extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Close> {\n size?: ButtonVariantsProps['size'];\n variant?: ButtonVariantsProps['variant'];\n}\n\nconst DialogClose = React.forwardRef<DialogCloseElement, DialogCloseProps>(\n ({ className, size, variant = 'outline', ...props }, forwardedRef) => (\n <DialogPrimitive.Close ref={forwardedRef} className={buttonVariants({ className, size, variant })} {...props} />\n ),\n);\n\nDialogClose.displayName = DialogPrimitive.Close.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Dialog,\n DialogTrigger,\n DialogClose,\n DialogContent,\n DialogHeader,\n DialogBody,\n DialogFooter,\n DialogTitle,\n DialogDescription,\n type DialogProps,\n type DialogTriggerProps,\n type DialogCloseProps,\n type DialogContentProps,\n type DialogHeaderProps,\n type DialogBodyProps,\n type DialogFooterProps,\n type DialogTitleProps,\n type DialogDescriptionProps,\n};\n"],"mappings":"gFAEA,UAAYA,MAAW,QACvB,UAAYC,MAAqB,yBACjC,OAAS,cAAAC,MAAkB,wBAsCjB,OACE,OAAAC,EADF,QAAAC,MAA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AAkB,YAA8B,cAAY,YAa5D,IAAMC,EAAoB,aACxB,CAAC,CAAE,UAAAV,EAAW,KAAAW,EAAM,QAAAC,EAAU,UAAW,GAAGX,CAAM,EAAGC,IACnDR,EAAiB,QAAhB,CAAsB,IAAKQ,EAAc,UAAWW,EAAe,CAAE,UAAAb,EAAW,KAAAW,EAAM,QAAAC,CAAQ,CAAC,EAAI,GAAGX,EAAO,CAElH,EAEAS,EAAY,YAA8B,QAAM","names":["React","DialogPrimitive","Cross2Icon","jsx","jsxs","Dialog","DialogTrigger","DialogContent","children","className","props","forwardedRef","cn","Cross2Icon","DialogHeader","DialogBody","DialogFooter","DialogTitle","DialogDescription","DialogClose","size","variant","buttonVariants"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
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; } }"use client";var _chunkBASRQOAAcjs = require('../chunk-BASRQOAA.cjs');require('../chunk-VJSYNP4O.cjs');var _chunk4XRBMJ5Qcjs = require('../chunk-4XRBMJ5Q.cjs');var _react = require('react'); var r = _interopRequireWildcard(_react);var _reactalertdialog = require('@radix-ui/react-alert-dialog'); var e = _interopRequireWildcard(_reactalertdialog);var _jsxruntime = require('react/jsx-runtime');var
|
|
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; } }"use client";var _chunkBASRQOAAcjs = require('../chunk-BASRQOAA.cjs');require('../chunk-VJSYNP4O.cjs');var _chunk4XRBMJ5Qcjs = require('../chunk-4XRBMJ5Q.cjs');var _react = require('react'); var r = _interopRequireWildcard(_react);var _reactalertdialog = require('@radix-ui/react-alert-dialog'); var e = _interopRequireWildcard(_reactalertdialog);var _jsxruntime = require('react/jsx-runtime');var d=e.Root,y= exports.AlertDialogTrigger =e.Trigger,m= exports.AlertDialogContent =r.forwardRef(({className:t,...i},a)=>_jsxruntime.jsx.call(void 0, e.Portal,{children:_jsxruntime.jsx.call(void 0, e.Overlay,{className:"data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 grid place-items-center overflow-auto bg-black/80 p-4 sm:pb-12 sm:pt-8",children:_jsxruntime.jsx.call(void 0, e.Content,{ref:a,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "bg-background data-[state=open]:animate-in data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95 data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:fade-in data-[state=closed]:animate-out data-[state=closed]:fade-out relative z-50 flex w-full max-w-lg flex-col rounded-lg border shadow-lg",t),...i})})}));m.displayName=e.Content.displayName;function v({className:t,...i}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunk4XRBMJ5Qcjs.a.call(void 0, "flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left",t),...i})}function R({className:t,...i}){return _jsxruntime.jsx.call(void 0, "main",{className:_chunk4XRBMJ5Qcjs.a.call(void 0, "overflow-auto px-6 py-2",t),...i})}function u({className:t,...i}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunk4XRBMJ5Qcjs.a.call(void 0, "flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end",t),...i})}var g=r.forwardRef(({className:t,...i},a)=>_jsxruntime.jsx.call(void 0, e.Title,{ref:a,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "text-lg font-semibold leading-none tracking-tight",t),...i}));g.displayName=e.Title.displayName;var c=r.forwardRef(({className:t,...i},a)=>_jsxruntime.jsx.call(void 0, e.Description,{ref:a,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "text-muted-foreground text-sm",t),...i}));c.displayName=e.Description.displayName;var A=r.forwardRef(({className:t,size:i,variant:a,...n},s)=>_jsxruntime.jsx.call(void 0, e.Action,{ref:s,className:_chunkBASRQOAAcjs.a.call(void 0, {className:t,size:i,variant:a}),...n}));A.displayName=e.Action.displayName;var D=r.forwardRef(({className:t,size:i,variant:a="outline",...n},s)=>_jsxruntime.jsx.call(void 0, e.Cancel,{ref:s,className:_chunkBASRQOAAcjs.a.call(void 0, {className:t,size:i,variant:a}),...n}));D.displayName=e.Cancel.displayName;exports.AlertDialog = d; exports.AlertDialogAction = A; exports.AlertDialogBody = R; exports.AlertDialogCancel = D; exports.AlertDialogContent = m; exports.AlertDialogDescription = c; exports.AlertDialogFooter = u; exports.AlertDialogHeader = v; exports.AlertDialogTitle = g; exports.AlertDialogTrigger = y;
|
|
2
2
|
//# sourceMappingURL=alert-dialog.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/react/alert-dialog.cjs","../../src/react/alert-dialog.tsx"],"names":["AlertDialog","AlertDialogTrigger","AlertDialogContent","className","props","forwardedRef","jsx","cn","AlertDialogHeader","AlertDialogBody","AlertDialogFooter","AlertDialogTitle","AlertDialogDescription","AlertDialogAction","buttonVariants","AlertDialogCancel"],"mappings":"AAAA,uWAAY,CAAC,yDAAyC,iCAA8B,yDAAqC,uECElG,oHACe,+CA6B9B,IApBFA,CAAAA,CAAmC,CAAA,CAAA,IAAA,CAOnCC,CAAAA,8BAA0C,CAAA,CAAA,OAAA,CAS1CC,CAAAA,8BAA2B,CAAA,CAAA,UAAA,CAC/B,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,CAAsB,CAAA,MAAA,CAArB,CACC,QAAA,CAAAA,6BAAA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alert-dialog.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';\nimport { cn } from '@/lib/utils';\nimport { buttonVariants } from '@/react/button';\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialog\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogProps = React.ComponentProps<typeof AlertDialogPrimitive.Root>;\nconst AlertDialog = AlertDialogPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTrigger\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTriggerProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Trigger>;\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogContent\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogContentElement = React.ElementRef<typeof AlertDialogPrimitive.Content>;\ntype AlertDialogContentProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>;\n\nconst AlertDialogContent = React.forwardRef<AlertDialogContentElement, AlertDialogContentProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Portal>\n <AlertDialogPrimitive.Overlay className=\"data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 grid place-items-center overflow-auto bg-black/80 p-4 sm:pb-12 sm:pt-8\">\n <AlertDialogPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-background data-[state=open]:animate-in data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95 data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:fade-in data-[state=closed]:animate-out data-[state=closed]:fade-out relative z-50 flex w-full max-w-lg flex-col rounded-lg border shadow-lg',\n className,\n )}\n {...props}\n />\n </AlertDialogPrimitive.Overlay>\n </AlertDialogPrimitive.Portal>\n ),\n);\n\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogHeader\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogHeaderProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogHeader({ className, ...props }: AlertDialogHeaderProps): React.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 {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogBody\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogBodyProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogBody({ className, ...props }: AlertDialogBodyProps): React.JSX.Element {\n return <main className={cn('overflow-auto px-6 py-2', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogFooter\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogFooterProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogFooter({ className, ...props }: AlertDialogFooterProps): React.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 {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTitle\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTitleElement = React.ElementRef<typeof AlertDialogPrimitive.Title>;\ntype AlertDialogTitleProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>;\n\nconst AlertDialogTitle = React.forwardRef<AlertDialogTitleElement, AlertDialogTitleProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Title\n ref={forwardedRef}\n className={cn('text-lg font-semibold leading-none tracking-tight', className)}\n {...props}\n />\n ),\n);\n\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogDescription\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogDescriptionElement = React.ElementRef<typeof AlertDialogPrimitive.Description>;\ntype AlertDialogDescriptionProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>;\n\nconst AlertDialogDescription = React.forwardRef<AlertDialogDescriptionElement, AlertDialogDescriptionProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Description\n ref={forwardedRef}\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n ),\n);\n\nAlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogAction\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogActionElement = React.ElementRef<typeof AlertDialogPrimitive.Action>;\ntype AlertDialogActionProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action>;\n\nconst AlertDialogAction = React.forwardRef<AlertDialogActionElement, AlertDialogActionProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Action ref={forwardedRef} className={buttonVariants({ className })} {...props} />\n ),\n);\n\nAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogCancel\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogCancelElement = React.ElementRef<typeof AlertDialogPrimitive.Cancel>;\ntype AlertDialogCancelProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>;\n\nconst AlertDialogCancel = React.forwardRef<AlertDialogCancelElement, AlertDialogCancelProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Cancel\n ref={forwardedRef}\n className={buttonVariants({ variant: 'outline', className })}\n {...props}\n />\n ),\n);\n\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n AlertDialog,\n AlertDialogTrigger,\n AlertDialogContent,\n AlertDialogHeader,\n AlertDialogBody,\n AlertDialogFooter,\n AlertDialogTitle,\n AlertDialogDescription,\n AlertDialogAction,\n AlertDialogCancel,\n type AlertDialogProps,\n type AlertDialogTriggerProps,\n type AlertDialogContentProps,\n type AlertDialogHeaderProps,\n type AlertDialogBodyProps,\n type AlertDialogFooterProps,\n type AlertDialogTitleProps,\n type AlertDialogDescriptionProps,\n type AlertDialogActionProps,\n type AlertDialogCancelProps,\n};\n"]}
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/react/alert-dialog.cjs","../../src/react/alert-dialog.tsx"],"names":["AlertDialog","AlertDialogTrigger","AlertDialogContent","className","props","forwardedRef","jsx","cn","AlertDialogHeader","AlertDialogBody","AlertDialogFooter","AlertDialogTitle","AlertDialogDescription","AlertDialogAction","size","variant","buttonVariants","AlertDialogCancel"],"mappings":"AAAA,uWAAY,CAAC,yDAAyC,iCAA8B,yDAA0C,uECEvG,oHACe,+CA6B9B,IApBFA,CAAAA,CAAmC,CAAA,CAAA,IAAA,CAOnCC,CAAAA,8BAA0C,CAAA,CAAA,OAAA,CAS1CC,CAAAA,8BAA2B,CAAA,CAAA,UAAA,CAC/B,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,CAAsB,CAAA,MAAA,CAArB,CACC,QAAA,CAAAA,6BAAAA,CAAsB,CAAA,OAAA,CAArB,CAA6B,SAAA,CAAU,kPAAA,CACtC,QAAA,CAAAA,6BAAAA,CAAsB,CAAA,OAAA,CAArB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,wVACT,CACAJ,CACF,CAAA,CACC,GAAGC,CAAAA,CACN,CAAA,CACF,CAAA,CACF,CAEJ,CAAA,CAEAF,CAAAA,CAAmB,WAAA,CAAmC,CAAA,CAAA,OAAA,CAAQ,WAAA,CAQ9D,SAASM,CAAAA,CAAkB,CAAE,SAAA,CAAAL,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAA8C,CAC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WAAA,CAAY,WAAA,CAatE,IAAMC,CAAAA,CAA0B,CAAA,CAAA,UAAA,CAC9B,CAAC,CAAE,SAAA,CAAAV,CAAAA,CAAW,IAAA,CAAAW,CAAAA,CAAM,OAAA,CAAAC,CAAAA,CAAS,GAAGX,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACvCC,6BAAAA,CAAsB,CAAA,MAAA,CAArB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWW,iCAAAA,CAAiB,SAAA,CAAAb,CAAAA,CAAW,IAAA,CAAAW,CAAAA,CAAM,OAAA,CAAAC,CAAQ,CAAC,CAAA,CACrD,GAAGX,CAAAA,CACN,CAEJ,CAAA,CAEAS,CAAAA,CAAkB,WAAA,CAAmC,CAAA,CAAA,MAAA,CAAO,WAAA,CAa5D,IAAMI,CAAAA,CAA0B,CAAA,CAAA,UAAA,CAC9B,CAAC,CAAE,SAAA,CAAAd,CAAAA,CAAW,IAAA,CAAAW,CAAAA,CAAM,OAAA,CAAAC,CAAAA,CAAU,SAAA,CAAW,GAAGX,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACnDC,6BAAAA,CAAsB,CAAA,MAAA,CAArB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWW,iCAAAA,CAAiB,SAAA,CAAAb,CAAAA,CAAW,IAAA,CAAAW,CAAAA,CAAM,OAAA,CAAAC,CAAQ,CAAC,CAAA,CACrD,GAAGX,CAAAA,CACN,CAEJ,CAAA,CAEAa,CAAAA,CAAkB,WAAA,CAAmC,CAAA,CAAA,MAAA,CAAO,WAAA,CAAA,mTAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/react/alert-dialog.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';\nimport { cn } from '@/lib/utils';\nimport { buttonVariants, type ButtonVariantsProps } from '@/react/button';\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialog\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogProps = React.ComponentProps<typeof AlertDialogPrimitive.Root>;\nconst AlertDialog = AlertDialogPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTrigger\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTriggerProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Trigger>;\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogContent\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogContentElement = React.ElementRef<typeof AlertDialogPrimitive.Content>;\ntype AlertDialogContentProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>;\n\nconst AlertDialogContent = React.forwardRef<AlertDialogContentElement, AlertDialogContentProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Portal>\n <AlertDialogPrimitive.Overlay className=\"data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 grid place-items-center overflow-auto bg-black/80 p-4 sm:pb-12 sm:pt-8\">\n <AlertDialogPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-background data-[state=open]:animate-in data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95 data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:fade-in data-[state=closed]:animate-out data-[state=closed]:fade-out relative z-50 flex w-full max-w-lg flex-col rounded-lg border shadow-lg',\n className,\n )}\n {...props}\n />\n </AlertDialogPrimitive.Overlay>\n </AlertDialogPrimitive.Portal>\n ),\n);\n\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogHeader\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogHeaderProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogHeader({ className, ...props }: AlertDialogHeaderProps): React.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 {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogBody\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogBodyProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogBody({ className, ...props }: AlertDialogBodyProps): React.JSX.Element {\n return <main className={cn('overflow-auto px-6 py-2', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogFooter\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogFooterProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogFooter({ className, ...props }: AlertDialogFooterProps): React.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 {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTitle\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTitleElement = React.ElementRef<typeof AlertDialogPrimitive.Title>;\ntype AlertDialogTitleProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>;\n\nconst AlertDialogTitle = React.forwardRef<AlertDialogTitleElement, AlertDialogTitleProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Title\n ref={forwardedRef}\n className={cn('text-lg font-semibold leading-none tracking-tight', className)}\n {...props}\n />\n ),\n);\n\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogDescription\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogDescriptionElement = React.ElementRef<typeof AlertDialogPrimitive.Description>;\ntype AlertDialogDescriptionProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>;\n\nconst AlertDialogDescription = React.forwardRef<AlertDialogDescriptionElement, AlertDialogDescriptionProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Description\n ref={forwardedRef}\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n ),\n);\n\nAlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogAction\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogActionElement = React.ElementRef<typeof AlertDialogPrimitive.Action>;\n\ninterface AlertDialogActionProps extends React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action> {\n size?: ButtonVariantsProps['size'];\n variant?: ButtonVariantsProps['variant'];\n}\n\nconst AlertDialogAction = React.forwardRef<AlertDialogActionElement, AlertDialogActionProps>(\n ({ className, size, variant, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Action\n ref={forwardedRef}\n className={buttonVariants({ className, size, variant })}\n {...props}\n />\n ),\n);\n\nAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogCancel\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogCancelElement = React.ElementRef<typeof AlertDialogPrimitive.Cancel>;\n\ninterface AlertDialogCancelProps extends React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel> {\n size?: ButtonVariantsProps['size'];\n variant?: ButtonVariantsProps['variant'];\n}\n\nconst AlertDialogCancel = React.forwardRef<AlertDialogCancelElement, AlertDialogCancelProps>(\n ({ className, size, variant = 'outline', ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Cancel\n ref={forwardedRef}\n className={buttonVariants({ className, size, variant })}\n {...props}\n />\n ),\n);\n\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n AlertDialog,\n AlertDialogTrigger,\n AlertDialogContent,\n AlertDialogHeader,\n AlertDialogBody,\n AlertDialogFooter,\n AlertDialogTitle,\n AlertDialogDescription,\n AlertDialogAction,\n AlertDialogCancel,\n type AlertDialogProps,\n type AlertDialogTriggerProps,\n type AlertDialogContentProps,\n type AlertDialogHeaderProps,\n type AlertDialogBodyProps,\n type AlertDialogFooterProps,\n type AlertDialogTitleProps,\n type AlertDialogDescriptionProps,\n type AlertDialogActionProps,\n type AlertDialogCancelProps,\n};\n"]}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
3
|
+
import { ButtonVariantsProps } from './button.cjs';
|
|
4
|
+
import 'tailwind-variants';
|
|
5
|
+
import 'tailwind-variants/dist/config.js';
|
|
3
6
|
|
|
4
7
|
type AlertDialogProps = React.ComponentProps<typeof AlertDialogPrimitive.Root>;
|
|
5
8
|
declare const AlertDialog: React.FC<AlertDialogPrimitive.AlertDialogProps>;
|
|
@@ -17,9 +20,15 @@ type AlertDialogTitleProps = React.ComponentPropsWithoutRef<typeof AlertDialogPr
|
|
|
17
20
|
declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
18
21
|
type AlertDialogDescriptionProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>;
|
|
19
22
|
declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
interface AlertDialogActionProps extends React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action> {
|
|
24
|
+
size?: ButtonVariantsProps['size'];
|
|
25
|
+
variant?: ButtonVariantsProps['variant'];
|
|
26
|
+
}
|
|
27
|
+
declare const AlertDialogAction: React.ForwardRefExoticComponent<AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>>;
|
|
28
|
+
interface AlertDialogCancelProps extends React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel> {
|
|
29
|
+
size?: ButtonVariantsProps['size'];
|
|
30
|
+
variant?: ButtonVariantsProps['variant'];
|
|
31
|
+
}
|
|
32
|
+
declare const AlertDialogCancel: React.ForwardRefExoticComponent<AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>>;
|
|
24
33
|
|
|
25
34
|
export { AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogBody, type AlertDialogBodyProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, type AlertDialogProps, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertDialogTriggerProps };
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
3
|
+
import { ButtonVariantsProps } from './button.js';
|
|
4
|
+
import 'tailwind-variants';
|
|
5
|
+
import 'tailwind-variants/dist/config.js';
|
|
3
6
|
|
|
4
7
|
type AlertDialogProps = React.ComponentProps<typeof AlertDialogPrimitive.Root>;
|
|
5
8
|
declare const AlertDialog: React.FC<AlertDialogPrimitive.AlertDialogProps>;
|
|
@@ -17,9 +20,15 @@ type AlertDialogTitleProps = React.ComponentPropsWithoutRef<typeof AlertDialogPr
|
|
|
17
20
|
declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
18
21
|
type AlertDialogDescriptionProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>;
|
|
19
22
|
declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
interface AlertDialogActionProps extends React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action> {
|
|
24
|
+
size?: ButtonVariantsProps['size'];
|
|
25
|
+
variant?: ButtonVariantsProps['variant'];
|
|
26
|
+
}
|
|
27
|
+
declare const AlertDialogAction: React.ForwardRefExoticComponent<AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>>;
|
|
28
|
+
interface AlertDialogCancelProps extends React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel> {
|
|
29
|
+
size?: ButtonVariantsProps['size'];
|
|
30
|
+
variant?: ButtonVariantsProps['variant'];
|
|
31
|
+
}
|
|
32
|
+
declare const AlertDialogCancel: React.ForwardRefExoticComponent<AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>>;
|
|
24
33
|
|
|
25
34
|
export { AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogBody, type AlertDialogBodyProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, type AlertDialogProps, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertDialogTriggerProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{a as
|
|
1
|
+
"use client";import{a as p}from"../chunk-U62JBFEF.js";import"../chunk-JK5GPYFN.js";import{a as l}from"../chunk-VRBUDJBH.js";import*as r from"react";import*as e from"@radix-ui/react-alert-dialog";import{jsx as o}from"react/jsx-runtime";var d=e.Root,y=e.Trigger,m=r.forwardRef(({className:t,...i},a)=>o(e.Portal,{children:o(e.Overlay,{className:"data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 grid place-items-center overflow-auto bg-black/80 p-4 sm:pb-12 sm:pt-8",children:o(e.Content,{ref:a,className:l("bg-background data-[state=open]:animate-in data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95 data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:fade-in data-[state=closed]:animate-out data-[state=closed]:fade-out relative z-50 flex w-full max-w-lg flex-col rounded-lg border shadow-lg",t),...i})})}));m.displayName=e.Content.displayName;function v({className:t,...i}){return o("div",{className:l("flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left",t),...i})}function R({className:t,...i}){return o("main",{className:l("overflow-auto px-6 py-2",t),...i})}function u({className:t,...i}){return o("div",{className:l("flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end",t),...i})}var g=r.forwardRef(({className:t,...i},a)=>o(e.Title,{ref:a,className:l("text-lg font-semibold leading-none tracking-tight",t),...i}));g.displayName=e.Title.displayName;var c=r.forwardRef(({className:t,...i},a)=>o(e.Description,{ref:a,className:l("text-muted-foreground text-sm",t),...i}));c.displayName=e.Description.displayName;var A=r.forwardRef(({className:t,size:i,variant:a,...n},s)=>o(e.Action,{ref:s,className:p({className:t,size:i,variant:a}),...n}));A.displayName=e.Action.displayName;var D=r.forwardRef(({className:t,size:i,variant:a="outline",...n},s)=>o(e.Cancel,{ref:s,className:p({className:t,size:i,variant:a}),...n}));D.displayName=e.Cancel.displayName;export{d as AlertDialog,A as AlertDialogAction,R as AlertDialogBody,D as AlertDialogCancel,m as AlertDialogContent,c as AlertDialogDescription,u as AlertDialogFooter,v as AlertDialogHeader,g as AlertDialogTitle,y as AlertDialogTrigger};
|
|
2
2
|
//# sourceMappingURL=alert-dialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/react/alert-dialog.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';\nimport { cn } from '@/lib/utils';\nimport { buttonVariants } from '@/react/button';\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialog\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogProps = React.ComponentProps<typeof AlertDialogPrimitive.Root>;\nconst AlertDialog = AlertDialogPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTrigger\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTriggerProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Trigger>;\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogContent\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogContentElement = React.ElementRef<typeof AlertDialogPrimitive.Content>;\ntype AlertDialogContentProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>;\n\nconst AlertDialogContent = React.forwardRef<AlertDialogContentElement, AlertDialogContentProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Portal>\n <AlertDialogPrimitive.Overlay className=\"data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 grid place-items-center overflow-auto bg-black/80 p-4 sm:pb-12 sm:pt-8\">\n <AlertDialogPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-background data-[state=open]:animate-in data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95 data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:fade-in data-[state=closed]:animate-out data-[state=closed]:fade-out relative z-50 flex w-full max-w-lg flex-col rounded-lg border shadow-lg',\n className,\n )}\n {...props}\n />\n </AlertDialogPrimitive.Overlay>\n </AlertDialogPrimitive.Portal>\n ),\n);\n\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogHeader\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogHeaderProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogHeader({ className, ...props }: AlertDialogHeaderProps): React.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 {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogBody\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogBodyProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogBody({ className, ...props }: AlertDialogBodyProps): React.JSX.Element {\n return <main className={cn('overflow-auto px-6 py-2', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogFooter\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogFooterProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogFooter({ className, ...props }: AlertDialogFooterProps): React.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 {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTitle\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTitleElement = React.ElementRef<typeof AlertDialogPrimitive.Title>;\ntype AlertDialogTitleProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>;\n\nconst AlertDialogTitle = React.forwardRef<AlertDialogTitleElement, AlertDialogTitleProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Title\n ref={forwardedRef}\n className={cn('text-lg font-semibold leading-none tracking-tight', className)}\n {...props}\n />\n ),\n);\n\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogDescription\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogDescriptionElement = React.ElementRef<typeof AlertDialogPrimitive.Description>;\ntype AlertDialogDescriptionProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>;\n\nconst AlertDialogDescription = React.forwardRef<AlertDialogDescriptionElement, AlertDialogDescriptionProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Description\n ref={forwardedRef}\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n ),\n);\n\nAlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogAction\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogActionElement = React.ElementRef<typeof AlertDialogPrimitive.Action>;\
|
|
1
|
+
{"version":3,"sources":["../../src/react/alert-dialog.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';\nimport { cn } from '@/lib/utils';\nimport { buttonVariants, type ButtonVariantsProps } from '@/react/button';\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialog\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogProps = React.ComponentProps<typeof AlertDialogPrimitive.Root>;\nconst AlertDialog = AlertDialogPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTrigger\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTriggerProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Trigger>;\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogContent\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogContentElement = React.ElementRef<typeof AlertDialogPrimitive.Content>;\ntype AlertDialogContentProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>;\n\nconst AlertDialogContent = React.forwardRef<AlertDialogContentElement, AlertDialogContentProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Portal>\n <AlertDialogPrimitive.Overlay className=\"data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 grid place-items-center overflow-auto bg-black/80 p-4 sm:pb-12 sm:pt-8\">\n <AlertDialogPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-background data-[state=open]:animate-in data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95 data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:fade-in data-[state=closed]:animate-out data-[state=closed]:fade-out relative z-50 flex w-full max-w-lg flex-col rounded-lg border shadow-lg',\n className,\n )}\n {...props}\n />\n </AlertDialogPrimitive.Overlay>\n </AlertDialogPrimitive.Portal>\n ),\n);\n\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogHeader\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogHeaderProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogHeader({ className, ...props }: AlertDialogHeaderProps): React.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 {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogBody\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogBodyProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogBody({ className, ...props }: AlertDialogBodyProps): React.JSX.Element {\n return <main className={cn('overflow-auto px-6 py-2', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogFooter\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogFooterProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogFooter({ className, ...props }: AlertDialogFooterProps): React.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 {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTitle\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTitleElement = React.ElementRef<typeof AlertDialogPrimitive.Title>;\ntype AlertDialogTitleProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>;\n\nconst AlertDialogTitle = React.forwardRef<AlertDialogTitleElement, AlertDialogTitleProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Title\n ref={forwardedRef}\n className={cn('text-lg font-semibold leading-none tracking-tight', className)}\n {...props}\n />\n ),\n);\n\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogDescription\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogDescriptionElement = React.ElementRef<typeof AlertDialogPrimitive.Description>;\ntype AlertDialogDescriptionProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>;\n\nconst AlertDialogDescription = React.forwardRef<AlertDialogDescriptionElement, AlertDialogDescriptionProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Description\n ref={forwardedRef}\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n ),\n);\n\nAlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogAction\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogActionElement = React.ElementRef<typeof AlertDialogPrimitive.Action>;\n\ninterface AlertDialogActionProps extends React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action> {\n size?: ButtonVariantsProps['size'];\n variant?: ButtonVariantsProps['variant'];\n}\n\nconst AlertDialogAction = React.forwardRef<AlertDialogActionElement, AlertDialogActionProps>(\n ({ className, size, variant, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Action\n ref={forwardedRef}\n className={buttonVariants({ className, size, variant })}\n {...props}\n />\n ),\n);\n\nAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogCancel\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogCancelElement = React.ElementRef<typeof AlertDialogPrimitive.Cancel>;\n\ninterface AlertDialogCancelProps extends React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel> {\n size?: ButtonVariantsProps['size'];\n variant?: ButtonVariantsProps['variant'];\n}\n\nconst AlertDialogCancel = React.forwardRef<AlertDialogCancelElement, AlertDialogCancelProps>(\n ({ className, size, variant = 'outline', ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Cancel\n ref={forwardedRef}\n className={buttonVariants({ className, size, variant })}\n {...props}\n />\n ),\n);\n\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n AlertDialog,\n AlertDialogTrigger,\n AlertDialogContent,\n AlertDialogHeader,\n AlertDialogBody,\n AlertDialogFooter,\n AlertDialogTitle,\n AlertDialogDescription,\n AlertDialogAction,\n AlertDialogCancel,\n type AlertDialogProps,\n type AlertDialogTriggerProps,\n type AlertDialogContentProps,\n type AlertDialogHeaderProps,\n type AlertDialogBodyProps,\n type AlertDialogFooterProps,\n type AlertDialogTitleProps,\n type AlertDialogDescriptionProps,\n type AlertDialogActionProps,\n type AlertDialogCancelProps,\n};\n"],"mappings":"4HAEA,UAAYA,MAAW,QACvB,UAAYC,MAA0B,+BA6B9B,cAAAC,MAAA,oBApBR,IAAMC,EAAmC,OAOnCC,EAA0C,UAS1CC,EAA2B,aAC/B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACxBN,EAAsB,SAArB,CACC,SAAAA,EAAsB,UAArB,CAA6B,UAAU,mPACtC,SAAAA,EAAsB,UAArB,CACC,IAAKM,EACL,UAAWC,EACT,yVACAH,CACF,EACC,GAAGC,EACN,EACF,EACF,CAEJ,EAEAF,EAAmB,YAAmC,UAAQ,YAQ9D,SAASK,EAAkB,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAA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CAEJ,EAEAY,EAAkB,YAAmC,SAAO","names":["React","AlertDialogPrimitive","jsx","AlertDialog","AlertDialogTrigger","AlertDialogContent","className","props","forwardedRef","cn","AlertDialogHeader","AlertDialogBody","AlertDialogFooter","AlertDialogTitle","AlertDialogDescription","AlertDialogAction","size","variant","buttonVariants","AlertDialogCancel"]}
|
package/dist/react/calendar.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
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; }"use client";var _chunkBASRQOAAcjs = require('../chunk-BASRQOAA.cjs');require('../chunk-VJSYNP4O.cjs');var _chunk4XRBMJ5Qcjs = require('../chunk-4XRBMJ5Q.cjs');var _react = require('react'); var r = _interopRequireWildcard(_react);var _reactdaypicker = require('react-day-picker');var _reacticons = require('@radix-ui/react-icons');var _jsxruntime = require('react/jsx-runtime');function
|
|
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; }"use client";var _chunkBASRQOAAcjs = require('../chunk-BASRQOAA.cjs');require('../chunk-VJSYNP4O.cjs');var _chunk4XRBMJ5Qcjs = require('../chunk-4XRBMJ5Q.cjs');var _react = require('react'); var r = _interopRequireWildcard(_react);var _reactdaypicker = require('react-day-picker');var _reacticons = require('@radix-ui/react-icons');var _jsxruntime = require('react/jsx-runtime');function b({orientation:o,...t}){switch(o){case"up":return _jsxruntime.jsx.call(void 0, _reacticons.ChevronUpIcon,{className:"size-4",...t});case"down":return _jsxruntime.jsx.call(void 0, _reacticons.ChevronDownIcon,{className:"size-4",...t});case"left":return _jsxruntime.jsx.call(void 0, _reacticons.ChevronLeftIcon,{className:"size-4",...t});case"right":return _jsxruntime.jsx.call(void 0, _reacticons.ChevronRightIcon,{className:"size-4",...t});default:return _jsxruntime.jsx.call(void 0, _reacticons.DotFilledIcon,{className:"size-4",...t})}}function x({day:o,modifiers:t,className:s,...i}){let d=r.useRef(null);return r.useEffect(()=>{t.focused&&_optionalChain([d, 'access', _ => _.current, 'optionalAccess', _2 => _2.focus, 'call', _3 => _3()])},[t.focused]),_jsxruntime.jsx.call(void 0, _chunkBASRQOAAcjs.b,{ref:d,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "focus-visible:-outline-offset-2",(!t.selected||t.range_middle)&&!t.today&&"hover:bg-transparent",t.today&&!t.selected&&"bg-accent",t.outside&&(!t.selected||t.range_middle)&&"text-opacity-30",s),size:"icon-sm",variant:t.selected&&!t.range_middle?"default":"ghost",...i})}function N({className:o,classNames:t,...s}){return _jsxruntime.jsx.call(void 0, _reactdaypicker.DayPicker,{className:_chunk4XRBMJ5Qcjs.a.call(void 0, "p-3",o),classNames:{[_reactdaypicker.UI.ButtonPrevious]:_chunkBASRQOAAcjs.a.call(void 0, {size:"icon-xs",variant:"outline",className:"absolute start-0 shadow-none"}),[_reactdaypicker.UI.ButtonNext]:_chunkBASRQOAAcjs.a.call(void 0, {size:"icon-xs",variant:"outline",className:"absolute end-0 shadow-none"}),[_reactdaypicker.UI.Root]:"inline-grid gap-4",[_reactdaypicker.UI.Chevron]:"",[_reactdaypicker.UI.Day]:"py-0",[_reactdaypicker.UI.DayButton]:"hover:border-primary border border-transparent",[_reactdaypicker.UI.CaptionLabel]:"inline-flex items-center",[_reactdaypicker.UI.Dropdowns]:"inline-flex items-center gap-2",[_reactdaypicker.UI.Dropdown]:"absolute size-full appearance-none opacity-0",[_reactdaypicker.UI.DropdownRoot]:"relative inline-flex",[_reactdaypicker.UI.Footer]:"text-sm",[_reactdaypicker.UI.MonthGrid]:"relative block table-fixed border-collapse space-y-2 [&>thead]:block",[_reactdaypicker.UI.MonthCaption]:"flex w-full justify-center text-sm font-medium",[_reactdaypicker.UI.MonthsDropdown]:"",[_reactdaypicker.UI.Month]:"grid grid-rows-[2rem_1fr] gap-4",[_reactdaypicker.UI.Months]:"relative flex flex-wrap gap-4",[_reactdaypicker.UI.Nav]:"-mr-4",[_reactdaypicker.UI.Week]:"flex",[_reactdaypicker.UI.Weeks]:"block space-y-2",[_reactdaypicker.UI.Weekday]:"text-muted-foreground flex-1 text-sm font-normal",[_reactdaypicker.UI.Weekdays]:"flex",[_reactdaypicker.UI.WeekNumber]:"text-foreground/50 size-9 text-center text-xs",[_reactdaypicker.UI.WeekNumberHeader]:"",[_reactdaypicker.UI.YearsDropdown]:"",[_reactdaypicker.SelectionState.range_start]:"to-accent rounded-l-md bg-gradient-to-r from-transparent to-50%",[_reactdaypicker.SelectionState.range_middle]:"bg-accent first:rounded-l-md last:rounded-r-md",[_reactdaypicker.SelectionState.range_end]:"to-accent rounded-r-md bg-gradient-to-l from-transparent to-50%",[_reactdaypicker.SelectionState.selected]:"",...t},components:{Chevron:b,DayButton:x},...s})}exports.Calendar = N;
|
|
2
2
|
//# sourceMappingURL=calendar.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/react/calendar.cjs","../../src/react/calendar.tsx"],"names":["Chevron","orientation","props","jsx","ChevronUpIcon","ChevronDownIcon","ChevronLeftIcon","ChevronRightIcon","DotFilledIcon","DayButton","_","modifiers","className","buttonRef","Button","cn","Calendar","classNames","DayPicker","UI","buttonVariants","SelectionState"],"mappings":"AAAA,22BAAY,CAAC,yDAAgD,iCAA8B,yDAA0C,uECE9G,
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/react/calendar.cjs","../../src/react/calendar.tsx"],"names":["Chevron","orientation","props","jsx","ChevronUpIcon","ChevronDownIcon","ChevronLeftIcon","ChevronRightIcon","DotFilledIcon","DayButton","_","modifiers","className","buttonRef","Button","cn","Calendar","classNames","DayPicker","UI","buttonVariants","SelectionState"],"mappings":"AAAA,22BAAY,CAAC,yDAAgD,iCAA8B,yDAA0C,uECE9G,kDAShB,mDAOA,+CAWM,SAHJA,CAAAA,CAAQ,CAAE,WAAA,CAAAC,CAAAA,CAAa,GAAGC,CAAM,CAAA,CAAyE,CAChH,MAAA,CAAQD,CAAAA,CAAa,CACnB,IAAK,IAAA,CACH,OAAOE,6BAAAA,yBAACC,CAAA,CAAc,SAAA,CAAU,QAAA,CAAU,GAAGF,CAAAA,CAAO,CAAA,CAGtD,IAAK,MAAA,CACH,OAAOC,6BAAAA,2BAACE,CAAA,CAAgB,SAAA,CAAU,QAAA,CAAU,GAAGH,CAAAA,CAAO,CAAA,CAGxD,IAAK,MAAA,CACH,OAAOC,6BAAAA,2BAACG,CAAA,CAAgB,SAAA,CAAU,QAAA,CAAU,GAAGJ,CAAAA,CAAO,CAAA,CAGxD,IAAK,OAAA,CACH,OAAOC,6BAAAA,4BAACI,CAAA,CAAiB,SAAA,CAAU,QAAA,CAAU,GAAGL,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,CAACA,kBAAAA,CAAG,QAAQ,CAAA,CAAG,MAAA,CACf,CAACA,kBAAAA,CAAG,UAAU,CAAA,CAAG,+CAAA,CACjB,CAACA,kBAAAA,CAAG,gBAAgB,CAAA,CAAG,EAAA,CACvB,CAACA,kBAAAA,CAAG,aAAa,CAAA,CAAG,EAAA,CACpB,CAACE,8BAAAA,CAAe,WAAW,CAAA,CAAG,iEAAA,CAC9B,CAACA,8BAAAA,CAAe,YAAY,CAAA,CAAG,gDAAA,CAC/B,CAACA,8BAAAA,CAAe,SAAS,CAAA,CAAG,iEAAA,CAC5B,CAACA,8BAAAA,CAAe,QAAQ,CAAA,CAAG,EAAA,CAC3B,GAAGJ,CACL,CAAA,CACA,UAAA,CAAY,CAAE,OAAA,CAAAjB,CAAAA,CAAS,SAAA,CAAAS,CAAU,CAAA,CAChC,GAAGP,CAAAA,CACN,CAEJ,CAAA,qBAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/react/calendar.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport {\n type CustomComponents,\n type DateRange,\n DayPicker,\n type DayPickerProps,\n type Matcher,\n SelectionState,\n UI,\n} from 'react-day-picker';\nimport {\n ChevronDownIcon,\n ChevronLeftIcon,\n ChevronRightIcon,\n ChevronUpIcon,\n DotFilledIcon,\n} from '@radix-ui/react-icons';\nimport { cn } from '@/lib/utils';\nimport { Button, buttonVariants } from '@/react/button';\n\n/* -----------------------------------------------------------------------------\n * Component: Chevron\n * -------------------------------------------------------------------------- */\n\nfunction Chevron({ orientation, ...props }: React.ComponentProps<CustomComponents['Chevron']>): React.JSX.Element {\n switch (orientation) {\n case 'up': {\n return <ChevronUpIcon className=\"size-4\" {...props} />;\n }\n\n case 'down': {\n return <ChevronDownIcon className=\"size-4\" {...props} />;\n }\n\n case 'left': {\n return <ChevronLeftIcon className=\"size-4\" {...props} />;\n }\n\n case 'right': {\n return <ChevronRightIcon className=\"size-4\" {...props} />;\n }\n\n default:\n return <DotFilledIcon className=\"size-4\" {...props} />;\n }\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DayButton\n * -------------------------------------------------------------------------- */\n\nfunction DayButton({\n day: _,\n modifiers,\n className,\n ...props\n}: React.ComponentProps<CustomComponents['DayButton']>): React.JSX.Element {\n const buttonRef = React.useRef<HTMLButtonElement>(null);\n\n React.useEffect(() => {\n if (modifiers.focused) {\n buttonRef.current?.focus();\n }\n }, [modifiers.focused]);\n\n return (\n <Button\n ref={buttonRef}\n className={cn(\n 'focus-visible:-outline-offset-2',\n (!modifiers.selected || modifiers.range_middle) && !modifiers.today && 'hover:bg-transparent',\n modifiers.today && !modifiers.selected && 'bg-accent',\n modifiers.outside && (!modifiers.selected || modifiers.range_middle) && 'text-opacity-30',\n className,\n )}\n size=\"icon-sm\"\n variant={modifiers.selected && !modifiers.range_middle ? 'default' : 'ghost'}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: Calendar\n * -------------------------------------------------------------------------- */\n\ntype CalendarProps = DayPickerProps;\n\nfunction Calendar({ className, classNames, ...props }: CalendarProps): React.JSX.Element {\n return (\n <DayPicker\n className={cn('p-3', className)}\n classNames={{\n [UI.ButtonPrevious]: buttonVariants({\n size: 'icon-xs',\n variant: 'outline',\n className: 'absolute start-0 shadow-none',\n }),\n [UI.ButtonNext]: buttonVariants({\n size: 'icon-xs',\n variant: 'outline',\n className: 'absolute end-0 shadow-none',\n }),\n [UI.Root]: 'inline-grid gap-4',\n [UI.Chevron]: '',\n [UI.Day]: 'py-0',\n [UI.DayButton]: 'hover:border-primary border border-transparent',\n [UI.CaptionLabel]: 'inline-flex items-center',\n [UI.Dropdowns]: 'inline-flex items-center gap-2',\n [UI.Dropdown]: 'absolute size-full appearance-none opacity-0',\n [UI.DropdownRoot]: 'relative inline-flex',\n [UI.Footer]: 'text-sm',\n [UI.MonthGrid]: 'relative block table-fixed border-collapse space-y-2 [&>thead]:block',\n [UI.MonthCaption]: 'flex w-full justify-center text-sm font-medium',\n [UI.MonthsDropdown]: '',\n [UI.Month]: 'grid grid-rows-[2rem_1fr] gap-4',\n [UI.Months]: 'relative flex flex-wrap gap-4',\n [UI.Nav]: '-mr-4',\n [UI.Week]: 'flex',\n [UI.Weeks]: 'block space-y-2',\n [UI.Weekday]: 'text-muted-foreground flex-1 text-sm font-normal',\n [UI.Weekdays]: 'flex',\n [UI.WeekNumber]: 'text-foreground/50 size-9 text-center text-xs',\n [UI.WeekNumberHeader]: '',\n [UI.YearsDropdown]: '',\n [SelectionState.range_start]: 'to-accent rounded-l-md bg-gradient-to-r from-transparent to-50%',\n [SelectionState.range_middle]: 'bg-accent first:rounded-l-md last:rounded-r-md',\n [SelectionState.range_end]: 'to-accent rounded-r-md bg-gradient-to-l from-transparent to-50%',\n [SelectionState.selected]: '',\n ...classNames,\n }}\n components={{ Chevron, DayButton }}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Calendar, type CalendarProps, type DateRange, type Matcher };\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { DayPickerProps } from 'react-day-picker';
|
|
3
|
-
export { DateRange } from 'react-day-picker';
|
|
3
|
+
export { DateRange, Matcher } from 'react-day-picker';
|
|
4
4
|
|
|
5
5
|
type CalendarProps = DayPickerProps;
|
|
6
6
|
declare function Calendar({ className, classNames, ...props }: CalendarProps): React.JSX.Element;
|
package/dist/react/calendar.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { DayPickerProps } from 'react-day-picker';
|
|
3
|
-
export { DateRange } from 'react-day-picker';
|
|
3
|
+
export { DateRange, Matcher } from 'react-day-picker';
|
|
4
4
|
|
|
5
5
|
type CalendarProps = DayPickerProps;
|
|
6
6
|
declare function Calendar({ className, classNames, ...props }: CalendarProps): React.JSX.Element;
|
package/dist/react/calendar.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{a as
|
|
1
|
+
"use client";import{a as l,b as u}from"../chunk-U62JBFEF.js";import"../chunk-JK5GPYFN.js";import{a as c}from"../chunk-VRBUDJBH.js";import*as r from"react";import{DayPicker as p,SelectionState as a,UI as e}from"react-day-picker";import{ChevronDownIcon as m,ChevronLeftIcon as f,ChevronRightIcon as g,ChevronUpIcon as y,DotFilledIcon as h}from"@radix-ui/react-icons";import{jsx as n}from"react/jsx-runtime";function b({orientation:o,...t}){switch(o){case"up":return n(y,{className:"size-4",...t});case"down":return n(m,{className:"size-4",...t});case"left":return n(f,{className:"size-4",...t});case"right":return n(g,{className:"size-4",...t});default:return n(h,{className:"size-4",...t})}}function x({day:o,modifiers:t,className:s,...i}){let d=r.useRef(null);return r.useEffect(()=>{t.focused&&d.current?.focus()},[t.focused]),n(u,{ref:d,className:c("focus-visible:-outline-offset-2",(!t.selected||t.range_middle)&&!t.today&&"hover:bg-transparent",t.today&&!t.selected&&"bg-accent",t.outside&&(!t.selected||t.range_middle)&&"text-opacity-30",s),size:"icon-sm",variant:t.selected&&!t.range_middle?"default":"ghost",...i})}function N({className:o,classNames:t,...s}){return n(p,{className:c("p-3",o),classNames:{[e.ButtonPrevious]:l({size:"icon-xs",variant:"outline",className:"absolute start-0 shadow-none"}),[e.ButtonNext]:l({size:"icon-xs",variant:"outline",className:"absolute end-0 shadow-none"}),[e.Root]:"inline-grid gap-4",[e.Chevron]:"",[e.Day]:"py-0",[e.DayButton]:"hover:border-primary border border-transparent",[e.CaptionLabel]:"inline-flex items-center",[e.Dropdowns]:"inline-flex items-center gap-2",[e.Dropdown]:"absolute size-full appearance-none opacity-0",[e.DropdownRoot]:"relative inline-flex",[e.Footer]:"text-sm",[e.MonthGrid]:"relative block table-fixed border-collapse space-y-2 [&>thead]:block",[e.MonthCaption]:"flex w-full justify-center text-sm font-medium",[e.MonthsDropdown]:"",[e.Month]:"grid grid-rows-[2rem_1fr] gap-4",[e.Months]:"relative flex flex-wrap gap-4",[e.Nav]:"-mr-4",[e.Week]:"flex",[e.Weeks]:"block space-y-2",[e.Weekday]:"text-muted-foreground flex-1 text-sm font-normal",[e.Weekdays]:"flex",[e.WeekNumber]:"text-foreground/50 size-9 text-center text-xs",[e.WeekNumberHeader]:"",[e.YearsDropdown]:"",[a.range_start]:"to-accent rounded-l-md bg-gradient-to-r from-transparent to-50%",[a.range_middle]:"bg-accent first:rounded-l-md last:rounded-r-md",[a.range_end]:"to-accent rounded-r-md bg-gradient-to-l from-transparent to-50%",[a.selected]:"",...t},components:{Chevron:b,DayButton:x},...s})}export{N as Calendar};
|
|
2
2
|
//# sourceMappingURL=calendar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/react/calendar.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport {\n type CustomComponents,\n type DateRange,\n DayPicker,\n type DayPickerProps,\n SelectionState,\n UI,\n} from 'react-day-picker';\nimport {\n ChevronDownIcon,\n ChevronLeftIcon,\n ChevronRightIcon,\n ChevronUpIcon,\n DotFilledIcon,\n} from '@radix-ui/react-icons';\nimport { cn } from '@/lib/utils';\nimport { Button, buttonVariants } from '@/react/button';\n\n/* -----------------------------------------------------------------------------\n * Component: Chevron\n * -------------------------------------------------------------------------- */\n\nfunction Chevron({ orientation, ...props }: React.ComponentProps<CustomComponents['Chevron']>): React.JSX.Element {\n switch (orientation) {\n case 'up': {\n return <ChevronUpIcon className=\"size-4\" {...props} />;\n }\n\n case 'down': {\n return <ChevronDownIcon className=\"size-4\" {...props} />;\n }\n\n case 'left': {\n return <ChevronLeftIcon className=\"size-4\" {...props} />;\n }\n\n case 'right': {\n return <ChevronRightIcon className=\"size-4\" {...props} />;\n }\n\n default:\n return <DotFilledIcon className=\"size-4\" {...props} />;\n }\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DayButton\n * -------------------------------------------------------------------------- */\n\nfunction DayButton({\n day: _,\n modifiers,\n className,\n ...props\n}: React.ComponentProps<CustomComponents['DayButton']>): React.JSX.Element {\n const buttonRef = React.useRef<HTMLButtonElement>(null);\n\n React.useEffect(() => {\n if (modifiers.focused) {\n buttonRef.current?.focus();\n }\n }, [modifiers.focused]);\n\n return (\n <Button\n ref={buttonRef}\n className={cn(\n 'focus-visible:-outline-offset-2',\n (!modifiers.selected || modifiers.range_middle) && !modifiers.today && 'hover:bg-transparent',\n modifiers.today && !modifiers.selected && 'bg-accent',\n modifiers.outside && (!modifiers.selected || modifiers.range_middle) && 'text-opacity-30',\n className,\n )}\n size=\"icon-sm\"\n variant={modifiers.selected && !modifiers.range_middle ? 'default' : 'ghost'}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: Calendar\n * -------------------------------------------------------------------------- */\n\ntype CalendarProps = DayPickerProps;\n\nfunction Calendar({ className, classNames, ...props }: CalendarProps): React.JSX.Element {\n return (\n <DayPicker\n className={cn('p-3', className)}\n classNames={{\n [UI.ButtonPrevious]: buttonVariants({\n size: 'icon-xs',\n variant: 'outline',\n className: 'absolute shadow-none
|
|
1
|
+
{"version":3,"sources":["../../src/react/calendar.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport {\n type CustomComponents,\n type DateRange,\n DayPicker,\n type DayPickerProps,\n type Matcher,\n SelectionState,\n UI,\n} from 'react-day-picker';\nimport {\n ChevronDownIcon,\n ChevronLeftIcon,\n ChevronRightIcon,\n ChevronUpIcon,\n DotFilledIcon,\n} from '@radix-ui/react-icons';\nimport { cn } from '@/lib/utils';\nimport { Button, buttonVariants } from '@/react/button';\n\n/* -----------------------------------------------------------------------------\n * Component: Chevron\n * -------------------------------------------------------------------------- */\n\nfunction Chevron({ orientation, ...props }: React.ComponentProps<CustomComponents['Chevron']>): React.JSX.Element {\n switch (orientation) {\n case 'up': {\n return <ChevronUpIcon className=\"size-4\" {...props} />;\n }\n\n case 'down': {\n return <ChevronDownIcon className=\"size-4\" {...props} />;\n }\n\n case 'left': {\n return <ChevronLeftIcon className=\"size-4\" {...props} />;\n }\n\n case 'right': {\n return <ChevronRightIcon className=\"size-4\" {...props} />;\n }\n\n default:\n return <DotFilledIcon className=\"size-4\" {...props} />;\n }\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DayButton\n * -------------------------------------------------------------------------- */\n\nfunction DayButton({\n day: _,\n modifiers,\n className,\n ...props\n}: React.ComponentProps<CustomComponents['DayButton']>): React.JSX.Element {\n const buttonRef = React.useRef<HTMLButtonElement>(null);\n\n React.useEffect(() => {\n if (modifiers.focused) {\n buttonRef.current?.focus();\n }\n }, [modifiers.focused]);\n\n return (\n <Button\n ref={buttonRef}\n className={cn(\n 'focus-visible:-outline-offset-2',\n (!modifiers.selected || modifiers.range_middle) && !modifiers.today && 'hover:bg-transparent',\n modifiers.today && !modifiers.selected && 'bg-accent',\n modifiers.outside && (!modifiers.selected || modifiers.range_middle) && 'text-opacity-30',\n className,\n )}\n size=\"icon-sm\"\n variant={modifiers.selected && !modifiers.range_middle ? 'default' : 'ghost'}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: Calendar\n * -------------------------------------------------------------------------- */\n\ntype CalendarProps = DayPickerProps;\n\nfunction Calendar({ className, classNames, ...props }: CalendarProps): React.JSX.Element {\n return (\n <DayPicker\n className={cn('p-3', className)}\n classNames={{\n [UI.ButtonPrevious]: buttonVariants({\n size: 'icon-xs',\n variant: 'outline',\n className: 'absolute start-0 shadow-none',\n }),\n [UI.ButtonNext]: buttonVariants({\n size: 'icon-xs',\n variant: 'outline',\n className: 'absolute end-0 shadow-none',\n }),\n [UI.Root]: 'inline-grid gap-4',\n [UI.Chevron]: '',\n [UI.Day]: 'py-0',\n [UI.DayButton]: 'hover:border-primary border border-transparent',\n [UI.CaptionLabel]: 'inline-flex items-center',\n [UI.Dropdowns]: 'inline-flex items-center gap-2',\n [UI.Dropdown]: 'absolute size-full appearance-none opacity-0',\n [UI.DropdownRoot]: 'relative inline-flex',\n [UI.Footer]: 'text-sm',\n [UI.MonthGrid]: 'relative block table-fixed border-collapse space-y-2 [&>thead]:block',\n [UI.MonthCaption]: 'flex w-full justify-center text-sm font-medium',\n [UI.MonthsDropdown]: '',\n [UI.Month]: 'grid grid-rows-[2rem_1fr] gap-4',\n [UI.Months]: 'relative flex flex-wrap gap-4',\n [UI.Nav]: '-mr-4',\n [UI.Week]: 'flex',\n [UI.Weeks]: 'block space-y-2',\n [UI.Weekday]: 'text-muted-foreground flex-1 text-sm font-normal',\n [UI.Weekdays]: 'flex',\n [UI.WeekNumber]: 'text-foreground/50 size-9 text-center text-xs',\n [UI.WeekNumberHeader]: '',\n [UI.YearsDropdown]: '',\n [SelectionState.range_start]: 'to-accent rounded-l-md bg-gradient-to-r from-transparent to-50%',\n [SelectionState.range_middle]: 'bg-accent first:rounded-l-md last:rounded-r-md',\n [SelectionState.range_end]: 'to-accent rounded-r-md bg-gradient-to-l from-transparent to-50%',\n [SelectionState.selected]: '',\n ...classNames,\n }}\n components={{ Chevron, DayButton }}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Calendar, type CalendarProps, type DateRange, type Matcher };\n"],"mappings":"mIAEA,UAAYA,MAAW,QACvB,OAGE,aAAAC,EAGA,kBAAAC,EACA,MAAAC,MACK,mBACP,OACE,mBAAAC,EACA,mBAAAC,EACA,oBAAAC,EACA,iBAAAC,EACA,iBAAAC,MACK,wBAWM,cAAAC,MAAA,oBAHb,SAASC,EAAQ,CAAE,YAAAC,EAAa,GAAGC,CAAM,EAAyE,CAChH,OAAQD,EAAa,CACnB,IAAK,KACH,OAAOF,EAACI,EAAA,CAAc,UAAU,SAAU,GAAGD,EAAO,EAGtD,IAAK,OACH,OAAOH,EAACK,EAAA,CAAgB,UAAU,SAAU,GAAGF,EAAO,EAGxD,IAAK,OACH,OAAOH,EAACM,EAAA,CAAgB,UAAU,SAAU,GAAGH,EAAO,EAGxD,IAAK,QACH,OAAOH,EAACO,EAAA,CAAiB,UAA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,YAAY,EAAG,iDACnB,CAACA,EAAG,cAAc,EAAG,GACrB,CAACA,EAAG,KAAK,EAAG,kCACZ,CAACA,EAAG,MAAM,EAAG,gCACb,CAACA,EAAG,GAAG,EAAG,QACV,CAACA,EAAG,IAAI,EAAG,OACX,CAACA,EAAG,KAAK,EAAG,kBACZ,CAACA,EAAG,OAAO,EAAG,mDACd,CAACA,EAAG,QAAQ,EAAG,OACf,CAACA,EAAG,UAAU,EAAG,gDACjB,CAACA,EAAG,gBAAgB,EAAG,GACvB,CAACA,EAAG,aAAa,EAAG,GACpB,CAACE,EAAe,WAAW,EAAG,kEAC9B,CAACA,EAAe,YAAY,EAAG,iDAC/B,CAACA,EAAe,SAAS,EAAG,kEAC5B,CAACA,EAAe,QAAQ,EAAG,GAC3B,GAAGJ,CACL,EACA,WAAY,CAAE,QAAAhB,EAAS,UAAAQ,CAAU,EAChC,GAAGN,EACN,CAEJ","names":["React","DayPicker","SelectionState","UI","ChevronDownIcon","ChevronLeftIcon","ChevronRightIcon","ChevronUpIcon","DotFilledIcon","jsx","Chevron","orientation","props","ChevronUpIcon","ChevronDownIcon","ChevronLeftIcon","ChevronRightIcon","DotFilledIcon","DayButton","_","modifiers","className","buttonRef","Button","cn","Calendar","classNames","DayPicker","UI","buttonVariants","SelectionState"]}
|
package/dist/react/command.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
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; } }"use client";var
|
|
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; } }"use client";var _chunkUYD4MGABcjs = require('../chunk-UYD4MGAB.cjs');require('../chunk-BASRQOAA.cjs');require('../chunk-VJSYNP4O.cjs');var _chunk4XRBMJ5Qcjs = require('../chunk-4XRBMJ5Q.cjs');var _react = require('react'); var p = _interopRequireWildcard(_react);var _reacticons = require('@radix-ui/react-icons');var _cmdk = require('cmdk');var _jsxruntime = require('react/jsx-runtime');var i=p.forwardRef(({className:e,...m},t)=>_jsxruntime.jsx.call(void 0, _cmdk.Command,{ref:t,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...m}));i.displayName=_cmdk.Command.displayName;function v({children:e,...m}){return _jsxruntime.jsx.call(void 0, _chunkUYD4MGABcjs.a,{...m,children:_jsxruntime.jsx.call(void 0, _chunkUYD4MGABcjs.c,{className:"p-0",children:_jsxruntime.jsx.call(void 0, i,{className:"[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:size-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:size-5",children:e})})})}var l=p.forwardRef(({className:e,...m},t)=>_jsxruntime.jsxs.call(void 0, "div",{className:"flex items-center gap-2 border-b px-3","cmdk-input-wrapper":"",children:[_jsxruntime.jsx.call(void 0, _reacticons.MagnifyingGlassIcon,{className:"size-5 shrink-0 opacity-50"}),_jsxruntime.jsx.call(void 0, _cmdk.Command.Input,{ref:t,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent text-sm outline-none disabled:cursor-default disabled:opacity-50",e),...m})]}));l.displayName=_cmdk.Command.Input.displayName;var c=p.forwardRef(({className:e,...m},t)=>_jsxruntime.jsx.call(void 0, _cmdk.Command.List,{ref:t,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "max-h-72 overflow-y-auto overflow-x-hidden",e),...m}));c.displayName=_cmdk.Command.List.displayName;var f=p.forwardRef((e,m)=>_jsxruntime.jsx.call(void 0, _cmdk.Command.Empty,{ref:m,className:"py-6 text-center text-sm",...e}));f.displayName=_cmdk.Command.Empty.displayName;var C=p.forwardRef(({className:e,...m},t)=>_jsxruntime.jsx.call(void 0, _cmdk.Command.Group,{ref:t,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...m}));C.displayName=_cmdk.Command.Group.displayName;var y=p.forwardRef(({className:e,...m},t)=>_jsxruntime.jsx.call(void 0, _cmdk.Command.Separator,{ref:t,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "bg-border -mx-1 h-px",e),...m}));y.displayName=_cmdk.Command.Separator.displayName;var u=p.forwardRef(({className:e,...m},t)=>_jsxruntime.jsx.call(void 0, _cmdk.Command.Item,{ref:t,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "aria-selected:bg-accent aria-selected:text-accent-foreground relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm aria-disabled:pointer-events-none aria-disabled:opacity-50 aria-selected:outline-none",e),...m}));u.displayName=_cmdk.Command.Item.displayName;var P=p.forwardRef(({className:e,...m},t)=>_jsxruntime.jsx.call(void 0, _cmdk.Command.Loading,{ref:t,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "flex justify-center p-2",e),...m}));P.displayName=_cmdk.Command.Loading.displayName;function N({className:e,...m}){return _jsxruntime.jsx.call(void 0, "span",{className:_chunk4XRBMJ5Qcjs.a.call(void 0, "text-muted-foreground ml-auto text-xs tracking-widest",e),...m})}exports.Command = i; exports.CommandDialog = v; exports.CommandEmpty = f; exports.CommandGroup = C; exports.CommandInput = l; exports.CommandItem = u; exports.CommandList = c; exports.CommandLoading = P; exports.CommandSeparator = y; exports.CommandShortcut = N;
|
|
2
2
|
//# sourceMappingURL=command.cjs.map
|