@dub/ui 0.2.7 → 0.2.9
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/accordion.mjs +1 -1
- package/dist/animated-size-container.d.ts +48 -48
- package/dist/button.mjs +1 -1
- package/dist/carousel.mjs +1 -1
- package/dist/charts/index.d.ts +156 -0
- package/dist/charts/index.mjs +2 -0
- package/dist/chunk-2HOGE6HG.mjs +2 -0
- package/dist/chunk-2LSRXXDX.mjs +2 -0
- package/dist/chunk-2RNIN6ZY.mjs +2 -0
- package/dist/chunk-2SL25K2Q.mjs +2 -0
- package/dist/chunk-2SQLCNNE.mjs +2 -0
- package/dist/chunk-3O25SFLK.mjs +2 -0
- package/dist/chunk-3PHFUEKO.mjs +2 -0
- package/dist/chunk-47OVPGPH.mjs +2 -0
- package/dist/chunk-4HWIRBT6.mjs +2 -0
- package/dist/chunk-4XSN2Y4F.mjs +2 -0
- package/dist/chunk-5BTRQ455.mjs +2 -0
- package/dist/chunk-5CFJNFVC.mjs +2 -0
- package/dist/chunk-5VOOONEK.mjs +2 -0
- package/dist/chunk-5Y64Q5JH.mjs +2 -0
- package/dist/chunk-66IU26EY.mjs +2 -0
- package/dist/chunk-66QJUFOC.mjs +2 -0
- package/dist/chunk-6JHR2A64.mjs +2 -0
- package/dist/chunk-6KKHX2A6.mjs +2 -0
- package/dist/chunk-6LJ5Q3MG.mjs +2 -0
- package/dist/chunk-6P7L7ELD.mjs +2 -0
- package/dist/chunk-6VCDKSVF.mjs +2 -0
- package/dist/chunk-6VDMTZF3.mjs +2 -0
- package/dist/chunk-72EV3C4Y.mjs +6 -0
- package/dist/chunk-73CWYOTO.mjs +2 -0
- package/dist/chunk-7DWNPJNK.mjs +2 -0
- package/dist/chunk-7VCCNYRW.mjs +2 -0
- package/dist/chunk-7XSC4UCT.mjs +2 -0
- package/dist/chunk-A4YMPQZN.mjs +2 -0
- package/dist/chunk-AA4AOADM.mjs +6 -0
- package/dist/chunk-ATVD2WLZ.mjs +2 -0
- package/dist/chunk-B7HQBYM2.mjs +2 -0
- package/dist/chunk-BH3YVAUL.mjs +2 -0
- package/dist/chunk-BOXQDBE7.mjs +2 -0
- package/dist/chunk-C2BIGRNF.mjs +2 -0
- package/dist/chunk-D6PKQLE2.mjs +2 -0
- package/dist/chunk-DCXGQAWG.mjs +2 -0
- package/dist/chunk-DP6OZT73.mjs +2 -0
- package/dist/chunk-DPTLC5IZ.mjs +2 -0
- package/dist/chunk-DQG5LLHE.mjs +2 -0
- package/dist/chunk-DVBWEVWE.mjs +2 -0
- package/dist/chunk-DVR3KUDI.mjs +2 -0
- package/dist/chunk-DXH6A35E.mjs +2 -0
- package/dist/chunk-EZS3HYBM.mjs +2 -0
- package/dist/chunk-F3PK24S5.mjs +2 -0
- package/dist/chunk-FKXVNEUD.mjs +2 -0
- package/dist/chunk-FO65IXJT.mjs +2 -0
- package/dist/chunk-FRWEIS35.mjs +2 -0
- package/dist/chunk-FWAYR65J.mjs +2 -0
- package/dist/chunk-G4OD2RDL.mjs +6 -0
- package/dist/chunk-GYB4JOCF.mjs +2 -0
- package/dist/chunk-GYMAR7NH.mjs +2 -0
- package/dist/chunk-H52MXCL6.mjs +2 -0
- package/dist/chunk-H57RZYYH.mjs +2 -0
- package/dist/chunk-HGMHBUBD.mjs +2 -0
- package/dist/chunk-HHYP7SGG.mjs +2 -0
- package/dist/chunk-IVU65472.mjs +2 -0
- package/dist/chunk-IYERGOR2.mjs +2 -0
- package/dist/chunk-JAMVXQG7.mjs +2 -0
- package/dist/chunk-JG7VHWWE.mjs +2 -0
- package/dist/chunk-JQZW3VLB.mjs +2 -0
- package/dist/chunk-JSJEEIRO.mjs +2 -0
- package/dist/chunk-K5FVVXE3.mjs +2 -0
- package/dist/chunk-KB4OZUHU.mjs +2 -0
- package/dist/chunk-KG7GYVNV.mjs +6 -0
- package/dist/chunk-KL4ETPR2.mjs +2 -0
- package/dist/chunk-KOKZKDPR.mjs +2 -0
- package/dist/chunk-KRE54R4V.mjs +2 -0
- package/dist/chunk-KRPWOFGZ.mjs +2 -0
- package/dist/chunk-LC4HUADE.mjs +2 -0
- package/dist/chunk-LNFFJT22.mjs +2 -0
- package/dist/chunk-LTXYZWOV.mjs +2 -0
- package/dist/chunk-LYXT4F3W.mjs +2 -0
- package/dist/chunk-M5KIJTFG.mjs +2 -0
- package/dist/chunk-MJ2P6CBB.mjs +6 -0
- package/dist/chunk-MJC223MV.mjs +2 -0
- package/dist/chunk-MULY6ST7.mjs +2 -0
- package/dist/chunk-MVJ2C5SS.mjs +2 -0
- package/dist/chunk-N5MJX4FR.mjs +2 -0
- package/dist/chunk-N7NUJSNM.mjs +2 -0
- package/dist/chunk-NAFNRIUH.mjs +2 -0
- package/dist/chunk-NFHRLY2B.mjs +2 -0
- package/dist/chunk-NMC562ZB.mjs +2 -0
- package/dist/chunk-NSVH6ON6.mjs +2 -0
- package/dist/chunk-OA2MRG25.mjs +2 -0
- package/dist/chunk-OAE6WUCN.mjs +2 -0
- package/dist/chunk-OCFKJYSM.mjs +2 -0
- package/dist/chunk-OE6534GC.mjs +2 -0
- package/dist/chunk-OGC3B2JT.mjs +2 -0
- package/dist/chunk-OL6H47ST.mjs +2 -0
- package/dist/chunk-OYDAVVJ7.mjs +2 -0
- package/dist/chunk-P2QJXWDR.mjs +2 -0
- package/dist/chunk-PGH2352K.mjs +2 -0
- package/dist/chunk-Q762U6H4.mjs +2 -0
- package/dist/chunk-QIMSUMWR.mjs +2 -0
- package/dist/chunk-QM6GT5NH.mjs +6 -0
- package/dist/chunk-QNXH7C4R.mjs +2 -0
- package/dist/chunk-QRT5B26H.mjs +2 -0
- package/dist/chunk-R47TRTVS.mjs +2 -0
- package/dist/chunk-RNGPEKJY.mjs +2 -0
- package/dist/chunk-SHBCF7QJ.mjs +2 -0
- package/dist/chunk-SHMVJQCP.mjs +2 -0
- package/dist/chunk-ST4CFA3E.mjs +2 -0
- package/dist/chunk-SUQDTSW7.mjs +2 -0
- package/dist/chunk-TL6BXJOB.mjs +2 -0
- package/dist/chunk-TMQVOAEV.mjs +2 -0
- package/dist/chunk-TNK4P5B6.mjs +2 -0
- package/dist/chunk-TQS6POFH.mjs +2 -0
- package/dist/chunk-TU5QJD2G.mjs +2 -0
- package/dist/chunk-TVIEJDOT.mjs +2 -0
- package/dist/chunk-U3PLYT2S.mjs +2 -0
- package/dist/chunk-U4QDY74H.mjs +2 -0
- package/dist/chunk-U4SM634N.mjs +6 -0
- package/dist/chunk-U4U2SEQH.mjs +2 -0
- package/dist/chunk-U63BJZF7.mjs +6 -0
- package/dist/chunk-UH2USHTJ.mjs +2 -0
- package/dist/chunk-UHIXHGGV.mjs +2 -0
- package/dist/chunk-USLA4OL6.mjs +6 -0
- package/dist/chunk-UVBCSQZK.mjs +2 -0
- package/dist/chunk-UZM2GVGU.mjs +2 -0
- package/dist/chunk-V4CONMAR.mjs +2 -0
- package/dist/chunk-VDBIRURA.mjs +2 -0
- package/dist/chunk-VNJGL6KK.mjs +2 -0
- package/dist/chunk-VVLXJ2A3.mjs +2 -0
- package/dist/chunk-W3JJVSL6.mjs +6 -0
- package/dist/chunk-W6NCEJQO.mjs +6 -0
- package/dist/chunk-WKJ7IAOL.mjs +2 -0
- package/dist/chunk-WTNYKET5.mjs +2 -0
- package/dist/chunk-WWBIAI7P.mjs +2 -0
- package/dist/chunk-WYY3IAA7.mjs +2 -0
- package/dist/chunk-X4NMGJT6.mjs +2 -0
- package/dist/chunk-X4YNGHT5.mjs +2 -0
- package/dist/chunk-XIPPVPEW.mjs +2 -0
- package/dist/chunk-Y5VGCJT3.mjs +2 -0
- package/dist/chunk-YANDYLVU.mjs +2 -0
- package/dist/chunk-YFUQ6W6V.mjs +2 -0
- package/dist/chunk-YJZ5JWXJ.mjs +2 -0
- package/dist/chunk-YLRBZU2X.mjs +2 -0
- package/dist/chunk-YQR44VPZ.mjs +2 -0
- package/dist/chunk-YT4ZNZKU.mjs +42 -0
- package/dist/chunk-YWSYCEQF.mjs +2 -0
- package/dist/chunk-YXTF62XL.mjs +2 -0
- package/dist/chunk-ZG67UIBY.mjs +2 -0
- package/dist/chunk-ZH33FNUR.mjs +2 -0
- package/dist/chunk-ZLR5EIUH.mjs +2 -0
- package/dist/chunk-ZVRMZ2BI.mjs +2 -0
- package/dist/chunk-ZW5BOVJS.mjs +2 -0
- package/dist/combobox/index.mjs +1 -1
- package/dist/copy-button.mjs +1 -1
- package/dist/date-picker/date-range-picker.mjs +1 -1
- package/dist/date-picker/presets.mjs +1 -1
- package/dist/file-upload.mjs +1 -1
- package/dist/filter/filter-select.mjs +1 -1
- package/dist/footer.mjs +1 -1
- package/dist/form.mjs +1 -1
- package/dist/icons/continents/index.mjs +1 -1
- package/dist/icons/index.d.ts +457 -195
- package/dist/icons/index.mjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1101 -280
- package/dist/index.mjs +51 -1
- package/dist/input.mjs +1 -1
- package/dist/link-logo.mjs +1 -1
- package/dist/link-preview.mjs +1 -1
- package/dist/nav/content/product-content.mjs +1 -1
- package/dist/nav/content/resources-content.mjs +1 -1
- package/dist/nav/content/shared.mjs +1 -1
- package/dist/nav/content/solutions-content.mjs +1 -1
- package/dist/nav/nav-mobile.mjs +1 -1
- package/dist/nav/nav.mjs +1 -1
- package/dist/nav-wordmark.mjs +1 -1
- package/dist/status-badge.mjs +1 -1
- package/dist/switch.mjs +1 -1
- package/dist/table/table.mjs +1 -1
- package/dist/tooltip.d.ts +1 -1
- package/dist/tooltip.mjs +1 -1
- package/dist/utm-builder.mjs +1 -1
- package/package.json +26 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{h as i}from"./chunk-LTXYZWOV.mjs";import{jsx as l,jsxs as t}from"react/jsx-runtime";function s({className:a}){return t("svg",{className:i("h-full w-full",a),viewBox:"0 0 222 222",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("circle",{cx:"111",cy:"111",r:"111",fill:"url(#paint0_radial_8328_50)"}),t("g",{"clip-path":"url(#clip0_8328_50)",children:[l("path",{d:"M85.0053 196C99.3544 196 111 184.352 111 170V144H85.0053C70.6562 144 59.0105 155.648 59.0105 170C59.0105 184.352 70.6562 196 85.0053 196Z",fill:"#0ACF83"}),l("path",{d:"M59.0105 118C59.0105 103.648 70.6562 92 85.0053 92H111V144H85.0053C70.6562 144 59.0105 132.352 59.0105 118Z",fill:"#A259FF"}),l("path",{d:"M59.0103 66C59.0103 51.648 70.6559 40 85.0051 40H111V92H85.0051C70.6559 92 59.0103 80.352 59.0103 66Z",fill:"#F24E1E"}),l("path",{d:"M111 40H136.995C151.344 40 162.99 51.648 162.99 66C162.99 80.352 151.344 92 136.995 92H111V40Z",fill:"#FF7262"}),l("path",{d:"M162.99 118C162.99 132.352 151.344 144 136.995 144C122.646 144 111 132.352 111 118C111 103.648 122.646 92 136.995 92C151.344 92 162.99 103.648 162.99 118Z",fill:"#1ABCFE"})]}),t("defs",{children:[t("radialGradient",{id:"paint0_radial_8328_50",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(226.5 207.5) rotate(-140.591) scale(286.681)",children:[l("stop",{stopColor:"white"}),l("stop",{offset:"0.5",stopColor:"white"}),l("stop",{offset:"1",stopColor:"#E8E8E8"})]}),l("clipPath",{id:"clip0_8328_50",children:l("rect",{width:"104",height:"156",fill:"white",transform:"translate(59 40)"})})]})]})}export{s as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{h as u}from"./chunk-LTXYZWOV.mjs";import{addYears as P,format as O,isSameMonth as K}from"date-fns";import{ChevronLeft as k,ChevronRight as C,ChevronsLeft as S,ChevronsRight as H}from"lucide-react";import{forwardRef as E,useRef as j}from"react";import{DayPicker as G,useDayPicker as I,useDayRender as Y,useNavigation as A}from"react-day-picker";import{Fragment as z,jsx as e,jsxs as T}from"react/jsx-runtime";var c=E(({onClick:w,icon:M,disabled:m,...y},i)=>e("button",{ref:i,type:"button",disabled:m,className:u("flex h-7 w-7 shrink-0 select-none items-center justify-center rounded border p-1 outline-none transition","border-gray-200 text-gray-600 hover:text-gray-800","hover:bg-gray-50 active:bg-gray-100","disabled:pointer-events-none disabled:text-gray-400"),onClick:w,...y,children:e(M,{className:"h-full w-full shrink-0"})}));c.displayName="NavigationButton";function Z({mode:w="single",weekStartsOn:M=1,numberOfMonths:m=1,showYearNavigation:y=!1,disableNavigation:i,locale:N,className:L,classNames:R,...D}){return e(G,{mode:w,weekStartsOn:M,numberOfMonths:m,locale:N,showOutsideDays:m===1,className:L,classNames:{months:"flex space-y-0",month:"space-y-4 p-3 w-full",nav:"gap-1 flex items-center rounded-full w-full h-full justify-between p-4",table:"w-full border-separate border-spacing-y-1",head_cell:"w-9 font-medium text-xs text-center text-gray-400 pb-2",row:"w-full",cell:"relative p-0 text-center focus-within:relative text-gray-900",day:u("relative h-10 w-full sm:h-9 sm:w-9 rounded-md text-sm text-gray-900","hover:bg-gray-100 active:bg-gray-200 outline outline-offset-2 outline-0 focus-visible:outline-2 outline-blue-500"),day_today:"font-semibold",day_selected:"rounded aria-selected:bg-blue-500 aria-selected:text-white",day_disabled:"!text-gray-300 line-through disabled:hover:bg-transparent",day_outside:"text-gray-400",day_range_middle:"!rounded-none aria-selected:!bg-blue-100 aria-selected:!text-blue-900",day_range_start:"rounded-r-none !rounded-l",day_range_end:"rounded-l-none !rounded-r",day_hidden:"invisible",...R},components:{IconLeft:()=>e(k,{className:"h-4 w-4"}),IconRight:()=>e(C,{className:"h-4 w-4"}),Caption:({...p})=>{let{goToMonth:r,nextMonth:t,previousMonth:o,currentMonth:s,displayMonths:d}=A(),{numberOfMonths:g,fromDate:l,toDate:n}=I(),b=d.findIndex(a=>K(p.displayMonth,a)),f=b===0,h=b===d.length-1,v=g>1&&(f||!h),x=g>1&&(h||!f),_=()=>{let a=P(s,-1);o&&(!l||a.getTime()>=l.getTime())&&r(a)},B=()=>{let a=P(s,1);t&&(!n||a.getTime()<=n.getTime())&&r(a)};return T("div",{className:"flex items-center justify-between",children:[T("div",{className:"flex items-center gap-1",children:[y&&!x&&e(c,{disabled:i||!o||l&&P(s,-1).getTime()<l.getTime(),"aria-label":"Go to previous year",onClick:_,icon:S}),!x&&e(c,{disabled:i||!o,"aria-label":"Go to previous month",onClick:()=>o&&r(o),icon:k})]}),e("div",{role:"presentation","aria-live":"polite",className:"text-sm font-medium capitalize tabular-nums text-gray-900",children:O(p.displayMonth,"LLLL yyy",{locale:N})}),T("div",{className:"flex items-center gap-1",children:[!v&&e(c,{disabled:i||!t,"aria-label":"Go to next month",onClick:()=>t&&r(t),icon:C}),y&&!v&&e(c,{disabled:i||!t||n&&P(s,1).getTime()>n.getTime(),"aria-label":"Go to next year",onClick:B,icon:H})]})]})},Day:({date:p,displayMonth:r})=>{let t=j(null),{activeModifiers:o,buttonProps:s,divProps:d,isButton:g,isHidden:l}=Y(p,r,t),{selected:n,today:b,disabled:f,range_middle:h}=o;if(l)return e(z,{});if(!g)return e("div",{...d,className:u("flex items-center justify-center",d.className)});let{children:v,...x}=s;return T("button",{ref:t,...x,type:"button",children:[v,b&&e("span",{className:u("absolute inset-x-1/2 bottom-1.5 h-0.5 w-4 -translate-x-1/2 rounded-[2px]",{"bg-blue-500":!n,"!bg-white":n,"!bg-blue-400":n&&h,"text-gray-400":f})})]})}},...D})}export{Z as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{j as h}from"./chunk-YJZ5JWXJ.mjs";import{h as p}from"./chunk-LTXYZWOV.mjs";import{cva as E}from"class-variance-authority";import k from"embla-carousel-autoplay";import T from"embla-carousel-react";import{motion as L}from"framer-motion";import{ArrowLeft as D,ArrowRight as H,ChevronLeft as M,ChevronRight as I}from"lucide-react";import*as e from"react";import{jsx as r,jsxs as C}from"react/jsx-runtime";var w=2e3,S=e.createContext(null);function b(){let t=e.useContext(S);if(!t)throw new Error("useCarousel must be used within a <Carousel />");return t}function W(){let{api:t}=b(),[l,s]=e.useState(0),o=e.useCallback(c=>s((c==null?void 0:c.selectedScrollSnap())??0),[]);return e.useEffect(()=>{!t||(o(t),t.on("reInit",o),t.on("select",o))},[t,o]),l}var z=e.forwardRef(({orientation:t="horizontal",opts:l,setApi:s,autoplay:o,plugins:c,className:d,children:n,...i},y)=>{let[x,a]=T({...l,axis:t==="horizontal"?"x":"y"},[...o?[k(typeof o=="object"?o:{delay:w})]:[],...c||[]]),[N,v]=e.useState(!1),[R,g]=e.useState(!1),u=e.useCallback(f=>{!f||(v(f.canScrollPrev()),g(f.canScrollNext()))},[]),m=e.useCallback(()=>{a==null||a.scrollPrev()},[a]),P=e.useCallback(()=>{a==null||a.scrollNext()},[a]),A=e.useCallback(f=>{f.key==="ArrowLeft"?(f.preventDefault(),m()):f.key==="ArrowRight"&&(f.preventDefault(),P())},[m,P]);return e.useEffect(()=>{!a||!s||s(a)},[a,s]),e.useEffect(()=>{if(!!a)return u(a),a.on("reInit",u),a.on("select",u),()=>{a==null||a.off("select",u)}},[a,u]),r(S.Provider,{value:{carouselRef:x,api:a,opts:l,orientation:t||((l==null?void 0:l.axis)==="y"?"vertical":"horizontal"),scrollPrev:m,scrollNext:P,canScrollPrev:N,canScrollNext:R},children:r("div",{ref:y,onKeyDownCapture:A,className:p("relative",d),role:"region","aria-roledescription":"carousel",...i,children:n})})});z.displayName="Carousel";var U=e.forwardRef(({className:t,...l},s)=>{let{carouselRef:o,orientation:c}=b();return r("div",{ref:o,className:"overflow-hidden",children:r("div",{ref:s,className:p("flex",c==="horizontal"?"-ml-4":"-mt-4 flex-col",t),...l})})});U.displayName="CarouselContent";var B=e.forwardRef(({className:t,...l},s)=>{let{orientation:o}=b();return r("div",{ref:s,role:"group","aria-roledescription":"slide",className:p("min-w-0 shrink-0 grow-0 basis-full",o==="horizontal"?"pl-4":"pt-4",t),...l})});B.displayName="CarouselItem";var O=e.forwardRef(({className:t,...l},s)=>{let{orientation:o,scrollPrev:c,canScrollPrev:d}=b();return C("button",{ref:s,className:p("absolute",o==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",h({variant:"secondary",className:"p-2"}),t),disabled:!d,onClick:c,...l,children:[r(D,{className:"h-4 w-4"}),r("span",{className:"sr-only",children:"Previous slide"})]})});O.displayName="CarouselPrevious";var V=e.forwardRef(({className:t,...l},s)=>{let{orientation:o,scrollNext:c,canScrollNext:d}=b();return C("button",{ref:s,className:p("absolute",o==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",h({variant:"secondary",className:"p-2"}),t),disabled:!d,onClick:c,...l,children:[r(H,{className:"h-4 w-4"}),r("span",{className:"sr-only",children:"Next slide"})]})});V.displayName="CarouselNext";var K=E("flex items-center justify-center gap-3 sm:gap-6",{variants:{variant:{simple:"relative",floating:"absolute bottom-4 left-1/2 -translate-x-1/2 rounded-full border border-gray-800/10 bg-white sm:bottom-6 "}}}),X=({variant:t="simple",className:l})=>{var g;let{scrollNext:s,scrollPrev:o,canScrollNext:c,canScrollPrev:d,api:n}=b(),i=(g=n==null?void 0:n.plugins())==null?void 0:g.autoplay,[y,x]=e.useState(0),[a,N]=e.useState(!1),v=e.useCallback(u=>{x((u==null?void 0:u.selectedScrollSnap())??0)},[]),R=e.useCallback(u=>()=>{i&&i.isPlaying()&&i.stop(),u()},[i]);return e.useEffect(()=>{!n||(v(n),N((i==null?void 0:i.isPlaying())??!1),n.on("reInit",v),n.on("select",v),n.on("autoplay:play",()=>N(!0)),n.on("autoplay:stop",()=>N(!1)))},[n,i,v]),C("div",{className:p(K({variant:t}),l),children:[t!=="simple"&&C("button",{className:"cursor-pointer rounded-full p-2 hover:bg-gray-50 active:bg-gray-100",disabled:!d,onClick:R(o),children:[r(M,{className:"h-4 w-4"}),r("span",{className:"sr-only",children:"Previous slide"})]}),n!=null&&r("div",{className:"flex items-center gap-1",children:n.slideNodes().map((u,m)=>C("button",{onClick:R(()=>n.scrollTo(m)),className:"rounded-full p-0.5 hover:bg-gray-100 active:bg-gray-200 sm:p-1.5",children:[r("div",{className:p("relative isolate h-1.5 w-1.5 overflow-hidden rounded-full transition-all",m===y?"bg-black":"bg-black/20",a&&m===y&&"w-6 bg-black/20"),children:a&&m===y&&r(L.div,{initial:{x:"-100%"},animate:{x:0},transition:{type:"tween",duration:((i==null?void 0:i.options.delay)??w)/1e3},className:"animate-fill-width h-full w-full rounded-full bg-black"})}),C("span",{className:"sr-only",children:["Slide ",m+1]})]},m))}),t!=="simple"&&C("button",{className:"cursor-pointer rounded-full p-2 hover:bg-gray-50 active:bg-gray-100",disabled:!c,onClick:R(s),children:[r(I,{className:"h-4 w-4"}),r("span",{className:"sr-only",children:"Next slide"})]})]})};export{w as a,b,W as c,z as d,U as e,B as f,O as g,V as h,X as i};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as w}from"./chunk-MJ2P6CBB.mjs";import{a as k,e as L,f as C}from"./chunk-WTNYKET5.mjs";import{a as y}from"./chunk-EZS3HYBM.mjs";import{a as x}from"./chunk-HBXAUCXR.mjs";import{a as b}from"./chunk-FKXVNEUD.mjs";import{a as v}from"./chunk-2HOGE6HG.mjs";import{a as N}from"./chunk-ALEYOCBW.mjs";import{a as _}from"./chunk-5BTRQ455.mjs";import{d as m,g as f,h as l,i as h}from"./chunk-LTXYZWOV.mjs";import E from"next/image";import n from"next/link";import{useParams as F}from"next/navigation";import{useEffect as I,useState as T}from"react";import P from"swr";import{jsx as e,jsxs as t}from"react/jsx-runtime";var z=[{name:"Twitter",icon:v,href:"https://twitter.com/dubdotco"},{name:"LinkedIn",icon:_,href:"https://www.linkedin.com/company/dubinc"},{name:"GitHub",icon:N,href:"https://github.com/dubinc/dub"},{name:"YouTube",icon:b,href:"https://www.youtube.com/@dubdotco"}],c={features:k.map(({title:r,href:o})=>({name:r,href:o})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Enterprise",href:"/enterprise"},{name:"Pricing",href:"/pricing"},{name:"Docs",href:"/docs/introduction"},{name:"Help Center",href:"/help"},{name:"Brand",href:"/brand"}],compare:L.map(({name:r,slug:o})=>({name:r,href:`/compare/${o}`})),legal:C.map(({name:r,slug:o})=>({name:r,href:`/legal/${o}`})),tools:h.map(({name:r,slug:o})=>({name:r,href:`/tools/${o}`}))},u="text-sm font-medium text-neutral-900",d="flex flex-col mt-2.5 gap-2.5",i="text-sm text-neutral-500 hover:text-neutral-700 transition-colors duration-75";function V({staticDomain:r,className:o}){let{domain:s="dub.co"}=F();return r&&(s=r),e(y,{className:l("relative z-10 overflow-hidden border border-b-0 border-neutral-200 bg-white/50 py-16 backdrop-blur-lg md:rounded-t-2xl",o),children:t("footer",{children:[t("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[t("div",{className:"flex flex-col gap-6",children:[e("div",{className:"grow",children:t(n,{href:m("/",s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:"Logo"}),className:"block max-w-fit",children:[t("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(w,{className:"h-8 text-gray-800"})]})}),e("div",{className:"flex items-center gap-3",children:z.map(({name:a,icon:p,href:g})=>t("a",{href:g,target:"_blank",rel:"noreferrer",className:"group rounded-full p-1",children:[e("span",{className:"sr-only",children:a}),e(p,{className:"size-4 text-neutral-900 transition-colors duration-75 group-hover:text-neutral-600"})]},a))})]}),t("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{children:[e("h3",{className:u,children:"Product"}),e("ul",{role:"list",className:d,children:c.features.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:i,children:a.name})},a.name))})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:u,children:"Resources"}),e("ul",{role:"list",className:d,children:c.product.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:i,children:a.name})},a.name))})]})]}),t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{className:"flex flex-col space-y-8",children:[t("div",{children:[e("h3",{className:u,children:"Compare"}),e("ul",{role:"list",className:d,children:c.compare.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:i,children:a.name})},a.name))})]}),t("div",{children:[e("h3",{className:u,children:"Legal"}),t("ul",{role:"list",className:d,children:[c.legal.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:i,children:a.name})},a.name)),e("li",{children:t("a",{href:"https://security.dub.co",target:"_blank",rel:"noreferrer",className:l(i,"flex items-center gap-1"),children:["Trust Center ",e(x,{className:"size-3.5"})]})})]})]})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:u,children:"Tools"}),e("ul",{role:"list",className:d,children:c.tools.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:i,children:a.name})},a.name))})]})]})]})]}),t("div",{className:"mt-12 grid grid-cols-1 items-center gap-8 sm:grid-cols-3",children:[e(W,{}),e(n,{href:m("/blog/soc2",s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:"SOC2"}),className:"flex sm:justify-center",children:e(E,{src:"https://assets.dub.co/misc/soc2.svg",alt:"AICPA SOC 2 Type II Certified",width:63,height:32,className:"h-8 transition-[filter] duration-75 hover:brightness-90"})}),t("p",{className:"text-xs text-neutral-500 sm:text-right",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]})]})]})})}function W(){let{data:r}=P("https://status.dub.co/api/v1/summary",f),[o,s]=T("bg-neutral-200"),[a,p]=T("Loading status...");return I(()=>{if(!r)return;let{ongoing_incidents:g}=r;if(g.length>0){let{current_worst_impact:A,name:S}=g[0],D=A==="degraded_performance"?"bg-yellow-500":"bg-red-500";p(S),s(D)}else p("All systems operational"),s("bg-green-500")},[r]),t(n,{href:"https://status.dub.co",target:"_blank",className:"group flex max-w-fit items-center gap-2 rounded-lg border border-neutral-200 bg-white py-2 pl-2 pr-2.5 transition-colors hover:bg-neutral-50 active:bg-neutral-100",children:[t("div",{className:"relative size-2",children:[e("div",{className:l("absolute inset-0 m-auto size-2 animate-ping items-center justify-center rounded-full group-hover:animate-none",o,a==="Loading status..."&&"animate-none")}),e("div",{className:l("absolute inset-0 z-10 m-auto size-2 rounded-full",o)})]}),e("p",{className:"text-xs font-medium leading-none text-neutral-600",children:a})]})}export{V as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as t}from"./chunk-AXZJPLZ2.mjs";import{h as o}from"./chunk-LTXYZWOV.mjs";import{toast as a}from"sonner";import{jsx as d}from"react/jsx-runtime";function b({value:e,children:r,className:s,successMessage:c}){let[i,p]=t();return d("button",{onClick:n=>{n.stopPropagation(),a.promise(p(e),{success:c||"Copied to clipboard!"})},type:"button",className:o("cursor-copy text-sm text-gray-700 decoration-dotted hover:underline",i&&"cursor-default",s),children:r})}export{b as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{h as t}from"./chunk-LTXYZWOV.mjs";import{jsx as C,jsxs as a}from"react/jsx-runtime";function r({className:L}){return a("svg",{className:t("h-full w-full",L),viewBox:"0 0 222 222",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[C("circle",{cx:"111",cy:"111",r:"111",fill:"black"}),C("path",{d:"M173.607 97.7454C176.886 87.8002 175.751 76.9142 170.492 67.8719C162.584 54.0098 146.691 46.8792 131.17 50.2298C122.423 40.4311 109.151 36.0738 96.3504 38.7981C83.5497 41.5224 73.1632 50.9148 69.1005 63.4398C58.9049 65.5455 50.1051 71.9745 44.9529 81.0819C36.9593 94.9215 38.7736 112.379 49.4395 124.252C46.1479 134.192 47.2727 145.08 52.5258 154.125C60.4432 167.992 76.3466 175.122 91.8764 171.767C98.784 179.601 108.708 184.058 119.11 183.999C135.02 184.014 149.114 173.67 153.974 158.414C164.168 156.304 172.967 149.876 178.122 140.771C186.019 126.956 184.197 109.593 173.607 97.7454ZM119.11 174.444C112.76 174.454 106.609 172.213 101.735 168.112L102.593 167.623L131.456 150.844C132.917 149.981 133.818 148.406 133.827 146.7V105.717L146.03 112.826C146.152 112.889 146.237 113.006 146.258 113.143V147.103C146.227 162.19 134.091 174.412 119.11 174.444ZM60.756 149.348C57.5714 143.81 56.428 137.318 57.5268 131.015L58.3841 131.533L87.2755 148.312C88.7311 149.172 90.535 149.172 91.9907 148.312L127.283 127.82V142.009C127.277 142.158 127.203 142.296 127.083 142.383L97.849 159.363C84.8581 166.9 68.2607 162.419 60.756 149.348ZM53.1545 86.032C56.3612 80.4583 61.4227 76.207 67.443 74.0308V108.567C67.4209 110.266 68.3188 111.843 69.7863 112.682L104.907 133.087L92.7051 140.196C92.5711 140.267 92.4105 140.267 92.2764 140.196L63.0993 123.244C50.134 115.676 45.6875 98.9734 53.1545 85.8881V86.032ZM153.403 109.488L118.167 88.8812L130.341 81.8013C130.475 81.7297 130.636 81.7297 130.77 81.8013L159.947 98.7815C169.053 104.074 174.307 114.185 173.432 124.737C172.557 135.289 165.712 144.383 155.86 148.082V113.546C155.809 111.851 154.875 110.309 153.403 109.488ZM165.548 91.0973L164.691 90.5792L135.856 73.6566C134.392 72.7912 132.577 72.7912 131.113 73.6566L95.8486 94.1479V79.9594C95.8333 79.8125 95.8991 79.6689 96.02 79.5853L125.197 62.6339C134.326 57.3376 145.672 57.8319 154.312 63.9022C162.953 69.9726 167.331 80.5253 165.548 90.9821V91.0973ZM89.1901 116.251L76.9877 109.171C76.8644 109.096 76.7807 108.969 76.7591 108.826V74.9517C76.773 64.3439 82.8721 54.6994 92.4112 50.201C101.95 45.7026 113.211 47.1605 121.311 53.9424L120.453 54.4316L91.5906 71.2103C90.1293 72.0736 89.2279 73.6485 89.2187 75.3546L89.1901 116.251ZM95.82 101.861L111.537 92.7377L127.283 101.861V120.107L111.595 129.231L95.8486 120.107L95.82 101.861Z",fill:"url(#paint0_radial_39_26)"}),C("defs",{children:a("radialGradient",{id:"paint0_radial_39_26",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(40 38) rotate(45.5947) scale(204.365 204.365)",children:[C("stop",{stopColor:"white",stopOpacity:"0.85"}),C("stop",{offset:"1",stopColor:"white",stopOpacity:"0.1"})]})})]})}export{r as a};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as E}from"./chunk-KL4ETPR2.mjs";import{a as H}from"./chunk-UH2USHTJ.mjs";import{a as S,d as _}from"./chunk-IYERGOR2.mjs";import{a as I}from"./chunk-TEY5O3RA.mjs";import{a as N}from"./chunk-BR2VFDDF.mjs";import{a as T}from"./chunk-ZN3PNOIE.mjs";import{a as W}from"./chunk-AXZJPLZ2.mjs";import{j as g,k as V}from"./chunk-ER4DXXJA.mjs";import{i as x,j as M,l as L,m as a}from"./chunk-HVAJT6I7.mjs";import*as i from"@radix-ui/react-navigation-menu";import{LayoutGroup as ot}from"framer-motion";import rt from"js-cookie";import p from"next/link";import{useParams as at,usePathname as it}from"next/navigation";import{createContext as nt,useId as st}from"react";import dt from"swr";import{useCallback as j,useEffect as R,useState as z}from"react";function D(n){let[r,m]=z(!1),o=j(()=>{m(window.scrollY>n)},[n]);return R(()=>(window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)),[o]),R(()=>{o()},[o]),r}import*as d from"@radix-ui/react-popover";import{BoxSelect as F,Home as U,LayoutGrid as $,Type as Y}from"lucide-react";import{useParams as q}from"next/navigation";import{useCallback as J,useContext as K,useState as Q}from"react";import{toast as X}from"sonner";import{jsx as e,jsxs as B}from"react/jsx-runtime";var tt=`<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z" fill="black"/>
|
|
4
|
+
</svg>`,et=`<svg width="46" height="24" viewBox="0 0 46 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M11 2H14V13.9332L14.0003 13.9731L14.0003 14C14.0003 14.0223 14.0002 14.0445 14 14.0668V21H11V19.7455C9.86619 20.5362 8.48733 21 7.00016 21C3.13408 21 0 17.866 0 14C0 10.134 3.13408 7 7.00016 7C8.48733 7 9.86619 7.46375 11 8.25452V2ZM7 17.9998C9.20914 17.9998 11 16.209 11 13.9999C11 11.7908 9.20914 10 7 10C4.79086 10 3 11.7908 3 13.9999C3 16.209 4.79086 17.9998 7 17.9998ZM32 2H35V8.25474C36.1339 7.46383 37.5128 7 39.0002 7C42.8662 7 46.0003 10.134 46.0003 14C46.0003 17.866 42.8662 21 39.0002 21C35.1341 21 32 17.866 32 14V2ZM39 17.9998C41.2091 17.9998 43 16.209 43 13.9999C43 11.7908 41.2091 10 39 10C36.7909 10 35 11.7908 35 13.9999C35 16.209 36.7909 17.9998 39 17.9998ZM19 7H16V14C16 14.9192 16.1811 15.8295 16.5329 16.6788C16.8846 17.5281 17.4003 18.2997 18.0503 18.9497C18.7003 19.5997 19.472 20.1154 20.3213 20.4671C21.1706 20.8189 22.0809 21 23.0002 21C23.9194 21 24.8297 20.8189 25.679 20.4671C26.5283 20.1154 27.3 19.5997 27.95 18.9497C28.6 18.2997 29.1157 17.5281 29.4675 16.6788C29.8192 15.8295 30.0003 14.9192 30.0003 14H30V7H27V14C27 15.0608 26.5785 16.0782 25.8284 16.8283C25.0783 17.5784 24.0609 17.9998 23 17.9998C21.9391 17.9998 20.9217 17.5784 20.1716 16.8283C19.4215 16.0782 19 15.0608 19 14V7Z" fill="black"/>
|
|
6
|
+
</svg>`;function G({variant:n="full",isInApp:r,className:m}){let{domain:o="dub.co"}=q(),{theme:b}=K(P),[f,l]=Q(!1),h=J(s=>{s.preventDefault(),l(!0)},[]),[,C]=W();function c(s){X.promise(C(s),{success:"Copied to clipboard!",error:"Failed to copy to clipboard"})}return B(d.Root,{open:f,onOpenChange:l,children:[e(d.Anchor,{asChild:!0,children:e("div",{onContextMenu:h,className:"max-w-fit",children:n==="full"?e(I,{className:m}):e(N,{className:a("h-8 w-8 transition-all duration-75 active:scale-95",m)})})}),e(d.Portal,{children:e(d.Content,{sideOffset:14,align:"start",className:a("z-50 -mt-1.5",!r&&"-translate-x-8",b==="dark"&&"dark"),onClick:s=>{s.stopPropagation(),l(!1)},children:B("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm sm:min-w-[240px] dark:border-white/[0.15] dark:bg-black",children:[e(u,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>c(tt),icon:e(N,{className:"h-4 w-4"})}),e(u,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>c(et),icon:e(Y,{strokeWidth:2,className:"h-4 w-4"})}),e(u,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:e(F,{strokeWidth:2,className:"h-4 w-4"})}),r||o!="dub.co"?e(u,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${r?"/home":""}`,"_blank"),icon:e(U,{strokeWidth:2,className:"h-4 w-4"})}):e(u,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:e($,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function u({className:n,...r}){return e(V,{className:a("h-9 justify-start px-3 font-medium hover:text-gray-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",n),...r})}import{Fragment as ct,jsx as t,jsxs as v}from"react/jsx-runtime";var P=nt({theme:"light"}),lt=[{name:"Product",content:E,childItems:S,segments:["/features","/compare"]},{name:"Resources",content:H,childItems:_,segments:["/solutions","/blog","/changelog","/docs","/help","/brand"]},{name:"Enterprise",href:"/enterprise",segments:["/enterprise"]},{name:"Customers",href:"/customers",segments:["/customers"]},{name:"Pricing",href:"/pricing",segments:["/pricing"]}],O=a("relative block rounded-md px-4 py-2 text-sm rounded-lg font-medium text-neutral-700 hover:text-neutral-900 transition-colors","dark:text-white/90 dark:hover:text-white","hover:bg-neutral-900/5 dark:hover:bg-white/10","data-[active=true]:bg-neutral-900/5 dark:data-[active=true]:bg-white/10","group-has-[:hover]:data-[active=true]:[&:not(:hover)]:bg-transparent");function At({theme:n="light",staticDomain:r,maxWidthWrapperClassName:m}){let{domain:o="dub.co"}=at();r&&(o=r);let b=st(),f=D(40),l=it(),{data:h,isLoading:C}=dt(o.endsWith("dub.co")&&"/api/auth/session",L,{dedupingInterval:6e4}),c=!!(o==="dub.co"&&rt.get("dub_id"));return t(P.Provider,{value:{theme:n},children:t(ot,{id:b,children:v("div",{className:a("sticky inset-x-0 top-0 z-30 w-full transition-all",n==="dark"&&"dark"),children:[t("div",{className:a("absolute inset-0 block border-b border-transparent transition-all",f&&"border-neutral-100 bg-white/75 backdrop-blur-lg dark:border-white/10 dark:bg-black/75")}),t(T,{className:a("relative",m),children:v("div",{className:"flex h-14 items-center justify-between",children:[t("div",{className:"grow basis-0",children:t(p,{className:"block w-fit py-2 pr-2",href:x("/home",o,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:o,utm_content:"Logo"}),children:t(G,{})})}),v(i.Root,{delayDuration:0,className:"relative hidden lg:block",children:[t(i.List,{className:"group relative z-0 flex",children:lt.map(({name:s,href:k,segments:Z,content:w})=>{let y=Z.some(A=>l==null?void 0:l.startsWith(A));return v(i.Item,{children:[t(mt,{trigger:!!w,children:k!==void 0?t(p,{id:`nav-${k}`,href:x(k,o,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:o,utm_content:s}),className:O,"data-active":y,children:s}):t("button",{className:O,"data-active":y,children:s})}),w&&t(i.Content,{className:"data-[motion=from-start]:animate-enter-from-left data-[motion=from-end]:animate-enter-from-right data-[motion=to-start]:animate-exit-to-left data-[motion=to-end]:animate-exit-to-right absolute left-0 top-0",children:t(w,{domain:o})})]},s)})}),t("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:t(i.Viewport,{className:a("relative flex origin-[top_center] justify-start overflow-hidden rounded-[20px] border border-gray-200 bg-white shadow-md dark:border-white/[0.15] dark:bg-black","data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content","h-[var(--radix-navigation-menu-viewport-height)] w-[var(--radix-navigation-menu-viewport-width)] transition-[width,height]")})})]}),t("div",{className:"hidden grow basis-0 justify-end gap-2 lg:flex",children:h&&Object.keys(h).length>0?t(p,{href:M,className:a(g({variant:"primary"}),"flex h-8 items-center rounded-lg border px-4 text-sm","dark:border-white dark:bg-white dark:text-black dark:hover:bg-neutral-50 dark:hover:ring-white/10"),children:"Dashboard"}):C?null:v(ct,{children:[t(p,{href:c?"https://app.dub.co/login":"https://d.to/login",className:a(g({variant:"secondary"}),"flex h-8 items-center rounded-lg border px-4 text-sm","dark:border-white/10 dark:bg-black dark:text-white dark:hover:bg-neutral-900"),children:"Log in"}),t(p,{href:c?"https://app.dub.co/register":"https://d.to/register",className:a(g({variant:"primary"}),"flex h-8 items-center rounded-lg border px-4 text-sm","dark:border-white dark:bg-white dark:text-black dark:hover:bg-neutral-50 dark:hover:ring-white/10"),children:"Sign up"})]})})]})})]})})})}function mt({trigger:n,children:r}){return n?t(i.Trigger,{asChild:!0,children:r}):r}export{D as a,P as b,lt as c,At as d,G as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{h as s}from"./chunk-LTXYZWOV.mjs";import{useId as d}from"react";import{jsx as r,jsxs as a}from"react/jsx-runtime";function u({cellSize:t=12,strokeWidth:i=1,patternOffset:e=[0,0],className:o}){let n=d();return a("svg",{className:s("pointer-events-none absolute inset-0 text-black/10",o),width:"100%",height:"100%",children:[r("defs",{children:r("pattern",{id:`grid-${n}`,x:e[0]-1,y:e[1]-1,width:t,height:t,patternUnits:"userSpaceOnUse",children:r("path",{d:`M ${t} 0 L 0 0 0 ${t}`,fill:"transparent",stroke:"currentColor",strokeWidth:i})})}),r("rect",{fill:`url(#grid-${n})`,width:"100%",height:"100%"})]})}export{u as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{h as t}from"./chunk-LTXYZWOV.mjs";import{cva as g}from"class-variance-authority";import{Calendar as p,ChevronDown as l}from"lucide-react";import{forwardRef as d}from"react";import{jsx as r,jsxs as f}from"react/jsx-runtime";var m=g(["group peer flex cursor-pointer appearance-none items-center gap-x-2 truncate rounded-md border px-3 h-10 outline-none transition-all text-sm","bg-white border-gray-200 text-gray-900 placeholder-gray-400 transition-all","disabled:pointer-events-none disabled:bg-gray-100 disabled:text-gray-400","focus-visible:border-gray-500 data-[state=open]:border-gray-500 data-[state=open]:ring-4 data-[state=open]:ring-gray-200"],{variants:{hasError:{true:"ring-2 ring-red-200 border-red-500"}}}),y=d(({className:o,children:e,placeholder:a,hasError:n,...s},i)=>f("button",{ref:i,className:t(m({hasError:n}),o),...s,children:[r(p,{className:t("h-4 w-4 shrink-0 text-gray-400",!!e&&"text-gray-900")}),r("span",{className:"flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-left text-gray-900",children:e||(a?r("span",{className:"text-gray-400",children:a}):null)}),r(l,{className:"h-4 w-4 flex-shrink-0 text-gray-400 transition-transform duration-75 group-data-[state=open]:rotate-180"})]}));y.displayName="DatePicker.Trigger";export{y as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as l}from"./chunk-7NSJS37T.mjs";import{a as n}from"./chunk-TBQBNOUS.mjs";import{h as s}from"./chunk-LTXYZWOV.mjs";import{AlertCircle as u}from"lucide-react";import p,{useCallback as f,useState as x}from"react";import{jsx as e,jsxs as o}from"react/jsx-runtime";var g=p.forwardRef(({className:d,type:a,...r},c)=>{let[t,i]=x(!1),m=f(()=>i(!t),[t,i]);return o("div",{children:[o("div",{className:"relative flex",children:[e("input",{type:t?"text":a,className:s("w-full max-w-md rounded-md border border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",r.error&&"border-red-500 focus:border-red-500 focus:ring-red-500",d),ref:c,...r}),o("div",{className:"group",children:[r.error&&e("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex flex-none items-center px-2.5",children:e(u,{className:s("size-5 text-white",a==="password"&&"transition-opacity group-hover:opacity-0"),fill:"#ef4444"})}),a==="password"&&e("button",{className:s("absolute inset-y-0 right-0 flex items-center px-3",r.error&&"opacity-0 transition-opacity group-hover:opacity-100"),type:"button",onClick:()=>m(),"aria-label":t?"Hide password":"Show Password",children:t?e(n,{className:"size-4 flex-none text-gray-500 transition hover:text-gray-700","aria-hidden":!0}):e(l,{className:"size-4 flex-none text-gray-500 transition hover:text-gray-700","aria-hidden":!0})})]})]}),r.error&&e("span",{className:"mt-2 block text-sm text-red-500",role:"alert","aria-live":"assertive",children:r.error})]})});g.displayName="Input";export{g as a};
|