@codefast/ui 0.1.47 → 0.1.48
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-TIDJ4IXN.js → chunk-24TJIVWR.js} +2 -2
- package/dist/chunk-24TJIVWR.js.map +1 -0
- package/dist/{chunk-5EOCDFOA.js → chunk-2ETHQRHT.js} +1 -1
- package/dist/{chunk-5EOCDFOA.js.map → chunk-2ETHQRHT.js.map} +1 -1
- package/dist/{chunk-SE67MHSM.cjs → chunk-2U4H7AXC.cjs} +1 -1
- package/dist/{chunk-SE67MHSM.cjs.map → chunk-2U4H7AXC.cjs.map} +1 -1
- package/dist/chunk-2XO4KTBF.js +4 -0
- package/dist/chunk-2XO4KTBF.js.map +1 -0
- package/dist/chunk-3SJHSQTX.cjs +4 -0
- package/dist/chunk-3SJHSQTX.cjs.map +1 -0
- package/dist/{chunk-GKLXJ6JZ.js → chunk-3TOWLKUY.js} +2 -2
- package/dist/{chunk-4SNJ7GUK.cjs → chunk-3TS74A2W.cjs} +2 -2
- package/dist/{chunk-4SNJ7GUK.cjs.map → chunk-3TS74A2W.cjs.map} +1 -1
- package/dist/{chunk-XT5YE5R2.js → chunk-432ZMHFM.js} +1 -1
- package/dist/{chunk-XT5YE5R2.js.map → chunk-432ZMHFM.js.map} +1 -1
- package/dist/{chunk-DW3EYXPU.js → chunk-5I7UA4HT.js} +2 -2
- package/dist/{chunk-ID2R45SP.js → chunk-5LM6T7Z5.js} +2 -2
- package/dist/{chunk-EMTBWZS5.js → chunk-7KTCYDVV.js} +1 -1
- package/dist/chunk-7KTCYDVV.js.map +1 -0
- package/dist/{chunk-X42QLXWG.cjs → chunk-7R4FFNVE.cjs} +1 -1
- package/dist/chunk-7R4FFNVE.cjs.map +1 -0
- package/dist/chunk-A5RTV4IE.js +2 -0
- package/dist/chunk-A5RTV4IE.js.map +1 -0
- package/dist/{chunk-D5NE25K4.cjs → chunk-B5V32KRW.cjs} +1 -1
- package/dist/{chunk-D5NE25K4.cjs.map → chunk-B5V32KRW.cjs.map} +1 -1
- package/dist/{chunk-5AMKXKNG.cjs → chunk-BCWKI4D5.cjs} +1 -1
- package/dist/{chunk-5AMKXKNG.cjs.map → chunk-BCWKI4D5.cjs.map} +1 -1
- package/dist/{chunk-UZVJRS6A.cjs → chunk-D3EC6HWN.cjs} +1 -1
- package/dist/{chunk-UZVJRS6A.cjs.map → chunk-D3EC6HWN.cjs.map} +1 -1
- package/dist/{chunk-6K73VTHO.cjs → chunk-DH7PAQN6.cjs} +1 -1
- package/dist/{chunk-6K73VTHO.cjs.map → chunk-DH7PAQN6.cjs.map} +1 -1
- package/dist/{chunk-HRZK3CQ7.cjs → chunk-DIYHARQU.cjs} +1 -1
- package/dist/{chunk-HRZK3CQ7.cjs.map → chunk-DIYHARQU.cjs.map} +1 -1
- package/dist/{chunk-R33J2GFB.cjs → chunk-DQBQF25F.cjs} +2 -2
- package/dist/{chunk-R33J2GFB.cjs.map → chunk-DQBQF25F.cjs.map} +1 -1
- package/dist/{chunk-WWXKOWL5.cjs → chunk-FINPFQTZ.cjs} +2 -2
- package/dist/{chunk-WWXKOWL5.cjs.map → chunk-FINPFQTZ.cjs.map} +1 -1
- package/dist/{chunk-A4ES3QAG.js → chunk-GND6Q575.js} +1 -1
- package/dist/{chunk-A4ES3QAG.js.map → chunk-GND6Q575.js.map} +1 -1
- package/dist/{chunk-UY4UMO62.cjs → chunk-GWSYICGK.cjs} +1 -1
- package/dist/chunk-GWSYICGK.cjs.map +1 -0
- package/dist/{chunk-H4LRGPZE.js → chunk-I5F5NVBQ.js} +1 -1
- package/dist/{chunk-H4LRGPZE.js.map → chunk-I5F5NVBQ.js.map} +1 -1
- package/dist/{chunk-CESXUMO5.cjs → chunk-I6LNZ6KP.cjs} +1 -1
- package/dist/chunk-I6LNZ6KP.cjs.map +1 -0
- package/dist/{chunk-JMWX562R.cjs → chunk-IPRXHJQ5.cjs} +2 -2
- package/dist/{chunk-JMWX562R.cjs.map → chunk-IPRXHJQ5.cjs.map} +1 -1
- package/dist/{chunk-GGYAR4OZ.cjs → chunk-JF2OKUYD.cjs} +1 -1
- package/dist/chunk-JF2OKUYD.cjs.map +1 -0
- package/dist/{chunk-G5JHC5KL.js → chunk-JMYWGU6A.js} +1 -1
- package/dist/chunk-JMYWGU6A.js.map +1 -0
- package/dist/{chunk-GE4JWO3I.cjs → chunk-KZJA37DU.cjs} +1 -1
- package/dist/chunk-KZJA37DU.cjs.map +1 -0
- package/dist/{chunk-4JGHSI6R.js → chunk-L75DLRYU.js} +1 -1
- package/dist/{chunk-4JGHSI6R.js.map → chunk-L75DLRYU.js.map} +1 -1
- package/dist/{chunk-QOFZCBXJ.js → chunk-LGRBBJSZ.js} +1 -1
- package/dist/{chunk-QOFZCBXJ.js.map → chunk-LGRBBJSZ.js.map} +1 -1
- package/dist/{chunk-26S2QXC7.js → chunk-MO7TQSRR.js} +1 -1
- package/dist/{chunk-26S2QXC7.js.map → chunk-MO7TQSRR.js.map} +1 -1
- package/dist/{chunk-JYWXLD4K.js → chunk-MYT23AOL.js} +2 -2
- package/dist/{chunk-QZNLFVJH.js → chunk-NPOAOTIH.js} +2 -2
- package/dist/{chunk-T35I2SOF.js → chunk-OH3BXT6D.js} +1 -1
- package/dist/chunk-OH3BXT6D.js.map +1 -0
- package/dist/{chunk-ZI7RJRUO.cjs → chunk-OKI5PENP.cjs} +2 -2
- package/dist/{chunk-ZI7RJRUO.cjs.map → chunk-OKI5PENP.cjs.map} +1 -1
- package/dist/{chunk-H5UMT3XD.js → chunk-P5ZHKPJ3.js} +1 -1
- package/dist/chunk-P5ZHKPJ3.js.map +1 -0
- package/dist/{chunk-FEFWHSO2.js → chunk-PCKCN7MO.js} +2 -2
- package/dist/{chunk-7F3GJBN7.cjs → chunk-PEQRNG2R.cjs} +1 -1
- package/dist/chunk-PEQRNG2R.cjs.map +1 -0
- package/dist/{chunk-YEXZOAP7.js → chunk-Q3UBBFLY.js} +1 -1
- package/dist/chunk-Q3UBBFLY.js.map +1 -0
- package/dist/{chunk-7BV7KHES.js → chunk-QEIZTAWS.js} +2 -2
- package/dist/{chunk-P4ZI73OW.cjs → chunk-R5235IUC.cjs} +2 -2
- package/dist/{chunk-P4ZI73OW.cjs.map → chunk-R5235IUC.cjs.map} +1 -1
- package/dist/{chunk-GDDLLNIC.cjs → chunk-SDGFNHJP.cjs} +2 -2
- package/dist/{chunk-GDDLLNIC.cjs.map → chunk-SDGFNHJP.cjs.map} +1 -1
- package/dist/{chunk-4VQTYHQU.js → chunk-UL2FIEEV.js} +1 -1
- package/dist/chunk-UL2FIEEV.js.map +1 -0
- package/dist/chunk-VA36YONO.cjs +2 -0
- package/dist/chunk-VA36YONO.cjs.map +1 -0
- package/dist/{chunk-J2RBV45Z.cjs → chunk-VBE6D4FZ.cjs} +1 -1
- package/dist/chunk-VBE6D4FZ.cjs.map +1 -0
- package/dist/{chunk-54U6NKNG.js → chunk-VPA4U2FS.js} +1 -1
- package/dist/chunk-VPA4U2FS.js.map +1 -0
- package/dist/{chunk-LRJWDHBO.cjs → chunk-W7777KAF.cjs} +1 -1
- package/dist/{chunk-LRJWDHBO.cjs.map → chunk-W7777KAF.cjs.map} +1 -1
- package/dist/{chunk-LWL25GQK.js → chunk-WLRNKE5B.js} +1 -1
- package/dist/{chunk-LWL25GQK.js.map → chunk-WLRNKE5B.js.map} +1 -1
- package/dist/{chunk-UMQEKWWU.js → chunk-XVSKGP3O.js} +1 -1
- package/dist/chunk-XVSKGP3O.js.map +1 -0
- package/dist/{chunk-YIKHBOHK.cjs → chunk-XWRE723Z.cjs} +1 -1
- package/dist/chunk-XWRE723Z.cjs.map +1 -0
- package/dist/{chunk-E6I2SA6E.cjs → chunk-YB2W76VX.cjs} +1 -1
- package/dist/{chunk-E6I2SA6E.cjs.map → chunk-YB2W76VX.cjs.map} +1 -1
- package/dist/{chunk-55AJ7WQD.cjs → chunk-YORY32TX.cjs} +1 -1
- package/dist/chunk-YORY32TX.cjs.map +1 -0
- package/dist/{chunk-MYTMAPSH.js → chunk-YTSBANYY.js} +1 -1
- package/dist/chunk-YTSBANYY.js.map +1 -0
- package/dist/{chunk-UWLNRXT2.cjs → chunk-Z7U5IONC.cjs} +2 -2
- package/dist/{chunk-UWLNRXT2.cjs.map → chunk-Z7U5IONC.cjs.map} +1 -1
- package/dist/components/alert-dialog.cjs +1 -1
- package/dist/components/alert-dialog.js +1 -1
- package/dist/components/blockquote.cjs +1 -1
- package/dist/components/blockquote.js +1 -1
- package/dist/components/box.cjs +1 -1
- package/dist/components/box.js +1 -1
- package/dist/components/breadcrumb.cjs +1 -1
- package/dist/components/breadcrumb.js +1 -1
- package/dist/components/button.cjs +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/carousel.cjs +1 -1
- package/dist/components/carousel.js +1 -1
- package/dist/components/chart.cjs +1 -1
- package/dist/components/chart.js +1 -1
- package/dist/components/code.cjs +1 -1
- package/dist/components/code.js +1 -1
- package/dist/components/command.cjs +1 -1
- package/dist/components/command.js +1 -1
- package/dist/components/container.cjs +1 -1
- package/dist/components/container.js +1 -1
- package/dist/components/context-menu.cjs +1 -1
- package/dist/components/context-menu.js +1 -1
- package/dist/components/data-table.cjs +1 -1
- package/dist/components/data-table.js +1 -1
- package/dist/components/dialog.cjs +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/dropdown-menu.cjs +1 -1
- package/dist/components/dropdown-menu.js +1 -1
- package/dist/components/em.cjs +1 -1
- package/dist/components/em.js +1 -1
- package/dist/components/number-input.cjs +1 -1
- package/dist/components/number-input.js +1 -1
- package/dist/components/password-input.cjs +1 -1
- package/dist/components/password-input.js +1 -1
- package/dist/components/pre.cjs +1 -1
- package/dist/components/pre.js +1 -1
- package/dist/components/quote.cjs +1 -1
- package/dist/components/quote.js +1 -1
- package/dist/components/radio.cjs +1 -1
- package/dist/components/radio.js +1 -1
- package/dist/components/search-input.cjs +1 -1
- package/dist/components/search-input.js +1 -1
- package/dist/components/separator.cjs +1 -1
- package/dist/components/separator.js +1 -1
- package/dist/components/sheet.cjs +1 -1
- package/dist/components/sheet.js +1 -1
- package/dist/components/sidebar.cjs +2 -0
- package/dist/components/sidebar.cjs.map +1 -0
- package/dist/components/sidebar.d.cts +155 -0
- package/dist/components/sidebar.d.ts +155 -0
- package/dist/components/sidebar.js +2 -0
- package/dist/components/sidebar.js.map +1 -0
- package/dist/components/spinner.cjs +1 -1
- package/dist/components/spinner.js +1 -1
- package/dist/components/text-input.cjs +1 -1
- package/dist/components/text-input.js +1 -1
- package/dist/components/text.cjs +1 -1
- package/dist/components/text.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/package.json +17 -15
- package/dist/chunk-4VQTYHQU.js.map +0 -1
- package/dist/chunk-54U6NKNG.js.map +0 -1
- package/dist/chunk-55AJ7WQD.cjs.map +0 -1
- package/dist/chunk-7F3GJBN7.cjs.map +0 -1
- package/dist/chunk-CESXUMO5.cjs.map +0 -1
- package/dist/chunk-DWGSQAGA.js +0 -4
- package/dist/chunk-DWGSQAGA.js.map +0 -1
- package/dist/chunk-EMTBWZS5.js.map +0 -1
- package/dist/chunk-G5JHC5KL.js.map +0 -1
- package/dist/chunk-GE4JWO3I.cjs.map +0 -1
- package/dist/chunk-GGYAR4OZ.cjs.map +0 -1
- package/dist/chunk-H5UMT3XD.js.map +0 -1
- package/dist/chunk-J2RBV45Z.cjs.map +0 -1
- package/dist/chunk-MYTMAPSH.js.map +0 -1
- package/dist/chunk-SU25A7H6.cjs +0 -4
- package/dist/chunk-SU25A7H6.cjs.map +0 -1
- package/dist/chunk-T35I2SOF.js.map +0 -1
- package/dist/chunk-TIDJ4IXN.js.map +0 -1
- package/dist/chunk-UMQEKWWU.js.map +0 -1
- package/dist/chunk-UY4UMO62.cjs.map +0 -1
- package/dist/chunk-X42QLXWG.cjs.map +0 -1
- package/dist/chunk-YEXZOAP7.js.map +0 -1
- package/dist/chunk-YIKHBOHK.cjs.map +0 -1
- /package/dist/{chunk-GKLXJ6JZ.js.map → chunk-3TOWLKUY.js.map} +0 -0
- /package/dist/{chunk-DW3EYXPU.js.map → chunk-5I7UA4HT.js.map} +0 -0
- /package/dist/{chunk-ID2R45SP.js.map → chunk-5LM6T7Z5.js.map} +0 -0
- /package/dist/{chunk-JYWXLD4K.js.map → chunk-MYT23AOL.js.map} +0 -0
- /package/dist/{chunk-QZNLFVJH.js.map → chunk-NPOAOTIH.js.map} +0 -0
- /package/dist/{chunk-FEFWHSO2.js.map → chunk-PCKCN7MO.js.map} +0 -0
- /package/dist/{chunk-7BV7KHES.js.map → chunk-QEIZTAWS.js.map} +0 -0
|
@@ -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 _chunk7XV37NAWcjs = require('./chunk-7XV37NAW.cjs');var
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
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 _chunk7XV37NAWcjs = require('./chunk-7XV37NAW.cjs');var _chunkFINPFQTZcjs = require('./chunk-FINPFQTZ.cjs');var _chunk7R4FFNVEcjs = require('./chunk-7R4FFNVE.cjs');var _input = require('@codefast-ui/input'); var o = _interopRequireWildcard(_input);var _reacticons = require('@radix-ui/react-icons');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var{root:E,input:b}=_chunk7XV37NAWcjs.a.call(void 0, ),g= exports.a =_react.forwardRef.call(void 0, ({className:a,inputSize:e,loaderPosition:m,loading:d,prefix:u,spinner:P,suffix:l,...p},f)=>{let[s,I]=_react.useState.call(void 0, "password"),w=_react.useCallback.call(void 0, ()=>{I(y=>y==="password"?"text":"password")},[]);return _jsxruntime.jsxs.call(void 0, o.Root,{className:E({inputSize:e,className:a}),loaderPosition:m,loading:d,prefix:u,spinner:P||_jsxruntime.jsx.call(void 0, _chunk7R4FFNVEcjs.a,{}),suffix:l,children:[_jsxruntime.jsx.call(void 0, o.Item,{ref:f,className:b({inputSize:e}),type:s,...p}),_jsxruntime.jsx.call(void 0, _chunkFINPFQTZcjs.a,{icon:!0,inside:!0,"aria-label":s==="password"?"Show password":"Hide password",className:"rounded-full",disabled:p.disabled,prefix:s==="password"?_jsxruntime.jsx.call(void 0, _reacticons.EyeClosedIcon,{}):_jsxruntime.jsx.call(void 0, _reacticons.EyeOpenIcon,{}),size:e,variant:"ghost",onClick:w})]})});g.displayName="PasswordInput";exports.a = g;
|
|
2
|
+
//# sourceMappingURL=chunk-SDGFNHJP.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-SDGFNHJP.cjs","../src/components/password-input.tsx"],"names":["InputPrimitive","input","inputVariants","PasswordInput","className","inputSize","props","type","setType","useState","togglePasswordVisibility","prev","jsxs","root","spinner","jsx","Spinner","suffix","forwardedRef","Button","EyeClosedIcon"],"mappings":"AAAA,uWAAY,CAAC,wDAAwC,wDAAyC,wDCElFA,oFACH,mDAKP,8BAwC0B,+CA1Bd,GAAA,CAAAC,IAAUC,CAAc,CAAA,CAYhCC,KACH,CAAE,CAAA,CAAA,CAAA,iCAAA,CAAA,CAAA,CAAA,aAAA,+BAAAC,CAAW,CAAA,SAAAC,CAAAA,CAAW,CAAA,SAAA,CAAA,CAAA,CAAA,cAAyB,CAAA,C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AA,CAAA,CAAA,CAAA,IAAQ,CAAA,CAAA,CAAA,OACR,CAAA,OACF,CACF,OAKQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,CAAA,WAAA,CAAA,eAAA,CAAA,cAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-SDGFNHJP.cjs","sourcesContent":[null,"'use client';\n\nimport * as InputPrimitive from '@codefast-ui/input';\nimport { EyeClosedIcon, EyeOpenIcon } from '@radix-ui/react-icons';\nimport {\n type ComponentProps,\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n type MouseEventHandler,\n useCallback,\n useState,\n} from 'react';\n\nimport { Button } from '@/components/button';\nimport { Spinner } from '@/components/spinner';\nimport { inputVariants, type InputVariantsProps } from '@/styles/input-variants';\n\n/* -----------------------------------------------------------------------------\n * Variant: PasswordInput\n * -------------------------------------------------------------------------- */\n\nconst { root, input } = inputVariants();\n\n/* -----------------------------------------------------------------------------\n * Component: PasswordInput\n * -------------------------------------------------------------------------- */\n\ntype PasswordInputElement = ComponentRef<typeof InputPrimitive.Item>;\ninterface PasswordInputProps\n extends InputVariantsProps,\n ComponentProps<typeof InputPrimitive.Root>,\n Omit<ComponentPropsWithoutRef<typeof InputPrimitive.Item>, 'prefix' | 'type'> {}\n\nconst PasswordInput = forwardRef<PasswordInputElement, PasswordInputProps>(\n ({ className, inputSize, loaderPosition, loading, prefix, spinner, suffix, ...props }, forwardedRef) => {\n const [type, setType] = useState<'password' | 'text'>('password');\n\n const togglePasswordVisibility = useCallback<MouseEventHandler<HTMLButtonElement>>(() => {\n setType((prev) => (prev === 'password' ? 'text' : 'password'));\n }, []);\n\n return (\n <InputPrimitive.Root\n className={root({ inputSize, className })}\n loaderPosition={loaderPosition}\n loading={loading}\n prefix={prefix}\n spinner={spinner || <Spinner />}\n suffix={suffix}\n >\n <InputPrimitive.Item ref={forwardedRef} className={input({ inputSize })} type={type} {...props} />\n <Button\n icon\n inside\n aria-label={type === 'password' ? 'Show password' : 'Hide password'}\n className=\"rounded-full\"\n disabled={props.disabled}\n prefix={type === 'password' ? <EyeClosedIcon /> : <EyeOpenIcon />}\n size={inputSize}\n variant=\"ghost\"\n onClick={togglePasswordVisibility}\n />\n </InputPrimitive.Root>\n );\n },\n);\n\nPasswordInput.displayName = 'PasswordInput';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { PasswordInput, type PasswordInputProps };\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{Slot as l}from"@radix-ui/react-slot";import{forwardRef as r}from"react";import{jsx as n}from"react/jsx-runtime";var u=r(({asChild:o,...e},t)=>n(o?l:"blockquote",{ref:t,...e}));u.displayName="Blockquote";export{u as a};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
2
|
+
//# sourceMappingURL=chunk-UL2FIEEV.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/blockquote.tsx"],"names":["Slot","forwardRef","jsx","Blockquote","asChild","props","forwardedRef"],"mappings":"AAAA,OAAS,QAAAA,MAAY,uBACrB,OAAwC,cAAAC,MAAkB,QAcjD,cAAAC,MAAA,oBAHT,IAAMC,EAAaF,EAA+C,CAAC,CAAE,QAAAG,EAAS,GAAGC,CAAM,EAAGC,IAGjFJ,EAFWE,EAAUJ,EAAO,aAE3B,CAAU,IAAKM,EAAe,GAAGD,EAAO,CACjD,EAEDF,EAAW,YAAc","sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport { type BlockquoteHTMLAttributes, forwardRef } from 'react';\n\n/* -----------------------------------------------------------------------------\n * Component: Blockquote\n * -------------------------------------------------------------------------- */\n\ntype BlockquoteElement = HTMLQuoteElement;\ninterface BlockquoteProps extends BlockquoteHTMLAttributes<HTMLQuoteElement> {\n asChild?: boolean;\n}\n\nconst Blockquote = forwardRef<BlockquoteElement, BlockquoteProps>(({ asChild, ...props }, forwardedRef) => {\n const Component = asChild ? Slot : 'blockquote';\n\n return <Component ref={forwardedRef} {...props} />;\n});\n\nBlockquote.displayName = 'Blockquote';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Blockquote, type BlockquoteProps };\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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 _chunkQ62VKCH2cjs = require('./chunk-Q62VKCH2.cjs');var _chunkOKI5PENPcjs = require('./chunk-OKI5PENP.cjs');var _chunkD3EC6HWNcjs = require('./chunk-D3EC6HWN.cjs');var _chunkDIYHARQUcjs = require('./chunk-DIYHARQU.cjs');var _chunk5XCNTI3Xcjs = require('./chunk-5XCNTI3X.cjs');var _chunkFINPFQTZcjs = require('./chunk-FINPFQTZ.cjs');var _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _hooks = require('@codefast/hooks');var _reactslot = require('@radix-ui/react-slot');var _reactvisuallyhidden = require('@radix-ui/react-visually-hidden');var _lucidereact = require('lucide-react');var _react = require('react');var _tailwindvariants = require('tailwind-variants');var _jsxruntime = require('react/jsx-runtime');var Q="sidebar:state",X=60*60*24*7,Y="16rem",J="18rem",Z="3rem",ee="b",te=768,O=_react.createContext.call(void 0, null);function M(){let t=_react.useContext.call(void 0, O);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}var ae=_react.forwardRef.call(void 0, ({defaultOpen:t=!0,open:e,onOpenChange:a,className:i,style:d,children:s,...c},S)=>{let p=_hooks.useMediaQuery.call(void 0, `(max-width: ${te-1}px)`),[m,b]=_react.useState.call(void 0, !1),[h,E]=_react.useState.call(void 0, t),g=_nullishCoalesce(e, () => (h)),x=_react.useCallback.call(void 0, l=>{let u=typeof l=="function"?l(g):l;a?a(u):E(u),document.cookie=`${Q}=${u}; path=/; max-age=${X}`},[a,g]),y=_react.useCallback.call(void 0, ()=>{p?b(l=>!l):x(l=>!l)},[p,x,b]);_react.useEffect.call(void 0, ()=>{let l=u=>{u.key===ee&&(u.metaKey||u.ctrlKey)&&(u.preventDefault(),y())};return window.addEventListener("keydown",l),()=>{window.removeEventListener("keydown",l)}},[y]);let C=g?"expanded":"collapsed",K=_react.useMemo.call(void 0, ()=>({state:C,open:g,setOpen:x,isMobile:p,openMobile:m,setOpenMobile:b,toggleSidebar:y}),[C,g,x,p,m,b,y]);return _jsxruntime.jsx.call(void 0, O.Provider,{value:K,children:_jsxruntime.jsx.call(void 0, _chunkQ62VKCH2cjs.a,{delayDuration:0,children:_jsxruntime.jsx.call(void 0, "div",{ref:S,className:_chunkDD6AVCRHcjs.a.call(void 0, "group/sidebar-wrapper has-[[data-variant=inset]]:bg-sidebar flex min-h-svh w-full",i),style:{"--sidebar-width":Y,"--sidebar-width-icon":Z,...d},...c,children:s})})})});ae.displayName="SidebarProvider";var re=_react.forwardRef.call(void 0, ({side:t="left",variant:e="sidebar",collapsible:a="offcanvas",className:i,children:d,...s},c)=>{let{isMobile:S,state:p,openMobile:m,setOpenMobile:b}=M();return a==="none"?_jsxruntime.jsx.call(void 0, "div",{ref:c,className:_chunkDD6AVCRHcjs.a.call(void 0, "bg-sidebar text-sidebar-foreground flex h-full w-[--sidebar-width] flex-col",i),...s,children:d}):S?_jsxruntime.jsx.call(void 0, _chunkDIYHARQUcjs.a,{open:m,onOpenChange:b,...s,children:_jsxruntime.jsxs.call(void 0, _chunkDIYHARQUcjs.c,{className:"bg-sidebar text-sidebar-foreground w-[--sidebar-width] p-0 [&>button]:hidden","data-mobile":"true","data-sidebar":"sidebar",side:t,style:{"--sidebar-width":J},children:[_jsxruntime.jsxs.call(void 0, _reactvisuallyhidden.VisuallyHidden,{children:[_jsxruntime.jsx.call(void 0, _chunkDIYHARQUcjs.g,{children:"Sidebar"}),_jsxruntime.jsx.call(void 0, _chunkDIYHARQUcjs.h,{children:"Press escape to close the sidebar"})]}),_jsxruntime.jsx.call(void 0, "div",{className:"flex h-full w-full flex-col",children:d})]})}):_jsxruntime.jsxs.call(void 0, "div",{ref:c,className:"text-sidebar-foreground group peer hidden md:block","data-collapsible":p==="collapsed"?a:"","data-side":t,"data-state":p,"data-variant":e,children:[_jsxruntime.jsx.call(void 0, "div",{className:_chunkDD6AVCRHcjs.a.call(void 0, "relative h-svh w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),_jsxruntime.jsx.call(void 0, "div",{className:_chunkDD6AVCRHcjs.a.call(void 0, "fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",t==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",e==="floating"||e==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",i),...s,children:_jsxruntime.jsx.call(void 0, "div",{className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow","data-sidebar":"sidebar",children:d})})]})});re.displayName="Sidebar";var oe=_react.forwardRef.call(void 0, ({className:t,onClick:e,...a},i)=>{let{toggleSidebar:d}=M();return _jsxruntime.jsxs.call(void 0, _chunkFINPFQTZcjs.a,{ref:i,icon:!0,className:_chunkDD6AVCRHcjs.a.call(void 0, "",t),"data-sidebar":"trigger",size:"xxs",variant:"ghost",onClick:s=>{_optionalChain([e, 'optionalCall', _2 => _2(s)]),d()},...a,children:[_jsxruntime.jsx.call(void 0, _lucidereact.PanelLeftIcon,{}),_jsxruntime.jsx.call(void 0, "span",{className:"sr-only",children:"Toggle Sidebar"})]})});oe.displayName="SidebarTrigger";var ne=_react.forwardRef.call(void 0, ({className:t,...e},a)=>{let{toggleSidebar:i}=M();return _jsxruntime.jsx.call(void 0, "button",{ref:a,"aria-label":"Toggle Sidebar",className:_chunkDD6AVCRHcjs.a.call(void 0, "hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-0.5 group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:hover:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",t),"data-sidebar":"rail",tabIndex:-1,title:"Toggle Sidebar",type:"button",onClick:i,...e})});ne.displayName="SidebarRail";var ie=_react.forwardRef.call(void 0, ({className:t,...e},a)=>_jsxruntime.jsx.call(void 0, "main",{ref:a,className:_chunkDD6AVCRHcjs.a.call(void 0, "bg-background relative flex min-h-svh flex-1 flex-col","peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",t),...e}));ie.displayName="SidebarInset";var de=_react.forwardRef.call(void 0, ({className:t,...e},a)=>_jsxruntime.jsx.call(void 0, _chunkOKI5PENPcjs.a,{ref:a,className:_chunkDD6AVCRHcjs.a.call(void 0, "bg-background focus-visible:ring-sidebar-ring h-8 w-full shadow-none focus-visible:ring-2",t),"data-sidebar":"input",...e}));de.displayName="SidebarInput";var se=_react.forwardRef.call(void 0, ({className:t,...e},a)=>_jsxruntime.jsx.call(void 0, "div",{ref:a,className:_chunkDD6AVCRHcjs.a.call(void 0, "flex flex-col gap-2 p-2",t),"data-sidebar":"header",...e}));se.displayName="SidebarHeader";var le=_react.forwardRef.call(void 0, ({className:t,...e},a)=>_jsxruntime.jsx.call(void 0, "div",{ref:a,className:_chunkDD6AVCRHcjs.a.call(void 0, "flex flex-col gap-2 p-2",t),"data-sidebar":"footer",...e}));le.displayName="SidebarFooter";var pe=_react.forwardRef.call(void 0, ({className:t,...e},a)=>_jsxruntime.jsx.call(void 0, _chunkD3EC6HWNcjs.a,{ref:a,className:_chunkDD6AVCRHcjs.a.call(void 0, "bg-sidebar-border mx-2 w-auto",t),"data-sidebar":"separator",...e}));pe.displayName="SidebarSeparator";var be=_react.forwardRef.call(void 0, ({className:t,...e},a)=>_jsxruntime.jsx.call(void 0, "div",{ref:a,className:_chunkDD6AVCRHcjs.a.call(void 0, "flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",t),"data-sidebar":"content",...e}));be.displayName="SidebarContent";var ue=_react.forwardRef.call(void 0, ({className:t,...e},a)=>_jsxruntime.jsx.call(void 0, "div",{ref:a,className:_chunkDD6AVCRHcjs.a.call(void 0, "relative flex w-full min-w-0 flex-col p-2",t),"data-sidebar":"group",...e}));ue.displayName="SidebarGroup";var ce=_react.forwardRef.call(void 0, ({className:t,asChild:e=!1,...a},i)=>_jsxruntime.jsx.call(void 0, e?_reactslot.Slot:"div",{ref:i,className:_chunkDD6AVCRHcjs.a.call(void 0, "text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-none transition-[margin,opa] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",t),"data-sidebar":"group-label",...a}));ce.displayName="SidebarGroupLabel";var me=_react.forwardRef.call(void 0, ({className:t,asChild:e=!1,...a},i)=>_jsxruntime.jsx.call(void 0, e?_reactslot.Slot:"button",{ref:i,className:_chunkDD6AVCRHcjs.a.call(void 0, "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-none transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",t),"data-sidebar":"group-action",...a}));me.displayName="SidebarGroupAction";var fe=_react.forwardRef.call(void 0, ({className:t,...e},a)=>_jsxruntime.jsx.call(void 0, "div",{ref:a,className:_chunkDD6AVCRHcjs.a.call(void 0, "w-full text-sm",t),"data-sidebar":"group-content",...e}));fe.displayName="SidebarGroupContent";var Se=_react.forwardRef.call(void 0, ({className:t,...e},a)=>_jsxruntime.jsx.call(void 0, "ul",{ref:a,className:_chunkDD6AVCRHcjs.a.call(void 0, "flex w-full min-w-0 flex-col gap-1",t),"data-sidebar":"menu",...e}));Se.displayName="SidebarMenu";var ge=_react.forwardRef.call(void 0, ({className:t,...e},a)=>_jsxruntime.jsx.call(void 0, "li",{ref:a,className:_chunkDD6AVCRHcjs.a.call(void 0, "group/menu-item relative",t),"data-sidebar":"menu-item",...e}));ge.displayName="SidebarMenuItem";var ve=_tailwindvariants.tv.call(void 0, {base:"peer/menu-button ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none transition-[width,height,padding] focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:font-medium group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background hover:bg-sidebar-accent hover:text-sidebar-accent-foreground shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),he= exports.r =_react.forwardRef.call(void 0, ({asChild:t=!1,isActive:e=!1,variant:a="default",size:i="default",tooltip:d,className:s,...c},S)=>{let p=t?_reactslot.Slot:"button",{isMobile:m,state:b}=M(),h=_jsxruntime.jsx.call(void 0, p,{ref:S,className:_chunkDD6AVCRHcjs.a.call(void 0, ve({variant:a,size:i}),s),"data-active":e,"data-sidebar":"menu-button","data-size":i,...c});return d?_jsxruntime.jsxs.call(void 0, _chunkQ62VKCH2cjs.b,{children:[_jsxruntime.jsx.call(void 0, _chunkQ62VKCH2cjs.c,{asChild:!0,children:h}),_jsxruntime.jsx.call(void 0, _chunkQ62VKCH2cjs.d,{align:"center",hidden:b!=="collapsed"||m,side:"right",...typeof d=="string"?{children:d}:d})]}):h});he.displayName="SidebarMenuButton";var xe=_react.forwardRef.call(void 0, ({className:t,asChild:e=!1,showOnHover:a=!1,...i},d)=>_jsxruntime.jsx.call(void 0, e?_reactslot.Slot:"button",{ref:d,className:_chunkDD6AVCRHcjs.a.call(void 0, "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-none transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a&&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",t),"data-sidebar":"menu-action",...i}));xe.displayName="SidebarMenuAction";var ye=_react.forwardRef.call(void 0, ({className:t,...e},a)=>_jsxruntime.jsx.call(void 0, "div",{ref:a,className:_chunkDD6AVCRHcjs.a.call(void 0, "text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",t),"data-sidebar":"menu-badge",...e}));ye.displayName="SidebarMenuBadge";var Me=_react.forwardRef.call(void 0, ({className:t,showIcon:e=!1,...a},i)=>{let d=_react.useMemo.call(void 0, ()=>`${Math.floor(Math.random()*40)+50}%`,[]);return _jsxruntime.jsxs.call(void 0, "div",{ref:i,className:_chunkDD6AVCRHcjs.a.call(void 0, "flex h-8 items-center gap-2 rounded-md px-2",t),"data-sidebar":"menu-skeleton",...a,children:[e?_jsxruntime.jsx.call(void 0, _chunk5XCNTI3Xcjs.a,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}):null,_jsxruntime.jsx.call(void 0, _chunk5XCNTI3Xcjs.a,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":d}})]})});Me.displayName="SidebarMenuSkeleton";var Pe=_react.forwardRef.call(void 0, ({className:t,...e},a)=>_jsxruntime.jsx.call(void 0, "ul",{ref:a,className:_chunkDD6AVCRHcjs.a.call(void 0, "border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",t),"data-sidebar":"menu-sub",...e}));Pe.displayName="SidebarMenuSub";var Ee=_react.forwardRef.call(void 0, ({...t},e)=>_jsxruntime.jsx.call(void 0, "li",{ref:e,...t}));Ee.displayName="SidebarMenuSubItem";var Ce=_react.forwardRef.call(void 0, ({asChild:t=!1,size:e="md",isActive:a,className:i,...d},s)=>_jsxruntime.jsx.call(void 0, t?_reactslot.Slot:"a",{ref:s,className:_chunkDD6AVCRHcjs.a.call(void 0, "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",e==="sm"&&"text-xs",e==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",i),"data-active":a,"data-sidebar":"menu-sub-button","data-size":e,...d}));Ce.displayName="SidebarMenuSubButton";exports.a = M; exports.b = ae; exports.c = re; exports.d = oe; exports.e = ne; exports.f = ie; exports.g = de; exports.h = se; exports.i = le; exports.j = pe; exports.k = be; exports.l = ue; exports.m = ce; exports.n = me; exports.o = fe; exports.p = Se; exports.q = ge; exports.r = he; exports.s = xe; exports.t = ye; exports.u = Me; exports.v = Pe; exports.w = Ee; exports.x = Ce;
|
|
2
|
+
//# sourceMappingURL=chunk-VA36YONO.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-VA36YONO.cjs","../src/components/sidebar.tsx"],"names":["SIDEBAR_WIDTH","SIDEBAR_WIDTH_MOBILE","SidebarContext","createContext","useSidebar","SidebarProvider","defaultOpen","setOpenProp","className","children","isMobile","useMediaQuery","openMobile","useState","isOpen","setIsOpen","open","openProp","setOpen","useCallback","value","openState"],"mappings":"AAAA,6rBAAY,CAAC,wDAA6D,wDAAyC,wDAAyC,wDAA8D,wDAAyC,wDAAyC,wDCEnS,wCACA,iDACA,sEACA,2CAGP,8BAUO,qDAqHC,+CA3GkB,IAAA,CAAA,CAAA,eACkB,CACxCA,CAAAA,CAAgB,EAAA,CAAA,EAAA,CAAA,EAChBC,CAAAA,CAAuB,CAAA,CAAA,CAAA,OACF,CAAA,CAAA,CAAA,OACO,CAAA,CAAA,CAAA,MACA,CAAA,EAY5BC,CAAiBC,GAAqC,CAAA,EAAI,CAAA,GAEhE,CAAA,CAAA,CAAA,kCAAA,IAASC,CAA6B,CACpC,SAAyC,CAAA,CAEzC,CAAA,CAAA,IACE,CAAA,CAAA,+BAAA,CAAA,CAAM,CAAA,EAAA,CAAI,CAAA,CAAA,CAAA,MAAM,IAAA,KAAA,CAAA,mDAiBpB,CAAA,CAAMC,OACD,CAAA,CAAA,IAAA,EAAA,CAAA,+BAAA,CAAAC,CAAAA,WAAoC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,IAAA,CAAA,CAAA,CAAcC,YAAaC,CAAAA,CAAW,CAAA,SAAO,CAAA,CAAA,CAAA,KAAAC,CAAU,CAAA,CAAA,QAAoB,CAChH,CAAA,CAAA,GAAMC,CAAWC,CAAAA,CAAc,CAAA,CAAA,EAAA,CAAA,IAAA,CAAA,CAAA,kCAAA,CAAA,YACzB,EAACC,EAAyB,CAAA,CAAIC,CAAAA,GAAc,CAAA,CAI5C,CAACC,CAAAA,CAAQC,CAAS,CAAA,CAAIF,CAAAA,6BAASP,CAAW,CAC1CU,CAAAA,CAAOC,CAAAA,CAAAA,CAAYH,CAAAA,CACnBI,CAAAA,6BAAUC,CACbC,CAAAA,CAAAA,CAAmD,kBAClD,CAAA,SAAA,GAAMC,CAAAA,CAAY,CAAA,gCAAA,CAAA,EAAA,CAAOD,IAAU,CAAA,CAAA,OAAA,CAAaA,EAAMJ,UAG/B,CAAA,CAErBD,CAAAA,CAAUM,CAAS,CAAA,CAIrB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAA,CAAA,CAAA,CAAA,QAA+B,CAAA,MAAa,CAAA,CAAA,EAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-VA36YONO.cjs","sourcesContent":[null,"'use client';\n\nimport { useMediaQuery } from '@codefast/hooks';\nimport { Slot } from '@radix-ui/react-slot';\nimport { VisuallyHidden } from '@radix-ui/react-visually-hidden';\nimport { PanelLeftIcon } from 'lucide-react';\nimport {\n type ComponentProps,\n createContext,\n type CSSProperties,\n type ComponentRef,\n forwardRef,\n useCallback,\n useContext,\n useEffect,\n useMemo,\n useState,\n} from 'react';\nimport { tv, type VariantProps } from 'tailwind-variants';\n\nimport { Button } from '@/components/button';\nimport { Separator } from '@/components/separator';\nimport { Sheet, SheetContent, SheetDescription, SheetTitle } from '@/components/sheet';\nimport { Skeleton } from '@/components/skeleton';\nimport { TextInput } from '@/components/text-input';\nimport { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/tooltip';\nimport { cn } from '@/lib/utils';\n\nconst SIDEBAR_COOKIE_NAME = 'sidebar:state';\nconst SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;\nconst SIDEBAR_WIDTH = '16rem';\nconst SIDEBAR_WIDTH_MOBILE = '18rem';\nconst SIDEBAR_WIDTH_ICON = '3rem';\nconst SIDEBAR_KEYBOARD_SHORTCUT = 'b';\nconst SIDEBAR_MOBILE_BREAKPOINT = 768;\n\ninterface SidebarContext {\n isMobile: boolean;\n open: boolean;\n openMobile: boolean;\n setOpen: (open: boolean) => void;\n setOpenMobile: (open: boolean) => void;\n state: 'expanded' | 'collapsed';\n toggleSidebar: () => void;\n}\n\nconst SidebarContext = createContext<SidebarContext | null>(null);\n\nfunction useSidebar(): SidebarContext {\n const context = useContext(SidebarContext);\n\n if (!context) {\n throw new Error('useSidebar must be used within a SidebarProvider.');\n }\n\n return context;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarProvider\n * -------------------------------------------------------------------------- */\n\ntype SidebarProviderElement = HTMLDivElement;\ninterface SidebarProviderProps extends ComponentProps<'div'> {\n defaultOpen?: boolean;\n onOpenChange?: (open: boolean) => void;\n open?: boolean;\n}\n\nconst SidebarProvider = forwardRef<SidebarProviderElement, SidebarProviderProps>(\n ({ defaultOpen = true, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }, ref) => {\n const isMobile = useMediaQuery(`(max-width: ${SIDEBAR_MOBILE_BREAKPOINT - 1}px)`);\n const [openMobile, setOpenMobile] = useState(false);\n\n // This is the internal state of the sidebar.\n // We use openProp and setOpenProp for control from outside the component.\n const [isOpen, setIsOpen] = useState(defaultOpen);\n const open = openProp ?? isOpen;\n const setOpen = useCallback(\n (value: boolean | ((value: boolean) => boolean)) => {\n const openState = typeof value === 'function' ? value(open) : value;\n\n if (setOpenProp) {\n setOpenProp(openState);\n } else {\n setIsOpen(openState);\n }\n\n // This sets the cookie to keep the sidebar state.\n document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;\n },\n [setOpenProp, open],\n );\n\n // Helper to toggle the sidebar.\n const toggleSidebar = useCallback(() => {\n isMobile ? setOpenMobile((currentValue) => !currentValue) : setOpen((currentValue) => !currentValue);\n }, [isMobile, setOpen, setOpenMobile]);\n\n // Adds a keyboard shortcut to toggle the sidebar.\n useEffect(() => {\n const handleKeyDown = (event: KeyboardEvent): void => {\n if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {\n event.preventDefault();\n toggleSidebar();\n }\n };\n\n window.addEventListener('keydown', handleKeyDown);\n\n return () => {\n window.removeEventListener('keydown', handleKeyDown);\n };\n }, [toggleSidebar]);\n\n // We add a state so that we can do data-state=\"expanded\" or \"collapsed\".\n // This makes it easier to style the sidebar with Tailwind classes.\n const state = open ? 'expanded' : 'collapsed';\n\n const contextValue = useMemo<SidebarContext>(\n () => ({\n state,\n open,\n setOpen,\n isMobile,\n openMobile,\n setOpenMobile,\n toggleSidebar,\n }),\n [state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar],\n );\n\n return (\n <SidebarContext.Provider value={contextValue}>\n <TooltipProvider delayDuration={0}>\n <div\n ref={ref}\n className={cn(\n 'group/sidebar-wrapper has-[[data-variant=inset]]:bg-sidebar flex min-h-svh w-full',\n className,\n )}\n style={\n {\n '--sidebar-width': SIDEBAR_WIDTH,\n '--sidebar-width-icon': SIDEBAR_WIDTH_ICON,\n ...style,\n } as CSSProperties\n }\n {...props}\n >\n {children}\n </div>\n </TooltipProvider>\n </SidebarContext.Provider>\n );\n },\n);\n\nSidebarProvider.displayName = 'SidebarProvider';\n\n/* -----------------------------------------------------------------------------\n * Component: Sidebar\n * -------------------------------------------------------------------------- */\n\ntype SidebarElement = HTMLDivElement;\ninterface SidebarProps extends ComponentProps<'div'> {\n collapsible?: 'offcanvas' | 'icon' | 'none';\n side?: 'left' | 'right';\n variant?: 'sidebar' | 'floating' | 'inset';\n}\n\nconst Sidebar = forwardRef<SidebarElement, SidebarProps>(\n ({ side = 'left', variant = 'sidebar', collapsible = 'offcanvas', className, children, ...props }, ref) => {\n const { isMobile, state, openMobile, setOpenMobile } = useSidebar();\n\n if (collapsible === 'none') {\n return (\n <div\n ref={ref}\n className={cn('bg-sidebar text-sidebar-foreground flex h-full w-[--sidebar-width] flex-col', className)}\n {...props}\n >\n {children}\n </div>\n );\n }\n\n if (isMobile) {\n return (\n <Sheet open={openMobile} onOpenChange={setOpenMobile} {...props}>\n <SheetContent\n className=\"bg-sidebar text-sidebar-foreground w-[--sidebar-width] p-0 [&>button]:hidden\"\n data-mobile=\"true\"\n data-sidebar=\"sidebar\"\n side={side}\n style={\n {\n '--sidebar-width': SIDEBAR_WIDTH_MOBILE,\n } as CSSProperties\n }\n >\n <VisuallyHidden>\n <SheetTitle>Sidebar</SheetTitle>\n <SheetDescription>Press escape to close the sidebar</SheetDescription>\n </VisuallyHidden>\n <div className=\"flex h-full w-full flex-col\">{children}</div>\n </SheetContent>\n </Sheet>\n );\n }\n\n return (\n <div\n ref={ref}\n className=\"text-sidebar-foreground group peer hidden md:block\"\n data-collapsible={state === 'collapsed' ? collapsible : ''}\n data-side={side}\n data-state={state}\n data-variant={variant}\n >\n {/* This is what handles the sidebar gap on desktop */}\n <div\n className={cn(\n 'relative h-svh w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear',\n 'group-data-[collapsible=offcanvas]:w-0',\n 'group-data-[side=right]:rotate-180',\n variant === 'floating' || variant === 'inset'\n ? 'group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]'\n : 'group-data-[collapsible=icon]:w-[--sidebar-width-icon]',\n )}\n />\n <div\n className={cn(\n 'fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex',\n side === 'left'\n ? 'left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]'\n : 'right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]',\n // Adjust the padding for floating and inset variants.\n variant === 'floating' || variant === 'inset'\n ? 'p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]'\n : 'group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l',\n className,\n )}\n {...props}\n >\n <div\n className=\"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow\"\n data-sidebar=\"sidebar\"\n >\n {children}\n </div>\n </div>\n </div>\n );\n },\n);\n\nSidebar.displayName = 'Sidebar';\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarTrigger\n * -------------------------------------------------------------------------- */\n\ntype SidebarTriggerElement = ComponentRef<typeof Button>;\ntype SidebarTriggerProps = ComponentProps<typeof Button>;\n\nconst SidebarTrigger = forwardRef<SidebarTriggerElement, SidebarTriggerProps>(\n ({ className, onClick, ...props }, ref) => {\n const { toggleSidebar } = useSidebar();\n\n return (\n <Button\n ref={ref}\n icon\n className={cn('', className)}\n data-sidebar=\"trigger\"\n size=\"xxs\"\n variant=\"ghost\"\n onClick={(event) => {\n onClick?.(event);\n toggleSidebar();\n }}\n {...props}\n >\n <PanelLeftIcon />\n <span className=\"sr-only\">Toggle Sidebar</span>\n </Button>\n );\n },\n);\n\nSidebarTrigger.displayName = 'SidebarTrigger';\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarRail\n * -------------------------------------------------------------------------- */\n\ntype SidebarRailElement = HTMLButtonElement;\ntype SidebarRailProps = ComponentProps<'button'>;\n\nconst SidebarRail = forwardRef<SidebarRailElement, SidebarRailProps>(({ className, ...props }, ref) => {\n const { toggleSidebar } = useSidebar();\n\n return (\n <button\n ref={ref}\n aria-label=\"Toggle Sidebar\"\n className={cn(\n 'hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-0.5 group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex',\n '[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize',\n '[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize',\n 'group-data-[collapsible=offcanvas]:hover:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full',\n '[[data-side=left][data-collapsible=offcanvas]_&]:-right-2',\n '[[data-side=right][data-collapsible=offcanvas]_&]:-left-2',\n className,\n )}\n data-sidebar=\"rail\"\n tabIndex={-1}\n title=\"Toggle Sidebar\"\n type=\"button\"\n onClick={toggleSidebar}\n {...props}\n />\n );\n});\n\nSidebarRail.displayName = 'SidebarRail';\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarInset\n * -------------------------------------------------------------------------- */\n\ntype SidebarInsetElement = HTMLDivElement;\ntype SidebarInsetProps = ComponentProps<'main'>;\n\nconst SidebarInset = forwardRef<SidebarInsetElement, SidebarInsetProps>(({ className, ...props }, ref) => {\n return (\n <main\n ref={ref}\n className={cn(\n 'bg-background relative flex min-h-svh flex-1 flex-col',\n 'peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow',\n className,\n )}\n {...props}\n />\n );\n});\n\nSidebarInset.displayName = 'SidebarInset';\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarInput\n * -------------------------------------------------------------------------- */\n\ntype SidebarInputElement = ComponentRef<typeof TextInput>;\ntype SidebarInputProps = ComponentProps<typeof TextInput>;\n\nconst SidebarInput = forwardRef<SidebarInputElement, SidebarInputProps>(({ className, ...props }, ref) => {\n return (\n <TextInput\n ref={ref}\n className={cn(\n 'bg-background focus-visible:ring-sidebar-ring h-8 w-full shadow-none focus-visible:ring-2',\n className,\n )}\n data-sidebar=\"input\"\n {...props}\n />\n );\n});\n\nSidebarInput.displayName = 'SidebarInput';\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarHeader\n * -------------------------------------------------------------------------- */\n\ntype SidebarHeaderElement = HTMLDivElement;\ntype SidebarHeaderProps = ComponentProps<'div'>;\n\nconst SidebarHeader = forwardRef<SidebarHeaderElement, SidebarHeaderProps>(({ className, ...props }, ref) => {\n return <div ref={ref} className={cn('flex flex-col gap-2 p-2', className)} data-sidebar=\"header\" {...props} />;\n});\n\nSidebarHeader.displayName = 'SidebarHeader';\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarFooter\n * -------------------------------------------------------------------------- */\n\ntype SidebarFooterElement = HTMLDivElement;\ntype SidebarFooterProps = ComponentProps<'div'>;\n\nconst SidebarFooter = forwardRef<SidebarFooterElement, SidebarFooterProps>(({ className, ...props }, ref) => {\n return <div ref={ref} className={cn('flex flex-col gap-2 p-2', className)} data-sidebar=\"footer\" {...props} />;\n});\n\nSidebarFooter.displayName = 'SidebarFooter';\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarSeparator\n * -------------------------------------------------------------------------- */\n\ntype SidebarSeparatorElement = ComponentRef<typeof Separator>;\ntype SidebarSeparatorProps = ComponentProps<typeof Separator>;\n\nconst SidebarSeparator = forwardRef<SidebarSeparatorElement, SidebarSeparatorProps>(({ className, ...props }, ref) => {\n return (\n <Separator\n ref={ref}\n className={cn('bg-sidebar-border mx-2 w-auto', className)}\n data-sidebar=\"separator\"\n {...props}\n />\n );\n});\n\nSidebarSeparator.displayName = 'SidebarSeparator';\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarContent\n * -------------------------------------------------------------------------- */\n\ntype SidebarContentElement = HTMLDivElement;\ntype SidebarContentProps = ComponentProps<'div'>;\n\nconst SidebarContent = forwardRef<SidebarContentElement, SidebarContentProps>(({ className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n className={cn(\n 'flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden',\n className,\n )}\n data-sidebar=\"content\"\n {...props}\n />\n );\n});\n\nSidebarContent.displayName = 'SidebarContent';\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarGroup\n * -------------------------------------------------------------------------- */\n\ntype SidebarGroupElement = HTMLDivElement;\ntype SidebarGroupProps = ComponentProps<'div'>;\n\nconst SidebarGroup = forwardRef<SidebarGroupElement, SidebarGroupProps>(({ className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n className={cn('relative flex w-full min-w-0 flex-col p-2', className)}\n data-sidebar=\"group\"\n {...props}\n />\n );\n});\n\nSidebarGroup.displayName = 'SidebarGroup';\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarGroupLabel\n * -------------------------------------------------------------------------- */\n\ntype SidebarGroupLabelElement = HTMLDivElement;\ninterface SidebarGroupLabelProps extends ComponentProps<'div'> {\n asChild?: boolean;\n}\n\nconst SidebarGroupLabel = forwardRef<SidebarGroupLabelElement, SidebarGroupLabelProps>(\n ({ className, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : 'div';\n\n return (\n <Comp\n ref={ref}\n className={cn(\n 'text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-none transition-[margin,opa] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0',\n 'group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0',\n className,\n )}\n data-sidebar=\"group-label\"\n {...props}\n />\n );\n },\n);\n\nSidebarGroupLabel.displayName = 'SidebarGroupLabel';\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarGroupAction\n * -------------------------------------------------------------------------- */\n\ntype SidebarGroupActionElement = HTMLButtonElement;\ninterface SidebarGroupActionProps extends ComponentProps<'button'> {\n asChild?: boolean;\n}\n\nconst SidebarGroupAction = forwardRef<SidebarGroupActionElement, SidebarGroupActionProps>(\n ({ className, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : 'button';\n\n return (\n <Comp\n ref={ref}\n className={cn(\n 'text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-none transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0',\n // Increases the hit area of the button on mobile.\n 'after:absolute after:-inset-2 after:md:hidden',\n 'group-data-[collapsible=icon]:hidden',\n className,\n )}\n data-sidebar=\"group-action\"\n {...props}\n />\n );\n },\n);\n\nSidebarGroupAction.displayName = 'SidebarGroupAction';\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarGroupContent\n * -------------------------------------------------------------------------- */\n\ntype SidebarGroupContentElement = HTMLDivElement;\ntype SidebarGroupContentProps = ComponentProps<'div'>;\n\nconst SidebarGroupContent = forwardRef<SidebarGroupContentElement, SidebarGroupContentProps>(\n ({ className, ...props }, ref) => (\n <div ref={ref} className={cn('w-full text-sm', className)} data-sidebar=\"group-content\" {...props} />\n ),\n);\n\nSidebarGroupContent.displayName = 'SidebarGroupContent';\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenu\n * -------------------------------------------------------------------------- */\n\ntype SidebarMenuElement = HTMLUListElement;\ntype SidebarMenuProps = ComponentProps<'ul'>;\n\nconst SidebarMenu = forwardRef<SidebarMenuElement, SidebarMenuProps>(({ className, ...props }, ref) => (\n <ul ref={ref} className={cn('flex w-full min-w-0 flex-col gap-1', className)} data-sidebar=\"menu\" {...props} />\n));\n\nSidebarMenu.displayName = 'SidebarMenu';\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenuItem\n * -------------------------------------------------------------------------- */\n\ntype SidebarMenuItemElement = HTMLLIElement;\ntype SidebarMenuItemProps = ComponentProps<'li'>;\n\nconst SidebarMenuItem = forwardRef<SidebarMenuItemElement, SidebarMenuItemProps>(({ className, ...props }, ref) => (\n <li ref={ref} className={cn('group/menu-item relative', className)} data-sidebar=\"menu-item\" {...props} />\n));\n\nSidebarMenuItem.displayName = 'SidebarMenuItem';\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenuButton\n * -------------------------------------------------------------------------- */\n\nconst sidebarMenuButtonVariants = tv({\n base: 'peer/menu-button ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none transition-[width,height,padding] focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:font-medium group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0',\n variants: {\n variant: {\n default: 'hover:bg-sidebar-accent hover:text-sidebar-accent-foreground',\n outline:\n 'bg-background hover:bg-sidebar-accent hover:text-sidebar-accent-foreground shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]',\n },\n size: {\n default: 'h-8 text-sm',\n sm: 'h-7 text-xs',\n lg: 'h-12 text-sm group-data-[collapsible=icon]:!p-0',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n});\n\ntype SidebarMenuButtonElement = HTMLButtonElement;\ninterface SidebarMenuButtonProps extends ComponentProps<'button'>, VariantProps<typeof sidebarMenuButtonVariants> {\n asChild?: boolean;\n isActive?: boolean;\n tooltip?: string | ComponentProps<typeof TooltipContent>;\n}\n\nconst SidebarMenuButton = forwardRef<SidebarMenuButtonElement, SidebarMenuButtonProps>(\n ({ asChild = false, isActive = false, variant = 'default', size = 'default', tooltip, className, ...props }, ref) => {\n const Comp = asChild ? Slot : 'button';\n const { isMobile, state } = useSidebar();\n\n const button = (\n <Comp\n ref={ref}\n className={cn(sidebarMenuButtonVariants({ variant, size }), className)}\n data-active={isActive}\n data-sidebar=\"menu-button\"\n data-size={size}\n {...props}\n />\n );\n\n if (!tooltip) {\n return button;\n }\n\n const tooltipProps =\n typeof tooltip === 'string'\n ? {\n children: tooltip,\n }\n : tooltip;\n\n return (\n <Tooltip>\n <TooltipTrigger asChild>{button}</TooltipTrigger>\n <TooltipContent align=\"center\" hidden={state !== 'collapsed' || isMobile} side=\"right\" {...tooltipProps} />\n </Tooltip>\n );\n },\n);\n\nSidebarMenuButton.displayName = 'SidebarMenuButton';\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenuAction\n * -------------------------------------------------------------------------- */\n\ntype SidebarMenuActionElement = HTMLButtonElement;\ninterface SidebarMenuActionProps extends ComponentProps<'button'> {\n asChild?: boolean;\n showOnHover?: boolean;\n}\nconst SidebarMenuAction = forwardRef<SidebarMenuActionElement, SidebarMenuActionProps>(\n ({ className, asChild = false, showOnHover = false, ...props }, ref) => {\n const Comp = asChild ? Slot : 'button';\n\n return (\n <Comp\n ref={ref}\n className={cn(\n 'text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-none transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0',\n // Increases the hit area of the button on mobile.\n 'after:absolute after:-inset-2 after:md:hidden',\n 'peer-data-[size=sm]/menu-button:top-1',\n 'peer-data-[size=default]/menu-button:top-1.5',\n 'peer-data-[size=lg]/menu-button:top-2.5',\n 'group-data-[collapsible=icon]:hidden',\n showOnHover &&\n 'peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0',\n className,\n )}\n data-sidebar=\"menu-action\"\n {...props}\n />\n );\n },\n);\n\nSidebarMenuAction.displayName = 'SidebarMenuAction';\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenuBadge\n * -------------------------------------------------------------------------- */\n\ntype SidebarMenuBadgeElement = HTMLDivElement;\ntype SidebarMenuBadgeProps = ComponentProps<'div'>;\nconst SidebarMenuBadge = forwardRef<SidebarMenuBadgeElement, SidebarMenuBadgeProps>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\n 'text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums',\n 'peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground',\n 'peer-data-[size=sm]/menu-button:top-1',\n 'peer-data-[size=default]/menu-button:top-1.5',\n 'peer-data-[size=lg]/menu-button:top-2.5',\n 'group-data-[collapsible=icon]:hidden',\n className,\n )}\n data-sidebar=\"menu-badge\"\n {...props}\n />\n));\n\nSidebarMenuBadge.displayName = 'SidebarMenuBadge';\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenuSkeleton\n * -------------------------------------------------------------------------- */\n\ntype SidebarMenuSkeletonElement = HTMLDivElement;\ninterface SidebarMenuSkeletonProps extends ComponentProps<'div'> {\n showIcon?: boolean;\n}\nconst SidebarMenuSkeleton = forwardRef<SidebarMenuSkeletonElement, SidebarMenuSkeletonProps>(\n ({ className, showIcon = false, ...props }, ref) => {\n // Random width between 50 to 90%.\n const width = useMemo(() => {\n return `${Math.floor(Math.random() * 40) + 50}%`;\n }, []);\n\n return (\n <div\n ref={ref}\n className={cn('flex h-8 items-center gap-2 rounded-md px-2', className)}\n data-sidebar=\"menu-skeleton\"\n {...props}\n >\n {showIcon ? <Skeleton className=\"size-4 rounded-md\" data-sidebar=\"menu-skeleton-icon\" /> : null}\n <Skeleton\n className=\"h-4 max-w-[--skeleton-width] flex-1\"\n data-sidebar=\"menu-skeleton-text\"\n style={\n {\n '--skeleton-width': width,\n } as CSSProperties\n }\n />\n </div>\n );\n },\n);\n\nSidebarMenuSkeleton.displayName = 'SidebarMenuSkeleton';\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenuSub\n * -------------------------------------------------------------------------- */\n\ntype SidebarMenuSubElement = HTMLUListElement;\ntype SidebarMenuSubProps = ComponentProps<'ul'>;\nconst SidebarMenuSub = forwardRef<SidebarMenuSubElement, SidebarMenuSubProps>(({ className, ...props }, ref) => (\n <ul\n ref={ref}\n className={cn(\n 'border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5',\n 'group-data-[collapsible=icon]:hidden',\n className,\n )}\n data-sidebar=\"menu-sub\"\n {...props}\n />\n));\n\nSidebarMenuSub.displayName = 'SidebarMenuSub';\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenuSubItem\n * -------------------------------------------------------------------------- */\n\ntype SidebarMenuSubItemElement = HTMLLIElement;\ntype SidebarMenuSubItemProps = ComponentProps<'li'>;\nconst SidebarMenuSubItem = forwardRef<SidebarMenuSubItemElement, SidebarMenuSubItemProps>(({ ...props }, ref) => (\n <li ref={ref} {...props} />\n));\n\nSidebarMenuSubItem.displayName = 'SidebarMenuSubItem';\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenuSubButton\n * -------------------------------------------------------------------------- */\n\ntype SidebarMenuSubButtonElement = HTMLAnchorElement;\ninterface SidebarMenuSubButtonProps extends ComponentProps<'a'> {\n asChild?: boolean;\n isActive?: boolean;\n size?: 'sm' | 'md';\n}\n\nconst SidebarMenuSubButton = forwardRef<SidebarMenuSubButtonElement, SidebarMenuSubButtonProps>(\n ({ asChild = false, size = 'md', isActive, className, ...props }, ref) => {\n const Comp = asChild ? Slot : 'a';\n\n return (\n <Comp\n ref={ref}\n className={cn(\n 'text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0',\n 'data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground',\n size === 'sm' && 'text-xs',\n size === 'md' && 'text-sm',\n 'group-data-[collapsible=icon]:hidden',\n className,\n )}\n data-active={isActive}\n data-sidebar=\"menu-sub-button\"\n data-size={size}\n {...props}\n />\n );\n },\n);\n\nSidebarMenuSubButton.displayName = 'SidebarMenuSubButton';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Sidebar,\n SidebarContent,\n SidebarFooter,\n SidebarGroup,\n SidebarGroupAction,\n SidebarGroupContent,\n SidebarGroupLabel,\n SidebarHeader,\n SidebarInput,\n SidebarInset,\n SidebarMenu,\n SidebarMenuAction,\n SidebarMenuBadge,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSkeleton,\n SidebarMenuSub,\n SidebarMenuSubButton,\n SidebarMenuSubItem,\n SidebarProvider,\n SidebarRail,\n SidebarSeparator,\n SidebarTrigger,\n useSidebar,\n};\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
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 _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _reactcontextmenu = require('@radix-ui/react-context-menu'); var e = _interopRequireWildcard(_reactcontextmenu);var _reacticons = require('@radix-ui/react-icons');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var h=e.Root,N= exports.b =e.Trigger,E= exports.c =e.Group,T= exports.d =e.Sub,w= exports.e =e.RadioGroup,d= exports.f =_react.forwardRef.call(void 0, ({children:t,className:o,inset:n,...a},s)=>_jsxruntime.jsxs.call(void 0, e.SubTrigger,{ref:s,className:_chunkDD6AVCRHcjs.a.call(void 0, "gap-x-2 px-3 py-1.5","flex cursor-pointer select-none items-center rounded text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",n&&"pl-8",o),...a,children:[t,_jsxruntime.jsx.call(void 0, _reacticons.ChevronRightIcon,{className:"ml-auto size-4"})]}));d.displayName=e.SubTrigger.displayName;var l=_react.forwardRef.call(void 0, ({className:t,...o},n)=>_jsxruntime.jsx.call(void 0, e.Portal,{children:_jsxruntime.jsx.call(void 0, e.SubContent,{ref:n,className:_chunkDD6AVCRHcjs.a.call(void 0, "bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md","data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95","data-[state=open]:data-[side=top]:slide-in-from-bottom-2","data-[state=open]:data-[side=right]:slide-in-from-left-2","data-[state=open]:data-[side=bottom]:slide-in-from-top-2","data-[state=open]:data-[side=left]:slide-in-from-right-2","data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95","data-[state=closed]:data-[side=top]:slide-out-to-bottom-2","data-[state=closed]:data-[side=right]:slide-out-to-left-2","data-[state=closed]:data-[side=bottom]:slide-out-to-top-2","data-[state=closed]:data-[side=left]:slide-out-to-right-2",t),...o})}));l.displayName=e.SubContent.displayName;var M=_react.forwardRef.call(void 0, ({className:t,...o},n)=>_jsxruntime.jsx.call(void 0, e.Portal,{children:_jsxruntime.jsx.call(void 0, e.Content,{ref:n,className:_chunkDD6AVCRHcjs.a.call(void 0, "bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md","data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95","data-[state=open]:data-[side=top]:slide-in-from-bottom-2","data-[state=open]:data-[side=right]:slide-in-from-left-2","data-[state=open]:data-[side=bottom]:slide-in-from-top-2","data-[state=open]:data-[side=left]:slide-in-from-right-2",t),...o})}));M.displayName=e.Content.displayName;var c=_react.forwardRef.call(void 0, ({className:t,inset:o,...n},a)=>_jsxruntime.jsx.call(void 0, e.Item,{ref:a,className:_chunkDD6AVCRHcjs.a.call(void 0, "gap-x-2 px-3 py-1.5","relative flex cursor-pointer select-none items-center rounded text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","aria-disabled:pointer-events-none aria-disabled:opacity-50",o&&"pl-8",t),...n}));c.displayName=e.Item.displayName;var P=_react.forwardRef.call(void 0, ({children:t,className:o,checked:n,...a},s)=>_jsxruntime.jsxs.call(void 0, e.CheckboxItem,{ref:s,checked:n,className:_chunkDD6AVCRHcjs.a.call(void 0, "gap-x-2 px-3 py-1.5","pl-8","relative flex cursor-pointer select-none items-center rounded text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","aria-disabled:pointer-events-none aria-disabled:opacity-50",o),...a,children:[_jsxruntime.jsx.call(void 0, "span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:_jsxruntime.jsx.call(void 0, e.ItemIndicator,{children:_jsxruntime.jsx.call(void 0, _reacticons.CheckIcon,{className:"size-4"})})}),t]}));P.displayName=e.CheckboxItem.displayName;var f=_react.forwardRef.call(void 0, ({children:t,className:o,...n},a)=>_jsxruntime.jsxs.call(void 0, e.RadioItem,{ref:a,className:_chunkDD6AVCRHcjs.a.call(void 0, "gap-x-2 px-3 py-1.5","pl-8","relative flex cursor-pointer select-none items-center rounded text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","aria-disabled:pointer-events-none aria-disabled:opacity-50",o),...n,children:[_jsxruntime.jsx.call(void 0, "span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:_jsxruntime.jsx.call(void 0, e.ItemIndicator,{children:_jsxruntime.jsx.call(void 0, _reacticons.DotFilledIcon,{className:"size-4 fill-current"})})}),t]}));f.displayName=e.RadioItem.displayName;var y=_react.forwardRef.call(void 0, ({className:t,inset:o,...n},a)=>_jsxruntime.jsx.call(void 0, e.Label,{ref:a,className:_chunkDD6AVCRHcjs.a.call(void 0, "gap-x-2 px-3 py-1.5","flex items-center text-sm font-semibold",o&&"pl-8",t),...n}));y.displayName=e.Label.displayName;var b=_react.forwardRef.call(void 0, ({className:t,...o},n)=>_jsxruntime.jsx.call(void 0, e.Separator,{ref:n,className:_chunkDD6AVCRHcjs.a.call(void 0, "bg-muted mx-2 my-1 h-px",t),...o}));b.displayName=e.Separator.displayName;function k({className:t,...o}){return _jsxruntime.jsx.call(void 0, "span",{className:_chunkDD6AVCRHcjs.a.call(void 0, "text-muted-foreground ml-auto text-xs tracking-widest",t),...o})}var v=_react.forwardRef.call(void 0, ({className:t,...o},n)=>_jsxruntime.jsx.call(void 0, e.Arrow,{ref:n,className:_chunkDD6AVCRHcjs.a.call(void 0, "fill-popover",t),...o}));v.displayName=e.Arrow.displayName;exports.a = h; exports.b = N; exports.c = E; exports.d = T; exports.e = w; exports.f = d; exports.g = l; exports.h = M; exports.i = c; exports.j = P; exports.k = f; exports.l = y; exports.m = b; exports.n = k; exports.o = v;
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
2
|
+
//# sourceMappingURL=chunk-VBE6D4FZ.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-VBE6D4FZ.cjs","../src/components/context-menu.tsx"],"names":["ContextMenu","ContextMenuTrigger","ContextMenuGroup","ContextMenuSub","ContextMenuRadioGroup","ContextMenuSubTrigger","forwardRef","children","className","inset","props","forwardedRef","jsxs","cn","jsx","ChevronRightIcon","ContextMenuSubContent","ContextMenuContent","ContextMenuItem","ContextMenuCheckboxItem","checked","CheckIcon","ContextMenuRadioItem","DotFilledIcon","ContextMenuLabel","ContextMenuSeparator","ContextMen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/home/runner/work/codefast/codefast/packages/ui/dist/chunk-VBE6D4FZ.cjs","sourcesContent":[null,"import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';\nimport { CheckIcon, ChevronRightIcon, DotFilledIcon } from '@radix-ui/react-icons';\nimport {\n type ComponentProps,\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n type HTMLAttributes,\n type JSX,\n} from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenu\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuProps = ComponentProps<typeof ContextMenuPrimitive.Root>;\nconst ContextMenu = ContextMenuPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuTrigger\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuTriggerProps = ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Trigger>;\nconst ContextMenuTrigger = ContextMenuPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuGroup\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuGroupProps = ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Group>;\nconst ContextMenuGroup = ContextMenuPrimitive.Group;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuSub\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuSubProps = ComponentProps<typeof ContextMenuPrimitive.Sub>;\nconst ContextMenuSub = ContextMenuPrimitive.Sub;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuRadioGroup\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuRadioGroupProps = ComponentPropsWithoutRef<typeof ContextMenuPrimitive.RadioGroup>;\nconst ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuSubTrigger\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuSubTriggerElement = ComponentRef<typeof ContextMenuPrimitive.SubTrigger>;\ninterface ContextMenuSubTriggerProps extends ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubTrigger> {\n inset?: boolean;\n}\n\nconst ContextMenuSubTrigger = forwardRef<ContextMenuSubTriggerElement, ContextMenuSubTriggerProps>(\n ({ children, className, inset, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.SubTrigger\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'flex cursor-pointer select-none items-center rounded text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'data-[state=open]:bg-accent data-[state=open]:text-accent-foreground',\n inset && 'pl-8',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRightIcon className=\"ml-auto size-4\" />\n </ContextMenuPrimitive.SubTrigger>\n ),\n);\n\nContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuSubContent\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuSubContentElement = ComponentRef<typeof ContextMenuPrimitive.SubContent>;\ntype ContextMenuSubContentProps = ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubContent>;\n\nconst ContextMenuSubContent = forwardRef<ContextMenuSubContentElement, ContextMenuSubContentProps>(\n ({ className, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.Portal>\n <ContextMenuPrimitive.SubContent\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md',\n 'data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95',\n 'data-[state=open]:data-[side=top]:slide-in-from-bottom-2',\n 'data-[state=open]:data-[side=right]:slide-in-from-left-2',\n 'data-[state=open]:data-[side=bottom]:slide-in-from-top-2',\n 'data-[state=open]:data-[side=left]:slide-in-from-right-2',\n 'data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95',\n 'data-[state=closed]:data-[side=top]:slide-out-to-bottom-2',\n 'data-[state=closed]:data-[side=right]:slide-out-to-left-2',\n 'data-[state=closed]:data-[side=bottom]:slide-out-to-top-2',\n 'data-[state=closed]:data-[side=left]:slide-out-to-right-2',\n className,\n )}\n {...props}\n />\n </ContextMenuPrimitive.Portal>\n ),\n);\n\nContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuContent\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuContentElement = ComponentRef<typeof ContextMenuPrimitive.Content>;\ntype ContextMenuContentProps = ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Content>;\n\nconst ContextMenuContent = forwardRef<ContextMenuContentElement, ContextMenuContentProps>(\n ({ className, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.Portal>\n <ContextMenuPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md',\n 'data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95',\n 'data-[state=open]:data-[side=top]:slide-in-from-bottom-2',\n 'data-[state=open]:data-[side=right]:slide-in-from-left-2',\n 'data-[state=open]:data-[side=bottom]:slide-in-from-top-2',\n 'data-[state=open]:data-[side=left]:slide-in-from-right-2',\n className,\n )}\n {...props}\n />\n </ContextMenuPrimitive.Portal>\n ),\n);\n\nContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuItem\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuItemElement = ComponentRef<typeof ContextMenuPrimitive.Item>;\ninterface ContextMenuItemProps extends ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Item> {\n inset?: boolean;\n}\n\nconst ContextMenuItem = forwardRef<ContextMenuItemElement, ContextMenuItemProps>(\n ({ className, inset, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'relative flex cursor-pointer select-none items-center rounded text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n ),\n);\n\nContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuCheckboxItem\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuCheckboxItemElement = ComponentRef<typeof ContextMenuPrimitive.CheckboxItem>;\ntype ContextMenuCheckboxItemProps = ComponentPropsWithoutRef<typeof ContextMenuPrimitive.CheckboxItem>;\n\nconst ContextMenuCheckboxItem = forwardRef<ContextMenuCheckboxItemElement, ContextMenuCheckboxItemProps>(\n ({ children, className, checked, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.CheckboxItem\n ref={forwardedRef}\n checked={checked}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'pl-8',\n 'relative flex cursor-pointer select-none items-center rounded text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex size-3.5 items-center justify-center\">\n <ContextMenuPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </ContextMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </ContextMenuPrimitive.CheckboxItem>\n ),\n);\n\nContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuRadioItem\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuRadioItemElement = ComponentRef<typeof ContextMenuPrimitive.RadioItem>;\ntype ContextMenuRadioItemProps = ComponentPropsWithoutRef<typeof ContextMenuPrimitive.RadioItem>;\n\nconst ContextMenuRadioItem = forwardRef<ContextMenuRadioItemElement, ContextMenuRadioItemProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.RadioItem\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'pl-8',\n 'relative flex cursor-pointer select-none items-center rounded text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex size-3.5 items-center justify-center\">\n <ContextMenuPrimitive.ItemIndicator>\n <DotFilledIcon className=\"size-4 fill-current\" />\n </ContextMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </ContextMenuPrimitive.RadioItem>\n ),\n);\n\nContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuLabel\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuLabelElement = ComponentRef<typeof ContextMenuPrimitive.Label>;\ninterface ContextMenuLabelProps extends ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Label> {\n inset?: boolean;\n}\n\nconst ContextMenuLabel = forwardRef<ContextMenuLabelElement, ContextMenuLabelProps>(\n ({ className, inset, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.Label\n ref={forwardedRef}\n className={cn('gap-x-2 px-3 py-1.5', 'flex items-center text-sm font-semibold', inset && 'pl-8', className)}\n {...props}\n />\n ),\n);\n\nContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuSeparator\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuSeparatorElement = ComponentRef<typeof ContextMenuPrimitive.Separator>;\ntype ContextMenuSeparatorProps = ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Separator>;\n\nconst ContextMenuSeparator = forwardRef<ContextMenuSeparatorElement, ContextMenuSeparatorProps>(\n ({ className, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.Separator\n ref={forwardedRef}\n className={cn('bg-muted mx-2 my-1 h-px', className)}\n {...props}\n />\n ),\n);\n\nContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuShortcut\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuShortcutProps = HTMLAttributes<HTMLSpanElement>;\n\nfunction ContextMenuShortcut({ className, ...props }: ContextMenuShortcutProps): JSX.Element {\n return <span className={cn('text-muted-foreground ml-auto text-xs tracking-widest', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuArrow\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuArrowElement = ComponentRef<typeof ContextMenuPrimitive.Arrow>;\ntype ContextMenuArrowProps = ContextMenuPrimitive.ContextMenuArrowProps;\n\nconst ContextMenuArrow = forwardRef<ContextMenuArrowElement, ContextMenuArrowProps>(\n ({ className, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.Arrow ref={forwardedRef} className={cn('fill-popover', className)} {...props} />\n ),\n);\n\nContextMenuArrow.displayName = ContextMenuPrimitive.Arrow.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n ContextMenu,\n ContextMenuArrow,\n ContextMenuCheckboxItem,\n ContextMenuContent,\n ContextMenuGroup,\n ContextMenuItem,\n ContextMenuLabel,\n ContextMenuRadioGroup,\n ContextMenuRadioItem,\n ContextMenuSeparator,\n ContextMenuShortcut,\n ContextMenuSub,\n ContextMenuSubContent,\n ContextMenuSubTrigger,\n ContextMenuTrigger,\n type ContextMenuArrowProps,\n type ContextMenuCheckboxItemProps,\n type ContextMenuContentProps,\n type ContextMenuGroupProps,\n type ContextMenuItemProps,\n type ContextMenuLabelProps,\n type ContextMenuProps,\n type ContextMenuRadioGroupProps,\n type ContextMenuRadioItemProps,\n type ContextMenuSeparatorProps,\n type ContextMenuShortcutProps,\n type ContextMenuSubContentProps,\n type ContextMenuSubProps,\n type ContextMenuSubTriggerProps,\n type ContextMenuTriggerProps,\n};\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{Slot as o}from"@radix-ui/react-slot";import{forwardRef as n}from"react";import{jsx as P}from"react/jsx-runtime";var p=n(({asChild:e,...r},t)=>P(e?o:"pre",{ref:t,...r}));p.displayName="Pre";export{p as a};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
2
|
+
//# sourceMappingURL=chunk-VPA4U2FS.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/pre.tsx"],"names":["Slot","forwardRef","jsx","Pre","asChild","props","forwardedRef"],"mappings":"AAAA,OAAS,QAAAA,MAAY,uBACrB,OAAS,cAAAC,MAAuC,QAcvC,cAAAC,MAAA,oBAHT,IAAMC,EAAMF,EAAiC,CAAC,CAAE,QAAAG,EAAS,GAAGC,CAAM,EAAGC,IAG5DJ,EAFWE,EAAUJ,EAAO,MAE3B,CAAU,IAAKM,EAAe,GAAGD,EAAO,CACjD,EAEDF,EAAI,YAAc","sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport { forwardRef, type HTMLAttributes } from 'react';\n\n/* -----------------------------------------------------------------------------\n * Component: Pre\n * -------------------------------------------------------------------------- */\n\ntype PreElement = HTMLPreElement;\ninterface PreProps extends HTMLAttributes<HTMLPreElement> {\n asChild?: boolean;\n}\n\nconst Pre = forwardRef<PreElement, PreProps>(({ asChild, ...props }, forwardedRef) => {\n const Component = asChild ? Slot : 'pre';\n\n return <Component ref={forwardedRef} {...props} />;\n});\n\nPre.displayName = 'Pre';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Pre, type PreProps };\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _reactslot = require('@radix-ui/react-slot');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var m=_react.forwardRef.call(void 0, ({className:t,asChild:n,...o},r)=>_jsxruntime.jsx.call(void 0, n?_reactslot.Slot:"div",{ref:r,className:_chunkDD6AVCRHcjs.a.call(void 0, "container",t),...o}));m.displayName="Container";exports.a = m;
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
2
|
+
//# sourceMappingURL=chunk-W7777KAF.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-W7777KAF.cjs","../src/components/container.tsx"],"names":["Container","forwardRef","className","asChild","props","forwardedRef","jsx","Slot","cn"],"mappings":"AAAA,iIAAwC,iDCAnB,8BAC2B,+CAgBvC,IAHHA,CAAAA,CAAYC,+BAAAA,CAA8C,CAAE,SAAA,CAAAC,CAAAA,CAAW,OAAA,CAAAC,CAAAA,CAAS,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAGzFC,6BAAAA,CAFWH,CAAUI,eAAAA,CAAO,KAAA,CAE3B,CAAU,GAAA,CAAKF,CAAAA,CAAc,SAAA,CAAWG,iCAAAA,WAAG,CAAaN,CAAS,CAAA,CAAI,GAAGE,CAAAA,CAAO,CACxF,CAAA,CAEDJ,CAAAA,CAAU,WAAA,CAAc,WAAA,CAAA,cAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-W7777KAF.cjs","sourcesContent":[null,"import { Slot } from '@radix-ui/react-slot';\nimport { forwardRef, type HTMLAttributes } from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Container\n * -------------------------------------------------------------------------- */\n\ntype ContainerElement = HTMLDivElement;\ninterface ContainerProps extends HTMLAttributes<HTMLDivElement> {\n asChild?: boolean;\n}\n\nconst Container = forwardRef<ContainerElement, ContainerProps>(({ className, asChild, ...props }, forwardedRef) => {\n const Component = asChild ? Slot : 'div';\n\n return <Component ref={forwardedRef} className={cn('container', className)} {...props} />;\n});\n\nContainer.displayName = 'Container';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Container, type ContainerProps };\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{Slot as r}from"@radix-ui/react-slot";import{forwardRef as n}from"react";import{jsx as p}from"react/jsx-runtime";var d=n(({asChild:e,...o},t)=>p(e?r:"code",{ref:t,...o}));d.displayName="Code";export{d as a};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
2
|
+
//# sourceMappingURL=chunk-WLRNKE5B.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/code.tsx"],"names":["Slot","forwardRef","jsx","Code","asChild","props","forwardedRef"],"mappings":"AAAA,OAAS,QAAAA,MAAY,uBACrB,OAAS,cAAAC,MAAuC,
|
|
1
|
+
{"version":3,"sources":["../src/components/code.tsx"],"names":["Slot","forwardRef","jsx","Code","asChild","props","forwardedRef"],"mappings":"AAAA,OAAS,QAAAA,MAAY,uBACrB,OAAS,cAAAC,MAAuC,QAcvC,cAAAC,MAAA,oBAHT,IAAMC,EAAOF,EAAmC,CAAC,CAAE,QAAAG,EAAS,GAAGC,CAAM,EAAGC,IAG/DJ,EAFWE,EAAUJ,EAAO,OAE3B,CAAU,IAAKM,EAAe,GAAGD,EAAO,CACjD,EAEDF,EAAK,YAAc","sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport { forwardRef, type HTMLAttributes } from 'react';\n\n/* -----------------------------------------------------------------------------\n * Component: Code\n * -------------------------------------------------------------------------- */\n\ntype CodeElement = HTMLElement;\ninterface CodeProps extends HTMLAttributes<HTMLElement> {\n asChild?: boolean;\n}\n\nconst Code = forwardRef<CodeElement, CodeProps>(({ asChild, ...props }, forwardedRef) => {\n const Component = asChild ? Slot : 'code';\n\n return <Component ref={forwardedRef} {...props} />;\n});\n\nCode.displayName = 'Code';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Code, type CodeProps };\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{Slot as n}from"@radix-ui/react-slot";import{forwardRef as r}from"react";import{jsx as i}from"react/jsx-runtime";var s=r(({as:o="div",asChild:e,...t},p)=>i(e?n:o,{ref:p,...t}));s.displayName="Box";export{s as a};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
2
|
+
//# sourceMappingURL=chunk-XVSKGP3O.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/box.tsx"],"names":["Slot","forwardRef","jsx","Box","Tag","asChild","props","forwardedRef"],"mappings":"AAAA,OAAS,QAAAA,MAAY,uBACrB,OAAS,cAAAC,MAAuC,QAsBvC,cAAAC,MAAA,oBAHT,IAAMC,EAAMF,EAAiC,CAAC,CAAE,GAAIG,EAAM,MAAO,QAAAC,EAAS,GAAGC,CAAM,EAAGC,IAG7EL,EAFWG,EAAUL,EAAOI,EAE3B,CAAU,IAAKG,EAAe,GAAGD,EAAO,CACjD,EAEDH,EAAI,YAAc","sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport { forwardRef, type HTMLAttributes } from 'react';\n\n/* -----------------------------------------------------------------------------\n * Component: Box\n * -------------------------------------------------------------------------- */\n\ntype BoxElement = HTMLDivElement;\ninterface BoxDivProps extends HTMLAttributes<HTMLDivElement> {\n as?: 'div';\n}\n\ninterface BoxSpanProps extends HTMLAttributes<HTMLSpanElement> {\n as: 'span';\n}\n\ntype BoxProps = (BoxDivProps | BoxSpanProps) & {\n asChild?: boolean;\n};\n\nconst Box = forwardRef<BoxElement, BoxProps>(({ as: Tag = 'div', asChild, ...props }, forwardedRef) => {\n const Component = asChild ? Slot : Tag;\n\n return <Component ref={forwardedRef} {...props} />;\n});\n\nBox.displayName = 'Box';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Box, type BoxProps };\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _reactslot = require('@radix-ui/react-slot');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var n=_react.forwardRef.call(void 0, ({as:e="p",asChild:t,...r},p)=>_jsxruntime.jsx.call(void 0, t?_reactslot.Slot:e,{ref:p,...r}));n.displayName="Text";exports.a = n;
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
2
|
+
//# sourceMappingURL=chunk-XWRE723Z.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/text.tsx"],"names":["Text","forwardRef","Tag","asChild","props","forwardedRef","jsx","Slot"],"mappings":"AAAA,0HAAqB,8BAC2B,+CAsBvC,IAHHA,CAAAA,CAAOC,+BAAAA,CAAoC,CAAE,EAAA,CAAIC,CAAAA,CAAM,GAAA,CAAK,OAAA,CAAAC,CAAAA,CAAS,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAG9EC,6BAAAA,CAFWH,CAAUI,eAAAA,CAAOL,CAAAA,CAE3B,CAAU,GAAA,CAAKG,CAAAA,CAAe,GAAGD,CAAAA,CAAO,CACjD,CAAA,CAEDJ,CAAAA,CAAK,WAAA,CAAc,MAAA,CAAA,cAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-XWRE723Z.cjs","sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport { forwardRef, type HTMLAttributes } from 'react';\n\n/* -----------------------------------------------------------------------------\n * Component: Text\n * -------------------------------------------------------------------------- */\n\ntype TextElement = HTMLParagraphElement;\ninterface TextParagraphProps extends HTMLAttributes<HTMLParagraphElement> {\n as?: 'p';\n}\n\ninterface TextSpanProps extends HTMLAttributes<HTMLSpanElement> {\n as: 'span';\n}\n\ntype TextProps = (TextParagraphProps | TextSpanProps) & {\n asChild?: boolean;\n};\n\nconst Text = forwardRef<TextElement, TextProps>(({ as: Tag = 'p', asChild, ...props }, forwardedRef) => {\n const Component = asChild ? Slot : Tag;\n\n return <Component ref={forwardedRef} {...props} />;\n});\n\nText.displayName = 'Text';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Text, type TextProps };\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
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 _chunkKF7Y7B3Gcjs = require('./chunk-KF7Y7B3G.cjs');var _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _reactalertdialog = require('@radix-ui/react-alert-dialog'); var t = _interopRequireWildcard(_reactalertdialog);var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var v=t.Root,u= exports.b =t.Trigger,m= exports.c =_react.forwardRef.call(void 0, ({className:e,...i},l)=>_jsxruntime.jsx.call(void 0, t.Portal,{children:_jsxruntime.jsx.call(void 0, t.Overlay,{className:_chunkDD6AVCRHcjs.a.call(void 0, "fixed inset-0 z-50 grid place-items-center overflow-auto bg-black/80 p-4 sm:pb-12 sm:pt-8","data-[state=open]:animate-duration-200 data-[state=open]:animate-fade-in","data-[state=closed]:animate-duration-200 data-[state=closed]:animate-fade-out"),children:_jsxruntime.jsx.call(void 0, t.Content,{ref:l,className:_chunkDD6AVCRHcjs.a.call(void 0, "bg-background relative z-50 flex w-full max-w-lg flex-col rounded-lg border shadow-lg","data-[state=open]:animate-in data-[state=open]:zoom-in-95 data-[state=open]:animate-duration-200 data-[state=open]:fade-in","data-[state=closed]:zoom-out-95 data-[state=closed]:animate-duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out",e),...i})})}));m.displayName=t.Content.displayName;function C({className:e,...i}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunkDD6AVCRHcjs.a.call(void 0, "flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left",e),...i})}function T({className:e,...i}){return _jsxruntime.jsx.call(void 0, "main",{className:_chunkDD6AVCRHcjs.a.call(void 0, "overflow-auto px-6 py-2",e),...i})}function x({className:e,...i}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunkDD6AVCRHcjs.a.call(void 0, "flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end",e),...i})}var g=_react.forwardRef.call(void 0, ({className:e,...i},l)=>_jsxruntime.jsx.call(void 0, t.Title,{ref:l,className:_chunkDD6AVCRHcjs.a.call(void 0, "text-lg font-semibold leading-none tracking-tight",e),...i}));g.displayName=t.Title.displayName;var A=_react.forwardRef.call(void 0, ({className:e,...i},l)=>_jsxruntime.jsx.call(void 0, t.Description,{ref:l,className:_chunkDD6AVCRHcjs.a.call(void 0, "text-muted-foreground text-sm",e),...i}));A.displayName=t.Description.displayName;var D=_react.forwardRef.call(void 0, ({className:e,size:i,variant:l,...n},p)=>_jsxruntime.jsx.call(void 0, t.Action,{ref:p,className:_chunkKF7Y7B3Gcjs.a.call(void 0, {className:e,size:i,variant:l}),...n}));D.displayName=t.Action.displayName;var P=_react.forwardRef.call(void 0, ({className:e,size:i,variant:l="outline",...n},p)=>_jsxruntime.jsx.call(void 0, t.Cancel,{ref:p,className:_chunkKF7Y7B3Gcjs.a.call(void 0, {className:e,size:i,variant:l}),...n}));P.displayName=t.Cancel.displayName;exports.a = v; exports.b = u; exports.c = m; exports.d = C; exports.e = T; exports.f = x; exports.g = g; exports.h = A; exports.i = D; exports.j = P;
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
2
|
+
//# sourceMappingURL=chunk-YB2W76VX.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-E6I2SA6E.cjs","../src/components/alert-dialog.tsx"],"names":["AlertDialog","AlertDialogTrigger","AlertDialogContent","forwardRef","className","props","forwardedRef","jsx","cn","AlertDialogHeader","AlertDialogBody","AlertDialogFooter","AlertDialogTitle","AlertD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C,CAAA,CAAA,MAAA,CAAO,WAAA,CAa5D,IAAMI,CAAAA,CAAoBf,+BAAAA,CACvB,CAAE,SAAA,CAAAC,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,qJAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-E6I2SA6E.cjs","sourcesContent":[null,"import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';\nimport {\n type ComponentProps,\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n type HTMLAttributes,\n type JSX,\n} from 'react';\n\nimport { cn } from '@/lib/utils';\nimport { buttonVariants, type ButtonVariantsProps } from '@/styles/button-variants';\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialog\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogProps = ComponentProps<typeof AlertDialogPrimitive.Root>;\nconst AlertDialog = AlertDialogPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTrigger\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTriggerProps = ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Trigger>;\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogContent\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogContentElement = ComponentRef<typeof AlertDialogPrimitive.Content>;\ntype AlertDialogContentProps = ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>;\n\nconst AlertDialogContent = forwardRef<AlertDialogContentElement, AlertDialogContentProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Portal>\n <AlertDialogPrimitive.Overlay\n className={cn(\n 'fixed inset-0 z-50 grid place-items-center overflow-auto bg-black/80 p-4 sm:pb-12 sm:pt-8',\n 'data-[state=open]:animate-duration-200 data-[state=open]:animate-fade-in',\n 'data-[state=closed]:animate-duration-200 data-[state=closed]:animate-fade-out',\n )}\n >\n <AlertDialogPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-background relative z-50 flex w-full max-w-lg flex-col rounded-lg border shadow-lg',\n 'data-[state=open]:animate-in data-[state=open]:zoom-in-95 data-[state=open]:animate-duration-200 data-[state=open]:fade-in',\n 'data-[state=closed]:zoom-out-95 data-[state=closed]:animate-duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out',\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 = HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogHeader({ className, ...props }: AlertDialogHeaderProps): 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 = HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogBody({ className, ...props }: AlertDialogBodyProps): 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 = HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogFooter({ className, ...props }: AlertDialogFooterProps): 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 = ComponentRef<typeof AlertDialogPrimitive.Title>;\ntype AlertDialogTitleProps = ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>;\n\nconst AlertDialogTitle = 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 = ComponentRef<typeof AlertDialogPrimitive.Description>;\ntype AlertDialogDescriptionProps = ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>;\n\nconst AlertDialogDescription = 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 = ComponentRef<typeof AlertDialogPrimitive.Action>;\n\ninterface AlertDialogActionProps extends ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action> {\n size?: ButtonVariantsProps['size'];\n variant?: ButtonVariantsProps['variant'];\n}\n\nconst AlertDialogAction = 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 = ComponentRef<typeof AlertDialogPrimitive.Cancel>;\n\ninterface AlertDialogCancelProps extends ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel> {\n size?: ButtonVariantsProps['size'];\n variant?: ButtonVariantsProps['variant'];\n}\n\nconst AlertDialogCancel = 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 AlertDialogAction,\n AlertDialogBody,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogFooter,\n AlertDialogHeader,\n AlertDialogTitle,\n AlertDialogTrigger,\n type AlertDialogActionProps,\n type AlertDialogBodyProps,\n type AlertDialogCancelProps,\n type AlertDialogContentProps,\n type AlertDialogDescriptionProps,\n type AlertDialogFooterProps,\n type AlertDialogHeaderProps,\n type AlertDialogProps,\n type AlertDialogTitleProps,\n type AlertDialogTriggerProps,\n};\n"]}
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-YB2W76VX.cjs","../src/components/alert-dialog.tsx"],"names":["AlertDialog","AlertDialogTrigger","AlertDialogContent","forwardRef","className","props","forwardedRef","jsx","cn","AlertDialogHeader","AlertDialogBody","AlertDialogFooter","AlertDialogTitle","AlertDialogDesc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AAA,CAAA,MAAA,CAAO,WAAA,CAY5D,IAAMI,CAAAA,CAAoBf,+BAAAA,CACvB,CAAE,SAAA,CAAAC,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,qJAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-YB2W76VX.cjs","sourcesContent":[null,"import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';\nimport {\n type ComponentProps,\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n type HTMLAttributes,\n type JSX,\n} from 'react';\n\nimport { cn } from '@/lib/utils';\nimport { buttonVariants, type ButtonVariantsProps } from '@/styles/button-variants';\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialog\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogProps = ComponentProps<typeof AlertDialogPrimitive.Root>;\nconst AlertDialog = AlertDialogPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTrigger\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTriggerProps = ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Trigger>;\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogContent\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogContentElement = ComponentRef<typeof AlertDialogPrimitive.Content>;\ntype AlertDialogContentProps = ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>;\n\nconst AlertDialogContent = forwardRef<AlertDialogContentElement, AlertDialogContentProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Portal>\n <AlertDialogPrimitive.Overlay\n className={cn(\n 'fixed inset-0 z-50 grid place-items-center overflow-auto bg-black/80 p-4 sm:pb-12 sm:pt-8',\n 'data-[state=open]:animate-duration-200 data-[state=open]:animate-fade-in',\n 'data-[state=closed]:animate-duration-200 data-[state=closed]:animate-fade-out',\n )}\n >\n <AlertDialogPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-background relative z-50 flex w-full max-w-lg flex-col rounded-lg border shadow-lg',\n 'data-[state=open]:animate-in data-[state=open]:zoom-in-95 data-[state=open]:animate-duration-200 data-[state=open]:fade-in',\n 'data-[state=closed]:zoom-out-95 data-[state=closed]:animate-duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out',\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 = HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogHeader({ className, ...props }: AlertDialogHeaderProps): 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 = HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogBody({ className, ...props }: AlertDialogBodyProps): 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 = HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogFooter({ className, ...props }: AlertDialogFooterProps): 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 = ComponentRef<typeof AlertDialogPrimitive.Title>;\ntype AlertDialogTitleProps = ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>;\n\nconst AlertDialogTitle = 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 = ComponentRef<typeof AlertDialogPrimitive.Description>;\ntype AlertDialogDescriptionProps = ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>;\n\nconst AlertDialogDescription = 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 = ComponentRef<typeof AlertDialogPrimitive.Action>;\ninterface AlertDialogActionProps extends ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action> {\n size?: ButtonVariantsProps['size'];\n variant?: ButtonVariantsProps['variant'];\n}\n\nconst AlertDialogAction = 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 = ComponentRef<typeof AlertDialogPrimitive.Cancel>;\ninterface AlertDialogCancelProps extends ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel> {\n size?: ButtonVariantsProps['size'];\n variant?: ButtonVariantsProps['variant'];\n}\n\nconst AlertDialogCancel = 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 AlertDialogAction,\n AlertDialogBody,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogFooter,\n AlertDialogHeader,\n AlertDialogTitle,\n AlertDialogTrigger,\n type AlertDialogActionProps,\n type AlertDialogBodyProps,\n type AlertDialogCancelProps,\n type AlertDialogContentProps,\n type AlertDialogDescriptionProps,\n type AlertDialogFooterProps,\n type AlertDialogHeaderProps,\n type AlertDialogProps,\n type AlertDialogTitleProps,\n type AlertDialogTriggerProps,\n};\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
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 _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _reactdropdownmenu = require('@radix-ui/react-dropdown-menu'); var e = _interopRequireWildcard(_reactdropdownmenu);var _reacticons = require('@radix-ui/react-icons');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var h=e.Root,R= exports.b =e.Trigger,S= exports.c =e.Group,N= exports.d =e.Sub,T= exports.e =e.RadioGroup,w= exports.f =_react.forwardRef.call(void 0, ({children:o,className:t,inset:n,...p},d)=>_jsxruntime.jsxs.call(void 0, e.SubTrigger,{ref:d,className:_chunkDD6AVCRHcjs.a.call(void 0, "gap-x-2 px-3 py-1.5","flex cursor-pointer select-none items-center rounded text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",n&&"pl-8",t),...p,children:[o,_jsxruntime.jsx.call(void 0, _reacticons.ChevronRightIcon,{className:"ml-auto size-4"})]}));w.displayName=e.SubTrigger.displayName;var M=_react.forwardRef.call(void 0, ({className:o,...t},n)=>_jsxruntime.jsx.call(void 0, e.Portal,{children:_jsxruntime.jsx.call(void 0, e.SubContent,{ref:n,className:_chunkDD6AVCRHcjs.a.call(void 0, "bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md","data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95","data-[state=open]:data-[side=top]:slide-in-from-bottom-2","data-[state=open]:data-[side=right]:slide-in-from-left-2","data-[state=open]:data-[side=bottom]:slide-in-from-top-2","data-[state=open]:data-[side=left]:slide-in-from-right-2","data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95","data-[state=closed]:data-[side=top]:slide-out-to-bottom-2","data-[state=closed]:data-[side=right]:slide-out-to-left-2","data-[state=closed]:data-[side=bottom]:slide-out-to-top-2","data-[state=closed]:data-[side=left]:slide-out-to-right-2",o),...t})}));M.displayName=e.SubContent.displayName;var D=_react.forwardRef.call(void 0, ({className:o,sideOffset:t=6,...n},p)=>_jsxruntime.jsx.call(void 0, e.Portal,{children:_jsxruntime.jsx.call(void 0, e.Content,{ref:p,className:_chunkDD6AVCRHcjs.a.call(void 0, "bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md","data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95","data-[state=open]:data-[side=top]:slide-in-from-bottom-2","data-[state=open]:data-[side=right]:slide-in-from-left-2","data-[state=open]:data-[side=bottom]:slide-in-from-top-2","data-[state=open]:data-[side=left]:slide-in-from-right-2","data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95","data-[state=closed]:data-[side=top]:slide-out-to-bottom-2","data-[state=closed]:data-[side=right]:slide-out-to-left-2","data-[state=closed]:data-[side=bottom]:slide-out-to-top-2","data-[state=closed]:data-[side=left]:slide-out-to-right-2",o),sideOffset:t,...n})}));D.displayName=e.Content.displayName;var c=_react.forwardRef.call(void 0, ({className:o,inset:t,...n},p)=>_jsxruntime.jsx.call(void 0, e.Item,{ref:p,className:_chunkDD6AVCRHcjs.a.call(void 0, "gap-x-2 px-3 py-1.5","relative flex cursor-pointer select-none items-center rounded text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","aria-disabled:pointer-events-none aria-disabled:opacity-50",t&&"pl-8",o),...n}));c.displayName=e.Item.displayName;var P=_react.forwardRef.call(void 0, ({children:o,className:t,checked:n,...p},d)=>_jsxruntime.jsxs.call(void 0, e.CheckboxItem,{ref:d,checked:n,className:_chunkDD6AVCRHcjs.a.call(void 0, "gap-x-2 px-3 py-1.5","pl-8","relative flex cursor-pointer select-none items-center rounded text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","aria-disabled:pointer-events-none aria-disabled:opacity-50",t),...p,children:[_jsxruntime.jsx.call(void 0, "span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:_jsxruntime.jsx.call(void 0, e.ItemIndicator,{children:_jsxruntime.jsx.call(void 0, _reacticons.CheckIcon,{className:"size-4"})})}),o]}));P.displayName=e.CheckboxItem.displayName;var f=_react.forwardRef.call(void 0, ({children:o,className:t,...n},p)=>_jsxruntime.jsxs.call(void 0, e.RadioItem,{ref:p,className:_chunkDD6AVCRHcjs.a.call(void 0, "gap-x-2 px-3 py-1.5","pl-8","relative flex cursor-pointer select-none items-center rounded text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","aria-disabled:pointer-events-none aria-disabled:opacity-50",t),...n,children:[_jsxruntime.jsx.call(void 0, "span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:_jsxruntime.jsx.call(void 0, e.ItemIndicator,{children:_jsxruntime.jsx.call(void 0, _reacticons.DotFilledIcon,{className:"size-4 fill-current"})})}),o]}));f.displayName=e.RadioItem.displayName;var y=_react.forwardRef.call(void 0, ({className:o,inset:t,...n},p)=>_jsxruntime.jsx.call(void 0, e.Label,{ref:p,className:_chunkDD6AVCRHcjs.a.call(void 0, "gap-x-2 px-3 py-1.5","flex items-center text-sm font-semibold",t&&"pl-8",o),...n}));y.displayName=e.Label.displayName;var b=_react.forwardRef.call(void 0, ({className:o,...t},n)=>_jsxruntime.jsx.call(void 0, e.Separator,{ref:n,className:_chunkDD6AVCRHcjs.a.call(void 0, "bg-muted mx-2 my-1 h-px",o),...t}));b.displayName=e.Separator.displayName;function E({className:o,...t}){return _jsxruntime.jsx.call(void 0, "span",{className:_chunkDD6AVCRHcjs.a.call(void 0, "ml-auto text-xs tracking-widest opacity-60",o),...t})}var v=_react.forwardRef.call(void 0, ({className:o,...t},n)=>_jsxruntime.jsx.call(void 0, e.Arrow,{ref:n,className:_chunkDD6AVCRHcjs.a.call(void 0, "fill-popover",o),...t}));v.displayName=e.Arrow.displayName;exports.a = h; exports.b = R; exports.c = S; exports.d = N; exports.e = T; exports.f = w; exports.g = M; exports.h = D; exports.i = c; exports.j = P; exports.k = f; exports.l = y; exports.m = b; exports.n = E; exports.o = v;
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
2
|
+
//# sourceMappingURL=chunk-YORY32TX.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-YORY32TX.cjs","../src/components/dropdown-menu.tsx"],"names":["DropdownMenu","DropdownMenuTrigger","DropdownMenuGroup","DropdownMenuSub","DropdownMenuRadioGroup","DropdownMenuSubTrigger","forwardRef","children","className","inset","props","forwardedRef","jsxs","cn","jsx","ChevronRightIcon","DropdownMenuSubContent","DropdownMenuContent","sideOffset","DropdownMenuItem","DropdownMenuCheckboxItem","checked","CheckIcon","DropdownMenuRadioItem","DotFilledIcon","DropdownMenuLabel","DropdownMenuSeparator","DropdownMenuShortcut","DropdownMenuArrow"],"mappings":"AAAA,mZAAwC,uHCAD,mDACoB,8BAQpD,+CAkDH,IAzCEA,CAAAA,CAAqC,CAAA,CAAA,IAAA,CAOrCC,CAAAA,aAA4C,CAAA,CAAA,OAAA,CAO5CC,CAAAA,aAA0C,CAAA,CAAA,KAAA,CAO1CC,CAAAA,aAAwC,CAAA,CAAA,GAAA,CAOxCC,CAAAA,aAA+C,CAAA,CAAA,UAAA,CAW/CC,CAAAA,aAAyBC,+BAAAA,CAC5B,CAAE,QAAA,CAAAC,CAAAA,CAAU,SAAA,CAAAC,CAAAA,CAAW,KAAA,CAAAC,CAAAA,CAAO,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACzCC,8BAAAA,CAAuB,CAAA,UAAA,CAAtB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,qBACT,CACA,8DAAA,CACA,iEAAA,CACA,sEAAA,CACAJ,CAAAA,EAAS,MAAA,CACTD,CACF,CAAA,CACC,GAAGE,CAAAA,CAEH,QAAA,CAAA,CAAAH,CAAAA,CACDO,6BAAAA,4BAACC,CAAA,CAAiB,SAAA,CAAU,gBAAA,CAAiB,CAAA,CAAA,CAC/C,CAEJ,CAAA,CAEAV,CAAAA,CAAuB,WAAA,CAAoC,CAAA,CAAA,UAAA,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AAqB,CAAE,SAAA,CAAAnB,CAAAA,CAAW,GAAGE,CAAM,CAAA,CAA2C,CAC7F,OAAOI,6BAAAA,MAAC,CAAA,CAAK,SAAA,CAAWD,iCAAAA,4CAAG,CAA8CL,CAAS,CAAA,CAAI,GAAGE,CAAAA,CAAO,CAClG,CASA,IAAMkB,CAAAA,CAAoBtB,+BAAAA,CACvB,CAAE,SAAA,CAAAE,CAAAA,CAAW,GAAGE,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBG,6BAAAA,CAAuB,CAAA,KAAA,CAAtB,CAA4B,GAAA,CAAKH,CAAAA,CAAc,SAAA,CAAWE,iCAAAA,cAAG,CAAgBL,CAAS,CAAA,CAAI,GAAGE,CAAAA,CAAO,CAEzG,CAAA,CAEAkB,CAAAA,CAAkB,WAAA,CAAoC,CAAA,CAAA,KAAA,CAAM,WAAA,CAAA,gOAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-YORY32TX.cjs","sourcesContent":[null,"import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';\nimport { CheckIcon, ChevronRightIcon, DotFilledIcon } from '@radix-ui/react-icons';\nimport {\n type ComponentProps,\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n type HTMLAttributes,\n type JSX,\n} from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenu\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuProps = ComponentProps<typeof DropdownMenuPrimitive.Root>;\nconst DropdownMenu = DropdownMenuPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuTrigger\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuTriggerProps = ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Trigger>;\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuGroup\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuGroupProps = ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Group>;\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuSub\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuSubProps = ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Sub>;\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuSubTrigger\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuRadioGroupProps = ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioGroup>;\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuSubTrigger\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuSubTriggerElement = ComponentRef<typeof DropdownMenuPrimitive.SubTrigger>;\ninterface DropdownMenuSubTriggerProps extends ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> {\n inset?: boolean;\n}\n\nconst DropdownMenuSubTrigger = forwardRef<DropdownMenuSubTriggerElement, DropdownMenuSubTriggerProps>(\n ({ children, className, inset, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.SubTrigger\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'flex cursor-pointer select-none items-center rounded text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'data-[state=open]:bg-accent data-[state=open]:text-accent-foreground',\n inset && 'pl-8',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRightIcon className=\"ml-auto size-4\" />\n </DropdownMenuPrimitive.SubTrigger>\n ),\n);\n\nDropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuSubContent\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuSubContentProps = DropdownMenuPrimitive.DropdownMenuSubContentProps;\n\nconst DropdownMenuSubContent = forwardRef<\n ComponentRef<typeof DropdownMenuPrimitive.SubContent>,\n DropdownMenuSubContentProps\n>(({ className, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.SubContent\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md',\n 'data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95',\n 'data-[state=open]:data-[side=top]:slide-in-from-bottom-2',\n 'data-[state=open]:data-[side=right]:slide-in-from-left-2',\n 'data-[state=open]:data-[side=bottom]:slide-in-from-top-2',\n 'data-[state=open]:data-[side=left]:slide-in-from-right-2',\n 'data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95',\n 'data-[state=closed]:data-[side=top]:slide-out-to-bottom-2',\n 'data-[state=closed]:data-[side=right]:slide-out-to-left-2',\n 'data-[state=closed]:data-[side=bottom]:slide-out-to-top-2',\n 'data-[state=closed]:data-[side=left]:slide-out-to-right-2',\n className,\n )}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n));\n\nDropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuContent\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuContentElement = ComponentRef<typeof DropdownMenuPrimitive.Content>;\ntype DropdownMenuContentProps = ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>;\n\nconst DropdownMenuContent = forwardRef<DropdownMenuContentElement, DropdownMenuContentProps>(\n ({ className, sideOffset = 6, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md',\n 'data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95',\n 'data-[state=open]:data-[side=top]:slide-in-from-bottom-2',\n 'data-[state=open]:data-[side=right]:slide-in-from-left-2',\n 'data-[state=open]:data-[side=bottom]:slide-in-from-top-2',\n 'data-[state=open]:data-[side=left]:slide-in-from-right-2',\n 'data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95',\n 'data-[state=closed]:data-[side=top]:slide-out-to-bottom-2',\n 'data-[state=closed]:data-[side=right]:slide-out-to-left-2',\n 'data-[state=closed]:data-[side=bottom]:slide-out-to-top-2',\n 'data-[state=closed]:data-[side=left]:slide-out-to-right-2',\n className,\n )}\n sideOffset={sideOffset}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n ),\n);\n\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuItem\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuItemElement = ComponentRef<typeof DropdownMenuPrimitive.Item>;\ninterface DropdownMenuItemProps extends ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> {\n inset?: boolean;\n}\n\nconst DropdownMenuItem = forwardRef<DropdownMenuItemElement, DropdownMenuItemProps>(\n ({ className, inset, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'relative flex cursor-pointer select-none items-center rounded text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n ),\n);\n\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuCheckboxItem\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuCheckboxItemElement = ComponentRef<typeof DropdownMenuPrimitive.CheckboxItem>;\ntype DropdownMenuCheckboxItemProps = ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>;\n\nconst DropdownMenuCheckboxItem = forwardRef<DropdownMenuCheckboxItemElement, DropdownMenuCheckboxItemProps>(\n ({ children, className, checked, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.CheckboxItem\n ref={forwardedRef}\n checked={checked}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'pl-8',\n 'relative flex cursor-pointer select-none items-center rounded text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex size-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n ),\n);\n\nDropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuRadioItem\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuRadioItemElement = ComponentRef<typeof DropdownMenuPrimitive.RadioItem>;\ntype DropdownMenuRadioItemProps = ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>;\n\nconst DropdownMenuRadioItem = forwardRef<DropdownMenuRadioItemElement, DropdownMenuRadioItemProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.RadioItem\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'pl-8',\n 'relative flex cursor-pointer select-none items-center rounded text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex size-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <DotFilledIcon className=\"size-4 fill-current\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n ),\n);\n\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuLabel\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuLabelElement = ComponentRef<typeof DropdownMenuPrimitive.Label>;\n\ninterface DropdownMenuLabelProps extends ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> {\n inset?: boolean;\n}\n\nconst DropdownMenuLabel = forwardRef<DropdownMenuLabelElement, DropdownMenuLabelProps>(\n ({ className, inset, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.Label\n ref={forwardedRef}\n className={cn('gap-x-2 px-3 py-1.5', 'flex items-center text-sm font-semibold', inset && 'pl-8', className)}\n {...props}\n />\n ),\n);\n\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuSeparator\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuSeparatorElement = ComponentRef<typeof DropdownMenuPrimitive.Separator>;\ntype DropdownMenuSeparatorProps = ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>;\n\nconst DropdownMenuSeparator = forwardRef<DropdownMenuSeparatorElement, DropdownMenuSeparatorProps>(\n ({ className, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.Separator\n ref={forwardedRef}\n className={cn('bg-muted mx-2 my-1 h-px', className)}\n {...props}\n />\n ),\n);\n\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuShortcut\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuShortcutProps = HTMLAttributes<HTMLSpanElement>;\n\nfunction DropdownMenuShortcut({ className, ...props }: DropdownMenuShortcutProps): JSX.Element {\n return <span className={cn('ml-auto text-xs tracking-widest opacity-60', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuArrow\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuArrowElement = ComponentRef<typeof DropdownMenuPrimitive.Arrow>;\ntype DropdownMenuArrowProps = DropdownMenuPrimitive.DropdownMenuArrowProps;\n\nconst DropdownMenuArrow = forwardRef<DropdownMenuArrowElement, DropdownMenuArrowProps>(\n ({ className, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.Arrow ref={forwardedRef} className={cn('fill-popover', className)} {...props} />\n ),\n);\n\nDropdownMenuArrow.displayName = DropdownMenuPrimitive.Arrow.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n DropdownMenu,\n DropdownMenuArrow,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuRadioGroup,\n DropdownMenuRadioItem,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n type DropdownMenuArrowProps,\n type DropdownMenuCheckboxItemProps,\n type DropdownMenuContentProps,\n type DropdownMenuGroupProps,\n type DropdownMenuItemProps,\n type DropdownMenuLabelProps,\n type DropdownMenuProps,\n type DropdownMenuRadioGroupProps,\n type DropdownMenuRadioItemProps,\n type DropdownMenuSeparatorProps,\n type DropdownMenuShortcutProps,\n type DropdownMenuSubContentProps,\n type DropdownMenuSubProps,\n type DropdownMenuSubTriggerProps,\n type DropdownMenuTriggerProps,\n};\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{a as r}from"./chunk-VPYH6JWS.js";import*as e from"@radix-ui/react-context-menu";import{CheckIcon as m,ChevronRightIcon as C,DotFilledIcon as x}from"@radix-ui/react-icons";import{forwardRef as p}from"react";import{jsx as i,jsxs as u}from"react/jsx-runtime";var N=e.Root,E=e.Trigger,T=e.Group,w=e.Sub,k=e.RadioGroup,d=p(({children:t,className:o,inset:n,...a},s)=>u(e.SubTrigger,{ref:s,className:r("gap-x-2 px-3 py-1.5","flex cursor-pointer select-none items-center rounded text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",n&&"pl-8",o),...a,children:[t,i(C,{className:"ml-auto size-4"})]}));d.displayName=e.SubTrigger.displayName;var l=p(({className:t,...o},n)=>i(e.Portal,{children:i(e.SubContent,{ref:n,className:r("bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md","data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95","data-[state=open]:data-[side=top]:slide-in-from-bottom-2","data-[state=open]:data-[side=right]:slide-in-from-left-2","data-[state=open]:data-[side=bottom]:slide-in-from-top-2","data-[state=open]:data-[side=left]:slide-in-from-right-2","data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95","data-[state=closed]:data-[side=top]:slide-out-to-bottom-2","data-[state=closed]:data-[side=right]:slide-out-to-left-2","data-[state=closed]:data-[side=bottom]:slide-out-to-top-2","data-[state=closed]:data-[side=left]:slide-out-to-right-2",t),...o})}));l.displayName=e.SubContent.displayName;var M=p(({className:t,...o},n)=>i(e.Portal,{children:i(e.Content,{ref:n,className:r("bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md","data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95","data-[state=open]:data-[side=top]:slide-in-from-bottom-2","data-[state=open]:data-[side=right]:slide-in-from-left-2","data-[state=open]:data-[side=bottom]:slide-in-from-top-2","data-[state=open]:data-[side=left]:slide-in-from-right-2",t),...o})}));M.displayName=e.Content.displayName;var c=p(({className:t,inset:o,...n},a)=>i(e.Item,{ref:a,className:r("gap-x-2 px-3 py-1.5","relative flex cursor-pointer select-none items-center rounded text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","aria-disabled:pointer-events-none aria-disabled:opacity-50",o&&"pl-8",t),...n}));c.displayName=e.Item.displayName;var P=p(({children:t,className:o,checked:n,...a},s)=>u(e.CheckboxItem,{ref:s,checked:n,className:r("gap-x-2 px-3 py-1.5","pl-8","relative flex cursor-pointer select-none items-center rounded text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","aria-disabled:pointer-events-none aria-disabled:opacity-50",o),...a,children:[i("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:i(e.ItemIndicator,{children:i(m,{className:"size-4"})})}),t]}));P.displayName=e.CheckboxItem.displayName;var f=p(({children:t,className:o,...n},a)=>u(e.RadioItem,{ref:a,className:r("gap-x-2 px-3 py-1.5","pl-8","relative flex cursor-pointer select-none items-center rounded text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","aria-disabled:pointer-events-none aria-disabled:opacity-50",o),...n,children:[i("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:i(e.ItemIndicator,{children:i(x,{className:"size-4 fill-current"})})}),t]}));f.displayName=e.RadioItem.displayName;var y=p(({className:t,inset:o,...n},a)=>i(e.Label,{ref:a,className:r("gap-x-2 px-3 py-1.5","flex items-center text-sm font-semibold",o&&"pl-8",t),...n}));y.displayName=e.Label.displayName;var b=p(({className:t,...o},n)=>i(e.Separator,{ref:n,className:r("bg-muted mx-2 my-1 h-px",t),...o}));b.displayName=e.Separator.displayName;function L({className:t,...o}){return i("span",{className:r("text-muted-foreground ml-auto text-xs tracking-widest",t),...o})}var v=p(({className:t,...o},n)=>i(e.Arrow,{ref:n,className:r("fill-popover",t),...o}));v.displayName=e.Arrow.displayName;export{N as a,E as b,T as c,w as d,k as e,d as f,l as g,M as h,c as i,P as j,f as k,y as l,b as m,L as n,v as o};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
2
|
+
//# sourceMappingURL=chunk-YTSBANYY.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/context-menu.tsx"],"names":["ContextMenuPrimitive","CheckIcon","ChevronRightIcon","DotFilledIcon","forwardRef","jsx","jsxs","ContextMenu","ContextMenuTrigger","ContextMenuGroup","ContextMenuSub","ContextMenuRadioGroup","ContextMenuSubTrigger","children","className","inset","props","forwardedRef","cn","ContextMenuSubContent","ContextMenuContent","ContextMenuItem","ContextMenuCheckboxItem","checked","ContextMenuRadioItem","ContextMenuLabel","ContextMenuSeparator","ContextMenuShortcut","ContextMenuArrow"],"mappings":"wCAAA,UAAYA,MAA0B,+BACtC,OAAS,aAAAC,EAAW,oBAAAC,EAAkB,iBAAAC,MAAqB,wBAC3D,OAIE,cAAAC,MAGK,QAkDH,OAaE,OAAAC,EAbF,QAAAC,MAAA,oBAzCJ,IAAMC,EAAmC,OAOnCC,EAA0C,UAO1CC,EAAwC,QAOxCC,EAAsC,MAOtCC,EAA6C,aAW7CC,EAAwBR,EAC5B,CAAC,CAAE,SAAAS,EAAU,UAAAC,EAAW,MAAAC,EAAO,GAAGC,CAAM,EAAGC,IACzCX,EAAsB,aAArB,CACC,IAAKW,EACL,UAAWC,EACT,sBACA,+DACA,kEACA,uEACAH,GAAS,OACTD,CACF,EACC,GAAGE,EAEH,UAAAH,EACDR,EAACH,EAAA,CAAiB,UAAU,iBAAiB,GAC/C,CAEJ,EAEAU,EAAsB,YAAmC,aAAW,YASpE,IAAMO,EAAwBf,EAC5B,CAAC,CAAE,UAAAU,EAAW,GAAGE,CAAM,EAAGC,IACxBZ,EAAsB,SAArB,CACC,SAAAA,EAAsB,aAArB,CACC,IAAKY,EACL,UAAWC,EACT,mFACA,sFACA,2DACA,2DACA,2DACA,2DACA,+FACA,4DACA,4DACA,4DACA,4DACAJ,CACF,EACC,GAAGE,EACN,EACF,CAEJ,EAEAG,EAAsB,YAAmC,aAAW,YASpE,IAAMC,EAAqBhB,EACzB,CAAC,CAAE,UAAAU,EAAW,GAAGE,CAAM,EAAGC,IACxBZ,EAAsB,SAArB,CACC,SAAAA,EAAsB,UAArB,CACC,IAAKY,EACL,UAAWC,EACT,mFACA,sFACA,2DACA,2DACA,2DACA,2DACAJ,CACF,EACC,GAAGE,EACN,EACF,CAEJ,EAEAI,EAAmB,YAAmC,UAAQ,Y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U,EAAW,GAAGE,CAAM,EAAGC,IACxBZ,EAAsB,YAArB,CACC,IAAKY,EACL,UAAWC,EAAG,0BAA2BJ,CAAS,EACjD,GAAGE,EACN,CAEJ,EAEAU,EAAqB,YAAmC,YAAU,YAQlE,SAASC,EAAoB,CAAE,UAAAb,EAAW,GAAGE,CAAM,EAA0C,CAC3F,OAAOX,EAAC,QAAK,UAAWa,EAAG,wDAAyDJ,CAAS,EAAI,GAAGE,EAAO,CAC7G,CASA,IAAMY,EAAmBxB,EACvB,CAAC,CAAE,UAAAU,EAAW,GAAGE,CAAM,EAAGC,IACxBZ,EAAsB,QAArB,CAA2B,IAAKY,EAAc,UAAWC,EAAG,eAAgBJ,CAAS,EAAI,GAAGE,EAAO,CAExG,EAEAY,EAAiB,YAAmC,QAAM","sourcesContent":["import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';\nimport { CheckIcon, ChevronRightIcon, DotFilledIcon } from '@radix-ui/react-icons';\nimport {\n type ComponentProps,\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n type HTMLAttributes,\n type JSX,\n} from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenu\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuProps = ComponentProps<typeof ContextMenuPrimitive.Root>;\nconst ContextMenu = ContextMenuPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuTrigger\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuTriggerProps = ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Trigger>;\nconst ContextMenuTrigger = ContextMenuPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuGroup\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuGroupProps = ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Group>;\nconst ContextMenuGroup = ContextMenuPrimitive.Group;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuSub\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuSubProps = ComponentProps<typeof ContextMenuPrimitive.Sub>;\nconst ContextMenuSub = ContextMenuPrimitive.Sub;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuRadioGroup\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuRadioGroupProps = ComponentPropsWithoutRef<typeof ContextMenuPrimitive.RadioGroup>;\nconst ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuSubTrigger\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuSubTriggerElement = ComponentRef<typeof ContextMenuPrimitive.SubTrigger>;\ninterface ContextMenuSubTriggerProps extends ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubTrigger> {\n inset?: boolean;\n}\n\nconst ContextMenuSubTrigger = forwardRef<ContextMenuSubTriggerElement, ContextMenuSubTriggerProps>(\n ({ children, className, inset, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.SubTrigger\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'flex cursor-pointer select-none items-center rounded text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'data-[state=open]:bg-accent data-[state=open]:text-accent-foreground',\n inset && 'pl-8',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRightIcon className=\"ml-auto size-4\" />\n </ContextMenuPrimitive.SubTrigger>\n ),\n);\n\nContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuSubContent\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuSubContentElement = ComponentRef<typeof ContextMenuPrimitive.SubContent>;\ntype ContextMenuSubContentProps = ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubContent>;\n\nconst ContextMenuSubContent = forwardRef<ContextMenuSubContentElement, ContextMenuSubContentProps>(\n ({ className, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.Portal>\n <ContextMenuPrimitive.SubContent\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md',\n 'data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95',\n 'data-[state=open]:data-[side=top]:slide-in-from-bottom-2',\n 'data-[state=open]:data-[side=right]:slide-in-from-left-2',\n 'data-[state=open]:data-[side=bottom]:slide-in-from-top-2',\n 'data-[state=open]:data-[side=left]:slide-in-from-right-2',\n 'data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95',\n 'data-[state=closed]:data-[side=top]:slide-out-to-bottom-2',\n 'data-[state=closed]:data-[side=right]:slide-out-to-left-2',\n 'data-[state=closed]:data-[side=bottom]:slide-out-to-top-2',\n 'data-[state=closed]:data-[side=left]:slide-out-to-right-2',\n className,\n )}\n {...props}\n />\n </ContextMenuPrimitive.Portal>\n ),\n);\n\nContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuContent\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuContentElement = ComponentRef<typeof ContextMenuPrimitive.Content>;\ntype ContextMenuContentProps = ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Content>;\n\nconst ContextMenuContent = forwardRef<ContextMenuContentElement, ContextMenuContentProps>(\n ({ className, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.Portal>\n <ContextMenuPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md',\n 'data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95',\n 'data-[state=open]:data-[side=top]:slide-in-from-bottom-2',\n 'data-[state=open]:data-[side=right]:slide-in-from-left-2',\n 'data-[state=open]:data-[side=bottom]:slide-in-from-top-2',\n 'data-[state=open]:data-[side=left]:slide-in-from-right-2',\n className,\n )}\n {...props}\n />\n </ContextMenuPrimitive.Portal>\n ),\n);\n\nContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuItem\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuItemElement = ComponentRef<typeof ContextMenuPrimitive.Item>;\ninterface ContextMenuItemProps extends ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Item> {\n inset?: boolean;\n}\n\nconst ContextMenuItem = forwardRef<ContextMenuItemElement, ContextMenuItemProps>(\n ({ className, inset, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'relative flex cursor-pointer select-none items-center rounded text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n ),\n);\n\nContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuCheckboxItem\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuCheckboxItemElement = ComponentRef<typeof ContextMenuPrimitive.CheckboxItem>;\ntype ContextMenuCheckboxItemProps = ComponentPropsWithoutRef<typeof ContextMenuPrimitive.CheckboxItem>;\n\nconst ContextMenuCheckboxItem = forwardRef<ContextMenuCheckboxItemElement, ContextMenuCheckboxItemProps>(\n ({ children, className, checked, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.CheckboxItem\n ref={forwardedRef}\n checked={checked}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'pl-8',\n 'relative flex cursor-pointer select-none items-center rounded text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex size-3.5 items-center justify-center\">\n <ContextMenuPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </ContextMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </ContextMenuPrimitive.CheckboxItem>\n ),\n);\n\nContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuRadioItem\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuRadioItemElement = ComponentRef<typeof ContextMenuPrimitive.RadioItem>;\ntype ContextMenuRadioItemProps = ComponentPropsWithoutRef<typeof ContextMenuPrimitive.RadioItem>;\n\nconst ContextMenuRadioItem = forwardRef<ContextMenuRadioItemElement, ContextMenuRadioItemProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.RadioItem\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'pl-8',\n 'relative flex cursor-pointer select-none items-center rounded text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex size-3.5 items-center justify-center\">\n <ContextMenuPrimitive.ItemIndicator>\n <DotFilledIcon className=\"size-4 fill-current\" />\n </ContextMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </ContextMenuPrimitive.RadioItem>\n ),\n);\n\nContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuLabel\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuLabelElement = ComponentRef<typeof ContextMenuPrimitive.Label>;\ninterface ContextMenuLabelProps extends ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Label> {\n inset?: boolean;\n}\n\nconst ContextMenuLabel = forwardRef<ContextMenuLabelElement, ContextMenuLabelProps>(\n ({ className, inset, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.Label\n ref={forwardedRef}\n className={cn('gap-x-2 px-3 py-1.5', 'flex items-center text-sm font-semibold', inset && 'pl-8', className)}\n {...props}\n />\n ),\n);\n\nContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuSeparator\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuSeparatorElement = ComponentRef<typeof ContextMenuPrimitive.Separator>;\ntype ContextMenuSeparatorProps = ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Separator>;\n\nconst ContextMenuSeparator = forwardRef<ContextMenuSeparatorElement, ContextMenuSeparatorProps>(\n ({ className, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.Separator\n ref={forwardedRef}\n className={cn('bg-muted mx-2 my-1 h-px', className)}\n {...props}\n />\n ),\n);\n\nContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuShortcut\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuShortcutProps = HTMLAttributes<HTMLSpanElement>;\n\nfunction ContextMenuShortcut({ className, ...props }: ContextMenuShortcutProps): JSX.Element {\n return <span className={cn('text-muted-foreground ml-auto text-xs tracking-widest', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuArrow\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuArrowElement = ComponentRef<typeof ContextMenuPrimitive.Arrow>;\ntype ContextMenuArrowProps = ContextMenuPrimitive.ContextMenuArrowProps;\n\nconst ContextMenuArrow = forwardRef<ContextMenuArrowElement, ContextMenuArrowProps>(\n ({ className, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.Arrow ref={forwardedRef} className={cn('fill-popover', className)} {...props} />\n ),\n);\n\nContextMenuArrow.displayName = ContextMenuPrimitive.Arrow.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n ContextMenu,\n ContextMenuArrow,\n ContextMenuCheckboxItem,\n ContextMenuContent,\n ContextMenuGroup,\n ContextMenuItem,\n ContextMenuLabel,\n ContextMenuRadioGroup,\n ContextMenuRadioItem,\n ContextMenuSeparator,\n ContextMenuShortcut,\n ContextMenuSub,\n ContextMenuSubContent,\n ContextMenuSubTrigger,\n ContextMenuTrigger,\n type ContextMenuArrowProps,\n type ContextMenuCheckboxItemProps,\n type ContextMenuContentProps,\n type ContextMenuGroupProps,\n type ContextMenuItemProps,\n type ContextMenuLabelProps,\n type ContextMenuProps,\n type ContextMenuRadioGroupProps,\n type ContextMenuRadioItemProps,\n type ContextMenuSeparatorProps,\n type ContextMenuShortcutProps,\n type ContextMenuSubContentProps,\n type ContextMenuSubProps,\n type ContextMenuSubTriggerProps,\n type ContextMenuTriggerProps,\n};\n"]}
|
|
@@ -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 _chunk7XV37NAWcjs = require('./chunk-7XV37NAW.cjs');var
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
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 _chunk7XV37NAWcjs = require('./chunk-7XV37NAW.cjs');var _chunkFINPFQTZcjs = require('./chunk-FINPFQTZ.cjs');var _chunk7R4FFNVEcjs = require('./chunk-7R4FFNVE.cjs');var _input = require('@codefast-ui/input'); var t = _interopRequireWildcard(_input);var _reacticons = require('@radix-ui/react-icons');var _reactusecontrollablestate = require('@radix-ui/react-use-controllable-state');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var{root:V,input:x}=_chunk7XV37NAWcjs.a.call(void 0, ),b= exports.a =_react.forwardRef.call(void 0, ({className:u,inputSize:o,loaderPosition:l,loading:m,prefix:f,spinner:I,suffix:c,value:P,defaultValue:d,onChange:v,...n},h)=>{let[r,i]=_reactusecontrollablestate.useControllableState.call(void 0, {prop:P,defaultProp:d,onChange:v});return _jsxruntime.jsxs.call(void 0, t.Root,{className:V({inputSize:o,className:u}),loaderPosition:l,loading:m,prefix:f||_jsxruntime.jsx.call(void 0, _reacticons.MagnifyingGlassIcon,{}),spinner:I||_jsxruntime.jsx.call(void 0, _chunk7R4FFNVEcjs.a,{}),suffix:c,children:[_jsxruntime.jsx.call(void 0, t.Item,{ref:h,className:x({inputSize:o}),type:"search",value:r,onChange:y=>{i(y.target.value)},...n}),r?_jsxruntime.jsx.call(void 0, _chunkFINPFQTZcjs.a,{icon:!0,inside:!0,"aria-label":"Clear search",className:"rounded-full",disabled:n.disabled,size:o,suffix:_jsxruntime.jsx.call(void 0, _reacticons.Cross2Icon,{}),variant:"ghost",onClick:()=>{i("")}}):null]})});b.displayName="SearchInput";exports.a = b;
|
|
2
|
+
//# sourceMappingURL=chunk-Z7U5IONC.cjs.map
|