@opensite/ui 3.3.1 → 3.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/badge.d.cts CHANGED
@@ -4,7 +4,7 @@ import * as React from 'react';
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
 
6
6
  declare const badgeVariants: (props?: ({
7
- variant?: "outline" | "default" | "secondary" | "destructive" | null | undefined;
7
+ variant?: "default" | "secondary" | "destructive" | "outline" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
10
10
  asChild?: boolean;
package/dist/badge.d.ts CHANGED
@@ -4,7 +4,7 @@ import * as React from 'react';
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
 
6
6
  declare const badgeVariants: (props?: ({
7
- variant?: "outline" | "default" | "secondary" | "destructive" | null | undefined;
7
+ variant?: "default" | "secondary" | "destructive" | "outline" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
10
10
  asChild?: boolean;
@@ -501,7 +501,7 @@ function FeatureCapabilitiesGrid({
501
501
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute -left-2 -bottom-2 h-3 w-3 bg-background" }),
502
502
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute -right-2 -bottom-2 h-3 w-3 bg-background" })
503
503
  ] }),
504
- /* @__PURE__ */ jsxRuntime.jsxs(CardHeader, { className: "relative z-10 flex flex-row items-start gap-3 p-6", children: [
504
+ /* @__PURE__ */ jsxRuntime.jsxs(CardHeader, { className: "relative z-10 flex flex-row items-start gap-3 pt-6 px-6 pb-0", children: [
505
505
  iconContent && /* @__PURE__ */ jsxRuntime.jsx(
506
506
  "div",
507
507
  {
@@ -517,31 +517,13 @@ function FeatureCapabilitiesGrid({
517
517
  {
518
518
  href: item.href,
519
519
  className: "flex-1 h-full flex items-center",
520
- children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
521
- item.title && (typeof item.title === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
522
- "h3",
523
- {
524
- className: cn("text-lg font-medium", item.titleClassName),
525
- children: item.title
526
- }
527
- ) : /* @__PURE__ */ jsxRuntime.jsx(
528
- "div",
529
- {
530
- className: cn("text-lg font-medium", item.titleClassName),
531
- children: item.title
532
- }
533
- )),
534
- item.badge && /* @__PURE__ */ jsxRuntime.jsx(
535
- "span",
536
- {
537
- className: cn(
538
- "rounded-full border px-2 py-0.5 text-[10px] leading-none",
539
- item.badgeClassName
540
- ),
541
- children: item.badge
542
- }
543
- )
544
- ] })
520
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2", children: item.title && (typeof item.title === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
521
+ "h3",
522
+ {
523
+ className: cn("text-lg font-medium", item.titleClassName),
524
+ children: item.title
525
+ }
526
+ ) : item.title) })
545
527
  }
546
528
  )
547
529
  ] }),
@@ -583,13 +565,7 @@ function FeatureCapabilitiesGrid({
583
565
  containerClassName,
584
566
  children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col space-y-6 md:space-y-16", children: [
585
567
  eyebrow || heading ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col space-y-4 md:space-y-6", children: [
586
- eyebrow && (typeof eyebrow === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: cn("text-sm tracking-widest", eyebrowClassName), children: eyebrow }) : /* @__PURE__ */ jsxRuntime.jsx(
587
- "div",
588
- {
589
- className: cn("text-sm tracking-widest", eyebrowClassName),
590
- children: eyebrow
591
- }
592
- )),
568
+ eyebrow && (typeof eyebrow === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: cn("text-sm tracking-widest", eyebrowClassName), children: eyebrow }) : eyebrow),
593
569
  heading && (typeof heading === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
594
570
  "h2",
595
571
  {
@@ -599,16 +575,7 @@ function FeatureCapabilitiesGrid({
599
575
  ),
600
576
  children: heading
601
577
  }
602
- ) : /* @__PURE__ */ jsxRuntime.jsx(
603
- "div",
604
- {
605
- className: cn(
606
- "text-4xl font-semibold sm:text-5xl",
607
- headingClassName
608
- ),
609
- children: heading
610
- }
611
- ))
578
+ ) : heading)
612
579
  ] }) : null,
613
580
  /* @__PURE__ */ jsxRuntime.jsx(
614
581
  "div",
@@ -23,10 +23,6 @@ interface FeatureCapabilitiesGridItem {
23
23
  * Icon name in format: prefix/name (e.g., "lucide/brain")
24
24
  */
25
25
  iconName?: string;
26
- /**
27
- * Optional badge label content
28
- */
29
- badge?: React.ReactNode;
30
26
  /**
31
27
  * Additional CSS classes for the item
32
28
  */
@@ -23,10 +23,6 @@ interface FeatureCapabilitiesGridItem {
23
23
  * Icon name in format: prefix/name (e.g., "lucide/brain")
24
24
  */
25
25
  iconName?: string;
26
- /**
27
- * Optional badge label content
28
- */
29
- badge?: React.ReactNode;
30
26
  /**
31
27
  * Additional CSS classes for the item
32
28
  */
@@ -480,7 +480,7 @@ function FeatureCapabilitiesGrid({
480
480
  /* @__PURE__ */ jsx("div", { className: "absolute -left-2 -bottom-2 h-3 w-3 bg-background" }),
481
481
  /* @__PURE__ */ jsx("div", { className: "absolute -right-2 -bottom-2 h-3 w-3 bg-background" })
482
482
  ] }),
483
- /* @__PURE__ */ jsxs(CardHeader, { className: "relative z-10 flex flex-row items-start gap-3 p-6", children: [
483
+ /* @__PURE__ */ jsxs(CardHeader, { className: "relative z-10 flex flex-row items-start gap-3 pt-6 px-6 pb-0", children: [
484
484
  iconContent && /* @__PURE__ */ jsx(
485
485
  "div",
486
486
  {
@@ -496,31 +496,13 @@ function FeatureCapabilitiesGrid({
496
496
  {
497
497
  href: item.href,
498
498
  className: "flex-1 h-full flex items-center",
499
- children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
500
- item.title && (typeof item.title === "string" ? /* @__PURE__ */ jsx(
501
- "h3",
502
- {
503
- className: cn("text-lg font-medium", item.titleClassName),
504
- children: item.title
505
- }
506
- ) : /* @__PURE__ */ jsx(
507
- "div",
508
- {
509
- className: cn("text-lg font-medium", item.titleClassName),
510
- children: item.title
511
- }
512
- )),
513
- item.badge && /* @__PURE__ */ jsx(
514
- "span",
515
- {
516
- className: cn(
517
- "rounded-full border px-2 py-0.5 text-[10px] leading-none",
518
- item.badgeClassName
519
- ),
520
- children: item.badge
521
- }
522
- )
523
- ] })
499
+ children: /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2", children: item.title && (typeof item.title === "string" ? /* @__PURE__ */ jsx(
500
+ "h3",
501
+ {
502
+ className: cn("text-lg font-medium", item.titleClassName),
503
+ children: item.title
504
+ }
505
+ ) : item.title) })
524
506
  }
525
507
  )
526
508
  ] }),
@@ -562,13 +544,7 @@ function FeatureCapabilitiesGrid({
562
544
  containerClassName,
563
545
  children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col space-y-6 md:space-y-16", children: [
564
546
  eyebrow || heading ? /* @__PURE__ */ jsxs("div", { className: "flex flex-col space-y-4 md:space-y-6", children: [
565
- eyebrow && (typeof eyebrow === "string" ? /* @__PURE__ */ jsx("p", { className: cn("text-sm tracking-widest", eyebrowClassName), children: eyebrow }) : /* @__PURE__ */ jsx(
566
- "div",
567
- {
568
- className: cn("text-sm tracking-widest", eyebrowClassName),
569
- children: eyebrow
570
- }
571
- )),
547
+ eyebrow && (typeof eyebrow === "string" ? /* @__PURE__ */ jsx("p", { className: cn("text-sm tracking-widest", eyebrowClassName), children: eyebrow }) : eyebrow),
572
548
  heading && (typeof heading === "string" ? /* @__PURE__ */ jsx(
573
549
  "h2",
574
550
  {
@@ -578,16 +554,7 @@ function FeatureCapabilitiesGrid({
578
554
  ),
579
555
  children: heading
580
556
  }
581
- ) : /* @__PURE__ */ jsx(
582
- "div",
583
- {
584
- className: cn(
585
- "text-4xl font-semibold sm:text-5xl",
586
- headingClassName
587
- ),
588
- children: heading
589
- }
590
- ))
557
+ ) : heading)
591
558
  ] }) : null,
592
559
  /* @__PURE__ */ jsx(
593
560
  "div",
@@ -466,7 +466,7 @@ function HeroConversationIntelligence({
466
466
  imageSlot,
467
467
  background,
468
468
  containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
469
- spacing = "py-32 md:py-32",
469
+ spacing = "hero",
470
470
  pattern,
471
471
  patternOpacity,
472
472
  patternClassName,
@@ -519,7 +519,7 @@ function HeroConversationIntelligence({
519
519
  "div",
520
520
  {
521
521
  className: cn(
522
- "relative z-10 mx-auto flex max-w-220 flex-col gap-7",
522
+ "relative z-10 mx-auto flex max-w-full md:max-w-220 flex-col items-center gap-7",
523
523
  contentClassName
524
524
  ),
525
525
  children: [
@@ -542,13 +542,13 @@ function HeroConversationIntelligence({
542
542
  ),
543
543
  children: description
544
544
  }
545
- ) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: descriptionClassName, children: description })),
545
+ ) : description),
546
546
  /* @__PURE__ */ jsxRuntime.jsx(
547
547
  BlockActions,
548
548
  {
549
549
  actions,
550
550
  actionsSlot,
551
- actionsClassName
551
+ actionsClassName: cn(actionsClassName, "justify-center")
552
552
  }
553
553
  )
554
554
  ]
@@ -460,7 +460,7 @@ function HeroConversationIntelligence({
460
460
  imageSlot,
461
461
  background,
462
462
  containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
463
- spacing = "py-32 md:py-32",
463
+ spacing = "hero",
464
464
  pattern,
465
465
  patternOpacity,
466
466
  patternClassName,
@@ -513,7 +513,7 @@ function HeroConversationIntelligence({
513
513
  "div",
514
514
  {
515
515
  className: cn(
516
- "relative z-10 mx-auto flex max-w-220 flex-col gap-7",
516
+ "relative z-10 mx-auto flex max-w-full md:max-w-220 flex-col items-center gap-7",
517
517
  contentClassName
518
518
  ),
519
519
  children: [
@@ -536,13 +536,13 @@ function HeroConversationIntelligence({
536
536
  ),
537
537
  children: description
538
538
  }
539
- ) : /* @__PURE__ */ jsx("div", { className: descriptionClassName, children: description })),
539
+ ) : description),
540
540
  /* @__PURE__ */ jsx(
541
541
  BlockActions,
542
542
  {
543
543
  actions,
544
544
  actionsSlot,
545
- actionsClassName
545
+ actionsClassName: cn(actionsClassName, "justify-center")
546
546
  }
547
547
  )
548
548
  ]
@@ -7,8 +7,8 @@ var tailwindMerge = require('tailwind-merge');
7
7
  var jsxRuntime = require('react/jsx-runtime');
8
8
  var react = require('motion/react');
9
9
  var img = require('@page-speed/img');
10
- var pressable = require('@page-speed/pressable');
11
10
  var integration = require('@page-speed/forms/integration');
11
+ var pressable = require('@page-speed/pressable');
12
12
 
13
13
  function _interopNamespace(e) {
14
14
  if (e && e.__esModule) return e;
@@ -616,6 +616,70 @@ function CardContent({ className, ...props }) {
616
616
  }
617
617
  );
618
618
  }
619
+ var MOBILE_CLASSES = {
620
+ "fit-left": "items-start md:items-center",
621
+ "fit-center": "items-center",
622
+ "fit-right": "items-end md:items-center",
623
+ "full-left": "items-stretch md:items-center",
624
+ "full-center": "items-stretch md:items-center",
625
+ "full-right": "items-stretch md:items-center"
626
+ };
627
+ function BlockActions({
628
+ mobileConfig,
629
+ actionsClassName,
630
+ verticalSpacing = "mt-4 md:mt-8",
631
+ actions,
632
+ actionsSlot
633
+ }) {
634
+ const width = mobileConfig?.width ?? "full";
635
+ const position = mobileConfig?.position ?? "center";
636
+ const mobileLayoutClass = MOBILE_CLASSES[`${width}-${position}`];
637
+ if (actionsSlot) {
638
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { children: actionsSlot });
639
+ } else if (actions && actions?.length > 0) {
640
+ return /* @__PURE__ */ jsxRuntime.jsx(
641
+ "div",
642
+ {
643
+ className: cn(
644
+ "flex flex-col md:flex-row flex-wrap gap-4",
645
+ mobileLayoutClass,
646
+ actionsClassName,
647
+ verticalSpacing
648
+ ),
649
+ children: actions.map((action, index) => /* @__PURE__ */ jsxRuntime.jsx(ActionComponent, { action }, index))
650
+ }
651
+ );
652
+ } else {
653
+ return null;
654
+ }
655
+ }
656
+ function ActionComponent({ action }) {
657
+ const {
658
+ label,
659
+ icon,
660
+ iconAfter,
661
+ children,
662
+ href,
663
+ onClick,
664
+ className: actionClassName,
665
+ ...pressableProps
666
+ } = action;
667
+ return /* @__PURE__ */ jsxRuntime.jsx(
668
+ pressable.Pressable,
669
+ {
670
+ href,
671
+ onClick,
672
+ asButton: action.asButton ?? true,
673
+ className: actionClassName,
674
+ ...pressableProps,
675
+ children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
676
+ icon,
677
+ label,
678
+ iconAfter
679
+ ] })
680
+ }
681
+ );
682
+ }
619
683
  var DEFAULT_STYLE_RULES = {
620
684
  formContainer: "",
621
685
  fieldsContainer: "",
@@ -688,36 +752,6 @@ function HeroImageSlider({
688
752
  privacyNoticeClassName,
689
753
  gridClassName
690
754
  }) {
691
- const renderActions = React3.useMemo(() => {
692
- if (actionsSlot) return actionsSlot;
693
- if (!actions || actions.length === 0) return null;
694
- return actions.map((action, index) => {
695
- const {
696
- label,
697
- icon,
698
- iconAfter,
699
- children,
700
- className: actionClassName,
701
- asButton,
702
- ...pressableProps
703
- } = action;
704
- return /* @__PURE__ */ jsxRuntime.jsx(
705
- pressable.Pressable,
706
- {
707
- asButton: asButton ?? false,
708
- variant: "link",
709
- className: cn("text-primary p-0 h-auto", actionClassName),
710
- ...pressableProps,
711
- children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
712
- icon,
713
- label,
714
- iconAfter
715
- ] })
716
- },
717
- index
718
- );
719
- });
720
- }, [actionsSlot, actions]);
721
755
  const renderContent = React3.useMemo(() => {
722
756
  if (contentSlot) return contentSlot;
723
757
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -758,16 +792,14 @@ function HeroImageSlider({
758
792
  children: description
759
793
  }
760
794
  ) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("mt-4", descriptionClassName), children: description }) : null,
761
- actionsSlot || actions && actions.length > 0 ? /* @__PURE__ */ jsxRuntime.jsx(
762
- "div",
795
+ /* @__PURE__ */ jsxRuntime.jsx(
796
+ BlockActions,
763
797
  {
764
- className: cn(
765
- "mt-6 flex flex-col items-start gap-3 sm:flex-row",
766
- actionsClassName
767
- ),
768
- children: renderActions
798
+ actions,
799
+ actionsSlot,
800
+ actionsClassName
769
801
  }
770
- ) : null
802
+ )
771
803
  ]
772
804
  }
773
805
  );
@@ -782,8 +814,7 @@ function HeroImageSlider({
782
814
  eyebrowClassName,
783
815
  headingClassName,
784
816
  descriptionClassName,
785
- actionsClassName,
786
- renderActions
817
+ actionsClassName
787
818
  ]);
788
819
  const hasForm = formEngineSetup !== void 0;
789
820
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -811,7 +842,7 @@ function HeroImageSlider({
811
842
  "bg-linear-to-r from-black/70 via-black/50 to-black/30",
812
843
  overlayClassName
813
844
  ),
814
- className: "min-h-full w-full rounded-none border-none shadow-none",
845
+ className: "min-h-full w-full rounded-none md:rounded-2xl border-none shadow-none md:shadow-xl overflow-hidden",
815
846
  imageClassName: cn("scale-[1.02]", imageClassName),
816
847
  optixFlowConfig
817
848
  }
@@ -6,8 +6,8 @@ import { twMerge } from 'tailwind-merge';
6
6
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
7
7
  import { AnimatePresence, motion } from 'motion/react';
8
8
  import { Img } from '@page-speed/img';
9
- import { Pressable } from '@page-speed/pressable';
10
9
  import { FormEngine } from '@page-speed/forms/integration';
10
+ import { Pressable } from '@page-speed/pressable';
11
11
 
12
12
  // components/blocks/hero/hero-image-slider.tsx
13
13
  function cn(...inputs) {
@@ -595,6 +595,70 @@ function CardContent({ className, ...props }) {
595
595
  }
596
596
  );
597
597
  }
598
+ var MOBILE_CLASSES = {
599
+ "fit-left": "items-start md:items-center",
600
+ "fit-center": "items-center",
601
+ "fit-right": "items-end md:items-center",
602
+ "full-left": "items-stretch md:items-center",
603
+ "full-center": "items-stretch md:items-center",
604
+ "full-right": "items-stretch md:items-center"
605
+ };
606
+ function BlockActions({
607
+ mobileConfig,
608
+ actionsClassName,
609
+ verticalSpacing = "mt-4 md:mt-8",
610
+ actions,
611
+ actionsSlot
612
+ }) {
613
+ const width = mobileConfig?.width ?? "full";
614
+ const position = mobileConfig?.position ?? "center";
615
+ const mobileLayoutClass = MOBILE_CLASSES[`${width}-${position}`];
616
+ if (actionsSlot) {
617
+ return /* @__PURE__ */ jsx("div", { children: actionsSlot });
618
+ } else if (actions && actions?.length > 0) {
619
+ return /* @__PURE__ */ jsx(
620
+ "div",
621
+ {
622
+ className: cn(
623
+ "flex flex-col md:flex-row flex-wrap gap-4",
624
+ mobileLayoutClass,
625
+ actionsClassName,
626
+ verticalSpacing
627
+ ),
628
+ children: actions.map((action, index) => /* @__PURE__ */ jsx(ActionComponent, { action }, index))
629
+ }
630
+ );
631
+ } else {
632
+ return null;
633
+ }
634
+ }
635
+ function ActionComponent({ action }) {
636
+ const {
637
+ label,
638
+ icon,
639
+ iconAfter,
640
+ children,
641
+ href,
642
+ onClick,
643
+ className: actionClassName,
644
+ ...pressableProps
645
+ } = action;
646
+ return /* @__PURE__ */ jsx(
647
+ Pressable,
648
+ {
649
+ href,
650
+ onClick,
651
+ asButton: action.asButton ?? true,
652
+ className: actionClassName,
653
+ ...pressableProps,
654
+ children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
655
+ icon,
656
+ label,
657
+ iconAfter
658
+ ] })
659
+ }
660
+ );
661
+ }
598
662
  var DEFAULT_STYLE_RULES = {
599
663
  formContainer: "",
600
664
  fieldsContainer: "",
@@ -667,36 +731,6 @@ function HeroImageSlider({
667
731
  privacyNoticeClassName,
668
732
  gridClassName
669
733
  }) {
670
- const renderActions = useMemo(() => {
671
- if (actionsSlot) return actionsSlot;
672
- if (!actions || actions.length === 0) return null;
673
- return actions.map((action, index) => {
674
- const {
675
- label,
676
- icon,
677
- iconAfter,
678
- children,
679
- className: actionClassName,
680
- asButton,
681
- ...pressableProps
682
- } = action;
683
- return /* @__PURE__ */ jsx(
684
- Pressable,
685
- {
686
- asButton: asButton ?? false,
687
- variant: "link",
688
- className: cn("text-primary p-0 h-auto", actionClassName),
689
- ...pressableProps,
690
- children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
691
- icon,
692
- label,
693
- iconAfter
694
- ] })
695
- },
696
- index
697
- );
698
- });
699
- }, [actionsSlot, actions]);
700
734
  const renderContent = useMemo(() => {
701
735
  if (contentSlot) return contentSlot;
702
736
  return /* @__PURE__ */ jsxs(
@@ -737,16 +771,14 @@ function HeroImageSlider({
737
771
  children: description
738
772
  }
739
773
  ) : /* @__PURE__ */ jsx("div", { className: cn("mt-4", descriptionClassName), children: description }) : null,
740
- actionsSlot || actions && actions.length > 0 ? /* @__PURE__ */ jsx(
741
- "div",
774
+ /* @__PURE__ */ jsx(
775
+ BlockActions,
742
776
  {
743
- className: cn(
744
- "mt-6 flex flex-col items-start gap-3 sm:flex-row",
745
- actionsClassName
746
- ),
747
- children: renderActions
777
+ actions,
778
+ actionsSlot,
779
+ actionsClassName
748
780
  }
749
- ) : null
781
+ )
750
782
  ]
751
783
  }
752
784
  );
@@ -761,8 +793,7 @@ function HeroImageSlider({
761
793
  eyebrowClassName,
762
794
  headingClassName,
763
795
  descriptionClassName,
764
- actionsClassName,
765
- renderActions
796
+ actionsClassName
766
797
  ]);
767
798
  const hasForm = formEngineSetup !== void 0;
768
799
  return /* @__PURE__ */ jsxs(
@@ -790,7 +821,7 @@ function HeroImageSlider({
790
821
  "bg-linear-to-r from-black/70 via-black/50 to-black/30",
791
822
  overlayClassName
792
823
  ),
793
- className: "min-h-full w-full rounded-none border-none shadow-none",
824
+ className: "min-h-full w-full rounded-none md:rounded-2xl border-none shadow-none md:shadow-xl overflow-hidden",
794
825
  imageClassName: cn("scale-[1.02]", imageClassName),
795
826
  optixFlowConfig
796
827
  }
@@ -999,11 +999,20 @@ var NavbarMegaMenu = ({
999
999
  className: actionClassName,
1000
1000
  ...pressableProps
1001
1001
  } = action;
1002
- return /* @__PURE__ */ jsxRuntime.jsx(pressable.Pressable, { className: actionClassName, ...pressableProps, children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1003
- icon,
1004
- label,
1005
- iconAfter
1006
- ] }) }, index);
1002
+ return /* @__PURE__ */ jsxRuntime.jsx(
1003
+ pressable.Pressable,
1004
+ {
1005
+ asButton: true,
1006
+ className: actionClassName,
1007
+ ...pressableProps,
1008
+ children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1009
+ icon,
1010
+ label,
1011
+ iconAfter
1012
+ ] })
1013
+ },
1014
+ index
1015
+ );
1007
1016
  });
1008
1017
  };
1009
1018
  const {
@@ -976,11 +976,20 @@ var NavbarMegaMenu = ({
976
976
  className: actionClassName,
977
977
  ...pressableProps
978
978
  } = action;
979
- return /* @__PURE__ */ jsx(Pressable, { className: actionClassName, ...pressableProps, children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
980
- icon,
981
- label,
982
- iconAfter
983
- ] }) }, index);
979
+ return /* @__PURE__ */ jsx(
980
+ Pressable,
981
+ {
982
+ asButton: true,
983
+ className: actionClassName,
984
+ ...pressableProps,
985
+ children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
986
+ icon,
987
+ label,
988
+ iconAfter
989
+ ] })
990
+ },
991
+ index
992
+ );
984
993
  });
985
994
  };
986
995
  const {