@codefast/ui 0.1.55 → 0.1.56
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-2D4K3VN5.js +2 -0
- package/dist/chunk-2D4K3VN5.js.map +1 -0
- package/dist/chunk-2ZV3RRUF.js +2 -0
- package/dist/chunk-2ZV3RRUF.js.map +1 -0
- package/dist/chunk-36JL64WE.js +2 -0
- package/dist/chunk-36JL64WE.js.map +1 -0
- package/dist/{chunk-EEDKRHHZ.cjs → chunk-4KP3LG6P.cjs} +2 -2
- package/dist/chunk-4KP3LG6P.cjs.map +1 -0
- package/dist/chunk-6AI2HSG6.js +2 -0
- package/dist/chunk-6AI2HSG6.js.map +1 -0
- package/dist/chunk-6IKJWYUQ.cjs +2 -0
- package/dist/chunk-6IKJWYUQ.cjs.map +1 -0
- package/dist/chunk-7D25EXRF.cjs +2 -0
- package/dist/chunk-7D25EXRF.cjs.map +1 -0
- package/dist/chunk-7G7GY6WB.cjs +2 -0
- package/dist/chunk-7G7GY6WB.cjs.map +1 -0
- package/dist/chunk-7GOKKSQ2.js +2 -0
- package/dist/chunk-7GOKKSQ2.js.map +1 -0
- package/dist/chunk-7M3I7GAI.cjs +2 -0
- package/dist/chunk-7M3I7GAI.cjs.map +1 -0
- package/dist/chunk-ANFCBS2Z.cjs +2 -0
- package/dist/chunk-ANFCBS2Z.cjs.map +1 -0
- package/dist/chunk-BBVYRCKN.cjs +2 -0
- package/dist/chunk-BBVYRCKN.cjs.map +1 -0
- package/dist/chunk-BP2FRPTA.js +2 -0
- package/dist/chunk-BP2FRPTA.js.map +1 -0
- package/dist/chunk-CFXQ7IR4.js +2 -0
- package/dist/chunk-CFXQ7IR4.js.map +1 -0
- package/dist/chunk-DRLZ27WH.cjs +2 -0
- package/dist/chunk-DRLZ27WH.cjs.map +1 -0
- package/dist/chunk-GAIGLFOT.js +2 -0
- package/dist/chunk-GAIGLFOT.js.map +1 -0
- package/dist/chunk-GBCWWLEX.js +2 -0
- package/dist/chunk-GBCWWLEX.js.map +1 -0
- package/dist/chunk-GCXQJEFZ.cjs +2 -0
- package/dist/chunk-GCXQJEFZ.cjs.map +1 -0
- package/dist/chunk-GDEO256Z.js +2 -0
- package/dist/chunk-GDEO256Z.js.map +1 -0
- package/dist/chunk-HXMLYPF5.js +2 -0
- package/dist/chunk-HXMLYPF5.js.map +1 -0
- package/dist/chunk-IDSE6FJ7.cjs +2 -0
- package/dist/chunk-IDSE6FJ7.cjs.map +1 -0
- package/dist/chunk-ITSIGICG.js +2 -0
- package/dist/chunk-ITSIGICG.js.map +1 -0
- package/dist/chunk-J7QU6N2U.js +2 -0
- package/dist/chunk-J7QU6N2U.js.map +1 -0
- package/dist/chunk-K32V3MHQ.cjs +2 -0
- package/dist/chunk-K32V3MHQ.cjs.map +1 -0
- package/dist/chunk-KEAW3ISB.cjs +2 -0
- package/dist/chunk-KEAW3ISB.cjs.map +1 -0
- package/dist/{chunk-E2QRPDUI.cjs → chunk-KFX5L3AF.cjs} +2 -2
- package/dist/{chunk-E2QRPDUI.cjs.map → chunk-KFX5L3AF.cjs.map} +1 -1
- package/dist/chunk-KYZ6DEDI.cjs +2 -0
- package/dist/chunk-KYZ6DEDI.cjs.map +1 -0
- package/dist/chunk-LQRU5KEQ.js +2 -0
- package/dist/chunk-LQRU5KEQ.js.map +1 -0
- package/dist/chunk-LUQA5J5W.cjs +2 -0
- package/dist/chunk-LUQA5J5W.cjs.map +1 -0
- package/dist/chunk-M25UFVFW.cjs +2 -0
- package/dist/chunk-M25UFVFW.cjs.map +1 -0
- package/dist/chunk-OIF6PONX.cjs +2 -0
- package/dist/chunk-OIF6PONX.cjs.map +1 -0
- package/dist/{chunk-FSXJI6UE.js → chunk-PP6Z3U6S.js} +2 -2
- package/dist/chunk-QISUHNKM.cjs +2 -0
- package/dist/chunk-QISUHNKM.cjs.map +1 -0
- package/dist/chunk-QUMY3I5T.js +2 -0
- package/dist/chunk-QUMY3I5T.js.map +1 -0
- package/dist/chunk-RNWK4YZ2.js +2 -0
- package/dist/chunk-RNWK4YZ2.js.map +1 -0
- package/dist/chunk-T2EOHTGR.js +2 -0
- package/dist/chunk-T2EOHTGR.js.map +1 -0
- package/dist/chunk-W3UMO54G.js +2 -0
- package/dist/chunk-W3UMO54G.js.map +1 -0
- package/dist/chunk-WNEFXTN4.cjs +2 -0
- package/dist/chunk-WNEFXTN4.cjs.map +1 -0
- package/dist/chunk-WZSVJ7BS.js +2 -0
- package/dist/chunk-WZSVJ7BS.js.map +1 -0
- package/dist/chunk-XEGQBIJR.cjs +2 -0
- package/dist/chunk-XEGQBIJR.cjs.map +1 -0
- package/dist/chunk-XRJ3USVN.js +2 -0
- package/dist/chunk-XRJ3USVN.js.map +1 -0
- package/dist/chunk-YEINLNE5.js +2 -0
- package/dist/chunk-YEINLNE5.js.map +1 -0
- package/dist/chunk-YMXAFSOU.cjs +2 -0
- package/dist/chunk-YMXAFSOU.cjs.map +1 -0
- package/dist/chunk-YQWAU4NX.cjs +2 -0
- package/dist/chunk-YQWAU4NX.cjs.map +1 -0
- package/dist/chunk-YSVRLPUL.js +2 -0
- package/dist/chunk-YSVRLPUL.js.map +1 -0
- package/dist/chunk-ZK6QHQWT.cjs +2 -0
- package/dist/chunk-ZK6QHQWT.cjs.map +1 -0
- package/dist/components/accordion.cjs +1 -1
- package/dist/components/accordion.js +1 -1
- package/dist/components/breadcrumb.cjs +1 -1
- package/dist/components/breadcrumb.js +1 -1
- package/dist/components/calendar.cjs +1 -1
- package/dist/components/calendar.js +1 -1
- package/dist/components/carousel.cjs +1 -1
- package/dist/components/carousel.js +1 -1
- package/dist/components/checkbox-cards.cjs +1 -1
- package/dist/components/checkbox-cards.js +1 -1
- package/dist/components/checkbox-group.cjs +1 -1
- package/dist/components/checkbox-group.js +1 -1
- package/dist/components/checkbox.cjs +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/command.cjs +1 -1
- package/dist/components/command.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/input-otp.cjs +1 -1
- package/dist/components/input-otp.js +1 -1
- package/dist/components/menubar.cjs +1 -1
- package/dist/components/menubar.js +1 -1
- package/dist/components/navigation-menu.cjs +1 -1
- package/dist/components/navigation-menu.js +1 -1
- package/dist/components/number-input.cjs +1 -1
- package/dist/components/number-input.js +1 -1
- package/dist/components/pagination.cjs +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/password-input.cjs +1 -1
- package/dist/components/password-input.js +1 -1
- package/dist/components/resizable.cjs +1 -1
- package/dist/components/resizable.js +1 -1
- package/dist/components/search-input.cjs +1 -1
- package/dist/components/search-input.js +1 -1
- package/dist/components/select.cjs +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/sheet.cjs +1 -1
- package/dist/components/sheet.js +1 -1
- package/dist/components/sidebar.cjs +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +9 -10
- package/dist/chunk-4PL3DAT2.cjs +0 -2
- package/dist/chunk-4PL3DAT2.cjs.map +0 -1
- package/dist/chunk-5I7UA4HT.js +0 -2
- package/dist/chunk-5I7UA4HT.js.map +0 -1
- package/dist/chunk-5LM6T7Z5.js +0 -2
- package/dist/chunk-5LM6T7Z5.js.map +0 -1
- package/dist/chunk-B5V32KRW.cjs +0 -2
- package/dist/chunk-B5V32KRW.cjs.map +0 -1
- package/dist/chunk-BAOFKRE7.cjs +0 -2
- package/dist/chunk-BAOFKRE7.cjs.map +0 -1
- package/dist/chunk-BHLW3MWI.js +0 -2
- package/dist/chunk-BHLW3MWI.js.map +0 -1
- package/dist/chunk-C4SXNTCJ.js +0 -2
- package/dist/chunk-C4SXNTCJ.js.map +0 -1
- package/dist/chunk-CRQ5URNB.js +0 -2
- package/dist/chunk-CRQ5URNB.js.map +0 -1
- package/dist/chunk-DIYHARQU.cjs +0 -2
- package/dist/chunk-DIYHARQU.cjs.map +0 -1
- package/dist/chunk-DQBQF25F.cjs +0 -2
- package/dist/chunk-DQBQF25F.cjs.map +0 -1
- package/dist/chunk-DUDXLCPG.js +0 -2
- package/dist/chunk-DUDXLCPG.js.map +0 -1
- package/dist/chunk-EEDKRHHZ.cjs.map +0 -1
- package/dist/chunk-GUOQM6BL.cjs +0 -2
- package/dist/chunk-GUOQM6BL.cjs.map +0 -1
- package/dist/chunk-GV5FQF4J.js +0 -2
- package/dist/chunk-GV5FQF4J.js.map +0 -1
- package/dist/chunk-I6LNZ6KP.cjs +0 -2
- package/dist/chunk-I6LNZ6KP.cjs.map +0 -1
- package/dist/chunk-IPRXHJQ5.cjs +0 -2
- package/dist/chunk-IPRXHJQ5.cjs.map +0 -1
- package/dist/chunk-JMYWGU6A.js +0 -2
- package/dist/chunk-JMYWGU6A.js.map +0 -1
- package/dist/chunk-KASTA74M.cjs +0 -2
- package/dist/chunk-KASTA74M.cjs.map +0 -1
- package/dist/chunk-LGRBBJSZ.js +0 -2
- package/dist/chunk-LGRBBJSZ.js.map +0 -1
- package/dist/chunk-LJPFJ6NG.js +0 -2
- package/dist/chunk-LJPFJ6NG.js.map +0 -1
- package/dist/chunk-MHH6QORE.cjs +0 -2
- package/dist/chunk-MHH6QORE.cjs.map +0 -1
- package/dist/chunk-MO7TQSRR.js +0 -2
- package/dist/chunk-MO7TQSRR.js.map +0 -1
- package/dist/chunk-MYT23AOL.js +0 -2
- package/dist/chunk-MYT23AOL.js.map +0 -1
- package/dist/chunk-O632SAUI.js +0 -2
- package/dist/chunk-O632SAUI.js.map +0 -1
- package/dist/chunk-OH3BXT6D.js +0 -2
- package/dist/chunk-OH3BXT6D.js.map +0 -1
- package/dist/chunk-OOEZEXWK.cjs +0 -2
- package/dist/chunk-OOEZEXWK.cjs.map +0 -1
- package/dist/chunk-OUWUINGX.cjs +0 -2
- package/dist/chunk-OUWUINGX.cjs.map +0 -1
- package/dist/chunk-P3YLZBAU.js +0 -2
- package/dist/chunk-P3YLZBAU.js.map +0 -1
- package/dist/chunk-PCKCN7MO.js +0 -2
- package/dist/chunk-PCKCN7MO.js.map +0 -1
- package/dist/chunk-PYKB3C2F.cjs +0 -2
- package/dist/chunk-PYKB3C2F.cjs.map +0 -1
- package/dist/chunk-Q7IH47TY.js +0 -2
- package/dist/chunk-Q7IH47TY.js.map +0 -1
- package/dist/chunk-QEIZTAWS.js +0 -2
- package/dist/chunk-QEIZTAWS.js.map +0 -1
- package/dist/chunk-R5235IUC.cjs +0 -2
- package/dist/chunk-R5235IUC.cjs.map +0 -1
- package/dist/chunk-RAOQ5OMD.cjs +0 -2
- package/dist/chunk-RAOQ5OMD.cjs.map +0 -1
- package/dist/chunk-SDGFNHJP.cjs +0 -2
- package/dist/chunk-SDGFNHJP.cjs.map +0 -1
- package/dist/chunk-TTKMKXCU.js +0 -2
- package/dist/chunk-TTKMKXCU.js.map +0 -1
- package/dist/chunk-UHHMORLE.js +0 -2
- package/dist/chunk-UHHMORLE.js.map +0 -1
- package/dist/chunk-UIVPC5TQ.cjs +0 -2
- package/dist/chunk-UIVPC5TQ.cjs.map +0 -1
- package/dist/chunk-UQWSMTYF.js +0 -2
- package/dist/chunk-UQWSMTYF.js.map +0 -1
- package/dist/chunk-VBE6D4FZ.cjs +0 -2
- package/dist/chunk-VBE6D4FZ.cjs.map +0 -1
- package/dist/chunk-VFOMCFSG.cjs +0 -2
- package/dist/chunk-VFOMCFSG.cjs.map +0 -1
- package/dist/chunk-YORY32TX.cjs +0 -2
- package/dist/chunk-YORY32TX.cjs.map +0 -1
- package/dist/chunk-YTSBANYY.js +0 -2
- package/dist/chunk-YTSBANYY.js.map +0 -1
- package/dist/chunk-Z7U5IONC.cjs +0 -2
- package/dist/chunk-Z7U5IONC.cjs.map +0 -1
- /package/dist/{chunk-FSXJI6UE.js.map → chunk-PP6Z3U6S.js.map} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/resizable.tsx"],"names":["DragHandleDots2Icon","ResizablePrimitive","jsx","ResizablePanelGroup","className","props","cn","ResizablePanel","ResizableHandle","withHandle"],"mappings":"wCAEA,OAAS,uBAAAA,MAA2B,wBAEpC,UAAYC,MAAwB,yBAahC,cAAAC,MAAA,oBALJ,SAASC,EAAoB,CAC3B,UAAAC,EACA,GAAGC,CACL,EAAsE,CACpE,OACEH,EAAoB,aAAnB,CACC,UAAWI,EAAG,iBAAkB,iDAAkDF,CAAS,EAC1F,GAAGC,EACN,CAEJ,CAMA,IAAME,EAAoC,QAM1C,SAASC,EAAgB,CACvB,WAAAC,EACA,UAAAL,EACA,GAAGC,CACL,EAEgB,CACd,OACEH,EAAoB,oBAAnB,CACC,UAAWI,EACT,sEACA,iFACA,sGACA,6CACA,+CACA,qDACA,kDACA,qDACA,+DACA,4DACA,yDACAF,CACF,EACC,GAAGC,EAEH,SAAAI,EACCP,EAAC,OAAI,UAAU,yEACb,SAAAA,EAACF,EAAA,CAAoB,UAAU,WAAW,EAC5C,EACE,KACN,CAEJ","sourcesContent":["'use client';\n\nimport { DragHandleDots2Icon } from '@radix-ui/react-icons';\nimport { type ComponentProps, type JSX } from 'react';\nimport * as ResizablePrimitive from 'react-resizable-panels';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: ResizablePanelGroup\n * -------------------------------------------------------------------------- */\n\nfunction ResizablePanelGroup({\n className,\n ...props\n}: ComponentProps<typeof ResizablePrimitive.PanelGroup>): JSX.Element {\n return (\n <ResizablePrimitive.PanelGroup\n className={cn('flex size-full', 'data-[panel-group-direction=vertical]:flex-col', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ResizablePanel\n * -------------------------------------------------------------------------- */\n\nconst ResizablePanel = ResizablePrimitive.Panel;\n\n/* -----------------------------------------------------------------------------\n * Component: ResizableHandle\n * -------------------------------------------------------------------------- */\n\nfunction ResizableHandle({\n withHandle,\n className,\n ...props\n}: ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {\n withHandle?: boolean;\n}): JSX.Element {\n return (\n <ResizablePrimitive.PanelResizeHandle\n className={cn(\n 'bg-border relative flex w-px items-center justify-center transition',\n 'after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2',\n 'focus-visible:ring-ring focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2',\n 'data-[panel-group-direction=vertical]:h-px',\n 'data-[panel-group-direction=vertical]:w-full',\n 'data-[panel-group-direction=vertical]:after:left-0',\n 'data-[panel-group-direction=vertical]:after:h-1',\n 'data-[panel-group-direction=vertical]:after:w-full',\n 'data-[panel-group-direction=vertical]:after:-translate-y-1/2',\n 'data-[panel-group-direction=vertical]:after:translate-x-0',\n '[&[data-panel-group-direction=vertical]>div]:rotate-90',\n className,\n )}\n {...props}\n >\n {withHandle ? (\n <div className=\"bg-border z-10 flex h-4 w-3 items-center justify-center rounded border\">\n <DragHandleDots2Icon className=\"size-2.5\" />\n </div>\n ) : null}\n </ResizablePrimitive.PanelResizeHandle>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { ResizableHandle, ResizablePanel, ResizablePanelGroup };\n"]}
|
package/dist/chunk-CRQ5URNB.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as r}from"./chunk-EVRI6TWT.js";import{a as e}from"./chunk-VPYH6JWS.js";import{ChevronLeftIcon as m,ChevronRightIcon as u,DotsHorizontalIcon as c}from"@radix-ui/react-icons";import{forwardRef as p}from"react";import{jsx as t,jsxs as o}from"react/jsx-runtime";function b({className:n,...i}){return t("nav",{"aria-label":"pagination",className:e("mx-auto flex w-full justify-center",n),role:"navigation",...i})}var L=p(({className:n,...i},a)=>t("ul",{ref:a,className:e("flex flex-row items-center gap-1",n),...i}));L.displayName="PaginationContent";var f=p((n,i)=>t("li",{ref:i,...n}));f.displayName="PaginationItem";function P({children:n,className:i,icon:a=!0,isActive:s,size:l,...g}){return t("a",{"aria-current":s?"page":void 0,className:r({className:i,icon:a,size:l,variant:s?"outline":"ghost"}),...g,children:n})}function x({...n}){return o(P,{"aria-label":"Go to previous page",icon:!1,...n,children:[t(m,{className:"size-4"}),t("span",{children:"Previous"})]})}function I({...n}){return o(P,{"aria-label":"Go to next page",icon:!1,...n,children:[t("span",{children:"Next"}),t(u,{})]})}function v({className:n,...i}){return o("span",{"aria-hidden":!0,className:e("flex size-10 items-center justify-center",n),...i,children:[t(c,{className:"size-4"}),t("span",{className:"sr-only",children:"More pages"})]})}export{b as a,L as b,f as c,P as d,x as e,I as f,v as g};
|
|
2
|
-
//# sourceMappingURL=chunk-CRQ5URNB.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/pagination.tsx"],"names":["ChevronLeftIcon","ChevronRightIcon","DotsHorizontalIcon","forwardRef","jsx","jsxs","Pagination","className","props","cn","PaginationContent","forwardedRef","PaginationItem","PaginationLink","children","icon","isActive","size","buttonVariants","PaginationPrevious","PaginationNext","PaginationEllipsis"],"mappings":"gFAAA,OAAS,mBAAAA,EAAiB,oBAAAC,EAAkB,sBAAAC,MAA0B,wBACtE,OAAoC,cAAAC,MAAwE,QAaxG,cAAAC,EA+EA,QAAAC,MA/EA,oBAFJ,SAASC,EAAW,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAiC,CACzE,OACEJ,EAAC,OACC,aAAW,aACX,UAAWK,EAAG,qCAAsCF,CAAS,EAC7D,KAAK,aACJ,GAAGC,EACN,CAEJ,CASA,IAAME,EAAoBP,EACxB,CAAC,CAAE,UAAAI,EAAW,GAAGC,CAAM,EAAGG,IACxBP,EAAC,MAAG,IAAKO,EAAc,UAAWF,EAAG,mCAAoCF,CAAS,EAAI,GAAGC,EAAO,CAEpG,EAEAE,EAAkB,YAAc,oBAShC,IAAME,EAAiBT,EAAuD,CAACK,EAAOG,IACpFP,EAAC,MAAG,IAAKO,EAAe,GAAGH,EAAO,CACnC,EAEDI,EAAe,YAAc,iBAY7B,SAASC,EAAe,CACtB,SAAAC,EACA,UAAAP,EACA,KAAAQ,EAAO,GACP,SAAAC,EACA,KAAAC,EACA,GAAGT,CACL,EAAqC,CACnC,OACEJ,EAAC,KACC,eAAcY,EAAW,OAAS,OAClC,UAAWE,EAAe,CACxB,UAAAX,EACA,KAAAQ,EACA,KAAAE,EACA,QAASD,EAAW,UAAY,OAClC,CAAC,EACA,GAAGR,EAEH,SAAAM,EACH,CAEJ,CAQA,SAASK,EAAmB,CAAE,GAAGX,CAAM,EAAyC,CAC9E,OACEH,EAACQ,EAAA,CAAe,aAAW,sBAAsB,KAAM,GAAQ,GAAGL,EAChE,UAAAJ,EAACJ,EAAA,CAAgB,UAAU,SAAS,EACpCI,EAAC,QAAK,oBAAQ,GAChB,CAEJ,CAQA,SAASgB,EAAe,CAAE,GAAGZ,CAAM,EAAqC,CACtE,OACEH,EAACQ,EAAA,CAAe,aAAW,kBAAkB,KAAM,GAAQ,GAAGL,EAC5D,UAAAJ,EAAC,QAAK,gBAAI,EACVA,EAACH,EAAA,EAAiB,GACpB,CAEJ,CAQA,SAASoB,EAAmB,CAAE,UAAAd,EAAW,GAAGC,CAAM,EAAyC,CACzF,OACEH,EAAC,QAAK,cAAW,GAAC,UAAWI,EAAG,2CAA4CF,CAAS,EAAI,GAAGC,EAC1F,UAAAJ,EAACF,EAAA,CAAmB,UAAU,SAAS,EACvCE,EAAC,QAAK,UAAU,UAAU,sBAAU,GACtC,CAEJ","sourcesContent":["import { ChevronLeftIcon, ChevronRightIcon, DotsHorizontalIcon } from '@radix-ui/react-icons';\nimport { type AnchorHTMLAttributes, forwardRef, type HTMLAttributes, type JSX, type LiHTMLAttributes } from 'react';\n\nimport { cn } from '@/lib/utils';\nimport { buttonVariants, type ButtonVariantsProps } from '@/styles/button-variants';\n\n/* -----------------------------------------------------------------------------\n * Component: Pagination\n * -------------------------------------------------------------------------- */\n\ntype PaginationProps = HTMLAttributes<HTMLElement>;\n\nfunction Pagination({ className, ...props }: PaginationProps): JSX.Element {\n return (\n <nav\n aria-label=\"pagination\"\n className={cn('mx-auto flex w-full justify-center', className)}\n role=\"navigation\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationContent\n * -------------------------------------------------------------------------- */\n\ntype PaginationContentElement = HTMLUListElement;\ntype PaginationContentProps = HTMLAttributes<HTMLUListElement>;\n\nconst PaginationContent = forwardRef<PaginationContentElement, PaginationContentProps>(\n ({ className, ...props }, forwardedRef) => (\n <ul ref={forwardedRef} className={cn('flex flex-row items-center gap-1', className)} {...props} />\n ),\n);\n\nPaginationContent.displayName = 'PaginationContent';\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationItem\n * -------------------------------------------------------------------------- */\n\ntype PaginationItemElement = HTMLLIElement;\ntype PaginationItemProps = LiHTMLAttributes<HTMLLIElement>;\n\nconst PaginationItem = forwardRef<PaginationItemElement, PaginationItemProps>((props, forwardedRef) => (\n <li ref={forwardedRef} {...props} />\n));\n\nPaginationItem.displayName = 'PaginationItem';\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationLink\n * -------------------------------------------------------------------------- */\n\ninterface PaginationLinkProps\n extends AnchorHTMLAttributes<HTMLAnchorElement>,\n Pick<ButtonVariantsProps, 'size' | 'icon'> {\n isActive?: boolean;\n}\n\nfunction PaginationLink({\n children,\n className,\n icon = true,\n isActive,\n size,\n ...props\n}: PaginationLinkProps): JSX.Element {\n return (\n <a\n aria-current={isActive ? 'page' : undefined}\n className={buttonVariants({\n className,\n icon,\n size,\n variant: isActive ? 'outline' : 'ghost',\n })}\n {...props}\n >\n {children}\n </a>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationPrevious\n * -------------------------------------------------------------------------- */\n\ntype PaginationPreviousProps = PaginationLinkProps;\n\nfunction PaginationPrevious({ ...props }: PaginationPreviousProps): JSX.Element {\n return (\n <PaginationLink aria-label=\"Go to previous page\" icon={false} {...props}>\n <ChevronLeftIcon className=\"size-4\" />\n <span>Previous</span>\n </PaginationLink>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationNext\n * -------------------------------------------------------------------------- */\n\ntype PaginationNextProps = PaginationLinkProps;\n\nfunction PaginationNext({ ...props }: PaginationNextProps): JSX.Element {\n return (\n <PaginationLink aria-label=\"Go to next page\" icon={false} {...props}>\n <span>Next</span>\n <ChevronRightIcon />\n </PaginationLink>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationEllipsis\n * -------------------------------------------------------------------------- */\n\ntype PaginationEllipsisProps = HTMLAttributes<HTMLSpanElement>;\n\nfunction PaginationEllipsis({ className, ...props }: PaginationEllipsisProps): JSX.Element {\n return (\n <span aria-hidden className={cn('flex size-10 items-center justify-center', className)} {...props}>\n <DotsHorizontalIcon className=\"size-4\" />\n <span className=\"sr-only\">More pages</span>\n </span>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Pagination,\n PaginationContent,\n PaginationEllipsis,\n PaginationItem,\n PaginationLink,\n PaginationNext,\n PaginationPrevious,\n type PaginationContentProps,\n type PaginationEllipsisProps,\n type PaginationItemProps,\n type PaginationLinkProps,\n type PaginationNextProps,\n type PaginationPreviousProps,\n type PaginationProps,\n};\n"]}
|
package/dist/chunk-DIYHARQU.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _chunkKF7Y7B3Gcjs = require('./chunk-KF7Y7B3G.cjs');var _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _reactdialog = require('@radix-ui/react-dialog'); var e = _interopRequireWildcard(_reactdialog);var _reacticons = require('@radix-ui/react-icons');var _react = require('react');var _tailwindvariants = require('tailwind-variants');var _jsxruntime = require('react/jsx-runtime');var d=_tailwindvariants.tv.call(void 0, {base:["bg-background animate-ease-in-out fixed z-50 flex flex-col overflow-auto shadow-lg","data-[state=open]:animate-in data-[state=open]:animate-duration-500","data-[state=closed]:animate-out data-[state=closed]:animate-duration-300"],defaultVariants:{side:"right"},variants:{side:{top:["inset-x-0 top-0 max-h-screen border-b","data-[state=open]:slide-in-from-top","data-[state=closed]:slide-out-to-top"],bottom:["inset-x-0 bottom-0 max-h-screen border-t","data-[state=open]:slide-in-from-bottom","data-[state=closed]:slide-out-to-bottom"],left:["inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm","data-[state=open]:slide-in-from-left","data-[state=closed]:slide-out-to-left"],right:["inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm","data-[state=open]:slide-in-from-right","data-[state=closed]:slide-out-to-right"]}}}),N= exports.a =e.Root,E= exports.b =e.Trigger,P= exports.c =_react.forwardRef.call(void 0, ({children:t,side:o="right",className:s,...n},p)=>_jsxruntime.jsxs.call(void 0, e.Portal,{children:[_jsxruntime.jsx.call(void 0, e.Overlay,{className:_chunkDD6AVCRHcjs.a.call(void 0, "fixed inset-0 z-50 bg-black/80","data-[state=open]:animate-duration-500 data-[state=open]:animate-fade-in","data-[state=closed]:animate-duration-300 data-[state=closed]:animate-fade-out")}),_jsxruntime.jsxs.call(void 0, e.Content,{ref:p,className:d({side:o,className:s}),...n,children:[t,_jsxruntime.jsxs.call(void 0, e.Close,{className:_chunkKF7Y7B3Gcjs.a.call(void 0, {className:"absolute right-4 top-4",icon:!0,size:"xxs",variant:"ghost"}),children:[_jsxruntime.jsx.call(void 0, _reacticons.Cross2Icon,{className:"size-4"}),_jsxruntime.jsx.call(void 0, "span",{className:"sr-only",children:"Close"})]})]})]}));P.displayName=e.Content.displayName;function R({className:t,...o}){return _jsxruntime.jsx.call(void 0, "header",{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",t),...o})}function D({className:t,...o}){return _jsxruntime.jsx.call(void 0, "main",{className:_chunkDD6AVCRHcjs.a.call(void 0, "px-6 py-2",t),...o})}function f({className:t,...o}){return _jsxruntime.jsx.call(void 0, "footer",{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",t),...o})}f.displayName="SheetFooter";var y=_react.forwardRef.call(void 0, ({className:t,...o},s)=>_jsxruntime.jsx.call(void 0, e.Title,{ref:s,className:_chunkDD6AVCRHcjs.a.call(void 0, "text-foreground text-lg font-semibold",t),...o}));y.displayName=e.Title.displayName;var c=_react.forwardRef.call(void 0, ({className:t,...o},s)=>_jsxruntime.jsx.call(void 0, e.Description,{ref:s,className:_chunkDD6AVCRHcjs.a.call(void 0, "text-muted-foreground text-sm",t),...o}));c.displayName=e.Description.displayName;var u=_react.forwardRef.call(void 0, ({className:t,size:o,variant:s="outline",...n},p)=>_jsxruntime.jsx.call(void 0, e.Close,{ref:p,className:_chunkKF7Y7B3Gcjs.a.call(void 0, {variant:s,size:o,className:t}),...n}));u.displayName=e.Close.displayName;exports.a = N; exports.b = E; exports.c = P; exports.d = R; exports.e = D; exports.f = f; exports.g = y; exports.h = c; exports.i = u;
|
|
2
|
-
//# sourceMappingURL=chunk-DIYHARQU.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-DIYHARQU.cjs","../src/components/sheet.tsx"],"names":["sheetContentVariants","tv","Sheet","SheetTrigger","SheetContent","forwardRef","children","side","className","props","forwardedRef","jsxs","jsx","cn","buttonVariants","Cross2Icon","SheetHeader","SheetBody","SheetFooter","SheetTitle","Sheet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AAAA,CACL,SAAA,CAAWG,iCAAAA,uCAAG,CAAyCL,CAAS,CAAA,CAC/D,GAAGC,CAAAA,CACN,CACD,CAAA,CAEDU,CAAAA,CAAW,WAAA,CAA6B,CAAA,CAAA,KAAA,CAAM,WAAA,CAS9C,IAAMC,CAAAA,CAAmBf,+BAAAA,CACtB,CAAE,SAAA,CAAAG,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBE,6BAAAA,CAAgB,CAAA,WAAA,CAAf,CACC,GAAA,CAAKF,CAAAA,CACL,SAAA,CAAWG,iCAAAA,+BAAG,CAAiCL,CAAS,CAAA,CACvD,GAAGC,CAAAA,CACN,CAEJ,CAAA,CAEAW,CAAAA,CAAiB,WAAA,CAA6B,CAAA,CAAA,WAAA,CAAY,WAAA,CAY1D,IAAMC,CAAAA,CAAahB,+BAAAA,CAChB,CAAE,SAAA,CAAAG,CAAAA,CAAW,IAAA,CAAAc,CAAAA,CAAM,OAAA,CAAAC,CAAAA,CAAU,SAAA,CAAW,GAAGd,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACnDE,6BAAAA,CAAgB,CAAA,KAAA,CAAf,CAAqB,GAAA,CAAKF,CAAAA,CAAc,SAAA,CAAWI,iCAAAA,CAAiB,OAAA,CAAAS,CAAAA,CAAS,IAAA,CAAAD,CAAAA,CAAM,SAAA,CAAAd,CAAU,CAAC,CAAA,CAAI,GAAGC,CAAAA,CAAO,CAEjH,CAAA,CAEAY,CAAAA,CAAW,WAAA,CAA6B,CAAA,CAAA,KAAA,CAAM,WAAA,CAAA,sIAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-DIYHARQU.cjs","sourcesContent":[null,"import * as SheetPrimitive from '@radix-ui/react-dialog';\nimport { Cross2Icon } 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';\nimport { tv, type VariantProps } from 'tailwind-variants';\n\nimport { cn } from '@/lib/utils';\nimport { buttonVariants, type ButtonVariantsProps } from '@/styles/button-variants';\n\n/* -----------------------------------------------------------------------------\n * Variant: SheetContent\n * -------------------------------------------------------------------------- */\n\nconst sheetContentVariants = tv({\n base: [\n 'bg-background animate-ease-in-out fixed z-50 flex flex-col overflow-auto shadow-lg',\n 'data-[state=open]:animate-in data-[state=open]:animate-duration-500',\n 'data-[state=closed]:animate-out data-[state=closed]:animate-duration-300',\n ],\n defaultVariants: {\n side: 'right',\n },\n variants: {\n side: {\n top: [\n 'inset-x-0 top-0 max-h-screen border-b',\n 'data-[state=open]:slide-in-from-top',\n 'data-[state=closed]:slide-out-to-top',\n ],\n bottom: [\n 'inset-x-0 bottom-0 max-h-screen border-t',\n 'data-[state=open]:slide-in-from-bottom',\n 'data-[state=closed]:slide-out-to-bottom',\n ],\n left: [\n 'inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm',\n 'data-[state=open]:slide-in-from-left',\n 'data-[state=closed]:slide-out-to-left',\n ],\n right: [\n 'inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm',\n 'data-[state=open]:slide-in-from-right',\n 'data-[state=closed]:slide-out-to-right',\n ],\n },\n },\n});\n\ntype SheetContentVariantsProps = VariantProps<typeof sheetContentVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: Sheet\n * -------------------------------------------------------------------------- */\n\ntype SheetProps = ComponentProps<typeof SheetPrimitive.Root>;\nconst Sheet = SheetPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetTrigger\n * -------------------------------------------------------------------------- */\n\ntype SheetTriggerProps = ComponentPropsWithoutRef<typeof SheetPrimitive.Trigger>;\nconst SheetTrigger = SheetPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetContent\n * -------------------------------------------------------------------------- */\n\ntype SheetContentElement = ComponentRef<typeof SheetPrimitive.Content>;\ntype SheetContentProps = ComponentPropsWithoutRef<typeof SheetPrimitive.Content> & SheetContentVariantsProps;\n\nconst SheetContent = forwardRef<SheetContentElement, SheetContentProps>(\n ({ children, side = 'right', className, ...props }, forwardedRef) => (\n <SheetPrimitive.Portal>\n <SheetPrimitive.Overlay\n className={cn(\n 'fixed inset-0 z-50 bg-black/80',\n 'data-[state=open]:animate-duration-500 data-[state=open]:animate-fade-in',\n 'data-[state=closed]:animate-duration-300 data-[state=closed]:animate-fade-out',\n )}\n />\n <SheetPrimitive.Content ref={forwardedRef} className={sheetContentVariants({ side, className })} {...props}>\n {children}\n <SheetPrimitive.Close\n className={buttonVariants({\n className: 'absolute right-4 top-4',\n icon: true,\n size: 'xxs',\n variant: 'ghost',\n })}\n >\n <Cross2Icon className=\"size-4\" />\n <span className=\"sr-only\">Close</span>\n </SheetPrimitive.Close>\n </SheetPrimitive.Content>\n </SheetPrimitive.Portal>\n ),\n);\n\nSheetContent.displayName = SheetPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetHeader\n * -------------------------------------------------------------------------- */\n\ntype SheetHeaderProps = HTMLAttributes<HTMLDivElement>;\n\nfunction SheetHeader({ className, ...props }: SheetHeaderProps): JSX.Element {\n return (\n <header\n className={cn('flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetBody\n * -------------------------------------------------------------------------- */\n\ntype SheetBodyProps = HTMLAttributes<HTMLDivElement>;\n\nfunction SheetBody({ className, ...props }: SheetHeaderProps): JSX.Element {\n return <main className={cn('px-6 py-2', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetFooter\n * -------------------------------------------------------------------------- */\n\ntype SheetFooterProps = HTMLAttributes<HTMLDivElement>;\n\nfunction SheetFooter({ className, ...props }: SheetFooterProps): JSX.Element {\n return (\n <footer\n className={cn('flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end', className)}\n {...props}\n />\n );\n}\n\nSheetFooter.displayName = 'SheetFooter';\n\n/* -----------------------------------------------------------------------------\n * Component: SheetTitle\n * -------------------------------------------------------------------------- */\n\ntype SheetTitleElement = ComponentRef<typeof SheetPrimitive.Title>;\ntype SheetTitleProps = ComponentPropsWithoutRef<typeof SheetPrimitive.Title>;\n\nconst SheetTitle = forwardRef<SheetTitleElement, SheetTitleProps>(({ className, ...props }, forwardedRef) => (\n <SheetPrimitive.Title\n ref={forwardedRef}\n className={cn('text-foreground text-lg font-semibold', className)}\n {...props}\n />\n));\n\nSheetTitle.displayName = SheetPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetDescription\n * -------------------------------------------------------------------------- */\n\ntype SheetDescriptionElement = ComponentRef<typeof SheetPrimitive.Description>;\ntype SheetDescriptionProps = ComponentPropsWithoutRef<typeof SheetPrimitive.Description>;\n\nconst SheetDescription = forwardRef<SheetDescriptionElement, SheetDescriptionProps>(\n ({ className, ...props }, forwardedRef) => (\n <SheetPrimitive.Description\n ref={forwardedRef}\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n ),\n);\n\nSheetDescription.displayName = SheetPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetClose\n * -------------------------------------------------------------------------- */\n\ntype SheetCloseElement = ComponentRef<typeof SheetPrimitive.Close>;\ninterface SheetCloseProps extends ComponentPropsWithoutRef<typeof SheetPrimitive.Close> {\n size?: ButtonVariantsProps['size'];\n variant?: ButtonVariantsProps['variant'];\n}\n\nconst SheetClose = forwardRef<SheetCloseElement, SheetCloseProps>(\n ({ className, size, variant = 'outline', ...props }, forwardedRef) => (\n <SheetPrimitive.Close ref={forwardedRef} className={buttonVariants({ variant, size, className })} {...props} />\n ),\n);\n\nSheetClose.displayName = SheetPrimitive.Close.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Sheet,\n SheetBody,\n SheetClose,\n SheetContent,\n SheetDescription,\n SheetFooter,\n SheetHeader,\n SheetTitle,\n SheetTrigger,\n type SheetBodyProps,\n type SheetCloseProps,\n type SheetContentProps,\n type SheetDescriptionProps,\n type SheetFooterProps,\n type SheetHeaderProps,\n type SheetProps,\n type SheetTitleProps,\n type SheetTriggerProps,\n};\n"]}
|
package/dist/chunk-DQBQF25F.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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 _chunkFINPFQTZcjs = require('./chunk-FINPFQTZ.cjs');var _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _reactcontext = require('@radix-ui/react-context');var _reacticons = require('@radix-ui/react-icons');var _emblacarouselreact = require('embla-carousel-react'); var _emblacarouselreact2 = _interopRequireDefault(_emblacarouselreact);var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var x="Carousel",[_,Z]=_reactcontext.createContextScope.call(void 0, x),[O,v]=_(x),z= exports.b =_react.forwardRef.call(void 0, ({__scopeCarousel:l,children:a,orientation:o,opts:r,setApi:t,plugins:u,className:p,...c},C)=>{let[m,e]=_emblacarouselreact2.default.call(void 0, {...r,axis:o==="vertical"?"y":"x"},u),[R,H]=_react.useState.call(void 0, !1),[I,h]=_react.useState.call(void 0, !1),P=_react.useCallback.call(void 0, n=>{n&&(H(n.canScrollPrev()),h(n.canScrollNext()))},[]),E=_react.useCallback.call(void 0, ()=>{_optionalChain([e, 'optionalAccess', _2 => _2.scrollPrev, 'call', _3 => _3()])},[e]),N=_react.useCallback.call(void 0, ()=>{_optionalChain([e, 'optionalAccess', _4 => _4.scrollNext, 'call', _5 => _5()])},[e]),w=_react.useCallback.call(void 0, n=>{n.key==="ArrowLeft"?(n.preventDefault(),E()):n.key==="ArrowRight"&&(n.preventDefault(),N())},[E,N]);return _react.useEffect.call(void 0, ()=>{!e||!t||t(e)},[e,t]),_react.useEffect.call(void 0, ()=>{if(e)return P(e),e.on("reInit",P),e.on("select",P),()=>{e.off("select",P)}},[e,P]),_jsxruntime.jsx.call(void 0, O,{api:e,canScrollNext:I,canScrollPrev:R,carouselRef:m,opts:r,orientation:_nullishCoalesce(o, () => ((_optionalChain([r, 'optionalAccess', _6 => _6.axis])==="y"?"vertical":"horizontal"))),scope:l,scrollNext:N,scrollPrev:E,children:_jsxruntime.jsx.call(void 0, "div",{ref:C,"aria-roledescription":"carousel",className:_chunkDD6AVCRHcjs.a.call(void 0, "relative",p),role:"region",onKeyDownCapture:w,...c,children:a})})});z.displayName=x;var T="CarouselContent",k= exports.c =_react.forwardRef.call(void 0, ({__scopeCarousel:l,className:a,classNames:o,...r},t)=>{let{carouselRef:u,orientation:p}=v(T,l);return _jsxruntime.jsx.call(void 0, "div",{ref:u,className:_chunkDD6AVCRHcjs.a.call(void 0, "overflow-hidden",_optionalChain([o, 'optionalAccess', _7 => _7.wrapper])),children:_jsxruntime.jsx.call(void 0, "div",{ref:t,className:_chunkDD6AVCRHcjs.a.call(void 0, "flex",p==="horizontal"?"-ml-4":"-mt-4 flex-col",_optionalChain([o, 'optionalAccess', _8 => _8.content]),a),...r})})});k.displayName=T;var L="CarouselItem",K= exports.d =_react.forwardRef.call(void 0, ({__scopeCarousel:l,className:a,...o},r)=>{let{orientation:t}=v(L,l);return _jsxruntime.jsx.call(void 0, "div",{ref:r,"aria-roledescription":"slide",className:_chunkDD6AVCRHcjs.a.call(void 0, "min-w-0 shrink-0 grow-0 basis-full",t==="horizontal"?"pl-4":"pt-4",a),role:"group",...o})});K.displayName=L;var A="CarouselPrevious",V= exports.e =_react.forwardRef.call(void 0, ({__scopeCarousel:l,className:a,icon:o=!0,size:r="sm",variant:t="outline",...u},p)=>{let{orientation:c,scrollPrev:C,canScrollPrev:m}=v(A,l);return _jsxruntime.jsx.call(void 0, _chunkFINPFQTZcjs.a,{ref:p,className:_chunkDD6AVCRHcjs.a.call(void 0, "absolute",c==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",a),disabled:!m,icon:o,prefix:_jsxruntime.jsx.call(void 0, _reacticons.ArrowLeftIcon,{}),size:r,variant:t,onClick:C,...u,children:_jsxruntime.jsx.call(void 0, "span",{className:"sr-only",children:"Previous slide"})})});V.displayName=A;var M="CarouselNext",X= exports.f =_react.forwardRef.call(void 0, ({__scopeCarousel:l,className:a,icon:o=!0,size:r="sm",variant:t="outline",...u},p)=>{let{orientation:c,scrollNext:C,canScrollNext:m}=v(M,l);return _jsxruntime.jsx.call(void 0, _chunkFINPFQTZcjs.a,{ref:p,className:_chunkDD6AVCRHcjs.a.call(void 0, "absolute",c==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",a),disabled:!m,icon:o,prefix:_jsxruntime.jsx.call(void 0, _reacticons.ArrowRightIcon,{}),size:r,variant:t,onClick:C,...u,children:_jsxruntime.jsx.call(void 0, "span",{className:"sr-only",children:"Next slide"})})});X.displayName=M;exports.a = Z; exports.b = z; exports.c = k; exports.d = K; exports.e = V; exports.f = X;
|
|
2
|
-
//# sourceMappingURL=chunk-DQBQF25F.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-DQBQF25F.cjs","../src/components/carousel.tsx"],"names":["useEmblaCarousel","createCarouselContext","CarouselProvider","useCarouselContext","CAROUSEL_NAME","Carousel","forwardRef","children","orientation","className","carouselRef","api","opts","canScrollPrev","canScrollNext","setCanScrollNext","useState","onSelect","useCallback","carouselApi","setCanScrollPrev","event","useEffect","setApi","jsx","scrollNext","scrollPrev","forwardedRef","classNames","cn","CarouselContent","CAROUSEL_CONTENT_NAME","props","CAROUSEL_ITEM_NAME","variant","Button","ArrowLeftIcon","size","CAROUSEL_PREVIOUS_NAME","ArrowRightIcon","CAROUSEL_NEXT_NAME"],"mappings":"AAAA,6xBAAY,CAAC,wDAAwC,wDCE5C,uDACA,mDACFA,kIACE,8BAyHD,+CAhHc,IAIhB,CAACC,CAAAA,UAuBAC,CAAAA,CAAkBC,CAAkB,CAAA,CAAIF,CAAAA,CAA4CG,8CAAa,CAKlGC,CAAAA,CAAWC,CAAAA,CACf,CACE,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,aAAA,+BAAA,CAAA,CAAA,eAAiBC,CAAU,CAAA,CAAA,QAAA,CAAA,CAAAC,CAAAA,WAAmB,CAAA,CAAA,CAAA,IAAQ,CAAA,CAAA,CAAA,MAAS,CAAA,CAAA,CAAA,OAAAC,CAAAA,CAAW,CAAA,SAEzE,CACH,CAAA,CAAA,GAAOC,CAAaC,CAAG,CAAA,CAAIX,CAAAA,EAEvB,CAAA,GAAGY,CACH,CAAA,CAAA,CAAA,CAAA,CAAMJ,0CAAAA,CAAAA,GAAgB,CAAA,CAAA,IAAA,CAAA,CAAA,GAAa,UAKjC,CAACK,GAA+B,CAAA,GAAa,CAAA,CAAK,CAAA,CAClD,CAACC,CAAAA,CAAeC,CAAgB,CAAA,CAAIC,CAAAA,6BAAS,CAAK,CAAA,CAElDC,CAAAA,CAAWC,CAAAA,CAAaC,CAAAA,CAAAA,CAA6B,6BACpDA,CAAAA,CAAAA,CAILC,CAAAA,CAAiBD,CAAAA,gCAAY,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,aACA,CAAA,CAAA,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AAA,CAAAA,CAAAA,CAAAA,yFAAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-DQBQF25F.cjs","sourcesContent":[null,"'use client';\n\nimport { createContextScope, type Scope } from '@radix-ui/react-context';\nimport { ArrowLeftIcon, ArrowRightIcon } from '@radix-ui/react-icons';\nimport useEmblaCarousel, { type UseEmblaCarouselType } from 'embla-carousel-react';\nimport { forwardRef, type HTMLAttributes, type KeyboardEvent, useCallback, useEffect, useState } from 'react';\n\nimport { Button, type ButtonProps } from '@/components/button';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Carousel\n * -------------------------------------------------------------------------- */\n\nconst CAROUSEL_NAME = 'Carousel';\n\ntype ScopedProps<P> = P & { __scopeCarousel?: Scope };\n\nconst [createCarouselContext, createCarouselScope] = createContextScope(CAROUSEL_NAME);\n\ntype CarouselApi = UseEmblaCarouselType[1];\ntype UseCarouselParameters = Parameters<typeof useEmblaCarousel>;\ntype CarouselOptions = UseCarouselParameters[0];\ntype CarouselPlugin = UseCarouselParameters[1];\n\ninterface BaseCarouselProps {\n opts?: CarouselOptions;\n orientation?: 'horizontal' | 'vertical';\n plugins?: CarouselPlugin;\n setApi?: (api: CarouselApi) => void;\n}\n\ntype CarouselContextValue = {\n api: ReturnType<typeof useEmblaCarousel>[1];\n canScrollNext: boolean;\n canScrollPrev: boolean;\n carouselRef: ReturnType<typeof useEmblaCarousel>[0];\n scrollNext: () => void;\n scrollPrev: () => void;\n} & BaseCarouselProps;\n\nconst [CarouselProvider, useCarouselContext] = createCarouselContext<CarouselContextValue>(CAROUSEL_NAME);\n\ntype CarouselElement = HTMLDivElement;\ntype CarouselProps = HTMLAttributes<HTMLDivElement> & BaseCarouselProps;\n\nconst Carousel = forwardRef<CarouselElement, CarouselProps>(\n (\n { __scopeCarousel, children, orientation, opts, setApi, plugins, className, ...props }: ScopedProps<CarouselProps>,\n forwardedRef,\n ) => {\n const [carouselRef, api] = useEmblaCarousel(\n {\n ...opts,\n axis: orientation === 'vertical' ? 'y' : 'x',\n },\n plugins,\n );\n\n const [canScrollPrev, setCanScrollPrev] = useState(false);\n const [canScrollNext, setCanScrollNext] = useState(false);\n\n const onSelect = useCallback((carouselApi: CarouselApi) => {\n if (!carouselApi) {\n return;\n }\n\n setCanScrollPrev(carouselApi.canScrollPrev());\n setCanScrollNext(carouselApi.canScrollNext());\n }, []);\n\n const scrollPrev = useCallback(() => {\n api?.scrollPrev();\n }, [api]);\n\n const scrollNext = useCallback(() => {\n api?.scrollNext();\n }, [api]);\n\n const handleKeyDown = useCallback(\n (event: KeyboardEvent<HTMLDivElement>) => {\n if (event.key === 'ArrowLeft') {\n event.preventDefault();\n scrollPrev();\n } else if (event.key === 'ArrowRight') {\n event.preventDefault();\n scrollNext();\n }\n },\n [scrollPrev, scrollNext],\n );\n\n useEffect(() => {\n if (!api || !setApi) {\n return;\n }\n\n setApi(api);\n }, [api, setApi]);\n\n useEffect(() => {\n if (!api) {\n return;\n }\n\n onSelect(api);\n api.on('reInit', onSelect);\n api.on('select', onSelect);\n\n return () => {\n api.off('select', onSelect);\n };\n }, [api, onSelect]);\n\n return (\n <CarouselProvider\n api={api}\n canScrollNext={canScrollNext}\n canScrollPrev={canScrollPrev}\n carouselRef={carouselRef}\n opts={opts}\n orientation={orientation ?? (opts?.axis === 'y' ? 'vertical' : 'horizontal')}\n scope={__scopeCarousel}\n scrollNext={scrollNext}\n scrollPrev={scrollPrev}\n >\n <div\n ref={forwardedRef}\n aria-roledescription=\"carousel\"\n className={cn('relative', className)}\n role=\"region\"\n onKeyDownCapture={handleKeyDown}\n {...props}\n >\n {children}\n </div>\n </CarouselProvider>\n );\n },\n);\n\nCarousel.displayName = CAROUSEL_NAME;\n\n/* -----------------------------------------------------------------------------\n * Component: CarouselContent\n * -------------------------------------------------------------------------- */\n\nconst CAROUSEL_CONTENT_NAME = 'CarouselContent';\n\ntype CarouselContentElement = HTMLDivElement;\ninterface CarouselContentProps extends HTMLAttributes<HTMLDivElement> {\n classNames?: {\n content?: string;\n wrapper?: string;\n };\n}\n\nconst CarouselContent = forwardRef<CarouselContentElement, CarouselContentProps>(\n ({ __scopeCarousel, className, classNames, ...props }: ScopedProps<CarouselContentProps>, forwardedRef) => {\n const { carouselRef, orientation } = useCarouselContext(CAROUSEL_CONTENT_NAME, __scopeCarousel);\n\n return (\n <div ref={carouselRef} className={cn('overflow-hidden', classNames?.wrapper)}>\n <div\n ref={forwardedRef}\n className={cn(\n 'flex',\n orientation === 'horizontal' ? '-ml-4' : '-mt-4 flex-col',\n classNames?.content,\n className,\n )}\n {...props}\n />\n </div>\n );\n },\n);\n\nCarouselContent.displayName = CAROUSEL_CONTENT_NAME;\n\n/* -----------------------------------------------------------------------------\n * Component: CarouselItem\n * -------------------------------------------------------------------------- */\n\nconst CAROUSEL_ITEM_NAME = 'CarouselItem';\n\ntype CarouselItemElement = HTMLDivElement;\ntype CarouselItemProps = HTMLAttributes<HTMLDivElement>;\n\nconst CarouselItem = forwardRef<CarouselItemElement, CarouselItemProps>(\n ({ __scopeCarousel, className, ...props }: ScopedProps<CarouselItemProps>, forwardedRef) => {\n const { orientation } = useCarouselContext(CAROUSEL_ITEM_NAME, __scopeCarousel);\n\n return (\n <div\n ref={forwardedRef}\n aria-roledescription=\"slide\"\n className={cn('min-w-0 shrink-0 grow-0 basis-full', orientation === 'horizontal' ? 'pl-4' : 'pt-4', className)}\n role=\"group\"\n {...props}\n />\n );\n },\n);\n\nCarouselItem.displayName = CAROUSEL_ITEM_NAME;\n\n/* -----------------------------------------------------------------------------\n * Component: CarouselPrevious\n * -------------------------------------------------------------------------- */\n\nconst CAROUSEL_PREVIOUS_NAME = 'CarouselPrevious';\n\ntype CarouselPreviousElement = HTMLButtonElement;\ntype CarouselPreviousProps = ButtonProps;\n\nconst CarouselPrevious = forwardRef<CarouselPreviousElement, CarouselPreviousProps>(\n (\n {\n __scopeCarousel,\n className,\n icon = true,\n size = 'sm',\n variant = 'outline',\n ...props\n }: ScopedProps<CarouselPreviousProps>,\n forwardedRef,\n ) => {\n const { orientation, scrollPrev, canScrollPrev } = useCarouselContext(CAROUSEL_PREVIOUS_NAME, __scopeCarousel);\n\n return (\n <Button\n ref={forwardedRef}\n className={cn(\n 'absolute',\n orientation === 'horizontal'\n ? '-left-12 top-1/2 -translate-y-1/2'\n : '-top-12 left-1/2 -translate-x-1/2 rotate-90',\n className,\n )}\n disabled={!canScrollPrev}\n icon={icon}\n prefix={<ArrowLeftIcon />}\n size={size}\n variant={variant}\n onClick={scrollPrev}\n {...props}\n >\n <span className=\"sr-only\">Previous slide</span>\n </Button>\n );\n },\n);\n\nCarouselPrevious.displayName = CAROUSEL_PREVIOUS_NAME;\n\n/* -----------------------------------------------------------------------------\n * Component: CarouselNext\n * -------------------------------------------------------------------------- */\n\nconst CAROUSEL_NEXT_NAME = 'CarouselNext';\n\ntype CarouselNextElement = HTMLButtonElement;\ntype CarouselNextProps = ButtonProps;\n\nconst CarouselNext = forwardRef<CarouselNextElement, CarouselNextProps>(\n (\n {\n __scopeCarousel,\n className,\n icon = true,\n size = 'sm',\n variant = 'outline',\n ...props\n }: ScopedProps<CarouselNextProps>,\n forwardedRef,\n ) => {\n const { orientation, scrollNext, canScrollNext } = useCarouselContext(CAROUSEL_NEXT_NAME, __scopeCarousel);\n\n return (\n <Button\n ref={forwardedRef}\n className={cn(\n 'absolute',\n orientation === 'horizontal'\n ? '-right-12 top-1/2 -translate-y-1/2'\n : '-bottom-12 left-1/2 -translate-x-1/2 rotate-90',\n className,\n )}\n disabled={!canScrollNext}\n icon={icon}\n prefix={<ArrowRightIcon />}\n size={size}\n variant={variant}\n onClick={scrollNext}\n {...props}\n >\n <span className=\"sr-only\">Next slide</span>\n </Button>\n );\n },\n);\n\nCarouselNext.displayName = CAROUSEL_NEXT_NAME;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Carousel,\n CarouselContent,\n CarouselItem,\n CarouselNext,\n CarouselPrevious,\n createCarouselScope,\n type CarouselApi,\n type CarouselContentProps,\n type CarouselItemProps,\n type CarouselNextProps,\n type CarouselPreviousProps,\n type CarouselProps,\n};\n"]}
|
package/dist/chunk-DUDXLCPG.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as v}from"./chunk-EVRI6TWT.js";import{a as n}from"./chunk-VPYH6JWS.js";import{ChevronDownIcon as u}from"@radix-ui/react-icons";import*as t from"@radix-ui/react-navigation-menu";import{forwardRef as r}from"react";import{jsx as a,jsxs as m}from"react/jsx-runtime";var N=r(({children:i,className:e,...o},p)=>m(t.Root,{ref:p,className:n("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...o,children:[i,a(s,{})]}));N.displayName=t.Root.displayName;var d=r(({children:i,className:e,...o},p)=>m(t.List,{ref:p,className:n("group flex flex-1 list-none items-center justify-center space-x-1",e),...o,children:[i,a(g,{})]}));d.displayName=t.List.displayName;var w=t.Item,f=r(({children:i,className:e,...o},p)=>m(t.Trigger,{ref:p,className:v({variant:"ghost",className:["data-[state=open]:bg-accent data-[state=open]:text-accent-foreground","group",e]}),...o,children:[i,a(u,{"aria-hidden":"true",className:n("relative top-px ml-1 size-3 transition","group-data-[state=open]:rotate-180")})]}));f.displayName=t.Trigger.displayName;var M=r(({className:i,...e},o)=>a(t.Content,{ref:o,className:n("left-0 top-0 w-full md:absolute md:w-auto","data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in","data-[motion=from-end]:slide-in-from-right-52","data-[motion=from-start]:slide-in-from-left-52","data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out","data-[motion=to-end]:slide-out-to-right-52","data-[motion=to-start]:slide-out-to-left-52",i),...e}));M.displayName=t.Content.displayName;var R=t.Link,s=r(({className:i,...e},o)=>a("div",{className:"perspective-[125rem] absolute left-0 top-full flex justify-center",children:a(t.Viewport,{ref:o,className:n("bg-popover text-popover-foreground relative mt-1.5 w-full origin-[top_center] overflow-hidden rounded-md border p-1 shadow-md transition-[width,height]","h-[var(--radix-navigation-menu-viewport-height)] sm:w-[var(--radix-navigation-menu-viewport-width)]","data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-90","data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95",i),...e})}));s.displayName=t.Viewport.displayName;var g=r(({className:i,...e},o)=>a(t.Indicator,{ref:o,className:n("data-[state=visible]:animate-fade-in data-[state=hidden]:animate-fade-out top-full z-10 flex h-1.5 items-center justify-center overflow-hidden transition",i),...e,children:a("div",{className:"bg-popover relative top-[60%] size-2 rotate-45 rounded-tl-sm"})}));g.displayName=t.Indicator.displayName;export{N as a,d as b,w as c,f as d,M as e,R as f};
|
|
2
|
-
//# sourceMappingURL=chunk-DUDXLCPG.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/navigation-menu.tsx"],"names":["ChevronDownIcon","NavigationMenuPrimitive","forwardRef","jsx","jsxs","NavigationMenu","children","className","props","forwardedRef","cn","NavigationMenuViewport","NavigationMenuList","NavigationMenuIndicator","NavigationMenuItem","NavigationMenuTrigger","buttonVariants","NavigationMenuContent","NavigationMenuLink"],"mappings":"gFAAA,OAAS,mBAAAA,MAAuB,wBAChC,UAAYC,MAA6B,kCACzC,OAA2D,cAAAC,MAAkB,QAczE,OAME,OAAAC,EANF,QAAAC,MAAA,oBAFJ,IAAMC,EAAiBH,EACrB,CAAC,CAAE,SAAAI,EAAU,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAClCL,EAAyB,OAAxB,CACC,IAAKK,EACL,UAAWC,EAAG,kEAAmEH,CAAS,EACzF,GAAGC,EAEH,UAAAF,EACDH,EAACQ,EAAA,EAAuB,GAC1B,CAEJ,EAEAN,EAAe,YAAsC,OAAK,YAS1D,IAAMO,EAAqBV,EACzB,CAAC,CAAE,SAAAI,EAAU,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAClCL,EAAyB,OAAxB,CACC,IAAKK,EACL,UAAWC,EAAG,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igationMenuPrimitive from '@radix-ui/react-navigation-menu';\nimport { type ComponentPropsWithoutRef, type ComponentRef, forwardRef } from 'react';\n\nimport { cn } from '@/lib/utils';\nimport { buttonVariants } from '@/styles/button-variants';\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenu\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuElement = ComponentRef<typeof NavigationMenuPrimitive.Root>;\ntype NavigationMenuProps = ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Root>;\n\nconst NavigationMenu = forwardRef<NavigationMenuElement, NavigationMenuProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <NavigationMenuPrimitive.Root\n ref={forwardedRef}\n className={cn('relative z-10 flex max-w-max flex-1 items-center justify-center', className)}\n {...props}\n >\n {children}\n <NavigationMenuViewport />\n </NavigationMenuPrimitive.Root>\n ),\n);\n\nNavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenuList\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuListElement = ComponentRef<typeof NavigationMenuPrimitive.List>;\ntype NavigationMenuListProps = ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.List>;\n\nconst NavigationMenuList = forwardRef<NavigationMenuListElement, NavigationMenuListProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <NavigationMenuPrimitive.List\n ref={forwardedRef}\n className={cn('group flex flex-1 list-none items-center justify-center space-x-1', className)}\n {...props}\n >\n {children}\n <NavigationMenuIndicator />\n </NavigationMenuPrimitive.List>\n ),\n);\n\nNavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenuItem\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuItemProps = ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Item>;\n\nconst NavigationMenuItem = NavigationMenuPrimitive.Item;\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenuContent\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuTriggerElement = ComponentRef<typeof NavigationMenuPrimitive.Trigger>;\ntype NavigationMenuTriggerProps = ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Trigger>;\n\nconst NavigationMenuTrigger = forwardRef<NavigationMenuTriggerElement, NavigationMenuTriggerProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <NavigationMenuPrimitive.Trigger\n ref={forwardedRef}\n className={buttonVariants({\n variant: 'ghost',\n className: ['data-[state=open]:bg-accent data-[state=open]:text-accent-foreground', 'group', className],\n })}\n {...props}\n >\n {children}\n <ChevronDownIcon\n aria-hidden=\"true\"\n className={cn('relative top-px ml-1 size-3 transition', 'group-data-[state=open]:rotate-180')}\n />\n </NavigationMenuPrimitive.Trigger>\n ),\n);\n\nNavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenuContent\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuContentElement = ComponentRef<typeof NavigationMenuPrimitive.Content>;\ntype NavigationMenuContentProps = ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Content>;\n\nconst NavigationMenuContent = forwardRef<NavigationMenuContentElement, NavigationMenuContentProps>(\n ({ className, ...props }, forwardedRef) => (\n <NavigationMenuPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'left-0 top-0 w-full md:absolute md:w-auto',\n 'data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in',\n 'data-[motion=from-end]:slide-in-from-right-52',\n 'data-[motion=from-start]:slide-in-from-left-52',\n 'data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out',\n 'data-[motion=to-end]:slide-out-to-right-52',\n 'data-[motion=to-start]:slide-out-to-left-52',\n className,\n )}\n {...props}\n />\n ),\n);\n\nNavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenuLink\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuLinkProps = ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Link>;\n\nconst NavigationMenuLink = NavigationMenuPrimitive.Link;\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenuViewport\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuViewportElement = ComponentRef<typeof NavigationMenuPrimitive.Viewport>;\ntype NavigationMenuViewportProps = ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Viewport>;\n\nconst NavigationMenuViewport = forwardRef<NavigationMenuViewportElement, NavigationMenuViewportProps>(\n ({ className, ...props }, forwardedRef) => (\n <div className=\"perspective-[125rem] absolute left-0 top-full flex justify-center\">\n <NavigationMenuPrimitive.Viewport\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground relative mt-1.5 w-full origin-[top_center] overflow-hidden rounded-md border p-1 shadow-md transition-[width,height]',\n 'h-[var(--radix-navigation-menu-viewport-height)] sm:w-[var(--radix-navigation-menu-viewport-width)]',\n 'data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-90',\n 'data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95',\n className,\n )}\n {...props}\n />\n </div>\n ),\n);\n\nNavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenuIndicator\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuIndicatorElement = ComponentRef<typeof NavigationMenuPrimitive.Indicator>;\ntype NavigationMenuIndicatorProps = ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Indicator>;\n\nconst NavigationMenuIndicator = forwardRef<NavigationMenuIndicatorElement, NavigationMenuIndicatorProps>(\n ({ className, ...props }, forwardedRef) => (\n <NavigationMenuPrimitive.Indicator\n ref={forwardedRef}\n className={cn(\n 'data-[state=visible]:animate-fade-in data-[state=hidden]:animate-fade-out top-full z-10 flex h-1.5 items-center justify-center overflow-hidden transition',\n className,\n )}\n {...props}\n >\n <div className=\"bg-popover relative top-[60%] size-2 rotate-45 rounded-tl-sm\" />\n </NavigationMenuPrimitive.Indicator>\n ),\n);\n\nNavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n NavigationMenu,\n NavigationMenuContent,\n NavigationMenuItem,\n NavigationMenuLink,\n NavigationMenuList,\n NavigationMenuTrigger,\n type NavigationMenuContentProps,\n type NavigationMenuItemProps,\n type NavigationMenuLinkProps,\n type NavigationMenuListProps,\n type NavigationMenuProps,\n type NavigationMenuTriggerProps,\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-EEDKRHHZ.cjs","../src/components/select.tsx"],"names":["Select","SelectGroup","SelectValue","SelectTrigger","forwardRef","children","className","size","props","forwardedRef","jsxs","buttonVariants","jsx","CaretSortIcon","SelectScrollUpButton","cn","ChevronUpIcon","SelectScrollDownButton","ChevronDownIcon","SelectContent","position","SelectLabel","SelectItem","CheckIcon","SelectSeparator"],"mappings":"AAAA,mZAAwC,wDAAyC,mDCAR,oGACxC,8BACiE,+CAqC9F,IA3BEA,CAAAA,CAAyB,CAAA,CAAA,IAAA,CAOzBC,CAAAA,aAA8B,CAAA,CAAA,KAAA,CAO9BC,CAAAA,aAA8B,CAAA,CAAA,KAAA,CAW9BC,CAAAA,aAAgBC,+BAAAA,CACnB,CAAE,QAAA,CAAAC,CAAAA,CAAU,SAAA,CAAAC,CAAAA,CAAW,IAAA,CAAAC,CAAAA,CAAM,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxCC,8BAAAA,CAAiB,CAAA,OAAA,CAAhB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,CACT,OAAA,CAAS,SAAA,CACT,IAAA,CAAAJ,CAAAA,CACA,SAAA,CAAW,CAAC,2DAAA,CAA6DD,CAAS,CACpF,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IAAMC,CAAAA,CAAalB,+BAAAA,CAAgD,CAAE,QAAA,CAAAC,CAAAA,CAAU,SAAA,CAAAC,CAAAA,CAAW,GAAGE,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACpGC,8BAAAA,CAAiB,CAAA,IAAA,CAAhB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWM,iCAAAA,+FACT,CACA,iEAAA,CACA,4DAAA,CACAT,CACF,CAAA,CACC,GAAGE,CAAAA,CAEJ,QAAA,CAAA,CAAAI,6BAAAA,MAAC,CAAA,CAAK,SAAA,CAAU,4DAAA,CACd,QAAA,CAAAA,6BAAAA,CAAiB,CAAA,aAAA,CAAhB,CACC,QAAA,CAAAA,6BAAAA,qBAACW,CAAA,CAAU,SAAA,CAAU,QAAA,CAAS,CAAA,CAChC,CAAA,CACF,CAAA,CACAX,6BAAAA,CAAiB,CAAA,QAAA,CAAhB,CAA0B,QAAA,CAAAP,CAAAA,CAAS,CAAA,CAAA,CACtC,CACD,CAAA,CAEDiB,CAAAA,CAAW,WAAA,CAA8B,CAAA,CAAA,IAAA,CAAK,WAAA,CAS9C,IAAME,CAAAA,CAAkBpB,+BAAAA,CACrB,CAAE,SAAA,CAAAE,CAAAA,CAAW,GAAGE,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBG,6BAAAA,CAAiB,CAAA,SAAA,CAAhB,CAA0B,GAAA,CAAKH,CAAAA,CAAc,SAAA,CAAWM,iCAAAA,yBAAG,CAA2BT,CAAS,CAAA,CAAI,GAAGE,CAAAA,CAAO,CAElH,CAAA,CAEAgB,CAAAA,CAAgB,WAAA,CAA8B,CAAA,CAAA,SAAA,CAAU,WAAA,CAAA,qJAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-EEDKRHHZ.cjs","sourcesContent":[null,"import { CaretSortIcon, CheckIcon, ChevronDownIcon, ChevronUpIcon } from '@radix-ui/react-icons';\nimport * as SelectPrimitive from '@radix-ui/react-select';\nimport { type ComponentProps, type ComponentPropsWithoutRef, type ComponentRef, forwardRef } from 'react';\n\nimport { cn } from '@/lib/utils';\nimport { buttonVariants, type ButtonVariantsProps } from '@/styles/button-variants';\n\n/* -----------------------------------------------------------------------------\n * Component: Select\n * -------------------------------------------------------------------------- */\n\ntype SelectProps = ComponentProps<typeof SelectPrimitive.Root>;\nconst Select = SelectPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectGroup\n * -------------------------------------------------------------------------- */\n\ntype SelectGroupProps = ComponentPropsWithoutRef<typeof SelectPrimitive.Group>;\nconst SelectGroup = SelectPrimitive.Group;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectValue\n * -------------------------------------------------------------------------- */\n\ntype SelectValueProps = ComponentPropsWithoutRef<typeof SelectPrimitive.Value>;\nconst SelectValue = SelectPrimitive.Value;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectTrigger\n * -------------------------------------------------------------------------- */\n\ntype SelectTriggerElement = ComponentRef<typeof SelectPrimitive.Trigger>;\ninterface SelectTriggerProps extends ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger> {\n size?: ButtonVariantsProps['size'];\n}\n\nconst SelectTrigger = forwardRef<SelectTriggerElement, SelectTriggerProps>(\n ({ children, className, size, ...props }, forwardedRef) => (\n <SelectPrimitive.Trigger\n ref={forwardedRef}\n className={buttonVariants({\n variant: 'outline',\n size,\n className: ['w-full justify-between px-3 font-normal [&>span]:truncate', className],\n })}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <CaretSortIcon className=\"size-4 shrink-0 opacity-50\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n ),\n);\n\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectScrollUpButton\n * -------------------------------------------------------------------------- */\n\ntype SelectScrollUpButtonElement = ComponentRef<typeof SelectPrimitive.ScrollUpButton>;\ntype SelectScrollUpButtonProps = ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>;\n\nconst SelectScrollUpButton = forwardRef<SelectScrollUpButtonElement, SelectScrollUpButtonProps>(\n ({ className, ...props }, forwardedRef) => (\n <SelectPrimitive.ScrollUpButton\n ref={forwardedRef}\n className={cn('flex cursor-pointer items-center justify-center py-1', className)}\n {...props}\n >\n <ChevronUpIcon />\n </SelectPrimitive.ScrollUpButton>\n ),\n);\n\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectScrollDownButton\n * -------------------------------------------------------------------------- */\n\ntype SelectScrollDownButtonElement = ComponentRef<typeof SelectPrimitive.ScrollDownButton>;\ntype SelectScrollDownButtonProps = ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>;\n\nconst SelectScrollDownButton = forwardRef<SelectScrollDownButtonElement, SelectScrollDownButtonProps>(\n ({ className, ...props }, forwardedRef) => (\n <SelectPrimitive.ScrollDownButton\n ref={forwardedRef}\n className={cn('flex cursor-pointer items-center justify-center py-1', className)}\n {...props}\n >\n <ChevronDownIcon />\n </SelectPrimitive.ScrollDownButton>\n ),\n);\n\nSelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectContent\n * -------------------------------------------------------------------------- */\n\ntype SelectContentElement = ComponentRef<typeof SelectPrimitive.Content>;\ntype SelectContentProps = ComponentPropsWithoutRef<typeof SelectPrimitive.Content>;\n\nconst SelectContent = forwardRef<SelectContentElement, SelectContentProps>(\n ({ children, className, position = 'popper', ...props }, forwardedRef) => (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border 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=bottom]:slide-in-from-top-2',\n 'data-[state=open]:data-[side=left]:slide-in-from-right-2',\n 'data-[state=open]:data-[side=right]:slide-in-from-left-2',\n 'data-[state=open]:data-[side=top]:slide-in-from-bottom-2',\n 'data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95',\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 'data-[state=closed]:data-[side=right]:slide-out-to-left-2',\n 'data-[state=closed]:data-[side=top]:slide-out-to-bottom-2',\n position === 'popper' && [\n 'data-[side=bottom]:translate-y-1',\n 'data-[side=left]:-translate-x-1',\n 'data-[side=right]:translate-x-1',\n 'data-[side=top]:-translate-y-1',\n ],\n className,\n )}\n position={position}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n className={cn(\n 'p-1',\n position === 'popper' &&\n 'h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]',\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n ),\n);\n\nSelectContent.displayName = SelectPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectLabel\n * -------------------------------------------------------------------------- */\n\ntype SelectLabelElement = ComponentRef<typeof SelectPrimitive.Label>;\ntype SelectLabelProps = ComponentPropsWithoutRef<typeof SelectPrimitive.Label>;\n\nconst SelectLabel = forwardRef<SelectLabelElement, SelectLabelProps>(({ className, ...props }, forwardedRef) => (\n <SelectPrimitive.Label\n ref={forwardedRef}\n className={cn('gap-x-2 px-3 py-1.5', 'flex items-center text-sm font-semibold', className)}\n {...props}\n />\n));\n\nSelectLabel.displayName = SelectPrimitive.Label.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectItem\n * -------------------------------------------------------------------------- */\n\ntype SelectItemElement = ComponentRef<typeof SelectPrimitive.Item>;\ntype SelectItemProps = ComponentPropsWithoutRef<typeof SelectPrimitive.Item>;\n\nconst SelectItem = forwardRef<SelectItemElement, SelectItemProps>(({ children, className, ...props }, forwardedRef) => (\n <SelectPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'relative flex w-full cursor-pointer select-none items-center rounded py-1.5 pl-2 pr-8 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 right-2 flex size-3.5 items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n));\n\nSelectItem.displayName = SelectPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SelectSeparator\n * -------------------------------------------------------------------------- */\n\ntype SelectSeparatorElement = ComponentRef<typeof SelectPrimitive.Separator>;\ntype SelectSeparatorProps = ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>;\n\nconst SelectSeparator = forwardRef<SelectSeparatorElement, SelectSeparatorProps>(\n ({ className, ...props }, forwardedRef) => (\n <SelectPrimitive.Separator ref={forwardedRef} className={cn('bg-muted mx-2 my-1 h-px', className)} {...props} />\n ),\n);\n\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectLabel,\n SelectScrollDownButton,\n SelectScrollUpButton,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n type SelectContentProps,\n type SelectGroupProps,\n type SelectItemProps,\n type SelectLabelProps,\n type SelectProps,\n type SelectScrollDownButtonProps,\n type SelectScrollUpButtonProps,\n type SelectSeparatorProps,\n type SelectTriggerProps,\n type SelectValueProps,\n};\n"]}
|
package/dist/chunk-GUOQM6BL.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _reactcheckbox = require('@radix-ui/react-checkbox'); var e = _interopRequireWildcard(_reactcheckbox);var _reacticons = require('@radix-ui/react-icons');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var n=_react.forwardRef.call(void 0, ({className:r,...t},c)=>_jsxruntime.jsx.call(void 0, e.Root,{ref:c,className:_chunkDD6AVCRHcjs.a.call(void 0, "peer","border-input text-primary-foreground inline-flex size-4 shrink-0 items-center justify-center rounded border shadow-sm transition","hover:border-primary","aria-checked:border-primary aria-checked:bg-primary","focus-visible:ring-ring focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","disabled:cursor-default disabled:opacity-50",r),...t,children:_jsxruntime.jsx.call(void 0, e.Indicator,{children:_jsxruntime.jsx.call(void 0, _reacticons.CheckIcon,{className:"size-3.5"})})}));n.displayName=e.Root.displayName;exports.a = n;
|
|
2
|
-
//# sourceMappingURL=chunk-GUOQM6BL.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-GUOQM6BL.cjs","../src/components/checkbox.tsx"],"names":["Checkbox","forwardRef","className","props","forwardedRef","jsx","cn","CheckIcon"],"mappings":"AAAA,mZAAwC,0GCAL,mDACT,8BACmD,+CA0BvE,IAfAA,CAAAA,CAAWC,+BAAAA,CAA4C,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACpFC,6BAAAA,CAAmB,CAAA,IAAA,CAAlB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,MACT,CACA,kIAAA,CACA,sBAAA,CACA,qDAAA,CACA,qGAAA,CACA,6CAAA,CACAJ,CACF,CAAA,CACC,GAAGC,CAAAA,CAEJ,QAAA,CAAAE,6BAAAA,CAAmB,CAAA,SAAA,CAAlB,CACC,QAAA,CAAAA,6BAAAA,qBAACE,CAAA,CAAU,SAAA,CAAU,UAAA,CAAW,CAAA,CAClC,CAAA,CACF,CACD,CAAA,CAEDP,CAAAA,CAAS,WAAA,CAAgC,CAAA,CAAA,IAAA,CAAK,WAAA,CAAA,cAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-GUOQM6BL.cjs","sourcesContent":[null,"import * as CheckboxPrimitive from '@radix-ui/react-checkbox';\nimport { CheckIcon } from '@radix-ui/react-icons';\nimport { type ComponentPropsWithoutRef, type ComponentRef, forwardRef } from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Checkbox\n * -------------------------------------------------------------------------- */\n\ntype CheckboxElement = ComponentRef<typeof CheckboxPrimitive.Root>;\ntype CheckboxProps = ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>;\n\nconst Checkbox = forwardRef<CheckboxElement, CheckboxProps>(({ className, ...props }, forwardedRef) => (\n <CheckboxPrimitive.Root\n ref={forwardedRef}\n className={cn(\n 'peer',\n 'border-input text-primary-foreground inline-flex size-4 shrink-0 items-center justify-center rounded border shadow-sm transition',\n 'hover:border-primary',\n 'aria-checked:border-primary aria-checked:bg-primary',\n 'focus-visible:ring-ring focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2',\n 'disabled:cursor-default disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <CheckboxPrimitive.Indicator>\n <CheckIcon className=\"size-3.5\" />\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n));\n\nCheckbox.displayName = CheckboxPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Checkbox, type CheckboxProps };\n"]}
|
package/dist/chunk-GV5FQF4J.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";import{a as p}from"./chunk-EVRI6TWT.js";import{a as n}from"./chunk-VPYH6JWS.js";import{DayFlag as d,DayPicker as c,SelectionState as i,UI as e}from"@codefast-ui/day-picker";import{ChevronDownIcon as s,ChevronLeftIcon as g,ChevronRightIcon as m,ChevronUpIcon as y,DotFilledIcon as b}from"@radix-ui/react-icons";import{format as f}from"date-fns";import{useEffect as h,useRef as C}from"react";import{jsx as o,jsxs as P}from"react/jsx-runtime";function D({orientation:r,...t}){switch(r){case"up":return o(y,{className:"size-4",...t});case"down":return o(s,{className:"size-4",...t});case"left":return o(g,{className:"size-4",...t});case"right":return o(m,{className:"size-4",...t});default:return o(b,{className:"size-4",...t})}}function x({modifiers:r,className:t,day:a,...u}){let l=C(null);return h(()=>{r.focused&&l.current?.focus()},[r.focused]),o("button",{ref:l,className:p({icon:!0,size:"sm",variant:r.selected&&!r.range_middle?"default":"ghost",className:["focus-visible:ring-1 focus-visible:ring-offset-0",(!r.selected||r.range_middle)&&[r.today?"bg-accent":"hover:border-accent hover:bg-transparent",r.outside&&"text-opacity-30"],r.range_middle&&"bg-transparent",t]}),type:"button",...u})}function z({className:r,classNames:t,...a}){return o(c,{showOutsideDays:!0,className:n("p-3",r),classNames:{[d.disabled]:n("",t?.[d.disabled]),[d.focused]:n("",t?.[d.focused]),[d.hidden]:n("invisible",t?.[d.hidden]),[d.outside]:n(!a.mode&&"text-opacity-30",t?.[d.outside]),[d.today]:n(!a.mode&&"bg-accent rounded-md",t?.[d.today]),[i.range_end]:n("to-accent rounded-r-md bg-gradient-to-l from-transparent to-50% first:rounded-l-md",t?.[i.range_end]),[i.range_middle]:n("bg-accent first:rounded-l-md last:rounded-r-md",t?.[i.range_middle]),[i.range_start]:n("to-accent rounded-l-md bg-gradient-to-r from-transparent to-50% last:rounded-r-md",t?.[i.range_start]),[i.selected]:n("",t?.[i.selected]),[e.CaptionLabel]:n("inline-flex items-center",t?.[e.CaptionLabel]),[e.Chevron]:n("",t?.[e.Chevron]),[e.Day]:n("py-0",!a.mode&&"text-foreground mx-px flex min-h-9 min-w-9 items-center justify-center text-sm font-medium",t?.[e.Day]),[e.DayButton]:n("border border-transparent",t?.[e.DayButton]),[e.Dropdown]:n("absolute size-full appearance-none opacity-0",t?.[e.Dropdown]),[e.DropdownRoot]:n("relative inline-flex",t?.[e.DropdownRoot]),[e.Dropdowns]:n("inline-flex items-center gap-2",t?.[e.Dropdowns]),[e.Footer]:n("text-sm",t?.[e.Footer]),[e.Month]:n("grid grid-rows-[2rem_1fr] gap-4",!((a.numberOfMonths||0)>1)&&"w-full",t?.[e.Month]),[e.MonthCaption]:n("flex w-full justify-center text-sm font-medium",t?.[e.MonthCaption]),[e.MonthGrid]:n("relative block table-fixed border-collapse space-y-2 [&>thead]:block",t?.[e.MonthGrid]),[e.Months]:n("relative flex flex-wrap gap-4",t?.[e.Months]),[e.MonthsDropdown]:n("",t?.[e.MonthsDropdown]),[e.Nav]:n("-mr-4",t?.[e.Nav]),[e.NextMonthButton]:p({className:["absolute end-0",t?.[e.NextMonthButton]],icon:!0,size:"xs",variant:"outline"}),[e.PreviousMonthButton]:p({className:["absolute start-0",t?.[e.PreviousMonthButton]],icon:!0,size:"xs",variant:"outline"}),[e.Root]:n("inline-grid gap-4",t?.[e.Root]),[e.Week]:n("flex justify-between",t?.[e.Week]),[e.WeekNumber]:n("text-foreground/50 size-9 text-center text-xs",t?.[e.WeekNumber]),[e.WeekNumberHeader]:n("",t?.[e.WeekNumberHeader]),[e.Weekday]:n("text-muted-foreground flex-1 text-sm font-normal",t?.[e.Weekday]),[e.Weekdays]:n("flex justify-between",t?.[e.Weekdays]),[e.Weeks]:n("grid gap-y-2",t?.[e.Weeks]),[e.YearsDropdown]:n("",t?.[e.YearsDropdown])},components:{Chevron:D,DayButton:x},...a})}function B({date:r,formatStr:t="LLL dd, y",placeholder:a="Pick a date"}){if(!r?.from)return o("span",{className:"truncate",children:a});let u=f(r.from,t);if(!r.to)return o("span",{className:"truncate",children:u});let l=f(r.to,t);return P("span",{className:"truncate",children:[u," - ",l]})}function S({date:r,formatStr:t="PPP",placeholder:a="Pick a date"}){return r?o("span",{className:"truncate",children:f(r,t)}):o("span",{className:"truncate",children:a})}export{z as a,B as b,S as c};
|
|
2
|
-
//# sourceMappingURL=chunk-GV5FQF4J.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/calendar.tsx"],"names":["DayFlag","DayPicker","SelectionState","UI","ChevronDownIcon","ChevronLeftIcon","ChevronRightIcon","ChevronUpIcon","DotFilledIcon","format","useEffect","useRef","jsx","jsxs","Chevron","orientation","props","DayButton","modifiers","className","_","buttonRef","buttonVariants","Calendar","classNames","cn","CalendarRangeLabel","date","formatStr","placeholder","formattedFromDate","formattedToDate","CalendarLabel"],"mappings":"gFAEA,OAIE,WAAAA,EACA,aAAAC,EAGA,kBAAAC,EACA,MAAAC,MACK,0BACP,OACE,mBAAAC,EACA,mBAAAC,EACA,oBAAAC,EACA,iBAAAC,EACA,iBAAAC,MACK,wBACP,OAAS,UAAAC,MAAc,WACvB,OAAwC,aAAAC,EAAW,UAAAC,MAAc,QAcpD,cAAAC,EAsKT,QAAAC,MAtKS,oBAHb,SAASC,EAAQ,CAAE,YAAAC,EAAa,GAAGC,CAAM,EAA8B,CACrE,OAAQD,EAAa,CACnB,IAAK,KACH,OAAOH,EAACL,EAAA,CAAc,UAAU,SAAU,GAAGS,EAAO,EAGtD,IAAK,OACH,OAAOJ,EAACR,EAAA,CAAgB,UAAU,SAAU,GAAGY,EAAO,EAGxD,IAAK,OACH,OAAOJ,EAACP,EAAA,CAAgB,UAAU,SAAU,GAAGW,EAAO,EAGxD,IAAK,QACH,OAAOJ,EAACN,EAAA,CAAiB,UAAU,SAAU,GAAGU,EAAO,EAGzD,QACE,OAAOJ,EAACJ,EAAA,CAAc,UAAU,SAAU,GAAGQ,EAAO,CACxD,CACF,CAMA,SA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MC,EAAkBtB,EAAOkB,EAAK,GAAIC,CAAS,EAEjD,OACEf,EAAC,QAAK,UAAU,WACb,UAAAiB,EAAkB,MAAIC,GACzB,CAEJ,CAYA,SAASC,EAAc,CACrB,KAAAL,EACA,UAAAC,EAAY,MACZ,YAAAC,EAAc,aAChB,EAA6C,CAC3C,OAAKF,EAIEf,EAAC,QAAK,UAAU,WAAY,SAAAH,EAAOkB,EAAMC,CAAS,EAAE,EAHlDhB,EAAC,QAAK,UAAU,WAAY,SAAAiB,EAAY,CAInD","sourcesContent":["'use client';\n\nimport {\n type Components,\n type DateRange,\n type DayButtonProps,\n DayFlag,\n DayPicker,\n type DayPickerProps,\n type Matcher,\n SelectionState,\n UI,\n} from '@codefast-ui/day-picker';\nimport {\n ChevronDownIcon,\n ChevronLeftIcon,\n ChevronRightIcon,\n ChevronUpIcon,\n DotFilledIcon,\n} from '@radix-ui/react-icons';\nimport { format } from 'date-fns';\nimport { type ComponentProps, type JSX, useEffect, useRef } from 'react';\n\nimport { cn } from '@/lib/utils';\nimport { buttonVariants } from '@/styles/button-variants';\n\n/* -----------------------------------------------------------------------------\n * Component: Chevron\n * -------------------------------------------------------------------------- */\n\ntype ChevronProps = ComponentProps<Components['Chevron']>;\n\nfunction Chevron({ orientation, ...props }: ChevronProps): JSX.Element {\n switch (orientation) {\n case 'up': {\n return <ChevronUpIcon className=\"size-4\" {...props} />;\n }\n\n case 'down': {\n return <ChevronDownIcon className=\"size-4\" {...props} />;\n }\n\n case 'left': {\n return <ChevronLeftIcon className=\"size-4\" {...props} />;\n }\n\n case 'right': {\n return <ChevronRightIcon className=\"size-4\" {...props} />;\n }\n\n default:\n return <DotFilledIcon className=\"size-4\" {...props} />;\n }\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DayButton\n * -------------------------------------------------------------------------- */\n\nfunction DayButton({ modifiers, className, day: _, ...props }: DayButtonProps): JSX.Element {\n const buttonRef = useRef<HTMLButtonElement>(null);\n\n useEffect(() => {\n if (modifiers.focused) {\n buttonRef.current?.focus();\n }\n }, [modifiers.focused]);\n\n return (\n <button\n ref={buttonRef}\n className={buttonVariants({\n icon: true,\n size: 'sm',\n variant: modifiers.selected && !modifiers.range_middle ? 'default' : 'ghost',\n className: [\n 'focus-visible:ring-1 focus-visible:ring-offset-0',\n (!modifiers.selected || modifiers.range_middle) && [\n modifiers.today ? 'bg-accent' : 'hover:border-accent hover:bg-transparent',\n modifiers.outside && 'text-opacity-30',\n ],\n modifiers.range_middle && 'bg-transparent',\n className,\n ],\n })}\n type=\"button\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: Calendar\n * -------------------------------------------------------------------------- */\n\ntype CalendarProps = DayPickerProps;\n\nfunction Calendar({ className, classNames, ...props }: CalendarProps): JSX.Element {\n return (\n <DayPicker\n showOutsideDays\n className={cn('p-3', className)}\n classNames={{\n [DayFlag.disabled]: cn('', classNames?.[DayFlag.disabled]),\n [DayFlag.focused]: cn('', classNames?.[DayFlag.focused]),\n [DayFlag.hidden]: cn('invisible', classNames?.[DayFlag.hidden]),\n [DayFlag.outside]: cn(!props.mode && 'text-opacity-30', classNames?.[DayFlag.outside]),\n [DayFlag.today]: cn(!props.mode && 'bg-accent rounded-md', classNames?.[DayFlag.today]),\n [SelectionState.range_end]: cn(\n 'to-accent rounded-r-md bg-gradient-to-l from-transparent to-50% first:rounded-l-md',\n classNames?.[SelectionState.range_end],\n ),\n [SelectionState.range_middle]: cn(\n 'bg-accent first:rounded-l-md last:rounded-r-md',\n classNames?.[SelectionState.range_middle],\n ),\n [SelectionState.range_start]: cn(\n 'to-accent rounded-l-md bg-gradient-to-r from-transparent to-50% last:rounded-r-md',\n classNames?.[SelectionState.range_start],\n ),\n [SelectionState.selected]: cn('', classNames?.[SelectionState.selected]),\n [UI.CaptionLabel]: cn('inline-flex items-center', classNames?.[UI.CaptionLabel]),\n [UI.Chevron]: cn('', classNames?.[UI.Chevron]),\n [UI.Day]: cn(\n 'py-0',\n !props.mode && 'text-foreground mx-px flex min-h-9 min-w-9 items-center justify-center text-sm font-medium',\n classNames?.[UI.Day],\n ),\n [UI.DayButton]: cn('border border-transparent', classNames?.[UI.DayButton]),\n [UI.Dropdown]: cn('absolute size-full appearance-none opacity-0', classNames?.[UI.Dropdown]),\n [UI.DropdownRoot]: cn('relative inline-flex', classNames?.[UI.DropdownRoot]),\n [UI.Dropdowns]: cn('inline-flex items-center gap-2', classNames?.[UI.Dropdowns]),\n [UI.Footer]: cn('text-sm', classNames?.[UI.Footer]),\n [UI.Month]: cn(\n 'grid grid-rows-[2rem_1fr] gap-4',\n !((props.numberOfMonths || 0) > 1) && 'w-full',\n classNames?.[UI.Month],\n ),\n [UI.MonthCaption]: cn('flex w-full justify-center text-sm font-medium', classNames?.[UI.MonthCaption]),\n [UI.MonthGrid]: cn(\n 'relative block table-fixed border-collapse space-y-2 [&>thead]:block',\n classNames?.[UI.MonthGrid],\n ),\n [UI.Months]: cn('relative flex flex-wrap gap-4', classNames?.[UI.Months]),\n [UI.MonthsDropdown]: cn('', classNames?.[UI.MonthsDropdown]),\n [UI.Nav]: cn('-mr-4', classNames?.[UI.Nav]),\n [UI.NextMonthButton]: buttonVariants({\n className: ['absolute end-0', classNames?.[UI.NextMonthButton]],\n icon: true,\n size: 'xs',\n variant: 'outline',\n }),\n [UI.PreviousMonthButton]: buttonVariants({\n className: ['absolute start-0', classNames?.[UI.PreviousMonthButton]],\n icon: true,\n size: 'xs',\n variant: 'outline',\n }),\n [UI.Root]: cn('inline-grid gap-4', classNames?.[UI.Root]),\n [UI.Week]: cn('flex justify-between', classNames?.[UI.Week]),\n [UI.WeekNumber]: cn('text-foreground/50 size-9 text-center text-xs', classNames?.[UI.WeekNumber]),\n [UI.WeekNumberHeader]: cn('', classNames?.[UI.WeekNumberHeader]),\n [UI.Weekday]: cn('text-muted-foreground flex-1 text-sm font-normal', classNames?.[UI.Weekday]),\n [UI.Weekdays]: cn('flex justify-between', classNames?.[UI.Weekdays]),\n [UI.Weeks]: cn('grid gap-y-2', classNames?.[UI.Weeks]),\n [UI.YearsDropdown]: cn('', classNames?.[UI.YearsDropdown]),\n }}\n components={{ Chevron, DayButton }}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CalendarRangeLabel\n * -------------------------------------------------------------------------- */\n\ninterface CalendarRangeLabelProps {\n date: DateRange | undefined;\n formatStr?: string;\n placeholder?: string;\n}\n\nfunction CalendarRangeLabel({\n date,\n formatStr = 'LLL dd, y',\n placeholder = 'Pick a date',\n}: CalendarRangeLabelProps): string | JSX.Element {\n if (!date?.from) {\n return <span className=\"truncate\">{placeholder}</span>;\n }\n\n const formattedFromDate = format(date.from, formatStr);\n\n if (!date.to) {\n return <span className=\"truncate\">{formattedFromDate}</span>;\n }\n\n const formattedToDate = format(date.to, formatStr);\n\n return (\n <span className=\"truncate\">\n {formattedFromDate} - {formattedToDate}\n </span>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CalendarLabel\n * -------------------------------------------------------------------------- */\n\ninterface CalendarLabelProps {\n date: Date | undefined;\n formatStr?: string;\n placeholder?: string;\n}\n\nfunction CalendarLabel({\n date,\n formatStr = 'PPP',\n placeholder = 'Pick a date',\n}: CalendarLabelProps): string | JSX.Element {\n if (!date) {\n return <span className=\"truncate\">{placeholder}</span>;\n }\n\n return <span className=\"truncate\">{format(date, formatStr)}</span>;\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Calendar,\n CalendarLabel,\n CalendarRangeLabel,\n type CalendarLabelProps,\n type CalendarProps,\n type CalendarRangeLabelProps,\n type DateRange,\n type Matcher,\n};\n"]}
|
package/dist/chunk-I6LNZ6KP.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _reacticons = require('@radix-ui/react-icons');var _reactslot = require('@radix-ui/react-slot');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var c=_react.forwardRef.call(void 0, ({...e},r)=>_jsxruntime.jsx.call(void 0, "nav",{ref:r,"aria-label":"breadcrumb",...e}));c.displayName="Breadcrumb";var l=_react.forwardRef.call(void 0, ({className:e,...r},a)=>_jsxruntime.jsx.call(void 0, "ol",{ref:a,className:_chunkDD6AVCRHcjs.a.call(void 0, "text-muted-foreground flex flex-wrap items-center gap-1.5 break-words text-sm sm:gap-2",e),...r}));l.displayName="BreadcrumbList";var u=_react.forwardRef.call(void 0, ({className:e,...r},a)=>_jsxruntime.jsx.call(void 0, "li",{ref:a,className:_chunkDD6AVCRHcjs.a.call(void 0, "inline-flex items-center gap-1.5",e),...r}));u.displayName="BreadcrumbItem";var d=_react.forwardRef.call(void 0, ({asChild:e,className:r,...a},n)=>_jsxruntime.jsx.call(void 0, e?_reactslot.Slot:"a",{ref:n,className:_chunkDD6AVCRHcjs.a.call(void 0, "hover:text-foreground transition",r),...a}));d.displayName="BreadcrumbLink";var b=_react.forwardRef.call(void 0, ({className:e,...r},a)=>_jsxruntime.jsx.call(void 0, "span",{ref:a,"aria-current":"page","aria-disabled":"true",className:_chunkDD6AVCRHcjs.a.call(void 0, "text-foreground font-normal",e),role:"link",...r}));b.displayName="BreadcrumbPage";function M({children:e,...r}){return _jsxruntime.jsx.call(void 0, "li",{"aria-hidden":"true",role:"presentation",...r,children:_nullishCoalesce(e, () => (_jsxruntime.jsx.call(void 0, _reacticons.ChevronRightIcon,{className:"size-3.5"})))})}function T({className:e,...r}){return _jsxruntime.jsxs.call(void 0, "span",{"aria-hidden":"true",className:_chunkDD6AVCRHcjs.a.call(void 0, "flex size-4 items-center justify-center",e),role:"presentation",...r,children:[_jsxruntime.jsx.call(void 0, _reacticons.DotsHorizontalIcon,{className:"size-4"}),_jsxruntime.jsx.call(void 0, "span",{className:"sr-only",children:"More"})]})}exports.a = c; exports.b = l; exports.c = u; exports.d = d; exports.e = b; exports.f = M; exports.g = T;
|
|
2
|
-
//# sourceMappingURL=chunk-I6LNZ6KP.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-I6LNZ6KP.cjs","../src/components/breadcrumb.tsx"],"names":["Breadcrumb","forwardRef","props","forwardedRef","jsx","BreadcrumbList","className","cn","BreadcrumbItem","BreadcrumbLink","asChild","Slot","BreadcrumbPage","BreadcrumbSeparator","children","ChevronRightIcon","BreadcrumbEllipsis","jsxs","DotsHorizontalIcon"],"mappings":"AAAA,qOAAwC,mDCAa,iDAChC,8BASd,+CAcL,IADIA,CAAAA,CAAaC,+BAAAA,CAAgD,CAAE,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAC/EC,6BAAAA,KAAC,CAAA,CAAI,GAAA,CAAKD,CAAAA,CAAc,YAAA,CAAW,YAAA,CAAc,GAAGD,CAAAA,CAAO,CAC5D,CAAA,CAEDF,CAAAA,CAAW,WAAA,CAAc,YAAA,CASzB,IAAMK,CAAAA,CAAiBJ,+BAAAA,CACpB,CAAE,SAAA,CAAAK,CAAAA,CAAW,GAAGJ,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,IAAC,CAAA,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWI,iCAAAA,wFACT,CACAD,CACF,CAAA,CACC,GAAGJ,CAAAA,CACN,CAEJ,CAAA,CAEAG,CAAAA,CAAe,WAAA,CAAc,gBAAA,CAS7B,IAAMG,CAAAA,CAAiBP,+BAAAA,CACpB,CAAE,SAAA,CAAAK,CAAAA,CAAW,GAAGJ,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,IAAC,CAAA,CAAG,GAAA,CAAKD,CAAAA,CAAc,SAAA,CAAWI,iCAAAA,kCAAG,CAAoCD,CAAS,CAAA,CAAI,GAAGJ,CAAAA,CAAO,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AAA,CACZ,SAAA,CAAWV,iCAAAA,yCAAG,CAA2CD,CAAS,CAAA,CAClE,IAAA,CAAK,cAAA,CACJ,GAAGJ,CAAAA,CAEJ,QAAA,CAAA,CAAAE,6BAAAA,8BAACc,CAAA,CAAmB,SAAA,CAAU,QAAA,CAAS,CAAA,CACvCd,6BAAAA,MAAC,CAAA,CAAK,SAAA,CAAU,SAAA,CAAU,QAAA,CAAA,MAAA,CAAI,CAAA,CAAA,CAChC,CAEJ,CAAA,wGAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-I6LNZ6KP.cjs","sourcesContent":[null,"import { ChevronRightIcon, DotsHorizontalIcon } from '@radix-ui/react-icons';\nimport { Slot } from '@radix-ui/react-slot';\nimport {\n type AnchorHTMLAttributes,\n forwardRef,\n type HTMLAttributes,\n type JSX,\n type LiHTMLAttributes,\n type OlHTMLAttributes,\n type ReactNode,\n} from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Breadcrumb\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbElement = HTMLElement;\ninterface BreadcrumbProps extends HTMLAttributes<HTMLElement> {\n separator?: ReactNode;\n}\n\nconst Breadcrumb = forwardRef<BreadcrumbElement, BreadcrumbProps>(({ ...props }, forwardedRef) => (\n <nav ref={forwardedRef} aria-label=\"breadcrumb\" {...props} />\n));\n\nBreadcrumb.displayName = 'Breadcrumb';\n\n/* -----------------------------------------------------------------------------\n * Component: BreadcrumbList\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbListElement = HTMLOListElement;\ntype BreadcrumbListProps = OlHTMLAttributes<HTMLOListElement>;\n\nconst BreadcrumbList = forwardRef<BreadcrumbListElement, BreadcrumbListProps>(\n ({ className, ...props }, forwardedRef) => (\n <ol\n ref={forwardedRef}\n className={cn(\n 'text-muted-foreground flex flex-wrap items-center gap-1.5 break-words text-sm sm:gap-2',\n className,\n )}\n {...props}\n />\n ),\n);\n\nBreadcrumbList.displayName = 'BreadcrumbList';\n\n/* -----------------------------------------------------------------------------\n * Component: BreadcrumbItem\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbItemElement = HTMLLIElement;\ntype BreadcrumbItemProps = LiHTMLAttributes<HTMLLIElement>;\n\nconst BreadcrumbItem = forwardRef<BreadcrumbItemElement, BreadcrumbItemProps>(\n ({ className, ...props }, forwardedRef) => (\n <li ref={forwardedRef} className={cn('inline-flex items-center gap-1.5', className)} {...props} />\n ),\n);\n\nBreadcrumbItem.displayName = 'BreadcrumbItem';\n\n/* -----------------------------------------------------------------------------\n * Component: BreadcrumbLink\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbLinkElement = HTMLAnchorElement;\ninterface BreadcrumbLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {\n asChild?: boolean;\n}\n\nconst BreadcrumbLink = forwardRef<BreadcrumbLinkElement, BreadcrumbLinkProps>(\n ({ asChild, className, ...props }, forwardedRef) => {\n const Component = asChild ? Slot : 'a';\n\n return <Component ref={forwardedRef} className={cn('hover:text-foreground transition', className)} {...props} />;\n },\n);\n\nBreadcrumbLink.displayName = 'BreadcrumbLink';\n\n/* -----------------------------------------------------------------------------\n * Component: BreadcrumbPage\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbPageElement = HTMLSpanElement;\ntype BreadcrumbPageProps = HTMLAttributes<HTMLSpanElement>;\n\nconst BreadcrumbPage = forwardRef<BreadcrumbPageElement, BreadcrumbPageProps>(\n ({ className, ...props }, forwardedRef) => (\n <span\n ref={forwardedRef}\n aria-current=\"page\"\n aria-disabled=\"true\"\n className={cn('text-foreground font-normal', className)}\n role=\"link\"\n {...props}\n />\n ),\n);\n\nBreadcrumbPage.displayName = 'BreadcrumbPage';\n\n/* -----------------------------------------------------------------------------\n * Component: BreadcrumbSeparator\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbSeparatorProps = LiHTMLAttributes<HTMLLIElement>;\n\nfunction BreadcrumbSeparator({ children, ...props }: BreadcrumbSeparatorProps): JSX.Element {\n return (\n <li aria-hidden=\"true\" role=\"presentation\" {...props}>\n {children ?? <ChevronRightIcon className=\"size-3.5\" />}\n </li>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: BreadcrumbEllipsis\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbEllipsisProps = HTMLAttributes<HTMLSpanElement>;\n\nfunction BreadcrumbEllipsis({ className, ...props }: BreadcrumbEllipsisProps): JSX.Element {\n return (\n <span\n aria-hidden=\"true\"\n className={cn('flex size-4 items-center justify-center', className)}\n role=\"presentation\"\n {...props}\n >\n <DotsHorizontalIcon className=\"size-4\" />\n <span className=\"sr-only\">More</span>\n </span>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Breadcrumb,\n BreadcrumbEllipsis,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbList,\n BreadcrumbPage,\n BreadcrumbSeparator,\n type BreadcrumbEllipsisProps,\n type BreadcrumbItemProps,\n type BreadcrumbLinkProps,\n type BreadcrumbListProps,\n type BreadcrumbPageProps,\n type BreadcrumbProps,\n type BreadcrumbSeparatorProps,\n};\n"]}
|
package/dist/chunk-IPRXHJQ5.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var _chunkB5V32KRWcjs = require('./chunk-B5V32KRW.cjs');var _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _reacticons = require('@radix-ui/react-icons');var _cmdk = require('cmdk');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var i=_react.forwardRef.call(void 0, ({className:e,...o},t)=>_jsxruntime.jsx.call(void 0, _cmdk.Command,{ref:t,className:_chunkDD6AVCRHcjs.a.call(void 0, "bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...o}));i.displayName=_cmdk.Command.displayName;function I({children:e,...o}){return _jsxruntime.jsx.call(void 0, _chunkB5V32KRWcjs.a,{...o,children:_jsxruntime.jsx.call(void 0, _chunkB5V32KRWcjs.c,{className:"p-0",children:_jsxruntime.jsx.call(void 0, i,{className:"[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:size-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:size-5",children:e})})})}var C=_react.forwardRef.call(void 0, ({className:e,...o},t)=>_jsxruntime.jsxs.call(void 0, "div",{className:"flex items-center gap-2 border-b px-3","cmdk-input-wrapper":"",children:[_jsxruntime.jsx.call(void 0, _reacticons.MagnifyingGlassIcon,{className:"size-5 shrink-0 opacity-50"}),_jsxruntime.jsx.call(void 0, _cmdk.Command.Input,{ref:t,className:_chunkDD6AVCRHcjs.a.call(void 0, "placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent text-sm outline-none disabled:cursor-default disabled:opacity-50",e),...o})]}));C.displayName=_cmdk.Command.Input.displayName;var l=_react.forwardRef.call(void 0, ({className:e,...o},t)=>_jsxruntime.jsx.call(void 0, _cmdk.Command.List,{ref:t,className:_chunkDD6AVCRHcjs.a.call(void 0, "max-h-72 overflow-y-auto overflow-x-hidden",e),...o}));l.displayName=_cmdk.Command.List.displayName;var y=_react.forwardRef.call(void 0, (e,o)=>_jsxruntime.jsx.call(void 0, _cmdk.Command.Empty,{ref:o,className:"py-6 text-center text-sm",...e}));y.displayName=_cmdk.Command.Empty.displayName;var u=_react.forwardRef.call(void 0, ({className:e,...o},t)=>_jsxruntime.jsx.call(void 0, _cmdk.Command.Group,{ref:t,className:_chunkDD6AVCRHcjs.a.call(void 0, "text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...o}));u.displayName=_cmdk.Command.Group.displayName;var f=_react.forwardRef.call(void 0, ({className:e,...o},t)=>_jsxruntime.jsx.call(void 0, _cmdk.Command.Separator,{ref:t,className:_chunkDD6AVCRHcjs.a.call(void 0, "bg-border -mx-1 h-px",e),...o}));f.displayName=_cmdk.Command.Separator.displayName;var c=_react.forwardRef.call(void 0, ({className:e,...o},t)=>_jsxruntime.jsx.call(void 0, _cmdk.Command.Item,{ref:t,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","aria-disabled:pointer-events-none aria-disabled:opacity-50","aria-selected:bg-accent aria-selected:text-accent-foreground aria-selected:outline-none",e),...o}));c.displayName=_cmdk.Command.Item.displayName;var P=_react.forwardRef.call(void 0, ({className:e,...o},t)=>_jsxruntime.jsx.call(void 0, _cmdk.Command.Loading,{ref:t,className:_chunkDD6AVCRHcjs.a.call(void 0, "flex justify-center p-2",e),...o}));P.displayName=_cmdk.Command.Loading.displayName;function k({className:e,...o}){return _jsxruntime.jsx.call(void 0, "span",{className:_chunkDD6AVCRHcjs.a.call(void 0, "text-muted-foreground ml-auto text-xs tracking-widest",e),...o})}exports.a = i; exports.b = I; exports.c = C; exports.d = l; exports.e = y; exports.f = u; exports.g = f; exports.h = c; exports.i = P; exports.j = k;
|
|
2
|
-
//# sourceMappingURL=chunk-IPRXHJQ5.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-IPRXHJQ5.cjs","../src/components/command.tsx"],"names":["className","jsx","CommandPrimitive","forwardedRef","cn","Command","children","Dialog","DialogContent","CommandInput","forwardRef","jsxs","MagnifyingGlassIcon","CommandList","CommandGroup","CommandSeparator","CommandItem","CommandLoading"],"mappings":"AAAA,qFAAY,CAAC,wDAA+C,wDCEnD,mDACA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GAAiB,CAAA,CAAA,CAAjB,CACC,CAAA,EAAA,6BAAKC,aACL,CAAA,IAAA,CAAA,CAAA,GAAWC,CAAAA,CACT,CAAA,SAAA,CAAA,iCAAA,qBACA,CAAA,uEACA,CAAA,4DACA,CAAA,yFAONY,CAAY,CAAA,CAAA,CAAA,GAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAcd,CAAAA,WAAsB,CAAA,aAAA,CAAA,IAShD,CAAA,WACK,CAAA,IAAA,CAAA,CAAA,+BAAAF,CAAW,CAAA,SACZC,CAAAA,CAACC,CAAAA,GAAiB,CAAA,CAAA,CAAA,CAAA,CAAA,EAAQ,6BAAA,aAAA,CAAKC,OAAc,CAAA,CAAA,GAAWC,CAAAA,CAAG,CAAA,SAAA,CAAA,iCAAA,yBAI/Da,CAAe,CAAA,CAAA,CAAA,GAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAcf,CAAAA,WAAyB,CAAA,aAAA,CAAA,OAQtD,CAAA,WAA2B,CAAA,SAAAF,CAAAA,CAAW,CAAA,SACpC,CAAA,CAAA,CAAA,GAAQ,CAAA,CAAA,CAAA,CAAA,OAAK,6BAAA,MAAWI,CAAG,CAAA,SAAA,CAAA,iCAAA,uDAC7B,CAAA,CAAA,CAAA,CAAA,GAAA,CAAA,CAAA,CAAA,CAAA,qJAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-IPRXHJQ5.cjs","sourcesContent":[null,"'use client';\n\nimport { MagnifyingGlassIcon } from '@radix-ui/react-icons';\nimport { Command as CommandPrimitive } from 'cmdk';\nimport {\n type ComponentProps,\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n type HTMLAttributes,\n type JSX,\n} from 'react';\n\nimport { Dialog, DialogContent } from '@/components/dialog';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Command\n * -------------------------------------------------------------------------- */\n\ntype CommandElement = ComponentRef<typeof CommandPrimitive>;\ntype CommandProps = ComponentPropsWithoutRef<typeof CommandPrimitive>;\n\nconst Command = forwardRef<CommandElement, CommandProps>(({ className, ...props }, forwardedRef) => (\n <CommandPrimitive\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md',\n className,\n )}\n {...props}\n />\n));\n\nCommand.displayName = CommandPrimitive.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CommandDialog\n * -------------------------------------------------------------------------- */\n\ntype CommandDialogProps = ComponentProps<typeof Dialog>;\n\nfunction CommandDialog({ children, ...props }: CommandDialogProps): JSX.Element {\n return (\n <Dialog {...props}>\n <DialogContent className=\"p-0\">\n <Command className=\"[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:size-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:size-5\">\n {children}\n </Command>\n </DialogContent>\n </Dialog>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandInput\n * -------------------------------------------------------------------------- */\n\ntype CommandInputElement = ComponentRef<typeof CommandPrimitive.Input>;\ntype CommandInputProps = ComponentPropsWithoutRef<typeof CommandPrimitive.Input>;\n\nconst CommandInput = forwardRef<CommandInputElement, CommandInputProps>(({ className, ...props }, forwardedRef) => (\n <div className=\"flex items-center gap-2 border-b px-3\" cmdk-input-wrapper=\"\">\n <MagnifyingGlassIcon className=\"size-5 shrink-0 opacity-50\" />\n <CommandPrimitive.Input\n ref={forwardedRef}\n className={cn(\n 'placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent text-sm outline-none disabled:cursor-default disabled:opacity-50',\n className,\n )}\n {...props}\n />\n </div>\n));\n\nCommandInput.displayName = CommandPrimitive.Input.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CommandList\n * -------------------------------------------------------------------------- */\n\ntype CommandListElement = ComponentRef<typeof CommandPrimitive.List>;\ntype CommandListProps = ComponentPropsWithoutRef<typeof CommandPrimitive.List>;\n\nconst CommandList = forwardRef<CommandListElement, CommandListProps>(({ className, ...props }, forwardedRef) => (\n <CommandPrimitive.List\n ref={forwardedRef}\n className={cn('max-h-72 overflow-y-auto overflow-x-hidden', className)}\n {...props}\n />\n));\n\nCommandList.displayName = CommandPrimitive.List.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CommandEmpty\n * -------------------------------------------------------------------------- */\n\ntype CommandEmptyElement = ComponentRef<typeof CommandPrimitive.Empty>;\ntype CommandEmptyProps = ComponentPropsWithoutRef<typeof CommandPrimitive.Empty>;\n\nconst CommandEmpty = forwardRef<CommandEmptyElement, CommandEmptyProps>((props, forwardedRef) => (\n <CommandPrimitive.Empty ref={forwardedRef} className=\"py-6 text-center text-sm\" {...props} />\n));\n\nCommandEmpty.displayName = CommandPrimitive.Empty.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CommandGroup\n * -------------------------------------------------------------------------- */\n\ntype CommandGroupElement = ComponentRef<typeof CommandPrimitive.Group>;\ntype CommandGroupProps = ComponentPropsWithoutRef<typeof CommandPrimitive.Group>;\n\nconst CommandGroup = forwardRef<CommandGroupElement, CommandGroupProps>(({ className, ...props }, forwardedRef) => (\n <CommandPrimitive.Group\n ref={forwardedRef}\n className={cn(\n 'text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium',\n className,\n )}\n {...props}\n />\n));\n\nCommandGroup.displayName = CommandPrimitive.Group.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CommandSeparator\n * -------------------------------------------------------------------------- */\n\ntype CommandSeparatorElement = ComponentRef<typeof CommandPrimitive.Separator>;\ntype CommandSeparatorProps = ComponentPropsWithoutRef<typeof CommandPrimitive.Separator>;\n\nconst CommandSeparator = forwardRef<CommandSeparatorElement, CommandSeparatorProps>(\n ({ className, ...props }, forwardedRef) => (\n <CommandPrimitive.Separator ref={forwardedRef} className={cn('bg-border -mx-1 h-px', className)} {...props} />\n ),\n);\n\nCommandSeparator.displayName = CommandPrimitive.Separator.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CommandItem\n * -------------------------------------------------------------------------- */\n\ntype CommandItemElement = ComponentRef<typeof CommandPrimitive.Item>;\ntype CommandItemProps = ComponentPropsWithoutRef<typeof CommandPrimitive.Item>;\n\nconst CommandItem = forwardRef<CommandItemElement, CommandItemProps>(({ className, ...props }, forwardedRef) => (\n <CommandPrimitive.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 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n 'aria-selected:bg-accent aria-selected:text-accent-foreground aria-selected:outline-none',\n className,\n )}\n {...props}\n />\n));\n\nCommandItem.displayName = CommandPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CommandLoading\n * -------------------------------------------------------------------------- */\n\ntype CommandLoadingElement = ComponentRef<typeof CommandPrimitive.Loading>;\ntype CommandLoadingProps = ComponentPropsWithoutRef<typeof CommandPrimitive.Loading>;\n\nconst CommandLoading = forwardRef<CommandLoadingElement, CommandLoadingProps>(\n ({ className, ...props }, forwardedRef) => (\n <CommandPrimitive.Loading ref={forwardedRef} className={cn('flex justify-center p-2', className)} {...props} />\n ),\n);\n\nCommandLoading.displayName = CommandPrimitive.Loading.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CommandShortcut\n * -------------------------------------------------------------------------- */\n\ntype CommandShortcutProps = HTMLAttributes<HTMLSpanElement>;\n\nfunction CommandShortcut({ className, ...props }: CommandShortcutProps): JSX.Element {\n return <span className={cn('text-muted-foreground ml-auto text-xs tracking-widest', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Command,\n CommandDialog,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n CommandLoading,\n CommandSeparator,\n CommandShortcut,\n type CommandDialogProps,\n type CommandEmptyProps,\n type CommandGroupProps,\n type CommandInputProps,\n type CommandItemProps,\n type CommandListProps,\n type CommandLoadingProps,\n type CommandProps,\n type CommandSeparatorProps,\n type CommandShortcutProps,\n};\n"]}
|
package/dist/chunk-JMYWGU6A.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as m}from"./chunk-VPYH6JWS.js";import{ChevronRightIcon as o,DotsHorizontalIcon as p}from"@radix-ui/react-icons";import{Slot as i}from"@radix-ui/react-slot";import{forwardRef as s}from"react";import{jsx as t,jsxs as L}from"react/jsx-runtime";var c=s(({...e},r)=>t("nav",{ref:r,"aria-label":"breadcrumb",...e}));c.displayName="Breadcrumb";var l=s(({className:e,...r},a)=>t("ol",{ref:a,className:m("text-muted-foreground flex flex-wrap items-center gap-1.5 break-words text-sm sm:gap-2",e),...r}));l.displayName="BreadcrumbList";var u=s(({className:e,...r},a)=>t("li",{ref:a,className:m("inline-flex items-center gap-1.5",e),...r}));u.displayName="BreadcrumbItem";var d=s(({asChild:e,className:r,...a},n)=>t(e?i:"a",{ref:n,className:m("hover:text-foreground transition",r),...a}));d.displayName="BreadcrumbLink";var b=s(({className:e,...r},a)=>t("span",{ref:a,"aria-current":"page","aria-disabled":"true",className:m("text-foreground font-normal",e),role:"link",...r}));b.displayName="BreadcrumbPage";function T({children:e,...r}){return t("li",{"aria-hidden":"true",role:"presentation",...r,children:e??t(o,{className:"size-3.5"})})}function g({className:e,...r}){return L("span",{"aria-hidden":"true",className:m("flex size-4 items-center justify-center",e),role:"presentation",...r,children:[t(p,{className:"size-4"}),t("span",{className:"sr-only",children:"More"})]})}export{c as a,l as b,u as c,d,b as e,T as f,g};
|
|
2
|
-
//# sourceMappingURL=chunk-JMYWGU6A.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/breadcrumb.tsx"],"names":["ChevronRightIcon","DotsHorizontalIcon","Slot","forwardRef","jsx","jsxs","Breadcrumb","props","forwardedRef","BreadcrumbList","className","cn","BreadcrumbItem","BreadcrumbLink","asChild","BreadcrumbPage","BreadcrumbSeparator","children","BreadcrumbEllipsis"],"mappings":"wCAAA,OAAS,oBAAAA,EAAkB,sBAAAC,MAA0B,wBACrD,OAAS,QAAAC,MAAY,uBACrB,OAEE,cAAAC,MAMK,QAcL,cAAAC,EAyGE,QAAAC,MAzGF,oBADF,IAAMC,EAAaH,EAA+C,CAAC,CAAE,GAAGI,CAAM,EAAGC,IAC/EJ,EAAC,OAAI,IAAKI,EAAc,aAAW,aAAc,GAAGD,EAAO,CAC5D,EAEDD,EAAW,YAAc,aASzB,IAAMG,EAAiBN,EACrB,CAAC,CAAE,UAAAO,EAAW,GAAGH,CAAM,EAAGC,IACxBJ,EAAC,MACC,IAAKI,EACL,UAAWG,EACT,yFACAD,CACF,EACC,GAAGH,EACN,CAEJ,EAEAE,EAAe,YAAc,iBAS7B,IAAMG,EAAiBT,EACrB,CAAC,CAAE,UAAAO,EAAW,GAAGH,CAAM,EAAGC,IACxBJ,EAAC,MAAG,IAAKI,EAAc,UAAWG,EAAG,mCAAoCD,CAAS,EAAI,GAAGH,EAAO,CAEpG,EAEAK,EAAe,YAAc,iBAW7B,IAAMC,EAAiBV,EACrB,CAAC,CAAE,QAAAW,EAAS,UAAAJ,EAAW,GAAGH,CAAM,EAAGC,IAG1BJ,EAFWU,EAAUZ,EAAO,IAE3B,CAAU,IAAKM,EAAc,UAAWG,EAAG,mCAAoCD,CAAS,EAAI,GAAGH,EAAO,CAElH,EAEAM,EAAe,YAAc,iBAS7B,IAAME,EAAiBZ,EACrB,CAAC,CAAE,UAAAO,EAAW,GAAGH,CAAM,EAAGC,IACxBJ,EAAC,QACC,IAAKI,EACL,eAAa,OACb,gBAAc,OACd,UAAWG,EAAG,8BAA+BD,CAAS,EACtD,KAAK,OACJ,GAAGH,EACN,CAEJ,EAEAQ,EAAe,YAAc,iBAQ7B,SAASC,EAAoB,CAAE,SAAAC,EAAU,GAAGV,CAAM,EAA0C,CAC1F,OACEH,EAAC,MAAG,cAAY,OAAO,KAAK,eAAgB,GAAGG,EAC5C,SAAAU,GAAYb,EAACJ,EAAA,CAAiB,UAAU,WAAW,EACtD,CAEJ,CAQA,SAASkB,EAAmB,CAAE,UAAAR,EAAW,GAAGH,CAAM,EAAyC,CACzF,OACEF,EAAC,QACC,cAAY,OACZ,UAAWM,EAAG,0CAA2CD,CAAS,EAClE,KAAK,eACJ,GAAGH,EAEJ,UAAAH,EAACH,EAAA,CAAmB,UAAU,SAAS,EACvCG,EAAC,QAAK,UAAU,UAAU,gBAAI,GAChC,CAEJ","sourcesContent":["import { ChevronRightIcon, DotsHorizontalIcon } from '@radix-ui/react-icons';\nimport { Slot } from '@radix-ui/react-slot';\nimport {\n type AnchorHTMLAttributes,\n forwardRef,\n type HTMLAttributes,\n type JSX,\n type LiHTMLAttributes,\n type OlHTMLAttributes,\n type ReactNode,\n} from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Breadcrumb\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbElement = HTMLElement;\ninterface BreadcrumbProps extends HTMLAttributes<HTMLElement> {\n separator?: ReactNode;\n}\n\nconst Breadcrumb = forwardRef<BreadcrumbElement, BreadcrumbProps>(({ ...props }, forwardedRef) => (\n <nav ref={forwardedRef} aria-label=\"breadcrumb\" {...props} />\n));\n\nBreadcrumb.displayName = 'Breadcrumb';\n\n/* -----------------------------------------------------------------------------\n * Component: BreadcrumbList\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbListElement = HTMLOListElement;\ntype BreadcrumbListProps = OlHTMLAttributes<HTMLOListElement>;\n\nconst BreadcrumbList = forwardRef<BreadcrumbListElement, BreadcrumbListProps>(\n ({ className, ...props }, forwardedRef) => (\n <ol\n ref={forwardedRef}\n className={cn(\n 'text-muted-foreground flex flex-wrap items-center gap-1.5 break-words text-sm sm:gap-2',\n className,\n )}\n {...props}\n />\n ),\n);\n\nBreadcrumbList.displayName = 'BreadcrumbList';\n\n/* -----------------------------------------------------------------------------\n * Component: BreadcrumbItem\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbItemElement = HTMLLIElement;\ntype BreadcrumbItemProps = LiHTMLAttributes<HTMLLIElement>;\n\nconst BreadcrumbItem = forwardRef<BreadcrumbItemElement, BreadcrumbItemProps>(\n ({ className, ...props }, forwardedRef) => (\n <li ref={forwardedRef} className={cn('inline-flex items-center gap-1.5', className)} {...props} />\n ),\n);\n\nBreadcrumbItem.displayName = 'BreadcrumbItem';\n\n/* -----------------------------------------------------------------------------\n * Component: BreadcrumbLink\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbLinkElement = HTMLAnchorElement;\ninterface BreadcrumbLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {\n asChild?: boolean;\n}\n\nconst BreadcrumbLink = forwardRef<BreadcrumbLinkElement, BreadcrumbLinkProps>(\n ({ asChild, className, ...props }, forwardedRef) => {\n const Component = asChild ? Slot : 'a';\n\n return <Component ref={forwardedRef} className={cn('hover:text-foreground transition', className)} {...props} />;\n },\n);\n\nBreadcrumbLink.displayName = 'BreadcrumbLink';\n\n/* -----------------------------------------------------------------------------\n * Component: BreadcrumbPage\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbPageElement = HTMLSpanElement;\ntype BreadcrumbPageProps = HTMLAttributes<HTMLSpanElement>;\n\nconst BreadcrumbPage = forwardRef<BreadcrumbPageElement, BreadcrumbPageProps>(\n ({ className, ...props }, forwardedRef) => (\n <span\n ref={forwardedRef}\n aria-current=\"page\"\n aria-disabled=\"true\"\n className={cn('text-foreground font-normal', className)}\n role=\"link\"\n {...props}\n />\n ),\n);\n\nBreadcrumbPage.displayName = 'BreadcrumbPage';\n\n/* -----------------------------------------------------------------------------\n * Component: BreadcrumbSeparator\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbSeparatorProps = LiHTMLAttributes<HTMLLIElement>;\n\nfunction BreadcrumbSeparator({ children, ...props }: BreadcrumbSeparatorProps): JSX.Element {\n return (\n <li aria-hidden=\"true\" role=\"presentation\" {...props}>\n {children ?? <ChevronRightIcon className=\"size-3.5\" />}\n </li>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: BreadcrumbEllipsis\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbEllipsisProps = HTMLAttributes<HTMLSpanElement>;\n\nfunction BreadcrumbEllipsis({ className, ...props }: BreadcrumbEllipsisProps): JSX.Element {\n return (\n <span\n aria-hidden=\"true\"\n className={cn('flex size-4 items-center justify-center', className)}\n role=\"presentation\"\n {...props}\n >\n <DotsHorizontalIcon className=\"size-4\" />\n <span className=\"sr-only\">More</span>\n </span>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Breadcrumb,\n BreadcrumbEllipsis,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbList,\n BreadcrumbPage,\n BreadcrumbSeparator,\n type BreadcrumbEllipsisProps,\n type BreadcrumbItemProps,\n type BreadcrumbLinkProps,\n type BreadcrumbListProps,\n type BreadcrumbPageProps,\n type BreadcrumbProps,\n type BreadcrumbSeparatorProps,\n};\n"]}
|
package/dist/chunk-KASTA74M.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _reacticons = require('@radix-ui/react-icons');var _inputotp = require('input-otp');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var m=_react.forwardRef.call(void 0, ({className:t,containerClassName:e,...p},s)=>_jsxruntime.jsx.call(void 0, _inputotp.OTPInput,{ref:s,className:_chunkDD6AVCRHcjs.a.call(void 0, "disabled:cursor-default",t),containerClassName:_chunkDD6AVCRHcjs.a.call(void 0, "flex items-center gap-2","has-[:disabled]:opacity-50",e),...p}));m.displayName="InputOTP";var T=_react.forwardRef.call(void 0, ({className:t,...e},p)=>_jsxruntime.jsx.call(void 0, "div",{ref:p,className:_chunkDD6AVCRHcjs.a.call(void 0, "flex items-center",t),...e}));T.displayName="InputOTPGroup";var I=_react.forwardRef.call(void 0, ({index:t,className:e,...p},s)=>{let u=_react.useContext.call(void 0, _inputotp.OTPInputContext).slots[t];return _jsxruntime.jsxs.call(void 0, "div",{ref:s,className:_chunkDD6AVCRHcjs.a.call(void 0, "border-input relative flex size-10 items-center justify-center border-y border-r text-sm shadow-sm transition-all","first:rounded-l-md first:border-l","last:rounded-r-md",u.isActive&&"z-10 outline outline-2",e),...p,children:[u.char,u.hasFakeCaret?_jsxruntime.jsx.call(void 0, "div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:_jsxruntime.jsx.call(void 0, "div",{className:"animate-caret-blink bg-foreground animate-duration-1000 h-4 w-px"})}):null]})});I.displayName="InputOTPSlot";var O=_react.forwardRef.call(void 0, ({...t},e)=>_jsxruntime.jsx.call(void 0, "div",{ref:e,role:"separator",...t,children:_jsxruntime.jsx.call(void 0, _reacticons.DotFilledIcon,{})}));O.displayName="InputOTPSeparator";exports.a = _inputotp.REGEXP_ONLY_CHARS; exports.b = _inputotp.REGEXP_ONLY_DIGITS; exports.c = _inputotp.REGEXP_ONLY_DIGITS_AND_CHARS; exports.d = m; exports.e = T; exports.f = I; exports.g = O;
|
|
2
|
-
//# sourceMappingURL=chunk-KASTA74M.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-KASTA74M.cjs","../src/components/input-otp.tsx"],"names":["className","jsx","OTPInput","forwardedRef","cn","InputOTP","InputOTPGroup","index","slot","useContext","OTPInputContext","InputOT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AA,6BAAA,KAAU,CAAA,CAAA,SAAA,CAAA,uEACZ,CAAA,QAAI,CAAA,6BAAA,KAAU,CAAA,CAAA,SAAA,CAAA,kEAM3B,CAAA,CAEAU,CAAAA,CAAa,CAAA,IAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,CAAA,WAAA,CAAA,cAS+D,CAAGC,IAAST,CAAAA,CAAAA,+BACpGF,CAAC,CAAA,GAAA,CAAA,CAAA,CAAI,CAAA,CAAA,EAAKE,6BAAAA,KAAmB,CAAA,CAAA,GAAA,CAAA,CAAA,CAAA,IAAa,CAAA,WACxC,CAAA,GAACU,CAAAA,CAAA,QAILC,CAAkB,6BAAA,yBAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,CAAA,WAAA,CAAA,mBAAA,CAAA,kMAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-KASTA74M.cjs","sourcesContent":[null,"'use client';\n\nimport { DotFilledIcon } from '@radix-ui/react-icons';\nimport {\n OTPInput,\n OTPInputContext,\n REGEXP_ONLY_CHARS,\n REGEXP_ONLY_DIGITS,\n REGEXP_ONLY_DIGITS_AND_CHARS,\n} from 'input-otp';\nimport { type ComponentPropsWithoutRef, type ComponentRef, forwardRef, type HTMLAttributes, useContext } from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: InputOtp\n * -------------------------------------------------------------------------- */\n\ntype InputOTPElement = ComponentRef<typeof OTPInput>;\ntype InputOTPProps = ComponentPropsWithoutRef<typeof OTPInput>;\n\nconst InputOTP = forwardRef<InputOTPElement, InputOTPProps>(\n ({ className, containerClassName, ...props }, forwardedRef) => (\n <OTPInput\n ref={forwardedRef}\n className={cn('disabled:cursor-default', className)}\n containerClassName={cn('flex items-center gap-2', 'has-[:disabled]:opacity-50', containerClassName)}\n {...props}\n />\n ),\n);\n\nInputOTP.displayName = 'InputOTP';\n\n/* -----------------------------------------------------------------------------\n * Component: InputOTPGroup\n * -------------------------------------------------------------------------- */\n\ntype InputOTPGroupElement = HTMLDivElement;\ntype InputOTPGroupProps = HTMLAttributes<HTMLDivElement>;\n\nconst InputOTPGroup = forwardRef<InputOTPGroupElement, InputOTPGroupProps>(({ className, ...props }, forwardedRef) => (\n <div ref={forwardedRef} className={cn('flex items-center', className)} {...props} />\n));\n\nInputOTPGroup.displayName = 'InputOTPGroup';\n\n/* -----------------------------------------------------------------------------\n * Component: InputOTPSlot\n * -------------------------------------------------------------------------- */\n\ntype InputOTPSlotElement = HTMLDivElement;\n\ninterface InputOTPSlotProps extends HTMLAttributes<HTMLDivElement> {\n index: number;\n}\n\nconst InputOTPSlot = forwardRef<InputOTPSlotElement, InputOTPSlotProps>(\n ({ index, className, ...props }, forwardedRef) => {\n const inputOTPContext = useContext(OTPInputContext);\n const slot = inputOTPContext.slots[index];\n\n return (\n <div\n ref={forwardedRef}\n className={cn(\n 'border-input relative flex size-10 items-center justify-center border-y border-r text-sm shadow-sm transition-all',\n 'first:rounded-l-md first:border-l',\n 'last:rounded-r-md',\n slot.isActive && 'z-10 outline outline-2',\n className,\n )}\n {...props}\n >\n {slot.char}\n {slot.hasFakeCaret ? (\n <div className=\"pointer-events-none absolute inset-0 flex items-center justify-center\">\n <div className=\"animate-caret-blink bg-foreground animate-duration-1000 h-4 w-px\" />\n </div>\n ) : null}\n </div>\n );\n },\n);\n\nInputOTPSlot.displayName = 'InputOTPSlot';\n\n/* -----------------------------------------------------------------------------\n * Component: InputOTPSeparator\n * -------------------------------------------------------------------------- */\n\ntype InputOTPSeparatorElement = HTMLDivElement;\ntype InputOTPSeparatorProps = HTMLAttributes<HTMLDivElement>;\n\nconst InputOTPSeparator = forwardRef<InputOTPSeparatorElement, InputOTPSeparatorProps>(({ ...props }, forwardedRef) => (\n <div ref={forwardedRef} role=\"separator\" {...props}>\n <DotFilledIcon />\n </div>\n));\n\nInputOTPSeparator.displayName = 'InputOTPSeparator';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n InputOTP,\n InputOTPGroup,\n InputOTPSeparator,\n InputOTPSlot,\n REGEXP_ONLY_CHARS,\n REGEXP_ONLY_DIGITS,\n REGEXP_ONLY_DIGITS_AND_CHARS,\n type InputOTPGroupProps,\n type InputOTPProps,\n type InputOTPSeparatorProps,\n type InputOTPSlotProps,\n};\n"]}
|
package/dist/chunk-LGRBBJSZ.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as n}from"./chunk-EVRI6TWT.js";import{a}from"./chunk-VPYH6JWS.js";import*as e from"@radix-ui/react-dialog";import{Cross2Icon as g}from"@radix-ui/react-icons";import{forwardRef as r}from"react";import{jsx as i,jsxs as p}from"react/jsx-runtime";var x=e.Root,N=e.Trigger,D=r(({children:t,className:o,...l},s)=>i(e.Portal,{children:i(e.Overlay,{className:a("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:p(e.Content,{ref:s,className:a("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",o),...l,children:[t,p(e.Close,{className:n({className:"absolute right-4 top-4",icon:!0,size:"xxs",variant:"ghost"}),children:[i(g,{className:"size-4"}),i("span",{className:"sr-only",children:"Close"})]})]})})}));D.displayName=e.Content.displayName;function b({className:t,...o}){return i("header",{className:a("flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left",t),...o})}function E({className:t,...o}){return i("main",{className:a("overflow-auto px-6 py-2",t),...o})}function R({className:t,...o}){return i("footer",{className:a("flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end",t),...o})}var P=r(({className:t,...o},l)=>i(e.Title,{ref:l,className:a("text-lg font-semibold leading-none tracking-tight",t),...o}));P.displayName=e.Title.displayName;var d=r(({className:t,...o},l)=>i(e.Description,{ref:l,className:a("text-muted-foreground text-sm",t),...o}));d.displayName=e.Description.displayName;var f=r(({className:t,size:o,variant:l="outline",...s},m)=>i(e.Close,{ref:m,className:n({className:t,size:o,variant:l}),...s}));f.displayName=e.Close.displayName;export{x as a,N as b,D as c,b as d,E as e,R as f,P as g,d as h,f as i};
|
|
2
|
-
//# sourceMappingURL=chunk-LGRBBJSZ.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/dialog.tsx"],"names":["DialogPrimitive","Cross2Icon","forwardRef","jsx","jsxs","Dialog","DialogTrigger","DialogContent","children","className","props","forwardedRef","cn","buttonVariants","DialogHeader","DialogBody","DialogFooter","DialogTitle","DialogDescription","DialogClose","size","variant"],"mappings":"2EAAA,UAAYA,MAAqB,yBACjC,OAAS,cAAAC,MAAkB,wBAC3B,OAIE,cAAAC,MAGK,QA+CG,OAQE,OAAAC,EARF,QAAAC,MAAA,oBArCV,IAAMC,EAAyB,OAOzBC,EAAgC,UAShCC,EAAgBL,EACpB,CAAC,CAAE,SAAAM,EAAU,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAClCR,EAAiB,SAAhB,CACC,SAAAA,EAAiB,UAAhB,CACC,UAAWS,EACT,4FACA,2EACA,+EACF,EAEA,SAAAR,EAAiB,UAAhB,CACC,IAAKO,EACL,UAAWC,EACT,wFACA,6HACA,wIACAH,CACF,EACC,GAAGC,EAEH,UAAAF,EACDJ,EAAiB,QAAhB,CACC,UAAWS,EAAe,CACxB,UAAW,yBACX,KAAM,GACN,KAAM,MACN,QAAS,OACX,CAAC,EAED,UAAAV,EAACF,EAAA,CAAW,UAAU,SAAS,EAC/BE,EAAC,QAAK,UAAU,UAAU,iBAAK,GACjC,GACF,EACF,EACF,CAEJ,EAEAI,EAAc,YAA8B,UAAQ,YAQpD,SAASO,EAAa,CAAE,UAAAL,EAAW,GAAGC,CAAM,EAAmC,CAC7E,OACEP,EAAC,UACC,UAAWS,EAAG,yEAA0EH,CAAS,EAChG,GAAGC,EACN,CAEJ,CAQA,SAASK,EAAW,CAAE,UAAAN,EAAW,GAAGC,CAAM,EAAiC,CACzE,OAAOP,EAAC,QAAK,UAAWS,EAAG,0BAA2BH,CAAS,EAAI,GAAGC,EAAO,CAC/E,CAQA,SAASM,EAAa,CAAE,UAAAP,EAAW,GAAGC,CAAM,EAAmC,CAC7E,OACEP,EAAC,UACC,UAAWS,EAAG,iFAAkFH,CAAS,EACxG,GAAGC,EACN,CAEJ,CASA,IAAMO,EAAcf,EAAiD,CAAC,CAAE,UAAAO,EAAW,GAAGC,CAAM,EAAGC,IAC7FR,EAAiB,QAAhB,CACC,IAAKQ,EACL,UAAWC,EAAG,oDAAqDH,CAAS,EAC3E,GAAGC,EACN,CACD,EAEDO,EAAY,YAA8B,QAAM,YAShD,IAAMC,EAAoBhB,EACxB,CAAC,CAAE,UAAAO,EAAW,GAAGC,CAAM,EAAGC,IACxBR,EAAiB,cAAhB,CACC,IAAKQ,EACL,UAAWC,EAAG,gCAAiCH,CAAS,EACvD,GAAGC,EACN,CAEJ,EAEAQ,EAAkB,YAA8B,cAAY,YAY5D,IAAMC,EAAcjB,EAClB,CAAC,CAAE,UAAAO,EAAW,KAAAW,EAAM,QAAAC,EAAU,UAAW,GAAGX,CAAM,EAAGC,IACnDR,EAAiB,QAAhB,CAAsB,IAAKQ,EAAc,UAAWE,EAAe,CAAE,UAAAJ,EAAW,KAAAW,EAAM,QAAAC,CAAQ,CAAC,EAAI,GAAGX,EAAO,CAElH,EAEAS,EAAY,YAA8B,QAAM","sourcesContent":["import * as DialogPrimitive from '@radix-ui/react-dialog';\nimport { Cross2Icon } 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';\nimport { buttonVariants, type ButtonVariantsProps } from '@/styles/button-variants';\n\n/* -----------------------------------------------------------------------------\n * Component: Dialog\n * -------------------------------------------------------------------------- */\n\ntype DialogProps = ComponentProps<typeof DialogPrimitive.Root>;\nconst Dialog = DialogPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: DialogTrigger\n * -------------------------------------------------------------------------- */\n\ntype DialogTriggerProps = ComponentPropsWithoutRef<typeof DialogPrimitive.Trigger>;\nconst DialogTrigger = DialogPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: DialogContent\n * -------------------------------------------------------------------------- */\n\ntype DialogContentElement = ComponentRef<typeof DialogPrimitive.Content>;\ntype DialogContentProps = ComponentPropsWithoutRef<typeof DialogPrimitive.Content>;\n\nconst DialogContent = forwardRef<DialogContentElement, DialogContentProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <DialogPrimitive.Portal>\n <DialogPrimitive.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 <DialogPrimitive.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 {children}\n <DialogPrimitive.Close\n className={buttonVariants({\n className: 'absolute right-4 top-4',\n icon: true,\n size: 'xxs',\n variant: 'ghost',\n })}\n >\n <Cross2Icon className=\"size-4\" />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n </DialogPrimitive.Content>\n </DialogPrimitive.Overlay>\n </DialogPrimitive.Portal>\n ),\n);\n\nDialogContent.displayName = DialogPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DialogHeader\n * -------------------------------------------------------------------------- */\n\ntype DialogHeaderProps = HTMLAttributes<HTMLDivElement>;\n\nfunction DialogHeader({ className, ...props }: DialogHeaderProps): JSX.Element {\n return (\n <header\n className={cn('flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogBody\n * -------------------------------------------------------------------------- */\n\ntype DialogBodyProps = HTMLAttributes<HTMLDivElement>;\n\nfunction DialogBody({ className, ...props }: DialogBodyProps): JSX.Element {\n return <main className={cn('overflow-auto px-6 py-2', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogFooter\n * -------------------------------------------------------------------------- */\n\ntype DialogFooterProps = HTMLAttributes<HTMLDivElement>;\n\nfunction DialogFooter({ className, ...props }: DialogFooterProps): JSX.Element {\n return (\n <footer\n className={cn('flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogTitle\n * -------------------------------------------------------------------------- */\n\ntype DialogTitleElement = ComponentRef<typeof DialogPrimitive.Title>;\ntype DialogTitleProps = ComponentPropsWithoutRef<typeof DialogPrimitive.Title>;\n\nconst DialogTitle = forwardRef<DialogTitleElement, DialogTitleProps>(({ className, ...props }, forwardedRef) => (\n <DialogPrimitive.Title\n ref={forwardedRef}\n className={cn('text-lg font-semibold leading-none tracking-tight', className)}\n {...props}\n />\n));\n\nDialogTitle.displayName = DialogPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DialogDescription\n * -------------------------------------------------------------------------- */\n\ntype DialogDescriptionElement = ComponentRef<typeof DialogPrimitive.Description>;\ntype DialogDescriptionProps = ComponentPropsWithoutRef<typeof DialogPrimitive.Description>;\n\nconst DialogDescription = forwardRef<DialogDescriptionElement, DialogDescriptionProps>(\n ({ className, ...props }, forwardedRef) => (\n <DialogPrimitive.Description\n ref={forwardedRef}\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n ),\n);\n\nDialogDescription.displayName = DialogPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DialogClose\n * -------------------------------------------------------------------------- */\n\ntype DialogCloseElement = ComponentRef<typeof DialogPrimitive.Close>;\ninterface DialogCloseProps extends ComponentPropsWithoutRef<typeof DialogPrimitive.Close> {\n size?: ButtonVariantsProps['size'];\n variant?: ButtonVariantsProps['variant'];\n}\n\nconst DialogClose = forwardRef<DialogCloseElement, DialogCloseProps>(\n ({ className, size, variant = 'outline', ...props }, forwardedRef) => (\n <DialogPrimitive.Close ref={forwardedRef} className={buttonVariants({ className, size, variant })} {...props} />\n ),\n);\n\nDialogClose.displayName = DialogPrimitive.Close.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Dialog,\n DialogBody,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n DialogTrigger,\n type DialogBodyProps,\n type DialogCloseProps,\n type DialogContentProps,\n type DialogDescriptionProps,\n type DialogFooterProps,\n type DialogHeaderProps,\n type DialogProps,\n type DialogTitleProps,\n type DialogTriggerProps,\n};\n"]}
|
package/dist/chunk-LJPFJ6NG.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as t}from"./chunk-VPYH6JWS.js";import*as o from"@codefast-ui/checkbox-group";import{CheckIcon as c}from"@radix-ui/react-icons";import{forwardRef as m}from"react";import{jsx as e}from"react/jsx-runtime";var n=m(({className:r,...i},p)=>e(o.Root,{ref:p,className:t("grid gap-2",r),...i}));n.displayName="CheckboxGroup";var b=m(({className:r,...i},p)=>e(o.Item,{ref:p,className:t(["border-input text-primary-foreground peer flex size-4 shrink-0 rounded border shadow-sm transition","hover:border-primary","aria-checked:border-primary aria-checked:bg-primary","focus-visible:ring-ring focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50"],r),...i,children:e(o.CheckboxGroupIndicator,{children:e(c,{className:"size-3.5"})})}));b.displayName="CheckboxGroupItem";export{n as a,b};
|
|
2
|
-
//# sourceMappingURL=chunk-LJPFJ6NG.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/checkbox-group.tsx"],"names":["CheckboxGroupPrimitive","CheckIcon","forwardRef","jsx","CheckboxGroup","className","props","forwardedRef","cn","CheckboxGroupItem"],"mappings":"wCAAA,UAAYA,MAA4B,8BACxC,OAAS,aAAAC,MAAiB,wBAC1B,OAA2D,cAAAC,MAAkB,QAY3E,cAAAC,MAAA,oBADF,IAAMC,EAAgBF,EAAqD,CAAC,CAAE,UAAAG,EAAW,GAAGC,CAAM,EAAGC,IACnGJ,EAAwB,OAAvB,CAA4B,IAAKI,EAAc,UAAWC,EAAG,aAAcH,CAAS,EAAI,GAAGC,EAAO,CACpG,EAEDF,EAAc,YAAc,gBAS5B,IAAMK,EAAoBP,EACxB,CAAC,CAAE,UAAAG,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAwB,OAAvB,CACC,IAAKI,EACL,UAAWC,EACT,CACE,qGACA,uBACA,sDACA,sGACA,kDACF,EACAH,CACF,EACC,GAAGC,EAEJ,SAAAH,EAAwB,yBAAvB,CACC,SAAAA,EAACF,EAAA,CAAU,UAAU,WAAW,EAClC,EACF,CAEJ,EAEAQ,EAAkB,YAAc","sourcesContent":["import * as CheckboxGroupPrimitive from '@codefast-ui/checkbox-group';\nimport { CheckIcon } from '@radix-ui/react-icons';\nimport { type ComponentPropsWithoutRef, type ComponentRef, forwardRef } from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxGroup\n * -------------------------------------------------------------------------- */\n\ntype CheckboxGroupElement = ComponentRef<typeof CheckboxGroupPrimitive.Root>;\ntype CheckboxGroupProps = ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Root>;\n\nconst CheckboxGroup = forwardRef<CheckboxGroupElement, CheckboxGroupProps>(({ className, ...props }, forwardedRef) => (\n <CheckboxGroupPrimitive.Root ref={forwardedRef} className={cn('grid gap-2', className)} {...props} />\n));\n\nCheckboxGroup.displayName = 'CheckboxGroup';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxGroupItem\n * -------------------------------------------------------------------------- */\n\ntype CheckboxGroupItemElement = ComponentRef<typeof CheckboxGroupPrimitive.Item>;\ntype CheckboxGroupItemProps = ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Item>;\n\nconst CheckboxGroupItem = forwardRef<CheckboxGroupItemElement, CheckboxGroupItemProps>(\n ({ className, ...props }, forwardedRef) => (\n <CheckboxGroupPrimitive.Item\n ref={forwardedRef}\n className={cn(\n [\n 'border-input text-primary-foreground peer flex size-4 shrink-0 rounded border shadow-sm transition',\n 'hover:border-primary',\n 'aria-checked:border-primary aria-checked:bg-primary',\n 'focus-visible:ring-ring focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2',\n 'disabled:pointer-events-none disabled:opacity-50',\n ],\n className,\n )}\n {...props}\n >\n <CheckboxGroupPrimitive.CheckboxGroupIndicator>\n <CheckIcon className=\"size-3.5\" />\n </CheckboxGroupPrimitive.CheckboxGroupIndicator>\n </CheckboxGroupPrimitive.Item>\n ),\n);\n\nCheckboxGroupItem.displayName = 'CheckboxGroupItem';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { CheckboxGroup, CheckboxGroupItem, type CheckboxGroupItemProps, type CheckboxGroupProps };\n"]}
|
package/dist/chunk-MHH6QORE.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _chunkKF7Y7B3Gcjs = require('./chunk-KF7Y7B3G.cjs');var _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _reacticons = require('@radix-ui/react-icons');var _reactnavigationmenu = require('@radix-ui/react-navigation-menu'); var t = _interopRequireWildcard(_reactnavigationmenu);var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var N=_react.forwardRef.call(void 0, ({children:i,className:e,...o},p)=>_jsxruntime.jsxs.call(void 0, t.Root,{ref:p,className:_chunkDD6AVCRHcjs.a.call(void 0, "relative z-10 flex max-w-max flex-1 items-center justify-center",e),...o,children:[i,_jsxruntime.jsx.call(void 0, s,{})]}));N.displayName=t.Root.displayName;var d=_react.forwardRef.call(void 0, ({children:i,className:e,...o},p)=>_jsxruntime.jsxs.call(void 0, t.List,{ref:p,className:_chunkDD6AVCRHcjs.a.call(void 0, "group flex flex-1 list-none items-center justify-center space-x-1",e),...o,children:[i,_jsxruntime.jsx.call(void 0, g,{})]}));d.displayName=t.List.displayName;var h=t.Item,f= exports.d =_react.forwardRef.call(void 0, ({children:i,className:e,...o},p)=>_jsxruntime.jsxs.call(void 0, t.Trigger,{ref:p,className:_chunkKF7Y7B3Gcjs.a.call(void 0, {variant:"ghost",className:["data-[state=open]:bg-accent data-[state=open]:text-accent-foreground","group",e]}),...o,children:[i,_jsxruntime.jsx.call(void 0, _reacticons.ChevronDownIcon,{"aria-hidden":"true",className:_chunkDD6AVCRHcjs.a.call(void 0, "relative top-px ml-1 size-3 transition","group-data-[state=open]:rotate-180")})]}));f.displayName=t.Trigger.displayName;var M=_react.forwardRef.call(void 0, ({className:i,...e},o)=>_jsxruntime.jsx.call(void 0, t.Content,{ref:o,className:_chunkDD6AVCRHcjs.a.call(void 0, "left-0 top-0 w-full md:absolute md:w-auto","data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in","data-[motion=from-end]:slide-in-from-right-52","data-[motion=from-start]:slide-in-from-left-52","data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out","data-[motion=to-end]:slide-out-to-right-52","data-[motion=to-start]:slide-out-to-left-52",i),...e}));M.displayName=t.Content.displayName;var w=t.Link,s=_react.forwardRef.call(void 0, ({className:i,...e},o)=>_jsxruntime.jsx.call(void 0, "div",{className:"perspective-[125rem] absolute left-0 top-full flex justify-center",children:_jsxruntime.jsx.call(void 0, t.Viewport,{ref:o,className:_chunkDD6AVCRHcjs.a.call(void 0, "bg-popover text-popover-foreground relative mt-1.5 w-full origin-[top_center] overflow-hidden rounded-md border p-1 shadow-md transition-[width,height]","h-[var(--radix-navigation-menu-viewport-height)] sm:w-[var(--radix-navigation-menu-viewport-width)]","data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-90","data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95",i),...e})}));s.displayName=t.Viewport.displayName;var g=_react.forwardRef.call(void 0, ({className:i,...e},o)=>_jsxruntime.jsx.call(void 0, t.Indicator,{ref:o,className:_chunkDD6AVCRHcjs.a.call(void 0, "data-[state=visible]:animate-fade-in data-[state=hidden]:animate-fade-out top-full z-10 flex h-1.5 items-center justify-center overflow-hidden transition",i),...e,children:_jsxruntime.jsx.call(void 0, "div",{className:"bg-popover relative top-[60%] size-2 rotate-45 rounded-tl-sm"})}));g.displayName=t.Indicator.displayName;exports.a = N; exports.b = d; exports.c = h; exports.d = f; exports.e = M; exports.f = w;
|
|
2
|
-
//# sourceMappingURL=chunk-MHH6QORE.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-MHH6QORE.cjs","../src/components/navigation-menu.tsx"],"names":["NavigationMenu","forwardRef","children","className","props","forwardedRef","jsxs","cn","jsx","NavigationMenuViewport","NavigationMenuList","NavigationMenuIndicator","NavigationMenuItem","NavigationMenuTrigger","buttonVariants","ChevronDownIcon","NavigationMenuContent","NavigationMenuLink"],"mappings":"AAAA,mZAAwC,wDAAyC,mDCAjD,6HACS,8BACoC,+CAczE,IAFEA,CAAAA,CAAiBC,+BAAAA,CACpB,CAAE,QAAA,CAAAC,CAAAA,CAAU,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAClCC,8BAAAA,CAAyB,CAAA,IAAA,CAAxB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,iEAAG,CAAmEJ,CAAS,CAAA,CACzF,GAAGC,CAAAA,CAEH,QAAA,CAAA,CAAAF,CAAAA,CACDM,6BAAAA,CAACC,CAAA,CAAA,CAAuB,CAAA,CAAA,CAC1B,CAEJ,CAAA,CAEAT,CAAAA,CAAe,WAAA,CAAsC,CAAA,CAAA,IAAA,CAAK,WAAA,CAS1D,IAAMU,CAAAA,CAAqBT,+BAAAA,CACxB,CAAE,QAAA,CAAAC,CAAAA,CAAU,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAClCC,8BAAAA,CAAyB,CAAA,IAAA,CAAxB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,mEAAG,CAAqEJ,CAAS,CAAA,CAC3F,GAAGC,CAAAA,CAEH,QAAA,CAAA,CAAAF,CAAAA,CACDM,6BAAAA,CAACG,CAAA,CAAA,CAAwB,CAAA,CAAA,CAC3B,CAEJ,CAAA,CAEAD,CAAAA,CAAmB,WAAA,CAAsC,CAAA,CAAA,IAAA,CAAK,WAAA,CAQ9D,IAAME,CAAAA,CAA6C,CAAA,CAAA,IAAA,CAS7CC,CAAAA,aAAwBZ,+BAAAA,CAC3B,CAAE,QAAA,CAAAC,CAAAA,CAAU,SAAA,C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,iCAAAA,yJACT,CACA,qGAAA,CACA,qFAAA,CACA,8FAAA,CACAJ,CACF,CAAA,CACC,GAAGC,CAAAA,CACN,CAAA,CACF,CAEJ,CAAA,CAEAK,CAAAA,CAAuB,WAAA,CAAsC,CAAA,CAAA,QAAA,CAAS,WAAA,CAStE,IAAME,CAAAA,CAA0BV,+BAAAA,CAC7B,CAAE,SAAA,CAAAE,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBG,6BAAAA,CAAyB,CAAA,SAAA,CAAxB,CACC,GAAA,CAAKH,CAAAA,CACL,SAAA,CAAWE,iCAAAA,2JACT,CACAJ,CACF,CAAA,CACC,GAAGC,CAAAA,CAEJ,QAAA,CAAAI,6BAAAA,KAAC,CAAA,CAAI,SAAA,CAAU,8DAAA,CAA+D,CAAA,CAChF,CAEJ,CAAA,CAEAG,CAAAA,CAAwB,WAAA,CAAsC,CAAA,CAAA,SAAA,CAAU,WAAA,CAAA,yFAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-MHH6QORE.cjs","sourcesContent":[null,"import { ChevronDownIcon } from '@radix-ui/react-icons';\nimport * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';\nimport { type ComponentPropsWithoutRef, type ComponentRef, forwardRef } from 'react';\n\nimport { cn } from '@/lib/utils';\nimport { buttonVariants } from '@/styles/button-variants';\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenu\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuElement = ComponentRef<typeof NavigationMenuPrimitive.Root>;\ntype NavigationMenuProps = ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Root>;\n\nconst NavigationMenu = forwardRef<NavigationMenuElement, NavigationMenuProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <NavigationMenuPrimitive.Root\n ref={forwardedRef}\n className={cn('relative z-10 flex max-w-max flex-1 items-center justify-center', className)}\n {...props}\n >\n {children}\n <NavigationMenuViewport />\n </NavigationMenuPrimitive.Root>\n ),\n);\n\nNavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenuList\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuListElement = ComponentRef<typeof NavigationMenuPrimitive.List>;\ntype NavigationMenuListProps = ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.List>;\n\nconst NavigationMenuList = forwardRef<NavigationMenuListElement, NavigationMenuListProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <NavigationMenuPrimitive.List\n ref={forwardedRef}\n className={cn('group flex flex-1 list-none items-center justify-center space-x-1', className)}\n {...props}\n >\n {children}\n <NavigationMenuIndicator />\n </NavigationMenuPrimitive.List>\n ),\n);\n\nNavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenuItem\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuItemProps = ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Item>;\n\nconst NavigationMenuItem = NavigationMenuPrimitive.Item;\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenuContent\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuTriggerElement = ComponentRef<typeof NavigationMenuPrimitive.Trigger>;\ntype NavigationMenuTriggerProps = ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Trigger>;\n\nconst NavigationMenuTrigger = forwardRef<NavigationMenuTriggerElement, NavigationMenuTriggerProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <NavigationMenuPrimitive.Trigger\n ref={forwardedRef}\n className={buttonVariants({\n variant: 'ghost',\n className: ['data-[state=open]:bg-accent data-[state=open]:text-accent-foreground', 'group', className],\n })}\n {...props}\n >\n {children}\n <ChevronDownIcon\n aria-hidden=\"true\"\n className={cn('relative top-px ml-1 size-3 transition', 'group-data-[state=open]:rotate-180')}\n />\n </NavigationMenuPrimitive.Trigger>\n ),\n);\n\nNavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenuContent\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuContentElement = ComponentRef<typeof NavigationMenuPrimitive.Content>;\ntype NavigationMenuContentProps = ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Content>;\n\nconst NavigationMenuContent = forwardRef<NavigationMenuContentElement, NavigationMenuContentProps>(\n ({ className, ...props }, forwardedRef) => (\n <NavigationMenuPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'left-0 top-0 w-full md:absolute md:w-auto',\n 'data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in',\n 'data-[motion=from-end]:slide-in-from-right-52',\n 'data-[motion=from-start]:slide-in-from-left-52',\n 'data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out',\n 'data-[motion=to-end]:slide-out-to-right-52',\n 'data-[motion=to-start]:slide-out-to-left-52',\n className,\n )}\n {...props}\n />\n ),\n);\n\nNavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenuLink\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuLinkProps = ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Link>;\n\nconst NavigationMenuLink = NavigationMenuPrimitive.Link;\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenuViewport\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuViewportElement = ComponentRef<typeof NavigationMenuPrimitive.Viewport>;\ntype NavigationMenuViewportProps = ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Viewport>;\n\nconst NavigationMenuViewport = forwardRef<NavigationMenuViewportElement, NavigationMenuViewportProps>(\n ({ className, ...props }, forwardedRef) => (\n <div className=\"perspective-[125rem] absolute left-0 top-full flex justify-center\">\n <NavigationMenuPrimitive.Viewport\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground relative mt-1.5 w-full origin-[top_center] overflow-hidden rounded-md border p-1 shadow-md transition-[width,height]',\n 'h-[var(--radix-navigation-menu-viewport-height)] sm:w-[var(--radix-navigation-menu-viewport-width)]',\n 'data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-90',\n 'data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95',\n className,\n )}\n {...props}\n />\n </div>\n ),\n);\n\nNavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: NavigationMenuIndicator\n * -------------------------------------------------------------------------- */\n\ntype NavigationMenuIndicatorElement = ComponentRef<typeof NavigationMenuPrimitive.Indicator>;\ntype NavigationMenuIndicatorProps = ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Indicator>;\n\nconst NavigationMenuIndicator = forwardRef<NavigationMenuIndicatorElement, NavigationMenuIndicatorProps>(\n ({ className, ...props }, forwardedRef) => (\n <NavigationMenuPrimitive.Indicator\n ref={forwardedRef}\n className={cn(\n 'data-[state=visible]:animate-fade-in data-[state=hidden]:animate-fade-out top-full z-10 flex h-1.5 items-center justify-center overflow-hidden transition',\n className,\n )}\n {...props}\n >\n <div className=\"bg-popover relative top-[60%] size-2 rotate-45 rounded-tl-sm\" />\n </NavigationMenuPrimitive.Indicator>\n ),\n);\n\nNavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n NavigationMenu,\n NavigationMenuContent,\n NavigationMenuItem,\n NavigationMenuLink,\n NavigationMenuList,\n NavigationMenuTrigger,\n type NavigationMenuContentProps,\n type NavigationMenuItemProps,\n type NavigationMenuLinkProps,\n type NavigationMenuListProps,\n type NavigationMenuProps,\n type NavigationMenuTriggerProps,\n};\n"]}
|
package/dist/chunk-MO7TQSRR.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as m}from"./chunk-EVRI6TWT.js";import{a as r}from"./chunk-VPYH6JWS.js";import*as e from"@radix-ui/react-dialog";import{Cross2Icon as h}from"@radix-ui/react-icons";import{forwardRef as a}from"react";import{tv as S}from"tailwind-variants";import{jsx as i,jsxs as l}from"react/jsx-runtime";var d=S({base:["bg-background animate-ease-in-out fixed z-50 flex flex-col overflow-auto shadow-lg","data-[state=open]:animate-in data-[state=open]:animate-duration-500","data-[state=closed]:animate-out data-[state=closed]:animate-duration-300"],defaultVariants:{side:"right"},variants:{side:{top:["inset-x-0 top-0 max-h-screen border-b","data-[state=open]:slide-in-from-top","data-[state=closed]:slide-out-to-top"],bottom:["inset-x-0 bottom-0 max-h-screen border-t","data-[state=open]:slide-in-from-bottom","data-[state=closed]:slide-out-to-bottom"],left:["inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm","data-[state=open]:slide-in-from-left","data-[state=closed]:slide-out-to-left"],right:["inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm","data-[state=open]:slide-in-from-right","data-[state=closed]:slide-out-to-right"]}}}),E=e.Root,R=e.Trigger,P=a(({children:t,side:o="right",className:s,...n},p)=>l(e.Portal,{children:[i(e.Overlay,{className:r("fixed inset-0 z-50 bg-black/80","data-[state=open]:animate-duration-500 data-[state=open]:animate-fade-in","data-[state=closed]:animate-duration-300 data-[state=closed]:animate-fade-out")}),l(e.Content,{ref:p,className:d({side:o,className:s}),...n,children:[t,l(e.Close,{className:m({className:"absolute right-4 top-4",icon:!0,size:"xxs",variant:"ghost"}),children:[i(h,{className:"size-4"}),i("span",{className:"sr-only",children:"Close"})]})]})]}));P.displayName=e.Content.displayName;function D({className:t,...o}){return i("header",{className:r("flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left",t),...o})}function H({className:t,...o}){return i("main",{className:r("px-6 py-2",t),...o})}function f({className:t,...o}){return i("footer",{className:r("flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end",t),...o})}f.displayName="SheetFooter";var y=a(({className:t,...o},s)=>i(e.Title,{ref:s,className:r("text-foreground text-lg font-semibold",t),...o}));y.displayName=e.Title.displayName;var c=a(({className:t,...o},s)=>i(e.Description,{ref:s,className:r("text-muted-foreground text-sm",t),...o}));c.displayName=e.Description.displayName;var u=a(({className:t,size:o,variant:s="outline",...n},p)=>i(e.Close,{ref:p,className:m({variant:s,size:o,className:t}),...n}));u.displayName=e.Close.displayName;export{E as a,R as b,P as c,D as d,H as e,f,y as g,c as h,u as i};
|
|
2
|
-
//# sourceMappingURL=chunk-MO7TQSRR.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/sheet.tsx"],"names":["SheetPrimitive","Cross2Icon","forwardRef","tv","jsx","jsxs","sheetContentVariants","Sheet","SheetTrigger","SheetContent","children","side","className","props","forwardedRef","cn","buttonVariants","SheetHeader","SheetBody","SheetFooter","SheetTitle","SheetDescription","SheetClose","size","variant"],"mappings":"gFAAA,UAAYA,MAAoB,yBAChC,OAAS,cAAAC,MAAkB,wBAC3B,OAIE,cAAAC,MAGK,QACP,OAAS,MAAAC,MAA6B,oBAsEhC,cAAAC,EASE,QAAAC,MATF,oBA7DN,IAAMC,EAAuBH,EAAG,CAC9B,KAAM,CACJ,qFACA,sEACA,0EACF,EACA,gBAAiB,CACf,KAAM,OACR,EACA,SAAU,CACR,KAAM,CACJ,IAAK,CACH,wCACA,sCACA,sCACF,EACA,OAAQ,CACN,2CACA,yCACA,yCACF,EACA,KAAM,CACJ,qDACA,uCACA,uCACF,EACA,MAAO,CACL,sDACA,wCACA,wCACF,CACF,CACF,CACF,CAAC,EASKI,EAAuB,OAOvBC,EAA8B,UAS9BC,EAAeP,EACnB,CAAC,CAAE,SAAAQ,EAAU,KAAAC,EAAO,QAAS,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAClDT,EAAgB,SAAf,CACC,UAAAD,EAAgB,UAAf,CACC,UAAWW,EACT,iCACA,2EACA,+EACF,EACF,EACAV,EAAgB,UAAf,CAAuB,IAAKS,EAAc,UA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EAAgB,QAAf,CAAqB,IAAKU,EAAc,UAAWE,EAAe,CAAE,QAAAQ,EAAS,KAAAD,EAAM,UAAAX,CAAU,CAAC,EAAI,GAAGC,EAAO,CAEjH,EAEAS,EAAW,YAA6B,QAAM","sourcesContent":["import * as SheetPrimitive from '@radix-ui/react-dialog';\nimport { Cross2Icon } 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';\nimport { tv, type VariantProps } from 'tailwind-variants';\n\nimport { cn } from '@/lib/utils';\nimport { buttonVariants, type ButtonVariantsProps } from '@/styles/button-variants';\n\n/* -----------------------------------------------------------------------------\n * Variant: SheetContent\n * -------------------------------------------------------------------------- */\n\nconst sheetContentVariants = tv({\n base: [\n 'bg-background animate-ease-in-out fixed z-50 flex flex-col overflow-auto shadow-lg',\n 'data-[state=open]:animate-in data-[state=open]:animate-duration-500',\n 'data-[state=closed]:animate-out data-[state=closed]:animate-duration-300',\n ],\n defaultVariants: {\n side: 'right',\n },\n variants: {\n side: {\n top: [\n 'inset-x-0 top-0 max-h-screen border-b',\n 'data-[state=open]:slide-in-from-top',\n 'data-[state=closed]:slide-out-to-top',\n ],\n bottom: [\n 'inset-x-0 bottom-0 max-h-screen border-t',\n 'data-[state=open]:slide-in-from-bottom',\n 'data-[state=closed]:slide-out-to-bottom',\n ],\n left: [\n 'inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm',\n 'data-[state=open]:slide-in-from-left',\n 'data-[state=closed]:slide-out-to-left',\n ],\n right: [\n 'inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm',\n 'data-[state=open]:slide-in-from-right',\n 'data-[state=closed]:slide-out-to-right',\n ],\n },\n },\n});\n\ntype SheetContentVariantsProps = VariantProps<typeof sheetContentVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: Sheet\n * -------------------------------------------------------------------------- */\n\ntype SheetProps = ComponentProps<typeof SheetPrimitive.Root>;\nconst Sheet = SheetPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetTrigger\n * -------------------------------------------------------------------------- */\n\ntype SheetTriggerProps = ComponentPropsWithoutRef<typeof SheetPrimitive.Trigger>;\nconst SheetTrigger = SheetPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetContent\n * -------------------------------------------------------------------------- */\n\ntype SheetContentElement = ComponentRef<typeof SheetPrimitive.Content>;\ntype SheetContentProps = ComponentPropsWithoutRef<typeof SheetPrimitive.Content> & SheetContentVariantsProps;\n\nconst SheetContent = forwardRef<SheetContentElement, SheetContentProps>(\n ({ children, side = 'right', className, ...props }, forwardedRef) => (\n <SheetPrimitive.Portal>\n <SheetPrimitive.Overlay\n className={cn(\n 'fixed inset-0 z-50 bg-black/80',\n 'data-[state=open]:animate-duration-500 data-[state=open]:animate-fade-in',\n 'data-[state=closed]:animate-duration-300 data-[state=closed]:animate-fade-out',\n )}\n />\n <SheetPrimitive.Content ref={forwardedRef} className={sheetContentVariants({ side, className })} {...props}>\n {children}\n <SheetPrimitive.Close\n className={buttonVariants({\n className: 'absolute right-4 top-4',\n icon: true,\n size: 'xxs',\n variant: 'ghost',\n })}\n >\n <Cross2Icon className=\"size-4\" />\n <span className=\"sr-only\">Close</span>\n </SheetPrimitive.Close>\n </SheetPrimitive.Content>\n </SheetPrimitive.Portal>\n ),\n);\n\nSheetContent.displayName = SheetPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetHeader\n * -------------------------------------------------------------------------- */\n\ntype SheetHeaderProps = HTMLAttributes<HTMLDivElement>;\n\nfunction SheetHeader({ className, ...props }: SheetHeaderProps): JSX.Element {\n return (\n <header\n className={cn('flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetBody\n * -------------------------------------------------------------------------- */\n\ntype SheetBodyProps = HTMLAttributes<HTMLDivElement>;\n\nfunction SheetBody({ className, ...props }: SheetHeaderProps): JSX.Element {\n return <main className={cn('px-6 py-2', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetFooter\n * -------------------------------------------------------------------------- */\n\ntype SheetFooterProps = HTMLAttributes<HTMLDivElement>;\n\nfunction SheetFooter({ className, ...props }: SheetFooterProps): JSX.Element {\n return (\n <footer\n className={cn('flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end', className)}\n {...props}\n />\n );\n}\n\nSheetFooter.displayName = 'SheetFooter';\n\n/* -----------------------------------------------------------------------------\n * Component: SheetTitle\n * -------------------------------------------------------------------------- */\n\ntype SheetTitleElement = ComponentRef<typeof SheetPrimitive.Title>;\ntype SheetTitleProps = ComponentPropsWithoutRef<typeof SheetPrimitive.Title>;\n\nconst SheetTitle = forwardRef<SheetTitleElement, SheetTitleProps>(({ className, ...props }, forwardedRef) => (\n <SheetPrimitive.Title\n ref={forwardedRef}\n className={cn('text-foreground text-lg font-semibold', className)}\n {...props}\n />\n));\n\nSheetTitle.displayName = SheetPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetDescription\n * -------------------------------------------------------------------------- */\n\ntype SheetDescriptionElement = ComponentRef<typeof SheetPrimitive.Description>;\ntype SheetDescriptionProps = ComponentPropsWithoutRef<typeof SheetPrimitive.Description>;\n\nconst SheetDescription = forwardRef<SheetDescriptionElement, SheetDescriptionProps>(\n ({ className, ...props }, forwardedRef) => (\n <SheetPrimitive.Description\n ref={forwardedRef}\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n ),\n);\n\nSheetDescription.displayName = SheetPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetClose\n * -------------------------------------------------------------------------- */\n\ntype SheetCloseElement = ComponentRef<typeof SheetPrimitive.Close>;\ninterface SheetCloseProps extends ComponentPropsWithoutRef<typeof SheetPrimitive.Close> {\n size?: ButtonVariantsProps['size'];\n variant?: ButtonVariantsProps['variant'];\n}\n\nconst SheetClose = forwardRef<SheetCloseElement, SheetCloseProps>(\n ({ className, size, variant = 'outline', ...props }, forwardedRef) => (\n <SheetPrimitive.Close ref={forwardedRef} className={buttonVariants({ variant, size, className })} {...props} />\n ),\n);\n\nSheetClose.displayName = SheetPrimitive.Close.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Sheet,\n SheetBody,\n SheetClose,\n SheetContent,\n SheetDescription,\n SheetFooter,\n SheetHeader,\n SheetTitle,\n SheetTrigger,\n type SheetBodyProps,\n type SheetCloseProps,\n type SheetContentProps,\n type SheetDescriptionProps,\n type SheetFooterProps,\n type SheetHeaderProps,\n type SheetProps,\n type SheetTitleProps,\n type SheetTriggerProps,\n};\n"]}
|
package/dist/chunk-MYT23AOL.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";import{a as r}from"./chunk-7MCTR55I.js";import{a as i}from"./chunk-24TJIVWR.js";import{a as n}from"./chunk-Q3UBBFLY.js";import*as o from"@codefast-ui/input";import{EyeClosedIcon as c,EyeOpenIcon as v}from"@radix-ui/react-icons";import{forwardRef as C,useCallback as R,useState as x}from"react";import{jsx as t,jsxs as h}from"react/jsx-runtime";var{root:E,input:b}=r(),g=C(({className:a,inputSize:e,loaderPosition:m,loading:d,prefix:u,spinner:P,suffix:l,...p},f)=>{let[s,I]=x("password"),w=R(()=>{I(y=>y==="password"?"text":"password")},[]);return h(o.Root,{className:E({inputSize:e,className:a}),loaderPosition:m,loading:d,prefix:u,spinner:P||t(n,{}),suffix:l,children:[t(o.Item,{ref:f,className:b({inputSize:e}),type:s,...p}),t(i,{icon:!0,inside:!0,"aria-label":s==="password"?"Show password":"Hide password",className:"rounded-full",disabled:p.disabled,prefix:s==="password"?t(c,{}):t(v,{}),size:e,variant:"ghost",onClick:w})]})});g.displayName="PasswordInput";export{g as a};
|
|
2
|
-
//# sourceMappingURL=chunk-MYT23AOL.js.map
|