@opensite/ui 3.3.8 → 3.3.9
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/about-culture-tabs.cjs +14 -3
- package/dist/about-culture-tabs.js +14 -3
- package/dist/about-developer-profile.cjs +14 -3
- package/dist/about-developer-profile.js +14 -3
- package/dist/about-developer-story.cjs +13 -2
- package/dist/about-developer-story.js +14 -3
- package/dist/about-expandable-values.cjs +14 -3
- package/dist/about-expandable-values.js +14 -3
- package/dist/about-mission-dual-image.cjs +13 -2
- package/dist/about-mission-dual-image.js +14 -3
- package/dist/about-network-spotlight.cjs +13 -2
- package/dist/about-network-spotlight.js +14 -3
- package/dist/about-story-expertise.cjs +14 -3
- package/dist/about-story-expertise.js +14 -3
- package/dist/about-streamline-team.cjs +14 -3
- package/dist/about-streamline-team.js +14 -3
- package/dist/carousel-feature-badge.cjs +13 -2
- package/dist/carousel-feature-badge.js +14 -3
- package/dist/carousel-image-hero.cjs +13 -2
- package/dist/carousel-image-hero.js +14 -3
- package/dist/carousel-portfolio-hero.cjs +13 -2
- package/dist/carousel-portfolio-hero.js +14 -3
- package/dist/community-initiatives.cjs +13 -2
- package/dist/community-initiatives.js +14 -3
- package/dist/components.cjs +13 -2
- package/dist/components.js +13 -2
- package/dist/cta-feature-checklist.cjs +13 -2
- package/dist/cta-feature-checklist.js +14 -3
- package/dist/faq-numbered-grid.cjs +13 -2
- package/dist/faq-numbered-grid.js +14 -3
- package/dist/hero-ad-campaign-expert.cjs +13 -2
- package/dist/hero-ad-campaign-expert.js +14 -3
- package/dist/hero-adaptable-product-grid.cjs +13 -2
- package/dist/hero-adaptable-product-grid.js +14 -3
- package/dist/hero-agency-animated-images.cjs +13 -2
- package/dist/hero-agency-animated-images.js +14 -3
- package/dist/hero-ai-powered-carousel.cjs +13 -2
- package/dist/hero-ai-powered-carousel.js +14 -3
- package/dist/hero-announcement-badge.cjs +13 -2
- package/dist/hero-announcement-badge.js +14 -3
- package/dist/hero-badge-image-split.cjs +13 -2
- package/dist/hero-badge-image-split.js +14 -3
- package/dist/hero-badge-shadow-overlay.cjs +13 -2
- package/dist/hero-badge-shadow-overlay.js +14 -3
- package/dist/hero-business-carousel-dots.cjs +13 -2
- package/dist/hero-business-carousel-dots.js +14 -3
- package/dist/hero-business-operations-mosaic.cjs +13 -2
- package/dist/hero-business-operations-mosaic.js +14 -3
- package/dist/hero-centered-gradient-cta.cjs +13 -2
- package/dist/hero-centered-gradient-cta.js +14 -3
- package/dist/hero-community-survey-cta.cjs +13 -2
- package/dist/hero-community-survey-cta.js +14 -3
- package/dist/hero-conversation-intelligence.cjs +13 -2
- package/dist/hero-conversation-intelligence.js +14 -3
- package/dist/hero-creative-studio-stacked.cjs +13 -2
- package/dist/hero-creative-studio-stacked.js +14 -3
- package/dist/hero-crm-streamlined.cjs +13 -2
- package/dist/hero-crm-streamlined.js +14 -3
- package/dist/hero-customer-support-layered.cjs +13 -2
- package/dist/hero-customer-support-layered.js +14 -3
- package/dist/hero-design-carousel-portfolio.cjs +13 -2
- package/dist/hero-design-carousel-portfolio.js +14 -3
- package/dist/hero-design-showcase-logos.cjs +13 -2
- package/dist/hero-design-showcase-logos.js +14 -3
- package/dist/hero-design-system-3d.cjs +13 -2
- package/dist/hero-design-system-3d.js +14 -3
- package/dist/hero-developer-tools-code.cjs +13 -2
- package/dist/hero-developer-tools-code.js +14 -3
- package/dist/hero-digital-agency-fullscreen.cjs +13 -2
- package/dist/hero-digital-agency-fullscreen.js +14 -3
- package/dist/hero-ecommerce-product-showcase.cjs +14 -3
- package/dist/hero-ecommerce-product-showcase.js +14 -3
- package/dist/hero-enterprise-security.cjs +13 -2
- package/dist/hero-enterprise-security.js +14 -3
- package/dist/hero-event-registration.cjs +13 -2
- package/dist/hero-event-registration.js +14 -3
- package/dist/hero-feature-cards-grid.cjs +13 -2
- package/dist/hero-feature-cards-grid.js +14 -3
- package/dist/hero-floating-images.cjs +13 -2
- package/dist/hero-floating-images.js +14 -3
- package/dist/hero-fullscreen-background-image.cjs +13 -2
- package/dist/hero-fullscreen-background-image.js +14 -3
- package/dist/hero-gradient-avatars-rating.cjs +13 -2
- package/dist/hero-gradient-avatars-rating.js +14 -3
- package/dist/hero-gradient-client-focused.cjs +13 -2
- package/dist/hero-gradient-client-focused.js +14 -3
- package/dist/hero-grid-pattern-solutions.cjs +13 -2
- package/dist/hero-grid-pattern-solutions.js +14 -3
- package/dist/hero-hiring-animated-text.cjs +13 -2
- package/dist/hero-hiring-animated-text.js +14 -3
- package/dist/hero-image-left-content.cjs +13 -2
- package/dist/hero-image-left-content.js +14 -3
- package/dist/hero-image-slider.cjs +13 -2
- package/dist/hero-image-slider.js +14 -3
- package/dist/hero-innovation-image-grid.cjs +13 -2
- package/dist/hero-innovation-image-grid.js +14 -3
- package/dist/hero-mental-health-team.cjs +13 -2
- package/dist/hero-mental-health-team.js +14 -3
- package/dist/hero-minimal-centered-dark.cjs +14 -3
- package/dist/hero-minimal-centered-dark.js +14 -3
- package/dist/hero-overlay-cta-grid.cjs +13 -2
- package/dist/hero-overlay-cta-grid.js +14 -3
- package/dist/hero-presentation-platform-video.cjs +13 -2
- package/dist/hero-presentation-platform-video.js +14 -3
- package/dist/hero-product-showcase-floating.cjs +14 -3
- package/dist/hero-product-showcase-floating.js +14 -3
- package/dist/hero-shared-inbox-layered.cjs +13 -2
- package/dist/hero-shared-inbox-layered.js +14 -3
- package/dist/hero-simple-centered-image.cjs +13 -2
- package/dist/hero-simple-centered-image.js +14 -3
- package/dist/hero-software-growth-video-dialog.cjs +13 -2
- package/dist/hero-software-growth-video-dialog.js +14 -3
- package/dist/hero-spiral-pattern-cards.cjs +14 -3
- package/dist/hero-spiral-pattern-cards.js +14 -3
- package/dist/hero-split-geometric-shapes.cjs +13 -2
- package/dist/hero-split-geometric-shapes.js +14 -3
- package/dist/hero-startup-launch-cta.cjs +14 -3
- package/dist/hero-startup-launch-cta.js +14 -3
- package/dist/hero-stats-social-proof.cjs +14 -3
- package/dist/hero-stats-social-proof.js +14 -3
- package/dist/hero-task-timer-animated.cjs +13 -2
- package/dist/hero-task-timer-animated.js +14 -3
- package/dist/hero-testimonial-image-grid.cjs +13 -2
- package/dist/hero-testimonial-image-grid.js +14 -3
- package/dist/hero-therapy-testimonial-grid.cjs +13 -2
- package/dist/hero-therapy-testimonial-grid.js +14 -3
- package/dist/hero-ui-library-showcase.cjs +13 -2
- package/dist/hero-ui-library-showcase.js +14 -3
- package/dist/hero-video-background-dark.cjs +14 -3
- package/dist/hero-video-background-dark.js +14 -3
- package/dist/hero-video-dialog-gradient.cjs +13 -2
- package/dist/hero-video-dialog-gradient.js +14 -3
- package/dist/hero-video-overlay-stars.cjs +13 -2
- package/dist/hero-video-overlay-stars.js +14 -3
- package/dist/hero-welcome-asymmetric-images.cjs +13 -2
- package/dist/hero-welcome-asymmetric-images.js +14 -3
- package/dist/index.cjs +13 -2
- package/dist/index.js +13 -2
- package/dist/process-sticky-steps.cjs +29 -9
- package/dist/process-sticky-steps.js +30 -10
- package/dist/registry.cjs +30 -10
- package/dist/registry.js +30 -10
- package/dist/social-link-icon.d.cts +1 -1
- package/dist/social-link-icon.d.ts +1 -1
- package/dist/stats-growth-timeline.cjs +13 -2
- package/dist/stats-growth-timeline.js +14 -3
- package/dist/testimonials-grid-add-review.cjs +13 -2
- package/dist/testimonials-grid-add-review.js +14 -3
- package/dist/testimonials-masonry-grid.cjs +13 -2
- package/dist/testimonials-masonry-grid.js +14 -3
- package/dist/testimonials-simple-grid.cjs +13 -2
- package/dist/testimonials-simple-grid.js +14 -3
- package/dist/testimonials-stats-header.cjs +13 -2
- package/dist/testimonials-stats-header.js +14 -3
- package/dist/testimonials-twitter-cards.cjs +13 -2
- package/dist/testimonials-twitter-cards.js +14 -3
- package/dist/testimonials-wall-compact.cjs +13 -2
- package/dist/testimonials-wall-compact.js +14 -3
- package/package.json +2 -2
|
@@ -6,7 +6,7 @@ import { twMerge } from 'tailwind-merge';
|
|
|
6
6
|
import { Slot } from '@radix-ui/react-slot';
|
|
7
7
|
import { cva } from 'class-variance-authority';
|
|
8
8
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
9
|
-
import { Pressable } from '@page-speed/pressable';
|
|
9
|
+
import { Pressable, buttonVariants } from '@page-speed/pressable';
|
|
10
10
|
import { Icon } from '@page-speed/icon';
|
|
11
11
|
import { Img } from '@page-speed/img';
|
|
12
12
|
import useEmblaCarousel from 'embla-carousel-react';
|
|
@@ -571,16 +571,27 @@ function ActionComponent({ action }) {
|
|
|
571
571
|
children,
|
|
572
572
|
href,
|
|
573
573
|
onClick,
|
|
574
|
+
asButton,
|
|
575
|
+
variant,
|
|
576
|
+
size,
|
|
574
577
|
className: actionClassName,
|
|
575
578
|
...pressableProps
|
|
576
579
|
} = action;
|
|
580
|
+
const shouldStyleAsButton = asButton ?? true;
|
|
581
|
+
const resolvedVariant = shouldStyleAsButton ? variant ?? "default" : void 0;
|
|
582
|
+
const resolvedSize = shouldStyleAsButton ? size ?? "default" : void 0;
|
|
577
583
|
return /* @__PURE__ */ jsx(
|
|
578
584
|
Pressable,
|
|
579
585
|
{
|
|
580
586
|
href,
|
|
581
587
|
onClick,
|
|
582
|
-
asButton:
|
|
583
|
-
|
|
588
|
+
asButton: shouldStyleAsButton,
|
|
589
|
+
variant: resolvedVariant,
|
|
590
|
+
size: resolvedSize,
|
|
591
|
+
className: cn(
|
|
592
|
+
shouldStyleAsButton && buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
593
|
+
actionClassName
|
|
594
|
+
),
|
|
584
595
|
...pressableProps,
|
|
585
596
|
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
586
597
|
icon,
|
|
@@ -502,16 +502,27 @@ function ActionComponent({ action }) {
|
|
|
502
502
|
children,
|
|
503
503
|
href,
|
|
504
504
|
onClick,
|
|
505
|
+
asButton,
|
|
506
|
+
variant,
|
|
507
|
+
size,
|
|
505
508
|
className: actionClassName,
|
|
506
509
|
...pressableProps
|
|
507
510
|
} = action;
|
|
511
|
+
const shouldStyleAsButton = asButton ?? true;
|
|
512
|
+
const resolvedVariant = shouldStyleAsButton ? variant ?? "default" : void 0;
|
|
513
|
+
const resolvedSize = shouldStyleAsButton ? size ?? "default" : void 0;
|
|
508
514
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
509
515
|
pressable.Pressable,
|
|
510
516
|
{
|
|
511
517
|
href,
|
|
512
518
|
onClick,
|
|
513
|
-
asButton:
|
|
514
|
-
|
|
519
|
+
asButton: shouldStyleAsButton,
|
|
520
|
+
variant: resolvedVariant,
|
|
521
|
+
size: resolvedSize,
|
|
522
|
+
className: cn(
|
|
523
|
+
shouldStyleAsButton && pressable.buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
524
|
+
actionClassName
|
|
525
|
+
),
|
|
515
526
|
...pressableProps,
|
|
516
527
|
children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
517
528
|
icon,
|
|
@@ -4,7 +4,7 @@ import React4__default from 'react';
|
|
|
4
4
|
import { useMotionValue, useMotionTemplate, motion } from 'framer-motion';
|
|
5
5
|
import { clsx } from 'clsx';
|
|
6
6
|
import { twMerge } from 'tailwind-merge';
|
|
7
|
-
import { Pressable } from '@page-speed/pressable';
|
|
7
|
+
import { Pressable, buttonVariants } from '@page-speed/pressable';
|
|
8
8
|
import { Icon } from '@page-speed/icon';
|
|
9
9
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
10
10
|
import { Img } from '@page-speed/img';
|
|
@@ -481,16 +481,27 @@ function ActionComponent({ action }) {
|
|
|
481
481
|
children,
|
|
482
482
|
href,
|
|
483
483
|
onClick,
|
|
484
|
+
asButton,
|
|
485
|
+
variant,
|
|
486
|
+
size,
|
|
484
487
|
className: actionClassName,
|
|
485
488
|
...pressableProps
|
|
486
489
|
} = action;
|
|
490
|
+
const shouldStyleAsButton = asButton ?? true;
|
|
491
|
+
const resolvedVariant = shouldStyleAsButton ? variant ?? "default" : void 0;
|
|
492
|
+
const resolvedSize = shouldStyleAsButton ? size ?? "default" : void 0;
|
|
487
493
|
return /* @__PURE__ */ jsx(
|
|
488
494
|
Pressable,
|
|
489
495
|
{
|
|
490
496
|
href,
|
|
491
497
|
onClick,
|
|
492
|
-
asButton:
|
|
493
|
-
|
|
498
|
+
asButton: shouldStyleAsButton,
|
|
499
|
+
variant: resolvedVariant,
|
|
500
|
+
size: resolvedSize,
|
|
501
|
+
className: cn(
|
|
502
|
+
shouldStyleAsButton && buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
503
|
+
actionClassName
|
|
504
|
+
),
|
|
494
505
|
...pressableProps,
|
|
495
506
|
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
496
507
|
icon,
|
|
@@ -592,16 +592,27 @@ function ActionComponent({ action }) {
|
|
|
592
592
|
children,
|
|
593
593
|
href,
|
|
594
594
|
onClick,
|
|
595
|
+
asButton,
|
|
596
|
+
variant,
|
|
597
|
+
size,
|
|
595
598
|
className: actionClassName,
|
|
596
599
|
...pressableProps
|
|
597
600
|
} = action;
|
|
601
|
+
const shouldStyleAsButton = asButton ?? true;
|
|
602
|
+
const resolvedVariant = shouldStyleAsButton ? variant ?? "default" : void 0;
|
|
603
|
+
const resolvedSize = shouldStyleAsButton ? size ?? "default" : void 0;
|
|
598
604
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
599
605
|
pressable.Pressable,
|
|
600
606
|
{
|
|
601
607
|
href,
|
|
602
608
|
onClick,
|
|
603
|
-
asButton:
|
|
604
|
-
|
|
609
|
+
asButton: shouldStyleAsButton,
|
|
610
|
+
variant: resolvedVariant,
|
|
611
|
+
size: resolvedSize,
|
|
612
|
+
className: cn(
|
|
613
|
+
shouldStyleAsButton && pressable.buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
614
|
+
actionClassName
|
|
615
|
+
),
|
|
605
616
|
...pressableProps,
|
|
606
617
|
children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
607
618
|
icon,
|
|
@@ -3,7 +3,7 @@ import * as React4 from 'react';
|
|
|
3
3
|
import React4__default from 'react';
|
|
4
4
|
import { clsx } from 'clsx';
|
|
5
5
|
import { twMerge } from 'tailwind-merge';
|
|
6
|
-
import { Pressable } from '@page-speed/pressable';
|
|
6
|
+
import { Pressable, buttonVariants } from '@page-speed/pressable';
|
|
7
7
|
import { Icon } from '@page-speed/icon';
|
|
8
8
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
9
9
|
import { Img } from '@page-speed/img';
|
|
@@ -571,16 +571,27 @@ function ActionComponent({ action }) {
|
|
|
571
571
|
children,
|
|
572
572
|
href,
|
|
573
573
|
onClick,
|
|
574
|
+
asButton,
|
|
575
|
+
variant,
|
|
576
|
+
size,
|
|
574
577
|
className: actionClassName,
|
|
575
578
|
...pressableProps
|
|
576
579
|
} = action;
|
|
580
|
+
const shouldStyleAsButton = asButton ?? true;
|
|
581
|
+
const resolvedVariant = shouldStyleAsButton ? variant ?? "default" : void 0;
|
|
582
|
+
const resolvedSize = shouldStyleAsButton ? size ?? "default" : void 0;
|
|
577
583
|
return /* @__PURE__ */ jsx(
|
|
578
584
|
Pressable,
|
|
579
585
|
{
|
|
580
586
|
href,
|
|
581
587
|
onClick,
|
|
582
|
-
asButton:
|
|
583
|
-
|
|
588
|
+
asButton: shouldStyleAsButton,
|
|
589
|
+
variant: resolvedVariant,
|
|
590
|
+
size: resolvedSize,
|
|
591
|
+
className: cn(
|
|
592
|
+
shouldStyleAsButton && buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
593
|
+
actionClassName
|
|
594
|
+
),
|
|
584
595
|
...pressableProps,
|
|
585
596
|
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
586
597
|
icon,
|
|
@@ -584,16 +584,27 @@ function ActionComponent({ action }) {
|
|
|
584
584
|
children,
|
|
585
585
|
href,
|
|
586
586
|
onClick,
|
|
587
|
+
asButton,
|
|
588
|
+
variant,
|
|
589
|
+
size,
|
|
587
590
|
className: actionClassName,
|
|
588
591
|
...pressableProps
|
|
589
592
|
} = action;
|
|
593
|
+
const shouldStyleAsButton = asButton ?? true;
|
|
594
|
+
const resolvedVariant = shouldStyleAsButton ? variant ?? "default" : void 0;
|
|
595
|
+
const resolvedSize = shouldStyleAsButton ? size ?? "default" : void 0;
|
|
590
596
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
591
597
|
pressable.Pressable,
|
|
592
598
|
{
|
|
593
599
|
href,
|
|
594
600
|
onClick,
|
|
595
|
-
asButton:
|
|
596
|
-
|
|
601
|
+
asButton: shouldStyleAsButton,
|
|
602
|
+
variant: resolvedVariant,
|
|
603
|
+
size: resolvedSize,
|
|
604
|
+
className: cn(
|
|
605
|
+
shouldStyleAsButton && pressable.buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
606
|
+
actionClassName
|
|
607
|
+
),
|
|
597
608
|
...pressableProps,
|
|
598
609
|
children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
599
610
|
icon,
|
|
@@ -9,7 +9,7 @@ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
|
9
9
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
10
10
|
import { Slot } from '@radix-ui/react-slot';
|
|
11
11
|
import { cva } from 'class-variance-authority';
|
|
12
|
-
import { Pressable } from '@page-speed/pressable';
|
|
12
|
+
import { Pressable, buttonVariants } from '@page-speed/pressable';
|
|
13
13
|
|
|
14
14
|
// components/blocks/about/community-initiatives.tsx
|
|
15
15
|
function cn(...inputs) {
|
|
@@ -562,16 +562,27 @@ function ActionComponent({ action }) {
|
|
|
562
562
|
children,
|
|
563
563
|
href,
|
|
564
564
|
onClick,
|
|
565
|
+
asButton,
|
|
566
|
+
variant,
|
|
567
|
+
size,
|
|
565
568
|
className: actionClassName,
|
|
566
569
|
...pressableProps
|
|
567
570
|
} = action;
|
|
571
|
+
const shouldStyleAsButton = asButton ?? true;
|
|
572
|
+
const resolvedVariant = shouldStyleAsButton ? variant ?? "default" : void 0;
|
|
573
|
+
const resolvedSize = shouldStyleAsButton ? size ?? "default" : void 0;
|
|
568
574
|
return /* @__PURE__ */ jsx(
|
|
569
575
|
Pressable,
|
|
570
576
|
{
|
|
571
577
|
href,
|
|
572
578
|
onClick,
|
|
573
|
-
asButton:
|
|
574
|
-
|
|
579
|
+
asButton: shouldStyleAsButton,
|
|
580
|
+
variant: resolvedVariant,
|
|
581
|
+
size: resolvedSize,
|
|
582
|
+
className: cn(
|
|
583
|
+
shouldStyleAsButton && buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
584
|
+
actionClassName
|
|
585
|
+
),
|
|
575
586
|
...pressableProps,
|
|
576
587
|
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
577
588
|
icon,
|
package/dist/components.cjs
CHANGED
|
@@ -1963,16 +1963,27 @@ function ActionComponent({ action }) {
|
|
|
1963
1963
|
children,
|
|
1964
1964
|
href,
|
|
1965
1965
|
onClick,
|
|
1966
|
+
asButton,
|
|
1967
|
+
variant,
|
|
1968
|
+
size,
|
|
1966
1969
|
className: actionClassName,
|
|
1967
1970
|
...pressableProps
|
|
1968
1971
|
} = action;
|
|
1972
|
+
const shouldStyleAsButton = asButton ?? true;
|
|
1973
|
+
const resolvedVariant = shouldStyleAsButton ? variant ?? "default" : void 0;
|
|
1974
|
+
const resolvedSize = shouldStyleAsButton ? size ?? "default" : void 0;
|
|
1969
1975
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1970
1976
|
pressable.Pressable,
|
|
1971
1977
|
{
|
|
1972
1978
|
href,
|
|
1973
1979
|
onClick,
|
|
1974
|
-
asButton:
|
|
1975
|
-
|
|
1980
|
+
asButton: shouldStyleAsButton,
|
|
1981
|
+
variant: resolvedVariant,
|
|
1982
|
+
size: resolvedSize,
|
|
1983
|
+
className: cn(
|
|
1984
|
+
shouldStyleAsButton && pressable.buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
1985
|
+
actionClassName
|
|
1986
|
+
),
|
|
1976
1987
|
...pressableProps,
|
|
1977
1988
|
children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1978
1989
|
icon,
|
package/dist/components.js
CHANGED
|
@@ -1940,16 +1940,27 @@ function ActionComponent({ action }) {
|
|
|
1940
1940
|
children,
|
|
1941
1941
|
href,
|
|
1942
1942
|
onClick,
|
|
1943
|
+
asButton,
|
|
1944
|
+
variant,
|
|
1945
|
+
size,
|
|
1943
1946
|
className: actionClassName,
|
|
1944
1947
|
...pressableProps
|
|
1945
1948
|
} = action;
|
|
1949
|
+
const shouldStyleAsButton = asButton ?? true;
|
|
1950
|
+
const resolvedVariant = shouldStyleAsButton ? variant ?? "default" : void 0;
|
|
1951
|
+
const resolvedSize = shouldStyleAsButton ? size ?? "default" : void 0;
|
|
1946
1952
|
return /* @__PURE__ */ jsx(
|
|
1947
1953
|
Pressable,
|
|
1948
1954
|
{
|
|
1949
1955
|
href,
|
|
1950
1956
|
onClick,
|
|
1951
|
-
asButton:
|
|
1952
|
-
|
|
1957
|
+
asButton: shouldStyleAsButton,
|
|
1958
|
+
variant: resolvedVariant,
|
|
1959
|
+
size: resolvedSize,
|
|
1960
|
+
className: cn(
|
|
1961
|
+
shouldStyleAsButton && buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
1962
|
+
actionClassName
|
|
1963
|
+
),
|
|
1953
1964
|
...pressableProps,
|
|
1954
1965
|
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1955
1966
|
icon,
|
|
@@ -466,16 +466,27 @@ function ActionComponent({ action }) {
|
|
|
466
466
|
children,
|
|
467
467
|
href,
|
|
468
468
|
onClick,
|
|
469
|
+
asButton,
|
|
470
|
+
variant,
|
|
471
|
+
size,
|
|
469
472
|
className: actionClassName,
|
|
470
473
|
...pressableProps
|
|
471
474
|
} = action;
|
|
475
|
+
const shouldStyleAsButton = asButton ?? true;
|
|
476
|
+
const resolvedVariant = shouldStyleAsButton ? variant ?? "default" : void 0;
|
|
477
|
+
const resolvedSize = shouldStyleAsButton ? size ?? "default" : void 0;
|
|
472
478
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
473
479
|
pressable.Pressable,
|
|
474
480
|
{
|
|
475
481
|
href,
|
|
476
482
|
onClick,
|
|
477
|
-
asButton:
|
|
478
|
-
|
|
483
|
+
asButton: shouldStyleAsButton,
|
|
484
|
+
variant: resolvedVariant,
|
|
485
|
+
size: resolvedSize,
|
|
486
|
+
className: cn(
|
|
487
|
+
shouldStyleAsButton && pressable.buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
488
|
+
actionClassName
|
|
489
|
+
),
|
|
479
490
|
...pressableProps,
|
|
480
491
|
children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
481
492
|
icon,
|
|
@@ -5,7 +5,7 @@ import { clsx } from 'clsx';
|
|
|
5
5
|
import { twMerge } from 'tailwind-merge';
|
|
6
6
|
import { Icon } from '@page-speed/icon';
|
|
7
7
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
8
|
-
import { Pressable } from '@page-speed/pressable';
|
|
8
|
+
import { Pressable, buttonVariants } from '@page-speed/pressable';
|
|
9
9
|
|
|
10
10
|
// components/blocks/cta/cta-feature-checklist.tsx
|
|
11
11
|
function cn(...inputs) {
|
|
@@ -445,16 +445,27 @@ function ActionComponent({ action }) {
|
|
|
445
445
|
children,
|
|
446
446
|
href,
|
|
447
447
|
onClick,
|
|
448
|
+
asButton,
|
|
449
|
+
variant,
|
|
450
|
+
size,
|
|
448
451
|
className: actionClassName,
|
|
449
452
|
...pressableProps
|
|
450
453
|
} = action;
|
|
454
|
+
const shouldStyleAsButton = asButton ?? true;
|
|
455
|
+
const resolvedVariant = shouldStyleAsButton ? variant ?? "default" : void 0;
|
|
456
|
+
const resolvedSize = shouldStyleAsButton ? size ?? "default" : void 0;
|
|
451
457
|
return /* @__PURE__ */ jsx(
|
|
452
458
|
Pressable,
|
|
453
459
|
{
|
|
454
460
|
href,
|
|
455
461
|
onClick,
|
|
456
|
-
asButton:
|
|
457
|
-
|
|
462
|
+
asButton: shouldStyleAsButton,
|
|
463
|
+
variant: resolvedVariant,
|
|
464
|
+
size: resolvedSize,
|
|
465
|
+
className: cn(
|
|
466
|
+
shouldStyleAsButton && buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
467
|
+
actionClassName
|
|
468
|
+
),
|
|
458
469
|
...pressableProps,
|
|
459
470
|
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
460
471
|
icon,
|
|
@@ -484,16 +484,27 @@ function ActionComponent({ action }) {
|
|
|
484
484
|
children,
|
|
485
485
|
href,
|
|
486
486
|
onClick,
|
|
487
|
+
asButton,
|
|
488
|
+
variant,
|
|
489
|
+
size,
|
|
487
490
|
className: actionClassName,
|
|
488
491
|
...pressableProps
|
|
489
492
|
} = action;
|
|
493
|
+
const shouldStyleAsButton = asButton ?? true;
|
|
494
|
+
const resolvedVariant = shouldStyleAsButton ? variant ?? "default" : void 0;
|
|
495
|
+
const resolvedSize = shouldStyleAsButton ? size ?? "default" : void 0;
|
|
490
496
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
491
497
|
pressable.Pressable,
|
|
492
498
|
{
|
|
493
499
|
href,
|
|
494
500
|
onClick,
|
|
495
|
-
asButton:
|
|
496
|
-
|
|
501
|
+
asButton: shouldStyleAsButton,
|
|
502
|
+
variant: resolvedVariant,
|
|
503
|
+
size: resolvedSize,
|
|
504
|
+
className: cn(
|
|
505
|
+
shouldStyleAsButton && pressable.buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
506
|
+
actionClassName
|
|
507
|
+
),
|
|
497
508
|
...pressableProps,
|
|
498
509
|
children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
499
510
|
icon,
|
|
@@ -4,7 +4,7 @@ import React4__default, { useMemo } from 'react';
|
|
|
4
4
|
import { clsx } from 'clsx';
|
|
5
5
|
import { twMerge } from 'tailwind-merge';
|
|
6
6
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
7
|
-
import { Pressable } from '@page-speed/pressable';
|
|
7
|
+
import { Pressable, buttonVariants } from '@page-speed/pressable';
|
|
8
8
|
|
|
9
9
|
// components/blocks/faq/faq-numbered-grid.tsx
|
|
10
10
|
function cn(...inputs) {
|
|
@@ -463,16 +463,27 @@ function ActionComponent({ action }) {
|
|
|
463
463
|
children,
|
|
464
464
|
href,
|
|
465
465
|
onClick,
|
|
466
|
+
asButton,
|
|
467
|
+
variant,
|
|
468
|
+
size,
|
|
466
469
|
className: actionClassName,
|
|
467
470
|
...pressableProps
|
|
468
471
|
} = action;
|
|
472
|
+
const shouldStyleAsButton = asButton ?? true;
|
|
473
|
+
const resolvedVariant = shouldStyleAsButton ? variant ?? "default" : void 0;
|
|
474
|
+
const resolvedSize = shouldStyleAsButton ? size ?? "default" : void 0;
|
|
469
475
|
return /* @__PURE__ */ jsx(
|
|
470
476
|
Pressable,
|
|
471
477
|
{
|
|
472
478
|
href,
|
|
473
479
|
onClick,
|
|
474
|
-
asButton:
|
|
475
|
-
|
|
480
|
+
asButton: shouldStyleAsButton,
|
|
481
|
+
variant: resolvedVariant,
|
|
482
|
+
size: resolvedSize,
|
|
483
|
+
className: cn(
|
|
484
|
+
shouldStyleAsButton && buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
485
|
+
actionClassName
|
|
486
|
+
),
|
|
476
487
|
...pressableProps,
|
|
477
488
|
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
478
489
|
icon,
|
|
@@ -665,16 +665,27 @@ function ActionComponent({ action }) {
|
|
|
665
665
|
children,
|
|
666
666
|
href,
|
|
667
667
|
onClick,
|
|
668
|
+
asButton,
|
|
669
|
+
variant,
|
|
670
|
+
size,
|
|
668
671
|
className: actionClassName,
|
|
669
672
|
...pressableProps
|
|
670
673
|
} = action;
|
|
674
|
+
const shouldStyleAsButton = asButton ?? true;
|
|
675
|
+
const resolvedVariant = shouldStyleAsButton ? variant ?? "default" : void 0;
|
|
676
|
+
const resolvedSize = shouldStyleAsButton ? size ?? "default" : void 0;
|
|
671
677
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
672
678
|
pressable.Pressable,
|
|
673
679
|
{
|
|
674
680
|
href,
|
|
675
681
|
onClick,
|
|
676
|
-
asButton:
|
|
677
|
-
|
|
682
|
+
asButton: shouldStyleAsButton,
|
|
683
|
+
variant: resolvedVariant,
|
|
684
|
+
size: resolvedSize,
|
|
685
|
+
className: cn(
|
|
686
|
+
shouldStyleAsButton && pressable.buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
687
|
+
actionClassName
|
|
688
|
+
),
|
|
678
689
|
...pressableProps,
|
|
679
690
|
children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
680
691
|
icon,
|
|
@@ -6,7 +6,7 @@ import { twMerge } from 'tailwind-merge';
|
|
|
6
6
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
7
7
|
import { Img } from '@page-speed/img';
|
|
8
8
|
import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
|
|
9
|
-
import { Pressable } from '@page-speed/pressable';
|
|
9
|
+
import { Pressable, buttonVariants } from '@page-speed/pressable';
|
|
10
10
|
|
|
11
11
|
// components/blocks/hero/hero-ad-campaign-expert.tsx
|
|
12
12
|
function cn(...inputs) {
|
|
@@ -643,16 +643,27 @@ function ActionComponent({ action }) {
|
|
|
643
643
|
children,
|
|
644
644
|
href,
|
|
645
645
|
onClick,
|
|
646
|
+
asButton,
|
|
647
|
+
variant,
|
|
648
|
+
size,
|
|
646
649
|
className: actionClassName,
|
|
647
650
|
...pressableProps
|
|
648
651
|
} = action;
|
|
652
|
+
const shouldStyleAsButton = asButton ?? true;
|
|
653
|
+
const resolvedVariant = shouldStyleAsButton ? variant ?? "default" : void 0;
|
|
654
|
+
const resolvedSize = shouldStyleAsButton ? size ?? "default" : void 0;
|
|
649
655
|
return /* @__PURE__ */ jsx(
|
|
650
656
|
Pressable,
|
|
651
657
|
{
|
|
652
658
|
href,
|
|
653
659
|
onClick,
|
|
654
|
-
asButton:
|
|
655
|
-
|
|
660
|
+
asButton: shouldStyleAsButton,
|
|
661
|
+
variant: resolvedVariant,
|
|
662
|
+
size: resolvedSize,
|
|
663
|
+
className: cn(
|
|
664
|
+
shouldStyleAsButton && buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
665
|
+
actionClassName
|
|
666
|
+
),
|
|
656
667
|
...pressableProps,
|
|
657
668
|
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
658
669
|
icon,
|
|
@@ -437,16 +437,27 @@ function ActionComponent({ action }) {
|
|
|
437
437
|
children,
|
|
438
438
|
href,
|
|
439
439
|
onClick,
|
|
440
|
+
asButton,
|
|
441
|
+
variant,
|
|
442
|
+
size,
|
|
440
443
|
className: actionClassName,
|
|
441
444
|
...pressableProps
|
|
442
445
|
} = action;
|
|
446
|
+
const shouldStyleAsButton = asButton ?? true;
|
|
447
|
+
const resolvedVariant = shouldStyleAsButton ? variant ?? "default" : void 0;
|
|
448
|
+
const resolvedSize = shouldStyleAsButton ? size ?? "default" : void 0;
|
|
443
449
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
444
450
|
pressable.Pressable,
|
|
445
451
|
{
|
|
446
452
|
href,
|
|
447
453
|
onClick,
|
|
448
|
-
asButton:
|
|
449
|
-
|
|
454
|
+
asButton: shouldStyleAsButton,
|
|
455
|
+
variant: resolvedVariant,
|
|
456
|
+
size: resolvedSize,
|
|
457
|
+
className: cn(
|
|
458
|
+
shouldStyleAsButton && pressable.buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
459
|
+
actionClassName
|
|
460
|
+
),
|
|
450
461
|
...pressableProps,
|
|
451
462
|
children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
452
463
|
icon,
|
|
@@ -4,7 +4,7 @@ import { twMerge } from 'tailwind-merge';
|
|
|
4
4
|
import { Img } from '@page-speed/img';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
7
|
-
import { Pressable } from '@page-speed/pressable';
|
|
7
|
+
import { Pressable, buttonVariants } from '@page-speed/pressable';
|
|
8
8
|
|
|
9
9
|
// lib/utils.ts
|
|
10
10
|
function cn(...inputs) {
|
|
@@ -431,16 +431,27 @@ function ActionComponent({ action }) {
|
|
|
431
431
|
children,
|
|
432
432
|
href,
|
|
433
433
|
onClick,
|
|
434
|
+
asButton,
|
|
435
|
+
variant,
|
|
436
|
+
size,
|
|
434
437
|
className: actionClassName,
|
|
435
438
|
...pressableProps
|
|
436
439
|
} = action;
|
|
440
|
+
const shouldStyleAsButton = asButton ?? true;
|
|
441
|
+
const resolvedVariant = shouldStyleAsButton ? variant ?? "default" : void 0;
|
|
442
|
+
const resolvedSize = shouldStyleAsButton ? size ?? "default" : void 0;
|
|
437
443
|
return /* @__PURE__ */ jsx(
|
|
438
444
|
Pressable,
|
|
439
445
|
{
|
|
440
446
|
href,
|
|
441
447
|
onClick,
|
|
442
|
-
asButton:
|
|
443
|
-
|
|
448
|
+
asButton: shouldStyleAsButton,
|
|
449
|
+
variant: resolvedVariant,
|
|
450
|
+
size: resolvedSize,
|
|
451
|
+
className: cn(
|
|
452
|
+
shouldStyleAsButton && buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
453
|
+
actionClassName
|
|
454
|
+
),
|
|
444
455
|
...pressableProps,
|
|
445
456
|
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
446
457
|
icon,
|
|
@@ -463,16 +463,27 @@ function ActionComponent({ action }) {
|
|
|
463
463
|
children,
|
|
464
464
|
href,
|
|
465
465
|
onClick,
|
|
466
|
+
asButton,
|
|
467
|
+
variant,
|
|
468
|
+
size,
|
|
466
469
|
className: actionClassName,
|
|
467
470
|
...pressableProps
|
|
468
471
|
} = action;
|
|
472
|
+
const shouldStyleAsButton = asButton ?? true;
|
|
473
|
+
const resolvedVariant = shouldStyleAsButton ? variant ?? "default" : void 0;
|
|
474
|
+
const resolvedSize = shouldStyleAsButton ? size ?? "default" : void 0;
|
|
469
475
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
470
476
|
pressable.Pressable,
|
|
471
477
|
{
|
|
472
478
|
href,
|
|
473
479
|
onClick,
|
|
474
|
-
asButton:
|
|
475
|
-
|
|
480
|
+
asButton: shouldStyleAsButton,
|
|
481
|
+
variant: resolvedVariant,
|
|
482
|
+
size: resolvedSize,
|
|
483
|
+
className: cn(
|
|
484
|
+
shouldStyleAsButton && pressable.buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
485
|
+
actionClassName
|
|
486
|
+
),
|
|
476
487
|
...pressableProps,
|
|
477
488
|
children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
478
489
|
icon,
|
|
@@ -6,7 +6,7 @@ import { twMerge } from 'tailwind-merge';
|
|
|
6
6
|
import { Img } from '@page-speed/img';
|
|
7
7
|
import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
|
|
8
8
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
9
|
-
import { Pressable } from '@page-speed/pressable';
|
|
9
|
+
import { Pressable, buttonVariants } from '@page-speed/pressable';
|
|
10
10
|
|
|
11
11
|
// components/blocks/hero/hero-agency-animated-images.tsx
|
|
12
12
|
function cn(...inputs) {
|
|
@@ -438,16 +438,27 @@ function ActionComponent({ action }) {
|
|
|
438
438
|
children,
|
|
439
439
|
href,
|
|
440
440
|
onClick,
|
|
441
|
+
asButton,
|
|
442
|
+
variant,
|
|
443
|
+
size,
|
|
441
444
|
className: actionClassName,
|
|
442
445
|
...pressableProps
|
|
443
446
|
} = action;
|
|
447
|
+
const shouldStyleAsButton = asButton ?? true;
|
|
448
|
+
const resolvedVariant = shouldStyleAsButton ? variant ?? "default" : void 0;
|
|
449
|
+
const resolvedSize = shouldStyleAsButton ? size ?? "default" : void 0;
|
|
444
450
|
return /* @__PURE__ */ jsx(
|
|
445
451
|
Pressable,
|
|
446
452
|
{
|
|
447
453
|
href,
|
|
448
454
|
onClick,
|
|
449
|
-
asButton:
|
|
450
|
-
|
|
455
|
+
asButton: shouldStyleAsButton,
|
|
456
|
+
variant: resolvedVariant,
|
|
457
|
+
size: resolvedSize,
|
|
458
|
+
className: cn(
|
|
459
|
+
shouldStyleAsButton && buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
460
|
+
actionClassName
|
|
461
|
+
),
|
|
451
462
|
...pressableProps,
|
|
452
463
|
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
453
464
|
icon,
|