@uniformdev/csk-components 6.0.44-alpha.1 → 6.0.76-alpha.1
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/cli.js +1 -1
- package/dist/ThemeSwitcher-6Q7LCO4Q.mjs +1 -0
- package/dist/accordion-item-A2CU5OKG.mjs +1 -0
- package/dist/banner-QXWN54B7.mjs +1 -0
- package/dist/carousel-3H6U25O4.mjs +1 -0
- package/dist/carousel-UKVR7LKR.mjs +1 -0
- package/dist/{chunk-HDWSBDVE.mjs → chunk-2SEOCBRK.mjs} +1 -1
- package/dist/{chunk-UDP47PNB.mjs → chunk-2UV7TQNF.mjs} +1 -1
- package/dist/{chunk-6POLDE2K.mjs → chunk-3PDY7RJC.mjs} +3 -3
- package/dist/chunk-6TUDWIYU.mjs +1 -0
- package/dist/chunk-AKRWCDDG.mjs +1 -0
- package/dist/chunk-CBZWZSQW.mjs +1 -0
- package/dist/{chunk-26BSLQVU.mjs → chunk-H3OSPGNK.mjs} +1 -1
- package/dist/{chunk-JTRZPR2Q.mjs → chunk-HLLKGZN6.mjs} +1 -1
- package/dist/chunk-P2OOJTJ2.mjs +1 -0
- package/dist/chunk-RX4IAAQQ.mjs +1 -0
- package/dist/chunk-T5V5WTTI.mjs +1 -0
- package/dist/{chunk-CLSZO62H.mjs → chunk-T6HZMAEP.mjs} +1 -1
- package/dist/chunk-TM7Q5NMH.mjs +1 -0
- package/dist/{chunk-ZWDCDE5W.mjs → chunk-V4EBWEG4.mjs} +1 -1
- package/dist/chunk-YEKQJ4YC.mjs +1 -0
- package/dist/components/canvas/emptyPlaceholders.d.mts +3 -3
- package/dist/components/canvas/emptyPlaceholders.mjs +1 -1
- package/dist/components/canvas/index.d.mts +45 -26
- package/dist/components/canvas/index.mjs +2 -1
- package/dist/components/ui/index.d.mts +3 -3
- package/dist/components/ui/index.mjs +1 -1
- package/dist/content/components/canvas/Badge/index.tsx +1 -2
- package/dist/content/components/canvas/Breadcrumbs/breadcrumbs.tsx +64 -7
- package/dist/content/components/canvas/Breadcrumbs/index.tsx +2 -2
- package/dist/content/components/canvas/Button/index.tsx +1 -2
- package/dist/content/components/canvas/DemoHero/fixed-hero.tsx +1 -1
- package/dist/content/components/canvas/Flex/index.tsx +1 -2
- package/dist/content/components/canvas/Footer/index.tsx +1 -2
- package/dist/content/components/canvas/Grid/index.tsx +1 -2
- package/dist/content/components/canvas/GridItem/index.tsx +1 -2
- package/dist/content/components/canvas/Header/index.tsx +1 -2
- package/dist/content/components/canvas/IconLabel/index.tsx +1 -2
- package/dist/content/components/canvas/Link/index.tsx +1 -2
- package/dist/content/components/canvas/NavigationFlyout/index.tsx +3 -2
- package/dist/content/components/canvas/NavigationFlyout/navigation-flyout.tsx +31 -6
- package/dist/content/components/canvas/NavigationFlyout/style-utils.ts +2 -2
- package/dist/content/components/canvas/NavigationGroup/index.tsx +3 -2
- package/dist/content/components/canvas/NavigationGroup/navigation-group.tsx +31 -6
- package/dist/content/components/canvas/NavigationGroup/style-utils.ts +2 -2
- package/dist/content/components/canvas/NavigationLink/index.tsx +3 -2
- package/dist/content/components/canvas/NavigationLink/navigation-link.tsx +20 -4
- package/dist/content/components/canvas/NavigationLink/wrapper.tsx +8 -3
- package/dist/content/components/canvas/RichText/index.tsx +1 -2
- package/dist/content/components/canvas/Section/default-variant.tsx +1 -6
- package/dist/content/components/canvas/Section/section.tsx +1 -2
- package/dist/content/components/canvas/Tab/index.tsx +1 -2
- package/dist/content/components/canvas/Tabs/index.tsx +1 -2
- package/dist/content/components/canvas/Text/index.tsx +1 -2
- package/dist/content/components/canvas/ThemeSwitcher/index.tsx +1 -2
- package/dist/content/components/ui/IconLabel/icon-label.tsx +11 -4
- package/dist/content/components/ui/IconLabel/index.ts +2 -1
- package/dist/content/components/ui/_icons/index.tsx +0 -1
- package/dist/content/utils/routing.ts +1 -1
- package/dist/countdown-LYDXJLEE.mjs +1 -0
- package/dist/image-gallery-2ZNDWYOS.mjs +1 -0
- package/dist/index.mjs +1 -1
- package/dist/mobile-PRXIDJ7S.mjs +1 -0
- package/dist/modal-HKMQGV4B.mjs +1 -0
- package/dist/navigation-flyout-J2NUTJM7.mjs +1 -0
- package/dist/navigation-group-RKFLIQXP.mjs +1 -0
- package/dist/{tabs-QEFLGIZ3.mjs → tabs-P6QFF2ZS.mjs} +1 -1
- package/dist/theme-switcher-76F2V343.mjs +1 -0
- package/dist/theme-switcher-WO5JIV2W.mjs +1 -0
- package/dist/utils/assets.mjs +1 -1
- package/dist/utils/createComponentResolver.mjs +1 -1
- package/dist/utils/createEmptyPlaceholderResolver.mjs +1 -1
- package/dist/utils/routing.mjs +1 -1
- package/dist/utils/styling.mjs +1 -1
- package/dist/video-RC2QHJS2.mjs +1 -0
- package/package.json +7 -11
- package/dist/ThemeSwitcher-EUDUX3QI.mjs +0 -1
- package/dist/accordion-item-ZS3TSISI.mjs +0 -1
- package/dist/banner-NNL34KVD.mjs +0 -1
- package/dist/carousel-KSNELZEM.mjs +0 -1
- package/dist/carousel-YLA2VELY.mjs +0 -1
- package/dist/chunk-2OD4OVSF.mjs +0 -1
- package/dist/chunk-3TBBNSCU.mjs +0 -1
- package/dist/chunk-DBSKI4UW.mjs +0 -1
- package/dist/chunk-HDKBSM4X.mjs +0 -1
- package/dist/chunk-J2GMOCYV.mjs +0 -1
- package/dist/chunk-PC5W2GRG.mjs +0 -1
- package/dist/chunk-VEUVLMJO.mjs +0 -1
- package/dist/content/components/canvas/NavigationLink/style-utils.ts +0 -13
- package/dist/content/components/ui/_icons/ChevronDown/index.tsx +0 -9
- package/dist/content/hocs/withPlaygroundWrapper.tsx +0 -25
- package/dist/countdown-7D7WECEZ.mjs +0 -1
- package/dist/hocs/withPlaygroundWrapper.d.mts +0 -6
- package/dist/hocs/withPlaygroundWrapper.mjs +0 -1
- package/dist/image-gallery-ISM5BLSF.mjs +0 -1
- package/dist/mobile-C3RAMYEQ.mjs +0 -1
- package/dist/modal-335SDLM4.mjs +0 -1
- package/dist/navigation-flyout-TQO777FY.mjs +0 -1
- package/dist/navigation-group-3YBAK65R.mjs +0 -1
- package/dist/theme-switcher-JE6MRNXM.mjs +0 -1
- package/dist/theme-switcher-QTX46Z7E.mjs +0 -1
- package/dist/video-VG6ZQCKN.mjs +0 -1
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { FC, ComponentType } from 'react';
|
|
2
|
-
import { ComponentProps } from '@uniformdev/canvas-next-rsc/component';
|
|
3
|
-
|
|
4
|
-
export function withPlaygroundWrapper<T extends object>(Component: ComponentType<T>): FC<ComponentProps<T>> {
|
|
5
|
-
const WrappedComponent = (props: ComponentProps<T>) => {
|
|
6
|
-
const { is_incontext_editing_playground } = props.context?.searchParams ?? {};
|
|
7
|
-
const { type: compositionType } = props.context?.composition ?? {};
|
|
8
|
-
const { type: componentType } = props.component ?? {};
|
|
9
|
-
// If composiiton type is the same as the component type and is in playground mode for this component
|
|
10
|
-
const isPlayground = !!is_incontext_editing_playground && compositionType === componentType;
|
|
11
|
-
|
|
12
|
-
if (isPlayground) {
|
|
13
|
-
return (
|
|
14
|
-
<div className="flex justify-center py-16">
|
|
15
|
-
<Component {...props} />
|
|
16
|
-
</div>
|
|
17
|
-
);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
return <Component {...props} />;
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
WrappedComponent.displayName = `withPlaygroundWrapper(${Component.displayName || Component.name || 'Component'})`;
|
|
24
|
-
return WrappedComponent;
|
|
25
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import"./chunk-UDP47PNB.mjs";import"./chunk-MSXDLSXH.mjs";import{a as l,c as a}from"./chunk-S7CSCIW4.mjs";import{useState as T,useEffect as y,useMemo as H}from"react";import{UniformSlot as h}from"@uniformdev/canvas-next-rsc/component";var S=({variant:e,backgroundColor:r,border:o,size:t})=>a("flex w-fit p-4 text-center gap-2 items-end leading-none",{"flex-col":e==="labelsUnder",[`bg-${r}`]:!!r,[l(o,"{value}")]:o,"items-center":o,[l(t,"text-{value}")]:!!t,[l(o,"{value}")]:!!o}),_=({textColor:e})=>a("flex gap-5 flex-wrap flex-col sm:flex-row",{[`text-${e}`]:e});import{jsx as u}from"react/jsx-runtime";var c=e=>{let r=new Date(e?.datetime??0).getTime(),o=new Date().getTime(),t=Math.max(Math.floor((r-o)/1e3),0),m=Math.floor(t%60),n=Math.floor(t/60%60),d=Math.floor(t/3600%24);return{days:Math.floor(t/86400),hours:d,minutes:n,seconds:m,timeDifference:t}},p=({maxUnitsCount:e,currentTime:r,unit:o,isAlignEnd:t})=>u("div",{className:"relative mx-auto h-[1.25em] w-[1.75em] overflow-hidden",children:u("div",{className:"absolute transition-transform duration-500 ease-in-out",style:{transform:`translateY(-${r*1.25}em)`},children:Array.from({length:e+1},(m,n)=>u("div",{className:a("flex h-[1.25em] w-[1.75em] justify-center",{"items-end":t,"items-center":!t}),children:n<10?`0${n}`:n},`${o}-${n}`))})});import{jsx as i,jsxs as R}from"react/jsx-runtime";var g=["days","hours","minutes","seconds"],Z=({targetDate:e,backgroundColor:r,textColor:o,border:t,size:m,component:n,context:d,slots:N})=>{let[{timeDifference:f,...C},I]=T(c(e)),v=H(()=>{let{days:s}=c(e);return{seconds:59,minutes:59,hours:23,days:s}},[e]);return y(()=>{if(f>0){let s=setInterval(()=>{I(c(e))},1e3);return()=>clearInterval(s)}},[e,f]),i("div",{children:f?i("div",{className:_({textColor:o}),children:g.map(s=>{if(C[s]===0&&s==="days")return null;let U=C[s];return R("div",{className:S({variant:n.variant,backgroundColor:r,border:t,size:m}),children:[i("div",{className:"mx-auto",children:p({maxUnitsCount:v[s],currentTime:U,unit:s,isAlignEnd:!t})}),i("div",{className:"mx-auto",style:{fontSize:"0.5em"},children:s})]},s)})}):i(h,{data:n,context:d,slot:N.countdownComplete})})};export{Z as Countdown};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-HDKBSM4X.mjs";export{a as withPlaygroundWrapper};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{a as d}from"./chunk-EIQPM3DQ.mjs";import{a as I}from"./chunk-RZFK2OR7.mjs";import{a as G}from"./chunk-JNIJ5N3Y.mjs";import{c as h}from"./chunk-S7CSCIW4.mjs";import{UniformSlot as R}from"@uniformdev/canvas-next-rsc/component";import F from"react-responsive-masonry";import{Fragment as v,jsx as y}from"react/jsx-runtime";var g={firstLineCount:2,secondLineCount:3,otherLinesCount:4},L=({slot:n,aspectRatio:s,config:r})=>{let{firstLineCount:i=g.firstLineCount,secondLineCount:p=g.secondLineCount,otherLinesCount:m=g.otherLinesCount}=r||{},{items:f=[]}=n||{},c=f.reduce((e,o,t)=>(t<i?e[0]?.push(o):t<i+p?e[1]?.push(o):e[2]?.push(o),e),[[],[],[]])||[];return y(v,{children:c?.map((e,o)=>e.length?y(F,{columnsCount:o<2||e.length<m?e.length:m,gutter:"4px",children:e.map((t,u)=>y("div",{className:h("flex flex-1 items-center justify-center",{[`aspect-${s}`]:!!s}),children:t},`img-${u}`))},`line-${o}`):null)})};import{jsx as l}from"react/jsx-runtime";var M=({slots:n,aspectRatio:s,items:r,backgroundColor:i,spacing:p,border:m,fluidContent:f,fullHeight:c,config:e,context:o,component:t})=>{let u=r?.length?{name:"items",items:G(r)?.map((a,C)=>l(d,{src:a.url,style:{objectFit:"cover"},alt:`Image ${C}`,fill:!0},a?.id||`image-${C}`))||[]}:n.imageGalleryItems,P=!r?.length&&!t?.slots?.imageGalleryItems?.filter(({_id:a})=>!a?.startsWith("placeholder"))?.length;return l(I,{backgroundColor:i,spacing:p,border:m,fluidContent:f,fullHeight:c,children:l("div",{className:"flex flex-col gap-1",children:P?l(R,{context:o,slot:n.imageGalleryItems,data:t}):l(L,{slot:u,aspectRatio:s,config:e})})})};export{M as ImageGallery};
|
package/dist/mobile-C3RAMYEQ.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{a as u,b as s}from"./chunk-VZCFPWET.mjs";import{a as o}from"./chunk-RZFK2OR7.mjs";import{c as n}from"./chunk-S7CSCIW4.mjs";import{useState as C}from"react";import{jsx as e,jsxs as l}from"react/jsx-runtime";var B=({isOpen:t,onClick:i,color:a})=>e("button",{onClick:i,"aria-label":"Menu",className:n("w-7 h-7 relative focus:outline-none"),children:l("div",{className:"absolute left-1/2 top-1/2 block w-7 -translate-x-1/2 -translate-y-1/2",children:[e("span",{"aria-hidden":"true",className:n("block absolute h-0.5 w-7 transform transition duration-500 ease-in-out",{"rotate-45":t," -translate-y-2":!t,[`bg-${a}`]:!!a})}),e("span",{"aria-hidden":"true",className:n("block absolute h-0.5 w-7 transform transition duration-500 ease-in-out",{"opacity-0":t,[`bg-${a}`]:!!a})}),e("span",{"aria-hidden":"true",className:n("block absolute h-0.5 w-7 transform transition duration-500 ease-in-out",{"-rotate-45":t," translate-y-2":!t,[`bg-${a}`]:!!a})})]})}),G=({leftSection:t,rightSection:i,children:a,backgroundColor:m,spacing:c,border:d,className:p,color:f})=>{let[r,b]=C(!1);return l("nav",{children:[e(o,{id:"mobile-header",fluidContent:!0,backgroundColor:m,spacing:c,border:d,className:p,children:l(u,{className:"items-center",columnsCount:"12",children:[e(s,{columnSpan:"span-2",children:e(B,{isOpen:r,onClick:()=>{b(v=>!v)},color:f})}),e(s,{columnSpan:"span-6",children:e("div",{className:"flex items-center justify-start",children:t})}),e(s,{columnSpan:"span-4",children:e("div",{className:"flex items-center justify-end gap-x-4",children:i})})]})}),e(o,{fluidContent:!0,className:n({"min-h-screen":r}),backgroundColor:m,children:r&&e("div",{className:"size-full py-8",children:e("div",{className:"flex flex-col items-center justify-center gap-y-8",children:a})})})]})};export{G as MobileHeader};
|
package/dist/modal-335SDLM4.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{a as u}from"./chunk-HDWSBDVE.mjs";import"./chunk-MSXDLSXH.mjs";import{c as s}from"./chunk-S7CSCIW4.mjs";import{useCallback as d,useState as N,useRef as S,useEffect as y}from"react";import{UniformSlot as c}from"@uniformdev/canvas-next-rsc/component";import{jsx as v}from"react/jsx-runtime";var h=({className:o,...t})=>v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:s("size-8",o),...t,children:v("path",{d:"m16.192 6.344-4.243 4.242-4.242-4.242-1.414 1.414L10.535 12l-4.242 4.242 1.414 1.414 4.242-4.242 4.243 4.242 1.414-1.414L13.364 12l4.242-4.242z"})});var M=({showModal:o})=>s("fixed left-0 top-0 size-full",{hidden:!o,block:o}),P=({maxWidth:o,backgroundColor:t})=>s("rounded-lg shadow-lg relative",u[o||"small"],{[`bg-${t}`]:!!t}),b=({disableCloseModalOnClickOutside:o})=>s("group absolute right-4 top-4 opacity-40 hover:opacity-100",{hidden:o});import{jsx as e,jsxs as k}from"react/jsx-runtime";var O=({slots:o,component:t,context:a,maxWidth:x,backgroundColor:E,closeIconColor:p,disableCloseModalOnClickOutside:r})=>{let i=S(null),[C,n]=N(!1),F=d(()=>{r||n(!1)},[r]),f=d(()=>{n(l=>!l)},[]),w=d(l=>{l.stopPropagation()},[]);return y(()=>{if(!i.current)return;let l=i.current.querySelectorAll("button, a"),g=()=>n(!1);return l.forEach(m=>{m.addEventListener("click",g)}),()=>l.forEach(m=>{m.removeEventListener("click",g)})},[]),k("div",{children:[e("div",{onClick:f,children:e(c,{data:t,context:a,slot:o.trigger})}),e("div",{className:M({showModal:C}),children:e("dialog",{open:C,onClick:F,"aria-label":"Close modal","aria-modal":"true",className:"flex size-full items-center justify-center bg-black/50 px-4",children:k("form",{method:"dialog",className:P({maxWidth:x,backgroundColor:E}),onClick:w,children:[e("button",{onClick:f,className:b({disableCloseModalOnClickOutside:r}),children:e(h,{className:s({[`fill-${p}`]:p})})}),e("div",{className:"p-6 md:p-8",children:e(c,{data:t,context:a,slot:o.modalContent})}),o?.modalActions?.items?.length&&e("div",{ref:i,className:"border-t p-6 md:p-8",children:e(c,{data:t,context:a,slot:o.modalActions})})]})})})]})};export{O as Modal};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{a as k}from"./chunk-VEUVLMJO.mjs";import{a as P,b as x}from"./chunk-3TBBNSCU.mjs";import{a as N}from"./chunk-EIQPM3DQ.mjs";import"./chunk-QHIWJPL6.mjs";import{a as b,b as u}from"./chunk-VZCFPWET.mjs";import"./chunk-RZFK2OR7.mjs";import{a as h}from"./chunk-JNIJ5N3Y.mjs";import{a as F,c as a}from"./chunk-S7CSCIW4.mjs";import{useCallback as L,useMemo as Q,useState as W}from"react";import{UniformText as Y}from"@uniformdev/canvas-next-rsc/component";import{UniformSlot as I}from"@uniformdev/canvas-next-rsc/component";import{jsx as r,jsxs as X}from"react/jsx-runtime";var w=({isOpen:t,backgroundColor:e,context:o,slots:n,border:l,component:i,hasRightContent:m})=>r("div",{className:a("absolute z-10 w-max left-1/2 -translate-x-1/2 pt-4",{hidden:!t,block:t,"w-full md:w-[460px]":!m,"w-full md:w-[460px] xl:w-[768px]":m}),children:r("div",{className:a("p-8",{[`bg-${e}`]:!!e,[F(l,"{value}")]:l}),children:X(b,{columnsCount:"2",gapX:"4",children:[r(u,{children:r("div",{className:"flex flex-col gap-y-4",children:r(I,{context:o,data:i,slot:n.navigationFlyoutLeftContent})})}),r(u,{children:r(I,{context:o,data:i,slot:n.navigationFlyoutRightContent})})]})})});import{useEffect as q,useState as J}from"react";import{UniformSlot as B}from"@uniformdev/canvas-next-rsc/component";import{jsx as d,jsxs as H}from"react/jsx-runtime";var K=()=>{let[t,e]=J(0);return q(()=>{let o=document.getElementById("mobile-header");o&&e(o.offsetHeight)},[]),t},M=({isOpen:t,backgroundColor:e,context:o,slots:n,onClose:l,component:i})=>{let m=K();return H("div",{style:{top:m},className:a("fixed left-0 right-0 bottom-0 z-10 w-full pt-4",{[`bg-${e}`]:!!e,hidden:!t,block:t}),children:[d("button",{onClick:l,className:"w-max rotate-180 px-4",children:d(P,{})}),H("div",{className:"flex flex-col items-center justify-center gap-y-8 p-4",children:[d(B,{context:o,data:i,slot:n.navigationFlyoutLeftContent}),d(B,{context:o,data:i,slot:n.navigationFlyoutRightContent})]})]})};var D=({isOpen:t})=>a("transition transform hidden md:block",{"rotate-180":t,"rotate-0":!t}),G=({color:t})=>a("flex items-center gap-x-2",{[`text-${t}`]:!!t});import{jsx as s,jsxs as R}from"react/jsx-runtime";var Pt=({icon:t,backgroundColor:e,border:o,size:n,tag:l,color:i,weight:m,font:O,transform:S,decoration:E,letterSpacing:U,alignment:$,component:p,context:v,slots:f})=>{let[c,g]=W(!1),z=L(()=>g(!0),[]),C=L(()=>g(!1),[]),A=Q(()=>!!p.slots?.navigationFlyoutRightContent?.length,[p.slots]),[T]=h(t),{url:y,title:V=""}=T||{};return R("div",{className:"relative",onMouseLeave:C,children:[R("button",{onMouseEnter:z,className:G({color:i}),children:[s(k,{icon:y&&s(N,{src:y,alt:V,fill:!0}),size:n,tag:l,color:i,weight:m,font:O,transform:S,decoration:E,letterSpacing:U,alignment:$,children:s(Y,{placeholder:"Text goes here",parameterId:"text",component:p,context:v})}),s("div",{className:D({isOpen:c}),children:s(x,{})})]}),s("div",{className:"hidden md:block",children:s(w,{hasRightContent:A,isOpen:c,backgroundColor:e,context:v,slots:f,border:o,component:p})}),s("div",{className:"block md:hidden",children:s(M,{onClose:C,isOpen:c,backgroundColor:e,context:v,slots:f,border:o,component:p})})]})};export{Pt as NavigationFlyout};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{a as x}from"./chunk-VEUVLMJO.mjs";import{a as h,b as P}from"./chunk-3TBBNSCU.mjs";import{a as b}from"./chunk-EIQPM3DQ.mjs";import"./chunk-QHIWJPL6.mjs";import{a as C}from"./chunk-JNIJ5N3Y.mjs";import{a as N,c as r}from"./chunk-S7CSCIW4.mjs";import{useCallback as B,useState as J}from"react";import{UniformText as K}from"@uniformdev/canvas-next-rsc/component";import{UniformSlot as $}from"@uniformdev/canvas-next-rsc/component";import{jsx as p}from"react/jsx-runtime";var G=({isOpen:o,backgroundColor:t,context:e,slots:a,border:i})=>p("div",{className:r("absolute left-0 max-w-64 z-10 pt-4",{hidden:!o,block:o}),children:p("div",{className:r({[`bg-${t}`]:!!t,[N(i,"{value}")]:i}),children:p("div",{className:"flex flex-col gap-y-4 p-4",children:p($,{data:e,slot:a.links,context:e})})})});import{useEffect as z,useState as A}from"react";import{UniformSlot as T}from"@uniformdev/canvas-next-rsc/component";import{jsx as l,jsxs as q}from"react/jsx-runtime";var V=()=>{let[o,t]=A(0);return z(()=>{let e=document.getElementById("mobile-header");e&&t(e.offsetHeight)},[]),o},k=({isOpen:o,backgroundColor:t,context:e,slots:a,onClose:i})=>{let n=V();return q("div",{style:{top:n},className:r("fixed left-0 right-0 bottom-0 z-10 w-full pt-4",{[`bg-${t}`]:!!t,hidden:!o,block:o}),children:[l("button",{onClick:i,className:"w-max rotate-180 px-4",children:l(h,{})}),l("div",{className:"flex flex-col items-center gap-y-4 p-4",children:l(T,{data:e,slot:a.links,context:e})})]})};var y=({isOpen:o})=>r("transition transform hidden md:block",{"rotate-180":o,"rotate-0":!o}),I=({color:o})=>r("flex items-center gap-x-2",{[`text-${o}`]:!!o});import{jsx as s,jsxs as F}from"react/jsx-runtime";var go=({icon:o,backgroundColor:t,border:e,size:a,tag:i,color:n,weight:H,font:w,transform:M,decoration:D,letterSpacing:O,alignment:S,component:E,context:m,slots:v})=>{let[c,d]=J(!1),f=B(()=>d(!0),[]),u=B(()=>d(!1),[]),[L]=C(o),{url:g,title:U=""}=L||{};return F("div",{className:"relative",onMouseLeave:u,children:[F("button",{onMouseEnter:f,onClick:f,className:I({color:n}),children:[s(x,{icon:g&&s(b,{src:g,alt:U,fill:!0}),size:a,tag:i,color:n,weight:H,font:w,transform:M,decoration:D,letterSpacing:O,alignment:S,children:s(K,{placeholder:"Text goes here",parameterId:"text",component:E,context:m})}),s("div",{className:y({isOpen:c}),children:s(P,{})})]}),s("div",{className:"hidden md:block",children:s(G,{isOpen:c,backgroundColor:t,context:m,slots:v,border:e})}),s("div",{className:"block md:hidden",children:s(k,{onClose:u,isOpen:c,backgroundColor:t,context:m,slots:v})})]})};export{go as NavigationGroup};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import r from"next/dynamic";import{useUniformContext as n}from"@uniformdev/canvas-next-rsc/component";import{jsx as h}from"react/jsx-runtime";var m=r(()=>import("./ThemeSwitcher-EUDUX3QI.mjs").then(e=>e.default),{ssr:!1}),p=({iconColor:e})=>{let{context:o}=n();return h(m,{iconColor:e,onChange:t=>{o?.update({quirks:{theme:t}})}})};export{p as ThemeSwitcher};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{c as o}from"./chunk-S7CSCIW4.mjs";import{setCookie as h}from"cookies-next";import{useTheme as i}from"next-themes";import{jsx as C}from"react/jsx-runtime";var l=()=>C("svg",{width:"15",height:"15",viewBox:"0 0 15 15",className:"size-[1.2rem] fill-current",children:C("path",{d:"M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",fillRule:"evenodd",clipRule:"evenodd"})}),s=()=>C("svg",{width:"15",height:"15",viewBox:"0 0 15 15",className:"size-[1.2rem] fill-current",children:C("path",{d:"M2.89998 0.499976C2.89998 0.279062 2.72089 0.0999756 2.49998 0.0999756C2.27906 0.0999756 2.09998 0.279062 2.09998 0.499976V1.09998H1.49998C1.27906 1.09998 1.09998 1.27906 1.09998 1.49998C1.09998 1.72089 1.27906 1.89998 1.49998 1.89998H2.09998V2.49998C2.09998 2.72089 2.27906 2.89998 2.49998 2.89998C2.72089 2.89998 2.89998 2.72089 2.89998 2.49998V1.89998H3.49998C3.72089 1.89998 3.89998 1.72089 3.89998 1.49998C3.89998 1.27906 3.72089 1.09998 3.49998 1.09998H2.89998V0.499976ZM5.89998 3.49998C5.89998 3.27906 5.72089 3.09998 5.49998 3.09998C5.27906 3.09998 5.09998 3.27906 5.09998 3.49998V4.09998H4.49998C4.27906 4.09998 4.09998 4.27906 4.09998 4.49998C4.09998 4.72089 4.27906 4.89998 4.49998 4.89998H5.09998V5.49998C5.09998 5.72089 5.27906 5.89998 5.49998 5.89998C5.72089 5.89998 5.89998 5.72089 5.89998 5.49998V4.89998H6.49998C6.72089 4.89998 6.89998 4.72089 6.89998 4.49998C6.89998 4.27906 6.72089 4.09998 6.49998 4.09998H5.89998V3.49998ZM1.89998 6.49998C1.89998 6.27906 1.72089 6.09998 1.49998 6.09998C1.27906 6.09998 1.09998 6.27906 1.09998 6.49998V7.09998H0.499976C0.279062 7.09998 0.0999756 7.27906 0.0999756 7.49998C0.0999756 7.72089 0.279062 7.89998 0.499976 7.89998H1.09998V8.49998C1.09998 8.72089 1.27906 8.89997 1.49998 8.89997C1.72089 8.89997 1.89998 8.72089 1.89998 8.49998V7.89998H2.49998C2.72089 7.89998 2.89998 7.72089 2.89998 7.49998C2.89998 7.27906 2.72089 7.09998 2.49998 7.09998H1.89998V6.49998ZM8.54406 0.98184L8.24618 0.941586C8.03275 0.917676 7.90692 1.1655 8.02936 1.34194C8.17013 1.54479 8.29981 1.75592 8.41754 1.97445C8.91878 2.90485 9.20322 3.96932 9.20322 5.10022C9.20322 8.37201 6.82247 11.0878 3.69887 11.6097C3.45736 11.65 3.20988 11.6772 2.96008 11.6906C2.74563 11.702 2.62729 11.9535 2.77721 12.1072C2.84551 12.1773 2.91535 12.2458 2.98667 12.3128L3.05883 12.3795L3.31883 12.6045L3.50684 12.7532L3.62796 12.8433L3.81491 12.9742L3.99079 13.089C4.11175 13.1651 4.23536 13.2375 4.36157 13.3059L4.62496 13.4412L4.88553 13.5607L5.18837 13.6828L5.43169 13.7686C5.56564 13.8128 5.70149 13.8529 5.83857 13.8885C5.94262 13.9155 6.04767 13.9401 6.15405 13.9622C6.27993 13.9883 6.40713 14.0109 6.53544 14.0298L6.85241 14.0685L7.11934 14.0892C7.24637 14.0965 7.37436 14.1002 7.50322 14.1002C11.1483 14.1002 14.1032 11.1453 14.1032 7.50023C14.1032 7.25044 14.0893 7.00389 14.0623 6.76131L14.0255 6.48407C13.991 6.26083 13.9453 6.04129 13.8891 5.82642C13.8213 5.56709 13.7382 5.31398 13.6409 5.06881L13.5279 4.80132L13.4507 4.63542L13.3766 4.48666C13.2178 4.17773 13.0353 3.88295 12.8312 3.60423L12.6782 3.40352L12.4793 3.16432L12.3157 2.98361L12.1961 2.85951L12.0355 2.70246L11.8134 2.50184L11.4925 2.24191L11.2483 2.06498L10.9562 1.87446L10.6346 1.68894L10.3073 1.52378L10.1938 1.47176L9.95488 1.3706L9.67791 1.2669L9.42566 1.1846L9.10075 1.09489L8.83599 1.03486L8.54406 0.98184ZM10.4032 5.30023C10.4032 4.27588 10.2002 3.29829 9.83244 2.40604C11.7623 3.28995 13.1032 5.23862 13.1032 7.50023C13.1032 10.593 10.596 13.1002 7.50322 13.1002C6.63646 13.1002 5.81597 12.9036 5.08355 12.5522C6.5419 12.0941 7.81081 11.2082 8.74322 10.0416C8.87963 10.2284 9.10028 10.3497 9.34928 10.3497C9.76349 10.3497 10.0993 10.0139 10.0993 9.59971C10.0993 9.24256 9.84965 8.94373 9.51535 8.86816C9.57741 8.75165 9.63653 8.63334 9.6926 8.51332C9.88358 8.63163 10.1088 8.69993 10.35 8.69993C11.0403 8.69993 11.6 8.14028 11.6 7.44993C11.6 6.75976 11.0406 6.20024 10.3505 6.19993C10.3853 5.90487 10.4032 5.60464 10.4032 5.30023Z",fillRule:"evenodd",clipRule:"evenodd"})}),V=({iconColor:L,onChange:r})=>{let{setTheme:m,resolvedTheme:t}=i();return C("button",{"aria-label":"Theme selector",onClick:()=>{let e=t==="dark"?"light":"dark";m(e),h("theme",e),r?.(e)},className:o({[`text-${L}`]:!!L}),children:t==="dark"?C(s,{}):C(l,{})})};export{V as ThemeSwitcher};
|
package/dist/video-VG6ZQCKN.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{a,c as e}from"./chunk-S7CSCIW4.mjs";import{useCallback as m,useState as V}from"react";import C from"next/dynamic";import{jsx as l,jsxs as b}from"react/jsx-runtime";var w=({className:t,...i})=>b("svg",{className:e("size-full",t),viewBox:"0 0 123 123",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[l("circle",{cx:"61.5",cy:"61.5",r:"61.5",fillOpacity:"0.922864"}),l("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M82.7064 62.0304L48.7754 81.6468V42.4141L82.7064 62.0304Z",stroke:"white"})]}),u=({onClick:t})=>l("button",{className:"absolute left-1/2 top-1/2 w-1/5 -translate-x-1/2 -translate-y-1/2 transition hover:scale-90",type:"button","aria-label":"Play video",onClick:t,children:l(w,{})});import{jsx as s,jsxs as N}from"react/jsx-runtime";var F=C(()=>import("react-player/lazy").then(t=>t.default),{ssr:!1}),R=({url:t,autoPlay:i=!1,loop:f,controls:v,lazyLoad:n=!1,placeholderImageUrl:d,muted:y,overlayColor:c,overlayOpacity:P,border:o})=>{let[g,r]=V(i),p=m(()=>r(!0),[]),h=m(()=>r(!1),[]);return N("div",{className:"relative aspect-video size-full [&_video]:!object-cover",children:[t&&s("div",{className:e("absolute left-0 top-0 size-full overflow-hidden",{[a(o,"{value}")]:o}),children:s(F,{url:t,playing:g,onPause:h,onPlay:p,width:"100%",height:"100%",controls:v,muted:y,loop:f,light:n&&d||n,playIcon:s(u,{onClick:p})})}),s("div",{className:e("absolute inset-0 pointer-events-none",{[`bg-${c}`]:c,[a(o,"{value}")]:o}),style:{opacity:P||0}})]})};export{R as Video};
|