@appcorp/app-corp-vista 0.2.31 → 0.2.34
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.
|
@@ -18,13 +18,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
exports.VistaHeroV13 = void 0;
|
|
19
19
|
var react_1 = __importDefault(require("react"));
|
|
20
20
|
var react_slick_1 = __importDefault(require("react-slick"));
|
|
21
|
+
var vista_button_v1_1 = require("../../molecules/vista-button-v1/vista-button-v1");
|
|
22
|
+
var vista_button_type_1 = require("../../type/vista-button-type");
|
|
21
23
|
// import "slick-carousel/slick/slick.css";
|
|
22
24
|
// import "slick-carousel/slick/slick-theme.css";
|
|
23
25
|
var VistaHeroV13 = function (_a) {
|
|
24
26
|
var items = _a.items;
|
|
25
27
|
var settings = {
|
|
26
28
|
autoplay: true,
|
|
27
|
-
autoplaySpeed:
|
|
29
|
+
autoplaySpeed: 7000,
|
|
28
30
|
cssEase: "linear",
|
|
29
31
|
infinite: true,
|
|
30
32
|
initialSlide: 1,
|
|
@@ -54,11 +56,7 @@ var VistaHeroV13 = function (_a) {
|
|
|
54
56
|
react_1.default.createElement("div", { className: "text-center" },
|
|
55
57
|
react_1.default.createElement("h1", { className: "text-5xl font-semibold tracking-tight text-balance text-white sm:text-7xl" }, item.heading),
|
|
56
58
|
react_1.default.createElement("p", { className: "mt-8 text-lg font-medium text-pretty text-gray-400 sm:text-xl/8" }, item.description),
|
|
57
|
-
react_1.default.createElement("div", { className: "mt-10 flex items-center justify-center gap-x-6" },
|
|
58
|
-
react_1.default.createElement("a", { href: "#", className: "rounded-md bg-primary px-3.5 py-2.5 text-sm font-semibold text-white shadow-xs hover:bg-primary focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary" }, "Get started"),
|
|
59
|
-
react_1.default.createElement("a", { href: "#", className: "text-sm/6 font-semibold text-white" },
|
|
60
|
-
"Learn more ",
|
|
61
|
-
react_1.default.createElement("span", { "aria-hidden": "true" }, "\u2192")))))),
|
|
59
|
+
react_1.default.createElement("div", { className: "mt-10 flex items-center justify-center gap-x-6" }, item.ctas.map(function (cta) { return (react_1.default.createElement(vista_button_v1_1.VistaButtonV1, { handleOnClick: cta.handleOnClick, key: cta.order, label: cta.label, size: vista_button_type_1.VISTA_BUTTON_SIZE.XL, variant: cta.variant })); }))))),
|
|
62
60
|
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)]" },
|
|
63
61
|
react_1.default.createElement("div", { style: {
|
|
64
62
|
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,10 +1,20 @@
|
|
|
1
|
+
import { VISTA_BUTTON_VARIANT } from "./vista-button-type";
|
|
2
|
+
export interface VistaHeroV13CtaItem {
|
|
3
|
+
className?: string;
|
|
4
|
+
enabled: boolean;
|
|
5
|
+
handleOnClick: () => void;
|
|
6
|
+
label: string;
|
|
7
|
+
order: number;
|
|
8
|
+
variant: VISTA_BUTTON_VARIANT;
|
|
9
|
+
}
|
|
1
10
|
export interface VistaHeroV13Item {
|
|
2
|
-
bannerSrc: string;
|
|
3
11
|
bannerAlt: string;
|
|
12
|
+
bannerSrc: string;
|
|
13
|
+
ctas: VistaHeroV13CtaItem[];
|
|
14
|
+
description: string;
|
|
15
|
+
heading: string;
|
|
4
16
|
subTitle?: string;
|
|
5
17
|
subTitleUrl?: string;
|
|
6
|
-
heading: string;
|
|
7
|
-
description: string;
|
|
8
18
|
}
|
|
9
19
|
export interface VistaHeroV13Props {
|
|
10
20
|
items: VistaHeroV13Item[];
|