commerce-toolkit 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion/primitives/accordion-content.d.ts +1 -1
- package/dist/components/accordion/primitives/accordion-content.d.ts.map +1 -1
- package/dist/components/accordion/primitives/accordion-item.d.ts.map +1 -1
- package/dist/components/accordion/primitives/accordion-trigger.d.ts +1 -1
- package/dist/components/accordion/primitives/accordion-trigger.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3200 -469
- package/dist/index.js.map +1 -1
- package/dist/lib/index.d.ts +2 -0
- package/dist/lib/index.d.ts.map +1 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/package.json +3 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
2
2
|
import type { ComponentProps } from 'react';
|
|
3
3
|
export type AccordionContentProps = ComponentProps<typeof AccordionPrimitive.Content>;
|
|
4
|
-
export declare function AccordionContent({ children, ...props }: AccordionContentProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function AccordionContent({ children, className, ...props }: AccordionContentProps): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
//# sourceMappingURL=accordion-content.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion-content.d.ts","sourceRoot":"","sources":["../../../../src/components/accordion/primitives/accordion-content.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"accordion-content.d.ts","sourceRoot":"","sources":["../../../../src/components/accordion/primitives/accordion-content.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAEhE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAK5C,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC,OAAO,kBAAkB,CAAC,OAAO,CAAC,CAAC;AAEtF,wBAAgB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,qBAAqB,2CAiCxF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion-item.d.ts","sourceRoot":"","sources":["../../../../src/components/accordion/primitives/accordion-item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"accordion-item.d.ts","sourceRoot":"","sources":["../../../../src/components/accordion/primitives/accordion-item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAKtD,MAAM,MAAM,kBAAkB,GAAG,wBAAwB,CAAC,OAAO,kBAAkB,CAAC,IAAI,CAAC,CAAC;AAE1F,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,2CAmBlF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
2
2
|
import type { ComponentProps } from 'react';
|
|
3
3
|
export type AccordionTriggerProps = ComponentProps<typeof AccordionPrimitive.Trigger>;
|
|
4
|
-
export declare function AccordionTrigger({ children, ...props }: AccordionTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function AccordionTrigger({ children, className, ...props }: AccordionTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
//# sourceMappingURL=accordion-trigger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion-trigger.d.ts","sourceRoot":"","sources":["../../../../src/components/accordion/primitives/accordion-trigger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"accordion-trigger.d.ts","sourceRoot":"","sources":["../../../../src/components/accordion/primitives/accordion-trigger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAK5C,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC,OAAO,kBAAkB,CAAC,OAAO,CAAC,CAAC;AAEtF,wBAAgB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,qBAAqB,2CA4DxF"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),v=require("react");require("react-dom");function xe(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=xe(v);function Ce({colorScheme:e="light",items:t,...n}){return l.jsx(at,{colorScheme:e,children:l.jsx(ct,{...n,children:t.map((o,r)=>l.jsxs(rt,{value:o.title,children:[l.jsx(st,{children:o.title}),l.jsx(it,{children:o.content})]},r))})})}function U(e,t=[]){let n=[];function o(c,a){const s=i.createContext(a),d=n.length;n=[...n,a];const u=f=>{const{scope:C,children:g,...A}=f,x=C?.[e]?.[d]||s,h=i.useMemo(()=>A,Object.values(A));return l.jsx(x.Provider,{value:h,children:g})};u.displayName=c+"Provider";function p(f,C){const g=C?.[e]?.[d]||s,A=i.useContext(g);if(A)return A;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${c}\``)}return[u,p]}const r=()=>{const c=n.map(a=>i.createContext(a));return function(s){const d=s?.[e]||c;return i.useMemo(()=>({[`__scope${e}`]:{...s,[e]:d}}),[s,d])}};return r.scopeName=e,[o,be(r,...t)]}function be(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(c){const a=o.reduce((s,{useScope:d,scopeName:u})=>{const f=d(c)[`__scope${u}`];return{...s,...f}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Y(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Z(...e){return t=>{let n=!1;const o=e.map(r=>{const c=Y(r,t);return!n&&typeof c=="function"&&(n=!0),c});if(n)return()=>{for(let r=0;r<o.length;r++){const c=o[r];typeof c=="function"?c():Y(e[r],null)}}}}function P(...e){return i.useCallback(Z(...e),e)}function L(e){const t=Ae(e),n=i.forwardRef((o,r)=>{const{children:c,...a}=o,s=i.Children.toArray(c),d=s.find(Ne);if(d){const u=d.props.children,p=s.map(f=>f===d?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:f);return l.jsx(t,{...a,ref:r,children:i.isValidElement(u)?i.cloneElement(u,void 0,p):null})}return l.jsx(t,{...a,ref:r,children:c})});return n.displayName=`${e}.Slot`,n}function Ae(e){const t=i.forwardRef((n,o)=>{const{children:r,...c}=n;if(i.isValidElement(r)){const a=Ie(r),s=Re(c,r.props);return r.type!==i.Fragment&&(s.ref=o?Z(o,a):a),i.cloneElement(r,s)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ye=Symbol("radix.slottable");function Ne(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ye}function Re(e,t){const n={...t};for(const o in t){const r=e[o],c=t[o];/^on[A-Z]/.test(o)?r&&c?n[o]=(...s)=>{const d=c(...s);return r(...s),d}:r&&(n[o]=r):o==="style"?n[o]={...r,...c}:o==="className"&&(n[o]=[r,c].filter(Boolean).join(" "))}return{...e,...n}}function Ie(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Se(e){const t=e+"CollectionProvider",[n,o]=U(t),[r,c]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=x=>{const{scope:h,children:y}=x,m=v.useRef(null),b=v.useRef(new Map).current;return l.jsx(r,{scope:h,itemMap:b,collectionRef:m,children:y})};a.displayName=t;const s=e+"CollectionSlot",d=L(s),u=v.forwardRef((x,h)=>{const{scope:y,children:m}=x,b=c(s,y),N=P(h,b.collectionRef);return l.jsx(d,{ref:N,children:m})});u.displayName=s;const p=e+"CollectionItemSlot",f="data-radix-collection-item",C=L(p),g=v.forwardRef((x,h)=>{const{scope:y,children:m,...b}=x,N=v.useRef(null),S=P(h,N),I=c(p,y);return v.useEffect(()=>(I.itemMap.set(N,{ref:N,...b}),()=>void I.itemMap.delete(N))),l.jsx(C,{[f]:"",ref:S,children:m})});g.displayName=p;function A(x){const h=c(e+"CollectionConsumer",x);return v.useCallback(()=>{const m=h.collectionRef.current;if(!m)return[];const b=Array.from(m.querySelectorAll(`[${f}]`));return Array.from(h.itemMap.values()).sort((I,D)=>b.indexOf(I.ref.current)-b.indexOf(D.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:a,Slot:u,ItemSlot:g},A,o]}function J(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}var w=globalThis?.document?i.useLayoutEffect:()=>{},Pe=i[" useInsertionEffect ".trim().toString()]||w;function F({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,c,a]=we({defaultProp:t,onChange:n}),s=e!==void 0,d=s?e:r;{const p=i.useRef(e!==void 0);i.useEffect(()=>{const f=p.current;f!==s&&console.warn(`${o} is changing from ${f?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=s},[s,o])}const u=i.useCallback(p=>{if(s){const f=Ee(p)?p(e):p;f!==e&&a.current?.(f)}else c(p)},[s,e,c,a]);return[d,u]}function we({defaultProp:e,onChange:t}){const[n,o]=i.useState(e),r=i.useRef(n),c=i.useRef(t);return Pe(()=>{c.current=t},[t]),i.useEffect(()=>{r.current!==n&&(c.current?.(n),r.current=n)},[n,r]),[n,o,c]}function Ee(e){return typeof e=="function"}var _e=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],_=_e.reduce((e,t)=>{const n=L(`Primitive.${t}`),o=i.forwardRef((r,c)=>{const{asChild:a,...s}=r,d=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(d,{...s,ref:c})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function je(e,t){return i.useReducer((n,o)=>t[n][o]??n,e)}var Q=e=>{const{present:t,children:n}=e,o=Oe(t),r=typeof n=="function"?n({present:o.isPresent}):i.Children.only(n),c=P(o.ref,Me(r));return typeof n=="function"||o.isPresent?i.cloneElement(r,{ref:c}):null};Q.displayName="Presence";function Oe(e){const[t,n]=i.useState(),o=i.useRef(null),r=i.useRef(e),c=i.useRef("none"),a=e?"mounted":"unmounted",[s,d]=je(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=j(o.current);c.current=s==="mounted"?u:"none"},[s]),w(()=>{const u=o.current,p=r.current;if(p!==e){const C=c.current,g=j(u);e?d("MOUNT"):g==="none"||u?.display==="none"?d("UNMOUNT"):d(p&&C!==g?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,d]),w(()=>{if(t){let u;const p=t.ownerDocument.defaultView??window,f=g=>{const x=j(o.current).includes(CSS.escape(g.animationName));if(g.target===t&&x&&(d("ANIMATION_END"),!r.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",u=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},C=g=>{g.target===t&&(c.current=j(o.current))};return t.addEventListener("animationstart",C),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{p.clearTimeout(u),t.removeEventListener("animationstart",C),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(u=>{o.current=u?getComputedStyle(u):null,n(u)},[])}}function j(e){return e?.animationName||"none"}function Me(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Te=i[" useId ".trim().toString()]||(()=>{}),ke=0;function X(e){const[t,n]=i.useState(Te());return w(()=>{n(o=>o??String(ke++))},[e]),t?`radix-${t}`:""}var M="Collapsible",[De,ee]=U(M),[$e,W]=De(M),te=i.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:o,defaultOpen:r,disabled:c,onOpenChange:a,...s}=e,[d,u]=F({prop:o,defaultProp:r??!1,onChange:a,caller:M});return l.jsx($e,{scope:n,disabled:c,contentId:X(),open:d,onOpenToggle:i.useCallback(()=>u(p=>!p),[u]),children:l.jsx(_.div,{"data-state":B(d),"data-disabled":c?"":void 0,...s,ref:t})})});te.displayName=M;var ne="CollapsibleTrigger",oe=i.forwardRef((e,t)=>{const{__scopeCollapsible:n,...o}=e,r=W(ne,n);return l.jsx(_.button,{type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":B(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...o,ref:t,onClick:J(e.onClick,r.onOpenToggle)})});oe.displayName=ne;var H="CollapsibleContent",re=i.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=W(H,e.__scopeCollapsible);return l.jsx(Q,{present:n||r.open,children:({present:c})=>l.jsx(Le,{...o,ref:t,present:c})})});re.displayName=H;var Le=i.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:o,children:r,...c}=e,a=W(H,n),[s,d]=i.useState(o),u=i.useRef(null),p=P(t,u),f=i.useRef(0),C=f.current,g=i.useRef(0),A=g.current,x=a.open||s,h=i.useRef(x),y=i.useRef(void 0);return i.useEffect(()=>{const m=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(m)},[]),w(()=>{const m=u.current;if(m){y.current=y.current||{transitionDuration:m.style.transitionDuration,animationName:m.style.animationName},m.style.transitionDuration="0s",m.style.animationName="none";const b=m.getBoundingClientRect();f.current=b.height,g.current=b.width,h.current||(m.style.transitionDuration=y.current.transitionDuration,m.style.animationName=y.current.animationName),d(o)}},[a.open,o]),l.jsx(_.div,{"data-state":B(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!x,...c,ref:p,style:{"--radix-collapsible-content-height":C?`${C}px`:void 0,"--radix-collapsible-content-width":A?`${A}px`:void 0,...e.style},children:x&&r})});function B(e){return e?"open":"closed"}var Ve=te,Ue=oe,Fe=re,We=i.createContext(void 0);function He(e){const t=i.useContext(We);return e||t||"ltr"}var R="Accordion",Be=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[q,qe,Ge]=Se(R),[T]=U(R,[Ge,ee]),G=ee(),ce=v.forwardRef((e,t)=>{const{type:n,...o}=e,r=o,c=o;return l.jsx(q.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?l.jsx(Ze,{...c,ref:t}):l.jsx(Ye,{...r,ref:t})})});ce.displayName=R;var[ie,Ke]=T(R),[se,ze]=T(R,{collapsible:!1}),Ye=v.forwardRef((e,t)=>{const{value:n,defaultValue:o,onValueChange:r=()=>{},collapsible:c=!1,...a}=e,[s,d]=F({prop:n,defaultProp:o??"",onChange:r,caller:R});return l.jsx(ie,{scope:e.__scopeAccordion,value:v.useMemo(()=>s?[s]:[],[s]),onItemOpen:d,onItemClose:v.useCallback(()=>c&&d(""),[c,d]),children:l.jsx(se,{scope:e.__scopeAccordion,collapsible:c,children:l.jsx(ae,{...a,ref:t})})})}),Ze=v.forwardRef((e,t)=>{const{value:n,defaultValue:o,onValueChange:r=()=>{},...c}=e,[a,s]=F({prop:n,defaultProp:o??[],onChange:r,caller:R}),d=v.useCallback(p=>s((f=[])=>[...f,p]),[s]),u=v.useCallback(p=>s((f=[])=>f.filter(C=>C!==p)),[s]);return l.jsx(ie,{scope:e.__scopeAccordion,value:a,onItemOpen:d,onItemClose:u,children:l.jsx(se,{scope:e.__scopeAccordion,collapsible:!0,children:l.jsx(ae,{...c,ref:t})})})}),[Je,k]=T(R),ae=v.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:o,dir:r,orientation:c="vertical",...a}=e,s=v.useRef(null),d=P(s,t),u=qe(n),f=He(r)==="ltr",C=J(e.onKeyDown,g=>{if(!Be.includes(g.key))return;const A=g.target,x=u().filter($=>!$.ref.current?.disabled),h=x.findIndex($=>$.ref.current===A),y=x.length;if(h===-1)return;g.preventDefault();let m=h;const b=0,N=y-1,S=()=>{m=h+1,m>N&&(m=b)},I=()=>{m=h-1,m<b&&(m=N)};switch(g.key){case"Home":m=b;break;case"End":m=N;break;case"ArrowRight":c==="horizontal"&&(f?S():I());break;case"ArrowDown":c==="vertical"&&S();break;case"ArrowLeft":c==="horizontal"&&(f?I():S());break;case"ArrowUp":c==="vertical"&&I();break}const D=m%y;x[D].ref.current?.focus()});return l.jsx(Je,{scope:n,disabled:o,direction:r,orientation:c,children:l.jsx(q.Slot,{scope:n,children:l.jsx(_.div,{...a,"data-orientation":c,ref:d,onKeyDown:o?void 0:C})})})}),O="AccordionItem",[Qe,K]=T(O),le=v.forwardRef((e,t)=>{const{__scopeAccordion:n,value:o,...r}=e,c=k(O,n),a=Ke(O,n),s=G(n),d=X(),u=o&&a.value.includes(o)||!1,p=c.disabled||e.disabled;return l.jsx(Qe,{scope:n,open:u,disabled:p,triggerId:d,children:l.jsx(Ve,{"data-orientation":c.orientation,"data-state":ve(u),...s,...r,ref:t,disabled:p,open:u,onOpenChange:f=>{f?a.onItemOpen(o):a.onItemClose(o)}})})});le.displayName=O;var de="AccordionHeader",ue=v.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=k(R,n),c=K(de,n);return l.jsx(_.h3,{"data-orientation":r.orientation,"data-state":ve(c.open),"data-disabled":c.disabled?"":void 0,...o,ref:t})});ue.displayName=de;var V="AccordionTrigger",fe=v.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=k(R,n),c=K(V,n),a=ze(V,n),s=G(n);return l.jsx(q.ItemSlot,{scope:n,children:l.jsx(Ue,{"aria-disabled":c.open&&!a.collapsible||void 0,"data-orientation":r.orientation,id:c.triggerId,...s,...o,ref:t})})});fe.displayName=V;var pe="AccordionContent",me=v.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=k(R,n),c=K(pe,n),a=G(n);return l.jsx(Fe,{role:"region","aria-labelledby":c.triggerId,"data-orientation":r.orientation,...a,...o,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});me.displayName=pe;function ve(e){return e?"open":"closed"}var Xe=ce,et=le,tt=ue,nt=fe,ot=me;function ge(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=ge(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function E(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=ge(e))&&(o&&(o+=" "),o+=t);return o}function rt({children:e,className:t,...n}){const{colorScheme:o}=z();return l.jsx(et,{className:E("focus:outline-2 has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-[var(--accordion-focus,hsl(var(--primary)))] has-[:focus-visible]:ring-offset-4",{light:"ring-offset-[var(--acordion-light-offset,hsl(var(--background)))]",dark:"ring-offset-[var(--acordion-dark-offset,hsl(var(--foreground)))]"}[o],t),"data-slot":"accordion-item",...n,children:e})}function ct({...e}){return l.jsx(Xe,{"data-slot":"accordion-root",...e})}function it({children:e,...t}){const{colorScheme:n}=z(),[o,r]=v.useState(!1);return v.useEffect(()=>{r(!0)},[]),l.jsx(ot,{className:E("overflow-hidden",o&&"data-[state=closed]:animate-collapse data-[state=open]:animate-expand"),...t,children:l.jsx("div",{className:E("py-3 text-base font-[var(--accordion-content-font-family,var(--font-family-body))] font-light leading-normal",{light:"text-[var(--accordion-light-content-text,hsl(var(--foreground)))]",dark:"text-[var(--accordion-dark-content-text,hsl(var(--background)))]"}[n]),children:e})})}function st({children:e,...t}){const{colorScheme:n}=z();return l.jsx(tt,{children:l.jsxs(nt,{className:"group flex w-full cursor-pointer items-start gap-8 border-none py-3 text-start focus:outline-none @md:py-4","data-slot":"accordion-trigger",...t,children:[l.jsx("div",{className:E("flex-1 select-none text-sm font-[var(--accordion-title-font-family,var(--font-family-mono))] font-normal uppercase transition-colors duration-300 ease-out",{light:"text-[var(--accordion-light-title-text,hsl(var(--contrast-400)))] group-hover:text-[var(--accordion-light-title-text-hover,hsl(var(--foreground)))]",dark:"text-[var(--accordion-dark-title-text,hsl(var(--contrast-200)))] group-hover:text-[var(--accordion-dark-title-text-hover,hsl(var(--background)))]"}[n]),children:e}),l.jsxs("svg",{className:E("mt-1 shrink-0 [&>line]:origin-center [&>line]:transition [&>line]:duration-300 [&>line]:ease-out",{light:"stroke-[var(--accordion-light-title-icon,hsl(var(--contrast-500)))] group-hover:stroke-[var(--accordion-light-title-icon-hover,hsl(var(--foreground)))]",dark:"stroke-[var(--accordion-dark-title-icon,hsl(var(--contrast-200)))] group-hover:stroke-[var(--accordion-dark-title-icon-hover,hsl(var(--background)))]"}[n]),"data-slot":"accordion-chevron",viewBox:"0 0 10 10",width:16,children:[l.jsx("line",{className:"group-data-[state=open]:-translate-y-[3px] group-data-[state=open]:-rotate-90",strokeLinecap:"round",x1:2,x2:5,y1:2,y2:5}),l.jsx("line",{className:"group-data-[state=open]:-translate-y-[3px] group-data-[state=open]:rotate-90",strokeLinecap:"round",x1:8,x2:5,y1:2,y2:5})]})]})})}const he=v.createContext(void 0);function at({children:e,colorScheme:t="light"}){return l.jsx(he,{value:{colorScheme:t},children:e})}function z(){const e=v.useContext(he);if(e===void 0)throw new Error("useAccordionContext must be used within an AccordionProvider");return e}exports.Accordion=Ce;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react/jsx-runtime"),A=require("react");require("react-dom");function ko(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const m=ko(A);function Co({colorScheme:e="light",items:o,...t}){return g.jsx(qt,{colorScheme:e,children:g.jsx(Wt,{...t,children:o.map((r,n)=>g.jsxs(Ut,{value:r.title,children:[g.jsx(Ht,{children:r.title}),g.jsx(Bt,{children:r.content})]},n))})})}function ye(e,o=[]){let t=[];function r(s,a){const l=m.createContext(a),i=t.length;t=[...t,a];const u=h=>{const{scope:R,children:w,...C}=h,y=R?.[e]?.[i]||l,k=m.useMemo(()=>C,Object.values(C));return g.jsx(y.Provider,{value:k,children:w})};u.displayName=s+"Provider";function p(h,R){const w=R?.[e]?.[i]||l,C=m.useContext(w);if(C)return C;if(a!==void 0)return a;throw new Error(`\`${h}\` must be used within \`${s}\``)}return[u,p]}const n=()=>{const s=t.map(a=>m.createContext(a));return function(l){const i=l?.[e]||s;return m.useMemo(()=>({[`__scope${e}`]:{...l,[e]:i}}),[l,i])}};return n.scopeName=e,[r,Ao(n,...o)]}function Ao(...e){const o=e[0];if(e.length===1)return o;const t=()=>{const r=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(s){const a=r.reduce((l,{useScope:i,scopeName:u})=>{const h=i(s)[`__scope${u}`];return{...l,...h}},{});return m.useMemo(()=>({[`__scope${o.scopeName}`]:a}),[a])}};return t.scopeName=o.scopeName,t}function De(e,o){if(typeof e=="function")return e(o);e!=null&&(e.current=o)}function Ue(...e){return o=>{let t=!1;const r=e.map(n=>{const s=De(n,o);return!t&&typeof s=="function"&&(t=!0),s});if(t)return()=>{for(let n=0;n<r.length;n++){const s=r[n];typeof s=="function"?s():De(e[n],null)}}}}function J(...e){return m.useCallback(Ue(...e),e)}function ge(e){const o=Ro(e),t=m.forwardRef((r,n)=>{const{children:s,...a}=r,l=m.Children.toArray(s),i=l.find(Io);if(i){const u=i.props.children,p=l.map(h=>h===i?m.Children.count(u)>1?m.Children.only(null):m.isValidElement(u)?u.props.children:null:h);return g.jsx(o,{...a,ref:n,children:m.isValidElement(u)?m.cloneElement(u,void 0,p):null})}return g.jsx(o,{...a,ref:n,children:s})});return t.displayName=`${e}.Slot`,t}function Ro(e){const o=m.forwardRef((t,r)=>{const{children:n,...s}=t;if(m.isValidElement(n)){const a=Po(n),l=No(s,n.props);return n.type!==m.Fragment&&(l.ref=r?Ue(r,a):a),m.cloneElement(n,l)}return m.Children.count(n)>1?m.Children.only(null):null});return o.displayName=`${e}.SlotClone`,o}var So=Symbol("radix.slottable");function Io(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===So}function No(e,o){const t={...o};for(const r in o){const n=e[r],s=o[r];/^on[A-Z]/.test(r)?n&&s?t[r]=(...l)=>{const i=s(...l);return n(...l),i}:n&&(t[r]=n):r==="style"?t[r]={...n,...s}:r==="className"&&(t[r]=[n,s].filter(Boolean).join(" "))}return{...e,...t}}function Po(e){let o=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=o&&"isReactWarning"in o&&o.isReactWarning;return t?e.ref:(o=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=o&&"isReactWarning"in o&&o.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}function Mo(e){const o=e+"CollectionProvider",[t,r]=ye(o),[n,s]=t(o,{collectionRef:{current:null},itemMap:new Map}),a=y=>{const{scope:k,children:S}=y,v=A.useRef(null),I=A.useRef(new Map).current;return g.jsx(n,{scope:k,itemMap:I,collectionRef:v,children:S})};a.displayName=o;const l=e+"CollectionSlot",i=ge(l),u=A.forwardRef((y,k)=>{const{scope:S,children:v}=y,I=s(l,S),P=J(k,I.collectionRef);return g.jsx(i,{ref:P,children:v})});u.displayName=l;const p=e+"CollectionItemSlot",h="data-radix-collection-item",R=ge(p),w=A.forwardRef((y,k)=>{const{scope:S,children:v,...I}=y,P=A.useRef(null),_=J(k,P),E=s(p,S);return A.useEffect(()=>(E.itemMap.set(P,{ref:P,...I}),()=>void E.itemMap.delete(P))),g.jsx(R,{[h]:"",ref:_,children:v})});w.displayName=p;function C(y){const k=s(e+"CollectionConsumer",y);return A.useCallback(()=>{const v=k.collectionRef.current;if(!v)return[];const I=Array.from(v.querySelectorAll(`[${h}]`));return Array.from(k.itemMap.values()).sort((E,z)=>I.indexOf(E.ref.current)-I.indexOf(z.ref.current))},[k.collectionRef,k.itemMap])}return[{Provider:a,Slot:u,ItemSlot:w},C,r]}function We(e,o,{checkForDefaultPrevented:t=!0}={}){return function(n){if(e?.(n),t===!1||!n.defaultPrevented)return o?.(n)}}var X=globalThis?.document?m.useLayoutEffect:()=>{},Eo=m[" useInsertionEffect ".trim().toString()]||X;function we({prop:e,defaultProp:o,onChange:t=()=>{},caller:r}){const[n,s,a]=jo({defaultProp:o,onChange:t}),l=e!==void 0,i=l?e:n;{const p=m.useRef(e!==void 0);m.useEffect(()=>{const h=p.current;h!==l&&console.warn(`${r} is changing from ${h?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=l},[l,r])}const u=m.useCallback(p=>{if(l){const h=_o(p)?p(e):p;h!==e&&a.current?.(h)}else s(p)},[l,e,s,a]);return[i,u]}function jo({defaultProp:e,onChange:o}){const[t,r]=m.useState(e),n=m.useRef(t),s=m.useRef(o);return Eo(()=>{s.current=o},[o]),m.useEffect(()=>{n.current!==t&&(s.current?.(t),n.current=t)},[t,n]),[t,r,s]}function _o(e){return typeof e=="function"}var To=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Y=To.reduce((e,o)=>{const t=ge(`Primitive.${o}`),r=m.forwardRef((n,s)=>{const{asChild:a,...l}=n,i=a?t:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(i,{...l,ref:s})});return r.displayName=`Primitive.${o}`,{...e,[o]:r}},{});function Oo(e,o){return m.useReducer((t,r)=>o[t][r]??t,e)}var Be=e=>{const{present:o,children:t}=e,r=zo(o),n=typeof t=="function"?t({present:r.isPresent}):m.Children.only(t),s=J(r.ref,Lo(n));return typeof t=="function"||r.isPresent?m.cloneElement(n,{ref:s}):null};Be.displayName="Presence";function zo(e){const[o,t]=m.useState(),r=m.useRef(null),n=m.useRef(e),s=m.useRef("none"),a=e?"mounted":"unmounted",[l,i]=Oo(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const u=re(r.current);s.current=l==="mounted"?u:"none"},[l]),X(()=>{const u=r.current,p=n.current;if(p!==e){const R=s.current,w=re(u);e?i("MOUNT"):w==="none"||u?.display==="none"?i("UNMOUNT"):i(p&&R!==w?"ANIMATION_OUT":"UNMOUNT"),n.current=e}},[e,i]),X(()=>{if(o){let u;const p=o.ownerDocument.defaultView??window,h=w=>{const y=re(r.current).includes(CSS.escape(w.animationName));if(w.target===o&&y&&(i("ANIMATION_END"),!n.current)){const k=o.style.animationFillMode;o.style.animationFillMode="forwards",u=p.setTimeout(()=>{o.style.animationFillMode==="forwards"&&(o.style.animationFillMode=k)})}},R=w=>{w.target===o&&(s.current=re(r.current))};return o.addEventListener("animationstart",R),o.addEventListener("animationcancel",h),o.addEventListener("animationend",h),()=>{p.clearTimeout(u),o.removeEventListener("animationstart",R),o.removeEventListener("animationcancel",h),o.removeEventListener("animationend",h)}}else i("ANIMATION_END")},[o,i]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:m.useCallback(u=>{r.current=u?getComputedStyle(u):null,t(u)},[])}}function re(e){return e?.animationName||"none"}function Lo(e){let o=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=o&&"isReactWarning"in o&&o.isReactWarning;return t?e.ref:(o=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=o&&"isReactWarning"in o&&o.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}var Do=m[" useId ".trim().toString()]||(()=>{}),Go=0;function He(e){const[o,t]=m.useState(Do());return X(()=>{t(r=>r??String(Go++))},[e]),o?`radix-${o}`:""}var ie="Collapsible",[$o,qe]=ye(ie),[Vo,ke]=$o(ie),Ke=m.forwardRef((e,o)=>{const{__scopeCollapsible:t,open:r,defaultOpen:n,disabled:s,onOpenChange:a,...l}=e,[i,u]=we({prop:r,defaultProp:n??!1,onChange:a,caller:ie});return g.jsx(Vo,{scope:t,disabled:s,contentId:He(),open:i,onOpenToggle:m.useCallback(()=>u(p=>!p),[u]),children:g.jsx(Y.div,{"data-state":Ae(i),"data-disabled":s?"":void 0,...l,ref:o})})});Ke.displayName=ie;var Je="CollapsibleTrigger",Xe=m.forwardRef((e,o)=>{const{__scopeCollapsible:t,...r}=e,n=ke(Je,t);return g.jsx(Y.button,{type:"button","aria-controls":n.contentId,"aria-expanded":n.open||!1,"data-state":Ae(n.open),"data-disabled":n.disabled?"":void 0,disabled:n.disabled,...r,ref:o,onClick:We(e.onClick,n.onOpenToggle)})});Xe.displayName=Je;var Ce="CollapsibleContent",Ye=m.forwardRef((e,o)=>{const{forceMount:t,...r}=e,n=ke(Ce,e.__scopeCollapsible);return g.jsx(Be,{present:t||n.open,children:({present:s})=>g.jsx(Fo,{...r,ref:o,present:s})})});Ye.displayName=Ce;var Fo=m.forwardRef((e,o)=>{const{__scopeCollapsible:t,present:r,children:n,...s}=e,a=ke(Ce,t),[l,i]=m.useState(r),u=m.useRef(null),p=J(o,u),h=m.useRef(0),R=h.current,w=m.useRef(0),C=w.current,y=a.open||l,k=m.useRef(y),S=m.useRef(void 0);return m.useEffect(()=>{const v=requestAnimationFrame(()=>k.current=!1);return()=>cancelAnimationFrame(v)},[]),X(()=>{const v=u.current;if(v){S.current=S.current||{transitionDuration:v.style.transitionDuration,animationName:v.style.animationName},v.style.transitionDuration="0s",v.style.animationName="none";const I=v.getBoundingClientRect();h.current=I.height,w.current=I.width,k.current||(v.style.transitionDuration=S.current.transitionDuration,v.style.animationName=S.current.animationName),i(r)}},[a.open,r]),g.jsx(Y.div,{"data-state":Ae(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!y,...s,ref:p,style:{"--radix-collapsible-content-height":R?`${R}px`:void 0,"--radix-collapsible-content-width":C?`${C}px`:void 0,...e.style},children:y&&n})});function Ae(e){return e?"open":"closed"}var Uo=Ke,Wo=Xe,Bo=Ye,Ho=m.createContext(void 0);function qo(e){const o=m.useContext(Ho);return e||o||"ltr"}var O="Accordion",Ko=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Re,Jo,Xo]=Mo(O),[le]=ye(O,[Xo,qe]),Se=qe(),Ze=A.forwardRef((e,o)=>{const{type:t,...r}=e,n=r,s=r;return g.jsx(Re.Provider,{scope:e.__scopeAccordion,children:t==="multiple"?g.jsx(et,{...s,ref:o}):g.jsx(Qo,{...n,ref:o})})});Ze.displayName=O;var[Qe,Yo]=le(O),[eo,Zo]=le(O,{collapsible:!1}),Qo=A.forwardRef((e,o)=>{const{value:t,defaultValue:r,onValueChange:n=()=>{},collapsible:s=!1,...a}=e,[l,i]=we({prop:t,defaultProp:r??"",onChange:n,caller:O});return g.jsx(Qe,{scope:e.__scopeAccordion,value:A.useMemo(()=>l?[l]:[],[l]),onItemOpen:i,onItemClose:A.useCallback(()=>s&&i(""),[s,i]),children:g.jsx(eo,{scope:e.__scopeAccordion,collapsible:s,children:g.jsx(oo,{...a,ref:o})})})}),et=A.forwardRef((e,o)=>{const{value:t,defaultValue:r,onValueChange:n=()=>{},...s}=e,[a,l]=we({prop:t,defaultProp:r??[],onChange:n,caller:O}),i=A.useCallback(p=>l((h=[])=>[...h,p]),[l]),u=A.useCallback(p=>l((h=[])=>h.filter(R=>R!==p)),[l]);return g.jsx(Qe,{scope:e.__scopeAccordion,value:a,onItemOpen:i,onItemClose:u,children:g.jsx(eo,{scope:e.__scopeAccordion,collapsible:!0,children:g.jsx(oo,{...s,ref:o})})})}),[ot,ce]=le(O),oo=A.forwardRef((e,o)=>{const{__scopeAccordion:t,disabled:r,dir:n,orientation:s="vertical",...a}=e,l=A.useRef(null),i=J(l,o),u=Jo(t),h=qo(n)==="ltr",R=We(e.onKeyDown,w=>{if(!Ko.includes(w.key))return;const C=w.target,y=u().filter(b=>!b.ref.current?.disabled),k=y.findIndex(b=>b.ref.current===C),S=y.length;if(k===-1)return;w.preventDefault();let v=k;const I=0,P=S-1,_=()=>{v=k+1,v>P&&(v=I)},E=()=>{v=k-1,v<I&&(v=P)};switch(w.key){case"Home":v=I;break;case"End":v=P;break;case"ArrowRight":s==="horizontal"&&(h?_():E());break;case"ArrowDown":s==="vertical"&&_();break;case"ArrowLeft":s==="horizontal"&&(h?E():_());break;case"ArrowUp":s==="vertical"&&E();break}const z=v%S;y[z].ref.current?.focus()});return g.jsx(ot,{scope:t,disabled:r,direction:n,orientation:s,children:g.jsx(Re.Slot,{scope:t,children:g.jsx(Y.div,{...a,"data-orientation":s,ref:i,onKeyDown:r?void 0:R})})})}),ae="AccordionItem",[tt,Ie]=le(ae),to=A.forwardRef((e,o)=>{const{__scopeAccordion:t,value:r,...n}=e,s=ce(ae,t),a=Yo(ae,t),l=Se(t),i=He(),u=r&&a.value.includes(r)||!1,p=s.disabled||e.disabled;return g.jsx(tt,{scope:t,open:u,disabled:p,triggerId:i,children:g.jsx(Uo,{"data-orientation":s.orientation,"data-state":lo(u),...l,...n,ref:o,disabled:p,open:u,onOpenChange:h=>{h?a.onItemOpen(r):a.onItemClose(r)}})})});to.displayName=ae;var ro="AccordionHeader",no=A.forwardRef((e,o)=>{const{__scopeAccordion:t,...r}=e,n=ce(O,t),s=Ie(ro,t);return g.jsx(Y.h3,{"data-orientation":n.orientation,"data-state":lo(s.open),"data-disabled":s.disabled?"":void 0,...r,ref:o})});no.displayName=ro;var be="AccordionTrigger",so=A.forwardRef((e,o)=>{const{__scopeAccordion:t,...r}=e,n=ce(O,t),s=Ie(be,t),a=Zo(be,t),l=Se(t);return g.jsx(Re.ItemSlot,{scope:t,children:g.jsx(Wo,{"aria-disabled":s.open&&!a.collapsible||void 0,"data-orientation":n.orientation,id:s.triggerId,...l,...r,ref:o})})});so.displayName=be;var ao="AccordionContent",io=A.forwardRef((e,o)=>{const{__scopeAccordion:t,...r}=e,n=ce(O,t),s=Ie(ao,t),a=Se(t);return g.jsx(Bo,{role:"region","aria-labelledby":s.triggerId,"data-orientation":n.orientation,...a,...r,ref:o,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});io.displayName=ao;function lo(e){return e?"open":"closed"}var rt=Ze,nt=to,st=no,at=so,it=io;function co(e){var o,t,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(o=0;o<n;o++)e[o]&&(t=co(e[o]))&&(r&&(r+=" "),r+=t)}else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function lt(){for(var e,o,t=0,r="",n=arguments.length;t<n;t++)(e=arguments[t])&&(o=co(e))&&(r&&(r+=" "),r+=o);return r}const Ne="-",ct=e=>{const o=ut(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const l=a.split(Ne);return l[0]===""&&l.length!==1&&l.shift(),uo(l,o)||dt(a)},getConflictingClassGroupIds:(a,l)=>{const i=t[a]||[];return l&&r[a]?[...i,...r[a]]:i}}},uo=(e,o)=>{if(e.length===0)return o.classGroupId;const t=e[0],r=o.nextPart.get(t),n=r?uo(e.slice(1),r):void 0;if(n)return n;if(o.validators.length===0)return;const s=e.join(Ne);return o.validators.find(({validator:a})=>a(s))?.classGroupId},Ge=/^\[(.+)\]$/,dt=e=>{if(Ge.test(e)){const o=Ge.exec(e)[1],t=o?.substring(0,o.indexOf(":"));if(t)return"arbitrary.."+t}},ut=e=>{const{theme:o,classGroups:t}=e,r={nextPart:new Map,validators:[]};for(const n in t)he(t[n],r,n,o);return r},he=(e,o,t,r)=>{e.forEach(n=>{if(typeof n=="string"){const s=n===""?o:$e(o,n);s.classGroupId=t;return}if(typeof n=="function"){if(mt(n)){he(n(r),o,t,r);return}o.validators.push({validator:n,classGroupId:t});return}Object.entries(n).forEach(([s,a])=>{he(a,$e(o,s),t,r)})})},$e=(e,o)=>{let t=e;return o.split(Ne).forEach(r=>{t.nextPart.has(r)||t.nextPart.set(r,{nextPart:new Map,validators:[]}),t=t.nextPart.get(r)}),t},mt=e=>e.isThemeGetter,pt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let o=0,t=new Map,r=new Map;const n=(s,a)=>{t.set(s,a),o++,o>e&&(o=0,r=t,t=new Map)};return{get(s){let a=t.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return n(s,a),a},set(s,a){t.has(s)?t.set(s,a):n(s,a)}}},xe="!",ve=":",ft=ve.length,gt=e=>{const{prefix:o,experimentalParseClassName:t}=e;let r=n=>{const s=[];let a=0,l=0,i=0,u;for(let C=0;C<n.length;C++){let y=n[C];if(a===0&&l===0){if(y===ve){s.push(n.slice(i,C)),i=C+ft;continue}if(y==="/"){u=C;continue}}y==="["?a++:y==="]"?a--:y==="("?l++:y===")"&&l--}const p=s.length===0?n:n.substring(i),h=bt(p),R=h!==p,w=u&&u>i?u-i:void 0;return{modifiers:s,hasImportantModifier:R,baseClassName:h,maybePostfixModifierPosition:w}};if(o){const n=o+ve,s=r;r=a=>a.startsWith(n)?s(a.substring(n.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:a,maybePostfixModifierPosition:void 0}}if(t){const n=r;r=s=>t({className:s,parseClassName:n})}return r},bt=e=>e.endsWith(xe)?e.substring(0,e.length-1):e.startsWith(xe)?e.substring(1):e,ht=e=>{const o=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const n=[];let s=[];return r.forEach(a=>{a[0]==="["||o[a]?(n.push(...s.sort(),a),s=[]):s.push(a)}),n.push(...s.sort()),n}},xt=e=>({cache:pt(e.cacheSize),parseClassName:gt(e),sortModifiers:ht(e),...ct(e)}),vt=/\s+/,yt=(e,o)=>{const{parseClassName:t,getClassGroupId:r,getConflictingClassGroupIds:n,sortModifiers:s}=o,a=[],l=e.trim().split(vt);let i="";for(let u=l.length-1;u>=0;u-=1){const p=l[u],{isExternal:h,modifiers:R,hasImportantModifier:w,baseClassName:C,maybePostfixModifierPosition:y}=t(p);if(h){i=p+(i.length>0?" "+i:i);continue}let k=!!y,S=r(k?C.substring(0,y):C);if(!S){if(!k){i=p+(i.length>0?" "+i:i);continue}if(S=r(C),!S){i=p+(i.length>0?" "+i:i);continue}k=!1}const v=s(R).join(":"),I=w?v+xe:v,P=I+S;if(a.includes(P))continue;a.push(P);const _=n(S,k);for(let E=0;E<_.length;++E){const z=_[E];a.push(I+z)}i=p+(i.length>0?" "+i:i)}return i};function wt(){let e=0,o,t,r="";for(;e<arguments.length;)(o=arguments[e++])&&(t=mo(o))&&(r&&(r+=" "),r+=t);return r}const mo=e=>{if(typeof e=="string")return e;let o,t="";for(let r=0;r<e.length;r++)e[r]&&(o=mo(e[r]))&&(t&&(t+=" "),t+=o);return t};function kt(e,...o){let t,r,n,s=a;function a(i){const u=o.reduce((p,h)=>h(p),e());return t=xt(u),r=t.cache.get,n=t.cache.set,s=l,l(i)}function l(i){const u=r(i);if(u)return u;const p=yt(i,t);return n(i,p),p}return function(){return s(wt.apply(null,arguments))}}const N=e=>{const o=t=>t[e]||[];return o.isThemeGetter=!0,o},po=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,fo=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ct=/^\d+\/\d+$/,At=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Rt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,St=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,It=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Nt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,W=e=>Ct.test(e),x=e=>!!e&&!Number.isNaN(Number(e)),$=e=>!!e&&Number.isInteger(Number(e)),pe=e=>e.endsWith("%")&&x(e.slice(0,-1)),G=e=>At.test(e),Pt=()=>!0,Mt=e=>Rt.test(e)&&!St.test(e),go=()=>!1,Et=e=>It.test(e),jt=e=>Nt.test(e),_t=e=>!c(e)&&!d(e),Tt=e=>H(e,xo,go),c=e=>po.test(e),F=e=>H(e,vo,Mt),fe=e=>H(e,Gt,x),Ve=e=>H(e,bo,go),Ot=e=>H(e,ho,jt),ne=e=>H(e,yo,Et),d=e=>fo.test(e),K=e=>q(e,vo),zt=e=>q(e,$t),Fe=e=>q(e,bo),Lt=e=>q(e,xo),Dt=e=>q(e,ho),se=e=>q(e,yo,!0),H=(e,o,t)=>{const r=po.exec(e);return r?r[1]?o(r[1]):t(r[2]):!1},q=(e,o,t=!1)=>{const r=fo.exec(e);return r?r[1]?o(r[1]):t:!1},bo=e=>e==="position"||e==="percentage",ho=e=>e==="image"||e==="url",xo=e=>e==="length"||e==="size"||e==="bg-size",vo=e=>e==="length",Gt=e=>e==="number",$t=e=>e==="family-name",yo=e=>e==="shadow",Vt=()=>{const e=N("color"),o=N("font"),t=N("text"),r=N("font-weight"),n=N("tracking"),s=N("leading"),a=N("breakpoint"),l=N("container"),i=N("spacing"),u=N("radius"),p=N("shadow"),h=N("inset-shadow"),R=N("text-shadow"),w=N("drop-shadow"),C=N("blur"),y=N("perspective"),k=N("aspect"),S=N("ease"),v=N("animate"),I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],_=()=>[...P(),d,c],E=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto","contain","none"],b=()=>[d,c,i],L=()=>[W,"full","auto",...b()],Me=()=>[$,"none","subgrid",d,c],Ee=()=>["auto",{span:["full",$,d,c]},$,d,c],Z=()=>[$,"auto",d,c],je=()=>["auto","min","max","fr",d,c],de=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],U=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...b()],V=()=>[W,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...b()],f=()=>[e,d,c],_e=()=>[...P(),Fe,Ve,{position:[d,c]}],Te=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Oe=()=>["auto","cover","contain",Lt,Tt,{size:[d,c]}],ue=()=>[pe,K,F],j=()=>["","none","full",u,d,c],T=()=>["",x,K,F],Q=()=>["solid","dashed","dotted","double"],ze=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],M=()=>[x,pe,Fe,Ve],Le=()=>["","none",C,d,c],ee=()=>["none",x,d,c],oe=()=>["none",x,d,c],me=()=>[x,d,c],te=()=>[W,"full",...b()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[G],breakpoint:[G],color:[Pt],container:[G],"drop-shadow":[G],ease:["in","out","in-out"],font:[_t],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[G],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[G],shadow:[G],spacing:["px",x],text:[G],"text-shadow":[G],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",W,c,d,k]}],container:["container"],columns:[{columns:[x,c,d,l]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:_()}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{start:L()}],end:[{end:L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[$,"auto",d,c]}],basis:[{basis:[W,"full","auto",l,...b()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[x,W,"auto","initial","none",c]}],grow:[{grow:["",x,d,c]}],shrink:[{shrink:["",x,d,c]}],order:[{order:[$,"first","last","none",d,c]}],"grid-cols":[{"grid-cols":Me()}],"col-start-end":[{col:Ee()}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":Me()}],"row-start-end":[{row:Ee()}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":je()}],"auto-rows":[{"auto-rows":je()}],gap:[{gap:b()}],"gap-x":[{"gap-x":b()}],"gap-y":[{"gap-y":b()}],"justify-content":[{justify:[...de(),"normal"]}],"justify-items":[{"justify-items":[...U(),"normal"]}],"justify-self":[{"justify-self":["auto",...U()]}],"align-content":[{content:["normal",...de()]}],"align-items":[{items:[...U(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...U(),{baseline:["","last"]}]}],"place-content":[{"place-content":de()}],"place-items":[{"place-items":[...U(),"baseline"]}],"place-self":[{"place-self":["auto",...U()]}],p:[{p:b()}],px:[{px:b()}],py:[{py:b()}],ps:[{ps:b()}],pe:[{pe:b()}],pt:[{pt:b()}],pr:[{pr:b()}],pb:[{pb:b()}],pl:[{pl:b()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":b()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":b()}],"space-y-reverse":["space-y-reverse"],size:[{size:V()}],w:[{w:[l,"screen",...V()]}],"min-w":[{"min-w":[l,"screen","none",...V()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[a]},...V()]}],h:[{h:["screen","lh",...V()]}],"min-h":[{"min-h":["screen","lh","none",...V()]}],"max-h":[{"max-h":["screen","lh",...V()]}],"font-size":[{text:["base",t,K,F]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,d,fe]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",pe,c]}],"font-family":[{font:[zt,c,o]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,d,c]}],"line-clamp":[{"line-clamp":[x,"none",d,fe]}],leading:[{leading:[s,...b()]}],"list-image":[{"list-image":["none",d,c]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",d,c]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:f()}],"text-color":[{text:f()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:[x,"from-font","auto",d,F]}],"text-decoration-color":[{decoration:f()}],"underline-offset":[{"underline-offset":[x,"auto",d,c]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:b()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",d,c]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",d,c]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:_e()}],"bg-repeat":[{bg:Te()}],"bg-size":[{bg:Oe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$,d,c],radial:["",d,c],conic:[$,d,c]},Dt,Ot]}],"bg-color":[{bg:f()}],"gradient-from-pos":[{from:ue()}],"gradient-via-pos":[{via:ue()}],"gradient-to-pos":[{to:ue()}],"gradient-from":[{from:f()}],"gradient-via":[{via:f()}],"gradient-to":[{to:f()}],rounded:[{rounded:j()}],"rounded-s":[{"rounded-s":j()}],"rounded-e":[{"rounded-e":j()}],"rounded-t":[{"rounded-t":j()}],"rounded-r":[{"rounded-r":j()}],"rounded-b":[{"rounded-b":j()}],"rounded-l":[{"rounded-l":j()}],"rounded-ss":[{"rounded-ss":j()}],"rounded-se":[{"rounded-se":j()}],"rounded-ee":[{"rounded-ee":j()}],"rounded-es":[{"rounded-es":j()}],"rounded-tl":[{"rounded-tl":j()}],"rounded-tr":[{"rounded-tr":j()}],"rounded-br":[{"rounded-br":j()}],"rounded-bl":[{"rounded-bl":j()}],"border-w":[{border:T()}],"border-w-x":[{"border-x":T()}],"border-w-y":[{"border-y":T()}],"border-w-s":[{"border-s":T()}],"border-w-e":[{"border-e":T()}],"border-w-t":[{"border-t":T()}],"border-w-r":[{"border-r":T()}],"border-w-b":[{"border-b":T()}],"border-w-l":[{"border-l":T()}],"divide-x":[{"divide-x":T()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":T()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Q(),"hidden","none"]}],"divide-style":[{divide:[...Q(),"hidden","none"]}],"border-color":[{border:f()}],"border-color-x":[{"border-x":f()}],"border-color-y":[{"border-y":f()}],"border-color-s":[{"border-s":f()}],"border-color-e":[{"border-e":f()}],"border-color-t":[{"border-t":f()}],"border-color-r":[{"border-r":f()}],"border-color-b":[{"border-b":f()}],"border-color-l":[{"border-l":f()}],"divide-color":[{divide:f()}],"outline-style":[{outline:[...Q(),"none","hidden"]}],"outline-offset":[{"outline-offset":[x,d,c]}],"outline-w":[{outline:["",x,K,F]}],"outline-color":[{outline:f()}],shadow:[{shadow:["","none",p,se,ne]}],"shadow-color":[{shadow:f()}],"inset-shadow":[{"inset-shadow":["none",h,se,ne]}],"inset-shadow-color":[{"inset-shadow":f()}],"ring-w":[{ring:T()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:f()}],"ring-offset-w":[{"ring-offset":[x,F]}],"ring-offset-color":[{"ring-offset":f()}],"inset-ring-w":[{"inset-ring":T()}],"inset-ring-color":[{"inset-ring":f()}],"text-shadow":[{"text-shadow":["none",R,se,ne]}],"text-shadow-color":[{"text-shadow":f()}],opacity:[{opacity:[x,d,c]}],"mix-blend":[{"mix-blend":[...ze(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ze()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[x]}],"mask-image-linear-from-pos":[{"mask-linear-from":M()}],"mask-image-linear-to-pos":[{"mask-linear-to":M()}],"mask-image-linear-from-color":[{"mask-linear-from":f()}],"mask-image-linear-to-color":[{"mask-linear-to":f()}],"mask-image-t-from-pos":[{"mask-t-from":M()}],"mask-image-t-to-pos":[{"mask-t-to":M()}],"mask-image-t-from-color":[{"mask-t-from":f()}],"mask-image-t-to-color":[{"mask-t-to":f()}],"mask-image-r-from-pos":[{"mask-r-from":M()}],"mask-image-r-to-pos":[{"mask-r-to":M()}],"mask-image-r-from-color":[{"mask-r-from":f()}],"mask-image-r-to-color":[{"mask-r-to":f()}],"mask-image-b-from-pos":[{"mask-b-from":M()}],"mask-image-b-to-pos":[{"mask-b-to":M()}],"mask-image-b-from-color":[{"mask-b-from":f()}],"mask-image-b-to-color":[{"mask-b-to":f()}],"mask-image-l-from-pos":[{"mask-l-from":M()}],"mask-image-l-to-pos":[{"mask-l-to":M()}],"mask-image-l-from-color":[{"mask-l-from":f()}],"mask-image-l-to-color":[{"mask-l-to":f()}],"mask-image-x-from-pos":[{"mask-x-from":M()}],"mask-image-x-to-pos":[{"mask-x-to":M()}],"mask-image-x-from-color":[{"mask-x-from":f()}],"mask-image-x-to-color":[{"mask-x-to":f()}],"mask-image-y-from-pos":[{"mask-y-from":M()}],"mask-image-y-to-pos":[{"mask-y-to":M()}],"mask-image-y-from-color":[{"mask-y-from":f()}],"mask-image-y-to-color":[{"mask-y-to":f()}],"mask-image-radial":[{"mask-radial":[d,c]}],"mask-image-radial-from-pos":[{"mask-radial-from":M()}],"mask-image-radial-to-pos":[{"mask-radial-to":M()}],"mask-image-radial-from-color":[{"mask-radial-from":f()}],"mask-image-radial-to-color":[{"mask-radial-to":f()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":P()}],"mask-image-conic-pos":[{"mask-conic":[x]}],"mask-image-conic-from-pos":[{"mask-conic-from":M()}],"mask-image-conic-to-pos":[{"mask-conic-to":M()}],"mask-image-conic-from-color":[{"mask-conic-from":f()}],"mask-image-conic-to-color":[{"mask-conic-to":f()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:_e()}],"mask-repeat":[{mask:Te()}],"mask-size":[{mask:Oe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",d,c]}],filter:[{filter:["","none",d,c]}],blur:[{blur:Le()}],brightness:[{brightness:[x,d,c]}],contrast:[{contrast:[x,d,c]}],"drop-shadow":[{"drop-shadow":["","none",w,se,ne]}],"drop-shadow-color":[{"drop-shadow":f()}],grayscale:[{grayscale:["",x,d,c]}],"hue-rotate":[{"hue-rotate":[x,d,c]}],invert:[{invert:["",x,d,c]}],saturate:[{saturate:[x,d,c]}],sepia:[{sepia:["",x,d,c]}],"backdrop-filter":[{"backdrop-filter":["","none",d,c]}],"backdrop-blur":[{"backdrop-blur":Le()}],"backdrop-brightness":[{"backdrop-brightness":[x,d,c]}],"backdrop-contrast":[{"backdrop-contrast":[x,d,c]}],"backdrop-grayscale":[{"backdrop-grayscale":["",x,d,c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[x,d,c]}],"backdrop-invert":[{"backdrop-invert":["",x,d,c]}],"backdrop-opacity":[{"backdrop-opacity":[x,d,c]}],"backdrop-saturate":[{"backdrop-saturate":[x,d,c]}],"backdrop-sepia":[{"backdrop-sepia":["",x,d,c]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":b()}],"border-spacing-x":[{"border-spacing-x":b()}],"border-spacing-y":[{"border-spacing-y":b()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",d,c]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[x,"initial",d,c]}],ease:[{ease:["linear","initial",S,d,c]}],delay:[{delay:[x,d,c]}],animate:[{animate:["none",v,d,c]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,d,c]}],"perspective-origin":[{"perspective-origin":_()}],rotate:[{rotate:ee()}],"rotate-x":[{"rotate-x":ee()}],"rotate-y":[{"rotate-y":ee()}],"rotate-z":[{"rotate-z":ee()}],scale:[{scale:oe()}],"scale-x":[{"scale-x":oe()}],"scale-y":[{"scale-y":oe()}],"scale-z":[{"scale-z":oe()}],"scale-3d":["scale-3d"],skew:[{skew:me()}],"skew-x":[{"skew-x":me()}],"skew-y":[{"skew-y":me()}],transform:[{transform:[d,c,"","none","gpu","cpu"]}],"transform-origin":[{origin:_()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:te()}],"translate-x":[{"translate-x":te()}],"translate-y":[{"translate-y":te()}],"translate-z":[{"translate-z":te()}],"translate-none":["translate-none"],accent:[{accent:f()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:f()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",d,c]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",d,c]}],fill:[{fill:["none",...f()]}],"stroke-w":[{stroke:[x,K,F,fe]}],stroke:[{stroke:["none",...f()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Ft=kt(Vt);function B(...e){return Ft(lt(e))}function Ut({children:e,className:o,...t}){const{colorScheme:r}=Pe();return g.jsx(nt,{className:B("focus:outline-2 has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-[var(--accordion-focus,hsl(var(--primary)))] has-[:focus-visible]:ring-offset-4",{light:"ring-offset-[var(--acordion-light-offset,hsl(var(--background)))]",dark:"ring-offset-[var(--acordion-dark-offset,hsl(var(--foreground)))]"}[r],o),"data-slot":"accordion-item",...t,children:e})}function Wt({...e}){return g.jsx(rt,{"data-slot":"accordion-root",...e})}function Bt({children:e,className:o,...t}){const{colorScheme:r}=Pe(),[n,s]=A.useState(!1);return A.useEffect(()=>{s(!0)},[]),g.jsx(it,{className:B("overflow-hidden",n&&"data-[state=closed]:animate-collapse data-[state=open]:animate-expand"),"data-slot":"accordion-content",...t,children:g.jsx("div",{className:B("py-3 text-base font-[var(--accordion-content-font-family,var(--font-family-body))] font-light leading-normal",{light:"text-[var(--accordion-light-content-text,hsl(var(--foreground)))]",dark:"text-[var(--accordion-dark-content-text,hsl(var(--background)))]"}[r],o),children:e})})}function Ht({children:e,className:o,...t}){const{colorScheme:r}=Pe();return g.jsx(st,{children:g.jsxs(at,{className:B("group flex w-full cursor-pointer items-start gap-8 border-none py-3 text-start focus:outline-none @md:py-4",o),"data-slot":"accordion-trigger",...t,children:[g.jsx("div",{className:B("flex-1 select-none text-sm font-[var(--accordion-title-font-family,var(--font-family-mono))] font-normal uppercase transition-colors duration-300 ease-out",{light:"text-[var(--accordion-light-title-text,hsl(var(--contrast-400)))] group-hover:text-[var(--accordion-light-title-text-hover,hsl(var(--foreground)))]",dark:"text-[var(--accordion-dark-title-text,hsl(var(--contrast-200)))] group-hover:text-[var(--accordion-dark-title-text-hover,hsl(var(--background)))]"}[r]),children:e}),g.jsxs("svg",{className:B("mt-1 shrink-0 [&>line]:origin-center [&>line]:transition [&>line]:duration-300 [&>line]:ease-out",{light:"stroke-[var(--accordion-light-title-icon,hsl(var(--contrast-500)))] group-hover:stroke-[var(--accordion-light-title-icon-hover,hsl(var(--foreground)))]",dark:"stroke-[var(--accordion-dark-title-icon,hsl(var(--contrast-200)))] group-hover:stroke-[var(--accordion-dark-title-icon-hover,hsl(var(--background)))]"}[r]),"data-slot":"accordion-chevron",viewBox:"0 0 10 10",width:16,children:[g.jsx("line",{className:"group-data-[state=open]:-translate-y-[3px] group-data-[state=open]:-rotate-90",strokeLinecap:"round",x1:2,x2:5,y1:2,y2:5}),g.jsx("line",{className:"group-data-[state=open]:-translate-y-[3px] group-data-[state=open]:rotate-90",strokeLinecap:"round",x1:8,x2:5,y1:2,y2:5})]})]})})}const wo=A.createContext(void 0);function qt({children:e,colorScheme:o="light"}){return g.jsx(wo,{value:{colorScheme:o},children:e})}function Pe(){const e=A.useContext(wo);if(e===void 0)throw new Error("useAccordionContext must be used within an AccordionProvider");return e}exports.Accordion=Co;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|