@lawnguru/ui 3.0.0 → 3.0.2
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/README.md +31 -29
- package/dist/chunk-2R5NZUY2.js +2 -2
- package/dist/chunk-2R5NZUY2.js.map +7 -7
- package/dist/chunk-322C3AJR.js +2 -2
- package/dist/chunk-322C3AJR.js.map +7 -7
- package/dist/chunk-5AXWISGI.js +2 -2
- package/dist/chunk-5AXWISGI.js.map +7 -7
- package/dist/chunk-62LTWWXS.js +2 -2
- package/dist/chunk-62LTWWXS.js.map +7 -7
- package/dist/chunk-63IVPQSD.js +2 -2
- package/dist/chunk-63IVPQSD.js.map +7 -7
- package/dist/chunk-7H74R7P4.js +2 -2
- package/dist/chunk-7H74R7P4.js.map +7 -7
- package/dist/chunk-A4EVMSOO.js +2 -2
- package/dist/chunk-A4EVMSOO.js.map +7 -7
- package/dist/chunk-BF3VTYEM.js +2 -2
- package/dist/chunk-BF3VTYEM.js.map +7 -7
- package/dist/chunk-FUXRPZVU.js +2 -2
- package/dist/chunk-FUXRPZVU.js.map +7 -7
- package/dist/chunk-JVQR7SBQ.js +2 -2
- package/dist/chunk-JVQR7SBQ.js.map +7 -7
- package/dist/chunk-KGEITSDG.js +2 -2
- package/dist/chunk-KGEITSDG.js.map +7 -7
- package/dist/chunk-KR5A3H22.js +2 -2
- package/dist/chunk-KR5A3H22.js.map +7 -7
- package/dist/chunk-LUG5DIYB.js +2 -2
- package/dist/chunk-LUG5DIYB.js.map +7 -7
- package/dist/chunk-PRAYE34P.js +2 -2
- package/dist/chunk-PRAYE34P.js.map +7 -7
- package/dist/chunk-Q3PG3WWG.js +2 -2
- package/dist/chunk-Q3PG3WWG.js.map +7 -7
- package/dist/chunk-S2I5LIDP.js +2 -2
- package/dist/chunk-S2I5LIDP.js.map +7 -7
- package/dist/chunk-T73JL4BL.js +2 -2
- package/dist/chunk-T73JL4BL.js.map +7 -7
- package/dist/chunk-ZJVH3SNI.js +2 -2
- package/dist/chunk-ZJVH3SNI.js.map +7 -7
- package/dist/components/badge/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/command/index.js +1 -1
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dialog-responsive/index.js +1 -1
- package/dist/components/dropdown-menu-responsive/index.js +1 -1
- package/dist/components/input-group/index.js +1 -1
- package/dist/components/photo-lightbox/index.js +1 -1
- package/dist/components/photo-upload/index.js +1 -1
- package/dist/components/questionnaire/index.js +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/toggle/index.js +1 -1
- package/dist/components/toggle-group/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/output.css +1 -1
- package/dist/tailwind.preset.js.map +1 -1
- package/dist/variables.css +92 -92
- package/package.json +133 -133
- package/dist/chunk-2ZNU7SP6.js +0 -2
- package/dist/chunk-2ZNU7SP6.js.map +0 -7
- package/dist/chunk-C6BWVSUV.js +0 -2
- package/dist/chunk-C6BWVSUV.js.map +0 -7
- package/dist/chunk-EPZCTKQC.js +0 -2
- package/dist/chunk-EPZCTKQC.js.map +0 -7
- package/dist/chunk-EWEMD7AS.js +0 -2
- package/dist/chunk-EWEMD7AS.js.map +0 -7
- package/dist/chunk-F4MEBVNH.js +0 -2
- package/dist/chunk-F4MEBVNH.js.map +0 -7
- package/dist/chunk-HE3CSN3R.js +0 -2
- package/dist/chunk-HE3CSN3R.js.map +0 -7
- package/dist/chunk-JAPB4ZVX.js +0 -2
- package/dist/chunk-JAPB4ZVX.js.map +0 -7
- package/dist/chunk-KLHKZS2N.js +0 -2
- package/dist/chunk-KLHKZS2N.js.map +0 -7
- package/dist/chunk-LS37UWHK.js +0 -2
- package/dist/chunk-LS37UWHK.js.map +0 -7
- package/dist/chunk-N4JYYENQ.js +0 -2
- package/dist/chunk-N4JYYENQ.js.map +0 -7
- package/dist/chunk-NAS2AFA3.js +0 -2
- package/dist/chunk-NAS2AFA3.js.map +0 -7
- package/dist/chunk-OSONBAJY.js +0 -2
- package/dist/chunk-OSONBAJY.js.map +0 -7
- package/dist/chunk-PLDAFSMG.js +0 -2
- package/dist/chunk-PLDAFSMG.js.map +0 -7
- package/dist/chunk-U26IEDZT.js +0 -2
- package/dist/chunk-U26IEDZT.js.map +0 -7
- package/dist/chunk-UQUO6MUG.js +0 -2
- package/dist/chunk-UQUO6MUG.js.map +0 -7
- package/dist/chunk-V3VA2O5O.js +0 -2
- package/dist/chunk-V3VA2O5O.js.map +0 -7
- package/dist/chunk-YLCKVKJM.js +0 -2
- package/dist/chunk-YLCKVKJM.js.map +0 -7
- package/dist/chunk-Z2DKDZMC.js +0 -2
- package/dist/chunk-Z2DKDZMC.js.map +0 -7
package/dist/chunk-S2I5LIDP.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b}from"./chunk-BF3VTYEM.js";import{a as f}from"./chunk-WIFBPNRH.js";import{a as u,b as v,c as C}from"./chunk-WHECA25N.js";import*as t from"react";import g from"embla-carousel-react";import{ChevronLeft as V,ChevronRight as D}from"lucide-react";import{cva as T}from"class-variance-authority";import{jsx as i,jsxs as E}from"react/jsx-runtime";var h=t.createContext(null);function y(){let r=t.useContext(h);if(!r)throw new Error("useCarousel must be used within a <Carousel />");return r}function L(P){var p=P,{orientation:r="horizontal",opts:a,setApi:s,plugins:l,className:n,children:m}=p,c=C(p,["orientation","opts","setApi","plugins","className","children"]);let[d,e]=g(v(u({},a),{axis:r==="horizontal"?"x":"y"}),l),N=t.useCallback(o=>e?(e.on("reInit",o),e.on("select",o),()=>{e.off("reInit",o),e.off("select",o)}):()=>{},[e]),k=t.useSyncExternalStore(N,()=>{var o;return(o=e==null?void 0:e.canScrollPrev())!=null?o:!1},()=>!1),w=t.useSyncExternalStore(N,()=>{var o;return(o=e==null?void 0:e.canScrollNext())!=null?o:!1},()=>!1),x=t.useCallback(()=>{e==null||e.scrollPrev()},[e]),R=t.useCallback(()=>{e==null||e.scrollNext()},[e]),S=t.useCallback(o=>{o.key==="ArrowLeft"?(o.preventDefault(),x()):o.key==="ArrowRight"&&(o.preventDefault(),R())},[x,R]);return t.useEffect(()=>{!e||!s||s(e)},[e,s]),i(h.Provider,{value:{carouselRef:d,api:e,opts:a,orientation:r||((a==null?void 0:a.axis)==="y"?"vertical":"horizontal"),scrollPrev:x,scrollNext:R,canScrollPrev:k,canScrollNext:w},children:i("div",v(u({onKeyDownCapture:S,className:f("relative",n),role:"region","aria-roledescription":"carousel","data-slot":"carousel"},c),{children:m}))})}function O(s){var l=s,{className:r}=l,a=C(l,["className"]);let{carouselRef:n,orientation:m}=y();return i("div",{ref:n,className:"overflow-hidden","data-slot":"carousel-content",children:i("div",u({className:f("flex",m==="horizontal"?"-ml-4":"-mt-4 flex-col",r)},a))})}function H(s){var l=s,{className:r}=l,a=C(l,["className"]);let{orientation:n}=y();return i("div",u({role:"group","aria-roledescription":"slide","data-slot":"carousel-item",className:f("min-w-0 shrink-0 grow-0 basis-full",n==="horizontal"?"pl-4":"pt-4",r)},a))}var z=T("size-9 rounded-full",{variants:{placement:{inset:"absolute",inline:"relative"},orientation:{horizontal:"",vertical:""},side:{prev:"",next:""}},compoundVariants:[{placement:"inset",orientation:"horizontal",side:"prev",class:"-left-12 top-1/2 -translate-y-1/2"},{placement:"inset",orientation:"horizontal",side:"next",class:"-right-12 top-1/2 -translate-y-1/2"},{placement:"inset",orientation:"vertical",side:"prev",class:"-top-12 left-1/2 -translate-x-1/2 rotate-90"},{placement:"inset",orientation:"vertical",side:"next",class:"-bottom-12 left-1/2 -translate-x-1/2 rotate-90"}],defaultVariants:{placement:"inset",orientation:"horizontal",side:"prev"}});function M(m){var c=m,{className:r,variant:a="outline",size:s="icon",placement:l="inset"}=c,n=C(c,["className","variant","size","placement"]);let{orientation:P,scrollPrev:p,canScrollPrev:d}=y();return E(b,v(u({"data-slot":"carousel-previous",variant:a,size:s,className:f(z({placement:l,orientation:P,side:"prev"}),r),disabled:!d,onClick:p},n),{children:[i(V,{}),i("span",{className:"sr-only",children:"Previous slide"})]}))}function q(m){var c=m,{className:r,variant:a="outline",size:s="icon",placement:l="inset"}=c,n=C(c,["className","variant","size","placement"]);let{orientation:P,scrollNext:p,canScrollNext:d}=y();return E(b,v(u({"data-slot":"carousel-next",variant:a,size:s,className:f(z({placement:l,orientation:P,side:"next"}),r),disabled:!d,onClick:p},n),{children:[i(D,{}),i("span",{className:"sr-only",children:"Next slide"})]}))}export{L as a,O as b,H as c,z as d,M as e,q as f};
|
|
2
|
-
//# sourceMappingURL=chunk-S2I5LIDP.js.map
|
|
1
|
+
import{b}from"./chunk-BF3VTYEM.js";import{a as f}from"./chunk-WIFBPNRH.js";import{a as u,b as v,c as C}from"./chunk-WHECA25N.js";import*as t from"react";import g from"embla-carousel-react";import{ChevronLeft as V,ChevronRight as D}from"lucide-react";import{cva as T}from"class-variance-authority";import{jsx as i,jsxs as E}from"react/jsx-runtime";var h=t.createContext(null);function y(){let r=t.useContext(h);if(!r)throw new Error("useCarousel must be used within a <Carousel />");return r}function L(P){var p=P,{orientation:r="horizontal",opts:a,setApi:s,plugins:l,className:n,children:m}=p,c=C(p,["orientation","opts","setApi","plugins","className","children"]);let[d,e]=g(v(u({},a),{axis:r==="horizontal"?"x":"y"}),l),N=t.useCallback(o=>e?(e.on("reInit",o),e.on("select",o),()=>{e.off("reInit",o),e.off("select",o)}):()=>{},[e]),k=t.useSyncExternalStore(N,()=>{var o;return(o=e==null?void 0:e.canScrollPrev())!=null?o:!1},()=>!1),w=t.useSyncExternalStore(N,()=>{var o;return(o=e==null?void 0:e.canScrollNext())!=null?o:!1},()=>!1),x=t.useCallback(()=>{e==null||e.scrollPrev()},[e]),R=t.useCallback(()=>{e==null||e.scrollNext()},[e]),S=t.useCallback(o=>{o.key==="ArrowLeft"?(o.preventDefault(),x()):o.key==="ArrowRight"&&(o.preventDefault(),R())},[x,R]);return t.useEffect(()=>{!e||!s||s(e)},[e,s]),i(h.Provider,{value:{carouselRef:d,api:e,opts:a,orientation:r||((a==null?void 0:a.axis)==="y"?"vertical":"horizontal"),scrollPrev:x,scrollNext:R,canScrollPrev:k,canScrollNext:w},children:i("div",v(u({onKeyDownCapture:S,className:f("relative",n),role:"region","aria-roledescription":"carousel","data-slot":"carousel"},c),{children:m}))})}function O(s){var l=s,{className:r}=l,a=C(l,["className"]);let{carouselRef:n,orientation:m}=y();return i("div",{ref:n,className:"overflow-hidden","data-slot":"carousel-content",children:i("div",u({className:f("flex",m==="horizontal"?"-ml-4":"-mt-4 flex-col",r)},a))})}function H(s){var l=s,{className:r}=l,a=C(l,["className"]);let{orientation:n}=y();return i("div",u({role:"group","aria-roledescription":"slide","data-slot":"carousel-item",className:f("min-w-0 shrink-0 grow-0 basis-full",n==="horizontal"?"pl-4":"pt-4",r)},a))}var z=T("size-9 rounded-full",{variants:{placement:{inset:"absolute",inline:"relative"},orientation:{horizontal:"",vertical:""},side:{prev:"",next:""}},compoundVariants:[{placement:"inset",orientation:"horizontal",side:"prev",class:"-left-12 top-1/2 -translate-y-1/2"},{placement:"inset",orientation:"horizontal",side:"next",class:"-right-12 top-1/2 -translate-y-1/2"},{placement:"inset",orientation:"vertical",side:"prev",class:"-top-12 left-1/2 -translate-x-1/2 rotate-90"},{placement:"inset",orientation:"vertical",side:"next",class:"-bottom-12 left-1/2 -translate-x-1/2 rotate-90"}],defaultVariants:{placement:"inset",orientation:"horizontal",side:"prev"}});function M(m){var c=m,{className:r,variant:a="outline",size:s="icon",placement:l="inset"}=c,n=C(c,["className","variant","size","placement"]);let{orientation:P,scrollPrev:p,canScrollPrev:d}=y();return E(b,v(u({"data-slot":"carousel-previous",variant:a,size:s,className:f(z({placement:l,orientation:P,side:"prev"}),r),disabled:!d,onClick:p},n),{children:[i(V,{}),i("span",{className:"sr-only",children:"Previous slide"})]}))}function q(m){var c=m,{className:r,variant:a="outline",size:s="icon",placement:l="inset"}=c,n=C(c,["className","variant","size","placement"]);let{orientation:P,scrollNext:p,canScrollNext:d}=y();return E(b,v(u({"data-slot":"carousel-next",variant:a,size:s,className:f(z({placement:l,orientation:P,side:"next"}),r),disabled:!d,onClick:p},n),{children:[i(D,{}),i("span",{className:"sr-only",children:"Next slide"})]}))}export{L as a,O as b,H as c,z as d,M as e,q as f};
|
|
2
|
+
//# sourceMappingURL=chunk-S2I5LIDP.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/components/carousel/index.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from \"react\";\nimport useEmblaCarousel, {\n type UseEmblaCarouselType,\n} from \"embla-carousel-react\";\nimport { ChevronLeft, ChevronRight } from \"lucide-react\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"@/lib/utils\";\nimport { Button } from \"@/components/button\";\n\ntype CarouselApi = UseEmblaCarouselType[1];\ntype UseCarouselParameters = Parameters<typeof useEmblaCarousel>;\ntype CarouselOptions = UseCarouselParameters[0];\ntype CarouselPlugin = UseCarouselParameters[1];\n\ntype CarouselProps = {\n opts?: CarouselOptions;\n plugins?: CarouselPlugin;\n orientation?: \"horizontal\" | \"vertical\";\n setApi?: (api: CarouselApi) => void;\n};\n\ntype CarouselContextProps = {\n carouselRef: ReturnType<typeof useEmblaCarousel>[0];\n api: ReturnType<typeof useEmblaCarousel>[1];\n scrollPrev: () => void;\n scrollNext: () => void;\n canScrollPrev: boolean;\n canScrollNext: boolean;\n} & CarouselProps;\n\nconst CarouselContext = React.createContext<CarouselContextProps | null>(null);\n\nfunction useCarousel() {\n const context = React.useContext(CarouselContext);\n\n if (!context) {\n throw new Error(\"useCarousel must be used within a <Carousel />\");\n }\n\n return context;\n}\n\nfunction Carousel({\n orientation = \"horizontal\",\n opts,\n setApi,\n plugins,\n className,\n children,\n ...props\n}: React.ComponentProps<\"div\"> & CarouselProps) {\n const [carouselRef, api] = useEmblaCarousel(\n {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n },\n plugins,\n );\n /**\n * Deviates from upstream shadcn, which mirrors Embla's scroll state into `useState` from an\n * effect \u2014 `react-hooks/set-state-in-effect` rejects that, and the initial read has to happen\n * synchronously or both arrows render disabled until the first `select`. Embla already is an\n * external store: `on`/`off` is the subscription and `canScroll*()` is the snapshot.\n */\n const subscribe = React.useCallback(\n (onStoreChange: () => void) => {\n if (!api) return () => undefined;\n api.on(\"reInit\", onStoreChange);\n api.on(\"select\", onStoreChange);\n\n return () => {\n api.off(\"reInit\", onStoreChange);\n api.off(\"select\", onStoreChange);\n };\n },\n [api],\n );\n\n const canScrollPrev = React.useSyncExternalStore(\n subscribe,\n () => api?.canScrollPrev() ?? false,\n () => false,\n );\n\n const canScrollNext = React.useSyncExternalStore(\n subscribe,\n () => api?.canScrollNext() ?? false,\n () => false,\n );\n\n const scrollPrev = React.useCallback(() => {\n api?.scrollPrev();\n }, [api]);\n\n const scrollNext = React.useCallback(() => {\n api?.scrollNext();\n }, [api]);\n\n const handleKeyDown = React.useCallback(\n (event: React.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 React.useEffect(() => {\n if (!api || !setApi) return;\n setApi(api);\n }, [api, setApi]);\n\n return (\n <CarouselContext.Provider\n value={{\n carouselRef,\n api,\n opts,\n orientation:\n orientation || (opts?.axis === \"y\" ? \"vertical\" : \"horizontal\"),\n scrollPrev,\n scrollNext,\n canScrollPrev,\n canScrollNext,\n }}\n >\n <div\n onKeyDownCapture={handleKeyDown}\n className={cn(\"relative\", className)}\n role=\"region\"\n aria-roledescription=\"carousel\"\n data-slot=\"carousel\"\n {...props}\n >\n {children}\n </div>\n </CarouselContext.Provider>\n );\n}\n\nfunction CarouselContent({ className, ...props }: React.ComponentProps<\"div\">) {\n const { carouselRef, orientation } = useCarousel();\n\n return (\n <div\n ref={carouselRef}\n className=\"overflow-hidden\"\n data-slot=\"carousel-content\"\n >\n <div\n className={cn(\n \"flex\",\n orientation === \"horizontal\" ? \"-ml-4\" : \"-mt-4 flex-col\",\n className,\n )}\n {...props}\n />\n </div>\n );\n}\n\nfunction CarouselItem({ className, ...props }: React.ComponentProps<\"div\">) {\n const { orientation } = useCarousel();\n\n return (\n <div\n role=\"group\"\n aria-roledescription=\"slide\"\n data-slot=\"carousel-item\"\n className={cn(\n \"min-w-0 shrink-0 grow-0 basis-full\",\n orientation === \"horizontal\" ? \"pl-4\" : \"pt-4\",\n className,\n )}\n {...props}\n />\n );\n}\n\n/**\n * LawnGuru addition to the upstream shadcn component \u2014 re-pulling `shadcn add carousel` will\n * drop it. `inset` is the upstream behaviour: the control floats outside the track's edge, which\n * only works when the carousel owns the surrounding space. `inline` takes the control out of\n * absolute positioning so it can be placed in a section header, toolbar, or any custom slot.\n */\nconst carouselControlVariants = cva(\"size-9 rounded-full\", {\n variants: {\n placement: {\n inset: \"absolute\",\n inline: \"relative\",\n },\n orientation: {\n horizontal: \"\",\n vertical: \"\",\n },\n side: {\n prev: \"\",\n next: \"\",\n },\n },\n compoundVariants: [\n {\n placement: \"inset\",\n orientation: \"horizontal\",\n side: \"prev\",\n class: \"-left-12 top-1/2 -translate-y-1/2\",\n },\n {\n placement: \"inset\",\n orientation: \"horizontal\",\n side: \"next\",\n class: \"-right-12 top-1/2 -translate-y-1/2\",\n },\n {\n placement: \"inset\",\n orientation: \"vertical\",\n side: \"prev\",\n class: \"-top-12 left-1/2 -translate-x-1/2 rotate-90\",\n },\n {\n placement: \"inset\",\n orientation: \"vertical\",\n side: \"next\",\n class: \"-bottom-12 left-1/2 -translate-x-1/2 rotate-90\",\n },\n ],\n defaultVariants: {\n placement: \"inset\",\n orientation: \"horizontal\",\n side: \"prev\",\n },\n});\n\ntype CarouselControlProps = React.ComponentProps<typeof Button> &\n Pick<VariantProps<typeof carouselControlVariants>, \"placement\">;\n\nfunction CarouselPrevious({\n className,\n variant = \"outline\",\n size = \"icon\",\n placement = \"inset\",\n ...props\n}: CarouselControlProps) {\n const { orientation, scrollPrev, canScrollPrev } = useCarousel();\n\n return (\n <Button\n data-slot=\"carousel-previous\"\n variant={variant}\n size={size}\n className={cn(\n carouselControlVariants({ placement, orientation, side: \"prev\" }),\n className,\n )}\n disabled={!canScrollPrev}\n onClick={scrollPrev}\n {...props}\n >\n <ChevronLeft />\n <span className=\"sr-only\">Previous slide</span>\n </Button>\n );\n}\n\nfunction CarouselNext({\n className,\n variant = \"outline\",\n size = \"icon\",\n placement = \"inset\",\n ...props\n}: CarouselControlProps) {\n const { orientation, scrollNext, canScrollNext } = useCarousel();\n\n return (\n <Button\n data-slot=\"carousel-next\"\n variant={variant}\n size={size}\n className={cn(\n carouselControlVariants({ placement, orientation, side: \"next\" }),\n className,\n )}\n disabled={!canScrollNext}\n onClick={scrollNext}\n {...props}\n >\n <ChevronRight />\n <span className=\"sr-only\">Next slide</span>\n </Button>\n );\n}\n\nexport {\n type CarouselApi,\n Carousel,\n CarouselContent,\n CarouselItem,\n CarouselPrevious,\n CarouselNext,\n carouselControlVariants,\n};\n"],
|
|
5
|
-
"mappings": "iIAAA,UAAYA,MAAW,QACvB,OAAOC,MAEA,uBACP,OAAS,eAAAC,EAAa,gBAAAC,MAAoB,eAC1C,OAAS,OAAAC,MAA8B,2BA8HjC,cAAAC,EAwHF,QAAAC,MAxHE,oBApGN,IAAMC,EAAwB,gBAA2C,IAAI,EAE7E,SAASC,GAAc,CACrB,IAAMC,EAAgB,aAAWF,CAAe,EAEhD,GAAI,CAACE,EACH,MAAM,IAAI,MAAM,gDAAgD,EAGlE,OAAOA,CACT,CAEA,SAASC,EAASC,EAQ8B,CAR9B,IAAAC,EAAAD,EAChB,aAAAE,EAAc,aACd,KAAAC,EACA,OAAAC,EACA,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IACtC,CAEJ",
|
|
6
|
-
"names": ["React", "useEmblaCarousel", "ChevronLeft", "ChevronRight", "cva", "jsx", "jsxs", "CarouselContext", "useCarousel", "context", "Carousel", "_a", "_b", "orientation", "opts", "setApi", "plugins", "className", "children", "props", "__objRest", "carouselRef", "api", "useEmblaCarousel", "__spreadProps", "__spreadValues", "subscribe", "onStoreChange", "canScrollPrev", "canScrollNext", "scrollPrev", "scrollNext", "handleKeyDown", "event", "cn", "CarouselContent", "CarouselItem", "carouselControlVariants", "cva", "CarouselPrevious", "variant", "size", "placement", "Button", "ChevronLeft", "CarouselNext", "ChevronRight"]
|
|
7
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/components/carousel/index.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from \"react\";\nimport useEmblaCarousel, {\n type UseEmblaCarouselType,\n} from \"embla-carousel-react\";\nimport { ChevronLeft, ChevronRight } from \"lucide-react\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"@/lib/utils\";\nimport { Button } from \"@/components/button\";\n\ntype CarouselApi = UseEmblaCarouselType[1];\ntype UseCarouselParameters = Parameters<typeof useEmblaCarousel>;\ntype CarouselOptions = UseCarouselParameters[0];\ntype CarouselPlugin = UseCarouselParameters[1];\n\ntype CarouselProps = {\n opts?: CarouselOptions;\n plugins?: CarouselPlugin;\n orientation?: \"horizontal\" | \"vertical\";\n setApi?: (api: CarouselApi) => void;\n};\n\ntype CarouselContextProps = {\n carouselRef: ReturnType<typeof useEmblaCarousel>[0];\n api: ReturnType<typeof useEmblaCarousel>[1];\n scrollPrev: () => void;\n scrollNext: () => void;\n canScrollPrev: boolean;\n canScrollNext: boolean;\n} & CarouselProps;\n\nconst CarouselContext = React.createContext<CarouselContextProps | null>(null);\n\nfunction useCarousel() {\n const context = React.useContext(CarouselContext);\n\n if (!context) {\n throw new Error(\"useCarousel must be used within a <Carousel />\");\n }\n\n return context;\n}\n\nfunction Carousel({\n orientation = \"horizontal\",\n opts,\n setApi,\n plugins,\n className,\n children,\n ...props\n}: React.ComponentProps<\"div\"> & CarouselProps) {\n const [carouselRef, api] = useEmblaCarousel(\n {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n },\n plugins,\n );\n /**\n * Deviates from upstream shadcn, which mirrors Embla's scroll state into `useState` from an\n * effect \u2014 `react-hooks/set-state-in-effect` rejects that, and the initial read has to happen\n * synchronously or both arrows render disabled until the first `select`. Embla already is an\n * external store: `on`/`off` is the subscription and `canScroll*()` is the snapshot.\n */\n const subscribe = React.useCallback(\n (onStoreChange: () => void) => {\n if (!api) return () => undefined;\n api.on(\"reInit\", onStoreChange);\n api.on(\"select\", onStoreChange);\n\n return () => {\n api.off(\"reInit\", onStoreChange);\n api.off(\"select\", onStoreChange);\n };\n },\n [api],\n );\n\n const canScrollPrev = React.useSyncExternalStore(\n subscribe,\n () => api?.canScrollPrev() ?? false,\n () => false,\n );\n\n const canScrollNext = React.useSyncExternalStore(\n subscribe,\n () => api?.canScrollNext() ?? false,\n () => false,\n );\n\n const scrollPrev = React.useCallback(() => {\n api?.scrollPrev();\n }, [api]);\n\n const scrollNext = React.useCallback(() => {\n api?.scrollNext();\n }, [api]);\n\n const handleKeyDown = React.useCallback(\n (event: React.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 React.useEffect(() => {\n if (!api || !setApi) return;\n setApi(api);\n }, [api, setApi]);\n\n return (\n <CarouselContext.Provider\n value={{\n carouselRef,\n api,\n opts,\n orientation:\n orientation || (opts?.axis === \"y\" ? \"vertical\" : \"horizontal\"),\n scrollPrev,\n scrollNext,\n canScrollPrev,\n canScrollNext,\n }}\n >\n <div\n onKeyDownCapture={handleKeyDown}\n className={cn(\"relative\", className)}\n role=\"region\"\n aria-roledescription=\"carousel\"\n data-slot=\"carousel\"\n {...props}\n >\n {children}\n </div>\n </CarouselContext.Provider>\n );\n}\n\nfunction CarouselContent({ className, ...props }: React.ComponentProps<\"div\">) {\n const { carouselRef, orientation } = useCarousel();\n\n return (\n <div\n ref={carouselRef}\n className=\"overflow-hidden\"\n data-slot=\"carousel-content\"\n >\n <div\n className={cn(\n \"flex\",\n orientation === \"horizontal\" ? \"-ml-4\" : \"-mt-4 flex-col\",\n className,\n )}\n {...props}\n />\n </div>\n );\n}\n\nfunction CarouselItem({ className, ...props }: React.ComponentProps<\"div\">) {\n const { orientation } = useCarousel();\n\n return (\n <div\n role=\"group\"\n aria-roledescription=\"slide\"\n data-slot=\"carousel-item\"\n className={cn(\n \"min-w-0 shrink-0 grow-0 basis-full\",\n orientation === \"horizontal\" ? \"pl-4\" : \"pt-4\",\n className,\n )}\n {...props}\n />\n );\n}\n\n/**\n * LawnGuru addition to the upstream shadcn component \u2014 re-pulling `shadcn add carousel` will\n * drop it. `inset` is the upstream behaviour: the control floats outside the track's edge, which\n * only works when the carousel owns the surrounding space. `inline` takes the control out of\n * absolute positioning so it can be placed in a section header, toolbar, or any custom slot.\n */\nconst carouselControlVariants = cva(\"size-9 rounded-full\", {\n variants: {\n placement: {\n inset: \"absolute\",\n inline: \"relative\",\n },\n orientation: {\n horizontal: \"\",\n vertical: \"\",\n },\n side: {\n prev: \"\",\n next: \"\",\n },\n },\n compoundVariants: [\n {\n placement: \"inset\",\n orientation: \"horizontal\",\n side: \"prev\",\n class: \"-left-12 top-1/2 -translate-y-1/2\",\n },\n {\n placement: \"inset\",\n orientation: \"horizontal\",\n side: \"next\",\n class: \"-right-12 top-1/2 -translate-y-1/2\",\n },\n {\n placement: \"inset\",\n orientation: \"vertical\",\n side: \"prev\",\n class: \"-top-12 left-1/2 -translate-x-1/2 rotate-90\",\n },\n {\n placement: \"inset\",\n orientation: \"vertical\",\n side: \"next\",\n class: \"-bottom-12 left-1/2 -translate-x-1/2 rotate-90\",\n },\n ],\n defaultVariants: {\n placement: \"inset\",\n orientation: \"horizontal\",\n side: \"prev\",\n },\n});\n\ntype CarouselControlProps = React.ComponentProps<typeof Button> &\n Pick<VariantProps<typeof carouselControlVariants>, \"placement\">;\n\nfunction CarouselPrevious({\n className,\n variant = \"outline\",\n size = \"icon\",\n placement = \"inset\",\n ...props\n}: CarouselControlProps) {\n const { orientation, scrollPrev, canScrollPrev } = useCarousel();\n\n return (\n <Button\n data-slot=\"carousel-previous\"\n variant={variant}\n size={size}\n className={cn(\n carouselControlVariants({ placement, orientation, side: \"prev\" }),\n className,\n )}\n disabled={!canScrollPrev}\n onClick={scrollPrev}\n {...props}\n >\n <ChevronLeft />\n <span className=\"sr-only\">Previous slide</span>\n </Button>\n );\n}\n\nfunction CarouselNext({\n className,\n variant = \"outline\",\n size = \"icon\",\n placement = \"inset\",\n ...props\n}: CarouselControlProps) {\n const { orientation, scrollNext, canScrollNext } = useCarousel();\n\n return (\n <Button\n data-slot=\"carousel-next\"\n variant={variant}\n size={size}\n className={cn(\n carouselControlVariants({ placement, orientation, side: \"next\" }),\n className,\n )}\n disabled={!canScrollNext}\n onClick={scrollNext}\n {...props}\n >\n <ChevronRight />\n <span className=\"sr-only\">Next slide</span>\n </Button>\n );\n}\n\nexport {\n type CarouselApi,\n Carousel,\n CarouselContent,\n CarouselItem,\n CarouselPrevious,\n CarouselNext,\n carouselControlVariants,\n};\n"],
|
|
5
|
+
"mappings": "iIAAA,UAAYA,MAAW,QACvB,OAAOC,MAEA,uBACP,OAAS,eAAAC,EAAa,gBAAAC,MAAoB,eAC1C,OAAS,OAAAC,MAA8B,2BA8HjC,cAAAC,EAwHF,QAAAC,MAxHE,oBApGN,IAAMC,EAAwB,gBAA2C,IAAI,EAE7E,SAASC,GAAc,CACrB,IAAMC,EAAgB,aAAWF,CAAe,EAEhD,GAAI,CAACE,EACH,MAAM,IAAI,MAAM,gDAAgD,EAGlE,OAAOA,CACT,CAEA,SAASC,EAASC,EAQ8B,C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YC,UAAAd,EAACyC,EAAA,EAAa,EACdzC,EAAC,QAAK,UAAU,UAAU,sBAAU,IACtC,CAEJ",
|
|
6
|
+
"names": ["React", "useEmblaCarousel", "ChevronLeft", "ChevronRight", "cva", "jsx", "jsxs", "CarouselContext", "useCarousel", "context", "Carousel", "_a", "_b", "orientation", "opts", "setApi", "plugins", "className", "children", "props", "__objRest", "carouselRef", "api", "useEmblaCarousel", "__spreadProps", "__spreadValues", "subscribe", "onStoreChange", "canScrollPrev", "canScrollNext", "scrollPrev", "scrollNext", "handleKeyDown", "event", "cn", "CarouselContent", "CarouselItem", "carouselControlVariants", "cva", "CarouselPrevious", "variant", "size", "placement", "Button", "ChevronLeft", "CarouselNext", "ChevronRight"]
|
|
7
|
+
}
|
package/dist/chunk-T73JL4BL.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as d}from"./chunk-WIFBPNRH.js";import{a as b,b as h,c as s}from"./chunk-WHECA25N.js";import*as g from"react";import{Slider as t}from"radix-ui";import{cva as y}from"class-variance-authority";import{jsx as r,jsxs as I}from"react/jsx-runtime";var C=y("absolute select-none data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full",{variants:{variant:{default:"bg-primary","primary-dark":"bg-primary-dark"}},defaultVariants:{variant:"default"}}),E=y("border",{variants:{variant:{default:"border-ring ring-ring/50","primary-dark":"border-primary-dark ring-primary-dark/50"}},defaultVariants:{variant:"default"}});function D(O){var p=O,{className:w,defaultValue:i,value:n,min:c=0,max:u=100,hideEdgeThumbs:V=!1,readOnly:k=!1,variant:m,showValues:R=!1,formatValue:f}=p,P=s(p,["className","defaultValue","value","min","max","hideEdgeThumbs","readOnly","variant","showValues","formatValue"]);let S=Array.isArray(i)?i:[c,u],[T,A]=g.useState(S),e=Array.isArray(n)?n:T,v=P,{onValueChange:o}=v,N=s(v,["onValueChange"]),z=l=>{A(l),o==null||o(l)};return I(t.Root,h(b({"data-slot":"slider",defaultValue:i,value:n,min:c,max:u,className:d("relative flex w-full touch-none select-none items-center data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-40 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col data-[disabled]:opacity-50",w,k&&"pointer-events-none"),onValueChange:z},N),{children:[r(t.Track,{"data-slot":"slider-track",className:"relative grow overflow-hidden rounded-full bg-muted data-[orientation=horizontal]:h-1 data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-1",children:r(t.Range,{"data-slot":"slider-range",className:C({variant:m})})}),Array.from({length:e.length},(l,a)=>{let x=a===0||a===e.length-1;return r(t.Thumb,{"data-slot":"slider-thumb",className:d("hover:ring-3 focus-visible:ring-3 focus-visible:outline-hidden active:ring-3 relative block size-3 shrink-0 select-none rounded-full bg-white transition-[color,box-shadow] after:absolute after:-inset-2 disabled:pointer-events-none disabled:opacity-50",E({variant:m}),V&&x&&"pointer-events-none opacity-0"),children:R&&r("span",{className:"pointer-events-none absolute -top-6 left-1/2 -translate-x-1/2 whitespace-nowrap text-xs",children:f?f(e[a]):e[a]})},a)})]}))}export{D as a};
|
|
2
|
-
//# sourceMappingURL=chunk-T73JL4BL.js.map
|
|
1
|
+
import{a as d}from"./chunk-WIFBPNRH.js";import{a as b,b as h,c as s}from"./chunk-WHECA25N.js";import*as g from"react";import{Slider as t}from"radix-ui";import{cva as y}from"class-variance-authority";import{jsx as r,jsxs as I}from"react/jsx-runtime";var C=y("absolute select-none data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full",{variants:{variant:{default:"bg-primary","primary-dark":"bg-primary-dark"}},defaultVariants:{variant:"default"}}),E=y("border",{variants:{variant:{default:"border-ring ring-ring/50","primary-dark":"border-primary-dark ring-primary-dark/50"}},defaultVariants:{variant:"default"}});function D(O){var p=O,{className:w,defaultValue:i,value:n,min:c=0,max:u=100,hideEdgeThumbs:V=!1,readOnly:k=!1,variant:m,showValues:R=!1,formatValue:f}=p,P=s(p,["className","defaultValue","value","min","max","hideEdgeThumbs","readOnly","variant","showValues","formatValue"]);let S=Array.isArray(i)?i:[c,u],[T,A]=g.useState(S),e=Array.isArray(n)?n:T,v=P,{onValueChange:o}=v,N=s(v,["onValueChange"]),z=l=>{A(l),o==null||o(l)};return I(t.Root,h(b({"data-slot":"slider",defaultValue:i,value:n,min:c,max:u,className:d("relative flex w-full touch-none select-none items-center data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-40 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col data-[disabled]:opacity-50",w,k&&"pointer-events-none"),onValueChange:z},N),{children:[r(t.Track,{"data-slot":"slider-track",className:"relative grow overflow-hidden rounded-full bg-muted data-[orientation=horizontal]:h-1 data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-1",children:r(t.Range,{"data-slot":"slider-range",className:C({variant:m})})}),Array.from({length:e.length},(l,a)=>{let x=a===0||a===e.length-1;return r(t.Thumb,{"data-slot":"slider-thumb",className:d("hover:ring-3 focus-visible:ring-3 focus-visible:outline-hidden active:ring-3 relative block size-3 shrink-0 select-none rounded-full bg-white transition-[color,box-shadow] after:absolute after:-inset-2 disabled:pointer-events-none disabled:opacity-50",E({variant:m}),V&&x&&"pointer-events-none opacity-0"),children:R&&r("span",{className:"pointer-events-none absolute -top-6 left-1/2 -translate-x-1/2 whitespace-nowrap text-xs",children:f?f(e[a]):e[a]})},a)})]}))}export{D as a};
|
|
2
|
+
//# sourceMappingURL=chunk-T73JL4BL.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/components/slider/index.tsx"],
|
|
4
|
-
"sourcesContent": ["\"use client\";\n\nimport * as React from \"react\";\nimport { Slider as SliderPrimitive } from \"radix-ui\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"@/lib/utils\";\n\nconst sliderRangeVariants = cva(\n \"absolute select-none data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full\",\n {\n variants: {\n variant: {\n default: \"bg-primary\",\n \"primary-dark\": \"bg-primary-dark\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n },\n);\n\nconst sliderThumbVariants = cva(\"border\", {\n variants: {\n variant: {\n default: \"border-ring ring-ring/50\",\n \"primary-dark\": \"border-primary-dark ring-primary-dark/50\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n});\n\nfunction Slider({\n className,\n defaultValue,\n value,\n min = 0,\n max = 100,\n hideEdgeThumbs = false,\n readOnly = false,\n variant,\n showValues = false,\n formatValue,\n ...props\n}: React.ComponentProps<typeof SliderPrimitive.Root> &\n VariantProps<typeof sliderRangeVariants> & {\n readOnly?: boolean;\n hideEdgeThumbs?: boolean;\n showValues?: boolean;\n formatValue?: (value: number) => string;\n }) {\n const initialValues = Array.isArray(defaultValue) ? defaultValue : [min, max];\n\n const [internalValues, setInternalValues] =\n React.useState<number[]>(initialValues);\n\n const displayValues = Array.isArray(value) ? value : internalValues;\n\n const { onValueChange, ...rest } = props;\n\n const handleValueChange = (vals: number[]) => {\n setInternalValues(vals);\n onValueChange?.(vals);\n };\n\n return (\n <SliderPrimitive.Root\n data-slot=\"slider\"\n defaultValue={defaultValue}\n value={value}\n min={min}\n max={max}\n className={cn(\n \"relative flex w-full touch-none select-none items-center data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-40 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col data-[disabled]:opacity-50\",\n className,\n readOnly && \"pointer-events-none\",\n )}\n onValueChange={handleValueChange}\n {...rest}\n >\n <SliderPrimitive.Track\n data-slot=\"slider-track\"\n className=\"relative grow overflow-hidden rounded-full bg-muted data-[orientation=horizontal]:h-1 data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-1\"\n >\n <SliderPrimitive.Range\n data-slot=\"slider-range\"\n className={sliderRangeVariants({ variant })}\n />\n </SliderPrimitive.Track>\n {Array.from({ length: displayValues.length }, (_, index) => {\n const isEdge = index === 0 || index === displayValues.length - 1;\n return (\n <SliderPrimitive.Thumb\n data-slot=\"slider-thumb\"\n key={index}\n className={cn(\n \"hover:ring-3 focus-visible:ring-3 focus-visible:outline-hidden active:ring-3 relative block size-3 shrink-0 select-none rounded-full bg-white transition-[color,box-shadow] after:absolute after:-inset-2 disabled:pointer-events-none disabled:opacity-50\",\n sliderThumbVariants({ variant }),\n hideEdgeThumbs && isEdge && \"pointer-events-none opacity-0\",\n )}\n >\n {showValues && (\n <span className=\"pointer-events-none absolute -top-6 left-1/2 -translate-x-1/2 whitespace-nowrap text-xs\">\n {formatValue\n ? formatValue(displayValues[index])\n : displayValues[index]}\n </span>\n )}\n </SliderPrimitive.Thumb>\n );\n })}\n </SliderPrimitive.Root>\n );\n}\n\nexport { Slider };\n"],
|
|
5
|
-
"mappings": "8FAEA,UAAYA,MAAW,QACvB,OAAS,UAAUC,MAAuB,WAC1C,OAAS,OAAAC,MAA8B,2BAiEnC,OAkBI,OAAAC,EAlBJ,QAAAC,MAAA,oBA7DJ,IAAMC,EAAsBC,EAC1B,+FACA,CACE,SAAU,CACR,QAAS,CACP,QAAS,aACT,eAAgB,iBAClB,CACF,EACA,gBAAiB,CACf,QAAS,SACX,CACF,CACF,EAEMC,EAAsBD,EAAI,SAAU,CACxC,SAAU,CACR,QAAS,CACP,QAAS,2BACT,eAAgB,0CAClB,CACF,EACA,gBAAiB,CACf,QAAS,SACX,CACF,CAAC,EAED,SAASE,EAAOC,EAkBX,CAlBW,IAAAC,EAAAD,EACd,WAAAE,EACA,aAAAC,EACA,MAAAC,EACA,IAAAC,EAAM,EACN,IAAAC,EAAM,IACN,eAAAC,EAAiB,GACjB,SAAAC,EAAW,GACX,QAAAC,EACA,WAAAC,EAAa,GACb,YAAAC,CA7CF,EAmCgBV,EAWXW,EAAAC,EAXWZ,EAWX,CAVH,YACA,eACA,QACA,MACA,MACA,iBACA,WACA,UACA,aACA,gBASA,IAAMa,EAAgB,MAAM,QAAQX,CAAY,EAAIA,EAAe,CAACE,EAAKC,CAAG,EAEtE,CAACS,EAAgBC,CAAiB,EAChC,WAAmBF,CAAa,EAElCG,EAAgB,MAAM,QAAQb,CAAK,EAAIA,EAAQW,EAElBf,EAAAY,EAA3B,eAAAM,CA7DV,EA6DqClB,EAATmB,EAAAN,EAASb,EAAT,CAAlB,kBAEFoB,EAAqBC,GAAmB,CAC5CL,EAAkBK,CAAI,EACtBH,GAAA,MAAAA,EAAgBG,EAClB,EAEA,OACE1B,EAAC2B,EAAgB,KAAhBC,EAAAC,EAAA,CACC,YAAU,SACV,aAAcrB,EACd,MAAOC,EACP,IAAKC,EACL,IAAKC,EACL,UAAWmB,EACT,sOACAvB,EACAM,GAAY,qBACd,EACA,cAAeY,GACXD,GAZL,CAcC,UAAAzB,EAAC4B,EAAgB,MAAhB,CACC,YAAU,eACV,UAAU,gMAEV,SAAA5B,EAAC4B,EAAgB,MAAhB,CACC,YAAU,eACV,UAAW1B,EAAoB,CAAE,QAAAa,CAAQ,CAAC,EAC5C,EACF,EACC,MAAM,KAAK,CAAE,OAAQQ,EAAc,MAAO,EAAG,CAACS,EAAGC,IAAU,CAC1D,IAAMC,EAASD,IAAU,GAAKA,IAAUV,EAAc,OAAS,EAC/D,OACEvB,EAAC4B,EAAgB,MAAhB,CACC,YAAU,eAEV,UAAWG,EACT,6PACA3B,EAAoB,CAAE,QAAAW,CAAQ,CAAC,EAC/BF,GAAkBqB,GAAU,+BAC9B,EAEC,SAAAlB,GACChB,EAAC,QAAK,UAAU,0FACb,SAAAiB,EACGA,EAAYM,EAAcU,CAAK,CAAC,EAChCV,EAAcU,CAAK,EACzB,GAZGA,CAcP,CAEJ,CAAC,IACH,CAEJ",
|
|
6
|
-
"names": ["React", "SliderPrimitive", "cva", "jsx", "jsxs", "sliderRangeVariants", "cva", "sliderThumbVariants", "Slider", "_a", "_b", "className", "defaultValue", "value", "min", "max", "hideEdgeThumbs", "readOnly", "variant", "showValues", "formatValue", "props", "__objRest", "initialValues", "internalValues", "setInternalValues", "displayValues", "onValueChange", "rest", "handleValueChange", "vals", "SliderPrimitive", "__spreadProps", "__spreadValues", "cn", "_", "index", "isEdge"]
|
|
7
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/components/slider/index.tsx"],
|
|
4
|
+
"sourcesContent": ["\"use client\";\n\nimport * as React from \"react\";\nimport { Slider as SliderPrimitive } from \"radix-ui\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"@/lib/utils\";\n\nconst sliderRangeVariants = cva(\n \"absolute select-none data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full\",\n {\n variants: {\n variant: {\n default: \"bg-primary\",\n \"primary-dark\": \"bg-primary-dark\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n },\n);\n\nconst sliderThumbVariants = cva(\"border\", {\n variants: {\n variant: {\n default: \"border-ring ring-ring/50\",\n \"primary-dark\": \"border-primary-dark ring-primary-dark/50\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n});\n\nfunction Slider({\n className,\n defaultValue,\n value,\n min = 0,\n max = 100,\n hideEdgeThumbs = false,\n readOnly = false,\n variant,\n showValues = false,\n formatValue,\n ...props\n}: React.ComponentProps<typeof SliderPrimitive.Root> &\n VariantProps<typeof sliderRangeVariants> & {\n readOnly?: boolean;\n hideEdgeThumbs?: boolean;\n showValues?: boolean;\n formatValue?: (value: number) => string;\n }) {\n const initialValues = Array.isArray(defaultValue) ? defaultValue : [min, max];\n\n const [internalValues, setInternalValues] =\n React.useState<number[]>(initialValues);\n\n const displayValues = Array.isArray(value) ? value : internalValues;\n\n const { onValueChange, ...rest } = props;\n\n const handleValueChange = (vals: number[]) => {\n setInternalValues(vals);\n onValueChange?.(vals);\n };\n\n return (\n <SliderPrimitive.Root\n data-slot=\"slider\"\n defaultValue={defaultValue}\n value={value}\n min={min}\n max={max}\n className={cn(\n \"relative flex w-full touch-none select-none items-center data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-40 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col data-[disabled]:opacity-50\",\n className,\n readOnly && \"pointer-events-none\",\n )}\n onValueChange={handleValueChange}\n {...rest}\n >\n <SliderPrimitive.Track\n data-slot=\"slider-track\"\n className=\"relative grow overflow-hidden rounded-full bg-muted data-[orientation=horizontal]:h-1 data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-1\"\n >\n <SliderPrimitive.Range\n data-slot=\"slider-range\"\n className={sliderRangeVariants({ variant })}\n />\n </SliderPrimitive.Track>\n {Array.from({ length: displayValues.length }, (_, index) => {\n const isEdge = index === 0 || index === displayValues.length - 1;\n return (\n <SliderPrimitive.Thumb\n data-slot=\"slider-thumb\"\n key={index}\n className={cn(\n \"hover:ring-3 focus-visible:ring-3 focus-visible:outline-hidden active:ring-3 relative block size-3 shrink-0 select-none rounded-full bg-white transition-[color,box-shadow] after:absolute after:-inset-2 disabled:pointer-events-none disabled:opacity-50\",\n sliderThumbVariants({ variant }),\n hideEdgeThumbs && isEdge && \"pointer-events-none opacity-0\",\n )}\n >\n {showValues && (\n <span className=\"pointer-events-none absolute -top-6 left-1/2 -translate-x-1/2 whitespace-nowrap text-xs\">\n {formatValue\n ? formatValue(displayValues[index])\n : displayValues[index]}\n </span>\n )}\n </SliderPrimitive.Thumb>\n );\n })}\n </SliderPrimitive.Root>\n );\n}\n\nexport { Slider };\n"],
|
|
5
|
+
"mappings": "8FAEA,UAAYA,MAAW,QACvB,OAAS,UAAUC,MAAuB,WAC1C,OAAS,OAAAC,MAA8B,2BAiEnC,OAkBI,OAAAC,EAlBJ,QAAAC,MAAA,oBA7DJ,IAAMC,EAAsBC,EAC1B,+FACA,CACE,SAAU,CACR,QAAS,CACP,QAAS,aACT,eAAgB,iBAClB,CACF,EACA,gBAAiB,CACf,QAAS,SACX,CACF,CACF,EAEMC,EAAsBD,EAAI,SAAU,CACxC,SAAU,CACR,QAAS,CACP,QAAS,2BACT,eAAgB,0CAClB,C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W,CAAQ,CAAC,EAC/BF,GAAkBqB,GAAU,+BAC9B,EAEC,SAAAlB,GACChB,EAAC,QAAK,UAAU,0FACb,SAAAiB,EACGA,EAAYM,EAAcU,CAAK,CAAC,EAChCV,EAAcU,CAAK,EACzB,GAZGA,CAcP,CAEJ,CAAC,IACH,CAEJ",
|
|
6
|
+
"names": ["React", "SliderPrimitive", "cva", "jsx", "jsxs", "sliderRangeVariants", "cva", "sliderThumbVariants", "Slider", "_a", "_b", "className", "defaultValue", "value", "min", "max", "hideEdgeThumbs", "readOnly", "variant", "showValues", "formatValue", "props", "__objRest", "initialValues", "internalValues", "setInternalValues", "displayValues", "onValueChange", "rest", "handleValueChange", "vals", "SliderPrimitive", "__spreadProps", "__spreadValues", "cn", "_", "index", "isEdge"]
|
|
7
|
+
}
|
package/dist/chunk-ZJVH3SNI.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as w}from"./chunk-63IVPQSD.js";import{a as N,b as Q}from"./chunk-BF3VTYEM.js";import{a as u}from"./chunk-WIFBPNRH.js";import{a,b as f,c as r}from"./chunk-WHECA25N.js";import*as x from"react";import{Questionnaire as c}from"@shadcn/react/questionnaire";import{CheckIcon as S,PencilIcon as z}from"lucide-react";import{jsx as i,jsxs as p}from"react/jsx-runtime";var v="[&[hidden]]:hidden";function T(n){var e=n,{className:t}=e,o=r(e,["className"]);return i(c.Root,a({"data-slot":"questionnaire",className:u("flex w-full min-w-0 flex-col gap-4",t)},o))}function D(n){var e=n,{className:t}=e,o=r(e,["className"]);return i("div",a({"data-slot":"questionnaire-card",className:u("flex w-full flex-col gap-5 rounded-xl border bg-background px-6 pb-6 pt-5",t)},o))}function V(n){var e=n,{className:t}=e,o=r(e,["className"]);return i("h2",a({"data-slot":"questionnaire-header",className:u("text-2xl font-bold leading-8 tracking-[-0.01em] text-foreground",t)},o))}function $(n){var e=n,{className:t}=e,o=r(e,["className"]);return i(c.Progress,a({"data-slot":"questionnaire-progress",className:u("min-h-4 w-fit text-xs font-medium tabular-nums text-foreground/[0.74]",t)},o))}function A(n){var e=n,{className:t}=e,o=r(e,["className"]);return i(c.Item,a({"data-slot":"questionnaire-item",className:u("flex min-w-0 flex-col gap-4 border-0 p-0 outline-none",v,t)},o))}function H(n){var e=n,{className:t}=e,o=r(e,["className"]);return i(c.Title,a({"data-slot":"questionnaire-title",className:u("text-pretty p-0 text-base font-medium leading-[22px] text-foreground [&:not(:has(~[data-slot=questionnaire-description]))]:mb-4",t)},o))}function F(n){var e=n,{className:t}=e,o=r(e,["className"]);return i(c.Description,a({"data-slot":"questionnaire-description",className:u("text-pretty text-sm tracking-[0.005em] text-muted-foreground",t)},o))}function M(n){var e=n,{className:t}=e,o=r(e,["className"]);return i(c.Choices,a({"data-slot":"questionnaire-choices",className:u("group/questionnaire-choices grid min-w-0 gap-2",t)},o))}function _(s){var l=s,{children:t,className:o,badge:n}=l,e=r(l,["children","className","badge"]);return p(c.Choice,f(a({"data-slot":"questionnaire-choice",className:u("group/questionnaire-choice relative flex cursor-pointer select-none items-start gap-2.5 rounded-md border border-input bg-background px-[13px] py-[11px] text-start text-sm outline-none transition-colors hover:bg-muted/50","has-[>input:focus-visible]:ring-2 has-[>input:focus-visible]:ring-ring/50","data-[checked]:border-surface-color-brand data-[checked]:bg-surface-color-brand-bland","data-[invalid]:border-destructive","data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",o)},e),{children:[i(c.ChoiceInput,{"data-slot":"questionnaire-choice-input",className:"absolute inset-0 z-10 size-full cursor-pointer opacity-0"}),p("span",{"aria-hidden":"true","data-slot":"questionnaire-choice-indicator",className:"pointer-events-none relative mt-[3px] flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input bg-background group-data-[type=radio]/questionnaire-choice:rounded-full group-data-[checked]/questionnaire-choice:border-surface-color-brand group-data-[checked]/questionnaire-choice:bg-surface-color-brand group-data-[checked]/questionnaire-choice:text-inverted-primary",children:[i("span",{"data-slot":"questionnaire-choice-indicator-dot",className:"hidden size-1.5 rounded-full bg-inverted-primary group-data-[checked]/questionnaire-choice:block group-data-[type=checkbox]/questionnaire-choice:hidden"}),i(S,{"data-slot":"questionnaire-choice-indicator-check",className:"hidden size-3 stroke-[3] group-data-[checked]/questionnaire-choice:block group-data-[type=radio]/questionnaire-choice:hidden"})]}),i(c.ChoiceLabel,{"data-slot":"questionnaire-choice-label",className:"flex min-w-0 flex-1 flex-col gap-0.5 leading-[1.375] text-foreground",children:t}),n&&i("span",{"data-slot":"questionnaire-choice-badge",className:"pointer-events-none flex shrink-0 self-center",children:n})]}))}function G(n){var e=n,{className:t}=e,o=r(e,["className"]);return i("span",a({"data-slot":"questionnaire-choice-description",className:u("text-muted-foreground",t)},o))}function J(s){var l=s,{className:t,label:o,image:n}=l,e=r(l,["className","label","image"]);return p(c.Choice,f(a({"data-slot":"questionnaire-choice-tile",className:u("group/questionnaire-choice relative flex cursor-pointer select-none flex-col gap-1.5 rounded-md border border-input bg-background px-1.5 pb-2 pt-1.5 outline-none transition-colors hover:bg-muted/50","has-[>input:focus-visible]:ring-2 has-[>input:focus-visible]:ring-ring/50","data-[checked]:border-2 data-[checked]:border-surface-color-brand data-[checked]:bg-surface-color-brand-bland data-[checked]:px-[5px] data-[checked]:pb-[7px] data-[checked]:pt-[5px]","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t)},e),{children:[i(c.ChoiceInput,{"data-slot":"questionnaire-choice-input",className:"absolute inset-0 z-10 size-full cursor-pointer opacity-0"}),i("img",{src:n,alt:"",className:"pointer-events-none h-[52px] w-full rounded-[6px] object-cover"}),i(c.ChoiceLabel,{"data-slot":"questionnaire-choice-label",className:"text-[11px] text-foreground/[0.74] group-data-[checked]/questionnaire-choice:font-semibold group-data-[checked]/questionnaire-choice:text-content-brand",children:o})]}))}function K(n){var e=n,{className:t}=e,o=r(e,["className"]);let s=x.useRef(null),[l,d]=x.useState(!1);return x.useEffect(()=>{var h;let m=(h=s.current)==null?void 0:h.previousElementSibling;if(!m)return;let y=()=>d(m.hasAttribute("data-checked"));y();let R=new MutationObserver(y);return R.observe(m,{attributeFilter:["data-checked"]}),()=>R.disconnect()},[]),i("fieldset",a({ref:s,"data-slot":"questionnaire-choice-details",disabled:!l,className:u("m-0 hidden min-w-0 border-0 p-0 [[data-checked]+&]:block",t)},o))}function U(n){var e=n,{className:t}=e,o=r(e,["className"]);return i(c.Input,a({"data-slot":"questionnaire-input",className:u("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base outline-none transition-[color,box-shadow] placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-[invalid=true]:border-destructive md:text-sm",t)},o))}function W(n){var e=n,{value:t}=e,o=r(e,["value"]);return i(c.Input,a({"data-slot":"questionnaire-value",hidden:!0,readOnly:!0,tabIndex:-1,"aria-hidden":!0,value:t!=null?t:""},o))}function X(n){var e=n,{className:t}=e,o=r(e,["className"]);return i(c.Error,a({"data-slot":"questionnaire-error",className:u("text-sm text-destructive",v,t)},o))}function Y(n){var e=n,{className:t}=e,o=r(e,["className"]);return i("div",a({"data-slot":"questionnaire-actions",className:u("grid min-h-8 w-full grid-cols-[minmax(0,1fr)_auto_auto] items-center gap-2",t)},o))}var C="h-8 rounded-md px-2.5 text-sm";function Z(l){var d=l,{children:t,className:o,size:n,variant:e="outline"}=d,s=r(d,["children","className","size","variant"]);return i(c.Previous,f(a({"data-slot":"questionnaire-previous",className:u(N({size:n,variant:e}),C,"col-start-1 row-start-1 justify-self-start",v,o)},s),{children:t!=null?t:"Previous"}))}function ee(l){var d=l,{children:t,className:o,size:n,variant:e="outline"}=d,s=r(d,["children","className","size","variant"]);return i(c.Skip,f(a({"data-slot":"questionnaire-skip",className:u(N({size:n,variant:e}),C,"col-start-2 row-start-1 justify-self-end",v,o)},s),{children:t!=null?t:"Skip"}))}function te(l){var d=l,{children:t,className:o,size:n,variant:e="default"}=d,s=r(d,["children","className","size","variant"]);return i(c.Next,f(a({"data-slot":"questionnaire-next",className:u(N({size:n,variant:e}),C,"col-start-3 row-start-1 justify-self-end",v,o)},s),{children:t!=null?t:"Next"}))}function oe(l){var d=l,{children:t,className:o,size:n,variant:e="default"}=d,s=r(d,["children","className","size","variant"]);return i(c.Submit,f(a({"data-slot":"questionnaire-submit",className:u(N({size:n,variant:e}),C,"col-start-3 row-start-1 justify-self-end",v,o)},s),{children:t!=null?t:"Submit"}))}function ie(d){var m=d,{className:t,title:o,summary:n,onEdit:e,editLabel:s="Edit"}=m,l=r(m,["className","title","summary","onEdit","editLabel"]);return p("div",f(a({"data-slot":"questionnaire-completed-step",className:u("flex w-full items-start gap-3 rounded-xl border bg-background px-5 py-4",t)},l),{children:[i("span",{className:"flex size-6 shrink-0 items-center justify-center rounded-full bg-foreground/80 text-background",children:i(S,{className:"size-3.5 stroke-[3]","aria-hidden":"true"})}),p("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[i("p",{className:"text-sm font-medium text-foreground",children:o}),n&&i("p",{className:"text-[13px] leading-[19px] text-muted-foreground",children:n})]}),e&&p(Q,{type:"button",variant:"ghost",size:"sm",onClick:e,className:"text-[13px] font-semibold text-foreground/[0.74]",children:[i(z,{}),s]})]}))}function B(e){var s=e,{className:t,children:o}=s,n=r(s,["className","children"]);return p(Q,f(a({type:"button",variant:"outline",size:"sm",className:u("h-8 shrink-0 gap-1.5 rounded-md border-foreground/15 px-3 text-[13px] font-semibold tracking-[0.005em]",t)},n),{children:[i(z,{}),o!=null?o:"Edit"]}))}function ne(d){var m=d,{className:t,title:o="Review your request",description:n="Check your details before sending your request to local pros.",action:e,children:s}=m,l=r(m,["className","title","description","action","children"]);return p("div",f(a({"data-slot":"questionnaire-review",className:u("flex w-full flex-col gap-5 rounded-xl border border-foreground/15 bg-background px-6 pb-6 pt-5",t)},l),{children:[p("div",{className:"flex flex-col gap-1",children:[i("h2",{className:"text-base font-medium text-foreground",children:o}),n&&i("p",{className:"text-sm text-muted-foreground",children:n})]}),i("div",{className:"flex flex-col divide-y divide-foreground/10 rounded-lg border border-foreground/15 bg-muted p-4 *:py-3.5 first:*:pt-0 last:*:pb-0",children:s}),e]}))}function ae(R){var h=R,{className:t,heading:o,title:n,items:e=[],photos:s=[],visiblePhotos:l=2,onEdit:d,showPhotosLabel:m=b=>`Show all photos (${b})`}=h,y=r(h,["className","heading","title","items","photos","visiblePhotos","onEdit","showPhotosLabel"]);let[b,k]=x.useState(null);return p("section",f(a({"data-slot":"questionnaire-review-section",className:u("flex flex-col gap-3.5",t)},y),{children:[s.length>0&&p("div",{className:"flex flex-col items-start gap-2.5",children:[i("div",{className:"flex gap-2",children:s.slice(0,l).map((g,P)=>{var q;return i("button",{type:"button",onClick:()=>k(P),"aria-label":`Open photo ${P+1}`,className:"h-[84px] w-[120px] overflow-hidden rounded-sm outline-none focus-visible:ring-2 focus-visible:ring-ring/50",children:i("img",{src:g.src,alt:(q=g.alt)!=null?q:"",className:"size-full object-cover"})},`${g.src}-${P}`)})}),i(Q,{type:"button",variant:"outline",size:"sm",onClick:()=>k(0),className:"h-7 rounded-sm border-foreground/15 px-2.5 text-xs font-semibold tracking-[0.01em]",children:m(s.length)}),i(w,{photos:s,open:b!==null,onOpenChange:g=>!g&&k(null),initialIndex:b!=null?b:0},b!=null?b:"closed")]}),o&&i("h3",{className:"text-base font-medium leading-[22px] text-foreground",children:o}),p("div",{className:"flex items-start gap-1",children:[p("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[n&&i("p",{className:"text-sm font-medium text-foreground",children:n}),e.length>0&&i("ul",{className:"flex flex-col gap-1 text-[13px] leading-[19px] text-muted-foreground",children:e.map((g,P)=>p("li",{children:["\u2022 ",g]},P))})]}),d&&i(B,{onClick:d})]})]}))}export{T as a,D as b,V as c,$ as d,A as e,H as f,F as g,M as h,_ as i,G as j,J as k,K as l,U as m,W as n,X as o,Y as p,Z as q,ee as r,te as s,oe as t,ie as u,B as v,ne as w,ae as x};
|
|
2
|
-
//# sourceMappingURL=chunk-ZJVH3SNI.js.map
|
|
1
|
+
import{a as w}from"./chunk-63IVPQSD.js";import{a as N,b as Q}from"./chunk-BF3VTYEM.js";import{a as u}from"./chunk-WIFBPNRH.js";import{a,b as f,c as r}from"./chunk-WHECA25N.js";import*as x from"react";import{Questionnaire as c}from"@shadcn/react/questionnaire";import{CheckIcon as S,PencilIcon as z}from"lucide-react";import{jsx as i,jsxs as p}from"react/jsx-runtime";var v="[&[hidden]]:hidden";function T(n){var e=n,{className:t}=e,o=r(e,["className"]);return i(c.Root,a({"data-slot":"questionnaire",className:u("flex w-full min-w-0 flex-col gap-4",t)},o))}function D(n){var e=n,{className:t}=e,o=r(e,["className"]);return i("div",a({"data-slot":"questionnaire-card",className:u("flex w-full flex-col gap-5 rounded-xl border bg-background px-6 pb-6 pt-5",t)},o))}function V(n){var e=n,{className:t}=e,o=r(e,["className"]);return i("h2",a({"data-slot":"questionnaire-header",className:u("text-2xl font-bold leading-8 tracking-[-0.01em] text-foreground",t)},o))}function $(n){var e=n,{className:t}=e,o=r(e,["className"]);return i(c.Progress,a({"data-slot":"questionnaire-progress",className:u("min-h-4 w-fit text-xs font-medium tabular-nums text-foreground/[0.74]",t)},o))}function A(n){var e=n,{className:t}=e,o=r(e,["className"]);return i(c.Item,a({"data-slot":"questionnaire-item",className:u("flex min-w-0 flex-col gap-4 border-0 p-0 outline-none",v,t)},o))}function H(n){var e=n,{className:t}=e,o=r(e,["className"]);return i(c.Title,a({"data-slot":"questionnaire-title",className:u("text-pretty p-0 text-base font-medium leading-[22px] text-foreground [&:not(:has(~[data-slot=questionnaire-description]))]:mb-4",t)},o))}function F(n){var e=n,{className:t}=e,o=r(e,["className"]);return i(c.Description,a({"data-slot":"questionnaire-description",className:u("text-pretty text-sm tracking-[0.005em] text-muted-foreground",t)},o))}function M(n){var e=n,{className:t}=e,o=r(e,["className"]);return i(c.Choices,a({"data-slot":"questionnaire-choices",className:u("group/questionnaire-choices grid min-w-0 gap-2",t)},o))}function _(s){var l=s,{children:t,className:o,badge:n}=l,e=r(l,["children","className","badge"]);return p(c.Choice,f(a({"data-slot":"questionnaire-choice",className:u("group/questionnaire-choice relative flex cursor-pointer select-none items-start gap-2.5 rounded-md border border-input bg-background px-[13px] py-[11px] text-start text-sm outline-none transition-colors hover:bg-muted/50","has-[>input:focus-visible]:ring-2 has-[>input:focus-visible]:ring-ring/50","data-[checked]:border-surface-color-brand data-[checked]:bg-surface-color-brand-bland","data-[invalid]:border-destructive","data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",o)},e),{children:[i(c.ChoiceInput,{"data-slot":"questionnaire-choice-input",className:"absolute inset-0 z-10 size-full cursor-pointer opacity-0"}),p("span",{"aria-hidden":"true","data-slot":"questionnaire-choice-indicator",className:"pointer-events-none relative mt-[3px] flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input bg-background group-data-[type=radio]/questionnaire-choice:rounded-full group-data-[checked]/questionnaire-choice:border-surface-color-brand group-data-[checked]/questionnaire-choice:bg-surface-color-brand group-data-[checked]/questionnaire-choice:text-inverted-primary",children:[i("span",{"data-slot":"questionnaire-choice-indicator-dot",className:"hidden size-1.5 rounded-full bg-inverted-primary group-data-[checked]/questionnaire-choice:block group-data-[type=checkbox]/questionnaire-choice:hidden"}),i(S,{"data-slot":"questionnaire-choice-indicator-check",className:"hidden size-3 stroke-[3] group-data-[checked]/questionnaire-choice:block group-data-[type=radio]/questionnaire-choice:hidden"})]}),i(c.ChoiceLabel,{"data-slot":"questionnaire-choice-label",className:"flex min-w-0 flex-1 flex-col gap-0.5 leading-[1.375] text-foreground",children:t}),n&&i("span",{"data-slot":"questionnaire-choice-badge",className:"pointer-events-none flex shrink-0 self-center",children:n})]}))}function G(n){var e=n,{className:t}=e,o=r(e,["className"]);return i("span",a({"data-slot":"questionnaire-choice-description",className:u("text-muted-foreground",t)},o))}function J(s){var l=s,{className:t,label:o,image:n}=l,e=r(l,["className","label","image"]);return p(c.Choice,f(a({"data-slot":"questionnaire-choice-tile",className:u("group/questionnaire-choice relative flex cursor-pointer select-none flex-col gap-1.5 rounded-md border border-input bg-background px-1.5 pb-2 pt-1.5 outline-none transition-colors hover:bg-muted/50","has-[>input:focus-visible]:ring-2 has-[>input:focus-visible]:ring-ring/50","data-[checked]:border-2 data-[checked]:border-surface-color-brand data-[checked]:bg-surface-color-brand-bland data-[checked]:px-[5px] data-[checked]:pb-[7px] data-[checked]:pt-[5px]","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t)},e),{children:[i(c.ChoiceInput,{"data-slot":"questionnaire-choice-input",className:"absolute inset-0 z-10 size-full cursor-pointer opacity-0"}),i("img",{src:n,alt:"",className:"pointer-events-none h-[52px] w-full rounded-[6px] object-cover"}),i(c.ChoiceLabel,{"data-slot":"questionnaire-choice-label",className:"text-[11px] text-foreground/[0.74] group-data-[checked]/questionnaire-choice:font-semibold group-data-[checked]/questionnaire-choice:text-content-brand",children:o})]}))}function K(n){var e=n,{className:t}=e,o=r(e,["className"]);let s=x.useRef(null),[l,d]=x.useState(!1);return x.useEffect(()=>{var h;let m=(h=s.current)==null?void 0:h.previousElementSibling;if(!m)return;let y=()=>d(m.hasAttribute("data-checked"));y();let R=new MutationObserver(y);return R.observe(m,{attributeFilter:["data-checked"]}),()=>R.disconnect()},[]),i("fieldset",a({ref:s,"data-slot":"questionnaire-choice-details",disabled:!l,className:u("m-0 hidden min-w-0 border-0 p-0 [[data-checked]+&]:block",t)},o))}function U(n){var e=n,{className:t}=e,o=r(e,["className"]);return i(c.Input,a({"data-slot":"questionnaire-input",className:u("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base outline-none transition-[color,box-shadow] placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-[invalid=true]:border-destructive md:text-sm",t)},o))}function W(n){var e=n,{value:t}=e,o=r(e,["value"]);return i(c.Input,a({"data-slot":"questionnaire-value",hidden:!0,readOnly:!0,tabIndex:-1,"aria-hidden":!0,value:t!=null?t:""},o))}function X(n){var e=n,{className:t}=e,o=r(e,["className"]);return i(c.Error,a({"data-slot":"questionnaire-error",className:u("text-sm text-destructive",v,t)},o))}function Y(n){var e=n,{className:t}=e,o=r(e,["className"]);return i("div",a({"data-slot":"questionnaire-actions",className:u("grid min-h-8 w-full grid-cols-[minmax(0,1fr)_auto_auto] items-center gap-2",t)},o))}var C="h-8 rounded-md px-2.5 text-sm";function Z(l){var d=l,{children:t,className:o,size:n,variant:e="outline"}=d,s=r(d,["children","className","size","variant"]);return i(c.Previous,f(a({"data-slot":"questionnaire-previous",className:u(N({size:n,variant:e}),C,"col-start-1 row-start-1 justify-self-start",v,o)},s),{children:t!=null?t:"Previous"}))}function ee(l){var d=l,{children:t,className:o,size:n,variant:e="outline"}=d,s=r(d,["children","className","size","variant"]);return i(c.Skip,f(a({"data-slot":"questionnaire-skip",className:u(N({size:n,variant:e}),C,"col-start-2 row-start-1 justify-self-end",v,o)},s),{children:t!=null?t:"Skip"}))}function te(l){var d=l,{children:t,className:o,size:n,variant:e="default"}=d,s=r(d,["children","className","size","variant"]);return i(c.Next,f(a({"data-slot":"questionnaire-next",className:u(N({size:n,variant:e}),C,"col-start-3 row-start-1 justify-self-end",v,o)},s),{children:t!=null?t:"Next"}))}function oe(l){var d=l,{children:t,className:o,size:n,variant:e="default"}=d,s=r(d,["children","className","size","variant"]);return i(c.Submit,f(a({"data-slot":"questionnaire-submit",className:u(N({size:n,variant:e}),C,"col-start-3 row-start-1 justify-self-end",v,o)},s),{children:t!=null?t:"Submit"}))}function ie(d){var m=d,{className:t,title:o,summary:n,onEdit:e,editLabel:s="Edit"}=m,l=r(m,["className","title","summary","onEdit","editLabel"]);return p("div",f(a({"data-slot":"questionnaire-completed-step",className:u("flex w-full items-start gap-3 rounded-xl border bg-background px-5 py-4",t)},l),{children:[i("span",{className:"flex size-6 shrink-0 items-center justify-center rounded-full bg-foreground/80 text-background",children:i(S,{className:"size-3.5 stroke-[3]","aria-hidden":"true"})}),p("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[i("p",{className:"text-sm font-medium text-foreground",children:o}),n&&i("p",{className:"text-[13px] leading-[19px] text-muted-foreground",children:n})]}),e&&p(Q,{type:"button",variant:"ghost",size:"sm",onClick:e,className:"text-[13px] font-semibold text-foreground/[0.74]",children:[i(z,{}),s]})]}))}function B(e){var s=e,{className:t,children:o}=s,n=r(s,["className","children"]);return p(Q,f(a({type:"button",variant:"outline",size:"sm",className:u("h-8 shrink-0 gap-1.5 rounded-md border-foreground/15 px-3 text-[13px] font-semibold tracking-[0.005em]",t)},n),{children:[i(z,{}),o!=null?o:"Edit"]}))}function ne(d){var m=d,{className:t,title:o="Review your request",description:n="Check your details before sending your request to local pros.",action:e,children:s}=m,l=r(m,["className","title","description","action","children"]);return p("div",f(a({"data-slot":"questionnaire-review",className:u("flex w-full flex-col gap-5 rounded-xl border border-foreground/15 bg-background px-6 pb-6 pt-5",t)},l),{children:[p("div",{className:"flex flex-col gap-1",children:[i("h2",{className:"text-base font-medium text-foreground",children:o}),n&&i("p",{className:"text-sm text-muted-foreground",children:n})]}),i("div",{className:"flex flex-col divide-y divide-foreground/10 rounded-lg border border-foreground/15 bg-muted p-4 *:py-3.5 first:*:pt-0 last:*:pb-0",children:s}),e]}))}function ae(R){var h=R,{className:t,heading:o,title:n,items:e=[],photos:s=[],visiblePhotos:l=2,onEdit:d,showPhotosLabel:m=b=>`Show all photos (${b})`}=h,y=r(h,["className","heading","title","items","photos","visiblePhotos","onEdit","showPhotosLabel"]);let[b,k]=x.useState(null);return p("section",f(a({"data-slot":"questionnaire-review-section",className:u("flex flex-col gap-3.5",t)},y),{children:[s.length>0&&p("div",{className:"flex flex-col items-start gap-2.5",children:[i("div",{className:"flex gap-2",children:s.slice(0,l).map((g,P)=>{var q;return i("button",{type:"button",onClick:()=>k(P),"aria-label":`Open photo ${P+1}`,className:"h-[84px] w-[120px] overflow-hidden rounded-sm outline-none focus-visible:ring-2 focus-visible:ring-ring/50",children:i("img",{src:g.src,alt:(q=g.alt)!=null?q:"",className:"size-full object-cover"})},`${g.src}-${P}`)})}),i(Q,{type:"button",variant:"outline",size:"sm",onClick:()=>k(0),className:"h-7 rounded-sm border-foreground/15 px-2.5 text-xs font-semibold tracking-[0.01em]",children:m(s.length)}),i(w,{photos:s,open:b!==null,onOpenChange:g=>!g&&k(null),initialIndex:b!=null?b:0},b!=null?b:"closed")]}),o&&i("h3",{className:"text-base font-medium leading-[22px] text-foreground",children:o}),p("div",{className:"flex items-start gap-1",children:[p("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[n&&i("p",{className:"text-sm font-medium text-foreground",children:n}),e.length>0&&i("ul",{className:"flex flex-col gap-1 text-[13px] leading-[19px] text-muted-foreground",children:e.map((g,P)=>p("li",{children:["\u2022 ",g]},P))})]}),d&&i(B,{onClick:d})]})]}))}export{T as a,D as b,V as c,$ as d,A as e,H as f,F as g,M as h,_ as i,G as j,J as k,K as l,U as m,W as n,X as o,Y as p,Z as q,ee as r,te as s,oe as t,ie as u,B as v,ne as w,ae as x};
|
|
2
|
+
//# sourceMappingURL=chunk-ZJVH3SNI.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/components/questionnaire/index.tsx"],
|
|
4
|
-
"sourcesContent": ["\"use client\";\n\nimport * as React from \"react\";\nimport { Questionnaire as QuestionnairePrimitive } from \"@shadcn/react/questionnaire\";\nimport { CheckIcon, PencilIcon } from \"lucide-react\";\n\nimport { cn } from \"@/lib/utils\";\nimport { Button, buttonVariants, type ButtonProps } from \"@/components/button\";\nimport {\n PhotoLightbox,\n type PhotoLightboxPhoto,\n} from \"@/components/photo-lightbox\";\n\ntype NavigationButtonProps = Pick<ButtonProps, \"size\" | \"variant\">;\n\n// The primitive toggles visibility with the `hidden` attribute, which Tailwind 3 display utilities would override.\nconst respectHidden = \"[&[hidden]]:hidden\";\n\nfunction Questionnaire({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Root>) {\n return (\n <QuestionnairePrimitive.Root\n data-slot=\"questionnaire\"\n className={cn(\"flex w-full min-w-0 flex-col gap-4\", className)}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireCard({\n className,\n ...props\n}: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"questionnaire-card\"\n className={cn(\n \"flex w-full flex-col gap-5 rounded-xl border bg-background px-6 pb-6 pt-5\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireHeader({\n className,\n ...props\n}: React.ComponentProps<\"h2\">) {\n return (\n <h2\n data-slot=\"questionnaire-header\"\n className={cn(\n \"text-2xl font-bold leading-8 tracking-[-0.01em] text-foreground\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireProgress({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Progress>) {\n return (\n <QuestionnairePrimitive.Progress\n data-slot=\"questionnaire-progress\"\n className={cn(\n \"min-h-4 w-fit text-xs font-medium tabular-nums text-foreground/[0.74]\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireItem({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Item>) {\n return (\n <QuestionnairePrimitive.Item\n data-slot=\"questionnaire-item\"\n className={cn(\n \"flex min-w-0 flex-col gap-4 border-0 p-0 outline-none\",\n respectHidden,\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireTitle({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Title>) {\n return (\n <QuestionnairePrimitive.Title\n data-slot=\"questionnaire-title\"\n className={cn(\n \"text-pretty p-0 text-base font-medium leading-[22px] text-foreground [&:not(:has(~[data-slot=questionnaire-description]))]:mb-4\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireDescription({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Description>) {\n return (\n <QuestionnairePrimitive.Description\n data-slot=\"questionnaire-description\"\n className={cn(\n \"text-pretty text-sm tracking-[0.005em] text-muted-foreground\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireChoices({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Choices>) {\n return (\n <QuestionnairePrimitive.Choices\n data-slot=\"questionnaire-choices\"\n className={cn(\n \"group/questionnaire-choices grid min-w-0 gap-2\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport type QuestionnaireChoiceProps = React.ComponentProps<\n typeof QuestionnairePrimitive.Choice\n> & {\n /** Content pinned to the right edge, such as a \"Recommended\" badge */\n badge?: React.ReactNode;\n};\n\nfunction QuestionnaireChoice({\n children,\n className,\n badge,\n ...props\n}: QuestionnaireChoiceProps) {\n return (\n <QuestionnairePrimitive.Choice\n data-slot=\"questionnaire-choice\"\n className={cn(\n \"group/questionnaire-choice relative flex cursor-pointer select-none items-start gap-2.5 rounded-md border border-input bg-background px-[13px] py-[11px] text-start text-sm outline-none transition-colors hover:bg-muted/50\",\n \"has-[>input:focus-visible]:ring-2 has-[>input:focus-visible]:ring-ring/50\",\n \"data-[checked]:border-surface-color-brand data-[checked]:bg-surface-color-brand-bland\",\n \"data-[invalid]:border-destructive\",\n \"data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50\",\n className,\n )}\n {...props}\n >\n <QuestionnairePrimitive.ChoiceInput\n data-slot=\"questionnaire-choice-input\"\n className=\"absolute inset-0 z-10 size-full cursor-pointer opacity-0\"\n />\n <span\n aria-hidden=\"true\"\n data-slot=\"questionnaire-choice-indicator\"\n className=\"pointer-events-none relative mt-[3px] flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input bg-background group-data-[type=radio]/questionnaire-choice:rounded-full group-data-[checked]/questionnaire-choice:border-surface-color-brand group-data-[checked]/questionnaire-choice:bg-surface-color-brand group-data-[checked]/questionnaire-choice:text-inverted-primary\"\n >\n <span\n data-slot=\"questionnaire-choice-indicator-dot\"\n className=\"hidden size-1.5 rounded-full bg-inverted-primary group-data-[checked]/questionnaire-choice:block group-data-[type=checkbox]/questionnaire-choice:hidden\"\n />\n <CheckIcon\n data-slot=\"questionnaire-choice-indicator-check\"\n className=\"hidden size-3 stroke-[3] group-data-[checked]/questionnaire-choice:block group-data-[type=radio]/questionnaire-choice:hidden\"\n />\n </span>\n <QuestionnairePrimitive.ChoiceLabel\n data-slot=\"questionnaire-choice-label\"\n className=\"flex min-w-0 flex-1 flex-col gap-0.5 leading-[1.375] text-foreground\"\n >\n {children}\n </QuestionnairePrimitive.ChoiceLabel>\n {badge && (\n <span\n data-slot=\"questionnaire-choice-badge\"\n className=\"pointer-events-none flex shrink-0 self-center\"\n >\n {badge}\n </span>\n )}\n </QuestionnairePrimitive.Choice>\n );\n}\n\nfunction QuestionnaireChoiceDescription({\n className,\n ...props\n}: React.ComponentProps<\"span\">) {\n return (\n <span\n data-slot=\"questionnaire-choice-description\"\n className={cn(\"text-muted-foreground\", className)}\n {...props}\n />\n );\n}\n\nexport type QuestionnaireChoiceTileProps = Omit<\n React.ComponentProps<typeof QuestionnairePrimitive.Choice>,\n \"children\"\n> & {\n label: string;\n image: string;\n};\n\n/**\n * Image swatch choice, laid out in a grid via `QuestionnaireChoices className=\"grid-cols-2\"`.\n * @param props.label - text under the image\n * @param props.image - image URL\n */\nfunction QuestionnaireChoiceTile({\n className,\n label,\n image,\n ...props\n}: QuestionnaireChoiceTileProps) {\n return (\n <QuestionnairePrimitive.Choice\n data-slot=\"questionnaire-choice-tile\"\n className={cn(\n \"group/questionnaire-choice relative flex cursor-pointer select-none flex-col gap-1.5 rounded-md border border-input bg-background px-1.5 pb-2 pt-1.5 outline-none transition-colors hover:bg-muted/50\",\n \"has-[>input:focus-visible]:ring-2 has-[>input:focus-visible]:ring-ring/50\",\n \"data-[checked]:border-2 data-[checked]:border-surface-color-brand data-[checked]:bg-surface-color-brand-bland data-[checked]:px-[5px] data-[checked]:pb-[7px] data-[checked]:pt-[5px]\",\n \"data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n className,\n )}\n {...props}\n >\n <QuestionnairePrimitive.ChoiceInput\n data-slot=\"questionnaire-choice-input\"\n className=\"absolute inset-0 z-10 size-full cursor-pointer opacity-0\"\n />\n <img\n src={image}\n alt=\"\"\n className=\"pointer-events-none h-[52px] w-full rounded-[6px] object-cover\"\n />\n <QuestionnairePrimitive.ChoiceLabel\n data-slot=\"questionnaire-choice-label\"\n className=\"text-[11px] text-foreground/[0.74] group-data-[checked]/questionnaire-choice:font-semibold group-data-[checked]/questionnaire-choice:text-content-brand\"\n >\n {label}\n </QuestionnairePrimitive.ChoiceLabel>\n </QuestionnairePrimitive.Choice>\n );\n}\n\n/** Content revealed, and submitted, only while the choice rendered right before it is checked. */\nfunction QuestionnaireChoiceDetails({\n className,\n ...props\n}: React.ComponentProps<\"fieldset\">) {\n const ref = React.useRef<HTMLFieldSetElement>(null);\n const [active, setActive] = React.useState(false);\n\n React.useEffect(() => {\n const choice = ref.current?.previousElementSibling;\n if (!choice) return;\n const sync = () => setActive(choice.hasAttribute(\"data-checked\"));\n sync();\n const observer = new MutationObserver(sync);\n observer.observe(choice, { attributeFilter: [\"data-checked\"] });\n return () => observer.disconnect();\n }, []);\n\n return (\n <fieldset\n ref={ref}\n data-slot=\"questionnaire-choice-details\"\n disabled={!active}\n className={cn(\n \"m-0 hidden min-w-0 border-0 p-0 [[data-checked]+&]:block\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireInput({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Input>) {\n return (\n <QuestionnairePrimitive.Input\n data-slot=\"questionnaire-input\"\n className={cn(\n \"h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base outline-none transition-[color,box-shadow] placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-[invalid=true]:border-destructive md:text-sm\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport type QuestionnaireValueProps = Omit<\n React.ComponentProps<typeof QuestionnairePrimitive.Input>,\n \"value\" | \"defaultValue\" | \"type\"\n> & {\n value: string | number | undefined;\n};\n\n/**\n * Hidden answer for an item driven by a custom control (e.g. PhotoUpload), so Next treats it as answered.\n * @param props.value - the answer; empty means unanswered\n */\nfunction QuestionnaireValue({ value, ...props }: QuestionnaireValueProps) {\n return (\n <QuestionnairePrimitive.Input\n data-slot=\"questionnaire-value\"\n hidden\n readOnly\n tabIndex={-1}\n aria-hidden\n value={value ?? \"\"}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireError({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Error>) {\n return (\n <QuestionnairePrimitive.Error\n data-slot=\"questionnaire-error\"\n className={cn(\"text-sm text-destructive\", respectHidden, className)}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireActions({\n className,\n ...props\n}: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"questionnaire-actions\"\n className={cn(\n \"grid min-h-8 w-full grid-cols-[minmax(0,1fr)_auto_auto] items-center gap-2\",\n className,\n )}\n {...props}\n />\n );\n}\n\nconst navigationButtonClassName = \"h-8 rounded-md px-2.5 text-sm\";\n\nfunction QuestionnairePrevious({\n children,\n className,\n size,\n variant = \"outline\",\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Previous> &\n NavigationButtonProps) {\n return (\n <QuestionnairePrimitive.Previous\n data-slot=\"questionnaire-previous\"\n className={cn(\n buttonVariants({ size, variant }),\n navigationButtonClassName,\n \"col-start-1 row-start-1 justify-self-start\",\n respectHidden,\n className,\n )}\n {...props}\n >\n {children ?? \"Previous\"}\n </QuestionnairePrimitive.Previous>\n );\n}\n\nfunction QuestionnaireSkip({\n children,\n className,\n size,\n variant = \"outline\",\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Skip> &\n NavigationButtonProps) {\n return (\n <QuestionnairePrimitive.Skip\n data-slot=\"questionnaire-skip\"\n className={cn(\n buttonVariants({ size, variant }),\n navigationButtonClassName,\n \"col-start-2 row-start-1 justify-self-end\",\n respectHidden,\n className,\n )}\n {...props}\n >\n {children ?? \"Skip\"}\n </QuestionnairePrimitive.Skip>\n );\n}\n\nfunction QuestionnaireNext({\n children,\n className,\n size,\n variant = \"default\",\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Next> &\n NavigationButtonProps) {\n return (\n <QuestionnairePrimitive.Next\n data-slot=\"questionnaire-next\"\n className={cn(\n buttonVariants({ size, variant }),\n navigationButtonClassName,\n \"col-start-3 row-start-1 justify-self-end\",\n respectHidden,\n className,\n )}\n {...props}\n >\n {children ?? \"Next\"}\n </QuestionnairePrimitive.Next>\n );\n}\n\nfunction QuestionnaireSubmit({\n children,\n className,\n size,\n variant = \"default\",\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Submit> &\n NavigationButtonProps) {\n return (\n <QuestionnairePrimitive.Submit\n data-slot=\"questionnaire-submit\"\n className={cn(\n buttonVariants({ size, variant }),\n navigationButtonClassName,\n \"col-start-3 row-start-1 justify-self-end\",\n respectHidden,\n className,\n )}\n {...props}\n >\n {children ?? \"Submit\"}\n </QuestionnairePrimitive.Submit>\n );\n}\n\nexport type QuestionnaireCompletedStepProps = Omit<\n React.ComponentProps<\"div\">,\n \"title\"\n> & {\n title: React.ReactNode;\n summary?: React.ReactNode;\n onEdit?: () => void;\n editLabel?: string;\n};\n\n/**\n * Collapsed summary of a finished service, shown above the active questionnaire.\n * @param props.title - service name\n * @param props.summary - one-line recap of the answers\n * @param props.onEdit - renders an Edit button when provided\n */\nfunction QuestionnaireCompletedStep({\n className,\n title,\n summary,\n onEdit,\n editLabel = \"Edit\",\n ...props\n}: QuestionnaireCompletedStepProps) {\n return (\n <div\n data-slot=\"questionnaire-completed-step\"\n className={cn(\n \"flex w-full items-start gap-3 rounded-xl border bg-background px-5 py-4\",\n className,\n )}\n {...props}\n >\n <span className=\"flex size-6 shrink-0 items-center justify-center rounded-full bg-foreground/80 text-background\">\n <CheckIcon className=\"size-3.5 stroke-[3]\" aria-hidden=\"true\" />\n </span>\n <div className=\"flex min-w-0 flex-1 flex-col gap-0.5\">\n <p className=\"text-sm font-medium text-foreground\">{title}</p>\n {summary && (\n <p className=\"text-[13px] leading-[19px] text-muted-foreground\">\n {summary}\n </p>\n )}\n </div>\n {onEdit && (\n <Button\n type=\"button\"\n variant=\"ghost\"\n size=\"sm\"\n onClick={onEdit}\n className=\"text-[13px] font-semibold text-foreground/[0.74]\"\n >\n <PencilIcon />\n {editLabel}\n </Button>\n )}\n </div>\n );\n}\n\nfunction QuestionnaireEditButton({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof Button>) {\n return (\n <Button\n type=\"button\"\n variant=\"outline\"\n size=\"sm\"\n className={cn(\n \"h-8 shrink-0 gap-1.5 rounded-md border-foreground/15 px-3 text-[13px] font-semibold tracking-[0.005em]\",\n className,\n )}\n {...props}\n >\n <PencilIcon />\n {children ?? \"Edit\"}\n </Button>\n );\n}\n\nexport type QuestionnaireReviewProps = Omit<\n React.ComponentProps<\"div\">,\n \"title\"\n> & {\n title?: React.ReactNode;\n description?: React.ReactNode;\n /** Rendered below the summary panel, typically the submit button */\n action?: React.ReactNode;\n};\n\n/**\n * Summary card listing every answered service before the request is sent.\n * @param props.action - footer content, usually the full-width submit button\n */\nfunction QuestionnaireReview({\n className,\n title = \"Review your request\",\n description = \"Check your details before sending your request to local pros.\",\n action,\n children,\n ...props\n}: QuestionnaireReviewProps) {\n return (\n <div\n data-slot=\"questionnaire-review\"\n className={cn(\n \"flex w-full flex-col gap-5 rounded-xl border border-foreground/15 bg-background px-6 pb-6 pt-5\",\n className,\n )}\n {...props}\n >\n <div className=\"flex flex-col gap-1\">\n <h2 className=\"text-base font-medium text-foreground\">{title}</h2>\n {description && (\n <p className=\"text-sm text-muted-foreground\">{description}</p>\n )}\n </div>\n <div className=\"flex flex-col divide-y divide-foreground/10 rounded-lg border border-foreground/15 bg-muted p-4 *:py-3.5 first:*:pt-0 last:*:pb-0\">\n {children}\n </div>\n {action}\n </div>\n );\n}\n\nexport type QuestionnaireReviewSectionProps = Omit<\n React.ComponentProps<\"section\">,\n \"title\"\n> & {\n heading?: React.ReactNode;\n title?: React.ReactNode;\n items?: React.ReactNode[];\n photos?: PhotoLightboxPhoto[];\n /** Number of photo thumbnails shown before \"Show all photos\" */\n visiblePhotos?: number;\n onEdit?: () => void;\n showPhotosLabel?: (count: number) => string;\n};\n\n/**\n * One service (or the additional details) inside `QuestionnaireReview`.\n * @param props.heading - larger label above the section, e.g. \"Additional details\"\n * @param props.title - service name\n * @param props.items - answers, rendered as bullets\n * @param props.photos - thumbnails, browsable in a lightbox\n * @param props.onEdit - renders an Edit button when provided\n */\nfunction QuestionnaireReviewSection({\n className,\n heading,\n title,\n items = [],\n photos = [],\n visiblePhotos = 2,\n onEdit,\n showPhotosLabel = (count) => `Show all photos (${count})`,\n ...props\n}: QuestionnaireReviewSectionProps) {\n const [lightboxIndex, setLightboxIndex] = React.useState<number | null>(null);\n\n return (\n <section\n data-slot=\"questionnaire-review-section\"\n className={cn(\"flex flex-col gap-3.5\", className)}\n {...props}\n >\n {photos.length > 0 && (\n <div className=\"flex flex-col items-start gap-2.5\">\n <div className=\"flex gap-2\">\n {photos.slice(0, visiblePhotos).map((photo, index) => (\n <button\n key={`${photo.src}-${index}`}\n type=\"button\"\n onClick={() => setLightboxIndex(index)}\n aria-label={`Open photo ${index + 1}`}\n className=\"h-[84px] w-[120px] overflow-hidden rounded-sm outline-none focus-visible:ring-2 focus-visible:ring-ring/50\"\n >\n <img\n src={photo.src}\n alt={photo.alt ?? \"\"}\n className=\"size-full object-cover\"\n />\n </button>\n ))}\n </div>\n <Button\n type=\"button\"\n variant=\"outline\"\n size=\"sm\"\n onClick={() => setLightboxIndex(0)}\n className=\"h-7 rounded-sm border-foreground/15 px-2.5 text-xs font-semibold tracking-[0.01em]\"\n >\n {showPhotosLabel(photos.length)}\n </Button>\n <PhotoLightbox\n key={lightboxIndex ?? \"closed\"}\n photos={photos}\n open={lightboxIndex !== null}\n onOpenChange={(open) => !open && setLightboxIndex(null)}\n initialIndex={lightboxIndex ?? 0}\n />\n </div>\n )}\n {heading && (\n <h3 className=\"text-base font-medium leading-[22px] text-foreground\">\n {heading}\n </h3>\n )}\n <div className=\"flex items-start gap-1\">\n <div className=\"flex min-w-0 flex-1 flex-col gap-1\">\n {title && (\n <p className=\"text-sm font-medium text-foreground\">{title}</p>\n )}\n {items.length > 0 && (\n <ul className=\"flex flex-col gap-1 text-[13px] leading-[19px] text-muted-foreground\">\n {items.map((item, index) => (\n <li key={index}>\u2022 {item}</li>\n ))}\n </ul>\n )}\n </div>\n {onEdit && <QuestionnaireEditButton onClick={onEdit} />}\n </div>\n </section>\n );\n}\n\nexport {\n Questionnaire,\n QuestionnaireActions,\n QuestionnaireCard,\n QuestionnaireChoice,\n QuestionnaireChoiceDescription,\n QuestionnaireChoiceDetails,\n QuestionnaireChoiceTile,\n QuestionnaireChoices,\n QuestionnaireCompletedStep,\n QuestionnaireDescription,\n QuestionnaireEditButton,\n QuestionnaireError,\n QuestionnaireHeader,\n QuestionnaireInput,\n QuestionnaireItem,\n QuestionnaireNext,\n QuestionnairePrevious,\n QuestionnaireProgress,\n QuestionnaireReview,\n QuestionnaireReviewSection,\n QuestionnaireSkip,\n QuestionnaireSubmit,\n QuestionnaireTitle,\n QuestionnaireValue,\n};\n"],
|
|
5
|
-
"mappings": "gLAEA,UAAYA,MAAW,QACvB,OAAS,iBAAiBC,MAA8B,8BACxD,OAAS,aAAAC,EAAW,cAAAC,MAAkB,eAmBlC,cAAAC,EAuJE,QAAAC,MAvJF,oBAPJ,IAAMC,EAAgB,qBAEtB,SAASC,EAAcC,EAGsC,CAHtC,IAAAC,EAAAD,EACrB,WAAAE,CAnBF,EAkBuBD,EAElBE,EAAAC,EA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U,qFAET,SAAAH,EAAgBF,EAAO,MAAM,EAChC,EACA9D,EAACsE,EAAA,CAEC,OAAQR,EACR,KAAMI,IAAkB,KACxB,aAAeK,GAAS,CAACA,GAAQJ,EAAiB,IAAI,EACtD,aAAcD,GAAA,KAAAA,EAAiB,GAJ1BA,GAAA,KAAAA,EAAiB,QAKxB,GACF,EAEDN,GACC5D,EAAC,MAAG,UAAU,uDACX,SAAA4D,EACH,EAEF3D,EAAC,OAAI,UAAU,yBACb,UAAAA,EAAC,OAAI,UAAU,qCACZ,UAAAgD,GACCjD,EAAC,KAAE,UAAU,sCAAuC,SAAAiD,EAAM,EAE3DY,EAAM,OAAS,GACd7D,EAAC,MAAG,UAAU,uEACX,SAAA6D,EAAM,IAAI,CAACW,EAAMH,IAChBpE,EAAC,MAAe,oBAAGuE,IAAVH,CAAe,CACzB,EACH,GAEJ,EACClB,GAAUnD,EAACuD,EAAA,CAAwB,QAASJ,EAAQ,GACvD,IACF,CAEJ",
|
|
6
|
-
"names": ["React", "QuestionnairePrimitive", "CheckIcon", "PencilIcon", "jsx", "jsxs", "respectHidden", "Questionnaire", "_a", "_b", "className", "props", "__objRest", "QuestionnairePrimitive", "__spreadValues", "cn", "QuestionnaireCard", "QuestionnaireHeader", "QuestionnaireProgress", "QuestionnaireItem", "QuestionnaireTitle", "QuestionnaireDescription", "QuestionnaireChoices", "QuestionnaireChoice", "children", "badge", "__spreadProps", "CheckIcon", "QuestionnaireChoiceDescription", "QuestionnaireChoiceTile", "label", "image", "QuestionnaireChoiceDetails", "ref", "active", "setActive", "choice", "sync", "observer", "QuestionnaireInput", "QuestionnaireValue", "value", "QuestionnaireError", "QuestionnaireActions", "navigationButtonClassName", "QuestionnairePrevious", "size", "variant", "buttonVariants", "QuestionnaireSkip", "QuestionnaireNext", "QuestionnaireSubmit", "QuestionnaireCompletedStep", "title", "summary", "onEdit", "editLabel", "Button", "PencilIcon", "QuestionnaireEditButton", "QuestionnaireReview", "description", "action", "QuestionnaireReviewSection", "heading", "items", "photos", "visiblePhotos", "showPhotosLabel", "count", "lightboxIndex", "setLightboxIndex", "photo", "index", "PhotoLightbox", "open", "item"]
|
|
7
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/components/questionnaire/index.tsx"],
|
|
4
|
+
"sourcesContent": ["\"use client\";\n\nimport * as React from \"react\";\nimport { Questionnaire as QuestionnairePrimitive } from \"@shadcn/react/questionnaire\";\nimport { CheckIcon, PencilIcon } from \"lucide-react\";\n\nimport { cn } from \"@/lib/utils\";\nimport { Button, buttonVariants, type ButtonProps } from \"@/components/button\";\nimport {\n PhotoLightbox,\n type PhotoLightboxPhoto,\n} from \"@/components/photo-lightbox\";\n\ntype NavigationButtonProps = Pick<ButtonProps, \"size\" | \"variant\">;\n\n// The primitive toggles visibility with the `hidden` attribute, which Tailwind 3 display utilities would override.\nconst respectHidden = \"[&[hidden]]:hidden\";\n\nfunction Questionnaire({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Root>) {\n return (\n <QuestionnairePrimitive.Root\n data-slot=\"questionnaire\"\n className={cn(\"flex w-full min-w-0 flex-col gap-4\", className)}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireCard({\n className,\n ...props\n}: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"questionnaire-card\"\n className={cn(\n \"flex w-full flex-col gap-5 rounded-xl border bg-background px-6 pb-6 pt-5\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireHeader({\n className,\n ...props\n}: React.ComponentProps<\"h2\">) {\n return (\n <h2\n data-slot=\"questionnaire-header\"\n className={cn(\n \"text-2xl font-bold leading-8 tracking-[-0.01em] text-foreground\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireProgress({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Progress>) {\n return (\n <QuestionnairePrimitive.Progress\n data-slot=\"questionnaire-progress\"\n className={cn(\n \"min-h-4 w-fit text-xs font-medium tabular-nums text-foreground/[0.74]\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireItem({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Item>) {\n return (\n <QuestionnairePrimitive.Item\n data-slot=\"questionnaire-item\"\n className={cn(\n \"flex min-w-0 flex-col gap-4 border-0 p-0 outline-none\",\n respectHidden,\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireTitle({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Title>) {\n return (\n <QuestionnairePrimitive.Title\n data-slot=\"questionnaire-title\"\n className={cn(\n \"text-pretty p-0 text-base font-medium leading-[22px] text-foreground [&:not(:has(~[data-slot=questionnaire-description]))]:mb-4\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireDescription({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Description>) {\n return (\n <QuestionnairePrimitive.Description\n data-slot=\"questionnaire-description\"\n className={cn(\n \"text-pretty text-sm tracking-[0.005em] text-muted-foreground\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireChoices({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Choices>) {\n return (\n <QuestionnairePrimitive.Choices\n data-slot=\"questionnaire-choices\"\n className={cn(\n \"group/questionnaire-choices grid min-w-0 gap-2\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport type QuestionnaireChoiceProps = React.ComponentProps<\n typeof QuestionnairePrimitive.Choice\n> & {\n /** Content pinned to the right edge, such as a \"Recommended\" badge */\n badge?: React.ReactNode;\n};\n\nfunction QuestionnaireChoice({\n children,\n className,\n badge,\n ...props\n}: QuestionnaireChoiceProps) {\n return (\n <QuestionnairePrimitive.Choice\n data-slot=\"questionnaire-choice\"\n className={cn(\n \"group/questionnaire-choice relative flex cursor-pointer select-none items-start gap-2.5 rounded-md border border-input bg-background px-[13px] py-[11px] text-start text-sm outline-none transition-colors hover:bg-muted/50\",\n \"has-[>input:focus-visible]:ring-2 has-[>input:focus-visible]:ring-ring/50\",\n \"data-[checked]:border-surface-color-brand data-[checked]:bg-surface-color-brand-bland\",\n \"data-[invalid]:border-destructive\",\n \"data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50\",\n className,\n )}\n {...props}\n >\n <QuestionnairePrimitive.ChoiceInput\n data-slot=\"questionnaire-choice-input\"\n className=\"absolute inset-0 z-10 size-full cursor-pointer opacity-0\"\n />\n <span\n aria-hidden=\"true\"\n data-slot=\"questionnaire-choice-indicator\"\n className=\"pointer-events-none relative mt-[3px] flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input bg-background group-data-[type=radio]/questionnaire-choice:rounded-full group-data-[checked]/questionnaire-choice:border-surface-color-brand group-data-[checked]/questionnaire-choice:bg-surface-color-brand group-data-[checked]/questionnaire-choice:text-inverted-primary\"\n >\n <span\n data-slot=\"questionnaire-choice-indicator-dot\"\n className=\"hidden size-1.5 rounded-full bg-inverted-primary group-data-[checked]/questionnaire-choice:block group-data-[type=checkbox]/questionnaire-choice:hidden\"\n />\n <CheckIcon\n data-slot=\"questionnaire-choice-indicator-check\"\n className=\"hidden size-3 stroke-[3] group-data-[checked]/questionnaire-choice:block group-data-[type=radio]/questionnaire-choice:hidden\"\n />\n </span>\n <QuestionnairePrimitive.ChoiceLabel\n data-slot=\"questionnaire-choice-label\"\n className=\"flex min-w-0 flex-1 flex-col gap-0.5 leading-[1.375] text-foreground\"\n >\n {children}\n </QuestionnairePrimitive.ChoiceLabel>\n {badge && (\n <span\n data-slot=\"questionnaire-choice-badge\"\n className=\"pointer-events-none flex shrink-0 self-center\"\n >\n {badge}\n </span>\n )}\n </QuestionnairePrimitive.Choice>\n );\n}\n\nfunction QuestionnaireChoiceDescription({\n className,\n ...props\n}: React.ComponentProps<\"span\">) {\n return (\n <span\n data-slot=\"questionnaire-choice-description\"\n className={cn(\"text-muted-foreground\", className)}\n {...props}\n />\n );\n}\n\nexport type QuestionnaireChoiceTileProps = Omit<\n React.ComponentProps<typeof QuestionnairePrimitive.Choice>,\n \"children\"\n> & {\n label: string;\n image: string;\n};\n\n/**\n * Image swatch choice, laid out in a grid via `QuestionnaireChoices className=\"grid-cols-2\"`.\n * @param props.label - text under the image\n * @param props.image - image URL\n */\nfunction QuestionnaireChoiceTile({\n className,\n label,\n image,\n ...props\n}: QuestionnaireChoiceTileProps) {\n return (\n <QuestionnairePrimitive.Choice\n data-slot=\"questionnaire-choice-tile\"\n className={cn(\n \"group/questionnaire-choice relative flex cursor-pointer select-none flex-col gap-1.5 rounded-md border border-input bg-background px-1.5 pb-2 pt-1.5 outline-none transition-colors hover:bg-muted/50\",\n \"has-[>input:focus-visible]:ring-2 has-[>input:focus-visible]:ring-ring/50\",\n \"data-[checked]:border-2 data-[checked]:border-surface-color-brand data-[checked]:bg-surface-color-brand-bland data-[checked]:px-[5px] data-[checked]:pb-[7px] data-[checked]:pt-[5px]\",\n \"data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n className,\n )}\n {...props}\n >\n <QuestionnairePrimitive.ChoiceInput\n data-slot=\"questionnaire-choice-input\"\n className=\"absolute inset-0 z-10 size-full cursor-pointer opacity-0\"\n />\n <img\n src={image}\n alt=\"\"\n className=\"pointer-events-none h-[52px] w-full rounded-[6px] object-cover\"\n />\n <QuestionnairePrimitive.ChoiceLabel\n data-slot=\"questionnaire-choice-label\"\n className=\"text-[11px] text-foreground/[0.74] group-data-[checked]/questionnaire-choice:font-semibold group-data-[checked]/questionnaire-choice:text-content-brand\"\n >\n {label}\n </QuestionnairePrimitive.ChoiceLabel>\n </QuestionnairePrimitive.Choice>\n );\n}\n\n/** Content revealed, and submitted, only while the choice rendered right before it is checked. */\nfunction QuestionnaireChoiceDetails({\n className,\n ...props\n}: React.ComponentProps<\"fieldset\">) {\n const ref = React.useRef<HTMLFieldSetElement>(null);\n const [active, setActive] = React.useState(false);\n\n React.useEffect(() => {\n const choice = ref.current?.previousElementSibling;\n if (!choice) return;\n const sync = () => setActive(choice.hasAttribute(\"data-checked\"));\n sync();\n const observer = new MutationObserver(sync);\n observer.observe(choice, { attributeFilter: [\"data-checked\"] });\n return () => observer.disconnect();\n }, []);\n\n return (\n <fieldset\n ref={ref}\n data-slot=\"questionnaire-choice-details\"\n disabled={!active}\n className={cn(\n \"m-0 hidden min-w-0 border-0 p-0 [[data-checked]+&]:block\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireInput({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Input>) {\n return (\n <QuestionnairePrimitive.Input\n data-slot=\"questionnaire-input\"\n className={cn(\n \"h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base outline-none transition-[color,box-shadow] placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-[invalid=true]:border-destructive md:text-sm\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport type QuestionnaireValueProps = Omit<\n React.ComponentProps<typeof QuestionnairePrimitive.Input>,\n \"value\" | \"defaultValue\" | \"type\"\n> & {\n value: string | number | undefined;\n};\n\n/**\n * Hidden answer for an item driven by a custom control (e.g. PhotoUpload), so Next treats it as answered.\n * @param props.value - the answer; empty means unanswered\n */\nfunction QuestionnaireValue({ value, ...props }: QuestionnaireValueProps) {\n return (\n <QuestionnairePrimitive.Input\n data-slot=\"questionnaire-value\"\n hidden\n readOnly\n tabIndex={-1}\n aria-hidden\n value={value ?? \"\"}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireError({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Error>) {\n return (\n <QuestionnairePrimitive.Error\n data-slot=\"questionnaire-error\"\n className={cn(\"text-sm text-destructive\", respectHidden, className)}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireActions({\n className,\n ...props\n}: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"questionnaire-actions\"\n className={cn(\n \"grid min-h-8 w-full grid-cols-[minmax(0,1fr)_auto_auto] items-center gap-2\",\n className,\n )}\n {...props}\n />\n );\n}\n\nconst navigationButtonClassName = \"h-8 rounded-md px-2.5 text-sm\";\n\nfunction QuestionnairePrevious({\n children,\n className,\n size,\n variant = \"outline\",\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Previous> &\n NavigationButtonProps) {\n return (\n <QuestionnairePrimitive.Previous\n data-slot=\"questionnaire-previous\"\n className={cn(\n buttonVariants({ size, variant }),\n navigationButtonClassName,\n \"col-start-1 row-start-1 justify-self-start\",\n respectHidden,\n className,\n )}\n {...props}\n >\n {children ?? \"Previous\"}\n </QuestionnairePrimitive.Previous>\n );\n}\n\nfunction QuestionnaireSkip({\n children,\n className,\n size,\n variant = \"outline\",\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Skip> &\n NavigationButtonProps) {\n return (\n <QuestionnairePrimitive.Skip\n data-slot=\"questionnaire-skip\"\n className={cn(\n buttonVariants({ size, variant }),\n navigationButtonClassName,\n \"col-start-2 row-start-1 justify-self-end\",\n respectHidden,\n className,\n )}\n {...props}\n >\n {children ?? \"Skip\"}\n </QuestionnairePrimitive.Skip>\n );\n}\n\nfunction QuestionnaireNext({\n children,\n className,\n size,\n variant = \"default\",\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Next> &\n NavigationButtonProps) {\n return (\n <QuestionnairePrimitive.Next\n data-slot=\"questionnaire-next\"\n className={cn(\n buttonVariants({ size, variant }),\n navigationButtonClassName,\n \"col-start-3 row-start-1 justify-self-end\",\n respectHidden,\n className,\n )}\n {...props}\n >\n {children ?? \"Next\"}\n </QuestionnairePrimitive.Next>\n );\n}\n\nfunction QuestionnaireSubmit({\n children,\n className,\n size,\n variant = \"default\",\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Submit> &\n NavigationButtonProps) {\n return (\n <QuestionnairePrimitive.Submit\n data-slot=\"questionnaire-submit\"\n className={cn(\n buttonVariants({ size, variant }),\n navigationButtonClassName,\n \"col-start-3 row-start-1 justify-self-end\",\n respectHidden,\n className,\n )}\n {...props}\n >\n {children ?? \"Submit\"}\n </QuestionnairePrimitive.Submit>\n );\n}\n\nexport type QuestionnaireCompletedStepProps = Omit<\n React.ComponentProps<\"div\">,\n \"title\"\n> & {\n title: React.ReactNode;\n summary?: React.ReactNode;\n onEdit?: () => void;\n editLabel?: string;\n};\n\n/**\n * Collapsed summary of a finished service, shown above the active questionnaire.\n * @param props.title - service name\n * @param props.summary - one-line recap of the answers\n * @param props.onEdit - renders an Edit button when provided\n */\nfunction QuestionnaireCompletedStep({\n className,\n title,\n summary,\n onEdit,\n editLabel = \"Edit\",\n ...props\n}: QuestionnaireCompletedStepProps) {\n return (\n <div\n data-slot=\"questionnaire-completed-step\"\n className={cn(\n \"flex w-full items-start gap-3 rounded-xl border bg-background px-5 py-4\",\n className,\n )}\n {...props}\n >\n <span className=\"flex size-6 shrink-0 items-center justify-center rounded-full bg-foreground/80 text-background\">\n <CheckIcon className=\"size-3.5 stroke-[3]\" aria-hidden=\"true\" />\n </span>\n <div className=\"flex min-w-0 flex-1 flex-col gap-0.5\">\n <p className=\"text-sm font-medium text-foreground\">{title}</p>\n {summary && (\n <p className=\"text-[13px] leading-[19px] text-muted-foreground\">\n {summary}\n </p>\n )}\n </div>\n {onEdit && (\n <Button\n type=\"button\"\n variant=\"ghost\"\n size=\"sm\"\n onClick={onEdit}\n className=\"text-[13px] font-semibold text-foreground/[0.74]\"\n >\n <PencilIcon />\n {editLabel}\n </Button>\n )}\n </div>\n );\n}\n\nfunction QuestionnaireEditButton({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof Button>) {\n return (\n <Button\n type=\"button\"\n variant=\"outline\"\n size=\"sm\"\n className={cn(\n \"h-8 shrink-0 gap-1.5 rounded-md border-foreground/15 px-3 text-[13px] font-semibold tracking-[0.005em]\",\n className,\n )}\n {...props}\n >\n <PencilIcon />\n {children ?? \"Edit\"}\n </Button>\n );\n}\n\nexport type QuestionnaireReviewProps = Omit<\n React.ComponentProps<\"div\">,\n \"title\"\n> & {\n title?: React.ReactNode;\n description?: React.ReactNode;\n /** Rendered below the summary panel, typically the submit button */\n action?: React.ReactNode;\n};\n\n/**\n * Summary card listing every answered service before the request is sent.\n * @param props.action - footer content, usually the full-width submit button\n */\nfunction QuestionnaireReview({\n className,\n title = \"Review your request\",\n description = \"Check your details before sending your request to local pros.\",\n action,\n children,\n ...props\n}: QuestionnaireReviewProps) {\n return (\n <div\n data-slot=\"questionnaire-review\"\n className={cn(\n \"flex w-full flex-col gap-5 rounded-xl border border-foreground/15 bg-background px-6 pb-6 pt-5\",\n className,\n )}\n {...props}\n >\n <div className=\"flex flex-col gap-1\">\n <h2 className=\"text-base font-medium text-foreground\">{title}</h2>\n {description && (\n <p className=\"text-sm text-muted-foreground\">{description}</p>\n )}\n </div>\n <div className=\"flex flex-col divide-y divide-foreground/10 rounded-lg border border-foreground/15 bg-muted p-4 *:py-3.5 first:*:pt-0 last:*:pb-0\">\n {children}\n </div>\n {action}\n </div>\n );\n}\n\nexport type QuestionnaireReviewSectionProps = Omit<\n React.ComponentProps<\"section\">,\n \"title\"\n> & {\n heading?: React.ReactNode;\n title?: React.ReactNode;\n items?: React.ReactNode[];\n photos?: PhotoLightboxPhoto[];\n /** Number of photo thumbnails shown before \"Show all photos\" */\n visiblePhotos?: number;\n onEdit?: () => void;\n showPhotosLabel?: (count: number) => string;\n};\n\n/**\n * One service (or the additional details) inside `QuestionnaireReview`.\n * @param props.heading - larger label above the section, e.g. \"Additional details\"\n * @param props.title - service name\n * @param props.items - answers, rendered as bullets\n * @param props.photos - thumbnails, browsable in a lightbox\n * @param props.onEdit - renders an Edit button when provided\n */\nfunction QuestionnaireReviewSection({\n className,\n heading,\n title,\n items = [],\n photos = [],\n visiblePhotos = 2,\n onEdit,\n showPhotosLabel = (count) => `Show all photos (${count})`,\n ...props\n}: QuestionnaireReviewSectionProps) {\n const [lightboxIndex, setLightboxIndex] = React.useState<number | null>(null);\n\n return (\n <section\n data-slot=\"questionnaire-review-section\"\n className={cn(\"flex flex-col gap-3.5\", className)}\n {...props}\n >\n {photos.length > 0 && (\n <div className=\"flex flex-col items-start gap-2.5\">\n <div className=\"flex gap-2\">\n {photos.slice(0, visiblePhotos).map((photo, index) => (\n <button\n key={`${photo.src}-${index}`}\n type=\"button\"\n onClick={() => setLightboxIndex(index)}\n aria-label={`Open photo ${index + 1}`}\n className=\"h-[84px] w-[120px] overflow-hidden rounded-sm outline-none focus-visible:ring-2 focus-visible:ring-ring/50\"\n >\n <img\n src={photo.src}\n alt={photo.alt ?? \"\"}\n className=\"size-full object-cover\"\n />\n </button>\n ))}\n </div>\n <Button\n type=\"button\"\n variant=\"outline\"\n size=\"sm\"\n onClick={() => setLightboxIndex(0)}\n className=\"h-7 rounded-sm border-foreground/15 px-2.5 text-xs font-semibold tracking-[0.01em]\"\n >\n {showPhotosLabel(photos.length)}\n </Button>\n <PhotoLightbox\n key={lightboxIndex ?? \"closed\"}\n photos={photos}\n open={lightboxIndex !== null}\n onOpenChange={(open) => !open && setLightboxIndex(null)}\n initialIndex={lightboxIndex ?? 0}\n />\n </div>\n )}\n {heading && (\n <h3 className=\"text-base font-medium leading-[22px] text-foreground\">\n {heading}\n </h3>\n )}\n <div className=\"flex items-start gap-1\">\n <div className=\"flex min-w-0 flex-1 flex-col gap-1\">\n {title && (\n <p className=\"text-sm font-medium text-foreground\">{title}</p>\n )}\n {items.length > 0 && (\n <ul className=\"flex flex-col gap-1 text-[13px] leading-[19px] text-muted-foreground\">\n {items.map((item, index) => (\n <li key={index}>\u2022 {item}</li>\n ))}\n </ul>\n )}\n </div>\n {onEdit && <QuestionnaireEditButton onClick={onEdit} />}\n </div>\n </section>\n );\n}\n\nexport {\n Questionnaire,\n QuestionnaireActions,\n QuestionnaireCard,\n QuestionnaireChoice,\n QuestionnaireChoiceDescription,\n QuestionnaireChoiceDetails,\n QuestionnaireChoiceTile,\n QuestionnaireChoices,\n QuestionnaireCompletedStep,\n QuestionnaireDescription,\n QuestionnaireEditButton,\n QuestionnaireError,\n QuestionnaireHeader,\n QuestionnaireInput,\n QuestionnaireItem,\n QuestionnaireNext,\n QuestionnairePrevious,\n QuestionnaireProgress,\n QuestionnaireReview,\n QuestionnaireReviewSection,\n QuestionnaireSkip,\n QuestionnaireSubmit,\n QuestionnaireTitle,\n QuestionnaireValue,\n};\n"],
|
|
5
|
+
"mappings": "gLAEA,UAAYA,MAAW,QACvB,OAAS,iBAAiBC,MAA8B,8BACxD,OAAS,aAAAC,EAAW,cAAAC,MAAkB,eAmBlC,cAAAC,EAuJE,QAAAC,MAvJF,oBAPJ,IAAMC,EAAgB,qBAEtB,SAASC,EAAcC,EAGsC,CAHtC,IAAAC,EAAAD,EACrB,WAAAE,CAnBF,EAkBuBD,EAElBE,EAAAC,EAFkBH,EAElB,CADH,cAGA,OACEL,EAACS,EAAuB,KAAvBC,EAAA,CACC,YAAU,gBACV,UAAWC,EAAG,qCAAsCL,CAAS,GACzDC,EACN,CAEJ,CAEA,SAASK,EAAkBR,EAGK,CAHL,IAAAC,EAAAD,EACzB,WAAAE,CAhCF,EA+B2BD,EAEtBE,EAAAC,EAFsBH,EAEtB,CADH,cAGA,OACEL,EAAC,MAAAU,EAAA,CACC,YAAU,qBACV,UAAWC,EACT,4EACAL,CACF,GACIC,EACN,CAEJ,CAEA,SAASM,EAAoBT,EAGE,CAHF,IAAAC,EAAAD,EAC3B,WAAAE,CAhDF,EA+C6BD,EAExBE,EAAAC,EAFwBH,EAExB,CADH,cAGA,OACEL,EAAC,KAAAU,EAAA,CACC,YAAU,uBACV,UAAWC,EACT,kEACAL,CACF,GACIC,EACN,CAEJ,CAEA,SAASO,EAAsBV,EAGkC,CAHlC,IAAAC,EAAAD,EAC7B,WAAAE,CAhEF,EA+D+BD,EAE1BE,EAAAC,EAF0BH,EAE1B,CADH,cAGA,OACEL,EAACS,EAAuB,SAAvBC,EAA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den", "Questionnaire", "_a", "_b", "className", "props", "__objRest", "QuestionnairePrimitive", "__spreadValues", "cn", "QuestionnaireCard", "QuestionnaireHeader", "QuestionnaireProgress", "QuestionnaireItem", "QuestionnaireTitle", "QuestionnaireDescription", "QuestionnaireChoices", "QuestionnaireChoice", "children", "badge", "__spreadProps", "CheckIcon", "QuestionnaireChoiceDescription", "QuestionnaireChoiceTile", "label", "image", "QuestionnaireChoiceDetails", "ref", "active", "setActive", "choice", "sync", "observer", "QuestionnaireInput", "QuestionnaireValue", "value", "QuestionnaireError", "QuestionnaireActions", "navigationButtonClassName", "QuestionnairePrevious", "size", "variant", "buttonVariants", "QuestionnaireSkip", "QuestionnaireNext", "QuestionnaireSubmit", "QuestionnaireCompletedStep", "title", "summary", "onEdit", "editLabel", "Button", "PencilIcon", "QuestionnaireEditButton", "QuestionnaireReview", "description", "action", "QuestionnaireReviewSection", "heading", "items", "photos", "visiblePhotos", "showPhotosLabel", "count", "lightboxIndex", "setLightboxIndex", "photo", "index", "PhotoLightbox", "open", "item"]
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-LUG5DIYB.js";import"../../chunk-WIFBPNRH.js";import"../../chunk-WHECA25N.js";export{b as Badge,a as badgeVariants};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-BF3VTYEM.js";import"../../chunk-WIFBPNRH.js";import"../../chunk-WHECA25N.js";export{b as Button,a as buttonVariants};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-62LTWWXS.js";import"../../chunk-BF3VTYEM.js";import"../../chunk-WIFBPNRH.js";import"../../chunk-WHECA25N.js";export{a as Calendar,b as CalendarDayButton};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e,f}from"../../chunk-
|
|
1
|
+
import{a,b,c,d,e,f}from"../../chunk-S2I5LIDP.js";import"../../chunk-BF3VTYEM.js";import"../../chunk-WIFBPNRH.js";import"../../chunk-WHECA25N.js";export{a as Carousel,b as CarouselContent,c as CarouselItem,f as CarouselNext,e as CarouselPrevious,d as carouselControlVariants};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{a}from"../../chunk-
|
|
1
|
+
"use client";import{a}from"../../chunk-Q3PG3WWG.js";import"../../chunk-JVQR7SBQ.js";import"../../chunk-2R5NZUY2.js";import"../../chunk-BY3UM6EV.js";import"../../chunk-BF3VTYEM.js";import"../../chunk-WIFBPNRH.js";import"../../chunk-WHECA25N.js";export{a as Combobox};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i}from"../../chunk-
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i}from"../../chunk-JVQR7SBQ.js";import"../../chunk-2R5NZUY2.js";import"../../chunk-WIFBPNRH.js";import"../../chunk-WHECA25N.js";export{a as Command,b as CommandDialog,e as CommandEmpty,f as CommandGroup,c as CommandInput,h as CommandItem,d as CommandList,g as CommandSeparator,i as CommandShortcut};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{a}from"../../chunk-
|
|
1
|
+
"use client";import{a}from"../../chunk-322C3AJR.js";import"../../chunk-7H74R7P4.js";import"../../chunk-7EVFMYIH.js";import"../../chunk-2R5NZUY2.js";import"../../chunk-BF3VTYEM.js";import"../../chunk-46MFR2CI.js";import"../../chunk-WIFBPNRH.js";import"../../chunk-WHECA25N.js";export{a as Confirm};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{a,b,c,d,e,f,g,h,i,j}from"../../chunk-
|
|
1
|
+
"use client";import{a,b,c,d,e,f,g,h,i,j}from"../../chunk-2R5NZUY2.js";import"../../chunk-WIFBPNRH.js";import"../../chunk-WHECA25N.js";export{a as Dialog,d as DialogClose,f as DialogContent,j as DialogDescription,h as DialogFooter,g as DialogHeader,e as DialogOverlay,c as DialogPortal,i as DialogTitle,b as DialogTrigger};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{a,b,c,d,e,f,g,h,i}from"../../chunk-
|
|
1
|
+
"use client";import{a,b,c,d,e,f,g,h,i}from"../../chunk-7H74R7P4.js";import"../../chunk-7EVFMYIH.js";import"../../chunk-2R5NZUY2.js";import"../../chunk-46MFR2CI.js";import"../../chunk-WIFBPNRH.js";import"../../chunk-WHECA25N.js";export{b as DialogResponsive,d as DialogResponsiveClose,e as DialogResponsiveContent,i as DialogResponsiveDescription,g as DialogResponsiveFooter,f as DialogResponsiveHeader,h as DialogResponsiveTitle,c as DialogResponsiveTrigger,a as useDialogResponsive};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{a,b,c,d,e,f,g,h}from"../../chunk-
|
|
1
|
+
"use client";import{a,b,c,d,e,f,g,h}from"../../chunk-A4EVMSOO.js";import"../../chunk-VIGX5NKJ.js";import"../../chunk-7EVFMYIH.js";import"../../chunk-46MFR2CI.js";import"../../chunk-WIFBPNRH.js";import"../../chunk-WHECA25N.js";export{b as DropdownMenuResponsive,h as DropdownMenuResponsiveClose,d as DropdownMenuResponsiveContent,e as DropdownMenuResponsiveItem,f as DropdownMenuResponsiveLabel,g as DropdownMenuResponsiveSeparator,c as DropdownMenuResponsiveTrigger,a as useDropdownMenuResponsive};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e,f}from"../../chunk-
|
|
1
|
+
import{a,b,c,d,e,f}from"../../chunk-FUXRPZVU.js";import"../../chunk-6MI7ACXZ.js";import"../../chunk-BF3VTYEM.js";import"../../chunk-NMUGPQJR.js";import"../../chunk-WIFBPNRH.js";import"../../chunk-WHECA25N.js";export{a as InputGroup,b as InputGroupAddon,c as InputGroupButton,e as InputGroupInput,d as InputGroupText,f as InputGroupTextarea};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{a}from"../../chunk-
|
|
1
|
+
"use client";import{a}from"../../chunk-63IVPQSD.js";import"../../chunk-S2I5LIDP.js";import"../../chunk-BF3VTYEM.js";import"../../chunk-46MFR2CI.js";import"../../chunk-WIFBPNRH.js";import"../../chunk-WHECA25N.js";export{a as PhotoLightbox};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{a}from"../../chunk-
|
|
1
|
+
"use client";import{a}from"../../chunk-KR5A3H22.js";import"../../chunk-GTEOHHVD.js";import"../../chunk-WIFBPNRH.js";import"../../chunk-WHECA25N.js";export{a as PhotoUpload};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x}from"../../chunk-
|
|
1
|
+
"use client";import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x}from"../../chunk-ZJVH3SNI.js";import"../../chunk-63IVPQSD.js";import"../../chunk-S2I5LIDP.js";import"../../chunk-BF3VTYEM.js";import"../../chunk-46MFR2CI.js";import"../../chunk-WIFBPNRH.js";import"../../chunk-WHECA25N.js";export{a as Questionnaire,p as QuestionnaireActions,b as QuestionnaireCard,i as QuestionnaireChoice,j as QuestionnaireChoiceDescription,l as QuestionnaireChoiceDetails,k as QuestionnaireChoiceTile,h as QuestionnaireChoices,u as QuestionnaireCompletedStep,g as QuestionnaireDescription,v as QuestionnaireEditButton,o as QuestionnaireError,c as QuestionnaireHeader,m as QuestionnaireInput,e as QuestionnaireItem,s as QuestionnaireNext,q as QuestionnairePrevious,d as QuestionnaireProgress,w as QuestionnaireReview,x as QuestionnaireReviewSection,r as QuestionnaireSkip,t as QuestionnaireSubmit,f as QuestionnaireTitle,n as QuestionnaireValue};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{a}from"../../chunk-
|
|
1
|
+
"use client";import{a}from"../../chunk-T73JL4BL.js";import"../../chunk-WIFBPNRH.js";import"../../chunk-WHECA25N.js";export{a as Slider};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e,f}from"../../chunk-
|
|
1
|
+
import{a,b,c,d,e,f}from"../../chunk-KGEITSDG.js";import"../../chunk-WIFBPNRH.js";import"../../chunk-WHECA25N.js";export{a as Tabs,f as TabsContent,d as TabsList,e as TabsTrigger,b as tabsListVariants,c as tabsTriggerVariants};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{a,b}from"../../chunk-
|
|
1
|
+
"use client";import{a,b}from"../../chunk-PRAYE34P.js";import"../../chunk-WIFBPNRH.js";import"../../chunk-WHECA25N.js";export{b as Toggle,a as toggleVariants};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{a,b}from"../../chunk-
|
|
1
|
+
"use client";import{a,b}from"../../chunk-5AXWISGI.js";import"../../chunk-PRAYE34P.js";import"../../chunk-WIFBPNRH.js";import"../../chunk-WHECA25N.js";export{a as ToggleGroup,b as ToggleGroupItem};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as f,b as m,c as p}from"./chunk-FKH5WAC7.js";import{a as o,b as r,c as e}from"./chunk-INK2D47B.js";import{a as $}from"./chunk-
|
|
1
|
+
import{a as f,b as m,c as p}from"./chunk-FKH5WAC7.js";import{a as o,b as r,c as e}from"./chunk-INK2D47B.js";import{a as $}from"./chunk-Q3PG3WWG.js";import{a as B,b as C,c as D}from"./chunk-PYVYS6W4.js";import{a as y,b as z,c as A}from"./chunk-2FVVWPIW.js";import{a as g,b as h,c as i,d as j,e as k,f as l}from"./chunk-CALZEY6V.js";import{a as c,b as d}from"./chunk-62LTWWXS.js";import{a as t,b as x}from"./chunk-LUG5DIYB.js";import{a as Vo,b as Wo,c as Xo,d as Yo,e as Zo,f as _o}from"./chunk-PQXLSFXS.js";import{a as No,b as Oo,c as Po,d as Qo,e as Ro,f as So,g as To,h as Uo}from"./chunk-A4EVMSOO.js";import{a as yo,b as zo,c as Ao,d as Bo,e as Co,f as Do,g as Eo,h as Fo,i as Go,j as Ho,k as Io,l as Jo,m as Ko,n as Lo,o as Mo}from"./chunk-VIGX5NKJ.js";import{a as wo}from"./chunk-322C3AJR.js";import{a as io,b as jo,c as ko,d as lo,e as no,f as qo,g as so,h as uo,i as vo}from"./chunk-7H74R7P4.js";import{a as oo,b as ro,c as eo,d as fo,e as mo,f as po,g as to,h as xo,i as ao,j as bo,k as co,l as go}from"./chunk-7EVFMYIH.js";import{a as O,b as P,c as Q,d as R,e as S,f as T,g as U,h as V,i as W}from"./chunk-JVQR7SBQ.js";import{a as E,b as F,c as G,d as H,e as I,f as J,g as K,h as L,i as M,j as N}from"./chunk-2R5NZUY2.js";import{a as Hr}from"./chunk-KCQQSXMU.js";import{a as vr,b as wr,c as yr,d as zr,e as Ar,f as Br,g as Cr,h as Dr,i as Er,j as Fr}from"./chunk-M3WRRDK4.js";import{a as sr}from"./chunk-IM2PR6JL.js";import{a as kr,b as lr,c as nr,d as qr}from"./chunk-CF236UZ4.js";import{a as cr,b as dr,c as gr,d as hr,e as ir,f as jr}from"./chunk-FUXRPZVU.js";import{a as ar}from"./chunk-6MI7ACXZ.js";import{a as or,b as rr,c as er,d as fr,e as mr,f as pr,g as tr,h as xr}from"./chunk-DBMJIVTY.js";import{a as $o}from"./chunk-7TYPESVD.js";import{a as de,b as ge,c as he}from"./chunk-P2J4T7VX.js";import{a as ce}from"./chunk-RHVVPPZE.js";import{a as xe,b as ae,c as be}from"./chunk-UUB5URTQ.js";import{a as Lr,b as Mr,c as Nr,d as Or,e as Pr,f as Qr,g as Rr,h as Sr,i as Tr,j as Ur,k as Vr,l as Wr,m as Xr,n as Yr,o as Zr,p as _r,q as $r,r as oe,s as re,t as ee,u as fe,v as me,w as pe,x as te}from"./chunk-ZJVH3SNI.js";import{a as Kr}from"./chunk-4HREOJXZ.js";import{a as X,b as Y,c as Z,d as _}from"./chunk-BY3UM6EV.js";import{a as Jr}from"./chunk-KR5A3H22.js";import{a as Ir}from"./chunk-63IVPQSD.js";import{a as n,b as q,c as s,d as u,e as v,f as w}from"./chunk-S2I5LIDP.js";import{a,b}from"./chunk-BF3VTYEM.js";import{a as Te,b as Ue,c as Ve,d as We,e as Xe,f as Ye}from"./chunk-KGEITSDG.js";import{a as Le,b as Me,c as Ne,d as Oe,e as Pe,f as Qe,g as Re,h as Se}from"./chunk-DCPZZOJQ.js";import{a as Gr}from"./chunk-GTEOHHVD.js";import{a as Ke}from"./chunk-T73JL4BL.js";import{a as Ae,b as Be,c as Ce,d as De,e as Ee,f as Fe,g as Ge,h as He,i as Ie,j as Je}from"./chunk-SJZ34LYG.js";import{a as ur}from"./chunk-RRDBPO2I.js";import{a as ke,b as le,c as ne,d as qe,e as se,f as ue,g as ve,h as we,i as ye,j as ze}from"./chunk-BJWILCTE.js";import{a as ie,b as je}from"./chunk-L4EACCHY.js";import"./chunk-GATZOHQ6.js";import{a as ho}from"./chunk-46MFR2CI.js";import{a as $e,b as of}from"./chunk-5AXWISGI.js";import{a as Ze,b as _e}from"./chunk-PRAYE34P.js";import{a as br}from"./chunk-NMUGPQJR.js";import"./chunk-WIFBPNRH.js";import"./chunk-WHECA25N.js";export{o as Alert,e as AlertDescription,r as AlertTitle,f as Avatar,p as AvatarFallback,m as AvatarImage,x as Badge,b as Button,c as Calendar,d as CalendarDayButton,g as Card,k as CardContent,j as CardDescription,l as CardFooter,h as CardHeader,i as CardTitle,n as Carousel,q as CarouselContent,s as CarouselItem,w as CarouselNext,v as CarouselPrevious,y as Checkbox,A as CheckboxGroup,z as CheckboxOption,B as Collapsible,D as CollapsibleContent,C as CollapsibleTrigger,$ as Combobox,O as Command,P as CommandDialog,S as CommandEmpty,T as CommandGroup,Q as CommandInput,V as CommandItem,R as CommandList,U as CommandSeparator,W as CommandShortcut,wo as Confirm,E as Dialog,H as DialogClose,J as DialogContent,N as DialogDescription,L as DialogFooter,K as DialogHeader,I as DialogOverlay,G as DialogPortal,jo as DialogResponsive,lo as DialogResponsiveClose,no as DialogResponsiveContent,vo as DialogResponsiveDescription,so as DialogResponsiveFooter,qo as DialogResponsiveHeader,uo as DialogResponsiveTitle,ko as DialogResponsiveTrigger,M as DialogTitle,F as DialogTrigger,oo as Drawer,fo as DrawerClose,to as DrawerContent,co as DrawerDescription,ao as DrawerFooter,xo as DrawerHeader,mo as DrawerOverlay,eo as DrawerPortal,po as DrawerSwipeHandle,bo as DrawerTitle,ro as DrawerTrigger,go as DrawerVirtualKeyboardProvider,yo as DropdownMenu,Io as DropdownMenuCheckboxItem,Go as DropdownMenuContent,Ao as DropdownMenuGroup,Ho as DropdownMenuItem,Ko as DropdownMenuLabel,Bo as DropdownMenuPortal,Do as DropdownMenuRadioGroup,Jo as DropdownMenuRadioItem,Oo as DropdownMenuResponsive,Uo as DropdownMenuResponsiveClose,Qo as DropdownMenuResponsiveContent,Ro as DropdownMenuResponsiveItem,So as DropdownMenuResponsiveLabel,To as DropdownMenuResponsiveSeparator,Po as DropdownMenuResponsiveTrigger,Lo as DropdownMenuSeparator,Mo as DropdownMenuShortcut,Co as DropdownMenuSub,Fo as DropdownMenuSubContent,Eo as DropdownMenuSubTrigger,zo as DropdownMenuTrigger,Vo as Empty,_o as EmptyContent,Zo as EmptyDescription,Wo as EmptyHeader,Xo as EmptyMedia,Yo as EmptyTitle,or as Form,pr as FormControl,tr as FormDescription,rr as FormField,fr as FormItem,mr as FormLabel,xr as FormMessage,ar as Input,cr as InputGroup,dr as InputGroupAddon,gr as InputGroupButton,ir as InputGroupInput,hr as InputGroupText,jr as InputGroupTextarea,kr as InputOTP,lr as InputOTPGroup,qr as InputOTPSeparator,nr as InputOTPSlot,sr as InputPassword,yr as Item,Dr as ItemActions,Ar as ItemContent,Cr as ItemDescription,Fr as ItemFooter,vr as ItemGroup,Er as ItemHeader,zr as ItemMedia,wr as ItemSeparator,Br as ItemTitle,$o as Label,Hr as LoadingPage,Ir as PhotoLightbox,Jr as PhotoUpload,X as Popover,Z as PopoverAnchor,_ as PopoverContent,Y as PopoverTrigger,Kr as Progress,Lr as Questionnaire,_r as QuestionnaireActions,Mr as QuestionnaireCard,Tr as QuestionnaireChoice,Ur as QuestionnaireChoiceDescription,Wr as QuestionnaireChoiceDetails,Vr as QuestionnaireChoiceTile,Sr as QuestionnaireChoices,fe as QuestionnaireCompletedStep,Rr as QuestionnaireDescription,me as QuestionnaireEditButton,Zr as QuestionnaireError,Nr as QuestionnaireHeader,Xr as QuestionnaireInput,Pr as QuestionnaireItem,re as QuestionnaireNext,$r as QuestionnairePrevious,Or as QuestionnaireProgress,pe as QuestionnaireReview,te as QuestionnaireReviewSection,oe as QuestionnaireSkip,ee as QuestionnaireSubmit,Qr as QuestionnaireTitle,Yr as QuestionnaireValue,xe as RadioGroup,ae as RadioGroupItem,be as RadioGroupOption,ce as Rating,he as ResizableHandle,ge as ResizablePanel,de as ResizablePanelGroup,ie as ScrollArea,je as ScrollBar,ke as Select,ve as SelectContent,le as SelectGroup,ye as SelectItem,we as SelectLabel,ue as SelectScrollDownButton,se as SelectScrollUpButton,ze as SelectSeparator,qe as SelectTrigger,ne as SelectValue,ur as Separator,Ae as Sheet,Ce as SheetClose,Fe as SheetContent,Je as SheetDescription,He as SheetFooter,Ge as SheetHeader,Ee as SheetOverlay,De as SheetPortal,Ie as SheetTitle,Be as SheetTrigger,Ke as Slider,Gr as Spinner,Le as Table,Ne as TableBody,Se as TableCaption,Re as TableCell,Oe as TableFooter,Qe as TableHead,Me as TableHeader,Pe as TableRow,Te as Tabs,Ye as TabsContent,We as TabsList,Xe as TabsTrigger,br as Textarea,_e as Toggle,$e as ToggleGroup,of as ToggleGroupItem,t as badgeVariants,a as buttonVariants,u as carouselControlVariants,Ue as tabsListVariants,Ve as tabsTriggerVariants,Ze as toggleVariants,io as useDialogResponsive,No as useDropdownMenuResponsive,er as useFormField,ho as useIsTouchDevice};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|