krl-alfred 2.17.34 → 2.17.36
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,3 +1,3 @@
|
|
|
1
1
|
import { BannerCardProps } from "./props";
|
|
2
|
-
declare const BannerCard: ({ title, img, imgMobile, hasDarkTheme, hasShadow, description, shortDesc, buttonText, onClick, hasRightArrow, customStyle, }: BannerCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const BannerCard: ({ title, img, imgMobile, hasDarkTheme, hasShadow, description, shortDesc, buttonText, onClick, hasRightArrow, customStyle, buttonVariant, }: BannerCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default BannerCard;
|
|
@@ -20,7 +20,7 @@ var BannerCard_styled_1 = require("./BannerCard.styled");
|
|
|
20
20
|
var Button_1 = __importDefault(require("../Button"));
|
|
21
21
|
var Icon_1 = __importDefault(require("../Icon/Icon"));
|
|
22
22
|
var BannerCard = function (_a) {
|
|
23
|
-
var _b = _a.title, title = _b === void 0 ? props_1.BannerDefault.title : _b, _c = _a.img, img = _c === void 0 ? props_1.BannerDefault.img : _c, _d = _a.imgMobile, imgMobile = _d === void 0 ? props_1.BannerDefault.imgMobile : _d, _e = _a.hasDarkTheme, hasDarkTheme = _e === void 0 ? props_1.BannerDefault.hasDarkTheme : _e, _f = _a.hasShadow, hasShadow = _f === void 0 ? props_1.BannerDefault.hasShadow : _f, _g = _a.description, description = _g === void 0 ? props_1.BannerDefault.description : _g, _h = _a.shortDesc, shortDesc = _h === void 0 ? props_1.BannerDefault.shortDesc : _h, _j = _a.buttonText, buttonText = _j === void 0 ? props_1.BannerDefault.buttonText : _j, _k = _a.onClick, onClick = _k === void 0 ? props_1.BannerDefault.onClick : _k, _l = _a.hasRightArrow, hasRightArrow = _l === void 0 ? props_1.BannerDefault.hasRightArrow : _l, _m = _a.customStyle, customStyle = _m === void 0 ? props_1.BannerDefault.customStyle : _m;
|
|
24
|
-
return ((0, jsx_runtime_1.jsxs)(BannerCard_styled_1.BannerCardStyled, __assign({ "$hasDarkTheme": hasDarkTheme, "$hasShadow": hasShadow, "$customStyle": customStyle }, { children: [(0, jsx_runtime_1.jsx)("div", { className: "mobileLink", onClick: onClick }), (0, jsx_runtime_1.jsxs)("div", __assign({ className: "text" }, { children: [title && (0, jsx_runtime_1.jsx)("strong", { className: "title", dangerouslySetInnerHTML: { __html: title } }), description && (0, jsx_runtime_1.jsx)("p", { className: "description", dangerouslySetInnerHTML: { __html: description } }), buttonText && (0, jsx_runtime_1.jsx)(Button_1.default, __assign({ size: "big", variant:
|
|
23
|
+
var _b = _a.title, title = _b === void 0 ? props_1.BannerDefault.title : _b, _c = _a.img, img = _c === void 0 ? props_1.BannerDefault.img : _c, _d = _a.imgMobile, imgMobile = _d === void 0 ? props_1.BannerDefault.imgMobile : _d, _e = _a.hasDarkTheme, hasDarkTheme = _e === void 0 ? props_1.BannerDefault.hasDarkTheme : _e, _f = _a.hasShadow, hasShadow = _f === void 0 ? props_1.BannerDefault.hasShadow : _f, _g = _a.description, description = _g === void 0 ? props_1.BannerDefault.description : _g, _h = _a.shortDesc, shortDesc = _h === void 0 ? props_1.BannerDefault.shortDesc : _h, _j = _a.buttonText, buttonText = _j === void 0 ? props_1.BannerDefault.buttonText : _j, _k = _a.onClick, onClick = _k === void 0 ? props_1.BannerDefault.onClick : _k, _l = _a.hasRightArrow, hasRightArrow = _l === void 0 ? props_1.BannerDefault.hasRightArrow : _l, _m = _a.customStyle, customStyle = _m === void 0 ? props_1.BannerDefault.customStyle : _m, _o = _a.buttonVariant, buttonVariant = _o === void 0 ? props_1.BannerDefault.buttonVariant : _o;
|
|
24
|
+
return ((0, jsx_runtime_1.jsxs)(BannerCard_styled_1.BannerCardStyled, __assign({ "$hasDarkTheme": hasDarkTheme, "$hasShadow": hasShadow, "$customStyle": customStyle }, { children: [(0, jsx_runtime_1.jsx)("div", { className: "mobileLink", onClick: onClick }), (0, jsx_runtime_1.jsxs)("div", __assign({ className: "text" }, { children: [title && (0, jsx_runtime_1.jsx)("strong", { className: "title", dangerouslySetInnerHTML: { __html: title } }), description && (0, jsx_runtime_1.jsx)("p", { className: "description", dangerouslySetInnerHTML: { __html: description } }), buttonText && (0, jsx_runtime_1.jsx)(Button_1.default, __assign({ size: "big", variant: buttonVariant, onClick: onClick }, { children: buttonText }))] })), (0, jsx_runtime_1.jsx)("div", __assign({ className: "img" }, { children: img })), imgMobile && (0, jsx_runtime_1.jsx)("div", __assign({ className: "img imgMobile" }, { children: imgMobile })), (0, jsx_runtime_1.jsxs)("div", __assign({ className: "textMobile", onClick: onClick }, { children: [(0, jsx_runtime_1.jsx)("div", { className: "titleSm", dangerouslySetInnerHTML: { __html: shortDesc } }), hasRightArrow && (0, jsx_runtime_1.jsx)(Icon_1.default, { name: "ArrowRightBig" })] }))] })));
|
|
25
25
|
};
|
|
26
26
|
exports.default = BannerCard;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { variants } from "../Button/props";
|
|
3
|
+
type BUTTON_VARIANT = typeof variants[number];
|
|
2
4
|
export interface BannerCard {
|
|
3
5
|
img?: React.ReactNode;
|
|
4
6
|
imgMobile?: React.ReactNode;
|
|
@@ -11,6 +13,7 @@ export interface BannerCard {
|
|
|
11
13
|
customStyle?: string;
|
|
12
14
|
onClick?: () => void;
|
|
13
15
|
hasRightArrow?: boolean;
|
|
16
|
+
buttonVariant?: BUTTON_VARIANT;
|
|
14
17
|
}
|
|
15
18
|
export interface BannerCardStyledProps {
|
|
16
19
|
$hasDarkTheme?: boolean;
|
|
@@ -19,3 +22,4 @@ export interface BannerCardStyledProps {
|
|
|
19
22
|
}
|
|
20
23
|
export declare const BannerDefault: BannerCard;
|
|
21
24
|
export type BannerCardProps = typeof BannerDefault;
|
|
25
|
+
export {};
|
|
@@ -36,5 +36,5 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
38
38
|
var React = __importStar(require("react"));
|
|
39
|
-
var SvgRectangle = function (props) { return ((0, jsx_runtime_1.jsxs)("svg", __assign({ width: 90, height: 90, viewBox: "0 0 90 90", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props, { children: [(0, jsx_runtime_1.jsx)("path", { id: "Rectangle 8", d: "M5.21017e-05 62.2132C7.71369e-05 58.235 1.58042 54.4197 4.39344 51.6067L52.5829 3.41714C54.7708 1.22916 57.7384 -3.13031e-05 60.8326 -3.55178e-05L82 -5.45681e-05C86.4183 -5.59168e-05 90 3.58166 90 7.99994L83 7.99994L7.99997 82.9999V89.9999C3.58164 89.9999 -0.000102999 86.4181 -7.50132e-05 81.9998L5.21017e-05 62.2132Z", fill: "url(#paint0_linear_17925_27746)" }), (0, jsx_runtime_1.jsx)("defs", { children: (0, jsx_runtime_1.jsxs)("linearGradient", __assign({ id: "paint0_linear_17925_27746", x1: 93.9999, y1: 3.99994, x2: 73, y2: -17, gradientUnits: "userSpaceOnUse" }, { children: [(0, jsx_runtime_1.jsx)("stop", { stopColor: "#
|
|
39
|
+
var SvgRectangle = function (props) { return ((0, jsx_runtime_1.jsxs)("svg", __assign({ width: 90, height: 90, viewBox: "0 0 90 90", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props, { children: [(0, jsx_runtime_1.jsx)("path", { id: "Rectangle 8", d: "M5.21017e-05 62.2132C7.71369e-05 58.235 1.58042 54.4197 4.39344 51.6067L52.5829 3.41714C54.7708 1.22916 57.7384 -3.13031e-05 60.8326 -3.55178e-05L82 -5.45681e-05C86.4183 -5.59168e-05 90 3.58166 90 7.99994L83 7.99994L7.99997 82.9999V89.9999C3.58164 89.9999 -0.000102999 86.4181 -7.50132e-05 81.9998L5.21017e-05 62.2132Z", fill: "url(#paint0_linear_17925_27746)" }), (0, jsx_runtime_1.jsx)("defs", { children: (0, jsx_runtime_1.jsxs)("linearGradient", __assign({ id: "paint0_linear_17925_27746", x1: 93.9999, y1: 3.99994, x2: 73, y2: -17, gradientUnits: "userSpaceOnUse" }, { children: [(0, jsx_runtime_1.jsx)("stop", { stopColor: "#411590" }), (0, jsx_runtime_1.jsx)("stop", { offset: 1, stopColor: "#9760FC" })] })) })] }))); };
|
|
40
40
|
exports.default = SvgRectangle;
|