@appcorp/app-corp-vista 0.2.79 → 0.2.81
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.
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { VistaFeatureV1Props } from '../../type/vista-feature-type';
|
|
3
|
+
export declare const VistaFeatureV1: FC<VistaFeatureV1Props>;
|
|
@@ -5,39 +5,28 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.VistaFeatureV1 = void 0;
|
|
7
7
|
var react_1 = __importDefault(require("react"));
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
name: 'Push to deploy.',
|
|
12
|
-
description: 'Lorem ipsum, dolor sit amet consectetur adipisicing elit. Maiores impedit perferendis suscipit eaque, iste dolor cupiditate blanditiis ratione.',
|
|
13
|
-
icon: solid_1.CloudArrowUpIcon,
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
name: 'SSL certificates.',
|
|
17
|
-
description: 'Anim aute id magna aliqua ad ad non deserunt sunt. Qui irure qui lorem cupidatat commodo.',
|
|
18
|
-
icon: solid_1.LockClosedIcon,
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
name: 'Database backups.',
|
|
22
|
-
description: 'Ac tincidunt sapien vehicula erat auctor pellentesque rhoncus. Et magna sit morbi lobortis.',
|
|
23
|
-
icon: solid_1.ServerIcon,
|
|
24
|
-
},
|
|
25
|
-
];
|
|
26
|
-
var VistaFeatureV1 = function () {
|
|
8
|
+
var image_1 = __importDefault(require("next/image"));
|
|
9
|
+
var VistaFeatureV1 = function (_a) {
|
|
10
|
+
var description = _a.description, imageAlt = _a.imageAlt, imageSrc = _a.imageSrc, items = _a.items, _b = _a.revert, revert = _b === void 0 ? false : _b, subTitle = _a.subTitle, title = _a.title;
|
|
27
11
|
return (react_1.default.createElement("div", { className: "overflow-hidden bg-gray-900 py-24 sm:py-32" },
|
|
28
12
|
react_1.default.createElement("div", { className: "mx-auto max-w-7xl px-6 lg:px-8" },
|
|
29
13
|
react_1.default.createElement("div", { className: "mx-auto grid max-w-2xl grid-cols-1 gap-x-8 gap-y-16 sm:gap-y-20 lg:mx-0 lg:max-w-none lg:grid-cols-2" },
|
|
30
|
-
react_1.default.createElement("div", { className: "lg:pt-4 lg:pr-8" },
|
|
14
|
+
react_1.default.createElement("div", { className: "lg:pt-4 lg:pr-8 w-full ".concat(revert ? 'order-2' : 'order-1') },
|
|
31
15
|
react_1.default.createElement("div", { className: "lg:max-w-lg" },
|
|
32
|
-
react_1.default.createElement("h2", { className: "text-base/7 font-semibold text-
|
|
33
|
-
react_1.default.createElement("p", { className: "mt-2 text-4xl font-semibold tracking-tight text-pretty text-white sm:text-5xl" },
|
|
34
|
-
react_1.default.createElement("p", { className: "mt-6 text-lg/8 text-gray-300" },
|
|
35
|
-
react_1.default.createElement("dl", { className: "mt-10 max-w-xl space-y-8 text-base/7 text-gray-400 lg:max-w-none" },
|
|
16
|
+
react_1.default.createElement("h2", { className: "text-base/7 font-semibold text-primary" }, subTitle),
|
|
17
|
+
react_1.default.createElement("p", { className: "mt-2 text-4xl font-semibold tracking-tight text-pretty text-white sm:text-5xl" }, title),
|
|
18
|
+
react_1.default.createElement("p", { className: "mt-6 text-lg/8 text-gray-300" }, description),
|
|
19
|
+
react_1.default.createElement("dl", { className: "mt-10 max-w-xl space-y-8 text-base/7 text-gray-400 lg:max-w-none" }, items
|
|
20
|
+
.filter(function (_a) {
|
|
21
|
+
var enabled = _a.enabled;
|
|
22
|
+
return enabled;
|
|
23
|
+
})
|
|
24
|
+
.map(function (item) { return (react_1.default.createElement("div", { key: item.name, className: "relative pl-9" },
|
|
36
25
|
react_1.default.createElement("dt", { className: "inline font-semibold text-white" },
|
|
37
|
-
react_1.default.createElement(
|
|
38
|
-
|
|
26
|
+
react_1.default.createElement(item.icon, { "aria-hidden": "true", className: "absolute top-1 left-1 size-5 text-primary" }),
|
|
27
|
+
item.name),
|
|
39
28
|
' ',
|
|
40
|
-
react_1.default.createElement("dd", { className: "inline" },
|
|
41
|
-
react_1.default.createElement(
|
|
29
|
+
react_1.default.createElement("dd", { className: "inline" }, item.description))); })))),
|
|
30
|
+
react_1.default.createElement(image_1.default, { alt: imageAlt, className: "w-3xl max-w-none rounded-xl shadow-xl ring-1 ring-gray-400/10 sm:w-228 md:-ml-4 lg:-ml-0 ".concat(revert ? 'order-1 lg:-ml-80' : 'order-2'), height: 1442, src: imageSrc, width: 232 })))));
|
|
42
31
|
};
|
|
43
32
|
exports.VistaFeatureV1 = VistaFeatureV1;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
'use client';
|
|
2
1
|
"use strict";
|
|
3
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -6,32 +5,34 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
6
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
6
|
exports.VistaHeroV5 = void 0;
|
|
8
7
|
var react_1 = __importDefault(require("react"));
|
|
9
|
-
var
|
|
8
|
+
var vista_button_v1_1 = require("../../molecules/vista-button-v1/vista-button-v1");
|
|
9
|
+
var vista_button_type_1 = require("../../type/vista-button-type");
|
|
10
|
+
var VistaHeroV5 = function (_a) {
|
|
11
|
+
var bannerAlt = _a.bannerAlt, bannerSrc = _a.bannerSrc, ctas = _a.ctas, description = _a.description, subTitle = _a.subTitle, subTitleCta = _a.subTitleCta, title = _a.title;
|
|
10
12
|
return (react_1.default.createElement("div", { className: "bg-gray-900" },
|
|
11
13
|
react_1.default.createElement("div", { className: "relative isolate overflow-hidden pt-14" },
|
|
12
|
-
react_1.default.createElement("img", { alt:
|
|
14
|
+
react_1.default.createElement("img", { alt: bannerAlt, src: bannerSrc, className: "absolute inset-0 -z-10 size-full object-cover" }),
|
|
13
15
|
react_1.default.createElement("div", { "aria-hidden": "true", className: "absolute inset-x-0 -top-40 -z-10 transform-gpu overflow-hidden blur-3xl sm:-top-80" },
|
|
14
16
|
react_1.default.createElement("div", { style: {
|
|
15
17
|
clipPath: 'polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)',
|
|
16
18
|
}, className: "relative left-[calc(50%-11rem)] aspect-1155/678 w-144.5 -translate-x-1/2 rotate-30 bg-linear-to-tr from-[#ff80b5] to-[#9089fc] opacity-20 sm:left-[calc(50%-30rem)] sm:w-288.75" })),
|
|
17
19
|
react_1.default.createElement("div", { className: "mx-auto max-w-7xl px-6 lg:px-8" },
|
|
18
20
|
react_1.default.createElement("div", { className: "mx-auto max-w-2xl py-32 sm:py-48 lg:py-56" },
|
|
19
|
-
react_1.default.createElement("div", { className: "hidden sm:mb-8 sm:flex sm:justify-center" },
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
react_1.default.createElement("
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
react_1.default.createElement("div", { className: "hidden sm:mb-8 sm:flex sm:justify-center" }, subTitle && subTitleCta && (react_1.default.createElement("div", { className: "relative rounded-full px-3 py-1 text-sm/6 text-gray-400 ring-1 ring-white/10 hover:ring-white/20" },
|
|
22
|
+
subTitle,
|
|
23
|
+
' ',
|
|
24
|
+
react_1.default.createElement("a", { href: "#", className: "font-semibold text-primary" },
|
|
25
|
+
react_1.default.createElement("span", { "aria-hidden": "true", className: "absolute inset-0" }),
|
|
26
|
+
subTitleCta,
|
|
27
|
+
" ",
|
|
28
|
+
react_1.default.createElement("span", { "aria-hidden": "true" }, "\u2192"))))),
|
|
27
29
|
react_1.default.createElement("div", { className: "text-center" },
|
|
28
|
-
react_1.default.createElement("h1", { className: "text-5xl font-semibold tracking-tight text-balance text-white sm:text-7xl" },
|
|
29
|
-
react_1.default.createElement("p", { className: "mt-8 text-lg font-medium text-pretty text-gray-400 sm:text-xl/8" },
|
|
30
|
-
react_1.default.createElement("div", { className: "mt-10 flex items-center justify-center gap-x-6" },
|
|
31
|
-
|
|
32
|
-
react_1.default.createElement(
|
|
33
|
-
|
|
34
|
-
react_1.default.createElement("span", { "aria-hidden": "true" }, "\u2192")))))),
|
|
30
|
+
react_1.default.createElement("h1", { className: "text-5xl font-semibold tracking-tight text-balance text-white sm:text-7xl" }, title),
|
|
31
|
+
react_1.default.createElement("p", { className: "mt-8 text-lg font-medium text-pretty text-gray-400 sm:text-xl/8" }, description),
|
|
32
|
+
react_1.default.createElement("div", { className: "mt-10 flex items-center justify-center gap-x-6" }, ctas.map(function (_a) {
|
|
33
|
+
var handleOnClick = _a.handleOnClick, label = _a.label, variant = _a.variant;
|
|
34
|
+
return (react_1.default.createElement(vista_button_v1_1.VistaButtonV1, { key: label, handleOnClick: handleOnClick, label: label, variant: variant, size: vista_button_type_1.VISTA_BUTTON_SIZE.LG }));
|
|
35
|
+
}))))),
|
|
35
36
|
react_1.default.createElement("div", { "aria-hidden": "true", className: "absolute inset-x-0 top-[calc(100%-13rem)] -z-10 transform-gpu overflow-hidden blur-3xl sm:top-[calc(100%-30rem)]" },
|
|
36
37
|
react_1.default.createElement("div", { style: {
|
|
37
38
|
clipPath: 'polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)',
|
package/package.json
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
import { ForwardRefExoticComponent, SVGProps } from "react";
|
|
2
|
+
export interface VistaFeatureV1Item {
|
|
3
|
+
description: string;
|
|
4
|
+
enabled: boolean;
|
|
5
|
+
icon: ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref">>;
|
|
6
|
+
name: string;
|
|
7
|
+
order: number;
|
|
8
|
+
}
|
|
2
9
|
export interface VistaFeatureV1Props {
|
|
3
|
-
|
|
10
|
+
description: string;
|
|
11
|
+
imageAlt: string;
|
|
12
|
+
imageSrc: string;
|
|
13
|
+
items: VistaFeatureV1Item[];
|
|
14
|
+
revert?: boolean;
|
|
15
|
+
subTitle: string;
|
|
16
|
+
title: string;
|
|
4
17
|
}
|
|
5
18
|
export interface VistaFeatureV2Item {
|
|
6
19
|
name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VISTA_BUTTON_VARIANT } from "./vista-button-type";
|
|
1
|
+
import { VISTA_BUTTON_VARIANT, VistaButtonV1Props } from "./vista-button-type";
|
|
2
2
|
export interface VistaHeroV13CtaItem {
|
|
3
3
|
className?: string;
|
|
4
4
|
enabled: boolean;
|
|
@@ -17,6 +17,13 @@ export interface VistaHeroV13Item {
|
|
|
17
17
|
subTitleUrl?: string;
|
|
18
18
|
}
|
|
19
19
|
export interface VistaHeroV5Props {
|
|
20
|
+
bannerAlt: string;
|
|
21
|
+
bannerSrc: string;
|
|
22
|
+
ctas: VistaButtonV1Props[];
|
|
23
|
+
description: string;
|
|
24
|
+
subTitle?: string;
|
|
25
|
+
subTitleCta?: string;
|
|
26
|
+
title: string;
|
|
20
27
|
}
|
|
21
28
|
export interface VistaHeroV13Props {
|
|
22
29
|
containerClassName?: string;
|