@jamsrui/accordion 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion-config.mjs +1 -2
- package/dist/accordion-content-wrapper.mjs +1 -2
- package/dist/accordion-content.mjs +1 -2
- package/dist/accordion-context.mjs +1 -2
- package/dist/accordion-heading-content.mjs +1 -2
- package/dist/accordion-indicator.mjs +1 -2
- package/dist/accordion-item-context.mjs +1 -2
- package/dist/accordion-item.mjs +1 -2
- package/dist/accordion-list-provider.mjs +1 -2
- package/dist/accordion-trigger.mjs +1 -2
- package/dist/accordion.mjs +1 -2
- package/dist/icons.mjs +1 -2
- package/dist/index.mjs +1 -2
- package/dist/styles.mjs +1 -2
- package/dist/use-accordion-item.mjs +1 -2
- package/dist/use-accordion.mjs +1 -2
- package/package.json +4 -4
- package/dist/accordion-config.d.ts +0 -24
- package/dist/accordion-config.js +0 -2
- package/dist/accordion-content-wrapper.d.ts +0 -11
- package/dist/accordion-content-wrapper.js +0 -2
- package/dist/accordion-content.d.ts +0 -10
- package/dist/accordion-content.js +0 -2
- package/dist/accordion-context.d.ts +0 -25
- package/dist/accordion-context.js +0 -2
- package/dist/accordion-fJ8qgUop.d.ts +0 -125
- package/dist/accordion-heading-content.d.ts +0 -10
- package/dist/accordion-heading-content.js +0 -2
- package/dist/accordion-indicator.d.ts +0 -10
- package/dist/accordion-indicator.js +0 -2
- package/dist/accordion-item-C8aJ-HG6.d.ts +0 -34
- package/dist/accordion-item-context.d.ts +0 -27
- package/dist/accordion-item-context.js +0 -2
- package/dist/accordion-item.d.ts +0 -9
- package/dist/accordion-item.js +0 -2
- package/dist/accordion-list-provider.d.ts +0 -11
- package/dist/accordion-list-provider.js +0 -2
- package/dist/accordion-trigger.d.ts +0 -10
- package/dist/accordion-trigger.js +0 -2
- package/dist/accordion.d.ts +0 -12
- package/dist/accordion.js +0 -2
- package/dist/chunk-3KSKR3LG.mjs +0 -2
- package/dist/chunk-3UAIVIWO.js +0 -2
- package/dist/chunk-5KYCVUKE.mjs +0 -2
- package/dist/chunk-5PG52LOT.js +0 -2
- package/dist/chunk-6MXHW7QL.js +0 -2
- package/dist/chunk-6UVIASYR.js +0 -2
- package/dist/chunk-746WPYID.mjs +0 -2
- package/dist/chunk-7IPMKOW5.js +0 -2
- package/dist/chunk-AJ5VRSYU.mjs +0 -2
- package/dist/chunk-B5KGPCHX.mjs +0 -2
- package/dist/chunk-B6BHXTLD.mjs +0 -2
- package/dist/chunk-BHH7RUHV.js +0 -2
- package/dist/chunk-FKUMBOKA.mjs +0 -2
- package/dist/chunk-GWEMJIEZ.js +0 -2
- package/dist/chunk-HLLSKKJM.js +0 -2
- package/dist/chunk-HVN4FG72.mjs +0 -2
- package/dist/chunk-J7DWXUO6.mjs +0 -2
- package/dist/chunk-JCBC2HSN.js +0 -2
- package/dist/chunk-KC2PTXCT.js +0 -2
- package/dist/chunk-MYIQFE6C.js +0 -2
- package/dist/chunk-OQKIABXQ.js +0 -2
- package/dist/chunk-R6PXBFOT.mjs +0 -2
- package/dist/chunk-REF3PGRV.js +0 -2
- package/dist/chunk-REL7EDKS.mjs +0 -2
- package/dist/chunk-RQEXQX27.mjs +0 -2
- package/dist/chunk-SO5PO6XK.js +0 -2
- package/dist/chunk-TKL7S3WD.js +0 -2
- package/dist/chunk-U5LPS5QH.mjs +0 -2
- package/dist/chunk-XB7QSVNE.mjs +0 -2
- package/dist/chunk-ZYZQ6BLD.mjs +0 -2
- package/dist/icons.d.ts +0 -6
- package/dist/icons.js +0 -2
- package/dist/index.d.ts +0 -15
- package/dist/index.js +0 -2
- package/dist/styles.d.ts +0 -87
- package/dist/styles.js +0 -2
- package/dist/use-accordion-item.d.ts +0 -9
- package/dist/use-accordion-item.js +0 -2
- package/dist/use-accordion.d.ts +0 -12
- package/dist/use-accordion.js +0 -2
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
import{a,b}from"./chunk-R6PXBFOT.mjs";export{a as AccordionConfig,b as useAccordionConfig};
|
|
1
|
+
import{createConfigContext as o}from"@jamsrui/utils";const[c,i]=o({displayName:"AccordionConfigContext"});export{c as AccordionConfig,i as useAccordionConfig};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
import{a}from"./chunk-HVN4FG72.mjs";import"./chunk-RQEXQX27.mjs";import"./chunk-REL7EDKS.mjs";export{a as AccordionContentWrapper};
|
|
1
|
+
import{mergeProps as n,TRANSITION_VARIANTS as p}from"@jamsrui/utils";import{motion as i}from"motion/react";import{useAccordionContext as c}from"./accordion-context";import{useAccordionItemContext as s}from"./accordion-item-context";const C=o=>{const t=c(),e=n(t.slotProps?.contentWrapper??{},o),{getContentWrapperProps:r}=s();return React.createElement(i.section,{animate:"enter",exit:"exit",initial:"exit",variants:p.collapse,...r(e)})};export{C as AccordionContentWrapper};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
import{a}from"./chunk-746WPYID.mjs";import"./chunk-HVN4FG72.mjs";import"./chunk-RQEXQX27.mjs";import"./chunk-REL7EDKS.mjs";export{a as AccordionContent};
|
|
1
|
+
import{useRenderElement as c}from"@jamsrui/hooks";import{mergeProps as s}from"@jamsrui/utils";import{AnimatePresence as m}from"motion/react";import{AccordionContentWrapper as i}from"./accordion-content-wrapper";import{useAccordionContext as d}from"./accordion-context";import{useAccordionItemContext as P}from"./accordion-item-context";const A=o=>{const e=d(),r=s(e.slotProps?.content??{},o),{isOpen:t,getContentProps:n}=P(),p=c("div",{props:[n(r)]});return React.createElement(m,null,!!t&&React.createElement(i,null,p))};export{A as AccordionContent};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import{a,b}from"./chunk-RQEXQX27.mjs";export{a as AccordionContextProvider,b as useAccordionContext};
|
|
1
|
+
import{createContext as c,use as n}from"react";const e=c(null),d=o=>{const{children:t,ctx:r}=o;return React.createElement(e,{value:r},t)},x=()=>{const o=n(e);if(!o)throw new Error("useAccordionContext must be used within AccordionContextProvider");return o};export{d as AccordionContextProvider,x as useAccordionContext};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
import{a}from"./chunk-5KYCVUKE.mjs";import"./chunk-REL7EDKS.mjs";export{a as AccordionHeadingContent};
|
|
1
|
+
import{useRenderElement as n}from"@jamsrui/hooks";import{useAccordionItemContext as t}from"./accordion-item-context";const s=e=>{const{getHeadingContentProps:o}=t();return n("div",{props:[o(e)]})};export{s as AccordionHeadingContent};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
import{a}from"./chunk-AJ5VRSYU.mjs";import"./chunk-B5KGPCHX.mjs";import"./chunk-REL7EDKS.mjs";export{a as AccordionIndicator};
|
|
1
|
+
import{useRenderElement as n}from"@jamsrui/hooks";import{useAccordionItemContext as t}from"./accordion-item-context";import{ChevronDownIcon as c}from"./icons";const m=o=>{const{getIndicatorProps:r,indicator:e}=t();return n("span",{props:[r(o),{children:e??React.createElement(c,null)}]})};export{m as AccordionIndicator};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import{a,b,c}from"./chunk-REL7EDKS.mjs";export{a as AccordionItemContextProvider,b as useAccordionItemContext,c as useAccordionItemState};
|
|
1
|
+
import{createContext as n,use as c}from"react";const t=n(null),s=e=>{const{children:o,ctx:r}=e;return React.createElement(t,{value:r},o)},i=()=>{const e=c(t);if(!e)throw new Error("useAccordionItemContext must be used within AccordionItemContextProvider");return e},x=()=>{const e=i();return{isOpen:e.isOpen,isDisabled:e.isDisabled,indicator:e.indicator}};export{s as AccordionItemContextProvider,i as useAccordionItemContext,x as useAccordionItemState};
|
package/dist/accordion-item.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use
|
|
2
|
-
import{a}from"./chunk-XB7QSVNE.mjs";import"./chunk-FKUMBOKA.mjs";import"./chunk-B6BHXTLD.mjs";import"./chunk-RQEXQX27.mjs";import"./chunk-REL7EDKS.mjs";export{a as AccordionItem};
|
|
1
|
+
import{useRenderElement as m}from"@jamsrui/hooks";import{mergeProps as s}from"@jamsrui/utils";import{useAccordionContext as i}from"./accordion-context";import{AccordionItemContextProvider as p}from"./accordion-item-context";import{useAccordionItem as d}from"./use-accordion-item";const x=r=>{const e=i(),t=s(e.slotProps?.item??{},r),o=d(t),{getItemProps:c}=o,n=m("div",{props:[c({})]});return React.createElement(p,{ctx:o},n)};export{x as AccordionItem};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import{a,b}from"./chunk-B6BHXTLD.mjs";export{a as AccordionListItemContext,b as useAccordionListItem};
|
|
1
|
+
import{createContext as e,use as o}from"react";const n=e(null),c=()=>{const t=o(n);if(!t)throw new Error("AccordionListItemContext not found");return t};export{n as AccordionListItemContext,c as useAccordionListItem};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
import{a}from"./chunk-3KSKR3LG.mjs";import"./chunk-5KYCVUKE.mjs";import"./chunk-AJ5VRSYU.mjs";import"./chunk-B5KGPCHX.mjs";import"./chunk-RQEXQX27.mjs";import"./chunk-REL7EDKS.mjs";export{a as AccordionTrigger};
|
|
1
|
+
import{useRenderElement as i}from"@jamsrui/hooks";import{mergeProps as s}from"@jamsrui/utils";import{useAccordionContext as m}from"./accordion-context";import{AccordionHeadingContent as d}from"./accordion-heading-content";import{AccordionIndicator as p}from"./accordion-indicator";import{useAccordionItemContext as g}from"./accordion-item-context";const l=o=>{const{children:e}=o,r=m(),t=s(r.slotProps?.trigger??{},o),{getTriggerProps:n}=g(),c=React.createElement(React.Fragment,null,React.createElement(d,null,e),r.hideIndicator?null:React.createElement(p,null));return i("button",{props:[n(t),{children:c}]})};export{l as AccordionTrigger};
|
package/dist/accordion.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use
|
|
2
|
-
import{a}from"./chunk-J7DWXUO6.mjs";import"./chunk-ZYZQ6BLD.mjs";import"./chunk-U5LPS5QH.mjs";import"./chunk-R6PXBFOT.mjs";import"./chunk-B6BHXTLD.mjs";import"./chunk-RQEXQX27.mjs";export{a as Accordion};
|
|
1
|
+
import{Children as p}from"react";import{useRenderElement as f}from"@jamsrui/hooks";import{mergeConfigProps as A}from"@jamsrui/utils";import{useAccordionConfig as x}from"./accordion-config";import{AccordionContextProvider as C}from"./accordion-context";import{AccordionListItemContext as P}from"./accordion-list-provider";import{useAccordion as l}from"./use-accordion";const u=t=>{const o=x(),r=A(o,o,t),e=l(r),{getRootProps:n}=e,{children:c}=r,i=p.map(c,(m,d)=>React.createElement(P,{value:{index:d}},m)),s=f("div",{props:[n({}),{children:i}]});return React.createElement(C,{ctx:e},s)};export{u as Accordion};
|
package/dist/icons.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
import{a}from"./chunk-B5KGPCHX.mjs";export{a as ChevronDownIcon};
|
|
1
|
+
const r=o=>React.createElement("svg",{fill:"none",height:20,stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",width:20,xmlns:"http://www.w3.org/2000/svg",...o},React.createElement("path",{d:"m6 9 6 6 6-6"}));export{r as ChevronDownIcon};
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
"use client";import{a as n}from"./chunk-3KSKR3LG.mjs";import{a as i}from"./chunk-J7DWXUO6.mjs";import"./chunk-ZYZQ6BLD.mjs";import"./chunk-U5LPS5QH.mjs";import{a as o,b as r}from"./chunk-R6PXBFOT.mjs";import{a as e}from"./chunk-746WPYID.mjs";import"./chunk-HVN4FG72.mjs";import"./chunk-5KYCVUKE.mjs";import"./chunk-AJ5VRSYU.mjs";import"./chunk-B5KGPCHX.mjs";import{a as t}from"./chunk-XB7QSVNE.mjs";import"./chunk-FKUMBOKA.mjs";import"./chunk-B6BHXTLD.mjs";import"./chunk-RQEXQX27.mjs";import{c}from"./chunk-REL7EDKS.mjs";export{i as Accordion,o as AccordionConfig,e as AccordionContent,t as AccordionItem,n as AccordionTrigger,r as useAccordionConfig,c as useAccordionItemState};
|
|
1
|
+
"use client";import{Accordion as c}from"./accordion";import{AccordionConfig as t,useAccordionConfig as n}from"./accordion-config";import{AccordionContent as f}from"./accordion-content";import{AccordionItem as d}from"./accordion-item";import{useAccordionItemState as p}from"./accordion-item-context";import{AccordionTrigger as g}from"./accordion-trigger";export{c as Accordion,t as AccordionConfig,f as AccordionContent,d as AccordionItem,g as AccordionTrigger,n as useAccordionConfig,p as useAccordionItemState};
|
package/dist/styles.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
import{a,b}from"./chunk-U5LPS5QH.mjs";export{b as accordionVariants,a as test};
|
|
1
|
+
import{radiusVariant as t,tv as e}from"@jamsrui/utils";const o="",i=e({slots:{root:"flex flex-col",item:"bg-surface ui-disabled:opacity-80 ui-disabled:cursor-not-allowed",header:"flex items-center gap-2",trigger:["flex w-full items-center relative gap-3 py-4 px-4","focus-visible:outline-2 focus-visible:outline-primary focus-visible:z-10"],content:"py-2 text-base px-4",contentWrapper:"overflow-hidden",indicator:"rotate-0 transition-transform duration-500 data-[open=true]:-rotate-180",headingContent:"text-left grow"},variants:{variant:{light:"",splitted:{root:"flex flex-col gap-4"}},radius:t(["item","trigger","content"])},defaultVariants:{variant:"light",radius:"md"}});export{i as accordionVariants,o as test};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
import{a}from"./chunk-FKUMBOKA.mjs";import"./chunk-B6BHXTLD.mjs";import"./chunk-RQEXQX27.mjs";export{a as useAccordionItem};
|
|
1
|
+
import{useCallback as r,useId as T,useMemo as K}from"react";import{cn as l,dataAttrDev as m,isDisabledElement as O,mergeProps as U}from"@jamsrui/utils";import{useAccordionContext as V}from"./accordion-context";import{useAccordionListItem as j}from"./accordion-list-provider";const F=L=>{const{styles:t,classNames:o,handleAccordionOpen:u,value:C,elementRefs:n,slotProps:s}=V(),{index:a}=j(),M=(a+1).toString(),{value:i=M,isDisabled:c,indicator:h,...b}=L,d=K(()=>C.includes(i),[C,i]),N=n.current.length,f=T(),P=T(),w=r(e=>{n.current[a]=e},[n,a]),y=r((e,A)=>{const I=A==="up"?-1:1;let g=e;do{g=(g+I+N)%N;const R=n.current[g];if(R&&!O(R))return g}while(g!==e);return e},[n,N]),p=r((e,A)=>{const I=y(e,A);n.current[I]?.focus()},[n,y]),D=r(()=>{n.current[a]&&n.current[a]?.blur()},[n,a]),x=r(e=>{switch(e.key){case"Enter":case" ":e.preventDefault(),u(i);break;case"ArrowUp":e.preventDefault(),p(a,"up");break;case"ArrowDown":e.preventDefault(),p(a,"down");break;case"Home":e.preventDefault(),p(-1,"down");break;case"End":e.preventDefault(),p(0,"up");break;case"Escape":e.preventDefault(),D();break;default:break}},[D,p,u,a,i]),k=r(e=>({...b,...e,"data-slot":m("item"),className:t.item({className:l(o?.item,b.className,e.className)}),"aria-disabled":c,"data-disabled":c}),[o?.item,b,c,t]),E=r(e=>({...e,"data-slot":m("content-wrapper"),className:t.contentWrapper({className:l(o?.contentWrapper,e.className)})}),[o?.contentWrapper,t]),G=r(e=>({...e,"data-slot":m("content"),className:t.content({className:l(o?.content,e.className)}),role:"region","aria-labelledby":f,id:P}),[o?.content,P,t,f]),v=r(e=>({...U(e,{ref:w,onClick:()=>{u(i)},onKeyDown:x,disabled:c,"aria-disabled":c,"data-disabled":c}),"data-slot":m("trigger"),className:t.trigger({className:l(o?.trigger,e.className)}),id:f,"aria-expanded":d,"aria-controls":P}),[w,x,c,t,o?.trigger,f,d,P,u,i]),W=r(e=>({...s?.trigger,...e,"data-slot":m("indicator"),"data-open":d,className:t.indicator({className:l(s?.indicator?.className,o?.indicator,e.className)})}),[o?.indicator,d,s?.indicator?.className,s?.trigger,t]),H=r(e=>({...U(s?.headingContent,e),"data-slot":m("heading-content"),className:t.headingContent({className:l(s?.headingContent?.className,o?.headingContent,e.className)})}),[o?.headingContent,s?.headingContent,t]);return K(()=>({getItemProps:k,getContentProps:G,getTriggerProps:v,getContentWrapperProps:E,getIndicatorProps:W,getHeadingContentProps:H,isOpen:d,indicator:h,isDisabled:c}),[k,G,v,E,W,H,d,h,c])};export{F as useAccordionItem};
|
package/dist/use-accordion.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
import{a}from"./chunk-ZYZQ6BLD.mjs";import"./chunk-U5LPS5QH.mjs";export{a as useAccordion};
|
|
1
|
+
import{useCallback as p,useMemo as N,useRef as b}from"react";import{useControlledState as S}from"@jamsrui/hooks";import{cn as T,dataAttrDev as M,mapPropsVariants as w}from"@jamsrui/utils";import{accordionVariants as g}from"./styles";const O=C=>{const[V,y]=w(C,g.variantKeys),{value:h,defaultValue:v,isDisabled:l,onValueChange:n,isMultiple:d,loop:D,slotProps:m,classNames:r,hideIndicator:u,...c}=V,[e=[],a]=S({defaultProp:v,onChange:n,prop:h}),A=p(()=>{},[]),t=g(y),I=b([]),f=p(o=>{const s=e.includes(o);if(d){const i=new Set(e);s?i.delete(o):i.add(o),a(Array.from(i))}else a(s?[]:[o]),n?.(s?[]:[o])},[d,n,a,e]),P=p(o=>({...c,...o,"data-slot":M("root"),className:t.root({className:T(r?.root,c.className,o.className)})}),[r?.root,c,t]);return N(()=>({getRootProps:P,handleValueChange:A,value:e,isDisabled:l,slotProps:m,classNames:r,styles:t,handleAccordionOpen:f,elementRefs:I,hideIndicator:u}),[r,P,f,A,l,m,t,e,u])};export{O as useAccordion};
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jamsrui/accordion",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"motion": ">=12",
|
|
6
6
|
"react": ">=19",
|
|
7
7
|
"react-dom": ">=19"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@jamsrui/
|
|
11
|
-
"@jamsrui/
|
|
12
|
-
"@jamsrui/utils": "^0.0.
|
|
10
|
+
"@jamsrui/core": "^0.0.3",
|
|
11
|
+
"@jamsrui/hooks": "^0.0.3",
|
|
12
|
+
"@jamsrui/utils": "^0.0.3"
|
|
13
13
|
},
|
|
14
14
|
"exports": {
|
|
15
15
|
".": {
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { GlobalConfigProps } from '@jamsrui/core';
|
|
3
|
-
import { A as Accordion } from './accordion-fJ8qgUop.js';
|
|
4
|
-
import 'tailwind-variants';
|
|
5
|
-
import '@jamsrui/utils';
|
|
6
|
-
import './accordion-content.js';
|
|
7
|
-
import './accordion-content-wrapper.js';
|
|
8
|
-
import 'motion/react';
|
|
9
|
-
import './accordion-heading-content.js';
|
|
10
|
-
import './accordion-indicator.js';
|
|
11
|
-
import './accordion-item-C8aJ-HG6.js';
|
|
12
|
-
import './accordion-trigger.js';
|
|
13
|
-
import './styles.js';
|
|
14
|
-
|
|
15
|
-
declare const useAccordionConfig: () => AccordionConfig.Props;
|
|
16
|
-
declare const AccordionConfig: (props: AccordionConfig.Props & {
|
|
17
|
-
merge?: boolean;
|
|
18
|
-
}) => react.JSX.Element;
|
|
19
|
-
declare namespace AccordionConfig {
|
|
20
|
-
interface Props extends Accordion.Props, GlobalConfigProps<Accordion.Props> {
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export { AccordionConfig, useAccordionConfig };
|
package/dist/accordion-config.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { ComponentProps } from 'react';
|
|
3
|
-
import { motion } from 'motion/react';
|
|
4
|
-
|
|
5
|
-
declare const AccordionContentWrapper: (props: AccordionContentWrapper.Props) => react.JSX.Element;
|
|
6
|
-
declare namespace AccordionContentWrapper {
|
|
7
|
-
interface Props extends ComponentProps<typeof motion.section> {
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export { AccordionContentWrapper };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { UIProps } from '@jamsrui/utils';
|
|
3
|
-
|
|
4
|
-
declare const AccordionContent: (props: AccordionContent.Props) => react.JSX.Element;
|
|
5
|
-
declare namespace AccordionContent {
|
|
6
|
-
interface Props extends UIProps<"div"> {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export { AccordionContent };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
|
-
var _chunk6MXHW7QLjs = require('./chunk-6MXHW7QL.js');require('./chunk-REF3PGRV.js');require('./chunk-JCBC2HSN.js');require('./chunk-SO5PO6XK.js');exports.AccordionContent = _chunk6MXHW7QLjs.a;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { u as useAccordion } from './accordion-fJ8qgUop.js';
|
|
3
|
-
import 'tailwind-variants';
|
|
4
|
-
import '@jamsrui/utils';
|
|
5
|
-
import './accordion-content.js';
|
|
6
|
-
import './accordion-content-wrapper.js';
|
|
7
|
-
import 'motion/react';
|
|
8
|
-
import './accordion-heading-content.js';
|
|
9
|
-
import './accordion-indicator.js';
|
|
10
|
-
import './accordion-item-C8aJ-HG6.js';
|
|
11
|
-
import './accordion-trigger.js';
|
|
12
|
-
import './styles.js';
|
|
13
|
-
|
|
14
|
-
declare const useAccordionContext: () => AccordionContextProvider.Type;
|
|
15
|
-
declare const AccordionContextProvider: (props: AccordionContextProvider.Props) => react.JSX.Element;
|
|
16
|
-
declare namespace AccordionContextProvider {
|
|
17
|
-
interface Type extends ReturnType<typeof useAccordion> {
|
|
18
|
-
}
|
|
19
|
-
interface Props {
|
|
20
|
-
ctx: Type;
|
|
21
|
-
children: React.ReactNode;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export { AccordionContextProvider, useAccordionContext };
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import * as tailwind_variants from 'tailwind-variants';
|
|
3
|
-
import { PropGetter, SlotsToClassNames, UIProps } from '@jamsrui/utils';
|
|
4
|
-
import { AccordionContent } from './accordion-content.js';
|
|
5
|
-
import { AccordionContentWrapper } from './accordion-content-wrapper.js';
|
|
6
|
-
import { AccordionHeadingContent } from './accordion-heading-content.js';
|
|
7
|
-
import { AccordionIndicator } from './accordion-indicator.js';
|
|
8
|
-
import { A as AccordionItem } from './accordion-item-C8aJ-HG6.js';
|
|
9
|
-
import { AccordionTrigger } from './accordion-trigger.js';
|
|
10
|
-
import { AccordionVariants, AccordionSlots } from './styles.js';
|
|
11
|
-
|
|
12
|
-
declare const useAccordion: (props: useAccordion.Props) => {
|
|
13
|
-
getRootProps: PropGetter<Accordion.Props>;
|
|
14
|
-
handleValueChange: () => void;
|
|
15
|
-
value: useAccordion.AccordionValue;
|
|
16
|
-
isDisabled: boolean | undefined;
|
|
17
|
-
slotProps: {
|
|
18
|
-
trigger?: AccordionTrigger.Props;
|
|
19
|
-
item?: AccordionItem.Props;
|
|
20
|
-
content?: AccordionContent.Props;
|
|
21
|
-
contentWrapper?: AccordionContentWrapper.Props;
|
|
22
|
-
indicator?: AccordionIndicator.Props;
|
|
23
|
-
headingContent?: AccordionHeadingContent.Props;
|
|
24
|
-
} | undefined;
|
|
25
|
-
classNames: SlotsToClassNames<"header" | "content" | "root" | "item" | "contentWrapper" | "indicator" | "headingContent" | "trigger"> | undefined;
|
|
26
|
-
styles: {
|
|
27
|
-
root: (slotProps?: ({
|
|
28
|
-
variant?: "light" | "splitted" | undefined;
|
|
29
|
-
radius?: "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | "none" | undefined;
|
|
30
|
-
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
31
|
-
item: (slotProps?: ({
|
|
32
|
-
variant?: "light" | "splitted" | undefined;
|
|
33
|
-
radius?: "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | "none" | undefined;
|
|
34
|
-
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
35
|
-
header: (slotProps?: ({
|
|
36
|
-
variant?: "light" | "splitted" | undefined;
|
|
37
|
-
radius?: "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | "none" | undefined;
|
|
38
|
-
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
39
|
-
trigger: (slotProps?: ({
|
|
40
|
-
variant?: "light" | "splitted" | undefined;
|
|
41
|
-
radius?: "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | "none" | undefined;
|
|
42
|
-
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
43
|
-
content: (slotProps?: ({
|
|
44
|
-
variant?: "light" | "splitted" | undefined;
|
|
45
|
-
radius?: "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | "none" | undefined;
|
|
46
|
-
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
47
|
-
contentWrapper: (slotProps?: ({
|
|
48
|
-
variant?: "light" | "splitted" | undefined;
|
|
49
|
-
radius?: "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | "none" | undefined;
|
|
50
|
-
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
51
|
-
indicator: (slotProps?: ({
|
|
52
|
-
variant?: "light" | "splitted" | undefined;
|
|
53
|
-
radius?: "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | "none" | undefined;
|
|
54
|
-
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
55
|
-
headingContent: (slotProps?: ({
|
|
56
|
-
variant?: "light" | "splitted" | undefined;
|
|
57
|
-
radius?: "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | "none" | undefined;
|
|
58
|
-
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
59
|
-
} & {
|
|
60
|
-
root: (slotProps?: ({
|
|
61
|
-
variant?: "light" | "splitted" | undefined;
|
|
62
|
-
radius?: "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | "none" | undefined;
|
|
63
|
-
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
64
|
-
item: (slotProps?: ({
|
|
65
|
-
variant?: "light" | "splitted" | undefined;
|
|
66
|
-
radius?: "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | "none" | undefined;
|
|
67
|
-
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
68
|
-
header: (slotProps?: ({
|
|
69
|
-
variant?: "light" | "splitted" | undefined;
|
|
70
|
-
radius?: "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | "none" | undefined;
|
|
71
|
-
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
72
|
-
trigger: (slotProps?: ({
|
|
73
|
-
variant?: "light" | "splitted" | undefined;
|
|
74
|
-
radius?: "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | "none" | undefined;
|
|
75
|
-
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
76
|
-
content: (slotProps?: ({
|
|
77
|
-
variant?: "light" | "splitted" | undefined;
|
|
78
|
-
radius?: "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | "none" | undefined;
|
|
79
|
-
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
80
|
-
contentWrapper: (slotProps?: ({
|
|
81
|
-
variant?: "light" | "splitted" | undefined;
|
|
82
|
-
radius?: "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | "none" | undefined;
|
|
83
|
-
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
84
|
-
indicator: (slotProps?: ({
|
|
85
|
-
variant?: "light" | "splitted" | undefined;
|
|
86
|
-
radius?: "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | "none" | undefined;
|
|
87
|
-
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
88
|
-
headingContent: (slotProps?: ({
|
|
89
|
-
variant?: "light" | "splitted" | undefined;
|
|
90
|
-
radius?: "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | "none" | undefined;
|
|
91
|
-
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
92
|
-
} & {};
|
|
93
|
-
handleAccordionOpen: (idx: string) => void;
|
|
94
|
-
elementRefs: react.RefObject<(HTMLElement | null)[]>;
|
|
95
|
-
hideIndicator: boolean | undefined;
|
|
96
|
-
};
|
|
97
|
-
declare namespace useAccordion {
|
|
98
|
-
type AccordionValue = string[];
|
|
99
|
-
interface Props extends UIProps<"div">, AccordionVariants {
|
|
100
|
-
slotProps?: {
|
|
101
|
-
trigger?: AccordionTrigger.Props;
|
|
102
|
-
item?: AccordionItem.Props;
|
|
103
|
-
content?: AccordionContent.Props;
|
|
104
|
-
contentWrapper?: AccordionContentWrapper.Props;
|
|
105
|
-
indicator?: AccordionIndicator.Props;
|
|
106
|
-
headingContent?: AccordionHeadingContent.Props;
|
|
107
|
-
};
|
|
108
|
-
classNames?: SlotsToClassNames<AccordionSlots>;
|
|
109
|
-
value?: AccordionValue;
|
|
110
|
-
defaultValue?: AccordionValue;
|
|
111
|
-
isDisabled?: boolean;
|
|
112
|
-
onValueChange?: (value: AccordionValue) => void;
|
|
113
|
-
isMultiple?: boolean;
|
|
114
|
-
loop?: boolean;
|
|
115
|
-
hideIndicator?: boolean;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
declare const Accordion: (props: Accordion.Props) => react.JSX.Element;
|
|
120
|
-
declare namespace Accordion {
|
|
121
|
-
interface Props extends useAccordion.Props {
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
export { Accordion as A, useAccordion as u };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { UIProps } from '@jamsrui/utils';
|
|
3
|
-
|
|
4
|
-
declare const AccordionHeadingContent: (props: AccordionHeadingContent.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
5
|
-
declare namespace AccordionHeadingContent {
|
|
6
|
-
interface Props extends UIProps<"div"> {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export { AccordionHeadingContent };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { UIProps } from '@jamsrui/utils';
|
|
3
|
-
|
|
4
|
-
declare const AccordionIndicator: (props: AccordionIndicator.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
5
|
-
declare namespace AccordionIndicator {
|
|
6
|
-
interface Props extends UIProps<"span"> {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export { AccordionIndicator };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { PropGetter, UIProps } from '@jamsrui/utils';
|
|
3
|
-
import { AccordionContent } from './accordion-content.js';
|
|
4
|
-
import { AccordionContentWrapper } from './accordion-content-wrapper.js';
|
|
5
|
-
import { AccordionHeadingContent } from './accordion-heading-content.js';
|
|
6
|
-
import { AccordionIndicator } from './accordion-indicator.js';
|
|
7
|
-
import { AccordionTrigger } from './accordion-trigger.js';
|
|
8
|
-
|
|
9
|
-
declare const useAccordionItem: (props: useAccordionItem.Props) => {
|
|
10
|
-
getItemProps: PropGetter<AccordionItem.Props>;
|
|
11
|
-
getContentProps: PropGetter<AccordionContent.Props>;
|
|
12
|
-
getTriggerProps: PropGetter<AccordionTrigger.Props>;
|
|
13
|
-
getContentWrapperProps: PropGetter<AccordionContentWrapper.Props>;
|
|
14
|
-
getIndicatorProps: PropGetter<AccordionIndicator.Props>;
|
|
15
|
-
getHeadingContentProps: PropGetter<AccordionHeadingContent.Props>;
|
|
16
|
-
isOpen: boolean;
|
|
17
|
-
indicator: react.ReactNode;
|
|
18
|
-
isDisabled: boolean | undefined;
|
|
19
|
-
};
|
|
20
|
-
declare namespace useAccordionItem {
|
|
21
|
-
interface Props extends UIProps<"div"> {
|
|
22
|
-
value?: string;
|
|
23
|
-
isDisabled?: boolean;
|
|
24
|
-
indicator?: React.ReactNode;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
declare const AccordionItem: (props: AccordionItem.Props) => react.JSX.Element;
|
|
29
|
-
declare namespace AccordionItem {
|
|
30
|
-
interface Props extends useAccordionItem.Props {
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export { AccordionItem as A, useAccordionItem as u };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { u as useAccordionItem } from './accordion-item-C8aJ-HG6.js';
|
|
3
|
-
import '@jamsrui/utils';
|
|
4
|
-
import './accordion-content.js';
|
|
5
|
-
import './accordion-content-wrapper.js';
|
|
6
|
-
import 'motion/react';
|
|
7
|
-
import './accordion-heading-content.js';
|
|
8
|
-
import './accordion-indicator.js';
|
|
9
|
-
import './accordion-trigger.js';
|
|
10
|
-
|
|
11
|
-
declare const useAccordionItemContext: () => AccordionItemContextProvider.Type;
|
|
12
|
-
declare const useAccordionItemState: () => {
|
|
13
|
-
isOpen: boolean;
|
|
14
|
-
isDisabled: boolean | undefined;
|
|
15
|
-
indicator: react.ReactNode;
|
|
16
|
-
};
|
|
17
|
-
declare const AccordionItemContextProvider: (props: AccordionItemContextProvider.Props) => react.JSX.Element;
|
|
18
|
-
declare namespace AccordionItemContextProvider {
|
|
19
|
-
interface Type extends ReturnType<typeof useAccordionItem> {
|
|
20
|
-
}
|
|
21
|
-
interface Props {
|
|
22
|
-
ctx: Type;
|
|
23
|
-
children: React.ReactNode;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export { AccordionItemContextProvider, useAccordionItemContext, useAccordionItemState };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
|
-
var _chunkSO5PO6XKjs = require('./chunk-SO5PO6XK.js');exports.AccordionItemContextProvider = _chunkSO5PO6XKjs.a; exports.useAccordionItemContext = _chunkSO5PO6XKjs.b; exports.useAccordionItemState = _chunkSO5PO6XKjs.c;
|
package/dist/accordion-item.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import 'react';
|
|
2
|
-
export { A as AccordionItem } from './accordion-item-C8aJ-HG6.js';
|
|
3
|
-
import '@jamsrui/utils';
|
|
4
|
-
import './accordion-content.js';
|
|
5
|
-
import './accordion-content-wrapper.js';
|
|
6
|
-
import 'motion/react';
|
|
7
|
-
import './accordion-heading-content.js';
|
|
8
|
-
import './accordion-indicator.js';
|
|
9
|
-
import './accordion-trigger.js';
|
package/dist/accordion-item.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
|
-
var _chunkTKL7S3WDjs = require('./chunk-TKL7S3WD.js');require('./chunk-BHH7RUHV.js');require('./chunk-MYIQFE6C.js');require('./chunk-JCBC2HSN.js');require('./chunk-SO5PO6XK.js');exports.AccordionItem = _chunkTKL7S3WDjs.a;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
|
|
3
|
-
declare const useAccordionListItem: () => AccordionListItemContext.Type;
|
|
4
|
-
declare const AccordionListItemContext: react.Context<AccordionListItemContext.Type | null>;
|
|
5
|
-
declare namespace AccordionListItemContext {
|
|
6
|
-
interface Type {
|
|
7
|
-
index: number;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export { AccordionListItemContext, useAccordionListItem };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { UIProps } from '@jamsrui/utils';
|
|
3
|
-
|
|
4
|
-
declare const AccordionTrigger: (props: AccordionTrigger.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
5
|
-
declare namespace AccordionTrigger {
|
|
6
|
-
interface Props extends UIProps<"button"> {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export { AccordionTrigger };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
|
-
var _chunk5PG52LOTjs = require('./chunk-5PG52LOT.js');require('./chunk-6UVIASYR.js');require('./chunk-GWEMJIEZ.js');require('./chunk-3UAIVIWO.js');require('./chunk-JCBC2HSN.js');require('./chunk-SO5PO6XK.js');exports.AccordionTrigger = _chunk5PG52LOTjs.a;
|
package/dist/accordion.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import 'react';
|
|
2
|
-
export { A as Accordion } from './accordion-fJ8qgUop.js';
|
|
3
|
-
import 'tailwind-variants';
|
|
4
|
-
import '@jamsrui/utils';
|
|
5
|
-
import './accordion-content.js';
|
|
6
|
-
import './accordion-content-wrapper.js';
|
|
7
|
-
import 'motion/react';
|
|
8
|
-
import './accordion-heading-content.js';
|
|
9
|
-
import './accordion-indicator.js';
|
|
10
|
-
import './accordion-item-C8aJ-HG6.js';
|
|
11
|
-
import './accordion-trigger.js';
|
|
12
|
-
import './styles.js';
|
package/dist/accordion.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
|
-
var _chunkHLLSKKJMjs = require('./chunk-HLLSKKJM.js');require('./chunk-OQKIABXQ.js');require('./chunk-7IPMKOW5.js');require('./chunk-KC2PTXCT.js');require('./chunk-MYIQFE6C.js');require('./chunk-JCBC2HSN.js');exports.Accordion = _chunkHLLSKKJMjs.a;
|
package/dist/chunk-3KSKR3LG.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
import{a as n}from"./chunk-5KYCVUKE.mjs";import{a as c}from"./chunk-AJ5VRSYU.mjs";import{b as e}from"./chunk-RQEXQX27.mjs";import{b as t}from"./chunk-REL7EDKS.mjs";import{useRenderElement as p}from"@jamsrui/hooks";import{mergeProps as g}from"@jamsrui/utils";var C=o=>{let{children:i}=o,r=e(),s=g(r.slotProps?.trigger??{},o),{getTriggerProps:m}=t(),d=React.createElement(React.Fragment,null,React.createElement(n,null,i),r.hideIndicator?null:React.createElement(c,null));return p("button",{props:[m(s),{children:d}]})};export{C as a};
|
package/dist/chunk-3UAIVIWO.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
|
-
var r=o=>React.createElement("svg",{fill:"none",height:20,stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",width:20,xmlns:"http://www.w3.org/2000/svg",...o},React.createElement("path",{d:"m6 9 6 6 6-6"}));exports.a = r;
|
package/dist/chunk-5KYCVUKE.mjs
DELETED
package/dist/chunk-5PG52LOT.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client"
|
|
2
|
-
var _chunk6UVIASYRjs = require('./chunk-6UVIASYR.js');var _chunkGWEMJIEZjs = require('./chunk-GWEMJIEZ.js');var _chunkJCBC2HSNjs = require('./chunk-JCBC2HSN.js');var _chunkSO5PO6XKjs = require('./chunk-SO5PO6XK.js');var _hooks = require('@jamsrui/hooks');var _utils = require('@jamsrui/utils');var C=o=>{let{children:i}=o,r=_chunkJCBC2HSNjs.b.call(void 0, ),s=_utils.mergeProps.call(void 0, _nullishCoalesce(_optionalChain([r, 'access', _ => _.slotProps, 'optionalAccess', _2 => _2.trigger]), () => ({})),o),{getTriggerProps:m}=_chunkSO5PO6XKjs.b.call(void 0, ),d=React.createElement(React.Fragment,null,React.createElement(_chunk6UVIASYRjs.a,null,i),r.hideIndicator?null:React.createElement(_chunkGWEMJIEZjs.a,null));return _hooks.useRenderElement.call(void 0, "button",{props:[m(s),{children:d}]})};exports.a = C;
|
package/dist/chunk-6MXHW7QL.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client"
|
|
2
|
-
var _chunkREF3PGRVjs = require('./chunk-REF3PGRV.js');var _chunkJCBC2HSNjs = require('./chunk-JCBC2HSN.js');var _chunkSO5PO6XKjs = require('./chunk-SO5PO6XK.js');var _hooks = require('@jamsrui/hooks');var _utils = require('@jamsrui/utils');var _react = require('motion/react');var l=t=>{let n=_chunkJCBC2HSNjs.b.call(void 0, ),p=_utils.mergeProps.call(void 0, _nullishCoalesce(_optionalChain([n, 'access', _ => _.slotProps, 'optionalAccess', _2 => _2.content]), () => ({})),t),{isOpen:c,getContentProps:s}=_chunkSO5PO6XKjs.b.call(void 0, ),m=_hooks.useRenderElement.call(void 0, "div",{props:[s(p)]});return React.createElement(_react.AnimatePresence,null,!!c&&React.createElement(_chunkREF3PGRVjs.a,null,m))};exports.a = l;
|
package/dist/chunk-6UVIASYR.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
|
-
var _chunkSO5PO6XKjs = require('./chunk-SO5PO6XK.js');var _hooks = require('@jamsrui/hooks');var s=o=>{let{getHeadingContentProps:n}=_chunkSO5PO6XKjs.b.call(void 0, );return _hooks.useRenderElement.call(void 0, "div",{props:[n(o)]})};exports.a = s;
|
package/dist/chunk-746WPYID.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
import{a as r}from"./chunk-HVN4FG72.mjs";import{b as o}from"./chunk-RQEXQX27.mjs";import{b as e}from"./chunk-REL7EDKS.mjs";import{useRenderElement as i}from"@jamsrui/hooks";import{mergeProps as d}from"@jamsrui/utils";import{AnimatePresence as P}from"motion/react";var l=t=>{let n=o(),p=d(n.slotProps?.content??{},t),{isOpen:c,getContentProps:s}=e(),m=i("div",{props:[s(p)]});return React.createElement(P,null,!!c&&React.createElement(r,null,m))};export{l as a};
|
package/dist/chunk-7IPMKOW5.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
|
-
var _utils = require('@jamsrui/utils');var o="",i= exports.b =_utils.tv.call(void 0, {slots:{root:"flex flex-col",item:"bg-surface ui-disabled:opacity-80 ui-disabled:cursor-not-allowed",header:"flex items-center gap-2",trigger:["flex w-full items-center relative gap-3 py-4 px-4","focus-visible:outline-2 focus-visible:outline-primary focus-visible:z-10"],content:"py-2 text-base px-4",contentWrapper:"overflow-hidden",indicator:"rotate-0 transition-transform duration-500 data-[open=true]:-rotate-180",headingContent:"text-left grow"},variants:{variant:{light:"",splitted:{root:"flex flex-col gap-4"}},radius:_utils.radiusVariant.call(void 0, ["item","trigger","content"])},defaultVariants:{variant:"light",radius:"md"}});exports.a = o; exports.b = i;
|
package/dist/chunk-AJ5VRSYU.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
import{a as r}from"./chunk-B5KGPCHX.mjs";import{b as o}from"./chunk-REL7EDKS.mjs";import{useRenderElement as c}from"@jamsrui/hooks";var m=e=>{let{getIndicatorProps:n,indicator:t}=o();return c("span",{props:[n(e),{children:t??React.createElement(r,null)}]})};export{m as a};
|
package/dist/chunk-B5KGPCHX.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
var r=o=>React.createElement("svg",{fill:"none",height:20,stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",width:20,xmlns:"http://www.w3.org/2000/svg",...o},React.createElement("path",{d:"m6 9 6 6 6-6"}));export{r as a};
|
package/dist/chunk-B6BHXTLD.mjs
DELETED
package/dist/chunk-BHH7RUHV.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client"
|
|
2
|
-
var _chunkMYIQFE6Cjs = require('./chunk-MYIQFE6C.js');var _chunkJCBC2HSNjs = require('./chunk-JCBC2HSN.js');var _react = require('react');var _utils = require('@jamsrui/utils');var F=O=>{let{styles:t,classNames:o,handleAccordionOpen:u,value:C,elementRefs:n,slotProps:s}=_chunkJCBC2HSNjs.b.call(void 0, ),{index:a}=_chunkMYIQFE6Cjs.b.call(void 0, ),V=(a+1).toString(),{value:i=V,isDisabled:c,indicator:h,...b}=O,d=_react.useMemo.call(void 0, ()=>C.includes(i),[C,i]),N=n.current.length,f=_react.useId.call(void 0, ),P=_react.useId.call(void 0, ),w=_react.useCallback.call(void 0, e=>{n.current[a]=e},[n,a]),y=_react.useCallback.call(void 0, (e,A)=>{let I=A==="up"?-1:1,g=e;do{g=(g+I+N)%N;let R=n.current[g];if(R&&!_utils.isDisabledElement.call(void 0, R))return g}while(g!==e);return e},[n,N]),p=_react.useCallback.call(void 0, (e,A)=>{let I=y(e,A);_optionalChain([n, 'access', _ => _.current, 'access', _2 => _2[I], 'optionalAccess', _3 => _3.focus, 'call', _4 => _4()])},[n,y]),D=_react.useCallback.call(void 0, ()=>{n.current[a]&&_optionalChain([n, 'access', _5 => _5.current, 'access', _6 => _6[a], 'optionalAccess', _7 => _7.blur, 'call', _8 => _8()])},[n,a]),x=_react.useCallback.call(void 0, e=>{switch(e.key){case"Enter":case" ":e.preventDefault(),u(i);break;case"ArrowUp":e.preventDefault(),p(a,"up");break;case"ArrowDown":e.preventDefault(),p(a,"down");break;case"Home":e.preventDefault(),p(-1,"down");break;case"End":e.preventDefault(),p(0,"up");break;case"Escape":e.preventDefault(),D();break;default:break}},[D,p,u,a,i]),k=_react.useCallback.call(void 0, e=>({...b,...e,"data-slot":_utils.dataAttrDev.call(void 0, "item"),className:t.item({className:_utils.cn.call(void 0, _optionalChain([o, 'optionalAccess', _9 => _9.item]),b.className,e.className)}),"aria-disabled":c,"data-disabled":c}),[_optionalChain([o, 'optionalAccess', _10 => _10.item]),b,c,t]),E=_react.useCallback.call(void 0, e=>({...e,"data-slot":_utils.dataAttrDev.call(void 0, "content-wrapper"),className:t.contentWrapper({className:_utils.cn.call(void 0, _optionalChain([o, 'optionalAccess', _11 => _11.contentWrapper]),e.className)})}),[_optionalChain([o, 'optionalAccess', _12 => _12.contentWrapper]),t]),G=_react.useCallback.call(void 0, e=>({...e,"data-slot":_utils.dataAttrDev.call(void 0, "content"),className:t.content({className:_utils.cn.call(void 0, _optionalChain([o, 'optionalAccess', _13 => _13.content]),e.className)}),role:"region","aria-labelledby":f,id:P}),[_optionalChain([o, 'optionalAccess', _14 => _14.content]),P,t,f]),v=_react.useCallback.call(void 0, e=>({..._utils.mergeProps.call(void 0, e,{ref:w,onClick:()=>{u(i)},onKeyDown:x,disabled:c,"aria-disabled":c,"data-disabled":c}),"data-slot":_utils.dataAttrDev.call(void 0, "trigger"),className:t.trigger({className:_utils.cn.call(void 0, _optionalChain([o, 'optionalAccess', _15 => _15.trigger]),e.className)}),id:f,"aria-expanded":d,"aria-controls":P}),[w,x,c,t,_optionalChain([o, 'optionalAccess', _16 => _16.trigger]),f,d,P,u,i]),W=_react.useCallback.call(void 0, e=>({..._optionalChain([s, 'optionalAccess', _17 => _17.trigger]),...e,"data-slot":_utils.dataAttrDev.call(void 0, "indicator"),"data-open":d,className:t.indicator({className:_utils.cn.call(void 0, _optionalChain([s, 'optionalAccess', _18 => _18.indicator, 'optionalAccess', _19 => _19.className]),_optionalChain([o, 'optionalAccess', _20 => _20.indicator]),e.className)})}),[_optionalChain([o, 'optionalAccess', _21 => _21.indicator]),d,_optionalChain([s, 'optionalAccess', _22 => _22.indicator, 'optionalAccess', _23 => _23.className]),_optionalChain([s, 'optionalAccess', _24 => _24.trigger]),t]),H=_react.useCallback.call(void 0, e=>({..._utils.mergeProps.call(void 0, _optionalChain([s, 'optionalAccess', _25 => _25.headingContent]),e),"data-slot":_utils.dataAttrDev.call(void 0, "heading-content"),className:t.headingContent({className:_utils.cn.call(void 0, _optionalChain([s, 'optionalAccess', _26 => _26.headingContent, 'optionalAccess', _27 => _27.className]),_optionalChain([o, 'optionalAccess', _28 => _28.headingContent]),e.className)})}),[_optionalChain([o, 'optionalAccess', _29 => _29.headingContent]),_optionalChain([s, 'optionalAccess', _30 => _30.headingContent]),t]);return _react.useMemo.call(void 0, ()=>({getItemProps:k,getContentProps:G,getTriggerProps:v,getContentWrapperProps:E,getIndicatorProps:W,getHeadingContentProps:H,isOpen:d,indicator:h,isDisabled:c}),[k,G,v,E,W,H,d,h,c])};exports.a = F;
|
package/dist/chunk-FKUMBOKA.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
import{b as K}from"./chunk-B6BHXTLD.mjs";import{b as T}from"./chunk-RQEXQX27.mjs";import{useCallback as r,useId as U,useMemo as L}from"react";import{cn as l,dataAttrDev as m,isDisabledElement as j,mergeProps as M}from"@jamsrui/utils";var F=O=>{let{styles:t,classNames:o,handleAccordionOpen:u,value:C,elementRefs:n,slotProps:s}=T(),{index:a}=K(),V=(a+1).toString(),{value:i=V,isDisabled:c,indicator:h,...b}=O,d=L(()=>C.includes(i),[C,i]),N=n.current.length,f=U(),P=U(),w=r(e=>{n.current[a]=e},[n,a]),y=r((e,A)=>{let I=A==="up"?-1:1,g=e;do{g=(g+I+N)%N;let R=n.current[g];if(R&&!j(R))return g}while(g!==e);return e},[n,N]),p=r((e,A)=>{let I=y(e,A);n.current[I]?.focus()},[n,y]),D=r(()=>{n.current[a]&&n.current[a]?.blur()},[n,a]),x=r(e=>{switch(e.key){case"Enter":case" ":e.preventDefault(),u(i);break;case"ArrowUp":e.preventDefault(),p(a,"up");break;case"ArrowDown":e.preventDefault(),p(a,"down");break;case"Home":e.preventDefault(),p(-1,"down");break;case"End":e.preventDefault(),p(0,"up");break;case"Escape":e.preventDefault(),D();break;default:break}},[D,p,u,a,i]),k=r(e=>({...b,...e,"data-slot":m("item"),className:t.item({className:l(o?.item,b.className,e.className)}),"aria-disabled":c,"data-disabled":c}),[o?.item,b,c,t]),E=r(e=>({...e,"data-slot":m("content-wrapper"),className:t.contentWrapper({className:l(o?.contentWrapper,e.className)})}),[o?.contentWrapper,t]),G=r(e=>({...e,"data-slot":m("content"),className:t.content({className:l(o?.content,e.className)}),role:"region","aria-labelledby":f,id:P}),[o?.content,P,t,f]),v=r(e=>({...M(e,{ref:w,onClick:()=>{u(i)},onKeyDown:x,disabled:c,"aria-disabled":c,"data-disabled":c}),"data-slot":m("trigger"),className:t.trigger({className:l(o?.trigger,e.className)}),id:f,"aria-expanded":d,"aria-controls":P}),[w,x,c,t,o?.trigger,f,d,P,u,i]),W=r(e=>({...s?.trigger,...e,"data-slot":m("indicator"),"data-open":d,className:t.indicator({className:l(s?.indicator?.className,o?.indicator,e.className)})}),[o?.indicator,d,s?.indicator?.className,s?.trigger,t]),H=r(e=>({...M(s?.headingContent,e),"data-slot":m("heading-content"),className:t.headingContent({className:l(s?.headingContent?.className,o?.headingContent,e.className)})}),[o?.headingContent,s?.headingContent,t]);return L(()=>({getItemProps:k,getContentProps:G,getTriggerProps:v,getContentWrapperProps:E,getIndicatorProps:W,getHeadingContentProps:H,isOpen:d,indicator:h,isDisabled:c}),[k,G,v,E,W,H,d,h,c])};export{F as a};
|
package/dist/chunk-GWEMJIEZ.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }"use client"
|
|
2
|
-
var _chunk3UAIVIWOjs = require('./chunk-3UAIVIWO.js');var _chunkSO5PO6XKjs = require('./chunk-SO5PO6XK.js');var _hooks = require('@jamsrui/hooks');var m=e=>{let{getIndicatorProps:n,indicator:t}=_chunkSO5PO6XKjs.b.call(void 0, );return _hooks.useRenderElement.call(void 0, "span",{props:[n(e),{children:_nullishCoalesce(t, () => (React.createElement(_chunk3UAIVIWOjs.a,null)))}]})};exports.a = m;
|
package/dist/chunk-HLLSKKJM.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
|
-
var _chunkOQKIABXQjs = require('./chunk-OQKIABXQ.js');var _chunkKC2PTXCTjs = require('./chunk-KC2PTXCT.js');var _chunkMYIQFE6Cjs = require('./chunk-MYIQFE6C.js');var _chunkJCBC2HSNjs = require('./chunk-JCBC2HSN.js');var _react = require('react');var _hooks = require('@jamsrui/hooks');var _utils = require('@jamsrui/utils');var L=s=>{let o=_chunkKC2PTXCTjs.b.call(void 0, ),r=_utils.mergeConfigProps.call(void 0, o,o,s),e=_chunkOQKIABXQjs.a.call(void 0, r),{getRootProps:m}=e,{children:d}=r,p=_react.Children.map(d,(A,x)=>React.createElement(_chunkMYIQFE6Cjs.a,{value:{index:x}},A)),f=_hooks.useRenderElement.call(void 0, "div",{props:[m({}),{children:p}]});return React.createElement(_chunkJCBC2HSNjs.a,{ctx:e},f)};exports.a = L;
|
package/dist/chunk-HVN4FG72.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
import{b as o}from"./chunk-RQEXQX27.mjs";import{b as t}from"./chunk-REL7EDKS.mjs";import{mergeProps as i,TRANSITION_VARIANTS as c}from"@jamsrui/utils";import{motion as s}from"motion/react";var C=e=>{let r=o(),n=i(r.slotProps?.contentWrapper??{},e),{getContentWrapperProps:p}=t();return React.createElement(s.section,{animate:"enter",exit:"exit",initial:"exit",variants:c.collapse,...p(n)})};export{C as a};
|
package/dist/chunk-J7DWXUO6.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
import{a as i}from"./chunk-ZYZQ6BLD.mjs";import{b as t}from"./chunk-R6PXBFOT.mjs";import{a as c}from"./chunk-B6BHXTLD.mjs";import{a as n}from"./chunk-RQEXQX27.mjs";import{Children as C}from"react";import{useRenderElement as P}from"@jamsrui/hooks";import{mergeConfigProps as l}from"@jamsrui/utils";var L=s=>{let o=t(),r=l(o,o,s),e=i(r),{getRootProps:m}=e,{children:d}=r,p=C.map(d,(A,x)=>React.createElement(c,{value:{index:x}},A)),f=P("div",{props:[m({}),{children:p}]});return React.createElement(n,{ctx:e},f)};export{L as a};
|
package/dist/chunk-JCBC2HSN.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
|
-
var _react = require('react');var e=_react.createContext.call(void 0, null),d= exports.a =o=>{let{children:t,ctx:r}=o;return React.createElement(e,{value:r},t)},x= exports.b =()=>{let o=_react.use.call(void 0, e);if(!o)throw new Error("useAccordionContext must be used within AccordionContextProvider");return o};exports.a = d; exports.b = x;
|
package/dist/chunk-KC2PTXCT.js
DELETED
package/dist/chunk-MYIQFE6C.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
|
-
var _react = require('react');var n=_react.createContext.call(void 0, null),c= exports.b =()=>{let t=_react.use.call(void 0, n);if(!t)throw new Error("AccordionListItemContext not found");return t};exports.a = n; exports.b = c;
|
package/dist/chunk-OQKIABXQ.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client"
|
|
2
|
-
var _chunk7IPMKOW5js = require('./chunk-7IPMKOW5.js');var _react = require('react');var _hooks = require('@jamsrui/hooks');var _utils = require('@jamsrui/utils');var O=C=>{let[V,y]=_utils.mapPropsVariants.call(void 0, C,_chunk7IPMKOW5js.b.variantKeys),{value:h,defaultValue:v,isDisabled:d,onValueChange:n,isMultiple:m,loop:D,slotProps:u,classNames:r,hideIndicator:A,...c}=V,[e=[],a]=_hooks.useControlledState.call(void 0, {defaultProp:v,onChange:n,prop:h}),f=_react.useCallback.call(void 0, ()=>{},[]),t=_chunk7IPMKOW5js.b.call(void 0, y),I=_react.useRef.call(void 0, []),P=_react.useCallback.call(void 0, o=>{let s=e.includes(o);if(m){let i=new Set(e);s?i.delete(o):i.add(o),a(Array.from(i))}else a(s?[]:[o]),_optionalChain([n, 'optionalCall', _ => _(s?[]:[o])])},[m,n,a,e]),g=_react.useCallback.call(void 0, o=>({...c,...o,"data-slot":_utils.dataAttrDev.call(void 0, "root"),className:t.root({className:_utils.cn.call(void 0, _optionalChain([r, 'optionalAccess', _2 => _2.root]),c.className,o.className)})}),[_optionalChain([r, 'optionalAccess', _3 => _3.root]),c,t]);return _react.useMemo.call(void 0, ()=>({getRootProps:g,handleValueChange:f,value:e,isDisabled:d,slotProps:u,classNames:r,styles:t,handleAccordionOpen:P,elementRefs:I,hideIndicator:A}),[r,g,P,f,d,u,t,e,A])};exports.a = O;
|
package/dist/chunk-R6PXBFOT.mjs
DELETED
package/dist/chunk-REF3PGRV.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client"
|
|
2
|
-
var _chunkJCBC2HSNjs = require('./chunk-JCBC2HSN.js');var _chunkSO5PO6XKjs = require('./chunk-SO5PO6XK.js');var _utils = require('@jamsrui/utils');var _react = require('motion/react');var C=e=>{let r=_chunkJCBC2HSNjs.b.call(void 0, ),n=_utils.mergeProps.call(void 0, _nullishCoalesce(_optionalChain([r, 'access', _ => _.slotProps, 'optionalAccess', _2 => _2.contentWrapper]), () => ({})),e),{getContentWrapperProps:p}=_chunkSO5PO6XKjs.b.call(void 0, );return React.createElement(_react.motion.section,{animate:"enter",exit:"exit",initial:"exit",variants:_utils.TRANSITION_VARIANTS.collapse,...p(n)})};exports.a = C;
|
package/dist/chunk-REL7EDKS.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
import{createContext as n,use as c}from"react";var t=n(null),s=e=>{let{children:o,ctx:r}=e;return React.createElement(t,{value:r},o)},i=()=>{let e=c(t);if(!e)throw new Error("useAccordionItemContext must be used within AccordionItemContextProvider");return e},x=()=>{let e=i();return{isOpen:e.isOpen,isDisabled:e.isDisabled,indicator:e.indicator}};export{s as a,i as b,x as c};
|
package/dist/chunk-RQEXQX27.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
import{createContext as c,use as n}from"react";var e=c(null),d=o=>{let{children:t,ctx:r}=o;return React.createElement(e,{value:r},t)},x=()=>{let o=n(e);if(!o)throw new Error("useAccordionContext must be used within AccordionContextProvider");return o};export{d as a,x as b};
|
package/dist/chunk-SO5PO6XK.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
|
-
var _react = require('react');var t=_react.createContext.call(void 0, null),s= exports.a =e=>{let{children:o,ctx:r}=e;return React.createElement(t,{value:r},o)},i= exports.b =()=>{let e=_react.use.call(void 0, t);if(!e)throw new Error("useAccordionItemContext must be used within AccordionItemContextProvider");return e},x= exports.c =()=>{let e=i();return{isOpen:e.isOpen,isDisabled:e.isDisabled,indicator:e.indicator}};exports.a = s; exports.b = i; exports.c = x;
|
package/dist/chunk-TKL7S3WD.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client"
|
|
2
|
-
var _chunkBHH7RUHVjs = require('./chunk-BHH7RUHV.js');var _chunkJCBC2HSNjs = require('./chunk-JCBC2HSN.js');var _chunkSO5PO6XKjs = require('./chunk-SO5PO6XK.js');var _hooks = require('@jamsrui/hooks');var _utils = require('@jamsrui/utils');var u=c=>{let n=_chunkJCBC2HSNjs.b.call(void 0, ),m=_utils.mergeProps.call(void 0, _nullishCoalesce(_optionalChain([n, 'access', _ => _.slotProps, 'optionalAccess', _2 => _2.item]), () => ({})),c),o=_chunkBHH7RUHVjs.a.call(void 0, m),{getItemProps:s}=o,i=_hooks.useRenderElement.call(void 0, "div",{props:[s({})]});return React.createElement(_chunkSO5PO6XKjs.a,{ctx:o},i)};exports.a = u;
|
package/dist/chunk-U5LPS5QH.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
import{radiusVariant as t,tv as e}from"@jamsrui/utils";var o="",i=e({slots:{root:"flex flex-col",item:"bg-surface ui-disabled:opacity-80 ui-disabled:cursor-not-allowed",header:"flex items-center gap-2",trigger:["flex w-full items-center relative gap-3 py-4 px-4","focus-visible:outline-2 focus-visible:outline-primary focus-visible:z-10"],content:"py-2 text-base px-4",contentWrapper:"overflow-hidden",indicator:"rotate-0 transition-transform duration-500 data-[open=true]:-rotate-180",headingContent:"text-left grow"},variants:{variant:{light:"",splitted:{root:"flex flex-col gap-4"}},radius:t(["item","trigger","content"])},defaultVariants:{variant:"light",radius:"md"}});export{o as a,i as b};
|
package/dist/chunk-XB7QSVNE.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
import{a as t}from"./chunk-FKUMBOKA.mjs";import{b as r}from"./chunk-RQEXQX27.mjs";import{a as e}from"./chunk-REL7EDKS.mjs";import{useRenderElement as p}from"@jamsrui/hooks";import{mergeProps as d}from"@jamsrui/utils";var u=c=>{let n=r(),m=d(n.slotProps?.item??{},c),o=t(m),{getItemProps:s}=o,i=p("div",{props:[s({})]});return React.createElement(e,{ctx:o},i)};export{u as a};
|
package/dist/chunk-ZYZQ6BLD.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
import{b as p}from"./chunk-U5LPS5QH.mjs";import{useCallback as l,useMemo as N,useRef as b}from"react";import{useControlledState as S}from"@jamsrui/hooks";import{cn as T,dataAttrDev as M,mapPropsVariants as w}from"@jamsrui/utils";var O=C=>{let[V,y]=w(C,p.variantKeys),{value:h,defaultValue:v,isDisabled:d,onValueChange:n,isMultiple:m,loop:D,slotProps:u,classNames:r,hideIndicator:A,...c}=V,[e=[],a]=S({defaultProp:v,onChange:n,prop:h}),f=l(()=>{},[]),t=p(y),I=b([]),P=l(o=>{let s=e.includes(o);if(m){let i=new Set(e);s?i.delete(o):i.add(o),a(Array.from(i))}else a(s?[]:[o]),n?.(s?[]:[o])},[m,n,a,e]),g=l(o=>({...c,...o,"data-slot":M("root"),className:t.root({className:T(r?.root,c.className,o.className)})}),[r?.root,c,t]);return N(()=>({getRootProps:g,handleValueChange:f,value:e,isDisabled:d,slotProps:u,classNames:r,styles:t,handleAccordionOpen:P,elementRefs:I,hideIndicator:A}),[r,g,P,f,d,u,t,e,A])};export{O as a};
|
package/dist/icons.d.ts
DELETED
package/dist/icons.js
DELETED
package/dist/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export { A as Accordion } from './accordion-fJ8qgUop.js';
|
|
2
|
-
export { AccordionConfig, useAccordionConfig } from './accordion-config.js';
|
|
3
|
-
export { AccordionContent } from './accordion-content.js';
|
|
4
|
-
export { A as AccordionItem } from './accordion-item-C8aJ-HG6.js';
|
|
5
|
-
export { useAccordionItemState } from './accordion-item-context.js';
|
|
6
|
-
export { AccordionTrigger } from './accordion-trigger.js';
|
|
7
|
-
import 'react';
|
|
8
|
-
import 'tailwind-variants';
|
|
9
|
-
import '@jamsrui/utils';
|
|
10
|
-
import './accordion-content-wrapper.js';
|
|
11
|
-
import 'motion/react';
|
|
12
|
-
import './accordion-heading-content.js';
|
|
13
|
-
import './accordion-indicator.js';
|
|
14
|
-
import './styles.js';
|
|
15
|
-
import '@jamsrui/core';
|
package/dist/index.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
|
-
"use client";var _chunk5PG52LOTjs = require('./chunk-5PG52LOT.js');var _chunkHLLSKKJMjs = require('./chunk-HLLSKKJM.js');require('./chunk-OQKIABXQ.js');require('./chunk-7IPMKOW5.js');var _chunkKC2PTXCTjs = require('./chunk-KC2PTXCT.js');var _chunk6MXHW7QLjs = require('./chunk-6MXHW7QL.js');require('./chunk-REF3PGRV.js');require('./chunk-6UVIASYR.js');require('./chunk-GWEMJIEZ.js');require('./chunk-3UAIVIWO.js');var _chunkTKL7S3WDjs = require('./chunk-TKL7S3WD.js');require('./chunk-BHH7RUHV.js');require('./chunk-MYIQFE6C.js');require('./chunk-JCBC2HSN.js');var _chunkSO5PO6XKjs = require('./chunk-SO5PO6XK.js');exports.Accordion = _chunkHLLSKKJMjs.a; exports.AccordionConfig = _chunkKC2PTXCTjs.a; exports.AccordionContent = _chunk6MXHW7QLjs.a; exports.AccordionItem = _chunkTKL7S3WDjs.a; exports.AccordionTrigger = _chunk5PG52LOTjs.a; exports.useAccordionConfig = _chunkKC2PTXCTjs.b; exports.useAccordionItemState = _chunkSO5PO6XKjs.c;
|
package/dist/styles.d.ts
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
-
import { VariantProps } from '@jamsrui/utils';
|
|
3
|
-
|
|
4
|
-
declare const test = "";
|
|
5
|
-
declare const accordionVariants: tailwind_variants.TVReturnType<{
|
|
6
|
-
variant: {
|
|
7
|
-
light: string;
|
|
8
|
-
splitted: {
|
|
9
|
-
root: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
radius: {
|
|
13
|
-
sm: {};
|
|
14
|
-
md: {};
|
|
15
|
-
lg: {};
|
|
16
|
-
xl: {};
|
|
17
|
-
"2xl": {};
|
|
18
|
-
"3xl": {};
|
|
19
|
-
full: {};
|
|
20
|
-
none: {};
|
|
21
|
-
};
|
|
22
|
-
}, {
|
|
23
|
-
root: string;
|
|
24
|
-
item: string;
|
|
25
|
-
header: string;
|
|
26
|
-
trigger: string[];
|
|
27
|
-
content: string;
|
|
28
|
-
contentWrapper: string;
|
|
29
|
-
indicator: string;
|
|
30
|
-
headingContent: string;
|
|
31
|
-
}, undefined, {
|
|
32
|
-
variant: {
|
|
33
|
-
light: string;
|
|
34
|
-
splitted: {
|
|
35
|
-
root: string;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
radius: {
|
|
39
|
-
sm: {};
|
|
40
|
-
md: {};
|
|
41
|
-
lg: {};
|
|
42
|
-
xl: {};
|
|
43
|
-
"2xl": {};
|
|
44
|
-
"3xl": {};
|
|
45
|
-
full: {};
|
|
46
|
-
none: {};
|
|
47
|
-
};
|
|
48
|
-
}, {
|
|
49
|
-
root: string;
|
|
50
|
-
item: string;
|
|
51
|
-
header: string;
|
|
52
|
-
trigger: string[];
|
|
53
|
-
content: string;
|
|
54
|
-
contentWrapper: string;
|
|
55
|
-
indicator: string;
|
|
56
|
-
headingContent: string;
|
|
57
|
-
}, tailwind_variants.TVReturnType<{
|
|
58
|
-
variant: {
|
|
59
|
-
light: string;
|
|
60
|
-
splitted: {
|
|
61
|
-
root: string;
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
radius: {
|
|
65
|
-
sm: {};
|
|
66
|
-
md: {};
|
|
67
|
-
lg: {};
|
|
68
|
-
xl: {};
|
|
69
|
-
"2xl": {};
|
|
70
|
-
"3xl": {};
|
|
71
|
-
full: {};
|
|
72
|
-
none: {};
|
|
73
|
-
};
|
|
74
|
-
}, {
|
|
75
|
-
root: string;
|
|
76
|
-
item: string;
|
|
77
|
-
header: string;
|
|
78
|
-
trigger: string[];
|
|
79
|
-
content: string;
|
|
80
|
-
contentWrapper: string;
|
|
81
|
-
indicator: string;
|
|
82
|
-
headingContent: string;
|
|
83
|
-
}, undefined, unknown, unknown, undefined>>;
|
|
84
|
-
type AccordionVariants = VariantProps<typeof accordionVariants>;
|
|
85
|
-
type AccordionSlots = keyof ReturnType<typeof accordionVariants>;
|
|
86
|
-
|
|
87
|
-
export { type AccordionSlots, type AccordionVariants, accordionVariants, test };
|
package/dist/styles.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import 'react';
|
|
2
|
-
import '@jamsrui/utils';
|
|
3
|
-
import './accordion-content.js';
|
|
4
|
-
import './accordion-content-wrapper.js';
|
|
5
|
-
import './accordion-heading-content.js';
|
|
6
|
-
import './accordion-indicator.js';
|
|
7
|
-
export { u as useAccordionItem } from './accordion-item-C8aJ-HG6.js';
|
|
8
|
-
import './accordion-trigger.js';
|
|
9
|
-
import 'motion/react';
|
package/dist/use-accordion.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import 'react';
|
|
2
|
-
import 'tailwind-variants';
|
|
3
|
-
import '@jamsrui/utils';
|
|
4
|
-
export { u as useAccordion } from './accordion-fJ8qgUop.js';
|
|
5
|
-
import './accordion-content.js';
|
|
6
|
-
import './accordion-content-wrapper.js';
|
|
7
|
-
import './accordion-heading-content.js';
|
|
8
|
-
import './accordion-indicator.js';
|
|
9
|
-
import './accordion-item-C8aJ-HG6.js';
|
|
10
|
-
import './accordion-trigger.js';
|
|
11
|
-
import './styles.js';
|
|
12
|
-
import 'motion/react';
|
package/dist/use-accordion.js
DELETED