@uniformdev/csk-components 6.0.44 → 6.0.77-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.
Files changed (102) hide show
  1. package/cli.js +1 -1
  2. package/dist/ThemeSwitcher-6Q7LCO4Q.mjs +1 -0
  3. package/dist/accordion-item-A2CU5OKG.mjs +1 -0
  4. package/dist/banner-QXWN54B7.mjs +1 -0
  5. package/dist/carousel-3H6U25O4.mjs +1 -0
  6. package/dist/carousel-UKVR7LKR.mjs +1 -0
  7. package/dist/{chunk-HDWSBDVE.mjs → chunk-2SEOCBRK.mjs} +1 -1
  8. package/dist/{chunk-UDP47PNB.mjs → chunk-2UV7TQNF.mjs} +1 -1
  9. package/dist/{chunk-6POLDE2K.mjs → chunk-3PDY7RJC.mjs} +3 -3
  10. package/dist/chunk-6TUDWIYU.mjs +1 -0
  11. package/dist/chunk-AKRWCDDG.mjs +1 -0
  12. package/dist/chunk-CBZWZSQW.mjs +1 -0
  13. package/dist/chunk-GU776XBS.mjs +1 -0
  14. package/dist/{chunk-26BSLQVU.mjs → chunk-H3OSPGNK.mjs} +1 -1
  15. package/dist/{chunk-JTRZPR2Q.mjs → chunk-HLLKGZN6.mjs} +1 -1
  16. package/dist/chunk-P2OOJTJ2.mjs +1 -0
  17. package/dist/chunk-RX4IAAQQ.mjs +1 -0
  18. package/dist/{chunk-CLSZO62H.mjs → chunk-T6HZMAEP.mjs} +1 -1
  19. package/dist/chunk-TM7Q5NMH.mjs +1 -0
  20. package/dist/{chunk-ZWDCDE5W.mjs → chunk-V4EBWEG4.mjs} +1 -1
  21. package/dist/chunk-YEKQJ4YC.mjs +1 -0
  22. package/dist/components/canvas/emptyPlaceholders.d.mts +3 -3
  23. package/dist/components/canvas/emptyPlaceholders.mjs +1 -1
  24. package/dist/components/canvas/index.d.mts +48 -26
  25. package/dist/components/canvas/index.mjs +2 -1
  26. package/dist/components/ui/index.d.mts +3 -3
  27. package/dist/components/ui/index.mjs +1 -1
  28. package/dist/content/components/canvas/Badge/index.tsx +1 -2
  29. package/dist/content/components/canvas/Breadcrumbs/breadcrumbs.tsx +64 -7
  30. package/dist/content/components/canvas/Breadcrumbs/index.tsx +2 -2
  31. package/dist/content/components/canvas/Button/index.tsx +1 -2
  32. package/dist/content/components/canvas/DemoHero/fixed-hero.tsx +1 -1
  33. package/dist/content/components/canvas/Flex/index.tsx +1 -2
  34. package/dist/content/components/canvas/Footer/index.tsx +1 -2
  35. package/dist/content/components/canvas/Grid/index.tsx +1 -2
  36. package/dist/content/components/canvas/GridItem/index.tsx +1 -2
  37. package/dist/content/components/canvas/Header/index.tsx +1 -2
  38. package/dist/content/components/canvas/IconLabel/index.tsx +1 -2
  39. package/dist/content/components/canvas/Link/index.tsx +1 -2
  40. package/dist/content/components/canvas/NavigationFlyout/index.tsx +4 -2
  41. package/dist/content/components/canvas/NavigationFlyout/navigation-flyout.tsx +32 -6
  42. package/dist/content/components/canvas/NavigationFlyout/style-utils.ts +2 -2
  43. package/dist/content/components/canvas/NavigationGroup/index.tsx +4 -2
  44. package/dist/content/components/canvas/NavigationGroup/navigation-group.tsx +32 -6
  45. package/dist/content/components/canvas/NavigationGroup/style-utils.ts +2 -2
  46. package/dist/content/components/canvas/NavigationLink/index.tsx +4 -2
  47. package/dist/content/components/canvas/NavigationLink/navigation-link.tsx +21 -4
  48. package/dist/content/components/canvas/NavigationLink/wrapper.tsx +8 -3
  49. package/dist/content/components/canvas/RichText/index.tsx +1 -2
  50. package/dist/content/components/canvas/Section/default-variant.tsx +1 -6
  51. package/dist/content/components/canvas/Section/section.tsx +1 -2
  52. package/dist/content/components/canvas/Tab/index.tsx +1 -2
  53. package/dist/content/components/canvas/Tabs/index.tsx +1 -2
  54. package/dist/content/components/canvas/Text/index.tsx +1 -2
  55. package/dist/content/components/canvas/ThemeSwitcher/index.tsx +1 -2
  56. package/dist/content/components/ui/IconLabel/icon-label.tsx +11 -4
  57. package/dist/content/components/ui/IconLabel/index.ts +2 -1
  58. package/dist/content/components/ui/_icons/index.tsx +0 -1
  59. package/dist/content/utils/routing.ts +1 -1
  60. package/dist/countdown-LYDXJLEE.mjs +1 -0
  61. package/dist/image-gallery-2ZNDWYOS.mjs +1 -0
  62. package/dist/index.mjs +1 -1
  63. package/dist/mobile-PRXIDJ7S.mjs +1 -0
  64. package/dist/modal-HKMQGV4B.mjs +1 -0
  65. package/dist/navigation-flyout-YK6OWITR.mjs +1 -0
  66. package/dist/navigation-group-5YMQCUUX.mjs +1 -0
  67. package/dist/{tabs-QEFLGIZ3.mjs → tabs-P6QFF2ZS.mjs} +1 -1
  68. package/dist/theme-switcher-76F2V343.mjs +1 -0
  69. package/dist/theme-switcher-WO5JIV2W.mjs +1 -0
  70. package/dist/utils/assets.mjs +1 -1
  71. package/dist/utils/createComponentResolver.mjs +1 -1
  72. package/dist/utils/createEmptyPlaceholderResolver.mjs +1 -1
  73. package/dist/utils/routing.mjs +1 -1
  74. package/dist/utils/styling.mjs +1 -1
  75. package/dist/video-RC2QHJS2.mjs +1 -0
  76. package/package.json +8 -12
  77. package/dist/ThemeSwitcher-EUDUX3QI.mjs +0 -1
  78. package/dist/accordion-item-ZS3TSISI.mjs +0 -1
  79. package/dist/banner-NNL34KVD.mjs +0 -1
  80. package/dist/carousel-KSNELZEM.mjs +0 -1
  81. package/dist/carousel-YLA2VELY.mjs +0 -1
  82. package/dist/chunk-2OD4OVSF.mjs +0 -1
  83. package/dist/chunk-3TBBNSCU.mjs +0 -1
  84. package/dist/chunk-DBSKI4UW.mjs +0 -1
  85. package/dist/chunk-HDKBSM4X.mjs +0 -1
  86. package/dist/chunk-J2GMOCYV.mjs +0 -1
  87. package/dist/chunk-PC5W2GRG.mjs +0 -1
  88. package/dist/chunk-VEUVLMJO.mjs +0 -1
  89. package/dist/content/components/canvas/NavigationLink/style-utils.ts +0 -13
  90. package/dist/content/components/ui/_icons/ChevronDown/index.tsx +0 -9
  91. package/dist/content/hocs/withPlaygroundWrapper.tsx +0 -25
  92. package/dist/countdown-7D7WECEZ.mjs +0 -1
  93. package/dist/hocs/withPlaygroundWrapper.d.mts +0 -6
  94. package/dist/hocs/withPlaygroundWrapper.mjs +0 -1
  95. package/dist/image-gallery-ISM5BLSF.mjs +0 -1
  96. package/dist/mobile-C3RAMYEQ.mjs +0 -1
  97. package/dist/modal-335SDLM4.mjs +0 -1
  98. package/dist/navigation-flyout-TQO777FY.mjs +0 -1
  99. package/dist/navigation-group-3YBAK65R.mjs +0 -1
  100. package/dist/theme-switcher-JE6MRNXM.mjs +0 -1
  101. package/dist/theme-switcher-QTX46Z7E.mjs +0 -1
  102. package/dist/video-VG6ZQCKN.mjs +0 -1
@@ -2,15 +2,17 @@ import { AssetParamValue } from '@uniformdev/assets';
2
2
  import { LinkParamValue } from '@uniformdev/canvas';
3
3
  import { ComponentProps } from '@uniformdev/canvas-next-rsc/component';
4
4
  import { TextParameters } from '@/components/canvas/Text/parameters';
5
- import { withPlaygroundWrapper } from '@/hocs/withPlaygroundWrapper';
5
+ import { ViewPort } from '@/types/cskTypes';
6
6
  import { NavigationLink } from './navigation-link';
7
7
 
8
8
  export type NavigationLinkParameters = TextParameters & {
9
9
  icon?: AssetParamValue;
10
10
  link?: LinkParamValue;
11
11
  activeState?: boolean;
12
+ hoverEffect?: string | ViewPort<string>;
13
+ className?: string;
12
14
  };
13
15
 
14
16
  export type NavigationLinkProps = ComponentProps<NavigationLinkParameters>;
15
17
 
16
- export default withPlaygroundWrapper(NavigationLink);
18
+ export default NavigationLink;
@@ -2,10 +2,11 @@ import { FC } from 'react';
2
2
  import { UniformText } from '@uniformdev/canvas-next-rsc/component';
3
3
  import BaseIconLabel from '@/components/ui/IconLabel';
4
4
  import BaseImage from '@/components/ui/Image';
5
+ import InlineSVG from '@/components/ui/InlineSVG';
5
6
  import { resolveAsset } from '@/utils/assets';
6
- import { formatUniformLink, isExternalLink } from '@/utils/routing';
7
+ import { formatUniformLink, isExternalLink, resolveRouteToPath } from '@/utils/routing';
8
+ import { cn, resolveViewPort } from '@/utils/styling';
7
9
  import { NavigationLinkProps } from '.';
8
- import { getBaseIconLabelClasses } from './style-utils';
9
10
  import { Wrapper } from './wrapper';
10
11
 
11
12
  export const NavigationLink: FC<NavigationLinkProps> = ({
@@ -23,17 +24,33 @@ export const NavigationLink: FC<NavigationLinkProps> = ({
23
24
  alignment,
24
25
  component,
25
26
  context,
27
+ hoverEffect = '',
28
+ className,
26
29
  }) => {
27
30
  const href = formatUniformLink(link);
31
+ const isActive = activeState && resolveRouteToPath(context.matchedRoute, context.dynamicInputs) === href;
28
32
 
29
33
  const [resolvedImage] = resolveAsset(icon);
30
34
  const { url, title = '' } = resolvedImage || {};
31
35
 
36
+ const renderUrl = () => {
37
+ if (!url) return null;
38
+
39
+ return url.endsWith('.svg') ? <InlineSVG src={url} alt={title} fill /> : <BaseImage src={url} alt={title} fill />;
40
+ };
41
+
42
+ const actionClassName = cn('transition-all duration-150', {
43
+ [resolveViewPort(hoverEffect, 'group-hover:{value}')]: !!hoverEffect,
44
+ [resolveViewPort(hoverEffect, '{value}')]: !!hoverEffect && isActive,
45
+ });
46
+
32
47
  return (
33
48
  <Wrapper href={href} isExternalLink={isExternalLink(href)}>
34
49
  <BaseIconLabel
35
- textClassName={getBaseIconLabelClasses({ activeState, context, href })}
36
- icon={url && <BaseImage src={url} alt={title} fill />}
50
+ icon={renderUrl()}
51
+ className={cn('group', className)}
52
+ iconClassName={actionClassName}
53
+ textClassName={actionClassName}
37
54
  {...{ size, tag, color, weight, font, transform, decoration, letterSpacing, alignment }}
38
55
  >
39
56
  <UniformText
@@ -1,4 +1,4 @@
1
- import { FC, Fragment, PropsWithChildren } from 'react';
1
+ import { FC, PropsWithChildren } from 'react';
2
2
  import BaseLink from '@/components/ui/Link';
3
3
 
4
4
  type WrapperProps = PropsWithChildren & {
@@ -8,11 +8,16 @@ type WrapperProps = PropsWithChildren & {
8
8
 
9
9
  export const Wrapper: FC<WrapperProps> = ({ href, isExternalLink, children }) => {
10
10
  if (!href) {
11
- return <Fragment>{children}</Fragment>;
11
+ return <div className="cursor-pointer">{children}</div>;
12
12
  }
13
13
 
14
14
  return (
15
- <BaseLink link={href} openInNewTab={isExternalLink} rel={isExternalLink ? 'noopener noreferrer' : ''}>
15
+ <BaseLink
16
+ className="cursor-pointer hover:no-underline"
17
+ link={href}
18
+ openInNewTab={isExternalLink}
19
+ rel={isExternalLink ? 'noopener noreferrer' : ''}
20
+ >
16
21
  {children}
17
22
  </BaseLink>
18
23
  );
@@ -1,6 +1,5 @@
1
1
  import { ComponentProps } from '@uniformdev/canvas-next-rsc/component';
2
2
  import { RichTextNode } from '@uniformdev/richtext';
3
- import { withPlaygroundWrapper } from '@/hocs/withPlaygroundWrapper';
4
3
  import { RichText } from './rich-text';
5
4
 
6
5
  export type RichTextAdditionalProps = {
@@ -16,4 +15,4 @@ export type RichTextParameters = {
16
15
 
17
16
  export type RichTextProps = ComponentProps<RichTextParameters & RichTextAdditionalProps>;
18
17
 
19
- export default withPlaygroundWrapper(RichText);
18
+ export default RichText;
@@ -9,7 +9,6 @@ type DefaultVariantProps = {
9
9
  border?: SectionParameters['border'];
10
10
  fluidContent?: SectionParameters['fluidContent'];
11
11
  fullHeight?: SectionParameters['fullHeight'];
12
- previewMode?: string;
13
12
  sectionMedia: React.ReactNode;
14
13
  sectionContent: React.ReactNode;
15
14
  sectionCTA: React.ReactNode;
@@ -23,17 +22,13 @@ export const DefaultVariant: FC<DefaultVariantProps> = ({
23
22
  border,
24
23
  fluidContent,
25
24
  fullHeight,
26
- previewMode,
27
25
  sectionMedia,
28
26
  sectionContent,
29
27
  sectionCTA,
30
28
  textAlignmentClass,
31
29
  buttonAlignmentClass,
32
30
  }) => (
33
- <Container
34
- className={cn('relative overflow-hidden', { 'p-32': previewMode })}
35
- {...{ backgroundColor, spacing, border, fluidContent, fullHeight }}
36
- >
31
+ <Container className="relative overflow-hidden" {...{ backgroundColor, spacing, border, fluidContent, fullHeight }}>
37
32
  <div className="absolute left-0 top-0 size-full overflow-hidden">{sectionMedia}</div>
38
33
  <Container className="relative flex flex-col gap-8">
39
34
  <div className={cn('flex flex-col gap-4', textAlignmentClass)}>{sectionContent}</div>
@@ -17,7 +17,6 @@ export const Section: FC<SectionProps> = ({
17
17
  fullHeight,
18
18
  }) => {
19
19
  const variant = component.variant as SectionVariants;
20
- const { previewMode } = context || {};
21
20
 
22
21
  const variantProps = {
23
22
  variant,
@@ -38,6 +37,6 @@ export const Section: FC<SectionProps> = ({
38
37
  case SectionVariants.ColumnsReverse:
39
38
  return <ColumnsVariant {...variantProps} />;
40
39
  default:
41
- return <DefaultVariant {...variantProps} previewMode={previewMode} />;
40
+ return <DefaultVariant {...variantProps} />;
42
41
  }
43
42
  };
@@ -1,5 +1,4 @@
1
1
  import { ComponentProps } from '@uniformdev/canvas-next-rsc/component';
2
- import { withPlaygroundWrapper } from '@/hocs/withPlaygroundWrapper';
3
2
  import { Tab } from './tab';
4
3
 
5
4
  export type TabParameters = { title?: string };
@@ -10,4 +9,4 @@ export enum TabSlots {
10
9
 
11
10
  export type TabProps = ComponentProps<TabParameters, TabSlots>;
12
11
 
13
- export default withPlaygroundWrapper(Tab);
12
+ export default Tab;
@@ -1,7 +1,6 @@
1
1
  import dynamic from 'next/dynamic';
2
2
  import { ComponentProps } from '@uniformdev/canvas-next-rsc/component';
3
3
  import { ContainerParameters } from '@/components/canvas/Container/parameters';
4
- import { withPlaygroundWrapper } from '@/hocs/withPlaygroundWrapper';
5
4
 
6
5
  export type TabsParameters = ContainerParameters & {
7
6
  color?: string;
@@ -18,5 +17,5 @@ export enum TabsSlots {
18
17
 
19
18
  export type TabsProps = ComponentProps<TabsParameters, TabsSlots>;
20
19
 
21
- export default dynamic(() => import('./tabs').then(mod => withPlaygroundWrapper(mod.Tabs)));
20
+ export default dynamic(() => import('./tabs').then(mod => mod.Tabs));
22
21
  export { TabsEmptyPlaceholder } from './empty-placeholder';
@@ -1,9 +1,8 @@
1
1
  import { ComponentProps } from '@uniformdev/canvas-next-rsc/component';
2
- import { withPlaygroundWrapper } from '@/hocs/withPlaygroundWrapper';
3
2
  import { TextParameters } from './parameters';
4
3
  import { Text } from './text';
5
4
 
6
5
  export type TextProps = ComponentProps<TextParameters>;
7
6
 
8
7
  export { type TextParameters } from './parameters';
9
- export default withPlaygroundWrapper(Text);
8
+ export default Text;
@@ -1,6 +1,5 @@
1
1
  import dynamic from 'next/dynamic';
2
2
  import { ComponentProps } from '@uniformdev/canvas-next-rsc/component';
3
- import { withPlaygroundWrapper } from '@/hocs/withPlaygroundWrapper';
4
3
 
5
4
  export type ThemeSwitcherParameters = {
6
5
  iconColor?: string;
@@ -8,4 +7,4 @@ export type ThemeSwitcherParameters = {
8
7
 
9
8
  export type ThemeSwitcherProps = ComponentProps<ThemeSwitcherParameters>;
10
9
 
11
- export default dynamic(() => import('./theme-switcher').then(mod => withPlaygroundWrapper(mod.ThemeSwitcher)));
10
+ export default dynamic(() => import('./theme-switcher').then(mod => mod.ThemeSwitcher));
@@ -16,13 +16,20 @@ export const IconLabel: FC<IconLabelProps> = ({
16
16
  alignment,
17
17
  children,
18
18
  textClassName,
19
+ iconClassName,
20
+ className,
19
21
  }) => (
20
22
  <div
21
- className={cn('flex w-fit items-center gap-x-3', {
22
- [`text-${size}`]: !!size,
23
- })}
23
+ className={cn(
24
+ 'flex w-fit items-center gap-x-3',
25
+ {
26
+ [`text-${size}`]: !!size,
27
+ [`text-${color}`]: !!color,
28
+ },
29
+ className
30
+ )}
24
31
  >
25
- {icon && <div className="relative size-[1em]">{icon}</div>}
32
+ {icon && <div className={cn('relative size-[1em]', iconClassName)}>{icon}</div>}
26
33
  <BaseText
27
34
  {...{
28
35
  alignment,
@@ -5,7 +5,8 @@ export type IconLabelProps = {
5
5
  icon?: ReactNode;
6
6
  children: ReactElement | string;
7
7
  textClassName?: string;
8
-
8
+ iconClassName?: string;
9
+ className?: string;
9
10
  text?: string;
10
11
  tag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span';
11
12
  size?: BaseTextProps['size'];
@@ -1,4 +1,3 @@
1
1
  export { default as ArrowIcon } from './Arrow';
2
- export { default as ChevronDownIcon } from './ChevronDown';
3
2
  export { default as ImageIcon } from './ImageIcon';
4
3
  export { default as VideoIcon } from './VideoIcon';
@@ -1,6 +1,6 @@
1
1
  import { ResolvedRouteGetResponse, RouteGetResponseEdgehancedComposition, LinkParamValue } from '@uniformdev/canvas';
2
2
 
3
- const DYNAMIC_KEY_REGEX = /:[a-zA-Z_]+/;
3
+ const DYNAMIC_KEY_REGEX = /:([a-zA-Z0-9-_]+)/g;
4
4
 
5
5
  /**
6
6
  * Resolves a dynamic route to a concrete path by replacing placeholders with values from the provided inputs.
@@ -0,0 +1 @@
1
+ "use client";import"./chunk-2UV7TQNF.mjs";import"./chunk-MSXDLSXH.mjs";import{a as l,c as a}from"./chunk-S7CSCIW4.mjs";import"./chunk-YEKQJ4YC.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};
@@ -0,0 +1 @@
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"./chunk-YEKQJ4YC.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/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import{a as x,b as y,c as w,d as E,e as F,f as S,g as P,h as R,i as $,j as I,k as _}from"./chunk-6POLDE2K.mjs";import{program as V}from"commander";import g from"node:path";import*as b from"ora";import{dirname as N}from"path";import{fileURLToPath as ee}from"url";import{checkbox as te}from"@inquirer/prompts";import U from"node:fs";var q=(r,t)=>U.readdirSync(r,{withFileTypes:!0}).filter(e=>t==="folder"?e.isDirectory():e.isFile()).map(e=>e.name),T=r=>q(r,"folder");import f from"node:fs";import a from"node:path";import{confirm as z}from"@inquirer/prompts";var K=async r=>{f.existsSync(r)||await f.promises.mkdir(r,{recursive:!0})};var O=r=>{let t=y.find(o=>f.existsSync(r+o));if(t)return r+t;let e=y.find(o=>f.existsSync(a.join(r,`index${o}`)));if(e)return a.join(r,`index${e}`)},Q=r=>{let e=f.readFileSync(r,"utf8").match(x)?.map(n=>n.replace(/['"]/g,"")),o=e?.filter(n=>n.startsWith("@/")).map(n=>n.replace("@/","")),s=e?.filter(n=>!n.startsWith("@/")).map(n=>n);return{aliases:o,relativePaths:s}},h=async(r,t,e)=>{e.add(r);let{aliases:o=[],relativePaths:s=[]}=Q(r);if(o.length)for(let n of o){let i=O(a.join(t,n));i&&!e.has(i)&&await h(i,t,e)}if(s.length)for(let n of s){let i=O(a.join(a.dirname(r),n));i&&!e.has(i)&&await h(i,t,e)}},j=5,A=async(r,t,e,o,s)=>{try{let n=new Set;s?.start("Searching for all canvas components and their dependencies...");for(let c of e){let l=a.join(r,c),d=f.readdirSync(l,{withFileTypes:!0}).filter(m=>m.isFile()&&w.includes(m.name));for(let m of d)await h(a.join(m?.path||m.parentPath,m.name),o,n)}let i=Array.from(n),p=i.filter(c=>{let l=a.join(t,a.relative(o,c));return f.existsSync(l)&&f.readFileSync(l,"utf8")!==f.readFileSync(c,"utf8")}),u=await(async()=>{if(!p.length)return!0;s?.stop();let c=p.slice(0,j).map(d=>a.relative(process.cwd(),a.join(t,a.relative(o,d)))).join(`
1
+ import{a as x,b as y,c as w,d as E,e as F,f as S,g as P,h as R,i as $,j as I,k as _}from"./chunk-3PDY7RJC.mjs";import"./chunk-YEKQJ4YC.mjs";import{program as V}from"commander";import g from"node:path";import*as b from"ora";import{dirname as N}from"path";import{fileURLToPath as ee}from"url";import{checkbox as te}from"@inquirer/prompts";import U from"node:fs";var q=(r,t)=>U.readdirSync(r,{withFileTypes:!0}).filter(e=>t==="folder"?e.isDirectory():e.isFile()).map(e=>e.name),T=r=>q(r,"folder");import f from"node:fs";import a from"node:path";import{confirm as z}from"@inquirer/prompts";var K=async r=>{f.existsSync(r)||await f.promises.mkdir(r,{recursive:!0})};var O=r=>{let t=y.find(o=>f.existsSync(r+o));if(t)return r+t;let e=y.find(o=>f.existsSync(a.join(r,`index${o}`)));if(e)return a.join(r,`index${e}`)},Q=r=>{let e=f.readFileSync(r,"utf8").match(x)?.map(n=>n.replace(/['"]/g,"")),o=e?.filter(n=>n.startsWith("@/")).map(n=>n.replace("@/","")),s=e?.filter(n=>!n.startsWith("@/")).map(n=>n);return{aliases:o,relativePaths:s}},h=async(r,t,e)=>{e.add(r);let{aliases:o=[],relativePaths:s=[]}=Q(r);if(o.length)for(let n of o){let i=O(a.join(t,n));i&&!e.has(i)&&await h(i,t,e)}if(s.length)for(let n of s){let i=O(a.join(a.dirname(r),n));i&&!e.has(i)&&await h(i,t,e)}},j=5,A=async(r,t,e,o,s)=>{try{let n=new Set;s?.start("Searching for all canvas components and their dependencies...");for(let c of e){let l=a.join(r,c),d=f.readdirSync(l,{withFileTypes:!0}).filter(m=>m.isFile()&&w.includes(m.name));for(let m of d)await h(a.join(m?.path||m.parentPath,m.name),o,n)}let i=Array.from(n),p=i.filter(c=>{let l=a.join(t,a.relative(o,c));return f.existsSync(l)&&f.readFileSync(l,"utf8")!==f.readFileSync(c,"utf8")}),u=await(async()=>{if(!p.length)return!0;s?.stop();let c=p.slice(0,j).map(d=>a.relative(process.cwd(),a.join(t,a.relative(o,d)))).join(`
2
2
  `),l=p.length>j?`
3
3
  ...`:"";return z({message:`Found ${p.length} files that will be overridden:
4
4
  ${c}${l}
@@ -0,0 +1 @@
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"./chunk-YEKQJ4YC.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};
@@ -0,0 +1 @@
1
+ "use client";import{a as u}from"./chunk-2SEOCBRK.mjs";import"./chunk-MSXDLSXH.mjs";import{c as s}from"./chunk-S7CSCIW4.mjs";import"./chunk-YEKQJ4YC.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};
@@ -0,0 +1 @@
1
+ "use client";import{a as H}from"./chunk-TM7Q5NMH.mjs";import{a as B}from"./chunk-AKRWCDDG.mjs";import{a as k}from"./chunk-6TUDWIYU.mjs";import"./chunk-QHIWJPL6.mjs";import{a as w,b as y}from"./chunk-VZCFPWET.mjs";import{a as C}from"./chunk-EIQPM3DQ.mjs";import"./chunk-RZFK2OR7.mjs";import{a as g}from"./chunk-JNIJ5N3Y.mjs";import{a as u,c as o}from"./chunk-S7CSCIW4.mjs";import"./chunk-YEKQJ4YC.mjs";import{useCallback as O,useMemo as et,useState as at}from"react";import{UniformText as st}from"@uniformdev/canvas-next-rsc/component";import{UniformSlot as M}from"@uniformdev/canvas-next-rsc/component";import{jsx as m,jsxs as _}from"react/jsx-runtime";var G=({isOpen:t,backgroundColor:s,context:e,slots:i,border:r,component:n,hasRightContent:l})=>m("div",{className:o("absolute z-10 w-max left-1/2 -translate-x-1/2 pt-4",{hidden:!t,block:t,"w-full md:w-[460px]":!l,"w-full md:w-[460px] xl:w-[768px]":l}),children:m("div",{className:o("p-8",{[`bg-${s}`]:!!s,[u(r,"{value}")]:r}),children:_(w,{columnsCount:"2",gapX:"4",children:[m(y,{children:m("div",{className:"flex flex-col gap-y-4",children:m(M,{context:e,data:n,slot:i.navigationFlyoutLeftContent})})}),m(y,{children:m(M,{context:e,data:n,slot:i.navigationFlyoutRightContent})})]})})});import{useEffect as j,useState as tt}from"react";import{UniformSlot as L}from"@uniformdev/canvas-next-rsc/component";import{jsx as d,jsxs as R}from"react/jsx-runtime";var ot=()=>{let[t,s]=tt(0);return j(()=>{let e=document.getElementById("mobile-header");e&&s(e.offsetHeight)},[]),t},S=({isOpen:t,backgroundColor:s,context:e,slots:i,onClose:r,component:n})=>{let l=ot();return R("div",{style:{top:l},className:o("fixed left-0 right-0 bottom-0 z-10 w-full pt-4",{[`bg-${s}`]:!!s,hidden:!t,block:t}),children:[d("button",{onClick:r,className:"w-max rotate-180 px-4",children:d(k,{})}),R("div",{className:"flex flex-col items-center justify-center gap-y-8 p-4",children:[d(L,{context:e,data:n,slot:i.navigationFlyoutLeftContent}),d(L,{context:e,data:n,slot:i.navigationFlyoutRightContent})]})]})};var U=({isOpen:t})=>o("transition transform hidden md:block",{"rotate-180":t,"rotate-0":!t}),D=({color:t})=>o("flex items-center gap-x-2",{[`text-${t}`]:!!t});import{jsx as a,jsxs as $}from"react/jsx-runtime";var Gt=({icon:t,caretIcon:s,backgroundColor:e,border:i,size:r,tag:n,color:l,weight:T,font:V,transform:A,decoration:E,letterSpacing:z,alignment:W,component:p,context:v,slots:N,hoverEffect:F="",className:X})=>{let[f,P]=at(!1),q=O(()=>P(!0),[]),h=O(()=>P(!1),[]),J=et(()=>!!p.slots?.navigationFlyoutRightContent?.length,[p.slots]),[K]=g(t),{url:c,title:x=""}=K||{},Q=()=>c?c.endsWith(".svg")?a(H,{src:c,alt:x,fill:!0}):a(C,{src:c,alt:x,fill:!0}):null,b=o("transition-all duration-150",{[u(F,"group-hover:{value}")]:!!F}),[Y]=g(s),{url:I,title:Z=""}=Y||{};return $("div",{className:"relative",onMouseLeave:h,children:[$("button",{onMouseEnter:q,className:D({color:l}),children:[a(B,{icon:Q(),className:o("group",X),iconClassName:b,textClassName:b,size:r,tag:n,color:l,weight:T,font:V,transform:A,decoration:E,letterSpacing:z,alignment:W,children:a(st,{placeholder:"Text goes here",parameterId:"text",component:p,context:v})}),I&&a("div",{className:o("relative size-[1em]",U({isOpen:f}),{[`text-${r}`]:!!r}),children:a(C,{src:I,alt:Z,fill:!0})})]}),a("div",{className:"hidden md:block",children:a(G,{hasRightContent:J,isOpen:f,backgroundColor:e,context:v,slots:N,border:i,component:p})}),a("div",{className:"block md:hidden",children:a(S,{onClose:h,isOpen:f,backgroundColor:e,context:v,slots:N,border:i,component:p})})]})};export{Gt as NavigationFlyout};
@@ -0,0 +1 @@
1
+ "use client";import{a as B}from"./chunk-TM7Q5NMH.mjs";import{a as I}from"./chunk-AKRWCDDG.mjs";import{a as y}from"./chunk-6TUDWIYU.mjs";import"./chunk-QHIWJPL6.mjs";import{a as f}from"./chunk-EIQPM3DQ.mjs";import{a as v}from"./chunk-JNIJ5N3Y.mjs";import{a as l,c as t}from"./chunk-S7CSCIW4.mjs";import"./chunk-YEKQJ4YC.mjs";import{useCallback as S,useState as _}from"react";import{UniformText as j}from"@uniformdev/canvas-next-rsc/component";import{UniformSlot as K}from"@uniformdev/canvas-next-rsc/component";import{jsx as p}from"react/jsx-runtime";var F=({isOpen:o,backgroundColor:s,context:e,slots:i,border:a})=>p("div",{className:t("absolute left-0 max-w-64 z-10 pt-4",{hidden:!o,block:o}),children:p("div",{className:t({[`bg-${s}`]:!!s,[l(a,"{value}")]:a}),children:p("div",{className:"flex flex-col gap-y-4 p-4",children:p(K,{data:e,slot:i.links,context:e})})})});import{useEffect as Q,useState as R}from"react";import{UniformSlot as X}from"@uniformdev/canvas-next-rsc/component";import{jsx as m,jsxs as Z}from"react/jsx-runtime";var Y=()=>{let[o,s]=R(0);return Q(()=>{let e=document.getElementById("mobile-header");e&&s(e.offsetHeight)},[]),o},H=({isOpen:o,backgroundColor:s,context:e,slots:i,onClose:a})=>{let c=Y();return Z("div",{style:{top:c},className:t("fixed left-0 right-0 bottom-0 z-10 w-full pt-4",{[`bg-${s}`]:!!s,hidden:!o,block:o}),children:[m("button",{onClick:a,className:"w-max rotate-180 px-4",children:m(y,{})}),m("div",{className:"flex flex-col items-center gap-y-4 p-4",children:m(X,{data:e,slot:i.links,context:e})})]})};var w=({isOpen:o})=>t("transition transform hidden md:block",{"rotate-180":o,"rotate-0":!o}),M=({color:o})=>t("flex items-center gap-x-2",{[`text-${o}`]:!!o});import{jsx as r,jsxs as U}from"react/jsx-runtime";var yo=({icon:o,caretIcon:s,backgroundColor:e,border:i,size:a,tag:c,color:g,weight:D,font:O,transform:$,decoration:L,letterSpacing:T,alignment:V,component:A,context:d,slots:C,hoverEffect:N="",className:E})=>{let[u,b]=_(!1),P=S(()=>b(!0),[]),x=S(()=>b(!1),[]),[z]=v(o),{url:n,title:h=""}=z||{},W=()=>n?n.endsWith(".svg")?r(B,{src:n,alt:h,fill:!0}):r(f,{src:n,alt:h,fill:!0}):null,G=t("transition-all duration-150",{[l(N,"group-hover:{value}")]:!!N}),[q]=v(s),{url:k,title:J=""}=q||{};return U("div",{className:"relative",onMouseLeave:x,children:[U("button",{onMouseEnter:P,onClick:P,className:M({color:g}),children:[r(I,{icon:W(),className:t("group",E),iconClassName:G,textClassName:G,size:a,tag:c,color:g,weight:D,font:O,transform:$,decoration:L,letterSpacing:T,alignment:V,children:r(j,{placeholder:"Text goes here",parameterId:"text",component:A,context:d})}),k&&r("div",{className:t("relative size-[1em]",w({isOpen:u}),{[`text-${a}`]:!!a}),children:r(f,{src:k,alt:J,fill:!0})})]}),r("div",{className:"hidden md:block",children:r(F,{isOpen:u,backgroundColor:e,context:d,slots:C,border:i})}),r("div",{className:"block md:hidden",children:r(H,{onClose:x,isOpen:u,backgroundColor:e,context:d,slots:C})})]})};export{yo as NavigationGroup};
@@ -1 +1 @@
1
- "use client";import"./chunk-PC5W2GRG.mjs";import{a as u}from"./chunk-RZFK2OR7.mjs";import"./chunk-HDKBSM4X.mjs";import"./chunk-MSXDLSXH.mjs";import{c as b}from"./chunk-S7CSCIW4.mjs";import{useCallback as y,useEffect as I,useMemo as V,useState as h}from"react";import{flattenValues as k}from"@uniformdev/canvas";import{UniformSlot as E,UniformText as F}from"@uniformdev/canvas-next-rsc/component";var f=({color:r,variant:a})=>b("flex flex-row overflow-x-auto ",{[`border-${r} border-b`]:r&&a==="bordered"}),p=({color:r,variant:a,tabItem:t,activeTabId:e})=>b("text-lg shrink-0 font-medium px-5 py-3",{[`text-${r}`]:r,[`border-${r}`]:t.id===e&&a==="bordered","border-b-2":a==="bordered","opacity-60 hover:opacity-100":t.id!==e,"border-transparent":t.id!==e&&a==="bordered"});import{Fragment as C,jsx as o,jsxs as N}from"react/jsx-runtime";var J=({slots:r,color:a,component:t,context:e,backgroundColor:g,spacing:T,border:c,fluidContent:x,fullHeight:B})=>{let m=t.variant||"default",[i,d]=h(t?.slots?.tabItems?.[0]?._id),n=V(()=>t?.slots?.tabItems?t.slots.tabItems.map(s=>({...k(s),id:s._id})):[],[t?.slots?.tabItems]);I(()=>{n.length&&(i||d(n[0]?.id||""))},[n,i]);let P=y(s=>{e.isContextualEditing&&d(s)},[e.isContextualEditing]);return N(u,{className:"flex flex-col gap-5",backgroundColor:g,spacing:T,border:c,fluidContent:x,fullHeight:B,children:[o("div",{className:f({color:a,variant:m}),children:n.map((s,l)=>o("button",{onClick:()=>d(s.id),className:p({color:a,variant:m,tabItem:s,activeTabId:i}),children:t?.slots?.tabItems?.[l]&&o(F,{onFocus:()=>P(s.id),context:e,parameterId:"text",component:t?.slots?.tabItems[l],placeholder:"Tab title"})},s.id))}),o(E,{data:t,context:e,slot:r.tabItems,children:({child:s,component:l})=>l._id===i?o(C,{children:s}):o(C,{})})]})};export{J as Tabs};
1
+ "use client";import"./chunk-CBZWZSQW.mjs";import{a as u}from"./chunk-RZFK2OR7.mjs";import"./chunk-MSXDLSXH.mjs";import{c as b}from"./chunk-S7CSCIW4.mjs";import"./chunk-YEKQJ4YC.mjs";import{useCallback as y,useEffect as I,useMemo as V,useState as h}from"react";import{flattenValues as k}from"@uniformdev/canvas";import{UniformSlot as E,UniformText as F}from"@uniformdev/canvas-next-rsc/component";var f=({color:r,variant:a})=>b("flex flex-row overflow-x-auto ",{[`border-${r} border-b`]:r&&a==="bordered"}),p=({color:r,variant:a,tabItem:t,activeTabId:e})=>b("text-lg shrink-0 font-medium px-5 py-3",{[`text-${r}`]:r,[`border-${r}`]:t.id===e&&a==="bordered","border-b-2":a==="bordered","opacity-60 hover:opacity-100":t.id!==e,"border-transparent":t.id!==e&&a==="bordered"});import{Fragment as C,jsx as o,jsxs as N}from"react/jsx-runtime";var J=({slots:r,color:a,component:t,context:e,backgroundColor:g,spacing:T,border:c,fluidContent:x,fullHeight:B})=>{let m=t.variant||"default",[i,d]=h(t?.slots?.tabItems?.[0]?._id),n=V(()=>t?.slots?.tabItems?t.slots.tabItems.map(s=>({...k(s),id:s._id})):[],[t?.slots?.tabItems]);I(()=>{n.length&&(i||d(n[0]?.id||""))},[n,i]);let P=y(s=>{e.isContextualEditing&&d(s)},[e.isContextualEditing]);return N(u,{className:"flex flex-col gap-5",backgroundColor:g,spacing:T,border:c,fluidContent:x,fullHeight:B,children:[o("div",{className:f({color:a,variant:m}),children:n.map((s,l)=>o("button",{onClick:()=>d(s.id),className:p({color:a,variant:m,tabItem:s,activeTabId:i}),children:t?.slots?.tabItems?.[l]&&o(F,{onFocus:()=>P(s.id),context:e,parameterId:"text",component:t?.slots?.tabItems[l],placeholder:"Tab title"})},s.id))}),o(E,{data:t,context:e,slot:r.tabItems,children:({child:s,component:l})=>l._id===i?o(C,{children:s}):o(C,{})})]})};export{J as Tabs};
@@ -0,0 +1 @@
1
+ "use client";import{c as o}from"./chunk-S7CSCIW4.mjs";import"./chunk-YEKQJ4YC.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};
@@ -0,0 +1 @@
1
+ "use client";import"./chunk-YEKQJ4YC.mjs";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-6Q7LCO4Q.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 +1 @@
1
- import{a}from"../chunk-JNIJ5N3Y.mjs";export{a as resolveAsset};
1
+ import{a}from"../chunk-JNIJ5N3Y.mjs";import"../chunk-YEKQJ4YC.mjs";export{a as resolveAsset};
@@ -1 +1 @@
1
- import{a}from"../chunk-56OQGKRM.mjs";export{a as default};
1
+ import{a}from"../chunk-56OQGKRM.mjs";import"../chunk-YEKQJ4YC.mjs";export{a as default};
@@ -1 +1 @@
1
- import{a,b}from"../chunk-MSXDLSXH.mjs";export{a as DEFAULT_EMPTY_PLACEHOLDER,b as default};
1
+ import{a,b}from"../chunk-MSXDLSXH.mjs";import"../chunk-YEKQJ4YC.mjs";export{a as DEFAULT_EMPTY_PLACEHOLDER,b as default};
@@ -1 +1 @@
1
- import{a,b,c,d}from"../chunk-2OD4OVSF.mjs";export{c as formatUniformLink,d as isExternalLink,b as isRouteWithoutErrors,a as resolveRouteToPath};
1
+ import{a,b,c,d}from"../chunk-RX4IAAQQ.mjs";import"../chunk-YEKQJ4YC.mjs";export{c as formatUniformLink,d as isExternalLink,b as isRouteWithoutErrors,a as resolveRouteToPath};
@@ -1 +1 @@
1
- import{a,b,c}from"../chunk-S7CSCIW4.mjs";export{c as cn,b as formatSpaceParameterValue,a as resolveViewPort};
1
+ import{a,b,c}from"../chunk-S7CSCIW4.mjs";import"../chunk-YEKQJ4YC.mjs";export{c as cn,b as formatSpaceParameterValue,a as resolveViewPort};
@@ -0,0 +1 @@
1
+ "use client";import{a,c as e}from"./chunk-S7CSCIW4.mjs";import"./chunk-YEKQJ4YC.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};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/csk-components",
3
- "version": "6.0.44",
3
+ "version": "6.0.77-alpha.1",
4
4
  "description": "Components Starter Kit that provides a set of basic components for building websites within a Uniform project",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -32,10 +32,6 @@
32
32
  "types": "./dist/utils/createComponentResolver.d.mts",
33
33
  "default": "./dist/utils/createComponentResolver.mjs"
34
34
  },
35
- "./hocs/withPlaygroundWrapper": {
36
- "types": "./dist/hocs/withPlaygroundWrapper.d.mts",
37
- "default": "./dist/hocs/withPlaygroundWrapper.mjs"
38
- },
39
35
  "./components/ui": {
40
36
  "types": "./dist/components/ui/index.d.mts",
41
37
  "default": "./dist/components/ui/index.mjs"
@@ -58,9 +54,9 @@
58
54
  "dev": "tsup --watch",
59
55
  "clean": "rimraf dist",
60
56
  "test": "echo \"Error: no test specified\" && exit 1",
61
- "lint": "eslint \"src/**/*.{js,ts,tsx}\"",
62
- "lint:fix": "eslint \"src/**/*.{js,ts,tsx}\" --fix",
63
- "format": "prettier --write \"src/**/*.{js,ts,tsx}\""
57
+ "lint": "eslint .",
58
+ "lint:fix": "eslint . --fix",
59
+ "format": "eslint . --fix --rule \"prettier/prettier: error\""
64
60
  },
65
61
  "keywords": [],
66
62
  "author": "",
@@ -81,9 +77,9 @@
81
77
  "devDependencies": {
82
78
  "@repo/eslint-config": "*",
83
79
  "@repo/typescript-config": "*",
84
- "@uniformdev/assets": "^20.14.2",
85
- "@uniformdev/canvas": "^20.14.2",
86
- "@uniformdev/canvas-next-rsc": "^20.14.2",
80
+ "@uniformdev/assets": "^20.20.0",
81
+ "@uniformdev/canvas": "^20.20.0",
82
+ "@uniformdev/canvas-next-rsc": "^20.20.0",
87
83
  "next": "^15.3.2",
88
84
  "react": "^19.1.0",
89
85
  "react-dom": "^19.1.0",
@@ -109,4 +105,4 @@
109
105
  "publishConfig": {
110
106
  "access": "public"
111
107
  }
112
- }
108
+ }
@@ -1 +0,0 @@
1
- import{a}from"./chunk-ZWDCDE5W.mjs";export{a as default};
@@ -1 +0,0 @@
1
- "use client";import{a as p}from"./chunk-QHIWJPL6.mjs";import{a as n}from"./chunk-RZFK2OR7.mjs";import{c as m}from"./chunk-S7CSCIW4.mjs";import{useCallback as P,useState as B}from"react";import{UniformSlot as N,UniformText as R}from"@uniformdev/canvas-next-rsc/component";import{jsx as c}from"react/jsx-runtime";var f=({className:t,...o})=>c("svg",{className:t,width:"15",height:"9",viewBox:"0 0 15 9",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...o,children:c("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.50013 0L0 7.13651L1.95843 9L7.5 3.7271L13.0416 9L15 7.13651L7.50013 0Z",fill:"currentColor"})});import{jsx as d}from"react/jsx-runtime";var a=({className:t,...o})=>d("svg",{className:t,width:"15",height:"9",viewBox:"0 0 15 9",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...o,children:d("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.49987 9L15 1.86349L13.0416 0L7.5 5.2729L1.95843 0L0 1.86349L7.49987 9Z",fill:"currentColor"})});import{jsx as e,jsxs as w}from"react/jsx-runtime";var q=({tag:t,alignment:o,color:u,size:x,font:v,weight:C,transform:h,decoration:L,letterSpacing:g,slots:S,component:l,context:i,backgroundColor:r,spacing:I,className:A})=>{let[s,G]=B(!1),V=P(()=>G(F=>!F),[]);return w(n,{fluidContent:!0,fullHeight:!1,children:[e(n,{backgroundColor:r,spacing:I,fluidContent:!0,className:A,children:w("button",{onClick:V,className:"flex w-full flex-row items-center justify-between text-start",children:[e(p,{alignment:o,color:u,size:x,font:v,weight:C,transform:h,decoration:L,letterSpacing:g,children:e(R,{placeholder:"Text goes here",parameterId:"text",as:t||void 0,component:l,context:i})}),e("div",{className:m({[`text-${r} invert`]:!!r,"text-black dark:text-white":!r}),children:s?e(f,{}):e(a,{})})]})}),s&&e(N,{data:l,context:i,slot:S.accordionItemContent})]})};export{q as AccordionItem};
@@ -1 +0,0 @@
1
- "use client";import"./chunk-CLSZO62H.mjs";import{a as i}from"./chunk-RZFK2OR7.mjs";import"./chunk-MSXDLSXH.mjs";import{c as e}from"./chunk-S7CSCIW4.mjs";import{useCallback as L,useState as S}from"react";import{UniformSlot as V}from"@uniformdev/canvas-next-rsc/component";import{jsx as s}from"react/jsx-runtime";var h=({className:t,...o})=>s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",className:e("size-5",t),...o,children:s("path",{d:"M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z"})}),y=({onClose:t,iconColor:o})=>s("button",{onClick:t,className:e("absolute right-5 top-1/2 -translate-y-1/2",{[`text-${o}`]:o}),children:s(h,{})}),C=y;var f=({variant:t,floating:o})=>e({"!w-11/12 left-1/2 -translate-x-1/2 my-4":o&&!!t,"fixed top-0 w-full z-10":t==="top","fixed bottom-0 w-full z-10":t==="bottom","p-4":o&&!t}),u=({contentAlignment:t,iconColor:o,fluidContent:r,floating:n})=>e("flex flex-row gap-x-4",{"justify-start":t==="left","justify-center":t==="center","justify-end":t==="right","pr-10":t==="right"&&o,"!mx-0":!r,"rounded-lg":n});import{jsx as p,jsxs as k}from"react/jsx-runtime";var X=({component:t,context:o,backgroundColor:r,spacing:n,border:c,fluidContent:a,slots:P,iconColor:l,contentAlignment:x="center",floating:m=!1})=>{let[d,B]=S(!0),g=L(()=>{B(!1)},[]);if(!d)return null;let w=f({variant:t.variant,floating:m}),b=u({contentAlignment:x,iconColor:l,fluidContent:a,floating:m});return p(i,{className:w,fluidContent:a,border:c,children:k(i,{className:e("relative w-full",b),backgroundColor:r,spacing:n,fluidContent:a,children:[p(V,{data:t,context:o,slot:P.bannerContent}),l&&p(C,{onClose:g,iconColor:l})]})})};export{X as Banner};
@@ -1 +0,0 @@
1
- "use client";import{a as m}from"./chunk-RZFK2OR7.mjs";import{c as d}from"./chunk-S7CSCIW4.mjs";import{useCallback as i,useEffect as C,useRef as E,useState as v}from"react";import{jsx as s,jsxs as x}from"react/jsx-runtime";var R=({countOfItems:l,backgroundColor:t,spacing:h,border:p,fluidContent:w,fullHeight:b,children:o})=>{let n=E(null),[a,u]=v(0),[B,N]=v(!1),r=l||(Array.isArray(o)?o.length:1);C(()=>{let e=()=>N(y=>!y);return window.addEventListener("resize",e,{passive:!0}),()=>window.removeEventListener("resize",e)},[]),C(()=>{if(n.current){let{clientWidth:e}=n.current;n.current.scrollLeft=a*e}},[a,B]);let c=i(()=>u(e=>e===0?r-1:e-1),[r]),f=i(()=>u(e=>r-1===e?0:e+1),[r]),k=i(()=>x("div",{className:d("absolute inset-x-5 top-1/2 flex -translate-y-1/2 justify-between",{[`text-${t} invert`]:!!t,"text-black dark:text-white":!t}),children:[s("button",{onClick:c,children:"\u276E"}),s("button",{onClick:f,children:"\u276F"})]}),[t,f,c]);return s(m,{backgroundColor:t,spacing:h,border:p,fluidContent:w,fullHeight:b,children:x("div",{className:"relative",children:[s("div",{ref:n,className:"flex flex-row items-center overflow-x-hidden scroll-smooth",children:o}),k()]})})};export{R as Carousel};
@@ -1 +0,0 @@
1
- "use client";import{a as r}from"./chunk-J2GMOCYV.mjs";import{UniformSlot as a}from"@uniformdev/canvas-next-rsc/component";import{jsx as t}from"react/jsx-runtime";var c=({child:e,key:o})=>t("div",{className:"flex size-full min-w-full items-center justify-center",children:e},o),p=({slots:e,component:o,context:s,backgroundColor:l,spacing:m,border:i,fluidContent:n,fullHeight:u})=>t(r,{backgroundColor:l,spacing:m,border:i,fluidContent:n,fullHeight:u,countOfItems:e.carouselItems?.items.length??0,children:t(a,{context:s,slot:e.carouselItems,data:o,children:c})});export{p as Carousel};
@@ -1 +0,0 @@
1
- var s=/:[a-zA-Z_]+/,n=(e,o)=>o?e.replace(s,t=>o?.[t.substring(1)]||t):e,i=e=>"compositionApiResponse"in e&&!!e.compositionApiResponse&&"composition"in e.compositionApiResponse,r=e=>e?e.type==="email"?`mailto:${e.path}`:e.path:"",p=e=>e?.startsWith("http")??!1;export{n as a,i as b,r as c,p as d};
@@ -1 +0,0 @@
1
- import{c as t}from"./chunk-S7CSCIW4.mjs";import{jsx as s,jsxs as m}from"react/jsx-runtime";var p=({width:o=20,height:r=20,stroke:e="currentColor"})=>m("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:r,viewBox:"0 0 23 25",stroke:e,children:[s("path",{d:"M0 12.756L20.4878 12.756",stroke:"inherit",strokeWidth:"3"}),s("path",{fill:"transparent",d:"M10.8823 23L20.881 12.4956L10.8823 2",stroke:"inherit",strokeWidth:"3"})]}),i=p;import{jsx as n}from"react/jsx-runtime";var h=({width:o=23,height:r=23,fill:e="currentColor"})=>n("svg",{width:o,height:r,viewBox:"0 0 24 24",fill:e,children:n("path",{d:"M16.293 9.293 12 13.586 7.707 9.293l-1.414 1.414L12 16.414l5.707-5.707z"})}),d=h;import{jsx as a}from"react/jsx-runtime";var f=({className:o,...r})=>a("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:t("size-6",o),...r,children:a("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"})}),v=f;import{jsx as l}from"react/jsx-runtime";var w=({className:o,...r})=>l("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:t("size-6",o),...r,children:l("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m15.75 10.5 4.72-4.72a.75.75 0 0 1 1.28.53v11.38a.75.75 0 0 1-1.28.53l-4.72-4.72M4.5 18.75h9a2.25 2.25 0 0 0 2.25-2.25v-9a2.25 2.25 0 0 0-2.25-2.25h-9A2.25 2.25 0 0 0 2.25 7.5v9a2.25 2.25 0 0 0 2.25 2.25Z"})}),g=w;export{i as a,d as b,v as c,g as d};
@@ -1 +0,0 @@
1
- import{b as xe,d as ye,e as he,f as Re,g as Ne,h as D}from"./chunk-26BSLQVU.mjs";import{a as q}from"./chunk-EIQPM3DQ.mjs";import{a as ve}from"./chunk-QHIWJPL6.mjs";import{a as c}from"./chunk-RZFK2OR7.mjs";import{a as x}from"./chunk-HDKBSM4X.mjs";import{a as $}from"./chunk-JNIJ5N3Y.mjs";import{a as p}from"./chunk-MSXDLSXH.mjs";import{c as ge}from"./chunk-2OD4OVSF.mjs";import{c as l}from"./chunk-S7CSCIW4.mjs";import{UniformSlot as Te}from"@uniformdev/canvas-next-rsc/component";import{jsx as J,jsxs as xo}from"react/jsx-runtime";var go=({slots:e,component:o,context:t,backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:m})=>xo(c,{className:"flex flex-col gap-8",backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:m,children:[J("div",{className:"flex flex-col gap-4 text-start",children:J(Te,{data:o,context:t,slot:e.accordionContent})}),J(Te,{data:o,context:t,slot:e.accordionItems})]});import{jsx as we}from"react/jsx-runtime";var vo=e=>{switch(e.slotName){case"accordionContent":return{component:()=>we("div",{className:"h-20"})};case"accordionItems":return{component:()=>we("div",{className:"h-28"})};default:return p}};var be=(t=>(t.AccordionContent="accordionContent",t.AccordionItems="accordionItems",t))(be||{});import{UniformSlot as Fe}from"@uniformdev/canvas-next-rsc/component";import{jsx as ho}from"react/jsx-runtime";var yo=e=>{switch(e.slotName){case"cardMedia":return{component:()=>null};case"cardContent":return{component:()=>ho("div",{className:"h-20"})};default:return p}};var He=(o=>(o.BackgroundImage="backgroundImage",o))(He||{}),Ee=(t=>(t.CardMedia="cardMedia",t.CardContent="cardContent",t))(Ee||{});import{jsx as V,jsxs as No}from"react/jsx-runtime";var Ro=({component:e,context:o,slots:t,backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:m,className:s,contentClassName:d})=>{let f=e.variant==="backgroundImage";return No(c,{className:l("relative overflow-hidden",s),backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:m,children:[V("div",{className:l({"inset-0 size-full absolute":f}),children:V(Fe,{data:e,context:o,slot:t.cardMedia})}),V("div",{className:l("relative flex flex-col gap-y-2",d),children:V(Fe,{data:e,context:o,slot:t.cardContent})})]})};import bo from"next/dynamic";import{jsx as wo}from"react/jsx-runtime";var To=e=>{switch(e.slotName){case"carouselItems":return{component:()=>wo("div",{className:"mx-20 h-20 w-full"})};default:return p}};var Ae=(o=>(o.Items="carouselItems",o))(Ae||{}),Ar=bo(()=>import("./carousel-YLA2VELY.mjs").then(e=>e.Carousel));import{UniformSlot as Ue}from"@uniformdev/canvas-next-rsc/component";import{UniformText as Le}from"@uniformdev/canvas-next-rsc/component";import{jsx as C}from"react/jsx-runtime";var S=({component:e,context:o,parameterId:t,text:r,...a})=>{let i=o.previewMode==="editor"&&o.isContextualEditing;return!r&&!i?null:C(ve,{...a,children:C(Le,{placeholder:"Text goes here",parameterId:t,as:a.tag||void 0,component:e,context:o})})},Be=({component:e,context:o,parameterId:t,text:r,...a})=>{let{link:i,icon:n}=a,m=ge(i),s=o.previewMode==="editor"&&o.isContextualEditing;return!r&&!m&&!s?null:C(xe,{...a,href:m,icon:C(()=>{let[f]=$(n),{url:P,title:T=""}=f||{};return P?C(q,{src:P,alt:T,width:20,height:20,containerStyle:{width:"20px",height:"20px"}}):void 0},{}),children:C(Le,{placeholder:"Button text goes here",parameterId:t,component:e,context:o})})},Ie=({component:e,context:o,image:t,objectFit:r,width:a,height:i,overlayColor:n,overlayOpacity:m,border:s,priority:d,unoptimized:f})=>{let[P]=$(t);if(!P){let G=o.previewMode==="editor"&&o.isContextualEditing,Y=e?._id?.includes("placeholder_");return!G||Y||!e.variant?null:C("div",{style:{width:a?`${a}px`:"auto",height:i?`${i}px`:"auto"},children:C(ye,{type:"image",placeholder:"Please add an asset to display an image"})})}let{url:T,title:K=""}=P;return C(q,{containerStyle:{...a?{width:`${a}px`}:{},...i?{height:`${i}px`}:{}},src:T,alt:K,fill:!0,unoptimized:f,priority:d,sizes:"100%",style:{objectFit:r},overlayColor:n,overlayOpacity:m,border:s})};import{jsx as w,jsxs as De}from"react/jsx-runtime";var Ve=({backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,variant:i,demoHeroMedia:n,demoHeroContent:m,demoHeroCTA:s,textAlignmentClass:d,buttonAlignmentClass:f})=>w(c,{backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,children:De("div",{className:l("grid grid-cols-1 items-center gap-4 px-4 lg:grid-cols-2 xl:px-0"),children:[w("div",{className:l("aspect-square",{"order-last":i==="columnsReverse"}),children:w("div",{className:"flex size-full items-center justify-center overflow-hidden",children:n})}),De("div",{className:"flex flex-col justify-center gap-8",children:[w("div",{className:l("flex flex-col gap-4",d),children:m}),w("div",{className:l("flex flex-wrap gap-2 items-center",f),children:s})]})]})});import{jsx as X,jsxs as Se}from"react/jsx-runtime";var ke=({backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,demoHeroMedia:i,demoHeroContent:n,demoHeroCTA:m,textAlignmentClass:s,buttonAlignmentClass:d})=>Se(c,{className:"relative overflow-hidden",backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,children:[X("div",{className:"absolute left-0 top-0 size-full overflow-hidden",children:i}),Se(c,{className:"relative flex flex-col gap-8",children:[X("div",{className:l("flex flex-col gap-4",s),children:n}),X("div",{className:l("flex flex-wrap gap-2 items-center",d),children:m})]})]});var Oe=({contentAlignment:e})=>l("justify-center",{"!justify-start":e==="left","!justify-end":e==="right"}),Me=({contentAlignment:e})=>l("text-center",{"text-start":e==="left","text-end":e==="right"});var h=(e,o)=>Object.entries(e).reduce((t,[r,a])=>{if(r.startsWith(o)){let i=r.slice(o.length).replace(/^./,n=>n.toLowerCase());return{...t,[i]:a}}return{...t,[r]:a}},{});import{Fragment as Z,jsx as u,jsxs as Eo}from"react/jsx-runtime";var k=({eyebrowTitleText:e,eyebrowTitleTag:o,eyebrowTitleSize:t,eyebrowTitleColor:r,eyebrowTitleWeight:a,eyebrowTitleFont:i,eyebrowTitleAlignment:n,eyebrowTitleTransform:m,eyebrowTitleDecoration:s,eyebrowTitleLetterSpacing:d,eyebrowTitleLineCountRestrictions:f,titleText:P,titleTag:T,titleSize:K,titleColor:G,titleWeight:Y,titleFont:Rt,titleAlignment:Nt,titleTransform:Tt,titleDecoration:wt,titleLetterSpacing:bt,titleLineCountRestrictions:Et,descriptionText:Ht,descriptionTag:Ft,descriptionSize:At,descriptionColor:Lt,descriptionWeight:Bt,descriptionFont:It,descriptionAlignment:Dt,descriptionTransform:Vt,descriptionDecoration:St,descriptionLetterSpacing:kt,descriptionLineCountRestrictions:Ot,primaryButtonVariant:Mt,primaryButtonText:_t,primaryButtonLink:Ut,primaryButtonTextColor:zt,primaryButtonTextWeight:Wt,primaryButtonTextFont:Kt,primaryButtonTextTransform:Gt,primaryButtonButtonColor:Yt,primaryButtonBorder:$t,primaryButtonSize:qt,primaryButtonIcon:Jt,primaryButtonTextSize:Qt,primaryButtonIconPosition:Xt,primaryButtonHoverButtonColor:Zt,primaryButtonHoverTextColor:jt,image:eo,imageWidth:to,imageHeight:oo,imageObjectFit:ro,imageOverlayColor:ao,imageOverlayOpacity:io,imageBorder:no,imagePriority:mo,imageUnoptimized:so,contentAlignment:ce,backgroundColor:lo,spacing:po,border:co,fluidContent:fo,fullHeight:Po,isFlexibleHero:fe=!1,component:g,context:v,slots:Pe})=>{let ue=g.variant,uo=fe?u(Ue,{data:g,context:v,slot:Pe.flexibleHeroContent}):Eo(Z,{children:[u(S,{...h({eyebrowTitleText:e,eyebrowTitleTag:o,eyebrowTitleSize:t,eyebrowTitleColor:r,eyebrowTitleWeight:a,eyebrowTitleFont:i,eyebrowTitleAlignment:n,eyebrowTitleTransform:m,eyebrowTitleDecoration:s,eyebrowTitleLetterSpacing:d,eyebrowTitleLineCountRestrictions:f},"eyebrowTitle"),component:g,context:v,parameterId:"eyebrowTitleText"}),u(S,{...h({titleText:P,titleTag:T,titleSize:K,titleColor:G,titleWeight:Y,titleFont:Rt,titleAlignment:Nt,titleTransform:Tt,titleDecoration:wt,titleLetterSpacing:bt,titleLineCountRestrictions:Et},"title"),component:g,context:v,parameterId:"titleText"}),u(S,{...h({descriptionText:Ht,descriptionTag:Ft,descriptionSize:At,descriptionColor:Lt,descriptionWeight:Bt,descriptionFont:It,descriptionAlignment:Dt,descriptionTransform:Vt,descriptionDecoration:St,descriptionLetterSpacing:kt,descriptionLineCountRestrictions:Ot},"description"),component:g,context:v,parameterId:"descriptionText"})]}),Co=fe?u(Ue,{data:g,context:v,slot:Pe.flexibleHeroCta}):u(Z,{children:u(Be,{...h({primaryButtonVariant:Mt,primaryButtonText:_t,primaryButtonLink:Ut,primaryButtonTextColor:zt,primaryButtonTextWeight:Wt,primaryButtonTextFont:Kt,primaryButtonTextTransform:Gt,primaryButtonButtonColor:Yt,primaryButtonBorder:$t,primaryButtonSize:qt,primaryButtonIcon:Jt,primaryButtonTextSize:Qt,primaryButtonIconPosition:Xt,primaryButtonHoverButtonColor:Zt,primaryButtonHoverTextColor:jt},"primaryButton"),component:g,context:v,parameterId:"primaryButtonText"})}),Ce={variant:ue,backgroundColor:lo,spacing:po,border:co,fluidContent:fo,fullHeight:Po,textAlignmentClass:Me({contentAlignment:ce}),buttonAlignmentClass:Oe({contentAlignment:ce}),demoHeroMedia:u(Z,{children:u(Ie,{image:eo,...h({imageWidth:to,imageHeight:oo,imageObjectFit:ro,imageOverlayColor:ao,imageOverlayOpacity:io,imageBorder:no,imagePriority:mo,imageUnoptimized:so},"image"),component:g,context:v})}),demoHeroContent:uo,demoHeroCTA:Co};switch(ue){case"columns":case"columnsReverse":return u(Ve,{...Ce});default:return u(ke,{...Ce})}};import{jsx as Ho}from"react/jsx-runtime";var ze=e=>Ho(k,{...e,eyebrowTitleTag:"span",eyebrowTitleSize:{mobile:"xs",tablet:"lg",desktop:"xl"},eyebrowTitleWeight:"bold",eyebrowTitleTransform:"uppercase",titleSize:{mobile:"3xl",tablet:"5xl",desktop:"7xl"},titleWeight:"bold",descriptionTag:"p",descriptionSize:{mobile:"sm",tablet:"lg",desktop:"xl"},descriptionWeight:"normal",primaryButtonSize:"button-medium",primaryButtonTextSize:"sm",primaryButtonTextColor:"text-light",primaryButtonTextWeight:"normal",primaryButtonButtonColor:"button-primary",primaryButtonTextTransform:"uppercase",primaryButtonHoverButtonColor:"button-primary-hover",imagePriority:!0,imageObjectFit:"cover",imageUnoptimized:!0,spacing:{paddingTop:"container-xlarge",paddingLeft:"container-small",paddingRight:"container-small",paddingBottom:"container-xlarge"},fluidContent:!e.component.variant,isFlexibleHero:!1});import{jsx as Fo}from"react/jsx-runtime";var We=e=>Fo(k,{...e,isFlexibleHero:!0});import{jsx as Ke}from"react/jsx-runtime";var Ao=e=>{switch(e.slotName){case"flexibleHeroContent":return{component:()=>Ke("div",{className:"h-20"})};case"flexibleHeroCta":return{component:()=>Ke("div",{className:"mx-40 h-20 w-full"})};default:return p}};var _e=(r=>(r.Left="left",r.Center="center",r.Right="right",r))(_e||{}),Q=(t=>(t.Columns="columns",t.ColumnsReverse="columnsReverse",t))(Q||{}),Ge=(t=>(t.FlexibleHeroContent="flexibleHeroContent",t.FlexibleHeroCta="flexibleHeroCta",t))(Ge||{}),Lo={FixedHero:ze,FlexibleHero:We},Ea=Lo;import{UniformSlot as j}from"@uniformdev/canvas-next-rsc/component";import{jsx as O}from"react/jsx-runtime";var Ye=({context:e,component:o,slots:t,backgroundColor:r,spacing:a,border:i,fluidContent:n})=>O(he,{logo:O(j,{context:e,slot:t.footerLogo,data:o}),copyright:O(j,{context:e,slot:t.footerCopyright,data:o}),content:O(j,{context:e,slot:t.footerContent,data:o}),backgroundColor:r,spacing:a,border:i,fluidContent:n});import{jsx as ee}from"react/jsx-runtime";var Bo=e=>{switch(e.slotName){case"footerLogo":return{component:()=>ee("div",{className:"h-20 w-48"})};case"footerCopyright":return{component:()=>ee("div",{className:"h-20 w-48"})};case"footerContent":return{component:()=>ee("div",{className:"h-20 w-48"})};default:return p}};var $e=(r=>(r.FooterLogo="footerLogo",r.FooterCopyright="footerCopyright",r.FooterContent="footerContent",r))($e||{}),_a=x(Ye);import{UniformSlot as te}from"@uniformdev/canvas-next-rsc/component";import{jsx as M}from"react/jsx-runtime";var qe=({backgroundColor:e,color:o,spacing:t,border:r,context:a,component:i,slots:n})=>M(Re,{sticky:i.variant==="sticky",leftSection:M(te,{context:a,slot:n.headerLeftContent,data:i}),rightSection:M(te,{context:a,slot:n.headerRightContent,data:i}),backgroundColor:e,color:o,spacing:t,border:r,children:M(te,{context:a,slot:n.headerCenterContent,data:i})});import{jsx as oe}from"react/jsx-runtime";var Io=e=>{switch(e.slotName){case"headerLeftContent":return{component:()=>oe("div",{className:"h-20 w-48"})};case"headerCenterContent":return{component:()=>oe("div",{className:"h-20 w-full"})};case"headerRightContent":return{component:()=>oe("div",{className:"h-20 w-48"})};default:return p}};var Qe=(r=>(r.HeaderLeftContent="headerLeftContent",r.HeaderCenterContent="headerCenterContent",r.HeaderRightContent="headerRightContent",r))(Qe||{}),Je=(o=>(o.Sticky="sticky",o))(Je||{}),ti=x(qe);import So from"next/dynamic";import{jsx as Vo}from"react/jsx-runtime";var Do=e=>{switch(e.slotName){case"imageGalleryItems":return{component:()=>Vo("div",{className:" mx-auto size-48"})};default:return p}};var Xe=(o=>(o.Items="imageGalleryItems",o))(Xe||{}),li=So(()=>import("./image-gallery-ISM5BLSF.mjs").then(e=>e.ImageGallery));import Oo from"next/dynamic";import{jsx as Ze}from"react/jsx-runtime";var ko=e=>{switch(e.slotName){case"navigationFlyoutLeftContent":return{component:()=>Ze("div",{className:"h-40 w-48"})};case"navigationFlyoutRightContent":return{component:()=>Ze("div",{className:"h-40 w-48"})};default:return p}};var vi=Oo(()=>import("./navigation-flyout-TQO777FY.mjs").then(e=>x(e.NavigationFlyout)));import Uo from"next/dynamic";import{jsx as _o}from"react/jsx-runtime";var Mo=e=>{switch(e.slotName){case"links":return{component:()=>_o("div",{className:"h-40 w-48"})};default:return p}};var Fi=Uo(()=>import("./navigation-group-3YBAK65R.mjs").then(e=>x(e.NavigationGroup)));import{UniformSlot as re}from"@uniformdev/canvas-next-rsc/component";import{jsx as _}from"react/jsx-runtime";var zo=({slots:e,component:o,context:t,backgroundColor:r,headerCustomRenderer:a,contentCustomRenderer:i,footerCustomRenderer:n})=>_(Ne,{backgroundColor:r,header:_(re,{context:t,slot:e.pageHeader,data:o,children:a}),footer:_(re,{context:t,slot:e.pageFooter,data:o,children:n}),children:_(re,{context:t,slot:e.pageContent,data:o,children:i})});import{jsx as ae}from"react/jsx-runtime";var Wo=e=>{switch(e.slotName){case"pageHeader":return{component:()=>ae("div",{className:"h-40"})};case"pageContent":return{component:()=>ae("div",{className:"h-[calc(100vh-10rem*2)]"})};case"pageFooter":return{component:()=>ae("div",{className:"h-40"})};default:return p}};var je=(r=>(r.PageContent="pageContent",r.PageHeader="pageHeader",r.PageFooter="pageFooter",r))(je||{});import{UniformSlot as ne}from"@uniformdev/canvas-next-rsc/component";import{jsx as b}from"react/jsx-runtime";var Ko=({parentComponent:e,slotName:o})=>{let t=e?.variant==="multiColumn";switch(o){case"reviewImage":return{component:()=>t?b("div",{className:"size-full"}):null};case"reviewPersonInfo":return{component:()=>t?b("div",{className:"h-20 w-full"}):b("div",{className:"h-20 w-52"})};case"reviewContent":return{component:()=>t?b("div",{className:"h-20 w-full"}):b("div",{className:"h-20 w-52"})};default:return p}};var ie=(o=>(o.MultiColumn="multiColumn",o))(ie||{}),et=(r=>(r.ReviewImage="reviewImage",r.ReviewPersonInfo="reviewPersonInfo",r.ReviewContent="reviewContent",r))(et||{});import{jsx as E,jsxs as tt}from"react/jsx-runtime";var ot=({stars:e,starsColor:o,activeStarsColor:t,showRatingLabel:r,backgroundColor:a,spacing:i,border:n,fluidContent:m,fullHeight:s,ReviewImage:d,ReviewPersonInfo:f,ReviewContent:P})=>E(c,{backgroundColor:a,spacing:i,border:n,fluidContent:m,fullHeight:s,children:tt("div",{className:"mx-auto flex lg:max-w-[60%]",children:[E("div",{className:"aspect-square size-12 shrink-0 rounded-full",children:d}),tt("div",{className:"ml-6",children:[f,E("div",{className:"py-4",children:E(D,{rating:e,showReviewLabel:r,starsColor:o,activeStarsColor:t})}),E("div",{className:"flex flex-col gap-y-5",children:P})]})]})});import{jsx as R,jsxs as rt}from"react/jsx-runtime";var at=({stars:e,starsColor:o,activeStarsColor:t,showRatingLabel:r,backgroundColor:a,spacing:i,border:n,fluidContent:m,fullHeight:s,ReviewImage:d,ReviewPersonInfo:f,ReviewContent:P})=>R(c,{backgroundColor:a,spacing:i,border:n,fluidContent:m,fullHeight:s,children:rt("div",{className:"grid md:grid-cols-12",children:[rt("div",{className:"mb-2 md:col-span-4 md:my-0",children:[R("div",{className:"mb-2 aspect-square size-12 rounded-full",children:d}),R("div",{className:"flex flex-col gap-y-1",children:f})]}),R("div",{className:"my-2 md:col-span-4 md:my-0",children:R(D,{rating:e,showReviewLabel:r,starsColor:o,activeStarsColor:t})}),R("div",{className:"mt-2 flex flex-col gap-y-3 md:col-span-4 md:my-0",children:P})]})});import{jsx as H}from"react/jsx-runtime";var Go=e=>{let{component:o,context:t,slots:r}=e,a=o.variant,i={...e,ReviewImage:H(ne,{context:t,data:o,slot:r.reviewImage}),ReviewPersonInfo:H(ne,{context:t,data:o,slot:r.reviewPersonInfo}),ReviewContent:H(ne,{context:t,data:o,slot:r.reviewContent})};switch(a){case"multiColumn":return H(at,{...i});default:return H(ot,{...i})}};import{UniformSlot as pe}from"@uniformdev/canvas-next-rsc/component";import{jsx as me}from"react/jsx-runtime";var Yo=({parentComponent:e,slotName:o})=>{let t=!e?.variant;switch(o){case"sectionMedia":return{component:()=>t?null:me("div",{className:"size-full"})};case"sectionContent":return{component:()=>me("div",{className:"h-20"})};case"sectionCTA":return{component:()=>me("div",{className:"mx-40 h-20 w-full"})};default:return p}};var nt=(r=>(r.Left="left",r.Center="center",r.Right="right",r))(nt||{}),se=(t=>(t.Columns="columns",t.ColumnsReverse="columnsReverse",t))(se||{}),it=(r=>(r.SectionContent="sectionContent",r.SectionMedia="sectionMedia",r.SectionCTA="sectionCTA",r))(it||{});import{jsx as F,jsxs as mt}from"react/jsx-runtime";var st=({backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,variant:i,sectionMedia:n,sectionContent:m,sectionCTA:s,textAlignmentClass:d,buttonAlignmentClass:f})=>F(c,{backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,children:mt("div",{className:l("grid grid-cols-1 items-center gap-4 px-4 lg:grid-cols-2 xl:px-0"),children:[F("div",{className:l("aspect-square",{"order-last":i==="columnsReverse"}),children:F("div",{className:"flex size-full items-center justify-center overflow-hidden",children:n})}),mt("div",{className:"flex flex-col justify-center gap-8",children:[F("div",{className:l("flex flex-col gap-4",d),children:m}),F("div",{className:l("flex flex-wrap gap-2",f),children:s})]})]})});import{jsx as le,jsxs as lt}from"react/jsx-runtime";var pt=({backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,previewMode:i,sectionMedia:n,sectionContent:m,sectionCTA:s,textAlignmentClass:d,buttonAlignmentClass:f})=>lt(c,{className:l("relative overflow-hidden",{"p-32":i}),backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,children:[le("div",{className:"absolute left-0 top-0 size-full overflow-hidden",children:n}),lt(c,{className:"relative flex flex-col gap-8",children:[le("div",{className:l("flex flex-col gap-4",d),children:m}),le("div",{className:l("flex flex-wrap gap-2",f),children:s})]})]});var dt=({contentAlignment:e})=>l("justify-center",{"!justify-start":e==="left","!justify-end":e==="right"}),ct=({contentAlignment:e})=>l("text-center",{"text-start":e==="left","text-end":e==="right"});import{jsx as A}from"react/jsx-runtime";var $o=({contentAlignment:e,slots:o,component:t,context:r,backgroundColor:a,spacing:i,border:n,fluidContent:m,fullHeight:s})=>{let d=t.variant,{previewMode:f}=r||{},P={variant:d,backgroundColor:a,spacing:i,border:n,fluidContent:m,fullHeight:s,textAlignmentClass:ct({contentAlignment:e}),buttonAlignmentClass:dt({contentAlignment:e}),sectionMedia:A(pe,{data:t,context:r,slot:o.sectionMedia}),sectionContent:A(pe,{data:t,context:r,slot:o.sectionContent}),sectionCTA:A(pe,{data:t,context:r,slot:o.sectionCTA})};switch(d){case"columns":case"columnsReverse":return A(st,{...P});default:return A(pt,{...P,previewMode:f})}};import{UniformSlot as Pt}from"@uniformdev/canvas-next-rsc/component";var ft=({size:e,textColor:o})=>l("text-left w-full [&_tr:not(:last-child)_td]:border-b [&_th]:border-b",{[`text-${o}`]:o,[`[&_td]:p-${e} [&_th]:p-${e}`]:e});import{jsx as N,jsxs as Jo}from"react/jsx-runtime";var qo=({size:e,textColor:o,slots:t,component:r,context:a,backgroundColor:i,spacing:n,border:m,fluidContent:s,fullHeight:d})=>N(c,{className:"flex flex-col gap-5",backgroundColor:i,spacing:n,border:m,fluidContent:s,fullHeight:d,children:N("div",{className:"overflow-x-auto",children:Jo("table",{className:ft({size:e,textColor:o}),children:[N("thead",{children:N(Pt,{slot:t.tableHead,context:a,data:r})}),N("tbody",{children:N(Pt,{slot:t.tableBody,context:a,data:r})})]})})});import{jsx as ut}from"react/jsx-runtime";var Qo=e=>{switch(e.slotName){case"tableHead":return{component:()=>ut("tr",{className:"h-20"})};case"tableBody":return{component:()=>ut("tr",{className:"h-40"})};default:return p}};var Ct=(t=>(t.TableHead="tableHead",t.TableBody="tableBody",t))(Ct||{});import{UniformSlot as W}from"@uniformdev/canvas-next-rsc/component";import{jsx as U}from"react/jsx-runtime";var Xo=({slotName:e})=>{switch(e){case"testimonialSecondaryImage":return{component:()=>U("div",{className:"h-20 w-64"})};case"testimonialContent":return{component:()=>U("div",{className:"h-20 w-64"})};case"testimonialPrimaryImage":return{component:()=>U("div",{className:"size-full"})};case"testimonialAuthor":return{component:()=>U("div",{className:"h-20 w-64"})};default:return p}};var xt=(t=>(t.WithLargeAvatar="withLargeAvatar",t.WithOverlappingImage="withOverlappingImage",t))(xt||{}),gt=(a=>(a.TestimonialSecondaryImage="testimonialSecondaryImage",a.TestimonialContent="testimonialContent",a.TestimonialPrimaryImage="testimonialPrimaryImage",a.TestimonialAuthor="testimonialAuthor",a))(gt||{});import{jsx as L,jsxs as jo}from"react/jsx-runtime";var vt=({testimonialPrimaryImage:e,testimonialContent:o,testimonialAuthor:t,testimonialSecondaryImage:r,backgroundColor:a,spacing:i,border:n,fluidContent:m,fullHeight:s})=>L(c,{backgroundColor:a,spacing:i,border:n,fluidContent:m,fullHeight:s,children:jo("div",{className:"mx-auto flex flex-col items-center md:max-w-[80%]",children:[L("div",{children:r}),L("div",{className:"my-8",children:o}),L("div",{className:"size-10 rounded-full",children:e}),L("div",{className:"mt-4 flex gap-3",children:t})]})});import{jsx as B,jsxs as z}from"react/jsx-runtime";var yt=({testimonialPrimaryImage:e,testimonialContent:o,testimonialAuthor:t,testimonialSecondaryImage:r,backgroundColor:a,spacing:i,border:n,fluidContent:m,fullHeight:s})=>B(c,{backgroundColor:a,spacing:i,border:n,fluidContent:m,fullHeight:s,children:z("div",{className:"mx-auto flex items-center gap-x-10 md:max-w-[80%]",children:[B("div",{className:"hidden aspect-square w-full max-w-xs shrink-0 overflow-hidden rounded-xl lg:block",children:e}),z("div",{className:"flex flex-col gap-y-8",children:[B("div",{className:"",children:o}),z("div",{className:"flex items-center justify-between",children:[z("div",{className:"flex items-center gap-x-4",children:[B("div",{className:"block aspect-square w-10 overflow-hidden rounded-md lg:hidden",children:e}),B("div",{className:"gap-3",children:t})]}),r]})]})]})});import{jsx as I,jsxs as de}from"react/jsx-runtime";var ht=({testimonialPrimaryImage:e,testimonialContent:o,testimonialAuthor:t,testimonialSecondaryImage:r,backgroundColor:a,spacing:i,border:n,fluidContent:m,fullHeight:s})=>I(c,{backgroundColor:a,spacing:i,border:n,fluidContent:m,fullHeight:s,children:I(c,{className:"pb-10 lg:pb-0",children:de("div",{className:"mx-auto flex max-w-2xl flex-col items-center gap-10 lg:max-w-none lg:flex-row",children:[I("div",{className:"-mt-7 aspect-[2/1] w-full shrink-0 overflow-hidden rounded-xl lg:-my-7 lg:aspect-[1/1.4] lg:max-w-xs",children:e}),de("div",{className:"flex flex-col gap-y-8",children:[I("div",{className:"",children:o}),de("div",{className:"flex items-center justify-between",children:[I("div",{className:"gap-3",children:t}),r]})]})]})})});import{jsx as y}from"react/jsx-runtime";var Zo=({context:e,component:o,slots:t,backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:m})=>{let s=o.variant,d={backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:m,testimonialPrimaryImage:y(W,{context:e,data:o,slot:t.testimonialPrimaryImage}),testimonialContent:y(W,{context:e,data:o,slot:t.testimonialContent}),testimonialAuthor:y(W,{context:e,data:o,slot:t.testimonialAuthor}),testimonialSecondaryImage:y(W,{context:e,data:o,slot:t.testimonialSecondaryImage})};switch(s){case"withLargeAvatar":return y(yt,{...d});case"withOverlappingImage":return y(ht,{...d});default:return y(vt,{...d})}};export{go as a,be as b,vo as c,Ro as d,He as e,Ee as f,yo as g,Ae as h,Ar as i,To as j,_e as k,Q as l,Ge as m,Ea as n,Ao as o,$e as p,_a as q,Bo as r,Qe as s,Je as t,ti as u,Io as v,Xe as w,li as x,Do as y,vi as z,ko as A,Fi as B,Mo as C,zo as D,je as E,Wo as F,Go as G,ie as H,et as I,Ko as J,$o as K,nt as L,se as M,it as N,Yo as O,qo as P,Ct as Q,Qo as R,Zo as S,xt as T,gt as U,Xo as V};
@@ -1 +0,0 @@
1
- import{jsx as t}from"react/jsx-runtime";function c(n){let e=o=>{let{is_incontext_editing_playground:p}=o.context?.searchParams??{},{type:r}=o.context?.composition??{},{type:i}=o.component??{};return!!p&&r===i?t("div",{className:"flex justify-center py-16",children:t(n,{...o})}):t(n,{...o})};return e.displayName=`withPlaygroundWrapper(${n.displayName||n.name||"Component"})`,e}export{c as a};
@@ -1 +0,0 @@
1
- import t from"next/dynamic";var r=t(()=>import("./carousel-KSNELZEM.mjs").then(e=>e.Carousel));export{r as a};
@@ -1 +0,0 @@
1
- import{a as r}from"./chunk-HDKBSM4X.mjs";import{a as t}from"./chunk-MSXDLSXH.mjs";import l from"next/dynamic";import{jsx as s}from"react/jsx-runtime";var a=e=>{switch(e.slotName){case"tabItems":return{component:()=>s("div",{className:"h-20 w-full"})};default:return t}};var n=(o=>(o.Default="default",o.Bordered="bordered",o))(n||{}),m=(p=>(p.TabItems="tabItems",p))(m||{}),u=l(()=>import("./tabs-QEFLGIZ3.mjs").then(e=>r(e.Tabs)));export{n as a,m as b,u as c,a as d};
@@ -1 +0,0 @@
1
- import{a as r}from"./chunk-QHIWJPL6.mjs";import{c as o}from"./chunk-S7CSCIW4.mjs";import{jsx as s,jsxs as d}from"react/jsx-runtime";var P=({icon:t,size:e,tag:a,color:i,weight:n,font:p,transform:m,decoration:c,letterSpacing:l,alignment:x,children:g,textClassName:f})=>d("div",{className:o("flex w-fit items-center gap-x-3",{[`text-${e}`]:!!e}),children:[t&&s("div",{className:"relative size-[1em]",children:t}),s(r,{alignment:x,tag:a,color:i,size:e,font:p,weight:n,transform:m,decoration:c,letterSpacing:l,className:f,children:g})]});export{P as a};
@@ -1,13 +0,0 @@
1
- import { CompositionContext } from '@uniformdev/canvas-next-rsc/component';
2
- import { resolveRouteToPath } from '@/utils/routing';
3
- import { cn } from '@/utils/styling';
4
- type BaseIconLabelClassesProps = {
5
- activeState?: boolean;
6
- context: CompositionContext;
7
- href: string;
8
- };
9
-
10
- export const getBaseIconLabelClasses = ({ activeState, context, href }: BaseIconLabelClassesProps) =>
11
- cn('hover:underline', {
12
- underline: activeState && resolveRouteToPath(context.matchedRoute, context.dynamicInputs) === href,
13
- });
@@ -1,9 +0,0 @@
1
- import { FC, SVGProps } from 'react';
2
-
3
- const ChevronDown: FC<SVGProps<SVGElement>> = ({ width = 23, height = 23, fill = 'currentColor' }) => (
4
- <svg width={width} height={height} viewBox="0 0 24 24" fill={fill}>
5
- <path d="M16.293 9.293 12 13.586 7.707 9.293l-1.414 1.414L12 16.414l5.707-5.707z" />
6
- </svg>
7
- );
8
-
9
- export default ChevronDown;