@opensite/ui 0.8.5 → 0.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/faq-badge-support.cjs +18 -5
- package/dist/faq-badge-support.js +18 -5
- package/dist/faq-bordered-badge.cjs +23 -7
- package/dist/faq-bordered-badge.js +23 -7
- package/dist/faq-card-categories.cjs +20 -4
- package/dist/faq-card-categories.js +20 -4
- package/dist/faq-categorized-sections.cjs +19 -4
- package/dist/faq-categorized-sections.js +19 -4
- package/dist/faq-centered-accordion.cjs +18 -5
- package/dist/faq-centered-accordion.js +18 -5
- package/dist/faq-gradient-categories.cjs +19 -4
- package/dist/faq-gradient-categories.js +19 -4
- package/dist/faq-icon-benefits.cjs +11 -2
- package/dist/faq-icon-benefits.js +11 -2
- package/dist/faq-muted-cards.cjs +19 -6
- package/dist/faq-muted-cards.js +19 -6
- package/dist/faq-numbered-grid.cjs +11 -3
- package/dist/faq-numbered-grid.js +11 -3
- package/dist/faq-numbered-list.cjs +11 -3
- package/dist/faq-numbered-list.js +11 -3
- package/dist/faq-profile-sidebar.cjs +57 -20
- package/dist/faq-profile-sidebar.js +57 -20
- package/dist/faq-rounded-cards.cjs +26 -19
- package/dist/faq-rounded-cards.js +26 -19
- package/dist/faq-sidebar-navigation.cjs +48 -28
- package/dist/faq-sidebar-navigation.js +48 -28
- package/dist/faq-simple-accordion.cjs +17 -4
- package/dist/faq-simple-accordion.js +17 -4
- package/dist/faq-split-help.cjs +25 -6
- package/dist/faq-split-help.js +25 -6
- package/dist/faq-split-hero.cjs +85 -185
- package/dist/faq-split-hero.d.cts +16 -18
- package/dist/faq-split-hero.d.ts +16 -18
- package/dist/faq-split-hero.js +86 -186
- package/dist/faq-static-list.cjs +9 -2
- package/dist/faq-static-list.js +9 -2
- package/dist/feature-accordion-image.cjs +8 -2
- package/dist/feature-accordion-image.js +8 -2
- package/dist/feature-showcase.cjs +1 -2
- package/dist/feature-showcase.js +1 -2
- package/dist/feature-split-image-reverse.cjs +2 -8
- package/dist/feature-split-image-reverse.js +2 -8
- package/dist/feature-split-image.cjs +2 -2
- package/dist/feature-split-image.js +2 -2
- package/dist/feature-stats-highlight.cjs +50 -13
- package/dist/feature-stats-highlight.js +50 -13
- package/dist/feature-tabbed-content-image.cjs +5 -14
- package/dist/feature-tabbed-content-image.js +5 -14
- package/dist/feature-three-column-values.cjs +4 -44
- package/dist/feature-three-column-values.js +4 -44
- package/dist/feature-utility-cards-grid.cjs +83 -36
- package/dist/feature-utility-cards-grid.js +83 -36
- package/dist/navbar-animated-preview.cjs +8 -2
- package/dist/navbar-animated-preview.js +8 -2
- package/dist/navbar-centered-menu.cjs +8 -2
- package/dist/navbar-centered-menu.js +8 -2
- package/dist/navbar-dark-icons.cjs +8 -2
- package/dist/navbar-dark-icons.js +8 -2
- package/dist/navbar-dropdown-menu.cjs +8 -2
- package/dist/navbar-dropdown-menu.js +8 -2
- package/dist/navbar-education-platform.cjs +8 -2
- package/dist/navbar-education-platform.js +8 -2
- package/dist/navbar-enterprise-mega.cjs +8 -2
- package/dist/navbar-enterprise-mega.js +8 -2
- package/dist/navbar-feature-grid.cjs +8 -2
- package/dist/navbar-feature-grid.js +8 -2
- package/dist/navbar-multi-column-groups.cjs +8 -2
- package/dist/navbar-multi-column-groups.js +8 -2
- package/dist/navbar-platform-resources.cjs +8 -2
- package/dist/navbar-platform-resources.js +8 -2
- package/dist/navbar-sidebar-mobile.cjs +8 -2
- package/dist/navbar-sidebar-mobile.js +8 -2
- package/dist/registry.cjs +487 -293
- package/dist/registry.js +487 -293
- package/package.json +1 -1
package/dist/faq-split-hero.cjs
CHANGED
|
@@ -151,7 +151,7 @@ function AccordionItem({
|
|
|
151
151
|
AccordionPrimitive__namespace.Item,
|
|
152
152
|
{
|
|
153
153
|
"data-slot": "accordion-item",
|
|
154
|
-
className: cn("border-b
|
|
154
|
+
className: cn("border-b ", className),
|
|
155
155
|
...props
|
|
156
156
|
}
|
|
157
157
|
);
|
|
@@ -172,7 +172,13 @@ function AccordionTrigger({
|
|
|
172
172
|
...props,
|
|
173
173
|
children: [
|
|
174
174
|
children,
|
|
175
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
175
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
176
|
+
DynamicIcon,
|
|
177
|
+
{
|
|
178
|
+
name: "lucide/chevron-down",
|
|
179
|
+
className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"
|
|
180
|
+
}
|
|
181
|
+
)
|
|
176
182
|
]
|
|
177
183
|
}
|
|
178
184
|
) });
|
|
@@ -192,34 +198,6 @@ function AccordionContent({
|
|
|
192
198
|
}
|
|
193
199
|
);
|
|
194
200
|
}
|
|
195
|
-
var maxWidthStyles = {
|
|
196
|
-
sm: "max-w-screen-sm",
|
|
197
|
-
md: "max-w-screen-md",
|
|
198
|
-
lg: "max-w-screen-lg",
|
|
199
|
-
xl: "max-w-7xl",
|
|
200
|
-
"2xl": "max-w-screen-2xl",
|
|
201
|
-
"4xl": "max-w-[1536px]",
|
|
202
|
-
full: "max-w-full"
|
|
203
|
-
};
|
|
204
|
-
var Container = React__namespace.default.forwardRef(
|
|
205
|
-
({ children, maxWidth = "xl", className, as = "div", ...props }, ref) => {
|
|
206
|
-
const Component = as;
|
|
207
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
208
|
-
Component,
|
|
209
|
-
{
|
|
210
|
-
ref,
|
|
211
|
-
className: cn(
|
|
212
|
-
"mx-auto w-full px-2 sm:px-4 lg:px-8",
|
|
213
|
-
maxWidthStyles[maxWidth],
|
|
214
|
-
className
|
|
215
|
-
),
|
|
216
|
-
...props,
|
|
217
|
-
children
|
|
218
|
-
}
|
|
219
|
-
);
|
|
220
|
-
}
|
|
221
|
-
);
|
|
222
|
-
Container.displayName = "Container";
|
|
223
201
|
|
|
224
202
|
// lib/patternSvgs.ts
|
|
225
203
|
var patternSvgs = {
|
|
@@ -486,87 +464,6 @@ function PatternBackground({
|
|
|
486
464
|
}
|
|
487
465
|
);
|
|
488
466
|
}
|
|
489
|
-
var backgroundStyles = {
|
|
490
|
-
default: "bg-background text-foreground",
|
|
491
|
-
white: "bg-white text-dark",
|
|
492
|
-
gray: "bg-muted/30 text-foreground",
|
|
493
|
-
dark: "bg-foreground text-background",
|
|
494
|
-
transparent: "bg-transparent text-foreground",
|
|
495
|
-
gradient: "bg-linear-to-br from-primary via-primary/90 to-foreground text-primary-foreground",
|
|
496
|
-
primary: "bg-primary text-primary-foreground",
|
|
497
|
-
secondary: "bg-secondary text-secondary-foreground",
|
|
498
|
-
muted: "bg-muted text-muted-foreground"
|
|
499
|
-
};
|
|
500
|
-
var spacingStyles = {
|
|
501
|
-
none: "py-0 md:py-0",
|
|
502
|
-
sm: "py-12 md:py-16",
|
|
503
|
-
md: "py-16 md:py-24",
|
|
504
|
-
lg: "py-20 md:py-32",
|
|
505
|
-
xl: "py-24 md:py-40"
|
|
506
|
-
};
|
|
507
|
-
var predefinedSpacings = ["none", "sm", "md", "lg", "xl"];
|
|
508
|
-
var isPredefinedSpacing = (spacing) => predefinedSpacings.includes(spacing);
|
|
509
|
-
var Section = React__namespace.default.forwardRef(
|
|
510
|
-
({
|
|
511
|
-
id,
|
|
512
|
-
title,
|
|
513
|
-
subtitle,
|
|
514
|
-
children,
|
|
515
|
-
className,
|
|
516
|
-
style,
|
|
517
|
-
background = "default",
|
|
518
|
-
spacing = "lg",
|
|
519
|
-
pattern,
|
|
520
|
-
patternOpacity,
|
|
521
|
-
patternClassName,
|
|
522
|
-
containerClassName,
|
|
523
|
-
containerMaxWidth = "xl",
|
|
524
|
-
...props
|
|
525
|
-
}, ref) => {
|
|
526
|
-
const effectivePatternOpacity = patternOpacity !== void 0 ? patternOpacity : pattern ? 1 : 0;
|
|
527
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
528
|
-
"section",
|
|
529
|
-
{
|
|
530
|
-
ref,
|
|
531
|
-
id,
|
|
532
|
-
className: cn(
|
|
533
|
-
"relative",
|
|
534
|
-
pattern ? "overflow-hidden" : null,
|
|
535
|
-
backgroundStyles[background],
|
|
536
|
-
isPredefinedSpacing(spacing) ? spacingStyles[spacing] : spacing,
|
|
537
|
-
className
|
|
538
|
-
),
|
|
539
|
-
style,
|
|
540
|
-
...props,
|
|
541
|
-
children: [
|
|
542
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
543
|
-
PatternBackground,
|
|
544
|
-
{
|
|
545
|
-
pattern,
|
|
546
|
-
opacity: effectivePatternOpacity,
|
|
547
|
-
className: patternClassName
|
|
548
|
-
}
|
|
549
|
-
),
|
|
550
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
551
|
-
Container,
|
|
552
|
-
{
|
|
553
|
-
maxWidth: containerMaxWidth,
|
|
554
|
-
className: cn("relative z-10", containerClassName),
|
|
555
|
-
children: [
|
|
556
|
-
(title || subtitle) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-6 text-center md:mb-16", children: [
|
|
557
|
-
subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mb-2 text-sm font-semibold uppercase tracking-wider text-primary", children: subtitle }),
|
|
558
|
-
title && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-3xl font-bold tracking-tight md:text-4xl lg:text-5xl", children: title })
|
|
559
|
-
] }),
|
|
560
|
-
children
|
|
561
|
-
]
|
|
562
|
-
}
|
|
563
|
-
)
|
|
564
|
-
]
|
|
565
|
-
}
|
|
566
|
-
);
|
|
567
|
-
}
|
|
568
|
-
);
|
|
569
|
-
Section.displayName = "Section";
|
|
570
467
|
function FaqSplitHero({
|
|
571
468
|
heading,
|
|
572
469
|
subheading,
|
|
@@ -575,14 +472,11 @@ function FaqSplitHero({
|
|
|
575
472
|
imageSlot,
|
|
576
473
|
imageSrc,
|
|
577
474
|
imageAlt,
|
|
578
|
-
background,
|
|
579
|
-
spacing,
|
|
475
|
+
background = "dark",
|
|
580
476
|
pattern,
|
|
581
477
|
patternOpacity,
|
|
582
|
-
patternClassName,
|
|
583
478
|
className,
|
|
584
|
-
|
|
585
|
-
leftColumnClassName,
|
|
479
|
+
contentClassName,
|
|
586
480
|
headerClassName,
|
|
587
481
|
headingClassName,
|
|
588
482
|
subheadingClassName,
|
|
@@ -591,8 +485,23 @@ function FaqSplitHero({
|
|
|
591
485
|
accordionTriggerClassName,
|
|
592
486
|
accordionContentClassName,
|
|
593
487
|
imageClassName,
|
|
594
|
-
optixFlowConfig
|
|
488
|
+
optixFlowConfig,
|
|
489
|
+
directionConfig = { desktop: "mediaRight", mobile: "mediaTop" }
|
|
595
490
|
}) {
|
|
491
|
+
const bgColorClass = React.useMemo(() => {
|
|
492
|
+
switch (background) {
|
|
493
|
+
case "dark":
|
|
494
|
+
return "bg-gray-900 text-white";
|
|
495
|
+
case "gray":
|
|
496
|
+
return "bg-gray-100 text-gray-900";
|
|
497
|
+
case "white":
|
|
498
|
+
return "bg-white text-gray-900";
|
|
499
|
+
default:
|
|
500
|
+
return "bg-background text-foreground";
|
|
501
|
+
}
|
|
502
|
+
}, [background]);
|
|
503
|
+
const desktopOrder = directionConfig.desktop === "mediaRight" ? "lg:flex-row" : "lg:flex-row-reverse";
|
|
504
|
+
const mobileOrder = directionConfig.mobile === "mediaTop" ? "flex-col" : "flex-col-reverse";
|
|
596
505
|
const itemsContent = React.useMemo(() => {
|
|
597
506
|
if (itemsSlot) return itemsSlot;
|
|
598
507
|
if (!items || items.length === 0) return null;
|
|
@@ -606,13 +515,13 @@ function FaqSplitHero({
|
|
|
606
515
|
AccordionItem,
|
|
607
516
|
{
|
|
608
517
|
value: item.id,
|
|
609
|
-
className: cn("border-b border-
|
|
518
|
+
className: cn("border-b border-current/20", accordionItemClassName),
|
|
610
519
|
children: [
|
|
611
520
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
612
521
|
AccordionTrigger,
|
|
613
522
|
{
|
|
614
523
|
className: cn(
|
|
615
|
-
"py-4 text-left text-base font-medium
|
|
524
|
+
"py-4 text-left text-base font-medium transition-opacity hover:opacity-70 hover:no-underline lg:text-lg",
|
|
616
525
|
accordionTriggerClassName
|
|
617
526
|
),
|
|
618
527
|
children: item.question
|
|
@@ -621,10 +530,7 @@ function FaqSplitHero({
|
|
|
621
530
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
622
531
|
AccordionContent,
|
|
623
532
|
{
|
|
624
|
-
className: cn(
|
|
625
|
-
"pb-4 text-muted-foreground",
|
|
626
|
-
accordionContentClassName
|
|
627
|
-
),
|
|
533
|
+
className: cn("pb-4 opacity-80", accordionContentClassName),
|
|
628
534
|
children: item.answer
|
|
629
535
|
}
|
|
630
536
|
)
|
|
@@ -634,71 +540,65 @@ function FaqSplitHero({
|
|
|
634
540
|
))
|
|
635
541
|
}
|
|
636
542
|
);
|
|
637
|
-
}, [
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
"hidden h-screen w-1/2 object-cover lg:block",
|
|
648
|
-
imageClassName
|
|
649
|
-
),
|
|
650
|
-
optixFlowConfig
|
|
651
|
-
}
|
|
652
|
-
);
|
|
653
|
-
}, [imageSlot, imageSrc, imageAlt, imageClassName, optixFlowConfig]);
|
|
654
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
655
|
-
Section,
|
|
543
|
+
}, [
|
|
544
|
+
itemsSlot,
|
|
545
|
+
items,
|
|
546
|
+
accordionClassName,
|
|
547
|
+
accordionItemClassName,
|
|
548
|
+
accordionTriggerClassName,
|
|
549
|
+
accordionContentClassName
|
|
550
|
+
]);
|
|
551
|
+
const contentArea = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
552
|
+
"div",
|
|
656
553
|
{
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
665
|
-
"div",
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
)
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
children: subheading
|
|
691
|
-
}
|
|
692
|
-
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: subheadingClassName, children: subheading }))
|
|
693
|
-
] }),
|
|
694
|
-
itemsContent
|
|
695
|
-
] })
|
|
696
|
-
}
|
|
697
|
-
),
|
|
698
|
-
imageContent
|
|
699
|
-
] })
|
|
554
|
+
className: cn(
|
|
555
|
+
"relative flex w-full items-center lg:w-1/2",
|
|
556
|
+
bgColorClass,
|
|
557
|
+
contentClassName
|
|
558
|
+
),
|
|
559
|
+
children: [
|
|
560
|
+
pattern && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 overflow-hidden", children: /* @__PURE__ */ jsxRuntime.jsx(PatternBackground, { pattern, opacity: patternOpacity }) }),
|
|
561
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative z-10 w-full px-8 py-16 sm:px-12 sm:py-20 lg:px-16 lg:py-24 xl:px-24", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mx-auto max-w-xl space-y-8", children: [
|
|
562
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("space-y-4", headerClassName), children: [
|
|
563
|
+
heading && (typeof heading === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
564
|
+
"h2",
|
|
565
|
+
{
|
|
566
|
+
className: cn(
|
|
567
|
+
"text-3xl font-bold leading-tight tracking-tight sm:text-4xl lg:text-5xl",
|
|
568
|
+
headingClassName
|
|
569
|
+
),
|
|
570
|
+
children: heading
|
|
571
|
+
}
|
|
572
|
+
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: headingClassName, children: heading })),
|
|
573
|
+
subheading && (typeof subheading === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
574
|
+
"p",
|
|
575
|
+
{
|
|
576
|
+
className: cn(
|
|
577
|
+
"text-base leading-relaxed opacity-80 sm:text-lg",
|
|
578
|
+
subheadingClassName
|
|
579
|
+
),
|
|
580
|
+
children: subheading
|
|
581
|
+
}
|
|
582
|
+
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: subheadingClassName, children: subheading }))
|
|
583
|
+
] }),
|
|
584
|
+
itemsContent
|
|
585
|
+
] }) })
|
|
586
|
+
]
|
|
700
587
|
}
|
|
701
588
|
);
|
|
589
|
+
const imageArea = imageSlot ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative h-64 w-full sm:h-96 lg:h-auto lg:w-1/2", children: imageSlot }) : imageSrc ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative h-64 w-full sm:h-96 lg:h-auto lg:w-1/2", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
590
|
+
img.Img,
|
|
591
|
+
{
|
|
592
|
+
src: imageSrc,
|
|
593
|
+
alt: imageAlt || "FAQ section image",
|
|
594
|
+
className: cn("h-full w-full object-cover", imageClassName),
|
|
595
|
+
optixFlowConfig
|
|
596
|
+
}
|
|
597
|
+
) }) : null;
|
|
598
|
+
return /* @__PURE__ */ jsxRuntime.jsx("section", { className: cn("relative w-full overflow-hidden", className), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex min-h-screen", mobileOrder, desktopOrder), children: [
|
|
599
|
+
contentArea,
|
|
600
|
+
imageArea
|
|
601
|
+
] }) });
|
|
702
602
|
}
|
|
703
603
|
|
|
704
604
|
exports.FaqSplitHero = FaqSplitHero;
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as React from 'react';
|
|
3
|
-
import { f as SectionBackground, g as SectionSpacing } from './community-initiatives-Sm_ZSgyv.cjs';
|
|
4
2
|
import { P as PatternName } from './pattern-background-a7gKHzHy.cjs';
|
|
5
|
-
import './
|
|
3
|
+
import { f as SectionBackground, g as SectionSpacing } from './community-initiatives-Sm_ZSgyv.cjs';
|
|
4
|
+
import { O as OptixFlowConfig } from './blocks-Cohq4eio.cjs';
|
|
5
|
+
import 'react/jsx-runtime';
|
|
6
6
|
import 'class-variance-authority';
|
|
7
7
|
import './button-variants-lRElsmTc.cjs';
|
|
8
8
|
import 'class-variance-authority/types';
|
|
9
9
|
|
|
10
|
+
interface DirectionConfig {
|
|
11
|
+
desktop: "mediaRight" | "mediaLeft";
|
|
12
|
+
mobile: "mediaTop" | "mediaBottom";
|
|
13
|
+
}
|
|
10
14
|
interface FaqItem {
|
|
11
15
|
id: string;
|
|
12
16
|
question: React.ReactNode;
|
|
@@ -57,22 +61,14 @@ interface FaqSplitHeroProps {
|
|
|
57
61
|
* Pattern overlay opacity (0-1)
|
|
58
62
|
*/
|
|
59
63
|
patternOpacity?: number;
|
|
60
|
-
/**
|
|
61
|
-
* Additional CSS classes for the pattern overlay
|
|
62
|
-
*/
|
|
63
|
-
patternClassName?: string;
|
|
64
64
|
/**
|
|
65
65
|
* Additional CSS classes for the section
|
|
66
66
|
*/
|
|
67
67
|
className?: string;
|
|
68
68
|
/**
|
|
69
|
-
* Additional CSS classes for the content
|
|
69
|
+
* Additional CSS classes for the content area
|
|
70
70
|
*/
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Additional CSS classes for the left column
|
|
74
|
-
*/
|
|
75
|
-
leftColumnClassName?: string;
|
|
71
|
+
contentClassName?: string;
|
|
76
72
|
/**
|
|
77
73
|
* Additional CSS classes for the header wrapper
|
|
78
74
|
*/
|
|
@@ -108,11 +104,13 @@ interface FaqSplitHeroProps {
|
|
|
108
104
|
/**
|
|
109
105
|
* Optional Optix Flow configuration for image optimization
|
|
110
106
|
*/
|
|
111
|
-
optixFlowConfig?:
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
107
|
+
optixFlowConfig?: OptixFlowConfig;
|
|
108
|
+
/**
|
|
109
|
+
* Direction configuration for desktop and mobile layouts
|
|
110
|
+
* @default { desktop: 'mediaRight', mobile: 'mediaTop' }
|
|
111
|
+
*/
|
|
112
|
+
directionConfig?: DirectionConfig;
|
|
115
113
|
}
|
|
116
|
-
declare function FaqSplitHero({ heading, subheading, items, itemsSlot, imageSlot, imageSrc, imageAlt, background,
|
|
114
|
+
declare function FaqSplitHero({ heading, subheading, items, itemsSlot, imageSlot, imageSrc, imageAlt, background, pattern, patternOpacity, className, contentClassName, headerClassName, headingClassName, subheadingClassName, accordionClassName, accordionItemClassName, accordionTriggerClassName, accordionContentClassName, imageClassName, optixFlowConfig, directionConfig, }: FaqSplitHeroProps): React.JSX.Element;
|
|
117
115
|
|
|
118
116
|
export { FaqSplitHero, type FaqSplitHeroProps };
|
package/dist/faq-split-hero.d.ts
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as React from 'react';
|
|
3
|
-
import { f as SectionBackground, g as SectionSpacing } from './community-initiatives-BeWIIjA4.js';
|
|
4
2
|
import { P as PatternName } from './pattern-background-a7gKHzHy.js';
|
|
5
|
-
import './
|
|
3
|
+
import { f as SectionBackground, g as SectionSpacing } from './community-initiatives-BeWIIjA4.js';
|
|
4
|
+
import { O as OptixFlowConfig } from './blocks-k17uluAz.js';
|
|
5
|
+
import 'react/jsx-runtime';
|
|
6
6
|
import 'class-variance-authority';
|
|
7
7
|
import './button-variants-lRElsmTc.js';
|
|
8
8
|
import 'class-variance-authority/types';
|
|
9
9
|
|
|
10
|
+
interface DirectionConfig {
|
|
11
|
+
desktop: "mediaRight" | "mediaLeft";
|
|
12
|
+
mobile: "mediaTop" | "mediaBottom";
|
|
13
|
+
}
|
|
10
14
|
interface FaqItem {
|
|
11
15
|
id: string;
|
|
12
16
|
question: React.ReactNode;
|
|
@@ -57,22 +61,14 @@ interface FaqSplitHeroProps {
|
|
|
57
61
|
* Pattern overlay opacity (0-1)
|
|
58
62
|
*/
|
|
59
63
|
patternOpacity?: number;
|
|
60
|
-
/**
|
|
61
|
-
* Additional CSS classes for the pattern overlay
|
|
62
|
-
*/
|
|
63
|
-
patternClassName?: string;
|
|
64
64
|
/**
|
|
65
65
|
* Additional CSS classes for the section
|
|
66
66
|
*/
|
|
67
67
|
className?: string;
|
|
68
68
|
/**
|
|
69
|
-
* Additional CSS classes for the content
|
|
69
|
+
* Additional CSS classes for the content area
|
|
70
70
|
*/
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Additional CSS classes for the left column
|
|
74
|
-
*/
|
|
75
|
-
leftColumnClassName?: string;
|
|
71
|
+
contentClassName?: string;
|
|
76
72
|
/**
|
|
77
73
|
* Additional CSS classes for the header wrapper
|
|
78
74
|
*/
|
|
@@ -108,11 +104,13 @@ interface FaqSplitHeroProps {
|
|
|
108
104
|
/**
|
|
109
105
|
* Optional Optix Flow configuration for image optimization
|
|
110
106
|
*/
|
|
111
|
-
optixFlowConfig?:
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
107
|
+
optixFlowConfig?: OptixFlowConfig;
|
|
108
|
+
/**
|
|
109
|
+
* Direction configuration for desktop and mobile layouts
|
|
110
|
+
* @default { desktop: 'mediaRight', mobile: 'mediaTop' }
|
|
111
|
+
*/
|
|
112
|
+
directionConfig?: DirectionConfig;
|
|
115
113
|
}
|
|
116
|
-
declare function FaqSplitHero({ heading, subheading, items, itemsSlot, imageSlot, imageSrc, imageAlt, background,
|
|
114
|
+
declare function FaqSplitHero({ heading, subheading, items, itemsSlot, imageSlot, imageSrc, imageAlt, background, pattern, patternOpacity, className, contentClassName, headerClassName, headingClassName, subheadingClassName, accordionClassName, accordionItemClassName, accordionTriggerClassName, accordionContentClassName, imageClassName, optixFlowConfig, directionConfig, }: FaqSplitHeroProps): React.JSX.Element;
|
|
117
115
|
|
|
118
116
|
export { FaqSplitHero, type FaqSplitHeroProps };
|