@aic-kits/react 0.4.0 → 0.4.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.
@@ -1,8 +1,8 @@
1
1
  import { default as React } from 'react';
2
- import { NavItem } from './types';
2
+ import { NavItemProps } from './types';
3
3
  interface HeaderNavProps {
4
- navItems?: NavItem[];
5
- onNavItemClick?: (item: NavItem) => void;
4
+ navItems?: NavItemProps[];
5
+ onNavItemClick?: (item: NavItemProps) => void;
6
6
  }
7
7
  export declare const HeaderNav: React.FC<HeaderNavProps>;
8
8
  export {};
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { NavItemProps } from './types';
3
+ export declare const NavItem: React.FC<NavItemProps>;
@@ -1,18 +1,18 @@
1
1
  import { Color } from '../../theme';
2
2
  import { BoxProps } from '../Box';
3
- export interface NavItem {
3
+ export interface NavItemProps {
4
4
  /**
5
5
  * Label for the navigation item
6
6
  */
7
7
  label: string;
8
- /**
9
- * URL or path for the navigation item
10
- */
11
- path: string;
12
8
  /**
13
9
  * Whether this navigation item is currently active
14
10
  */
15
11
  isActive?: boolean;
12
+ /**
13
+ * Called when the navigation item is clicked
14
+ */
15
+ onClick?: () => void;
16
16
  }
17
17
  export interface HeaderProps extends BoxProps {
18
18
  /**
@@ -22,7 +22,7 @@ export interface HeaderProps extends BoxProps {
22
22
  /**
23
23
  * Navigation items to display in the center of the header
24
24
  */
25
- navItems?: NavItem[];
25
+ navItems?: NavItemProps[];
26
26
  /**
27
27
  * Whether to show the user is signed in
28
28
  */
@@ -41,7 +41,7 @@ export interface HeaderProps extends BoxProps {
41
41
  /**
42
42
  * Called when a navigation item is clicked
43
43
  */
44
- onNavItemClick?: (item: NavItem) => void;
44
+ onNavItemClick?: (item: NavItemProps) => void;
45
45
  /**
46
46
  * Called when the sign in button is clicked
47
47
  */
package/dist/index.cjs CHANGED
@@ -163,7 +163,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[si]+=1);const ms=r=>({none:0,
163
163
  // Outlined: text becomes white
164
164
  ${r==="outlined"?`color: ${s.colors.white};`:""}
165
165
  // Text: opacity changes
166
- ${r==="text"?"opacity: 0.8;":""}
166
+ ${r==="text"?`color: ${s.colors.primary};`:""}
167
167
  `}
168
168
  }
169
169
  `,bc=ge(re)`
@@ -179,7 +179,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[si]+=1);const ms=r=>({none:0,
179
179
  &:hover {
180
180
  color: ${({theme:r})=>r.colors.primary};
181
181
  }
182
- `,$l=({navItems:r=[],onNavItemClick:s})=>{const i=l=>{s==null||s(l)};return A.jsx(re,{display:"flex",flexDirection:"row",justifyContent:"center",flex:1,mx:"xl",children:r.map((l,f)=>A.jsx(re,{mr:f<r.length-1?"lg":void 0,children:A.jsx(dr,{onClick:()=>i(l),children:A.jsx(T_,{$isActive:l.isActive,children:l.label})})},`nav-item-${f}`))})},Ml=({backgroundColor:r="white",navItems:s=[],isSignedIn:i=!1,userProfile:l,onLogoClick:f,onNavItemClick:_,onSignInClick:p,onRegisterClick:w,onProfileClick:x,...T})=>A.jsxs(re,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",width:"100%",p:"md",bgColor:r,...T,children:[A.jsx(Dl,{onLogoClick:f}),A.jsx($l,{navItems:s,onNavItemClick:_}),A.jsx(Wl,{isSignedIn:i,userProfile:l,onSignInClick:p,onRegisterClick:w,onProfileClick:x})]}),R_=({children:r,backgroundColor:s="white",header:i,...l})=>A.jsxs(re,{display:"flex",flexDirection:"column",width:"100%",height:"100%",position:"relative",bgColor:s,...l,children:[i&&A.jsx(Ml,{...i}),A.jsx(re,{flex:1,overflow:"auto",position:"relative",children:r})]}),I_=ge(re)`
182
+ `,R_=({label:r,isActive:s,onClick:i})=>A.jsx(dr,{onClick:i,children:A.jsx(T_,{$isActive:s,children:r})}),$l=({navItems:r=[]})=>A.jsx(re,{display:"flex",flexDirection:"row",justifyContent:"center",flex:1,mx:"xl",gap:"lg",children:r.map((s,i)=>A.jsx(R_,{...s},`nav-item-${i}`))}),Ml=({backgroundColor:r="white",navItems:s=[],isSignedIn:i=!1,userProfile:l,onLogoClick:f,onNavItemClick:_,onSignInClick:p,onRegisterClick:w,onProfileClick:x,...T})=>A.jsxs(re,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",width:"100%",p:"md",bgColor:r,...T,children:[A.jsx(Dl,{onLogoClick:f}),A.jsx($l,{navItems:s,onNavItemClick:_}),A.jsx(Wl,{isSignedIn:i,userProfile:l,onSignInClick:p,onRegisterClick:w,onProfileClick:x})]}),I_=({children:r,backgroundColor:s="white",header:i,...l})=>A.jsxs(re,{display:"flex",flexDirection:"column",width:"100%",height:"100%",position:"relative",bgColor:s,...l,children:[i&&A.jsx(Ml,{...i}),A.jsx(re,{flex:1,overflow:"auto",position:"relative",children:r})]}),O_=ge(re)`
183
183
  background-color: ${({theme:r,$color:s})=>r.colors[s]};
184
184
  ${({$orientation:r,$thickness:s})=>r==="horizontal"?`
185
185
  height: ${s}px;
@@ -188,7 +188,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[si]+=1);const ms=r=>({none:0,
188
188
  width: ${s}px;
189
189
  height: 100%;
190
190
  `}
191
- `,O_=({orientation:r="horizontal",color:s,thickness:i,...l})=>{var T,I,E,F;const f=We(),_=(I=(T=f.components)==null?void 0:T.divider)==null?void 0:I.defaultColor,p=(F=(E=f.components)==null?void 0:E.divider)==null?void 0:F.defaultThickness,w=s||_||"grey300",x=i||p||1;return A.jsx(I_,{$orientation:r,$color:w,$thickness:x,...l})},L_=ge.div`
191
+ `,L_=({orientation:r="horizontal",color:s,thickness:i,...l})=>{var T,I,E,F;const f=We(),_=(I=(T=f.components)==null?void 0:T.divider)==null?void 0:I.defaultColor,p=(F=(E=f.components)==null?void 0:E.divider)==null?void 0:F.defaultThickness,w=s||_||"grey300",x=i||p||1;return A.jsx(O_,{$orientation:r,$color:w,$thickness:x,...l})},P_=ge.div`
192
192
  display: flex;
193
193
  flex-direction: row;
194
194
  align-items: center;
@@ -199,7 +199,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[si]+=1);const ms=r=>({none:0,
199
199
  background-color: ${F};
200
200
  opacity: ${i?.7:1};
201
201
  `}}
202
- `,P_=ge.input`
202
+ `,B_=ge.input`
203
203
  flex: 1;
204
204
  border: none;
205
205
  background: transparent;
@@ -214,20 +214,20 @@ See https://s-c.sh/2BAXzed for more info.`),window[si]+=1);const ms=r=>({none:0,
214
214
  &:disabled {
215
215
  cursor: not-allowed;
216
216
  }
217
- `,Nl=k.forwardRef(({value:r="",onChange:s,placeholder:i="",disabled:l=!1,error:f,label:_,helperText:p,leftIcon:w,rightIcon:x,borderColor:T,bgColor:I,...E},F)=>{const[D,H]=k.useState(!1),J=k.useRef(null),[U,j]=k.useState(r);k.useEffect(()=>{j(r)},[r]),k.useImperativeHandle(F,()=>({focus:()=>{var W;return(W=J.current)==null?void 0:W.focus()},blur:()=>{var W;return(W=J.current)==null?void 0:W.blur()},get value(){return U}}));const K=W=>{var B;H(!0),(B=E.onFocus)==null||B.call(E,W)},z=W=>{var B;H(!1),(B=E.onBlur)==null||B.call(E,W)},G=W=>{const B=W.target.value;j(B),s==null||s(B)};return A.jsxs(re,{fw:!0,children:[_&&A.jsx(re,{mb:"xs",children:A.jsx($n,{fontWeight:"medium",children:_})}),A.jsxs(L_,{$isFocused:D,$isDisabled:l,$error:!!f,$borderColor:T,$bgColor:I,children:[w&&A.jsx(re,{mr:"sm",children:w}),A.jsx(P_,{ref:J,value:U,onChange:G,onFocus:K,onBlur:z,placeholder:i,disabled:l,...E}),x&&A.jsx(re,{ml:"sm",children:x})]}),(f||p)&&A.jsx(re,{mt:"xs",children:A.jsx($n,{fontSize:"xs",color:f?"danger":"grey600",children:f||p})})]})});Nl.displayName="Input";const B_=ge(re)`
217
+ `,Nl=k.forwardRef(({value:r="",onChange:s,placeholder:i="",disabled:l=!1,error:f,label:_,helperText:p,leftIcon:w,rightIcon:x,borderColor:T,bgColor:I,...E},F)=>{const[D,H]=k.useState(!1),J=k.useRef(null),[U,j]=k.useState(r);k.useEffect(()=>{j(r)},[r]),k.useImperativeHandle(F,()=>({focus:()=>{var W;return(W=J.current)==null?void 0:W.focus()},blur:()=>{var W;return(W=J.current)==null?void 0:W.blur()},get value(){return U}}));const K=W=>{var B;H(!0),(B=E.onFocus)==null||B.call(E,W)},z=W=>{var B;H(!1),(B=E.onBlur)==null||B.call(E,W)},G=W=>{const B=W.target.value;j(B),s==null||s(B)};return A.jsxs(re,{fw:!0,children:[_&&A.jsx(re,{mb:"xs",children:A.jsx($n,{fontWeight:"medium",children:_})}),A.jsxs(P_,{$isFocused:D,$isDisabled:l,$error:!!f,$borderColor:T,$bgColor:I,children:[w&&A.jsx(re,{mr:"sm",children:w}),A.jsx(B_,{ref:J,value:U,onChange:G,onFocus:K,onBlur:z,placeholder:i,disabled:l,...E}),x&&A.jsx(re,{ml:"sm",children:x})]}),(f||p)&&A.jsx(re,{mt:"xs",children:A.jsx($n,{fontSize:"xs",color:f?"danger":"grey600",children:f||p})})]})});Nl.displayName="Input";const F_=ge(re)`
218
218
  overflow: auto;
219
219
  width: 100%;
220
- `,F_=ge(re)`
220
+ `,W_=ge(re)`
221
221
  display: flex;
222
222
  flex-direction: column;
223
- `;function W_({data:r=[],renderItem:s,keyExtractor:i,ListEmptyComponent:l,ListHeaderComponent:f,ListFooterComponent:_,ItemSeparatorComponent:p,itemGap:w,...x},T){var U,j,K,z;const I=We(),E=((j=(U=I.components)==null?void 0:U.list)==null?void 0:j.defaultGap)||"xs",F=w||E,D=((z=(K=I.components)==null?void 0:K.list)==null?void 0:z.defaultPadding)||"0px",H=x.p||x.padding||D,J=()=>r.length===0&&l?l:r.map((G,W)=>{const B=i?i(G,W):String(W),L=s?s(G,W):null;return L?A.jsxs(k.Fragment,{children:[L,p&&W<r.length-1?p:null]},B):null});return A.jsx(B_,{ref:T,p:H,...x,children:A.jsxs(F_,{gap:F,children:[f,J(),_]})})}const D_=k.forwardRef(W_),$_=Mm`
223
+ `;function D_({data:r=[],renderItem:s,keyExtractor:i,ListEmptyComponent:l,ListHeaderComponent:f,ListFooterComponent:_,ItemSeparatorComponent:p,itemGap:w,...x},T){var U,j,K,z;const I=We(),E=((j=(U=I.components)==null?void 0:U.list)==null?void 0:j.defaultGap)||"xs",F=w||E,D=((z=(K=I.components)==null?void 0:K.list)==null?void 0:z.defaultPadding)||"0px",H=x.p||x.padding||D,J=()=>r.length===0&&l?l:r.map((G,W)=>{const B=i?i(G,W):String(W),L=s?s(G,W):null;return L?A.jsxs(k.Fragment,{children:[L,p&&W<r.length-1?p:null]},B):null});return A.jsx(F_,{ref:T,p:H,...x,children:A.jsxs(W_,{gap:F,children:[f,J(),_]})})}const $_=k.forwardRef(D_),M_=Mm`
224
224
  0% {
225
225
  background-position: -468px 0;
226
226
  }
227
227
  100% {
228
228
  background-position: 468px 0;
229
229
  }
230
- `,M_=ge.div`
230
+ `,N_=ge.div`
231
231
  width: 100%;
232
232
  height: 100%;
233
233
  border-radius: ${({theme:r,$variant:s})=>{var l,f;const i=(f=(l=r.components)==null?void 0:l.skeleton)==null?void 0:f.borderRadius;if(i)switch(s){case"circle":return i.circle;case"rounded":return i.rounded;default:return i.rectangle}switch(s){case"circle":return"50%";case"rounded":return"8px";default:return"0"}}};
@@ -238,28 +238,28 @@ See https://s-c.sh/2BAXzed for more info.`),window[si]+=1);const ms=r=>({none:0,
238
238
  ${f} 33%
239
239
  )`}};
240
240
  background-size: 800px 100px;
241
- animation: ${$_} ${({theme:r,$duration:s})=>{var l,f,_;const i=(_=(f=(l=r.components)==null?void 0:l.skeleton)==null?void 0:f.animation)==null?void 0:_.duration;return i||s}}ms linear infinite;
241
+ animation: ${M_} ${({theme:r,$duration:s})=>{var l,f,_;const i=(_=(f=(l=r.components)==null?void 0:l.skeleton)==null?void 0:f.animation)==null?void 0:_.duration;return i||s}}ms linear infinite;
242
242
  will-change: background-position;
243
243
  transform: translateZ(0); /* Force hardware acceleration */
244
- `,N_=({variant:r,duration:s=1500})=>{var _,p,w;const f=((w=(p=(_=We().components)==null?void 0:_.skeleton)==null?void 0:p.animation)==null?void 0:w.duration)||s||1500;return A.jsx(M_,{$variant:r,$duration:f})},k_=ge.div`
244
+ `,k_=({variant:r,duration:s=1500})=>{var _,p,w;const f=((w=(p=(_=We().components)==null?void 0:_.skeleton)==null?void 0:p.animation)==null?void 0:w.duration)||s||1500;return A.jsx(N_,{$variant:r,$duration:f})},z_=ge.div`
245
245
  position: relative;
246
246
  overflow: hidden;
247
- `,z_=ge.div`
247
+ `,H_=ge.div`
248
248
  position: relative;
249
249
  width: 100%;
250
250
  height: 100%;
251
- `,H_=ge.div`
251
+ `,U_=ge.div`
252
252
  position: absolute;
253
253
  top: 0;
254
254
  left: 0;
255
255
  right: 0;
256
256
  bottom: 0;
257
- `,U_=({visible:r,variant:s,animationDuration:i,children:l,style:f,className:_,width:p,height:w})=>{var z,G,W,B,L,he,Se,Ct,At,Et,mt,be;const x=We(),[T,I]=k.useState(r),[E,F]=k.useState(r?1:0),[D,H]=k.useState(r?0:1),J=((B=(W=(G=(z=x.components)==null?void 0:z.skeleton)==null?void 0:G.animation)==null?void 0:W.transition)==null?void 0:B.fadeInDuration)||250,U=((Ct=(Se=(he=(L=x.components)==null?void 0:L.skeleton)==null?void 0:he.animation)==null?void 0:Se.transition)==null?void 0:Ct.fadeOutDuration)||250,j=((be=(mt=(Et=(At=x.components)==null?void 0:At.skeleton)==null?void 0:Et.animation)==null?void 0:mt.transition)==null?void 0:be.contentFadeDuration)||300;k.useEffect(()=>{let Xt;return r?(I(!0),F(1),H(0)):(F(0),H(1),Xt=setTimeout(()=>{I(!1)},U)),()=>{Xt&&clearTimeout(Xt)}},[r,U]);const K={...f,width:p!==void 0?typeof p=="number"?`${p}px`:p:void 0,height:w!==void 0?typeof w=="number"?`${w}px`:w:void 0};return A.jsxs(k_,{style:K,className:_,children:[A.jsx(z_,{style:{opacity:D,transition:`opacity ${j}ms ease-in-out`},children:l}),T&&A.jsx(H_,{style:{opacity:E,transition:`opacity ${r?J:U}ms ease-in-out`},children:A.jsx(N_,{variant:s,duration:i})})]})},G_=({visible:r=!0,variant:s="rectangle",children:i,animationDuration:l=1500,width:f,height:_,...p})=>A.jsx(re,{width:f,height:_,...p,children:A.jsx(U_,{visible:r,variant:s,animationDuration:l,width:"100%",height:"100%",children:i})}),kl={color:"#00adef",autoplay:!1,muted:!1,loop:!1,title:!1,byline:!1,portrait:!1,dnt:!0,playsinline:!0,background:!1,controls:!0,pip:!1,responsive:!0,width:"100%"},Es="https://player.vimeo.com";function q_(r,s){const i={...kl,...s},l=new URL(`${Es}/video/${r}`);return Object.entries(i).forEach(([f,_])=>{if(f!=="width"&&f!=="responsive"){const p=typeof _=="boolean"?_?"1":"0":_;l.searchParams.append(f,String(p))}}),l.toString()}function j_(r,s){if(!r)return()=>{};const i=l=>{if(!(l.origin!==Es&&!l.origin.includes("vimeo.com")))try{const f=typeof l.data=="string"?JSON.parse(l.data):l.data;f&&typeof f=="object"&&f.player_id===r.id&&s(l)}catch(f){console.error("Error handling Vimeo message:",f)}};return window.addEventListener("message",i),()=>{window.removeEventListener("message",i)}}const Y_=ge.div`
257
+ `,G_=({visible:r,variant:s,animationDuration:i,children:l,style:f,className:_,width:p,height:w})=>{var z,G,W,B,L,he,Se,Ct,At,Et,mt,be;const x=We(),[T,I]=k.useState(r),[E,F]=k.useState(r?1:0),[D,H]=k.useState(r?0:1),J=((B=(W=(G=(z=x.components)==null?void 0:z.skeleton)==null?void 0:G.animation)==null?void 0:W.transition)==null?void 0:B.fadeInDuration)||250,U=((Ct=(Se=(he=(L=x.components)==null?void 0:L.skeleton)==null?void 0:he.animation)==null?void 0:Se.transition)==null?void 0:Ct.fadeOutDuration)||250,j=((be=(mt=(Et=(At=x.components)==null?void 0:At.skeleton)==null?void 0:Et.animation)==null?void 0:mt.transition)==null?void 0:be.contentFadeDuration)||300;k.useEffect(()=>{let Xt;return r?(I(!0),F(1),H(0)):(F(0),H(1),Xt=setTimeout(()=>{I(!1)},U)),()=>{Xt&&clearTimeout(Xt)}},[r,U]);const K={...f,width:p!==void 0?typeof p=="number"?`${p}px`:p:void 0,height:w!==void 0?typeof w=="number"?`${w}px`:w:void 0};return A.jsxs(z_,{style:K,className:_,children:[A.jsx(H_,{style:{opacity:D,transition:`opacity ${j}ms ease-in-out`},children:l}),T&&A.jsx(U_,{style:{opacity:E,transition:`opacity ${r?J:U}ms ease-in-out`},children:A.jsx(k_,{variant:s,duration:i})})]})},q_=({visible:r=!0,variant:s="rectangle",children:i,animationDuration:l=1500,width:f,height:_,...p})=>A.jsx(re,{width:f,height:_,...p,children:A.jsx(G_,{visible:r,variant:s,animationDuration:l,width:"100%",height:"100%",children:i})}),kl={color:"#00adef",autoplay:!1,muted:!1,loop:!1,title:!1,byline:!1,portrait:!1,dnt:!0,playsinline:!0,background:!1,controls:!0,pip:!1,responsive:!0,width:"100%"},Es="https://player.vimeo.com";function j_(r,s){const i={...kl,...s},l=new URL(`${Es}/video/${r}`);return Object.entries(i).forEach(([f,_])=>{if(f!=="width"&&f!=="responsive"){const p=typeof _=="boolean"?_?"1":"0":_;l.searchParams.append(f,String(p))}}),l.toString()}function Y_(r,s){if(!r)return()=>{};const i=l=>{if(!(l.origin!==Es&&!l.origin.includes("vimeo.com")))try{const f=typeof l.data=="string"?JSON.parse(l.data):l.data;f&&typeof f=="object"&&f.player_id===r.id&&s(l)}catch(f){console.error("Error handling Vimeo message:",f)}};return window.addEventListener("message",i),()=>{window.removeEventListener("message",i)}}const K_=ge.div`
258
258
  position: relative;
259
259
  width: 100%;
260
260
  height: 100%;
261
261
  overflow: hidden;
262
- `,K_=ge.div`
262
+ `,V_=ge.div`
263
263
  position: relative;
264
264
  padding-bottom: ${({$aspectRatio:r})=>`${r}%`};
265
265
  height: 0;
@@ -271,4 +271,4 @@ See https://s-c.sh/2BAXzed for more info.`),window[si]+=1);const ms=r=>({none:0,
271
271
  width: 100%;
272
272
  height: 100%;
273
273
  border: 0;
274
- `,V_=({videoId:r,width:s="100%",height:i="auto",config:l,callbacks:f})=>{var D,H,J,U,j,K;const _=We(),p=k.useRef(null),[w]=k.useState(`vimeo-player-${Math.random().toString(36).substr(2,9)}`),x=i==="auto",T=((H=(D=_.components)==null?void 0:D.vimeo)==null?void 0:H.aspectRatio)||56.25,E={...(U=(J=_.components)==null?void 0:J.vimeo)==null?void 0:U.playerSettings,...l,color:(l==null?void 0:l.color)||((K=(j=_.components)==null?void 0:j.vimeo)==null?void 0:K.defaultAccentColor)||"#00adef"};k.useEffect(()=>!p.current||!f?void 0:j_(p.current,G=>{var W,B,L,he,Se,Ct,At,Et,mt;try{const be=typeof G.data=="string"?JSON.parse(G.data):G.data;switch(be.event){case"ready":(W=f.onReady)==null||W.call(f);break;case"play":(B=f.onPlay)==null||B.call(f);break;case"pause":(L=f.onPlayerPause)==null||L.call(f);break;case"ended":(he=f.onEnd)==null||he.call(f);break;case"seeked":(Se=f.onSeeked)==null||Se.call(f);break;case"seeking":(Ct=f.onSeeking)==null||Ct.call(f);break;case"timeupdate":be.data&&typeof be.data.seconds=="number"&&((At=f.onTimeUpdate)==null||At.call(f,be.data.seconds));break;case"progress":be.data&&typeof be.data.percent=="number"&&((Et=f.onProgress)==null||Et.call(f,be.data.percent));break;case"error":(mt=f.onPlayerError)==null||mt.call(f,be.data);break;default:break}}catch(be){console.error("Error handling Vimeo event:",be)}}),[f,w]);const F=q_(r,E);return x?A.jsx(K_,{$aspectRatio:T,children:A.jsx(Cc,{ref:p,id:w,src:F,allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:!0,title:`Vimeo Player ${r}`})}):A.jsx(Y_,{style:{width:s,height:i},children:A.jsx(Cc,{ref:p,id:w,src:F,allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:!0,title:`Vimeo Player ${r}`})})},Z_=({videoId:r,playerWidth:s,playerHeight:i,config:l,callbacks:f,..._})=>A.jsx(re,{overflow:"hidden",..._,children:A.jsx(V_,{videoId:r,width:s,height:i,config:l,callbacks:f})});exports.Art=Cs;exports.Base=R_;exports.Box=re;exports.Brand=Tl;exports.Button=cs;exports.DEFAULT_VIMEO_CONFIG=kl;exports.Divider=O_;exports.Emoji=Rl;exports.Header=Ml;exports.HeaderAuth=Wl;exports.HeaderLogo=Dl;exports.HeaderNav=$l;exports.Icon=Il;exports.Image=Ol;exports.Input=Nl;exports.List=D_;exports.Loading=Pl;exports.SUPPORTED_RICH_TEXT_TAGS=Bl;exports.Skeleton=G_;exports.StyledBox=Sl;exports.Svg=Ll;exports.Text=$n;exports.ThemeProvider=c_;exports.Touchable=dr;exports.VIMEO_HOST=Es;exports.Vimeo=Z_;exports.artTheme=tl;exports.baseTheme=nl;exports.buttonTheme=rl;exports.configKeys=xl;exports.customBoxPropsConfig=_l;exports.customBoxPropsKey=bs;exports.defaultColorPalette=Si;exports.defaultGradientColorPalette=Xc;exports.defaultScale=Jc;exports.defaultTheme=di;exports.dividerTheme=il;exports.flexPropsKey=ml;exports.genBoxStyle=wl;exports.getBorderWidths=ms;exports.getComponentsTheme=dl;exports.getFontSizes=bi;exports.getFontWeights=Ss;exports.getFonts=xs;exports.getGlobalTheme=Qm;exports.getLineHeights=ws;exports.getRadii=_s;exports.getShadows=Qc;exports.getSizeValue=ot;exports.getSizes=vs;exports.getSpaces=ys;exports.getTextColor=As;exports.getTheme=hl;exports.getThemeValue=vl;exports.headerTheme=ol;exports.inputTheme=sl;exports.isBorderWidth=Nm;exports.isColor=zm;exports.isEmoji=bl;exports.isFontSize=Xm;exports.isFontWeight=Jm;exports.isGradientColor=Hm;exports.isIcon=Cl;exports.isImage=Al;exports.isRadius=km;exports.isShadow=Vm;exports.isSize=el;exports.isSpace=Zm;exports.isSvg=El;exports.listTheme=al;exports.loadingTheme=ul;exports.mapStylePropToThemeValue=yl;exports.shouldForwardProp=pl;exports.skeletonTheme=cl;exports.styled=ge;exports.touchableTheme=ll;exports.useTheme=We;exports.vimeoTheme=fl;
274
+ `,Z_=({videoId:r,width:s="100%",height:i="auto",config:l,callbacks:f})=>{var D,H,J,U,j,K;const _=We(),p=k.useRef(null),[w]=k.useState(`vimeo-player-${Math.random().toString(36).substr(2,9)}`),x=i==="auto",T=((H=(D=_.components)==null?void 0:D.vimeo)==null?void 0:H.aspectRatio)||56.25,E={...(U=(J=_.components)==null?void 0:J.vimeo)==null?void 0:U.playerSettings,...l,color:(l==null?void 0:l.color)||((K=(j=_.components)==null?void 0:j.vimeo)==null?void 0:K.defaultAccentColor)||"#00adef"};k.useEffect(()=>!p.current||!f?void 0:Y_(p.current,G=>{var W,B,L,he,Se,Ct,At,Et,mt;try{const be=typeof G.data=="string"?JSON.parse(G.data):G.data;switch(be.event){case"ready":(W=f.onReady)==null||W.call(f);break;case"play":(B=f.onPlay)==null||B.call(f);break;case"pause":(L=f.onPlayerPause)==null||L.call(f);break;case"ended":(he=f.onEnd)==null||he.call(f);break;case"seeked":(Se=f.onSeeked)==null||Se.call(f);break;case"seeking":(Ct=f.onSeeking)==null||Ct.call(f);break;case"timeupdate":be.data&&typeof be.data.seconds=="number"&&((At=f.onTimeUpdate)==null||At.call(f,be.data.seconds));break;case"progress":be.data&&typeof be.data.percent=="number"&&((Et=f.onProgress)==null||Et.call(f,be.data.percent));break;case"error":(mt=f.onPlayerError)==null||mt.call(f,be.data);break;default:break}}catch(be){console.error("Error handling Vimeo event:",be)}}),[f,w]);const F=j_(r,E);return x?A.jsx(V_,{$aspectRatio:T,children:A.jsx(Cc,{ref:p,id:w,src:F,allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:!0,title:`Vimeo Player ${r}`})}):A.jsx(K_,{style:{width:s,height:i},children:A.jsx(Cc,{ref:p,id:w,src:F,allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:!0,title:`Vimeo Player ${r}`})})},X_=({videoId:r,playerWidth:s,playerHeight:i,config:l,callbacks:f,..._})=>A.jsx(re,{overflow:"hidden",..._,children:A.jsx(Z_,{videoId:r,width:s,height:i,config:l,callbacks:f})});exports.Art=Cs;exports.Base=I_;exports.Box=re;exports.Brand=Tl;exports.Button=cs;exports.DEFAULT_VIMEO_CONFIG=kl;exports.Divider=L_;exports.Emoji=Rl;exports.Header=Ml;exports.HeaderAuth=Wl;exports.HeaderLogo=Dl;exports.HeaderNav=$l;exports.Icon=Il;exports.Image=Ol;exports.Input=Nl;exports.List=$_;exports.Loading=Pl;exports.SUPPORTED_RICH_TEXT_TAGS=Bl;exports.Skeleton=q_;exports.StyledBox=Sl;exports.Svg=Ll;exports.Text=$n;exports.ThemeProvider=c_;exports.Touchable=dr;exports.VIMEO_HOST=Es;exports.Vimeo=X_;exports.artTheme=tl;exports.baseTheme=nl;exports.buttonTheme=rl;exports.configKeys=xl;exports.customBoxPropsConfig=_l;exports.customBoxPropsKey=bs;exports.defaultColorPalette=Si;exports.defaultGradientColorPalette=Xc;exports.defaultScale=Jc;exports.defaultTheme=di;exports.dividerTheme=il;exports.flexPropsKey=ml;exports.genBoxStyle=wl;exports.getBorderWidths=ms;exports.getComponentsTheme=dl;exports.getFontSizes=bi;exports.getFontWeights=Ss;exports.getFonts=xs;exports.getGlobalTheme=Qm;exports.getLineHeights=ws;exports.getRadii=_s;exports.getShadows=Qc;exports.getSizeValue=ot;exports.getSizes=vs;exports.getSpaces=ys;exports.getTextColor=As;exports.getTheme=hl;exports.getThemeValue=vl;exports.headerTheme=ol;exports.inputTheme=sl;exports.isBorderWidth=Nm;exports.isColor=zm;exports.isEmoji=bl;exports.isFontSize=Xm;exports.isFontWeight=Jm;exports.isGradientColor=Hm;exports.isIcon=Cl;exports.isImage=Al;exports.isRadius=km;exports.isShadow=Vm;exports.isSize=el;exports.isSpace=Zm;exports.isSvg=El;exports.listTheme=al;exports.loadingTheme=ul;exports.mapStylePropToThemeValue=yl;exports.shouldForwardProp=pl;exports.skeletonTheme=cl;exports.styled=ge;exports.touchableTheme=ll;exports.useTheme=We;exports.vimeoTheme=fl;
package/dist/index.js CHANGED
@@ -4915,7 +4915,7 @@ const Jc = (r) => ({
4915
4915
  xl: r * 4,
4916
4916
  // 16
4917
4917
  full: 9999
4918
- }), X_ = (r) => ["none", "hairline", "thin", "thick", "heavy"].includes(r), J_ = (r) => ["none", "xs", "sm", "md", "lg", "xl", "full"].includes(r), ws = {
4918
+ }), J_ = (r) => ["none", "hairline", "thin", "thick", "heavy"].includes(r), Q_ = (r) => ["none", "xs", "sm", "md", "lg", "xl", "full"].includes(r), ws = {
4919
4919
  // Base colors
4920
4920
  transparent: "#FFFFFF00",
4921
4921
  // transparent in RGBA
@@ -4996,14 +4996,14 @@ const Jc = (r) => ({
4996
4996
  pink700: "#D81B60",
4997
4997
  pink800: "#C2185B",
4998
4998
  pink900: "#880E4F"
4999
- }, Q_ = (r) => r in ws, cm = {
4999
+ }, j_ = (r) => r in ws, cm = {
5000
5000
  primary: ["#543ACC", "#6949FF"],
5001
5001
  secondary: ["#E0A800", "#FFC107"],
5002
5002
  success: ["#0FB57A", "#12D18E"],
5003
5003
  danger: ["#E64545", "#F75555"],
5004
5004
  warning: ["#E1B70D", "#FACC15"],
5005
5005
  info: ["#543ACC", "#6949FF"]
5006
- }, j_ = (r) => ["primary", "secondary", "success", "danger", "warning", "info"].includes(r), lm = 1, fm = 8, dm = 8, hm = "Inter", pm = 10, gm = 4, mm = {
5006
+ }, ev = (r) => ["primary", "secondary", "success", "danger", "warning", "info"].includes(r), lm = 1, fm = 8, dm = 8, hm = "Inter", pm = 10, gm = 4, mm = {
5007
5007
  borderWidth: lm,
5008
5008
  space: fm,
5009
5009
  size: dm,
@@ -5017,7 +5017,7 @@ const Jc = (r) => ({
5017
5017
  sm: `0 1px 2px 0 ${r.grey400}40`,
5018
5018
  md: `0 4px 6px -1px ${r.grey500}40, 0 2px 4px -1px ${r.grey400}40`,
5019
5019
  lg: `0 10px 15px -3px ${r.grey600}40, 0 4px 6px -2px ${r.grey500}40`
5020
- }), ev = (r) => ["none", "sm", "md", "lg"].includes(r), jc = (r) => ({
5020
+ }), nv = (r) => ["none", "sm", "md", "lg"].includes(r), jc = (r) => ({
5021
5021
  "2xs": r * 0.5,
5022
5022
  // 4
5023
5023
  xs: r,
@@ -5056,7 +5056,7 @@ const Jc = (r) => ({
5056
5056
  // 48
5057
5057
  "4xl": r * 8
5058
5058
  // 64
5059
- }), nv = (r) => [
5059
+ }), tv = (r) => [
5060
5060
  "none",
5061
5061
  "xxs",
5062
5062
  "xs",
@@ -5116,7 +5116,7 @@ const Jc = (r) => ({
5116
5116
  bold: 700,
5117
5117
  extrabold: 800,
5118
5118
  black: 900
5119
- }), tv = (r) => ["xs", "small", "medium", "large", "xl", "2xl", "3xl"].includes(r), rv = (r) => ["extra-light", "thin", "light", "regular", "medium", "semibold", "bold", "extrabold", "black"].includes(r), iv = (r = mm, s = ws, i = cm) => {
5119
+ }), rv = (r) => ["xs", "small", "medium", "large", "xl", "2xl", "3xl"].includes(r), iv = (r) => ["extra-light", "thin", "light", "regular", "medium", "semibold", "bold", "extrabold", "black"].includes(r), ov = (r = mm, s = ws, i = cm) => {
5120
5120
  const l = nl(r.font), f = xs(r.fontSize), _ = tl(r.fontSize), p = rl(), x = Jc(r.borderWidth), w = el(r.space), E = jc(r.size), I = Qc(r.radius), A = _m(s);
5121
5121
  return {
5122
5122
  colors: s,
@@ -5417,7 +5417,7 @@ const ns = Mm(), ge = Xc, km = (r, s) => ![
5417
5417
  "fullHeight",
5418
5418
  "fw",
5419
5419
  "fh"
5420
- ].includes(r), zm = (r) => typeof r == "function" ? r(ns) : r ? { ...ns, ...r } : ns, ov = ({
5420
+ ].includes(r), zm = (r) => typeof r == "function" ? r(ns) : r ? { ...ns, ...r } : ns, sv = ({
5421
5421
  theme: r,
5422
5422
  children: s
5423
5423
  }) => {
@@ -6147,7 +6147,7 @@ const w_ = vi(y_), pr = v_(w_), al = (r, s, i, l = "solid", f) => {
6147
6147
  // Outlined: text becomes white
6148
6148
  ${r === "outlined" ? `color: ${s.colors.white};` : ""}
6149
6149
  // Text: opacity changes
6150
- ${r === "text" ? "opacity: 0.8;" : ""}
6150
+ ${r === "text" ? `color: ${s.colors.primary};` : ""}
6151
6151
  `}
6152
6152
  }
6153
6153
  `, yc = ge(te)`
@@ -6306,31 +6306,29 @@ const w_ = vi(y_), pr = v_(w_), al = (r, s, i, l = "solid", f) => {
6306
6306
  color: ${({ theme: r }) => r.colors.primary};
6307
6307
  }
6308
6308
  `, E_ = ({
6309
- navItems: r = [],
6310
- onNavItemClick: s
6311
- }) => {
6312
- const i = (l) => {
6313
- s == null || s(l);
6314
- };
6315
- return /* @__PURE__ */ T(
6316
- te,
6317
- {
6318
- display: "flex",
6319
- flexDirection: "row",
6320
- justifyContent: "center",
6321
- flex: 1,
6322
- mx: "xl",
6323
- children: r.map((l, f) => /* @__PURE__ */ T(
6324
- te,
6325
- {
6326
- mr: f < r.length - 1 ? "lg" : void 0,
6327
- children: /* @__PURE__ */ T(Ai, { onClick: () => i(l), children: /* @__PURE__ */ T(A_, { $isActive: l.isActive, children: l.label }) })
6328
- },
6329
- `nav-item-${f}`
6330
- ))
6331
- }
6332
- );
6333
- }, R_ = ({
6309
+ label: r,
6310
+ isActive: s,
6311
+ onClick: i
6312
+ }) => /* @__PURE__ */ T(Ai, { onClick: i, children: /* @__PURE__ */ T(A_, { $isActive: s, children: r }) }), R_ = ({
6313
+ navItems: r = []
6314
+ }) => /* @__PURE__ */ T(
6315
+ te,
6316
+ {
6317
+ display: "flex",
6318
+ flexDirection: "row",
6319
+ justifyContent: "center",
6320
+ flex: 1,
6321
+ mx: "xl",
6322
+ gap: "lg",
6323
+ children: r.map((s, i) => /* @__PURE__ */ T(
6324
+ E_,
6325
+ {
6326
+ ...s
6327
+ },
6328
+ `nav-item-${i}`
6329
+ ))
6330
+ }
6331
+ ), T_ = ({
6334
6332
  backgroundColor: r = "white",
6335
6333
  navItems: s = [],
6336
6334
  isSignedIn: i = !1,
@@ -6354,7 +6352,7 @@ const w_ = vi(y_), pr = v_(w_), al = (r, s, i, l = "solid", f) => {
6354
6352
  ...E,
6355
6353
  children: [
6356
6354
  /* @__PURE__ */ T(C_, { onLogoClick: f }),
6357
- /* @__PURE__ */ T(E_, { navItems: s, onNavItemClick: _ }),
6355
+ /* @__PURE__ */ T(R_, { navItems: s, onNavItemClick: _ }),
6358
6356
  /* @__PURE__ */ T(
6359
6357
  b_,
6360
6358
  {
@@ -6367,7 +6365,7 @@ const w_ = vi(y_), pr = v_(w_), al = (r, s, i, l = "solid", f) => {
6367
6365
  )
6368
6366
  ]
6369
6367
  }
6370
- ), sv = ({
6368
+ ), av = ({
6371
6369
  children: r,
6372
6370
  backgroundColor: s = "white",
6373
6371
  header: i,
@@ -6383,7 +6381,7 @@ const w_ = vi(y_), pr = v_(w_), al = (r, s, i, l = "solid", f) => {
6383
6381
  bgColor: s,
6384
6382
  ...l,
6385
6383
  children: [
6386
- i && /* @__PURE__ */ T(R_, { ...i }),
6384
+ i && /* @__PURE__ */ T(T_, { ...i }),
6387
6385
  /* @__PURE__ */ T(
6388
6386
  te,
6389
6387
  {
@@ -6395,7 +6393,7 @@ const w_ = vi(y_), pr = v_(w_), al = (r, s, i, l = "solid", f) => {
6395
6393
  )
6396
6394
  ]
6397
6395
  }
6398
- ), T_ = ge(te)`
6396
+ ), I_ = ge(te)`
6399
6397
  background-color: ${({ theme: r, $color: s }) => r.colors[s]};
6400
6398
  ${({ $orientation: r, $thickness: s }) => r === "horizontal" ? `
6401
6399
  height: ${s}px;
@@ -6404,7 +6402,7 @@ const w_ = vi(y_), pr = v_(w_), al = (r, s, i, l = "solid", f) => {
6404
6402
  width: ${s}px;
6405
6403
  height: 100%;
6406
6404
  `}
6407
- `, av = ({
6405
+ `, uv = ({
6408
6406
  orientation: r = "horizontal",
6409
6407
  color: s,
6410
6408
  thickness: i,
@@ -6413,7 +6411,7 @@ const w_ = vi(y_), pr = v_(w_), al = (r, s, i, l = "solid", f) => {
6413
6411
  var E, I, A, B;
6414
6412
  const f = Me(), _ = (I = (E = f.components) == null ? void 0 : E.divider) == null ? void 0 : I.defaultColor, p = (B = (A = f.components) == null ? void 0 : A.divider) == null ? void 0 : B.defaultThickness;
6415
6413
  return /* @__PURE__ */ T(
6416
- T_,
6414
+ I_,
6417
6415
  {
6418
6416
  $orientation: r,
6419
6417
  $color: s || _ || "grey300",
@@ -6421,7 +6419,7 @@ const w_ = vi(y_), pr = v_(w_), al = (r, s, i, l = "solid", f) => {
6421
6419
  ...l
6422
6420
  }
6423
6421
  );
6424
- }, I_ = ge.div`
6422
+ }, O_ = ge.div`
6425
6423
  display: flex;
6426
6424
  flex-direction: row;
6427
6425
  align-items: center;
@@ -6438,7 +6436,7 @@ const w_ = vi(y_), pr = v_(w_), al = (r, s, i, l = "solid", f) => {
6438
6436
  opacity: ${i ? 0.7 : 1};
6439
6437
  `;
6440
6438
  }}
6441
- `, O_ = ge.input`
6439
+ `, L_ = ge.input`
6442
6440
  flex: 1;
6443
6441
  border: none;
6444
6442
  background: transparent;
@@ -6453,7 +6451,7 @@ const w_ = vi(y_), pr = v_(w_), al = (r, s, i, l = "solid", f) => {
6453
6451
  &:disabled {
6454
6452
  cursor: not-allowed;
6455
6453
  }
6456
- `, L_ = vi(({
6454
+ `, P_ = vi(({
6457
6455
  value: r = "",
6458
6456
  onChange: s,
6459
6457
  placeholder: i = "",
@@ -6485,7 +6483,7 @@ const w_ = vi(y_), pr = v_(w_), al = (r, s, i, l = "solid", f) => {
6485
6483
  })), /* @__PURE__ */ mn(te, { fw: !0, children: [
6486
6484
  _ && /* @__PURE__ */ T(te, { mb: "xs", children: /* @__PURE__ */ T(pr, { fontWeight: "medium", children: _ }) }),
6487
6485
  /* @__PURE__ */ mn(
6488
- I_,
6486
+ O_,
6489
6487
  {
6490
6488
  $isFocused: D,
6491
6489
  $isDisabled: l,
@@ -6495,7 +6493,7 @@ const w_ = vi(y_), pr = v_(w_), al = (r, s, i, l = "solid", f) => {
6495
6493
  children: [
6496
6494
  x && /* @__PURE__ */ T(te, { mr: "sm", children: x }),
6497
6495
  /* @__PURE__ */ T(
6498
- O_,
6496
+ L_,
6499
6497
  {
6500
6498
  ref: Q,
6501
6499
  value: z,
@@ -6530,15 +6528,15 @@ const w_ = vi(y_), pr = v_(w_), al = (r, s, i, l = "solid", f) => {
6530
6528
  ) })
6531
6529
  ] });
6532
6530
  });
6533
- L_.displayName = "Input";
6534
- const P_ = ge(te)`
6531
+ P_.displayName = "Input";
6532
+ const W_ = ge(te)`
6535
6533
  overflow: auto;
6536
6534
  width: 100%;
6537
- `, W_ = ge(te)`
6535
+ `, B_ = ge(te)`
6538
6536
  display: flex;
6539
6537
  flex-direction: column;
6540
6538
  `;
6541
- function B_({
6539
+ function F_({
6542
6540
  data: r = [],
6543
6541
  renderItem: s,
6544
6542
  keyExtractor: i,
@@ -6551,7 +6549,7 @@ function B_({
6551
6549
  }, E) {
6552
6550
  var z, G, K, U;
6553
6551
  const I = Me(), A = ((G = (z = I.components) == null ? void 0 : z.list) == null ? void 0 : G.defaultGap) || "xs", B = x || A, D = ((U = (K = I.components) == null ? void 0 : K.list) == null ? void 0 : U.defaultPadding) || "0px", k = w.p || w.padding || D;
6554
- return /* @__PURE__ */ T(P_, { ref: E, p: k, ...w, children: /* @__PURE__ */ mn(W_, { gap: B, children: [
6552
+ return /* @__PURE__ */ T(W_, { ref: E, p: k, ...w, children: /* @__PURE__ */ mn(B_, { gap: B, children: [
6555
6553
  f,
6556
6554
  r.length === 0 && l ? l : r.map((q, F) => {
6557
6555
  const W = i ? i(q, F) : String(F), L = s ? s(q, F) : null;
@@ -6563,14 +6561,14 @@ function B_({
6563
6561
  _
6564
6562
  ] }) });
6565
6563
  }
6566
- const uv = vi(B_), F_ = um`
6564
+ const cv = vi(F_), D_ = um`
6567
6565
  0% {
6568
6566
  background-position: -468px 0;
6569
6567
  }
6570
6568
  100% {
6571
6569
  background-position: 468px 0;
6572
6570
  }
6573
- `, D_ = ge.div`
6571
+ `, $_ = ge.div`
6574
6572
  width: 100%;
6575
6573
  height: 100%;
6576
6574
  border-radius: ${({ theme: r, $variant: s }) => {
@@ -6605,37 +6603,37 @@ const uv = vi(B_), F_ = um`
6605
6603
  )`;
6606
6604
  }};
6607
6605
  background-size: 800px 100px;
6608
- animation: ${F_} ${({ theme: r, $duration: s }) => {
6606
+ animation: ${D_} ${({ theme: r, $duration: s }) => {
6609
6607
  var l, f, _;
6610
6608
  const i = (_ = (f = (l = r.components) == null ? void 0 : l.skeleton) == null ? void 0 : f.animation) == null ? void 0 : _.duration;
6611
6609
  return i || s;
6612
6610
  }}ms linear infinite;
6613
6611
  will-change: background-position;
6614
6612
  transform: translateZ(0); /* Force hardware acceleration */
6615
- `, $_ = ({ variant: r, duration: s = 1500 }) => {
6613
+ `, N_ = ({ variant: r, duration: s = 1500 }) => {
6616
6614
  var _, p, x;
6617
6615
  const f = ((x = (p = (_ = Me().components) == null ? void 0 : _.skeleton) == null ? void 0 : p.animation) == null ? void 0 : x.duration) || s || 1500;
6618
6616
  return /* @__PURE__ */ T(
6619
- D_,
6617
+ $_,
6620
6618
  {
6621
6619
  $variant: r,
6622
6620
  $duration: f
6623
6621
  }
6624
6622
  );
6625
- }, N_ = ge.div`
6623
+ }, M_ = ge.div`
6626
6624
  position: relative;
6627
6625
  overflow: hidden;
6628
- `, M_ = ge.div`
6626
+ `, k_ = ge.div`
6629
6627
  position: relative;
6630
6628
  width: 100%;
6631
6629
  height: 100%;
6632
- `, k_ = ge.div`
6630
+ `, z_ = ge.div`
6633
6631
  position: absolute;
6634
6632
  top: 0;
6635
6633
  left: 0;
6636
6634
  right: 0;
6637
6635
  bottom: 0;
6638
- `, z_ = ({
6636
+ `, U_ = ({
6639
6637
  visible: r,
6640
6638
  variant: s,
6641
6639
  animationDuration: i,
@@ -6660,9 +6658,9 @@ const uv = vi(B_), F_ = um`
6660
6658
  width: p !== void 0 ? typeof p == "number" ? `${p}px` : p : void 0,
6661
6659
  height: x !== void 0 ? typeof x == "number" ? `${x}px` : x : void 0
6662
6660
  };
6663
- return /* @__PURE__ */ mn(N_, { style: K, className: _, children: [
6661
+ return /* @__PURE__ */ mn(M_, { style: K, className: _, children: [
6664
6662
  /* @__PURE__ */ T(
6665
- M_,
6663
+ k_,
6666
6664
  {
6667
6665
  style: {
6668
6666
  opacity: D,
@@ -6672,14 +6670,14 @@ const uv = vi(B_), F_ = um`
6672
6670
  }
6673
6671
  ),
6674
6672
  E && /* @__PURE__ */ T(
6675
- k_,
6673
+ z_,
6676
6674
  {
6677
6675
  style: {
6678
6676
  opacity: A,
6679
6677
  transition: `opacity ${r ? Q : z}ms ease-in-out`
6680
6678
  },
6681
6679
  children: /* @__PURE__ */ T(
6682
- $_,
6680
+ N_,
6683
6681
  {
6684
6682
  variant: s,
6685
6683
  duration: i
@@ -6688,7 +6686,7 @@ const uv = vi(B_), F_ = um`
6688
6686
  }
6689
6687
  )
6690
6688
  ] });
6691
- }, cv = ({
6689
+ }, lv = ({
6692
6690
  visible: r = !0,
6693
6691
  variant: s = "rectangle",
6694
6692
  children: i,
@@ -6697,7 +6695,7 @@ const uv = vi(B_), F_ = um`
6697
6695
  height: _,
6698
6696
  ...p
6699
6697
  }) => /* @__PURE__ */ T(te, { width: f, height: _, ...p, children: /* @__PURE__ */ T(
6700
- z_,
6698
+ U_,
6701
6699
  {
6702
6700
  visible: r,
6703
6701
  variant: s,
@@ -6706,7 +6704,7 @@ const uv = vi(B_), F_ = um`
6706
6704
  height: "100%",
6707
6705
  children: i
6708
6706
  }
6709
- ) }), U_ = {
6707
+ ) }), H_ = {
6710
6708
  color: "#00adef",
6711
6709
  autoplay: !1,
6712
6710
  muted: !1,
@@ -6722,9 +6720,9 @@ const uv = vi(B_), F_ = um`
6722
6720
  responsive: !0,
6723
6721
  width: "100%"
6724
6722
  }, cl = "https://player.vimeo.com";
6725
- function H_(r, s) {
6723
+ function G_(r, s) {
6726
6724
  const i = {
6727
- ...U_,
6725
+ ...H_,
6728
6726
  ...s
6729
6727
  }, l = new URL(`${cl}/video/${r}`);
6730
6728
  return Object.entries(i).forEach(([f, _]) => {
@@ -6734,7 +6732,7 @@ function H_(r, s) {
6734
6732
  }
6735
6733
  }), l.toString();
6736
6734
  }
6737
- function G_(r, s) {
6735
+ function q_(r, s) {
6738
6736
  if (!r)
6739
6737
  return () => {
6740
6738
  };
@@ -6751,12 +6749,12 @@ function G_(r, s) {
6751
6749
  window.removeEventListener("message", i);
6752
6750
  };
6753
6751
  }
6754
- const q_ = ge.div`
6752
+ const Y_ = ge.div`
6755
6753
  position: relative;
6756
6754
  width: 100%;
6757
6755
  height: 100%;
6758
6756
  overflow: hidden;
6759
- `, Y_ = ge.div`
6757
+ `, K_ = ge.div`
6760
6758
  position: relative;
6761
6759
  padding-bottom: ${({ $aspectRatio: r }) => `${r}%`};
6762
6760
  height: 0;
@@ -6768,7 +6766,7 @@ const q_ = ge.div`
6768
6766
  width: 100%;
6769
6767
  height: 100%;
6770
6768
  border: 0;
6771
- `, K_ = ({
6769
+ `, V_ = ({
6772
6770
  videoId: r,
6773
6771
  width: s = "100%",
6774
6772
  height: i = "auto",
@@ -6781,7 +6779,7 @@ const q_ = ge.div`
6781
6779
  ...l,
6782
6780
  color: (l == null ? void 0 : l.color) || ((K = (G = _.components) == null ? void 0 : G.vimeo) == null ? void 0 : K.defaultAccentColor) || "#00adef"
6783
6781
  };
6784
- _i(() => !p.current || !f ? void 0 : G_(
6782
+ _i(() => !p.current || !f ? void 0 : q_(
6785
6783
  p.current,
6786
6784
  (q) => {
6787
6785
  var F, W, L, de, xe, Rn, Tn, In, yn;
@@ -6823,8 +6821,8 @@ const q_ = ge.div`
6823
6821
  }
6824
6822
  }
6825
6823
  ), [f, x]);
6826
- const B = H_(r, A);
6827
- return w ? /* @__PURE__ */ T(Y_, { $aspectRatio: E, children: /* @__PURE__ */ T(
6824
+ const B = G_(r, A);
6825
+ return w ? /* @__PURE__ */ T(K_, { $aspectRatio: E, children: /* @__PURE__ */ T(
6828
6826
  xc,
6829
6827
  {
6830
6828
  ref: p,
@@ -6834,7 +6832,7 @@ const q_ = ge.div`
6834
6832
  allowFullScreen: !0,
6835
6833
  title: `Vimeo Player ${r}`
6836
6834
  }
6837
- ) }) : /* @__PURE__ */ T(q_, { style: { width: s, height: i }, children: /* @__PURE__ */ T(
6835
+ ) }) : /* @__PURE__ */ T(Y_, { style: { width: s, height: i }, children: /* @__PURE__ */ T(
6838
6836
  xc,
6839
6837
  {
6840
6838
  ref: p,
@@ -6845,7 +6843,7 @@ const q_ = ge.div`
6845
6843
  title: `Vimeo Player ${r}`
6846
6844
  }
6847
6845
  ) });
6848
- }, lv = ({
6846
+ }, fv = ({
6849
6847
  videoId: r,
6850
6848
  playerWidth: s,
6851
6849
  playerHeight: i,
@@ -6853,7 +6851,7 @@ const q_ = ge.div`
6853
6851
  callbacks: f,
6854
6852
  ..._
6855
6853
  }) => /* @__PURE__ */ T(te, { overflow: "hidden", ..._, children: /* @__PURE__ */ T(
6856
- K_,
6854
+ V_,
6857
6855
  {
6858
6856
  videoId: r,
6859
6857
  width: s,
@@ -6864,31 +6862,31 @@ const q_ = ge.div`
6864
6862
  ) });
6865
6863
  export {
6866
6864
  sl as Art,
6867
- sv as Base,
6865
+ av as Base,
6868
6866
  te as Box,
6869
6867
  o_ as Brand,
6870
6868
  wc as Button,
6871
- U_ as DEFAULT_VIMEO_CONFIG,
6872
- av as Divider,
6869
+ H_ as DEFAULT_VIMEO_CONFIG,
6870
+ uv as Divider,
6873
6871
  s_ as Emoji,
6874
- R_ as Header,
6872
+ T_ as Header,
6875
6873
  b_ as HeaderAuth,
6876
6874
  C_ as HeaderLogo,
6877
- E_ as HeaderNav,
6875
+ R_ as HeaderNav,
6878
6876
  a_ as Icon,
6879
6877
  c_ as Image,
6880
- L_ as Input,
6881
- uv as List,
6878
+ P_ as Input,
6879
+ cv as List,
6882
6880
  h_ as Loading,
6883
6881
  m_ as SUPPORTED_RICH_TEXT_TAGS,
6884
- cv as Skeleton,
6882
+ lv as Skeleton,
6885
6883
  jm as StyledBox,
6886
6884
  l_ as Svg,
6887
6885
  pr as Text,
6888
- ov as ThemeProvider,
6886
+ sv as ThemeProvider,
6889
6887
  Ai as Touchable,
6890
6888
  cl as VIMEO_HOST,
6891
- lv as Vimeo,
6889
+ fv as Vimeo,
6892
6890
  ym as artTheme,
6893
6891
  wm as baseTheme,
6894
6892
  xm as buttonTheme,
@@ -6907,7 +6905,7 @@ export {
6907
6905
  xs as getFontSizes,
6908
6906
  rl as getFontWeights,
6909
6907
  nl as getFonts,
6910
- iv as getGlobalTheme,
6908
+ ov as getGlobalTheme,
6911
6909
  tl as getLineHeights,
6912
6910
  Qc as getRadii,
6913
6911
  _m as getShadows,
@@ -6919,18 +6917,18 @@ export {
6919
6917
  Vm as getThemeValue,
6920
6918
  Sm as headerTheme,
6921
6919
  Cm as inputTheme,
6922
- X_ as isBorderWidth,
6923
- Q_ as isColor,
6920
+ J_ as isBorderWidth,
6921
+ j_ as isColor,
6924
6922
  n_ as isEmoji,
6925
- tv as isFontSize,
6926
- rv as isFontWeight,
6927
- j_ as isGradientColor,
6923
+ rv as isFontSize,
6924
+ iv as isFontWeight,
6925
+ ev as isGradientColor,
6928
6926
  t_ as isIcon,
6929
6927
  r_ as isImage,
6930
- J_ as isRadius,
6931
- ev as isShadow,
6928
+ Q_ as isRadius,
6929
+ nv as isShadow,
6932
6930
  vm as isSize,
6933
- nv as isSpace,
6931
+ tv as isSpace,
6934
6932
  i_ as isSvg,
6935
6933
  Am as listTheme,
6936
6934
  Em as loadingTheme,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aic-kits/react",
3
- "version": "0.4.0",
3
+ "version": "0.4.4",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -45,5 +45,5 @@
45
45
  "vite-plugin-dts": "^4.3.0",
46
46
  "vitest": "^2.1.8"
47
47
  },
48
- "gitHead": "b579eb24795331f64da96f0d67eef5c93d0c23ca"
48
+ "gitHead": "79c0fde072b65036d6b6917f2259fd11ba7604f4"
49
49
  }