@appcorp/app-corp-vista 0.2.80 → 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;
|
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;
|