diff --git a/src/App/ComponentsDocumentation/components/Card/constantspayex.js b/src/App/ComponentsDocumentation/components/Card/constantspayex.js new file mode 100644 index 0000000000..e58bc16760 --- /dev/null +++ b/src/App/ComponentsDocumentation/components/Card/constantspayex.js @@ -0,0 +1,380 @@ +import React from "react"; +import CardsComponent from "@components/Cards"; + +const defaultOptionsValues = { + isButton: false, + isWide: false, + iconClasses: "at-document", + hasTitle: true, + imgSrc: null, + imgRatio: null, + hasTextContent: true, + hasCTAText: true, +}; + +// Happy Woman image + +export const overviewCards = { + id: "overviewCards", + tabsId: "overviewButtonsTabs", + elements: [ + { + tab: "Standard", + component: ( + + ), + options: { + radio: [ + { + id: "title", + title: "Title", + values: [ + { + name: "Text only", + value: { + iconClasses: null, + hasTitle: true, + }, + }, + { + name: "Text + icon", + default: true, + value: { + iconClasses: "at-shop-cart", + hasTitle: true, + }, + }, + { + name: "Icon only", + value: { + iconClasses: "at-shop-cart", + hasTitle: false, + }, + }, + ], + }, + { + id: "has_image", + title: "Image illustration", + values: [ + { + name: "No image", + default: true, + value: { + imgSrc: null, + }, + }, + { + name: "With image - 16/9 ratio", + value: { + imgSrc: + "https://design.swedbankpay.com/v/10.10.1/img/documentation/imagery/women-on-bus.svg", + icon: null, + imgRatio: "ratio-16-9", + }, + }, + { + name: "With image - 4/3 ratio", + value: { + imgSrc: + "https://design.swedbankpay.com/v/10.10.1/img/documentation/imagery/women-on-bus.svg", + icon: null, + imgRatio: "ratio-4-3", + }, + }, + { + name: "With image - 1/1 ratio", + value: { + imgSrc: + "https://design.swedbankpay.com/v/10.10.1/img/documentation/imagery/women-on-bus.svg", + icon: null, + imgRatio: "ratio-1-1", + }, + }, + ], + }, + { + id: "text_content", + title: "Text content", + values: [ + { + name: "With text content", + default: true, + value: { + hasTextContent: true, + }, + }, + { + name: "No text content", + value: { + hasTextContent: false, + }, + }, + ], + }, + { + id: "has_cta_text", + title: "CTA text", + values: [ + { + name: "With CTA text", + default: true, + value: { + hasCTAText: true, + }, + }, + { + name: "Only arrow", + value: { + hasCTAText: false, + }, + }, + ], + }, + { + id: "card_element_tag", + title: "Card purpose", + values: [ + { + name: "action