@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
|
@@ -661,16 +661,27 @@ function ActionComponent({ action }) {
|
|
|
661
661
|
children,
|
|
662
662
|
href,
|
|
663
663
|
onClick,
|
|
664
|
+
asButton,
|
|
665
|
+
variant,
|
|
666
|
+
size,
|
|
664
667
|
className: actionClassName,
|
|
665
668
|
...pressableProps
|
|
666
669
|
} = action;
|
|
670
|
+
const shouldStyleAsButton = asButton ?? true;
|
|
671
|
+
const resolvedVariant = shouldStyleAsButton ? variant ?? "default" : void 0;
|
|
672
|
+
const resolvedSize = shouldStyleAsButton ? size ?? "default" : void 0;
|
|
667
673
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
668
674
|
pressable.Pressable,
|
|
669
675
|
{
|
|
670
676
|
href,
|
|
671
677
|
onClick,
|
|
672
|
-
asButton:
|
|
673
|
-
|
|
678
|
+
asButton: shouldStyleAsButton,
|
|
679
|
+
variant: resolvedVariant,
|
|
680
|
+
size: resolvedSize,
|
|
681
|
+
className: cn(
|
|
682
|
+
shouldStyleAsButton && pressable.buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
683
|
+
actionClassName
|
|
684
|
+
),
|
|
674
685
|
...pressableProps,
|
|
675
686
|
children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
676
687
|
icon,
|
|
@@ -7,7 +7,7 @@ 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
9
|
import { FormEngine } from '@page-speed/forms/integration';
|
|
10
|
-
import { Pressable } from '@page-speed/pressable';
|
|
10
|
+
import { Pressable, buttonVariants } from '@page-speed/pressable';
|
|
11
11
|
|
|
12
12
|
// components/blocks/hero/hero-image-slider.tsx
|
|
13
13
|
function cn(...inputs) {
|
|
@@ -640,16 +640,27 @@ function ActionComponent({ action }) {
|
|
|
640
640
|
children,
|
|
641
641
|
href,
|
|
642
642
|
onClick,
|
|
643
|
+
asButton,
|
|
644
|
+
variant,
|
|
645
|
+
size,
|
|
643
646
|
className: actionClassName,
|
|
644
647
|
...pressableProps
|
|
645
648
|
} = action;
|
|
649
|
+
const shouldStyleAsButton = asButton ?? true;
|
|
650
|
+
const resolvedVariant = shouldStyleAsButton ? variant ?? "default" : void 0;
|
|
651
|
+
const resolvedSize = shouldStyleAsButton ? size ?? "default" : void 0;
|
|
646
652
|
return /* @__PURE__ */ jsx(
|
|
647
653
|
Pressable,
|
|
648
654
|
{
|
|
649
655
|
href,
|
|
650
656
|
onClick,
|
|
651
|
-
asButton:
|
|
652
|
-
|
|
657
|
+
asButton: shouldStyleAsButton,
|
|
658
|
+
variant: resolvedVariant,
|
|
659
|
+
size: resolvedSize,
|
|
660
|
+
className: cn(
|
|
661
|
+
shouldStyleAsButton && buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
662
|
+
actionClassName
|
|
663
|
+
),
|
|
653
664
|
...pressableProps,
|
|
654
665
|
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
655
666
|
icon,
|
|
@@ -462,16 +462,27 @@ function ActionComponent({ action }) {
|
|
|
462
462
|
children,
|
|
463
463
|
href,
|
|
464
464
|
onClick,
|
|
465
|
+
asButton,
|
|
466
|
+
variant,
|
|
467
|
+
size,
|
|
465
468
|
className: actionClassName,
|
|
466
469
|
...pressableProps
|
|
467
470
|
} = action;
|
|
471
|
+
const shouldStyleAsButton = asButton ?? true;
|
|
472
|
+
const resolvedVariant = shouldStyleAsButton ? variant ?? "default" : void 0;
|
|
473
|
+
const resolvedSize = shouldStyleAsButton ? size ?? "default" : void 0;
|
|
468
474
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
469
475
|
pressable.Pressable,
|
|
470
476
|
{
|
|
471
477
|
href,
|
|
472
478
|
onClick,
|
|
473
|
-
asButton:
|
|
474
|
-
|
|
479
|
+
asButton: shouldStyleAsButton,
|
|
480
|
+
variant: resolvedVariant,
|
|
481
|
+
size: resolvedSize,
|
|
482
|
+
className: cn(
|
|
483
|
+
shouldStyleAsButton && pressable.buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
484
|
+
actionClassName
|
|
485
|
+
),
|
|
475
486
|
...pressableProps,
|
|
476
487
|
children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
477
488
|
icon,
|
|
@@ -5,7 +5,7 @@ import { twMerge } from 'tailwind-merge';
|
|
|
5
5
|
import { Img } from '@page-speed/img';
|
|
6
6
|
import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
|
|
7
7
|
import { jsx, jsxs, Fragment } 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/hero/hero-innovation-image-grid.tsx
|
|
11
11
|
function cn(...inputs) {
|
|
@@ -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__ */ jsx(
|
|
444
450
|
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 && buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
459
|
+
actionClassName
|
|
460
|
+
),
|
|
450
461
|
...pressableProps,
|
|
451
462
|
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
452
463
|
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 { clsx } from 'clsx';
|
|
|
4
4
|
import { twMerge } from 'tailwind-merge';
|
|
5
5
|
import { Img } from '@page-speed/img';
|
|
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/hero/hero-mental-health-team.tsx
|
|
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,
|
|
@@ -5,9 +5,9 @@ var React = require('react');
|
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var tailwindMerge = require('tailwind-merge');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
8
|
+
var pressable = require('@page-speed/pressable');
|
|
8
9
|
var reactSlot = require('@radix-ui/react-slot');
|
|
9
10
|
var classVarianceAuthority = require('class-variance-authority');
|
|
10
|
-
var pressable = require('@page-speed/pressable');
|
|
11
11
|
|
|
12
12
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
13
|
|
|
@@ -470,16 +470,27 @@ function ActionComponent({ action }) {
|
|
|
470
470
|
children,
|
|
471
471
|
href,
|
|
472
472
|
onClick,
|
|
473
|
+
asButton,
|
|
474
|
+
variant,
|
|
475
|
+
size,
|
|
473
476
|
className: actionClassName,
|
|
474
477
|
...pressableProps
|
|
475
478
|
} = action;
|
|
479
|
+
const shouldStyleAsButton = asButton ?? true;
|
|
480
|
+
const resolvedVariant = shouldStyleAsButton ? variant ?? "default" : void 0;
|
|
481
|
+
const resolvedSize = shouldStyleAsButton ? size ?? "default" : void 0;
|
|
476
482
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
477
483
|
pressable.Pressable,
|
|
478
484
|
{
|
|
479
485
|
href,
|
|
480
486
|
onClick,
|
|
481
|
-
asButton:
|
|
482
|
-
|
|
487
|
+
asButton: shouldStyleAsButton,
|
|
488
|
+
variant: resolvedVariant,
|
|
489
|
+
size: resolvedSize,
|
|
490
|
+
className: cn(
|
|
491
|
+
shouldStyleAsButton && pressable.buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
492
|
+
actionClassName
|
|
493
|
+
),
|
|
483
494
|
...pressableProps,
|
|
484
495
|
children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
485
496
|
icon,
|
|
@@ -3,9 +3,9 @@ import React, { useMemo } from 'react';
|
|
|
3
3
|
import { clsx } from 'clsx';
|
|
4
4
|
import { twMerge } from 'tailwind-merge';
|
|
5
5
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
6
|
+
import { Pressable, buttonVariants } from '@page-speed/pressable';
|
|
6
7
|
import { Slot } from '@radix-ui/react-slot';
|
|
7
8
|
import { cva } from 'class-variance-authority';
|
|
8
|
-
import { Pressable } from '@page-speed/pressable';
|
|
9
9
|
|
|
10
10
|
// components/blocks/hero/hero-minimal-centered-dark.tsx
|
|
11
11
|
function cn(...inputs) {
|
|
@@ -464,16 +464,27 @@ function ActionComponent({ action }) {
|
|
|
464
464
|
children,
|
|
465
465
|
href,
|
|
466
466
|
onClick,
|
|
467
|
+
asButton,
|
|
468
|
+
variant,
|
|
469
|
+
size,
|
|
467
470
|
className: actionClassName,
|
|
468
471
|
...pressableProps
|
|
469
472
|
} = action;
|
|
473
|
+
const shouldStyleAsButton = asButton ?? true;
|
|
474
|
+
const resolvedVariant = shouldStyleAsButton ? variant ?? "default" : void 0;
|
|
475
|
+
const resolvedSize = shouldStyleAsButton ? size ?? "default" : void 0;
|
|
470
476
|
return /* @__PURE__ */ jsx(
|
|
471
477
|
Pressable,
|
|
472
478
|
{
|
|
473
479
|
href,
|
|
474
480
|
onClick,
|
|
475
|
-
asButton:
|
|
476
|
-
|
|
481
|
+
asButton: shouldStyleAsButton,
|
|
482
|
+
variant: resolvedVariant,
|
|
483
|
+
size: resolvedSize,
|
|
484
|
+
className: cn(
|
|
485
|
+
shouldStyleAsButton && buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
486
|
+
actionClassName
|
|
487
|
+
),
|
|
477
488
|
...pressableProps,
|
|
478
489
|
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
479
490
|
icon,
|
|
@@ -468,16 +468,27 @@ function ActionComponent({ action }) {
|
|
|
468
468
|
children,
|
|
469
469
|
href,
|
|
470
470
|
onClick,
|
|
471
|
+
asButton,
|
|
472
|
+
variant,
|
|
473
|
+
size,
|
|
471
474
|
className: actionClassName,
|
|
472
475
|
...pressableProps
|
|
473
476
|
} = action;
|
|
477
|
+
const shouldStyleAsButton = asButton ?? true;
|
|
478
|
+
const resolvedVariant = shouldStyleAsButton ? variant ?? "default" : void 0;
|
|
479
|
+
const resolvedSize = shouldStyleAsButton ? size ?? "default" : void 0;
|
|
474
480
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
475
481
|
pressable.Pressable,
|
|
476
482
|
{
|
|
477
483
|
href,
|
|
478
484
|
onClick,
|
|
479
|
-
asButton:
|
|
480
|
-
|
|
485
|
+
asButton: shouldStyleAsButton,
|
|
486
|
+
variant: resolvedVariant,
|
|
487
|
+
size: resolvedSize,
|
|
488
|
+
className: cn(
|
|
489
|
+
shouldStyleAsButton && pressable.buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
490
|
+
actionClassName
|
|
491
|
+
),
|
|
481
492
|
...pressableProps,
|
|
482
493
|
children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
483
494
|
icon,
|
|
@@ -7,7 +7,7 @@ import { twMerge } from 'tailwind-merge';
|
|
|
7
7
|
import { Img } from '@page-speed/img';
|
|
8
8
|
import { Icon } from '@page-speed/icon';
|
|
9
9
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
10
|
-
import { Pressable } from '@page-speed/pressable';
|
|
10
|
+
import { Pressable, buttonVariants } from '@page-speed/pressable';
|
|
11
11
|
|
|
12
12
|
// components/blocks/hero/hero-overlay-cta-grid.tsx
|
|
13
13
|
function cn(...inputs) {
|
|
@@ -447,16 +447,27 @@ function ActionComponent({ action }) {
|
|
|
447
447
|
children,
|
|
448
448
|
href,
|
|
449
449
|
onClick,
|
|
450
|
+
asButton,
|
|
451
|
+
variant,
|
|
452
|
+
size,
|
|
450
453
|
className: actionClassName,
|
|
451
454
|
...pressableProps
|
|
452
455
|
} = action;
|
|
456
|
+
const shouldStyleAsButton = asButton ?? true;
|
|
457
|
+
const resolvedVariant = shouldStyleAsButton ? variant ?? "default" : void 0;
|
|
458
|
+
const resolvedSize = shouldStyleAsButton ? size ?? "default" : void 0;
|
|
453
459
|
return /* @__PURE__ */ jsx(
|
|
454
460
|
Pressable,
|
|
455
461
|
{
|
|
456
462
|
href,
|
|
457
463
|
onClick,
|
|
458
|
-
asButton:
|
|
459
|
-
|
|
464
|
+
asButton: shouldStyleAsButton,
|
|
465
|
+
variant: resolvedVariant,
|
|
466
|
+
size: resolvedSize,
|
|
467
|
+
className: cn(
|
|
468
|
+
shouldStyleAsButton && buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
469
|
+
actionClassName
|
|
470
|
+
),
|
|
460
471
|
...pressableProps,
|
|
461
472
|
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
462
473
|
icon,
|
|
@@ -485,16 +485,27 @@ function ActionComponent({ action }) {
|
|
|
485
485
|
children,
|
|
486
486
|
href,
|
|
487
487
|
onClick,
|
|
488
|
+
asButton,
|
|
489
|
+
variant,
|
|
490
|
+
size,
|
|
488
491
|
className: actionClassName,
|
|
489
492
|
...pressableProps
|
|
490
493
|
} = action;
|
|
494
|
+
const shouldStyleAsButton = asButton ?? true;
|
|
495
|
+
const resolvedVariant = shouldStyleAsButton ? variant ?? "default" : void 0;
|
|
496
|
+
const resolvedSize = shouldStyleAsButton ? size ?? "default" : void 0;
|
|
491
497
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
492
498
|
pressable.Pressable,
|
|
493
499
|
{
|
|
494
500
|
href,
|
|
495
501
|
onClick,
|
|
496
|
-
asButton:
|
|
497
|
-
|
|
502
|
+
asButton: shouldStyleAsButton,
|
|
503
|
+
variant: resolvedVariant,
|
|
504
|
+
size: resolvedSize,
|
|
505
|
+
className: cn(
|
|
506
|
+
shouldStyleAsButton && pressable.buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
507
|
+
actionClassName
|
|
508
|
+
),
|
|
498
509
|
...pressableProps,
|
|
499
510
|
children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
500
511
|
icon,
|
|
@@ -5,7 +5,7 @@ import { Video } from '@page-speed/video';
|
|
|
5
5
|
import { clsx } from 'clsx';
|
|
6
6
|
import { twMerge } from 'tailwind-merge';
|
|
7
7
|
import { jsx, jsxs, Fragment } 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/hero/hero-presentation-platform-video.tsx
|
|
11
11
|
function cn(...inputs) {
|
|
@@ -464,16 +464,27 @@ function ActionComponent({ action }) {
|
|
|
464
464
|
children,
|
|
465
465
|
href,
|
|
466
466
|
onClick,
|
|
467
|
+
asButton,
|
|
468
|
+
variant,
|
|
469
|
+
size,
|
|
467
470
|
className: actionClassName,
|
|
468
471
|
...pressableProps
|
|
469
472
|
} = action;
|
|
473
|
+
const shouldStyleAsButton = asButton ?? true;
|
|
474
|
+
const resolvedVariant = shouldStyleAsButton ? variant ?? "default" : void 0;
|
|
475
|
+
const resolvedSize = shouldStyleAsButton ? size ?? "default" : void 0;
|
|
470
476
|
return /* @__PURE__ */ jsx(
|
|
471
477
|
Pressable,
|
|
472
478
|
{
|
|
473
479
|
href,
|
|
474
480
|
onClick,
|
|
475
|
-
asButton:
|
|
476
|
-
|
|
481
|
+
asButton: shouldStyleAsButton,
|
|
482
|
+
variant: resolvedVariant,
|
|
483
|
+
size: resolvedSize,
|
|
484
|
+
className: cn(
|
|
485
|
+
shouldStyleAsButton && buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
486
|
+
actionClassName
|
|
487
|
+
),
|
|
477
488
|
...pressableProps,
|
|
478
489
|
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
479
490
|
icon,
|
|
@@ -7,9 +7,9 @@ var tailwindMerge = require('tailwind-merge');
|
|
|
7
7
|
var icon = require('@page-speed/icon');
|
|
8
8
|
var jsxRuntime = require('react/jsx-runtime');
|
|
9
9
|
var img = require('@page-speed/img');
|
|
10
|
+
var pressable = require('@page-speed/pressable');
|
|
10
11
|
var reactSlot = require('@radix-ui/react-slot');
|
|
11
12
|
var classVarianceAuthority = require('class-variance-authority');
|
|
12
|
-
var pressable = require('@page-speed/pressable');
|
|
13
13
|
|
|
14
14
|
function _interopNamespace(e) {
|
|
15
15
|
if (e && e.__esModule) return e;
|
|
@@ -533,16 +533,27 @@ function ActionComponent({ action }) {
|
|
|
533
533
|
children,
|
|
534
534
|
href,
|
|
535
535
|
onClick,
|
|
536
|
+
asButton,
|
|
537
|
+
variant,
|
|
538
|
+
size,
|
|
536
539
|
className: actionClassName,
|
|
537
540
|
...pressableProps
|
|
538
541
|
} = action;
|
|
542
|
+
const shouldStyleAsButton = asButton ?? true;
|
|
543
|
+
const resolvedVariant = shouldStyleAsButton ? variant ?? "default" : void 0;
|
|
544
|
+
const resolvedSize = shouldStyleAsButton ? size ?? "default" : void 0;
|
|
539
545
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
540
546
|
pressable.Pressable,
|
|
541
547
|
{
|
|
542
548
|
href,
|
|
543
549
|
onClick,
|
|
544
|
-
asButton:
|
|
545
|
-
|
|
550
|
+
asButton: shouldStyleAsButton,
|
|
551
|
+
variant: resolvedVariant,
|
|
552
|
+
size: resolvedSize,
|
|
553
|
+
className: cn(
|
|
554
|
+
shouldStyleAsButton && pressable.buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
555
|
+
actionClassName
|
|
556
|
+
),
|
|
546
557
|
...pressableProps,
|
|
547
558
|
children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
548
559
|
icon,
|
|
@@ -6,9 +6,9 @@ import { twMerge } from 'tailwind-merge';
|
|
|
6
6
|
import { Icon } from '@page-speed/icon';
|
|
7
7
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
8
8
|
import { Img } from '@page-speed/img';
|
|
9
|
+
import { Pressable, buttonVariants } from '@page-speed/pressable';
|
|
9
10
|
import { Slot } from '@radix-ui/react-slot';
|
|
10
11
|
import { cva } from 'class-variance-authority';
|
|
11
|
-
import { Pressable } from '@page-speed/pressable';
|
|
12
12
|
|
|
13
13
|
// components/blocks/hero/hero-product-showcase-floating.tsx
|
|
14
14
|
function cn(...inputs) {
|
|
@@ -512,16 +512,27 @@ function ActionComponent({ action }) {
|
|
|
512
512
|
children,
|
|
513
513
|
href,
|
|
514
514
|
onClick,
|
|
515
|
+
asButton,
|
|
516
|
+
variant,
|
|
517
|
+
size,
|
|
515
518
|
className: actionClassName,
|
|
516
519
|
...pressableProps
|
|
517
520
|
} = action;
|
|
521
|
+
const shouldStyleAsButton = asButton ?? true;
|
|
522
|
+
const resolvedVariant = shouldStyleAsButton ? variant ?? "default" : void 0;
|
|
523
|
+
const resolvedSize = shouldStyleAsButton ? size ?? "default" : void 0;
|
|
518
524
|
return /* @__PURE__ */ jsx(
|
|
519
525
|
Pressable,
|
|
520
526
|
{
|
|
521
527
|
href,
|
|
522
528
|
onClick,
|
|
523
|
-
asButton:
|
|
524
|
-
|
|
529
|
+
asButton: shouldStyleAsButton,
|
|
530
|
+
variant: resolvedVariant,
|
|
531
|
+
size: resolvedSize,
|
|
532
|
+
className: cn(
|
|
533
|
+
shouldStyleAsButton && buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
534
|
+
actionClassName
|
|
535
|
+
),
|
|
525
536
|
...pressableProps,
|
|
526
537
|
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
527
538
|
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 { clsx } from 'clsx';
|
|
|
4
4
|
import { twMerge } from 'tailwind-merge';
|
|
5
5
|
import { Img } from '@page-speed/img';
|
|
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/hero/hero-shared-inbox-layered.tsx
|
|
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,
|
|
@@ -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,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React, { useMemo } from 'react';
|
|
3
3
|
import { clsx } from 'clsx';
|
|
4
4
|
import { twMerge } from 'tailwind-merge';
|
|
5
|
-
import { Pressable } from '@page-speed/pressable';
|
|
5
|
+
import { Pressable, buttonVariants } from '@page-speed/pressable';
|
|
6
6
|
import { Img } from '@page-speed/img';
|
|
7
7
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
8
8
|
|
|
@@ -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,
|