@opensite/ui 3.3.8 → 3.4.0
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 +17 -3
- package/dist/about-culture-tabs.js +17 -3
- package/dist/about-developer-profile.cjs +17 -3
- package/dist/about-developer-profile.js +17 -3
- package/dist/about-developer-story.cjs +16 -2
- package/dist/about-developer-story.js +17 -3
- package/dist/about-expandable-values.cjs +17 -3
- package/dist/about-expandable-values.js +17 -3
- package/dist/about-mission-dual-image.cjs +16 -2
- package/dist/about-mission-dual-image.js +17 -3
- package/dist/about-network-spotlight.cjs +16 -2
- package/dist/about-network-spotlight.js +17 -3
- package/dist/about-story-expertise.cjs +17 -3
- package/dist/about-story-expertise.js +17 -3
- package/dist/about-streamline-team.cjs +17 -3
- package/dist/about-streamline-team.js +17 -3
- package/dist/carousel-feature-badge.cjs +16 -2
- package/dist/carousel-feature-badge.js +17 -3
- package/dist/carousel-image-hero.cjs +16 -2
- package/dist/carousel-image-hero.js +17 -3
- package/dist/carousel-portfolio-hero.cjs +16 -2
- package/dist/carousel-portfolio-hero.js +17 -3
- package/dist/community-initiatives.cjs +16 -2
- package/dist/community-initiatives.js +17 -3
- package/dist/components.cjs +16 -2
- package/dist/components.js +16 -2
- package/dist/cta-feature-checklist.cjs +16 -2
- package/dist/cta-feature-checklist.js +17 -3
- package/dist/faq-numbered-grid.cjs +16 -2
- package/dist/faq-numbered-grid.js +17 -3
- package/dist/hero-ad-campaign-expert.cjs +16 -2
- package/dist/hero-ad-campaign-expert.js +17 -3
- package/dist/hero-adaptable-product-grid.cjs +16 -2
- package/dist/hero-adaptable-product-grid.js +17 -3
- package/dist/hero-agency-animated-images.cjs +16 -2
- package/dist/hero-agency-animated-images.js +17 -3
- package/dist/hero-ai-powered-carousel.cjs +16 -2
- package/dist/hero-ai-powered-carousel.js +17 -3
- package/dist/hero-announcement-badge.cjs +16 -2
- package/dist/hero-announcement-badge.js +17 -3
- package/dist/hero-badge-image-split.cjs +16 -2
- package/dist/hero-badge-image-split.js +17 -3
- package/dist/hero-badge-shadow-overlay.cjs +16 -2
- package/dist/hero-badge-shadow-overlay.js +17 -3
- package/dist/hero-business-carousel-dots.cjs +16 -2
- package/dist/hero-business-carousel-dots.js +17 -3
- package/dist/hero-business-operations-mosaic.cjs +16 -2
- package/dist/hero-business-operations-mosaic.js +17 -3
- package/dist/hero-centered-gradient-cta.cjs +16 -2
- package/dist/hero-centered-gradient-cta.js +17 -3
- package/dist/hero-community-survey-cta.cjs +16 -2
- package/dist/hero-community-survey-cta.js +17 -3
- package/dist/hero-conversation-intelligence.cjs +16 -2
- package/dist/hero-conversation-intelligence.js +17 -3
- package/dist/hero-creative-studio-stacked.cjs +16 -2
- package/dist/hero-creative-studio-stacked.js +17 -3
- package/dist/hero-crm-streamlined.cjs +16 -2
- package/dist/hero-crm-streamlined.js +17 -3
- package/dist/hero-customer-support-layered.cjs +16 -2
- package/dist/hero-customer-support-layered.js +17 -3
- package/dist/hero-design-carousel-portfolio.cjs +16 -2
- package/dist/hero-design-carousel-portfolio.js +17 -3
- package/dist/hero-design-showcase-logos.cjs +16 -2
- package/dist/hero-design-showcase-logos.js +17 -3
- package/dist/hero-design-system-3d.cjs +16 -2
- package/dist/hero-design-system-3d.js +17 -3
- package/dist/hero-developer-tools-code.cjs +16 -2
- package/dist/hero-developer-tools-code.js +17 -3
- package/dist/hero-digital-agency-fullscreen.cjs +16 -2
- package/dist/hero-digital-agency-fullscreen.js +17 -3
- package/dist/hero-ecommerce-product-showcase.cjs +17 -3
- package/dist/hero-ecommerce-product-showcase.js +17 -3
- package/dist/hero-enterprise-security.cjs +16 -2
- package/dist/hero-enterprise-security.js +17 -3
- package/dist/hero-event-registration.cjs +16 -2
- package/dist/hero-event-registration.js +17 -3
- package/dist/hero-feature-cards-grid.cjs +16 -2
- package/dist/hero-feature-cards-grid.js +17 -3
- package/dist/hero-floating-images.cjs +16 -2
- package/dist/hero-floating-images.js +17 -3
- package/dist/hero-fullscreen-background-image.cjs +16 -2
- package/dist/hero-fullscreen-background-image.js +17 -3
- package/dist/hero-gradient-avatars-rating.cjs +16 -2
- package/dist/hero-gradient-avatars-rating.js +17 -3
- package/dist/hero-gradient-client-focused.cjs +16 -2
- package/dist/hero-gradient-client-focused.js +17 -3
- package/dist/hero-grid-pattern-solutions.cjs +16 -2
- package/dist/hero-grid-pattern-solutions.js +17 -3
- package/dist/hero-hiring-animated-text.cjs +16 -2
- package/dist/hero-hiring-animated-text.js +17 -3
- package/dist/hero-image-left-content.cjs +16 -2
- package/dist/hero-image-left-content.js +17 -3
- package/dist/hero-image-slider.cjs +16 -2
- package/dist/hero-image-slider.js +17 -3
- package/dist/hero-innovation-image-grid.cjs +16 -2
- package/dist/hero-innovation-image-grid.js +17 -3
- package/dist/hero-mental-health-team.cjs +16 -2
- package/dist/hero-mental-health-team.js +17 -3
- package/dist/hero-minimal-centered-dark.cjs +17 -3
- package/dist/hero-minimal-centered-dark.js +17 -3
- package/dist/hero-overlay-cta-grid.cjs +16 -2
- package/dist/hero-overlay-cta-grid.js +17 -3
- package/dist/hero-presentation-platform-video.cjs +16 -2
- package/dist/hero-presentation-platform-video.js +17 -3
- package/dist/hero-product-showcase-floating.cjs +17 -3
- package/dist/hero-product-showcase-floating.js +17 -3
- package/dist/hero-shared-inbox-layered.cjs +16 -2
- package/dist/hero-shared-inbox-layered.js +17 -3
- package/dist/hero-simple-centered-image.cjs +16 -2
- package/dist/hero-simple-centered-image.js +17 -3
- package/dist/hero-software-growth-video-dialog.cjs +16 -2
- package/dist/hero-software-growth-video-dialog.js +17 -3
- package/dist/hero-spiral-pattern-cards.cjs +17 -3
- package/dist/hero-spiral-pattern-cards.js +17 -3
- package/dist/hero-split-geometric-shapes.cjs +16 -2
- package/dist/hero-split-geometric-shapes.js +17 -3
- package/dist/hero-startup-launch-cta.cjs +17 -3
- package/dist/hero-startup-launch-cta.js +17 -3
- package/dist/hero-stats-social-proof.cjs +17 -3
- package/dist/hero-stats-social-proof.js +17 -3
- package/dist/hero-task-timer-animated.cjs +16 -2
- package/dist/hero-task-timer-animated.js +17 -3
- package/dist/hero-testimonial-image-grid.cjs +16 -2
- package/dist/hero-testimonial-image-grid.js +17 -3
- package/dist/hero-therapy-testimonial-grid.cjs +16 -2
- package/dist/hero-therapy-testimonial-grid.js +17 -3
- package/dist/hero-ui-library-showcase.cjs +16 -2
- package/dist/hero-ui-library-showcase.js +17 -3
- package/dist/hero-video-background-dark.cjs +17 -3
- package/dist/hero-video-background-dark.js +17 -3
- package/dist/hero-video-dialog-gradient.cjs +16 -2
- package/dist/hero-video-dialog-gradient.js +17 -3
- package/dist/hero-video-overlay-stars.cjs +16 -2
- package/dist/hero-video-overlay-stars.js +17 -3
- package/dist/hero-welcome-asymmetric-images.cjs +16 -2
- package/dist/hero-welcome-asymmetric-images.js +17 -3
- package/dist/index.cjs +16 -2
- package/dist/index.js +16 -2
- package/dist/process-sticky-steps.cjs +19 -5
- package/dist/process-sticky-steps.js +20 -6
- package/dist/registry.cjs +20 -6
- package/dist/registry.js +20 -6
- package/dist/social-link-icon.d.cts +1 -1
- package/dist/social-link-icon.d.ts +1 -1
- package/dist/stats-growth-timeline.cjs +16 -2
- package/dist/stats-growth-timeline.js +17 -3
- package/dist/testimonials-grid-add-review.cjs +16 -2
- package/dist/testimonials-grid-add-review.js +17 -3
- package/dist/testimonials-masonry-grid.cjs +16 -2
- package/dist/testimonials-masonry-grid.js +17 -3
- package/dist/testimonials-simple-grid.cjs +16 -2
- package/dist/testimonials-simple-grid.js +17 -3
- package/dist/testimonials-stats-header.cjs +16 -2
- package/dist/testimonials-stats-header.js +17 -3
- package/dist/testimonials-twitter-cards.cjs +16 -2
- package/dist/testimonials-twitter-cards.js +17 -3
- package/dist/testimonials-wall-compact.cjs +16 -2
- package/dist/testimonials-wall-compact.js +17 -3
- package/package.json +2 -2
|
@@ -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,30 @@ 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
|
+
"data-slot": shouldStyleAsButton ? "button" : void 0,
|
|
452
|
+
"data-variant": resolvedVariant,
|
|
453
|
+
"data-size": resolvedSize,
|
|
454
|
+
className: cn(
|
|
455
|
+
shouldStyleAsButton && buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
456
|
+
actionClassName
|
|
457
|
+
),
|
|
444
458
|
...pressableProps,
|
|
445
459
|
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
446
460
|
icon,
|
|
@@ -463,16 +463,30 @@ 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
|
+
"data-slot": shouldStyleAsButton ? "button" : void 0,
|
|
484
|
+
"data-variant": resolvedVariant,
|
|
485
|
+
"data-size": resolvedSize,
|
|
486
|
+
className: cn(
|
|
487
|
+
shouldStyleAsButton && pressable.buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
488
|
+
actionClassName
|
|
489
|
+
),
|
|
476
490
|
...pressableProps,
|
|
477
491
|
children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
478
492
|
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,30 @@ 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
|
+
"data-slot": shouldStyleAsButton ? "button" : void 0,
|
|
459
|
+
"data-variant": resolvedVariant,
|
|
460
|
+
"data-size": resolvedSize,
|
|
461
|
+
className: cn(
|
|
462
|
+
shouldStyleAsButton && buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
463
|
+
actionClassName
|
|
464
|
+
),
|
|
451
465
|
...pressableProps,
|
|
452
466
|
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
453
467
|
icon,
|
|
@@ -622,16 +622,30 @@ function ActionComponent({ action }) {
|
|
|
622
622
|
children,
|
|
623
623
|
href,
|
|
624
624
|
onClick,
|
|
625
|
+
asButton,
|
|
626
|
+
variant,
|
|
627
|
+
size,
|
|
625
628
|
className: actionClassName,
|
|
626
629
|
...pressableProps
|
|
627
630
|
} = action;
|
|
631
|
+
const shouldStyleAsButton = asButton ?? true;
|
|
632
|
+
const resolvedVariant = shouldStyleAsButton ? variant ?? "default" : void 0;
|
|
633
|
+
const resolvedSize = shouldStyleAsButton ? size ?? "default" : void 0;
|
|
628
634
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
629
635
|
pressable.Pressable,
|
|
630
636
|
{
|
|
631
637
|
href,
|
|
632
638
|
onClick,
|
|
633
|
-
asButton:
|
|
634
|
-
|
|
639
|
+
asButton: shouldStyleAsButton,
|
|
640
|
+
variant: resolvedVariant,
|
|
641
|
+
size: resolvedSize,
|
|
642
|
+
"data-slot": shouldStyleAsButton ? "button" : void 0,
|
|
643
|
+
"data-variant": resolvedVariant,
|
|
644
|
+
"data-size": resolvedSize,
|
|
645
|
+
className: cn(
|
|
646
|
+
shouldStyleAsButton && pressable.buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
647
|
+
actionClassName
|
|
648
|
+
),
|
|
635
649
|
...pressableProps,
|
|
636
650
|
children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
637
651
|
icon,
|
|
@@ -9,7 +9,7 @@ import { Img } from '@page-speed/img';
|
|
|
9
9
|
import * as React from 'react';
|
|
10
10
|
import React__default from 'react';
|
|
11
11
|
import useEmblaCarousel from 'embla-carousel-react';
|
|
12
|
-
import { Pressable } from '@page-speed/pressable';
|
|
12
|
+
import { Pressable, buttonVariants } from '@page-speed/pressable';
|
|
13
13
|
|
|
14
14
|
// components/blocks/hero/hero-ai-powered-carousel.tsx
|
|
15
15
|
function cn(...inputs) {
|
|
@@ -597,16 +597,30 @@ function ActionComponent({ action }) {
|
|
|
597
597
|
children,
|
|
598
598
|
href,
|
|
599
599
|
onClick,
|
|
600
|
+
asButton,
|
|
601
|
+
variant,
|
|
602
|
+
size,
|
|
600
603
|
className: actionClassName,
|
|
601
604
|
...pressableProps
|
|
602
605
|
} = action;
|
|
606
|
+
const shouldStyleAsButton = asButton ?? true;
|
|
607
|
+
const resolvedVariant = shouldStyleAsButton ? variant ?? "default" : void 0;
|
|
608
|
+
const resolvedSize = shouldStyleAsButton ? size ?? "default" : void 0;
|
|
603
609
|
return /* @__PURE__ */ jsx(
|
|
604
610
|
Pressable,
|
|
605
611
|
{
|
|
606
612
|
href,
|
|
607
613
|
onClick,
|
|
608
|
-
asButton:
|
|
609
|
-
|
|
614
|
+
asButton: shouldStyleAsButton,
|
|
615
|
+
variant: resolvedVariant,
|
|
616
|
+
size: resolvedSize,
|
|
617
|
+
"data-slot": shouldStyleAsButton ? "button" : void 0,
|
|
618
|
+
"data-variant": resolvedVariant,
|
|
619
|
+
"data-size": resolvedSize,
|
|
620
|
+
className: cn(
|
|
621
|
+
shouldStyleAsButton && buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
622
|
+
actionClassName
|
|
623
|
+
),
|
|
610
624
|
...pressableProps,
|
|
611
625
|
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
612
626
|
icon,
|
|
@@ -470,16 +470,30 @@ 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
|
+
"data-slot": shouldStyleAsButton ? "button" : void 0,
|
|
491
|
+
"data-variant": resolvedVariant,
|
|
492
|
+
"data-size": resolvedSize,
|
|
493
|
+
className: cn(
|
|
494
|
+
shouldStyleAsButton && pressable.buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
495
|
+
actionClassName
|
|
496
|
+
),
|
|
483
497
|
...pressableProps,
|
|
484
498
|
children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
485
499
|
icon,
|
|
@@ -5,7 +5,7 @@ import { Slot } from '@radix-ui/react-slot';
|
|
|
5
5
|
import { cva } from 'class-variance-authority';
|
|
6
6
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import { Pressable } from '@page-speed/pressable';
|
|
8
|
+
import { Pressable, buttonVariants } from '@page-speed/pressable';
|
|
9
9
|
|
|
10
10
|
// lib/utils.ts
|
|
11
11
|
function cn(...inputs) {
|
|
@@ -464,16 +464,30 @@ 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
|
+
"data-slot": shouldStyleAsButton ? "button" : void 0,
|
|
485
|
+
"data-variant": resolvedVariant,
|
|
486
|
+
"data-size": resolvedSize,
|
|
487
|
+
className: cn(
|
|
488
|
+
shouldStyleAsButton && buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
489
|
+
actionClassName
|
|
490
|
+
),
|
|
477
491
|
...pressableProps,
|
|
478
492
|
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
479
493
|
icon,
|
|
@@ -471,16 +471,30 @@ function ActionComponent({ action }) {
|
|
|
471
471
|
children,
|
|
472
472
|
href,
|
|
473
473
|
onClick,
|
|
474
|
+
asButton,
|
|
475
|
+
variant,
|
|
476
|
+
size,
|
|
474
477
|
className: actionClassName,
|
|
475
478
|
...pressableProps
|
|
476
479
|
} = action;
|
|
480
|
+
const shouldStyleAsButton = asButton ?? true;
|
|
481
|
+
const resolvedVariant = shouldStyleAsButton ? variant ?? "default" : void 0;
|
|
482
|
+
const resolvedSize = shouldStyleAsButton ? size ?? "default" : void 0;
|
|
477
483
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
478
484
|
pressable.Pressable,
|
|
479
485
|
{
|
|
480
486
|
href,
|
|
481
487
|
onClick,
|
|
482
|
-
asButton:
|
|
483
|
-
|
|
488
|
+
asButton: shouldStyleAsButton,
|
|
489
|
+
variant: resolvedVariant,
|
|
490
|
+
size: resolvedSize,
|
|
491
|
+
"data-slot": shouldStyleAsButton ? "button" : void 0,
|
|
492
|
+
"data-variant": resolvedVariant,
|
|
493
|
+
"data-size": resolvedSize,
|
|
494
|
+
className: cn(
|
|
495
|
+
shouldStyleAsButton && pressable.buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
496
|
+
actionClassName
|
|
497
|
+
),
|
|
484
498
|
...pressableProps,
|
|
485
499
|
children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
486
500
|
icon,
|
|
@@ -6,7 +6,7 @@ import { cva } from 'class-variance-authority';
|
|
|
6
6
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
7
7
|
import { Img } from '@page-speed/img';
|
|
8
8
|
import React from 'react';
|
|
9
|
-
import { Pressable } from '@page-speed/pressable';
|
|
9
|
+
import { Pressable, buttonVariants } from '@page-speed/pressable';
|
|
10
10
|
|
|
11
11
|
// lib/utils.ts
|
|
12
12
|
function cn(...inputs) {
|
|
@@ -465,16 +465,30 @@ function ActionComponent({ action }) {
|
|
|
465
465
|
children,
|
|
466
466
|
href,
|
|
467
467
|
onClick,
|
|
468
|
+
asButton,
|
|
469
|
+
variant,
|
|
470
|
+
size,
|
|
468
471
|
className: actionClassName,
|
|
469
472
|
...pressableProps
|
|
470
473
|
} = action;
|
|
474
|
+
const shouldStyleAsButton = asButton ?? true;
|
|
475
|
+
const resolvedVariant = shouldStyleAsButton ? variant ?? "default" : void 0;
|
|
476
|
+
const resolvedSize = shouldStyleAsButton ? size ?? "default" : void 0;
|
|
471
477
|
return /* @__PURE__ */ jsx(
|
|
472
478
|
Pressable,
|
|
473
479
|
{
|
|
474
480
|
href,
|
|
475
481
|
onClick,
|
|
476
|
-
asButton:
|
|
477
|
-
|
|
482
|
+
asButton: shouldStyleAsButton,
|
|
483
|
+
variant: resolvedVariant,
|
|
484
|
+
size: resolvedSize,
|
|
485
|
+
"data-slot": shouldStyleAsButton ? "button" : void 0,
|
|
486
|
+
"data-variant": resolvedVariant,
|
|
487
|
+
"data-size": resolvedSize,
|
|
488
|
+
className: cn(
|
|
489
|
+
shouldStyleAsButton && buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
490
|
+
actionClassName
|
|
491
|
+
),
|
|
478
492
|
...pressableProps,
|
|
479
493
|
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
480
494
|
icon,
|
|
@@ -501,16 +501,30 @@ function ActionComponent({ action }) {
|
|
|
501
501
|
children,
|
|
502
502
|
href,
|
|
503
503
|
onClick,
|
|
504
|
+
asButton,
|
|
505
|
+
variant,
|
|
506
|
+
size,
|
|
504
507
|
className: actionClassName,
|
|
505
508
|
...pressableProps
|
|
506
509
|
} = action;
|
|
510
|
+
const shouldStyleAsButton = asButton ?? true;
|
|
511
|
+
const resolvedVariant = shouldStyleAsButton ? variant ?? "default" : void 0;
|
|
512
|
+
const resolvedSize = shouldStyleAsButton ? size ?? "default" : void 0;
|
|
507
513
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
508
514
|
pressable.Pressable,
|
|
509
515
|
{
|
|
510
516
|
href,
|
|
511
517
|
onClick,
|
|
512
|
-
asButton:
|
|
513
|
-
|
|
518
|
+
asButton: shouldStyleAsButton,
|
|
519
|
+
variant: resolvedVariant,
|
|
520
|
+
size: resolvedSize,
|
|
521
|
+
"data-slot": shouldStyleAsButton ? "button" : void 0,
|
|
522
|
+
"data-variant": resolvedVariant,
|
|
523
|
+
"data-size": resolvedSize,
|
|
524
|
+
className: cn(
|
|
525
|
+
shouldStyleAsButton && pressable.buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
526
|
+
actionClassName
|
|
527
|
+
),
|
|
514
528
|
...pressableProps,
|
|
515
529
|
children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
516
530
|
icon,
|
|
@@ -4,7 +4,7 @@ import { twMerge } from 'tailwind-merge';
|
|
|
4
4
|
import { Slot } from '@radix-ui/react-slot';
|
|
5
5
|
import { cva } from 'class-variance-authority';
|
|
6
6
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
7
|
-
import { Pressable } from '@page-speed/pressable';
|
|
7
|
+
import { Pressable, buttonVariants } from '@page-speed/pressable';
|
|
8
8
|
import * as React from 'react';
|
|
9
9
|
import React__default from 'react';
|
|
10
10
|
import { Icon } from '@page-speed/icon';
|
|
@@ -480,16 +480,30 @@ function ActionComponent({ action }) {
|
|
|
480
480
|
children,
|
|
481
481
|
href,
|
|
482
482
|
onClick,
|
|
483
|
+
asButton,
|
|
484
|
+
variant,
|
|
485
|
+
size,
|
|
483
486
|
className: actionClassName,
|
|
484
487
|
...pressableProps
|
|
485
488
|
} = action;
|
|
489
|
+
const shouldStyleAsButton = asButton ?? true;
|
|
490
|
+
const resolvedVariant = shouldStyleAsButton ? variant ?? "default" : void 0;
|
|
491
|
+
const resolvedSize = shouldStyleAsButton ? size ?? "default" : void 0;
|
|
486
492
|
return /* @__PURE__ */ jsx(
|
|
487
493
|
Pressable,
|
|
488
494
|
{
|
|
489
495
|
href,
|
|
490
496
|
onClick,
|
|
491
|
-
asButton:
|
|
492
|
-
|
|
497
|
+
asButton: shouldStyleAsButton,
|
|
498
|
+
variant: resolvedVariant,
|
|
499
|
+
size: resolvedSize,
|
|
500
|
+
"data-slot": shouldStyleAsButton ? "button" : void 0,
|
|
501
|
+
"data-variant": resolvedVariant,
|
|
502
|
+
"data-size": resolvedSize,
|
|
503
|
+
className: cn(
|
|
504
|
+
shouldStyleAsButton && buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
505
|
+
actionClassName
|
|
506
|
+
),
|
|
493
507
|
...pressableProps,
|
|
494
508
|
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
495
509
|
icon,
|
|
@@ -472,16 +472,30 @@ function ActionComponent({ action }) {
|
|
|
472
472
|
children,
|
|
473
473
|
href,
|
|
474
474
|
onClick,
|
|
475
|
+
asButton,
|
|
476
|
+
variant,
|
|
477
|
+
size,
|
|
475
478
|
className: actionClassName,
|
|
476
479
|
...pressableProps
|
|
477
480
|
} = action;
|
|
481
|
+
const shouldStyleAsButton = asButton ?? true;
|
|
482
|
+
const resolvedVariant = shouldStyleAsButton ? variant ?? "default" : void 0;
|
|
483
|
+
const resolvedSize = shouldStyleAsButton ? size ?? "default" : void 0;
|
|
478
484
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
479
485
|
pressable.Pressable,
|
|
480
486
|
{
|
|
481
487
|
href,
|
|
482
488
|
onClick,
|
|
483
|
-
asButton:
|
|
484
|
-
|
|
489
|
+
asButton: shouldStyleAsButton,
|
|
490
|
+
variant: resolvedVariant,
|
|
491
|
+
size: resolvedSize,
|
|
492
|
+
"data-slot": shouldStyleAsButton ? "button" : void 0,
|
|
493
|
+
"data-variant": resolvedVariant,
|
|
494
|
+
"data-size": resolvedSize,
|
|
495
|
+
className: cn(
|
|
496
|
+
shouldStyleAsButton && pressable.buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
497
|
+
actionClassName
|
|
498
|
+
),
|
|
485
499
|
...pressableProps,
|
|
486
500
|
children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
487
501
|
icon,
|
|
@@ -7,7 +7,7 @@ import { Slot } from '@radix-ui/react-slot';
|
|
|
7
7
|
import { cva } from 'class-variance-authority';
|
|
8
8
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
9
9
|
import { Img } from '@page-speed/img';
|
|
10
|
-
import { Pressable } from '@page-speed/pressable';
|
|
10
|
+
import { Pressable, buttonVariants } from '@page-speed/pressable';
|
|
11
11
|
|
|
12
12
|
// components/blocks/hero/hero-business-carousel-dots.tsx
|
|
13
13
|
function cn(...inputs) {
|
|
@@ -466,16 +466,30 @@ 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__ */ jsx(
|
|
473
479
|
Pressable,
|
|
474
480
|
{
|
|
475
481
|
href,
|
|
476
482
|
onClick,
|
|
477
|
-
asButton:
|
|
478
|
-
|
|
483
|
+
asButton: shouldStyleAsButton,
|
|
484
|
+
variant: resolvedVariant,
|
|
485
|
+
size: resolvedSize,
|
|
486
|
+
"data-slot": shouldStyleAsButton ? "button" : void 0,
|
|
487
|
+
"data-variant": resolvedVariant,
|
|
488
|
+
"data-size": resolvedSize,
|
|
489
|
+
className: cn(
|
|
490
|
+
shouldStyleAsButton && buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
491
|
+
actionClassName
|
|
492
|
+
),
|
|
479
493
|
...pressableProps,
|
|
480
494
|
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
481
495
|
icon,
|
|
@@ -462,16 +462,30 @@ 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
|
+
"data-slot": shouldStyleAsButton ? "button" : void 0,
|
|
483
|
+
"data-variant": resolvedVariant,
|
|
484
|
+
"data-size": resolvedSize,
|
|
485
|
+
className: cn(
|
|
486
|
+
shouldStyleAsButton && pressable.buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
487
|
+
actionClassName
|
|
488
|
+
),
|
|
475
489
|
...pressableProps,
|
|
476
490
|
children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
477
491
|
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-business-operations-mosaic.tsx
|
|
11
11
|
function cn(...inputs) {
|
|
@@ -437,16 +437,30 @@ 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
|
+
"data-slot": shouldStyleAsButton ? "button" : void 0,
|
|
458
|
+
"data-variant": resolvedVariant,
|
|
459
|
+
"data-size": resolvedSize,
|
|
460
|
+
className: cn(
|
|
461
|
+
shouldStyleAsButton && buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
462
|
+
actionClassName
|
|
463
|
+
),
|
|
450
464
|
...pressableProps,
|
|
451
465
|
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
452
466
|
icon,
|
|
@@ -470,16 +470,30 @@ 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
|
+
"data-slot": shouldStyleAsButton ? "button" : void 0,
|
|
491
|
+
"data-variant": resolvedVariant,
|
|
492
|
+
"data-size": resolvedSize,
|
|
493
|
+
className: cn(
|
|
494
|
+
shouldStyleAsButton && pressable.buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
495
|
+
actionClassName
|
|
496
|
+
),
|
|
483
497
|
...pressableProps,
|
|
484
498
|
children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
485
499
|
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 { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
7
7
|
import { Slot } from '@radix-ui/react-slot';
|
|
8
8
|
import { cva } from 'class-variance-authority';
|
|
@@ -464,16 +464,30 @@ 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
|
+
"data-slot": shouldStyleAsButton ? "button" : void 0,
|
|
485
|
+
"data-variant": resolvedVariant,
|
|
486
|
+
"data-size": resolvedSize,
|
|
487
|
+
className: cn(
|
|
488
|
+
shouldStyleAsButton && buttonVariants({ variant: resolvedVariant, size: resolvedSize }),
|
|
489
|
+
actionClassName
|
|
490
|
+
),
|
|
477
491
|
...pressableProps,
|
|
478
492
|
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
479
493
|
icon,
|