alicia-design-system 1.47.2 → 1.48.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.
Files changed (57) hide show
  1. package/dist/cjs/alicia/common/Card/Card.d.ts +57 -0
  2. package/dist/cjs/alicia/common/Card/Card.js +35 -0
  3. package/dist/cjs/alicia/common/Card/Card.js.map +1 -0
  4. package/dist/cjs/alicia/common/Card/Card.spec.d.ts +1 -0
  5. package/dist/cjs/alicia/common/Card/Card.spec.js +45 -0
  6. package/dist/cjs/alicia/common/Card/Card.spec.js.map +1 -0
  7. package/dist/cjs/alicia/common/Card/Card.stories.d.ts +381 -0
  8. package/dist/cjs/alicia/common/Card/Card.stories.js +182 -0
  9. package/dist/cjs/alicia/common/Card/Card.stories.js.map +1 -0
  10. package/dist/cjs/alicia/common/Card/index.d.ts +1 -0
  11. package/dist/cjs/alicia/common/Card/index.js +6 -0
  12. package/dist/cjs/alicia/common/Card/index.js.map +1 -0
  13. package/dist/cjs/alicia/common/Rating/Rating.js +1 -1
  14. package/dist/cjs/alicia/common/Rating/Rating.js.map +1 -1
  15. package/dist/cjs/alicia/common/TextBox/TextBox.js +5 -1
  16. package/dist/cjs/alicia/common/TextBox/TextBox.js.map +1 -1
  17. package/dist/cjs/alicia/common/icons/ShieldIcon.d.ts +1 -0
  18. package/dist/cjs/alicia/common/icons/ShieldIcon.js +11 -0
  19. package/dist/cjs/alicia/common/icons/ShieldIcon.js.map +1 -0
  20. package/dist/cjs/alicia/common/icons/TagCheckIcon.d.ts +3 -0
  21. package/dist/cjs/alicia/common/icons/TagCheckIcon.js +12 -0
  22. package/dist/cjs/alicia/common/icons/TagCheckIcon.js.map +1 -0
  23. package/dist/cjs/alicia/common/icons/index.d.ts +1 -0
  24. package/dist/cjs/alicia/common/icons/index.js +1 -0
  25. package/dist/cjs/alicia/common/icons/index.js.map +1 -1
  26. package/dist/cjs/index.d.ts +1 -0
  27. package/dist/cjs/index.js +1 -0
  28. package/dist/cjs/index.js.map +1 -1
  29. package/dist/esm/alicia/common/Card/Card.d.ts +57 -0
  30. package/dist/esm/alicia/common/Card/Card.js +31 -0
  31. package/dist/esm/alicia/common/Card/Card.js.map +1 -0
  32. package/dist/esm/alicia/common/Card/Card.spec.d.ts +1 -0
  33. package/dist/esm/alicia/common/Card/Card.spec.js +40 -0
  34. package/dist/esm/alicia/common/Card/Card.spec.js.map +1 -0
  35. package/dist/esm/alicia/common/Card/Card.stories.d.ts +381 -0
  36. package/dist/esm/alicia/common/Card/Card.stories.js +179 -0
  37. package/dist/esm/alicia/common/Card/Card.stories.js.map +1 -0
  38. package/dist/esm/alicia/common/Card/index.d.ts +1 -0
  39. package/dist/esm/alicia/common/Card/index.js +2 -0
  40. package/dist/esm/alicia/common/Card/index.js.map +1 -0
  41. package/dist/esm/alicia/common/Rating/Rating.js +1 -1
  42. package/dist/esm/alicia/common/Rating/Rating.js.map +1 -1
  43. package/dist/esm/alicia/common/TextBox/TextBox.js +5 -1
  44. package/dist/esm/alicia/common/TextBox/TextBox.js.map +1 -1
  45. package/dist/esm/alicia/common/icons/ShieldIcon.d.ts +1 -0
  46. package/dist/esm/alicia/common/icons/ShieldIcon.js +8 -0
  47. package/dist/esm/alicia/common/icons/ShieldIcon.js.map +1 -0
  48. package/dist/esm/alicia/common/icons/TagCheckIcon.d.ts +3 -0
  49. package/dist/esm/alicia/common/icons/TagCheckIcon.js +8 -0
  50. package/dist/esm/alicia/common/icons/TagCheckIcon.js.map +1 -0
  51. package/dist/esm/alicia/common/icons/index.d.ts +1 -0
  52. package/dist/esm/alicia/common/icons/index.js +1 -0
  53. package/dist/esm/alicia/common/icons/index.js.map +1 -1
  54. package/dist/esm/index.d.ts +1 -0
  55. package/dist/esm/index.js +1 -0
  56. package/dist/esm/index.js.map +1 -1
  57. package/package.json +1 -1
@@ -0,0 +1,57 @@
1
+ import { ComponentWithAs, IconProps, ButtonProps } from '@chakra-ui/react';
2
+ import { FC, ReactElement } from "react";
3
+ export declare const Card: FC<CardProps>;
4
+ type CheckListProps = {
5
+ id: number;
6
+ label: string;
7
+ icon?: ReactElement;
8
+ };
9
+ type AddonsListProps = {
10
+ id: number;
11
+ addonText: string;
12
+ addonPrice: string;
13
+ icon?: ReactElement;
14
+ };
15
+ type CustomButtonProps = ButtonProps & {
16
+ text?: string;
17
+ iconPosition?: 'left' | 'right';
18
+ icon?: ComponentWithAs<"svg", IconProps>;
19
+ };
20
+ type CardProps = {
21
+ fontFamily?: string;
22
+ showIcon?: boolean;
23
+ icon?: ReactElement;
24
+ tag?: boolean;
25
+ tagText?: string;
26
+ tagBackgroundColor?: string;
27
+ tagColor?: string;
28
+ title?: string;
29
+ showPartnerLogoWithTitle?: boolean;
30
+ partnerLogoSrc?: string;
31
+ showPriceWithTitle?: boolean;
32
+ showPriceWithReadMore?: boolean;
33
+ price?: string;
34
+ perMonthText?: string;
35
+ customPriceTag?: ReactElement;
36
+ description?: string;
37
+ showCheckList?: boolean;
38
+ checkList?: CheckListProps[];
39
+ showAddonsList?: boolean;
40
+ addonsList?: AddonsListProps[];
41
+ fromText?: string;
42
+ offeredByText?: string;
43
+ showReadMore?: boolean;
44
+ readMoreText?: string;
45
+ readMoreAction?: () => void;
46
+ hyperlinkColor?: string;
47
+ tagIcon?: ComponentWithAs<"svg", IconProps>;
48
+ listIcon?: ComponentWithAs<"svg", IconProps>;
49
+ showCTA?: boolean;
50
+ showPrimaryCTA?: boolean;
51
+ primaryCTAOnClick?: () => void;
52
+ primaryCTA?: CustomButtonProps;
53
+ showSecondaryCTA?: boolean;
54
+ secondaryCTA?: CustomButtonProps;
55
+ showPriceWithCTA?: boolean;
56
+ };
57
+ export {};
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Card = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("@chakra-ui/react");
6
+ const polished_1 = require("polished");
7
+ const TagCheckIcon_1 = require("../icons/TagCheckIcon");
8
+ const Card = ({ fontFamily = "Untitled Sans", showIcon = false, icon = undefined, tag = false, tagText = "RECOMMENDED", tagBackgroundColor = "#006A701A", tagColor = "#006A70", title = undefined, showPriceWithTitle = false, showPriceWithReadMore = false, price = undefined, perMonthText = undefined, customPriceTag = undefined, showPartnerLogoWithTitle = false, partnerLogoSrc = undefined, description = undefined, showCheckList = false, checkList = undefined, showAddonsList = false, addonsList = undefined, fromText = "From", offeredByText = "Offered by", showReadMore = false, readMoreText = "Read More", readMoreAction = undefined, hyperlinkColor = "#006A70", tagIcon = (0, TagCheckIcon_1.TagCheckIcon)({}), listIcon = (0, TagCheckIcon_1.TagCheckIcon)({ color: 'black' }), showCTA = false, showPrimaryCTA = false, primaryCTA = undefined, showSecondaryCTA = false, secondaryCTA = undefined, showPriceWithCTA = false, }) => {
9
+ return ((0, jsx_runtime_1.jsxs)(react_1.Flex, Object.assign({ direction: "column", sx: {
10
+ border: `${(0, polished_1.rem)(1)} solid rgba(0, 0, 0, 0.2)`,
11
+ padding: (0, polished_1.rem)(24),
12
+ 'a': {
13
+ color: hyperlinkColor
14
+ }
15
+ }, fontFamily: fontFamily }, { children: [showIcon && icon && (0, jsx_runtime_1.jsx)(react_1.Box, Object.assign({ mb: (0, polished_1.rem)(16) }, { children: icon })), tag && (tagText !== "") && (0, jsx_runtime_1.jsx)(react_1.Box, Object.assign({ mb: (0, polished_1.rem)(16) }, { children: (0, jsx_runtime_1.jsxs)(react_1.Tag, Object.assign({ size: "sm", variant: 'subtle', bg: tagBackgroundColor }, { children: [(0, jsx_runtime_1.jsx)(react_1.TagLeftIcon, { boxSize: '12px', as: tagIcon, color: tagColor }), (0, jsx_runtime_1.jsx)(react_1.TagLabel, Object.assign({ color: tagColor, fontSize: 10, fontWeight: 500 }, { children: tagText }))] })) })), (title !== null && title !== void 0 ? title : showPriceWithTitle) && ((0, jsx_runtime_1.jsxs)(react_1.Flex, Object.assign({ justifyContent: "space-between", mb: (0, polished_1.rem)(8) }, { children: [title && (0, jsx_runtime_1.jsx)(react_1.Text, Object.assign({ fontSize: (0, polished_1.rem)(20), lineHeight: (0, polished_1.rem)(24), fontWeight: 500 }, { children: title })), showPriceWithTitle && (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: customPriceTag !== null && customPriceTag !== void 0 ? customPriceTag : (price && perMonthText && (0, jsx_runtime_1.jsxs)(react_1.Text, Object.assign({ fontSize: (0, polished_1.rem)(14), lineHeight: (0, polished_1.rem)(24), fontWeight: 400 }, { children: [fromText, " ", (0, jsx_runtime_1.jsx)("b", Object.assign({ style: { fontSize: (0, polished_1.rem)(16), fontWeight: 500 } }, { children: price })), " ", perMonthText] }))) }), showPartnerLogoWithTitle &&
16
+ (0, jsx_runtime_1.jsxs)(react_1.Flex, Object.assign({ direction: "row" }, { children: [(0, jsx_runtime_1.jsx)(react_1.Text, Object.assign({ fontSize: (0, polished_1.rem)(14), lineHeight: (0, polished_1.rem)(24), fontWeight: 400, display: "inline", mr: (0, polished_1.rem)(4) }, { children: offeredByText })), (0, jsx_runtime_1.jsx)(react_1.Image, { src: partnerLogoSrc, w: (0, polished_1.rem)(55), h: (0, polished_1.rem)(18), alt: "partner-logo", objectFit: "contain" })] }))] }))), description && (0, jsx_runtime_1.jsx)(react_1.Text, { fontSize: (0, polished_1.rem)(16), lineHeight: (0, polished_1.rem)(24), mb: (0, polished_1.rem)(showCheckList ? 8 : 0), dangerouslySetInnerHTML: {
17
+ __html: description
18
+ } }), showCheckList && Boolean(checkList === null || checkList === void 0 ? void 0 : checkList.length) && (0, jsx_runtime_1.jsx)(react_1.Flex, Object.assign({ direction: "column" }, { children: checkList === null || checkList === void 0 ? void 0 : checkList.map((list, index) => {
19
+ var _a;
20
+ return ((0, jsx_runtime_1.jsxs)(react_1.Flex, Object.assign({ mt: (0, polished_1.rem)((index === 0) ? 18 : 12), direction: "row", fontSize: (0, polished_1.rem)(14), fontWeight: 400, lineHeight: (0, polished_1.rem)(20) }, { children: [(0, jsx_runtime_1.jsx)(react_1.Box, Object.assign({ mr: (0, polished_1.rem)(8) }, { children: (_a = list.icon) !== null && _a !== void 0 ? _a : (0, jsx_runtime_1.jsx)(react_1.Icon, { as: listIcon, w: (0, polished_1.rem)(14), height: (0, polished_1.rem)(10) }) })), (0, jsx_runtime_1.jsx)(react_1.Text, { dangerouslySetInnerHTML: {
21
+ __html: list.label
22
+ } })] }), list.id));
23
+ }) })), (showCheckList && showAddonsList) && ((0, jsx_runtime_1.jsx)(react_1.Divider, { mt: (0, polished_1.rem)(18), mb: (0, polished_1.rem)(16) })), showAddonsList && Boolean(addonsList === null || addonsList === void 0 ? void 0 : addonsList.length) && (0, jsx_runtime_1.jsx)(react_1.Flex, Object.assign({ direction: "column" }, { children: addonsList === null || addonsList === void 0 ? void 0 : addonsList.map((list, index) => {
24
+ var _a;
25
+ return ((0, jsx_runtime_1.jsxs)(react_1.Flex, Object.assign({ mt: (0, polished_1.rem)((showCheckList && showAddonsList && index === 0) ? 0 : (index === 0) ? 18 : 12), direction: "row", width: "100%", alignItems: "center" }, { children: [(0, jsx_runtime_1.jsx)(react_1.Box, Object.assign({ mr: (0, polished_1.rem)(8) }, { children: (_a = list.icon) !== null && _a !== void 0 ? _a : (0, jsx_runtime_1.jsx)(react_1.Icon, { as: listIcon, w: (0, polished_1.rem)(14), height: (0, polished_1.rem)(10) }) })), (0, jsx_runtime_1.jsxs)(react_1.Flex, Object.assign({ justifyContent: "space-between", direction: "row", width: "inherit", fontSize: (0, polished_1.rem)(14), fontWeight: 400, lineHeight: (0, polished_1.rem)(20) }, { children: [(0, jsx_runtime_1.jsx)(react_1.Text, { dangerouslySetInnerHTML: {
26
+ __html: list.addonText
27
+ } }), (0, jsx_runtime_1.jsx)(react_1.Text, { dangerouslySetInnerHTML: {
28
+ __html: list.addonPrice
29
+ } })] }))] }), list.id));
30
+ }) })), (showReadMore || showPriceWithReadMore) && ((0, jsx_runtime_1.jsxs)(react_1.Flex, Object.assign({ justifyContent: "space-between", w: !showReadMore && showPriceWithReadMore ? "100%" : undefined, mt: (0, polished_1.rem)(14) }, { children: [showReadMore && (0, jsx_runtime_1.jsx)(react_1.Link, Object.assign({ fontSize: (0, polished_1.rem)(16), lineHeight: (0, polished_1.rem)(24), fontWeight: 500, "data-testid": "read-more", onClick: readMoreAction }, { children: readMoreText })), showPriceWithReadMore && (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: customPriceTag !== null && customPriceTag !== void 0 ? customPriceTag : (price && perMonthText && (0, jsx_runtime_1.jsxs)(react_1.Text, Object.assign({ fontSize: (0, polished_1.rem)(14), lineHeight: (0, polished_1.rem)(24), fontWeight: 400, textAlign: "right", width: "inherit" }, { children: [fromText, " ", (0, jsx_runtime_1.jsx)("b", Object.assign({ style: { fontSize: (0, polished_1.rem)(16), fontWeight: 500 } }, { children: price })), " ", perMonthText] }))) })] }))), (showCTA) && ((0, jsx_runtime_1.jsxs)(react_1.Flex, Object.assign({ mt: (0, polished_1.rem)(22), direction: "row", gap: 2, alignItems: "center", w: showPriceWithCTA ? "100%" : undefined }, { children: [showPrimaryCTA &&
31
+ (0, jsx_runtime_1.jsx)(react_1.Flex, { children: (0, jsx_runtime_1.jsx)(react_1.Button, Object.assign({ "data-testid": "primary-action", onClick: primaryCTA === null || primaryCTA === void 0 ? void 0 : primaryCTA.onClick, isDisabled: primaryCTA === null || primaryCTA === void 0 ? void 0 : primaryCTA.isDisabled, isLoading: primaryCTA === null || primaryCTA === void 0 ? void 0 : primaryCTA.isLoading, rightIcon: ((primaryCTA === null || primaryCTA === void 0 ? void 0 : primaryCTA.iconPosition) === "right" && (primaryCTA === null || primaryCTA === void 0 ? void 0 : primaryCTA.icon)) ? (0, jsx_runtime_1.jsx)(react_1.Icon, { as: primaryCTA === null || primaryCTA === void 0 ? void 0 : primaryCTA.icon }) : undefined, leftIcon: ((primaryCTA === null || primaryCTA === void 0 ? void 0 : primaryCTA.iconPosition) === "left" && (primaryCTA === null || primaryCTA === void 0 ? void 0 : primaryCTA.icon)) ? (0, jsx_runtime_1.jsx)(react_1.Icon, { as: primaryCTA === null || primaryCTA === void 0 ? void 0 : primaryCTA.icon }) : undefined, variant: primaryCTA === null || primaryCTA === void 0 ? void 0 : primaryCTA.variant, borderRadius: (0, polished_1.rem)(56), fontFamily: fontFamily, fontSize: (0, polished_1.rem)(14), fontWeight: 500, lineHeight: (0, polished_1.rem)(20) }, { children: primaryCTA === null || primaryCTA === void 0 ? void 0 : primaryCTA.text })) }), showSecondaryCTA &&
32
+ (0, jsx_runtime_1.jsx)(react_1.Flex, { children: (0, jsx_runtime_1.jsx)(react_1.Button, Object.assign({ "data-testid": "secondary-action", onClick: secondaryCTA === null || secondaryCTA === void 0 ? void 0 : secondaryCTA.onClick, isDisabled: secondaryCTA === null || secondaryCTA === void 0 ? void 0 : secondaryCTA.isDisabled, isLoading: secondaryCTA === null || secondaryCTA === void 0 ? void 0 : secondaryCTA.isLoading, rightIcon: ((secondaryCTA === null || secondaryCTA === void 0 ? void 0 : secondaryCTA.iconPosition) === "right" && (secondaryCTA === null || secondaryCTA === void 0 ? void 0 : secondaryCTA.icon)) ? (0, jsx_runtime_1.jsx)(react_1.Icon, { as: secondaryCTA === null || secondaryCTA === void 0 ? void 0 : secondaryCTA.icon }) : undefined, leftIcon: ((secondaryCTA === null || secondaryCTA === void 0 ? void 0 : secondaryCTA.iconPosition) === "left" && (secondaryCTA === null || secondaryCTA === void 0 ? void 0 : secondaryCTA.icon)) ? (0, jsx_runtime_1.jsx)(react_1.Icon, { as: secondaryCTA === null || secondaryCTA === void 0 ? void 0 : secondaryCTA.icon }) : undefined, variant: secondaryCTA === null || secondaryCTA === void 0 ? void 0 : secondaryCTA.variant, borderRadius: (0, polished_1.rem)(56), fontFamily: fontFamily, fontSize: (0, polished_1.rem)(14), fontWeight: 500, lineHeight: (0, polished_1.rem)(20) }, { children: secondaryCTA === null || secondaryCTA === void 0 ? void 0 : secondaryCTA.text })) }), showPriceWithCTA && (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: customPriceTag !== null && customPriceTag !== void 0 ? customPriceTag : (price && perMonthText && (0, jsx_runtime_1.jsxs)(react_1.Text, Object.assign({ fontSize: (0, polished_1.rem)(14), lineHeight: (0, polished_1.rem)(24), fontWeight: 400, textAlign: "right", width: "inherit" }, { children: [fromText, " ", (0, jsx_runtime_1.jsx)("b", Object.assign({ style: { fontSize: (0, polished_1.rem)(16), fontWeight: 500 } }, { children: price })), " ", perMonthText] }))) })] })))] })));
33
+ };
34
+ exports.Card = Card;
35
+ //# sourceMappingURL=Card.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Card.js","sourceRoot":"","sources":["../../../../../src/alicia/common/Card/Card.tsx"],"names":[],"mappings":";;;;AAAA,4CAA4J;AAC5J,uCAA+B;AAE/B,wDAAqD;AAE9C,MAAM,IAAI,GAAkB,CAAC,EAChC,UAAU,GAAG,eAAe,EAC5B,QAAQ,GAAG,KAAK,EAChB,IAAI,GAAG,SAAS,EAChB,GAAG,GAAG,KAAK,EACX,OAAO,GAAG,aAAa,EACvB,kBAAkB,GAAG,WAAW,EAChC,QAAQ,GAAG,SAAS,EACpB,KAAK,GAAG,SAAS,EACjB,kBAAkB,GAAG,KAAK,EAC1B,qBAAqB,GAAG,KAAK,EAC7B,KAAK,GAAG,SAAS,EACjB,YAAY,GAAG,SAAS,EACxB,cAAc,GAAG,SAAS,EAC1B,wBAAwB,GAAG,KAAK,EAChC,cAAc,GAAG,SAAS,EAC1B,WAAW,GAAG,SAAS,EACvB,aAAa,GAAG,KAAK,EACrB,SAAS,GAAG,SAAS,EACrB,cAAc,GAAG,KAAK,EACtB,UAAU,GAAG,SAAS,EACtB,QAAQ,GAAG,MAAM,EACjB,aAAa,GAAG,YAAY,EAC5B,YAAY,GAAG,KAAK,EACpB,YAAY,GAAG,WAAW,EAC1B,cAAc,GAAG,SAAS,EAC1B,cAAc,GAAG,SAAS,EAC1B,OAAO,GAAG,IAAA,2BAAY,EAAC,EAAE,CAAC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4CAAG,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAA,cAAG,EAAC,EAAE,CAAC,EAAE,UAAU,EAAE,GAAG,EAAE,gBAAG,KAAK,IAAK,OAAE,YAAY,KAAQ,CAAC,GACjG,KACA,CACV,KACE,CACV,CAAA;AACL,CAAC,CAAA;AA/LY,QAAA,IAAI,QA+LhB"}
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const jsx_runtime_1 = require("react/jsx-runtime");
7
+ const react_1 = require("@testing-library/react");
8
+ require("@testing-library/jest-dom");
9
+ const index_1 = require("./index");
10
+ const user_event_1 = __importDefault(require("@testing-library/user-event"));
11
+ const onMockReadMore = jest.fn();
12
+ const onMockPrimaryCTA = jest.fn();
13
+ describe("Rating testing with testing-library", () => {
14
+ it("renders without crashing", () => {
15
+ const component = (0, react_1.render)((0, jsx_runtime_1.jsx)(index_1.Card, {}));
16
+ expect(component).toBeTruthy();
17
+ });
18
+ it("renders title", () => {
19
+ const { getByText } = (0, react_1.render)((0, jsx_runtime_1.jsx)(index_1.Card, { title: "Rental Car" }));
20
+ expect(getByText('Rental Car')).toBeInTheDocument();
21
+ });
22
+ it("renders description", () => {
23
+ const { getByText } = (0, react_1.render)((0, jsx_runtime_1.jsx)(index_1.Card, { title: "Rental Car", description: "This coverage insures you for the deductible you must pay in connection with loss of or damage to a rental car." }));
24
+ expect(getByText('This coverage insures you for the deductible you must pay in connection with loss of or damage to a rental car.')).toBeInTheDocument();
25
+ });
26
+ it("renders read more", () => {
27
+ const { getByText, getByTestId } = (0, react_1.render)((0, jsx_runtime_1.jsx)(index_1.Card, { title: "Rental Car", description: "This coverage insures you for the deductible you must pay in connection with loss of or damage to a rental car.", showReadMore: true, readMoreText: "Read More", readMoreAction: onMockReadMore, showPriceWithReadMore: true, price: "\u20AC9.99", perMonthText: "p.m." }));
28
+ expect(getByText('€9.99')).toBeInTheDocument();
29
+ user_event_1.default.click(getByTestId('read-more'));
30
+ expect(onMockReadMore).toBeCalledTimes(1);
31
+ });
32
+ it("renders read more", () => {
33
+ const { getByTestId, getByText } = (0, react_1.render)((0, jsx_runtime_1.jsx)(index_1.Card, { title: "Rental Car", description: "This coverage insures you for the deductible you must pay in connection with loss of or damage to a rental car.", showCTA: true, showPrimaryCTA: true, primaryCTA: {
34
+ variant: "primary",
35
+ isLoading: false,
36
+ isDisabled: false,
37
+ text: "File a Claim",
38
+ onClick: onMockPrimaryCTA
39
+ } }));
40
+ expect(getByText('File a Claim')).toBeInTheDocument();
41
+ user_event_1.default.click(getByTestId('primary-action'));
42
+ expect(onMockPrimaryCTA).toBeCalledTimes(1);
43
+ });
44
+ });
45
+ //# sourceMappingURL=Card.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Card.spec.js","sourceRoot":"","sources":["../../../../../src/alicia/common/Card/Card.spec.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAgD;AAChD,qCAAmC;AACnC,mCAA+B;AAC/B,6EAAoD;AAEpD,MAAM,cAAc,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;AACjC,MAAM,gBAAgB,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;AAEnC,QAAQ,CAAC,qCAAqC,EAAE,GAAG,EAAE;IACjD,EAAE,CAAC,0BAA0B,EAAE,GAAG,EAAE;QAChC,MAAM,SAAS,GAAG,IAAA,cAAM,EAAC,uBAAC,YAAI,KAAG,CAAC,CAAC;QACnC,MAAM,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,CAAC;IACnC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,eAAe,EAAE,GAAG,EAAE;QACrB,MAAM,EAAE,SAAS,EAAE,GAAG,IAAA,cAAM,EAAC,uBAAC,YAAI,IAAC,KAAK,EAAC,YAAY,GA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AS;gBAClB,SAAS,EAAE,KAAK;gBAChB,UAAU,EAAE,KAAK;gBACjB,IAAI,EAAE,cAAc;gBACpB,OAAO,EAAE,gBAAgB;aAC5B,GACH,CACL,CAAC;QACF,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAC;QACtD,oBAAS,CAAC,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC,CAAC;QAC/C,MAAM,CAAC,gBAAgB,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;IAChD,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -0,0 +1,381 @@
1
+ /// <reference types="react" />
2
+ import { ComponentStory, ComponentMeta } from "@storybook/react";
3
+ declare const _default: ComponentMeta<import("react").FC<{
4
+ fontFamily?: string | undefined;
5
+ showIcon?: boolean | undefined;
6
+ icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
7
+ tag?: boolean | undefined;
8
+ tagText?: string | undefined;
9
+ tagBackgroundColor?: string | undefined;
10
+ tagColor?: string | undefined;
11
+ title?: string | undefined;
12
+ showPartnerLogoWithTitle?: boolean | undefined;
13
+ partnerLogoSrc?: string | undefined;
14
+ showPriceWithTitle?: boolean | undefined;
15
+ showPriceWithReadMore?: boolean | undefined;
16
+ price?: string | undefined;
17
+ perMonthText?: string | undefined;
18
+ customPriceTag?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
19
+ description?: string | undefined;
20
+ showCheckList?: boolean | undefined;
21
+ checkList?: {
22
+ id: number;
23
+ label: string;
24
+ icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
25
+ }[] | undefined;
26
+ showAddonsList?: boolean | undefined;
27
+ addonsList?: {
28
+ id: number;
29
+ addonText: string;
30
+ addonPrice: string;
31
+ icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
32
+ }[] | undefined;
33
+ fromText?: string | undefined;
34
+ offeredByText?: string | undefined;
35
+ showReadMore?: boolean | undefined;
36
+ readMoreText?: string | undefined;
37
+ readMoreAction?: (() => void) | undefined;
38
+ hyperlinkColor?: string | undefined;
39
+ tagIcon?: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"svg", import("@chakra-ui/icon/dist/icon").IconProps> | undefined;
40
+ listIcon?: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"svg", import("@chakra-ui/icon/dist/icon").IconProps> | undefined;
41
+ showCTA?: boolean | undefined;
42
+ showPrimaryCTA?: boolean | undefined;
43
+ primaryCTAOnClick?: (() => void) | undefined;
44
+ primaryCTA?: (import("@chakra-ui/button/dist/button").ButtonProps & {
45
+ text?: string | undefined;
46
+ iconPosition?: "right" | "left" | undefined;
47
+ icon?: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"svg", import("@chakra-ui/icon/dist/icon").IconProps> | undefined;
48
+ }) | undefined;
49
+ showSecondaryCTA?: boolean | undefined;
50
+ secondaryCTA?: (import("@chakra-ui/button/dist/button").ButtonProps & {
51
+ text?: string | undefined;
52
+ iconPosition?: "right" | "left" | undefined;
53
+ icon?: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"svg", import("@chakra-ui/icon/dist/icon").IconProps> | undefined;
54
+ }) | undefined;
55
+ showPriceWithCTA?: boolean | undefined;
56
+ }>>;
57
+ export default _default;
58
+ export declare const Primary: ComponentStory<import("react").FC<{
59
+ fontFamily?: string | undefined;
60
+ showIcon?: boolean | undefined;
61
+ icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
62
+ tag?: boolean | undefined;
63
+ tagText?: string | undefined;
64
+ tagBackgroundColor?: string | undefined;
65
+ tagColor?: string | undefined;
66
+ title?: string | undefined;
67
+ showPartnerLogoWithTitle?: boolean | undefined;
68
+ partnerLogoSrc?: string | undefined;
69
+ showPriceWithTitle?: boolean | undefined;
70
+ showPriceWithReadMore?: boolean | undefined;
71
+ price?: string | undefined;
72
+ perMonthText?: string | undefined;
73
+ customPriceTag?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
74
+ description?: string | undefined;
75
+ showCheckList?: boolean | undefined;
76
+ checkList?: {
77
+ id: number;
78
+ label: string;
79
+ icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
80
+ }[] | undefined;
81
+ showAddonsList?: boolean | undefined;
82
+ addonsList?: {
83
+ id: number;
84
+ addonText: string;
85
+ addonPrice: string;
86
+ icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
87
+ }[] | undefined;
88
+ fromText?: string | undefined;
89
+ offeredByText?: string | undefined;
90
+ showReadMore?: boolean | undefined;
91
+ readMoreText?: string | undefined;
92
+ readMoreAction?: (() => void) | undefined;
93
+ hyperlinkColor?: string | undefined;
94
+ tagIcon?: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"svg", import("@chakra-ui/icon/dist/icon").IconProps> | undefined;
95
+ listIcon?: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"svg", import("@chakra-ui/icon/dist/icon").IconProps> | undefined;
96
+ showCTA?: boolean | undefined;
97
+ showPrimaryCTA?: boolean | undefined;
98
+ primaryCTAOnClick?: (() => void) | undefined;
99
+ primaryCTA?: (import("@chakra-ui/button/dist/button").ButtonProps & {
100
+ text?: string | undefined;
101
+ iconPosition?: "right" | "left" | undefined;
102
+ icon?: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"svg", import("@chakra-ui/icon/dist/icon").IconProps> | undefined;
103
+ }) | undefined;
104
+ showSecondaryCTA?: boolean | undefined;
105
+ secondaryCTA?: (import("@chakra-ui/button/dist/button").ButtonProps & {
106
+ text?: string | undefined;
107
+ iconPosition?: "right" | "left" | undefined;
108
+ icon?: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"svg", import("@chakra-ui/icon/dist/icon").IconProps> | undefined;
109
+ }) | undefined;
110
+ showPriceWithCTA?: boolean | undefined;
111
+ }>>;
112
+ export declare const TopPriceTag: ComponentStory<import("react").FC<{
113
+ fontFamily?: string | undefined;
114
+ showIcon?: boolean | undefined;
115
+ icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
116
+ tag?: boolean | undefined;
117
+ tagText?: string | undefined;
118
+ tagBackgroundColor?: string | undefined;
119
+ tagColor?: string | undefined;
120
+ title?: string | undefined;
121
+ showPartnerLogoWithTitle?: boolean | undefined;
122
+ partnerLogoSrc?: string | undefined;
123
+ showPriceWithTitle?: boolean | undefined;
124
+ showPriceWithReadMore?: boolean | undefined;
125
+ price?: string | undefined;
126
+ perMonthText?: string | undefined;
127
+ customPriceTag?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
128
+ description?: string | undefined;
129
+ showCheckList?: boolean | undefined;
130
+ checkList?: {
131
+ id: number;
132
+ label: string;
133
+ icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
134
+ }[] | undefined;
135
+ showAddonsList?: boolean | undefined;
136
+ addonsList?: {
137
+ id: number;
138
+ addonText: string;
139
+ addonPrice: string;
140
+ icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
141
+ }[] | undefined;
142
+ fromText?: string | undefined;
143
+ offeredByText?: string | undefined;
144
+ showReadMore?: boolean | undefined;
145
+ readMoreText?: string | undefined;
146
+ readMoreAction?: (() => void) | undefined;
147
+ hyperlinkColor?: string | undefined;
148
+ tagIcon?: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"svg", import("@chakra-ui/icon/dist/icon").IconProps> | undefined;
149
+ listIcon?: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"svg", import("@chakra-ui/icon/dist/icon").IconProps> | undefined;
150
+ showCTA?: boolean | undefined;
151
+ showPrimaryCTA?: boolean | undefined;
152
+ primaryCTAOnClick?: (() => void) | undefined;
153
+ primaryCTA?: (import("@chakra-ui/button/dist/button").ButtonProps & {
154
+ text?: string | undefined;
155
+ iconPosition?: "right" | "left" | undefined;
156
+ icon?: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"svg", import("@chakra-ui/icon/dist/icon").IconProps> | undefined;
157
+ }) | undefined;
158
+ showSecondaryCTA?: boolean | undefined;
159
+ secondaryCTA?: (import("@chakra-ui/button/dist/button").ButtonProps & {
160
+ text?: string | undefined;
161
+ iconPosition?: "right" | "left" | undefined;
162
+ icon?: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"svg", import("@chakra-ui/icon/dist/icon").IconProps> | undefined;
163
+ }) | undefined;
164
+ showPriceWithCTA?: boolean | undefined;
165
+ }>>;
166
+ export declare const TopPartnerLogo: ComponentStory<import("react").FC<{
167
+ fontFamily?: string | undefined;
168
+ showIcon?: boolean | undefined;
169
+ icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
170
+ tag?: boolean | undefined;
171
+ tagText?: string | undefined;
172
+ tagBackgroundColor?: string | undefined;
173
+ tagColor?: string | undefined;
174
+ title?: string | undefined;
175
+ showPartnerLogoWithTitle?: boolean | undefined;
176
+ partnerLogoSrc?: string | undefined;
177
+ showPriceWithTitle?: boolean | undefined;
178
+ showPriceWithReadMore?: boolean | undefined;
179
+ price?: string | undefined;
180
+ perMonthText?: string | undefined;
181
+ customPriceTag?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
182
+ description?: string | undefined;
183
+ showCheckList?: boolean | undefined;
184
+ checkList?: {
185
+ id: number;
186
+ label: string;
187
+ icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
188
+ }[] | undefined;
189
+ showAddonsList?: boolean | undefined;
190
+ addonsList?: {
191
+ id: number;
192
+ addonText: string;
193
+ addonPrice: string;
194
+ icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
195
+ }[] | undefined;
196
+ fromText?: string | undefined;
197
+ offeredByText?: string | undefined;
198
+ showReadMore?: boolean | undefined;
199
+ readMoreText?: string | undefined;
200
+ readMoreAction?: (() => void) | undefined;
201
+ hyperlinkColor?: string | undefined;
202
+ tagIcon?: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"svg", import("@chakra-ui/icon/dist/icon").IconProps> | undefined;
203
+ listIcon?: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"svg", import("@chakra-ui/icon/dist/icon").IconProps> | undefined;
204
+ showCTA?: boolean | undefined;
205
+ showPrimaryCTA?: boolean | undefined;
206
+ primaryCTAOnClick?: (() => void) | undefined;
207
+ primaryCTA?: (import("@chakra-ui/button/dist/button").ButtonProps & {
208
+ text?: string | undefined;
209
+ iconPosition?: "right" | "left" | undefined;
210
+ icon?: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"svg", import("@chakra-ui/icon/dist/icon").IconProps> | undefined;
211
+ }) | undefined;
212
+ showSecondaryCTA?: boolean | undefined;
213
+ secondaryCTA?: (import("@chakra-ui/button/dist/button").ButtonProps & {
214
+ text?: string | undefined;
215
+ iconPosition?: "right" | "left" | undefined;
216
+ icon?: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"svg", import("@chakra-ui/icon/dist/icon").IconProps> | undefined;
217
+ }) | undefined;
218
+ showPriceWithCTA?: boolean | undefined;
219
+ }>>;
220
+ export declare const ReadMore: ComponentStory<import("react").FC<{
221
+ fontFamily?: string | undefined;
222
+ showIcon?: boolean | undefined;
223
+ icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
224
+ tag?: boolean | undefined;
225
+ tagText?: string | undefined;
226
+ tagBackgroundColor?: string | undefined;
227
+ tagColor?: string | undefined;
228
+ title?: string | undefined;
229
+ showPartnerLogoWithTitle?: boolean | undefined;
230
+ partnerLogoSrc?: string | undefined;
231
+ showPriceWithTitle?: boolean | undefined;
232
+ showPriceWithReadMore?: boolean | undefined;
233
+ price?: string | undefined;
234
+ perMonthText?: string | undefined;
235
+ customPriceTag?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
236
+ description?: string | undefined;
237
+ showCheckList?: boolean | undefined;
238
+ checkList?: {
239
+ id: number;
240
+ label: string;
241
+ icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
242
+ }[] | undefined;
243
+ showAddonsList?: boolean | undefined;
244
+ addonsList?: {
245
+ id: number;
246
+ addonText: string;
247
+ addonPrice: string;
248
+ icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
249
+ }[] | undefined;
250
+ fromText?: string | undefined;
251
+ offeredByText?: string | undefined;
252
+ showReadMore?: boolean | undefined;
253
+ readMoreText?: string | undefined;
254
+ readMoreAction?: (() => void) | undefined;
255
+ hyperlinkColor?: string | undefined;
256
+ tagIcon?: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"svg", import("@chakra-ui/icon/dist/icon").IconProps> | undefined;
257
+ listIcon?: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"svg", import("@chakra-ui/icon/dist/icon").IconProps> | undefined;
258
+ showCTA?: boolean | undefined;
259
+ showPrimaryCTA?: boolean | undefined;
260
+ primaryCTAOnClick?: (() => void) | undefined;
261
+ primaryCTA?: (import("@chakra-ui/button/dist/button").ButtonProps & {
262
+ text?: string | undefined;
263
+ iconPosition?: "right" | "left" | undefined;
264
+ icon?: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"svg", import("@chakra-ui/icon/dist/icon").IconProps> | undefined;
265
+ }) | undefined;
266
+ showSecondaryCTA?: boolean | undefined;
267
+ secondaryCTA?: (import("@chakra-ui/button/dist/button").ButtonProps & {
268
+ text?: string | undefined;
269
+ iconPosition?: "right" | "left" | undefined;
270
+ icon?: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"svg", import("@chakra-ui/icon/dist/icon").IconProps> | undefined;
271
+ }) | undefined;
272
+ showPriceWithCTA?: boolean | undefined;
273
+ }>>;
274
+ export declare const Checklist: ComponentStory<import("react").FC<{
275
+ fontFamily?: string | undefined;
276
+ showIcon?: boolean | undefined;
277
+ icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
278
+ tag?: boolean | undefined;
279
+ tagText?: string | undefined;
280
+ tagBackgroundColor?: string | undefined;
281
+ tagColor?: string | undefined;
282
+ title?: string | undefined;
283
+ showPartnerLogoWithTitle?: boolean | undefined;
284
+ partnerLogoSrc?: string | undefined;
285
+ showPriceWithTitle?: boolean | undefined;
286
+ showPriceWithReadMore?: boolean | undefined;
287
+ price?: string | undefined;
288
+ perMonthText?: string | undefined;
289
+ customPriceTag?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
290
+ description?: string | undefined;
291
+ showCheckList?: boolean | undefined;
292
+ checkList?: {
293
+ id: number;
294
+ label: string;
295
+ icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
296
+ }[] | undefined;
297
+ showAddonsList?: boolean | undefined;
298
+ addonsList?: {
299
+ id: number;
300
+ addonText: string;
301
+ addonPrice: string;
302
+ icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
303
+ }[] | undefined;
304
+ fromText?: string | undefined;
305
+ offeredByText?: string | undefined;
306
+ showReadMore?: boolean | undefined;
307
+ readMoreText?: string | undefined;
308
+ readMoreAction?: (() => void) | undefined;
309
+ hyperlinkColor?: string | undefined;
310
+ tagIcon?: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"svg", import("@chakra-ui/icon/dist/icon").IconProps> | undefined;
311
+ listIcon?: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"svg", import("@chakra-ui/icon/dist/icon").IconProps> | undefined;
312
+ showCTA?: boolean | undefined;
313
+ showPrimaryCTA?: boolean | undefined;
314
+ primaryCTAOnClick?: (() => void) | undefined;
315
+ primaryCTA?: (import("@chakra-ui/button/dist/button").ButtonProps & {
316
+ text?: string | undefined;
317
+ iconPosition?: "right" | "left" | undefined;
318
+ icon?: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"svg", import("@chakra-ui/icon/dist/icon").IconProps> | undefined;
319
+ }) | undefined;
320
+ showSecondaryCTA?: boolean | undefined;
321
+ secondaryCTA?: (import("@chakra-ui/button/dist/button").ButtonProps & {
322
+ text?: string | undefined;
323
+ iconPosition?: "right" | "left" | undefined;
324
+ icon?: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"svg", import("@chakra-ui/icon/dist/icon").IconProps> | undefined;
325
+ }) | undefined;
326
+ showPriceWithCTA?: boolean | undefined;
327
+ }>>;
328
+ export declare const AddOnList: ComponentStory<import("react").FC<{
329
+ fontFamily?: string | undefined;
330
+ showIcon?: boolean | undefined;
331
+ icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
332
+ tag?: boolean | undefined;
333
+ tagText?: string | undefined;
334
+ tagBackgroundColor?: string | undefined;
335
+ tagColor?: string | undefined;
336
+ title?: string | undefined;
337
+ showPartnerLogoWithTitle?: boolean | undefined;
338
+ partnerLogoSrc?: string | undefined;
339
+ showPriceWithTitle?: boolean | undefined;
340
+ showPriceWithReadMore?: boolean | undefined;
341
+ price?: string | undefined;
342
+ perMonthText?: string | undefined;
343
+ customPriceTag?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
344
+ description?: string | undefined;
345
+ showCheckList?: boolean | undefined;
346
+ checkList?: {
347
+ id: number;
348
+ label: string;
349
+ icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
350
+ }[] | undefined;
351
+ showAddonsList?: boolean | undefined;
352
+ addonsList?: {
353
+ id: number;
354
+ addonText: string;
355
+ addonPrice: string;
356
+ icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
357
+ }[] | undefined;
358
+ fromText?: string | undefined;
359
+ offeredByText?: string | undefined;
360
+ showReadMore?: boolean | undefined;
361
+ readMoreText?: string | undefined;
362
+ readMoreAction?: (() => void) | undefined;
363
+ hyperlinkColor?: string | undefined;
364
+ tagIcon?: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"svg", import("@chakra-ui/icon/dist/icon").IconProps> | undefined;
365
+ listIcon?: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"svg", import("@chakra-ui/icon/dist/icon").IconProps> | undefined;
366
+ showCTA?: boolean | undefined;
367
+ showPrimaryCTA?: boolean | undefined;
368
+ primaryCTAOnClick?: (() => void) | undefined;
369
+ primaryCTA?: (import("@chakra-ui/button/dist/button").ButtonProps & {
370
+ text?: string | undefined;
371
+ iconPosition?: "right" | "left" | undefined;
372
+ icon?: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"svg", import("@chakra-ui/icon/dist/icon").IconProps> | undefined;
373
+ }) | undefined;
374
+ showSecondaryCTA?: boolean | undefined;
375
+ secondaryCTA?: (import("@chakra-ui/button/dist/button").ButtonProps & {
376
+ text?: string | undefined;
377
+ iconPosition?: "right" | "left" | undefined;
378
+ icon?: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"svg", import("@chakra-ui/icon/dist/icon").IconProps> | undefined;
379
+ }) | undefined;
380
+ showPriceWithCTA?: boolean | undefined;
381
+ }>>;