@plurix/ecom-components 1.11.4 → 1.11.6

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 (41) hide show
  1. package/dist/main.d.ts +3 -2
  2. package/dist/main.js +12 -12
  3. package/dist/packages/SearchSugestions/components/Button/index.d.ts +13 -0
  4. package/dist/packages/SearchSugestions/components/Button/index.js +48 -0
  5. package/dist/packages/SearchSugestions/components/Button/showMoreOrLess.d.ts +1 -0
  6. package/dist/packages/SearchSugestions/components/Button/showMoreOrLess.js +6 -0
  7. package/dist/packages/SearchSugestions/components/Link/index.d.ts +10 -0
  8. package/dist/packages/SearchSugestions/components/Link/index.js +34 -0
  9. package/dist/packages/SearchSugestions/components/Link/navigation.d.ts +1 -0
  10. package/dist/packages/SearchSugestions/components/Link/navigation.js +8 -0
  11. package/dist/packages/SearchSugestions/components/SearchSuggestions/index.d.ts +4 -0
  12. package/dist/packages/SearchSugestions/components/SearchSuggestions/index.js +83 -0
  13. package/dist/packages/SearchSugestions/components/SearchText/Index.d.ts +10 -0
  14. package/dist/packages/SearchSugestions/components/SearchText/Index.js +37 -0
  15. package/dist/packages/SearchSugestions/index.d.ts +3 -0
  16. package/dist/packages/SearchSugestions/index.js +4 -0
  17. package/dist/packages/SearchSugestions/mocks.d.ts +4 -0
  18. package/dist/packages/SearchSugestions/mocks.js +16 -0
  19. package/dist/packages/SearchSugestions/styles/baseAllSuggestionsContainerStyle.d.ts +3 -0
  20. package/dist/packages/SearchSugestions/styles/baseAllSuggestionsContainerStyle.js +10 -0
  21. package/dist/packages/SearchSugestions/styles/baseButtonHoveredStyle.d.ts +3 -0
  22. package/dist/packages/SearchSugestions/styles/baseButtonHoveredStyle.js +7 -0
  23. package/dist/packages/SearchSugestions/styles/baseButtonStyle.d.ts +3 -0
  24. package/dist/packages/SearchSugestions/styles/baseButtonStyle.js +13 -0
  25. package/dist/packages/SearchSugestions/styles/baseSearchForStyle.d.ts +3 -0
  26. package/dist/packages/SearchSugestions/styles/baseSearchForStyle.js +9 -0
  27. package/dist/packages/SearchSugestions/styles/baseSearchForTermStyle.d.ts +3 -0
  28. package/dist/packages/SearchSugestions/styles/baseSearchForTermStyle.js +8 -0
  29. package/dist/packages/SearchSugestions/styles/baseSuggestionLinkHoveredStyle.d.ts +3 -0
  30. package/dist/packages/SearchSugestions/styles/baseSuggestionLinkHoveredStyle.js +7 -0
  31. package/dist/packages/SearchSugestions/styles/baseSuggestionLinkStyle.d.ts +3 -0
  32. package/dist/packages/SearchSugestions/styles/baseSuggestionLinkStyle.js +14 -0
  33. package/dist/packages/SearchSugestions/styles/baseTitleStyle.d.ts +3 -0
  34. package/dist/packages/SearchSugestions/styles/baseTitleStyle.js +9 -0
  35. package/dist/packages/SearchSugestions/types/ResponseApi.d.ts +10 -0
  36. package/dist/packages/SearchSugestions/types/ResponseApi.js +1 -0
  37. package/dist/packages/SearchSugestions/types/SearchSuggestionsProps.d.ts +24 -0
  38. package/dist/packages/SearchSugestions/types/SearchSuggestionsProps.js +1 -0
  39. package/package.json +1 -1
  40. package/dist/packages/ContactCard/ContactCard.d.ts +0 -22
  41. package/dist/packages/ContactCard/ContactCard.js +0 -40
package/dist/main.d.ts CHANGED
@@ -6,7 +6,8 @@ export { Tour } from './packages/Tour/Tour';
6
6
  export { Regionalization } from './packages/Regionalization/Regionalization';
7
7
  export * from './packages/Regionalization/types';
8
8
  export { Modal } from './packages/Modal/Modal';
9
- export { ContactCard } from './packages/ContactCard/ContactCard';
10
- export * from './packages/ContactCard/ContactCard';
11
9
  export * from './types/ChangeOrderModal';
12
10
  export { ChangeOrderModal } from './packages/ChangeOrderModal/ChangeOrderModal';
11
+ export { SearchSuggestions } from './packages/SearchSugestions/components/SearchSuggestions';
12
+ export type { SearchSuggestionsProps } from './packages/SearchSugestions/types/SearchSuggestionsProps';
13
+ export type { SearchSuggestionsApiResponse, Searches } from './packages/SearchSugestions/types/ResponseApi';
package/dist/main.js CHANGED
@@ -1,20 +1,20 @@
1
1
  import { CartClubAlert as e } from "./packages/CartClubAlert/CartClubAlert.js";
2
- import { Carousel as a } from "./packages/Carousel/Carousel.js";
2
+ import { Carousel as p } from "./packages/Carousel/Carousel.js";
3
3
  import { Coupons as f } from "./packages/Coupons/Coupons.js";
4
4
  import { Onboarding as x } from "./packages/Onboarding/Onboarding.js";
5
- import { Tour as C } from "./packages/Tour/Tour.js";
6
- import { Regionalization as d } from "./packages/Regionalization/Regionalization.js";
7
- import { Modal as u } from "./packages/Modal/Modal.js";
8
- import { ContactCard as b } from "./packages/ContactCard/ContactCard.js";
9
- import { ChangeOrderModal as M } from "./packages/ChangeOrderModal/ChangeOrderModal.js";
5
+ import { Tour as l } from "./packages/Tour/Tour.js";
6
+ import { Regionalization as i } from "./packages/Regionalization/Regionalization.js";
7
+ import { Modal as C } from "./packages/Modal/Modal.js";
8
+ import { ChangeOrderModal as s } from "./packages/ChangeOrderModal/ChangeOrderModal.js";
9
+ import { SearchSuggestions as h } from "./packages/SearchSugestions/components/SearchSuggestions/index.js";
10
10
  export {
11
- a as Carousel,
11
+ p as Carousel,
12
12
  e as CartClubAlert,
13
- M as ChangeOrderModal,
14
- b as ContactCard,
13
+ s as ChangeOrderModal,
15
14
  f as Coupons,
16
- u as Modal,
15
+ C as Modal,
17
16
  x as Onboarding,
18
- d as Regionalization,
19
- C as Tour
17
+ i as Regionalization,
18
+ h as SearchSuggestions,
19
+ l as Tour
20
20
  };
@@ -0,0 +1,13 @@
1
+ import { default as React, CSSProperties } from 'react';
2
+
3
+ interface ButtonProps {
4
+ itemsToShowQuantity: number;
5
+ itemsToShow: number;
6
+ setItemsToShowQuantity: (itemsToShowQuantity: number) => void;
7
+ showMoreSuggestionsText?: string;
8
+ showLessSuggestionsText?: string;
9
+ buttonStyle?: CSSProperties;
10
+ buttonHoveredStyle?: CSSProperties;
11
+ }
12
+ export declare const Button: React.FC<ButtonProps>;
13
+ export {};
@@ -0,0 +1,48 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { useState as d } from "react";
3
+ import { showMoreOrLess as f } from "./showMoreOrLess.js";
4
+ import { baseButtonStyle as m } from "../../styles/baseButtonStyle.js";
5
+ import { baseButtonHoveredStyle as p } from "../../styles/baseButtonHoveredStyle.js";
6
+ const x = ({
7
+ itemsToShowQuantity: t,
8
+ itemsToShow: e,
9
+ setItemsToShowQuantity: r,
10
+ showMoreSuggestionsText: a,
11
+ showLessSuggestionsText: l,
12
+ buttonStyle: u,
13
+ buttonHoveredStyle: i
14
+ }) => {
15
+ const [c, s] = d(!1), o = {
16
+ ...m,
17
+ ...u
18
+ }, g = {
19
+ ...p,
20
+ ...i
21
+ };
22
+ return /* @__PURE__ */ n(
23
+ "div",
24
+ {
25
+ className: "suggestion-button-container",
26
+ style: { textAlign: "center" },
27
+ children: /* @__PURE__ */ n(
28
+ "button",
29
+ {
30
+ onClick: () => f(
31
+ e,
32
+ t,
33
+ r
34
+ ),
35
+ onMouseEnter: () => s(!0),
36
+ onMouseLeave: () => s(!1),
37
+ className: "suggestion-button",
38
+ style: c ? { ...o, ...g } : { ...o },
39
+ "data-testid": t === e ? "show" : "hide",
40
+ children: t === e ? a || "Ver todas as sugestões" : l || "Ocultar algumas sugestões"
41
+ }
42
+ )
43
+ }
44
+ );
45
+ };
46
+ export {
47
+ x as Button
48
+ };
@@ -0,0 +1 @@
1
+ export declare const showMoreOrLess: (itemsToShow: number, itemsToShowQuantity: number, setItemsToShowQuantity: (itemsToShow: number) => void) => void;
@@ -0,0 +1,6 @@
1
+ const f = (r, c, n) => {
2
+ n(c === r ? 1 / 0 : r);
3
+ };
4
+ export {
5
+ f as showMoreOrLess
6
+ };
@@ -0,0 +1,10 @@
1
+ import { default as React, CSSProperties } from 'react';
2
+
3
+ interface LinkProps {
4
+ href: string;
5
+ children: React.ReactNode;
6
+ suggestionLinkStyle?: CSSProperties;
7
+ suggestionLinkHoveredStyle?: CSSProperties;
8
+ }
9
+ export declare const Link: React.FC<LinkProps>;
10
+ export {};
@@ -0,0 +1,34 @@
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import { useState as m } from "react";
3
+ import { navigation as u } from "./navigation.js";
4
+ import { baseSuggestionLinkStyle as S } from "../../styles/baseSuggestionLinkStyle.js";
5
+ import { baseSuggestionLinkHoveredStyle as f } from "../../styles/baseSuggestionLinkHoveredStyle.js";
6
+ const y = ({
7
+ href: e,
8
+ children: n,
9
+ suggestionLinkStyle: i,
10
+ suggestionLinkHoveredStyle: s
11
+ }) => {
12
+ const [r, o] = m(!1), t = {
13
+ ...S,
14
+ ...i
15
+ }, a = {
16
+ ...f,
17
+ ...s
18
+ };
19
+ return /* @__PURE__ */ l(
20
+ "a",
21
+ {
22
+ href: e,
23
+ onClick: (g) => u(g, e),
24
+ onMouseEnter: () => o(!0),
25
+ onMouseLeave: () => o(!1),
26
+ className: "suggestion-link",
27
+ style: r ? { ...t, ...a } : { ...t },
28
+ children: n
29
+ }
30
+ );
31
+ };
32
+ export {
33
+ y as Link
34
+ };
@@ -0,0 +1 @@
1
+ export declare const navigation: (event: React.MouseEvent<HTMLElement>, href: string) => void;
@@ -0,0 +1,8 @@
1
+ const o = (t, n) => {
2
+ t.preventDefault(), window.history.pushState({}, "", n);
3
+ const e = new PopStateEvent("popstate");
4
+ window.dispatchEvent(e);
5
+ };
6
+ export {
7
+ o as navigation
8
+ };
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { SearchSuggestionsProps } from '../../types/SearchSuggestionsProps';
3
+
4
+ export declare const SearchSuggestions: React.FC<SearchSuggestionsProps>;
@@ -0,0 +1,83 @@
1
+ import { jsxs as Q, jsx as s } from "react/jsx-runtime";
2
+ import { useState as S, useEffect as _ } from "react";
3
+ import { Link as k } from "../Link/index.js";
4
+ import { Button as q } from "../Button/index.js";
5
+ import { SearchText as A } from "../SearchText/Index.js";
6
+ import { baseTitleStyle as E } from "../../styles/baseTitleStyle.js";
7
+ import { baseAllSuggestionsContainerStyle as L } from "../../styles/baseAllSuggestionsContainerStyle.js";
8
+ const K = ({
9
+ searchSuggestions: n,
10
+ loading: l,
11
+ itemsToShow: t = 1 / 0,
12
+ searchFor: r,
13
+ loadingText: c,
14
+ searchForText: g,
15
+ titleText: u,
16
+ showMoreSuggestionsText: f,
17
+ showLessSuggestionsText: m,
18
+ searchForStyle: p,
19
+ searchForTermStyle: d,
20
+ titleStyle: y,
21
+ allSuggestionsContainerStyle: h,
22
+ suggestionLinkStyle: x,
23
+ suggestionLinkHoveredStyle: N,
24
+ buttonStyle: v,
25
+ buttonHoveredStyle: b,
26
+ urlSearch: i
27
+ }) => {
28
+ const [o, a] = S(t);
29
+ _(() => {
30
+ a(t);
31
+ }, [t]);
32
+ const j = t > 0 && n.length > t, B = (e) => i ? i.replace("{{term}}", e) : `/s/?q=${e}&sort=score_desc&page=0`;
33
+ return /* @__PURE__ */ Q("div", { className: "suggestions-main-container", children: [
34
+ r && /* @__PURE__ */ s(
35
+ A,
36
+ {
37
+ searchFor: r,
38
+ searchForText: g,
39
+ searchForStyle: p,
40
+ searchForTermStyle: d
41
+ }
42
+ ),
43
+ /* @__PURE__ */ s("h2", { style: { ...E, ...y }, children: u ?? "Ver por interesse:" }),
44
+ /* @__PURE__ */ s(
45
+ "div",
46
+ {
47
+ className: "suggestions-all_suggestions-container",
48
+ style: {
49
+ ...L,
50
+ ...h
51
+ },
52
+ children: l ? /* @__PURE__ */ s("span", { className: "suggestions-loading", children: c ?? "Carregando sugestões..." }) : n.map(({ term: e }, C) => {
53
+ const I = /* @__PURE__ */ s(
54
+ k,
55
+ {
56
+ href: B(e),
57
+ suggestionLinkStyle: x,
58
+ suggestionLinkHoveredStyle: N,
59
+ children: e
60
+ },
61
+ e
62
+ );
63
+ return t >= 0 && C + 1 <= o ? I : null;
64
+ })
65
+ }
66
+ ),
67
+ j && /* @__PURE__ */ s(
68
+ q,
69
+ {
70
+ itemsToShowQuantity: o,
71
+ setItemsToShowQuantity: a,
72
+ itemsToShow: t,
73
+ showMoreSuggestionsText: f,
74
+ showLessSuggestionsText: m,
75
+ buttonStyle: v,
76
+ buttonHoveredStyle: b
77
+ }
78
+ )
79
+ ] });
80
+ };
81
+ export {
82
+ K as SearchSuggestions
83
+ };
@@ -0,0 +1,10 @@
1
+ import { default as React, CSSProperties } from 'react';
2
+
3
+ interface SearchForProps {
4
+ searchFor: string;
5
+ searchForText?: string;
6
+ searchForStyle?: CSSProperties;
7
+ searchForTermStyle?: CSSProperties;
8
+ }
9
+ export declare const SearchText: React.FC<SearchForProps>;
10
+ export {};
@@ -0,0 +1,37 @@
1
+ import { jsxs as r } from "react/jsx-runtime";
2
+ import { baseSearchForStyle as o } from "../../styles/baseSearchForStyle.js";
3
+ import { baseSearchForTermStyle as c } from "../../styles/baseSearchForTermStyle.js";
4
+ const l = ({
5
+ searchFor: e,
6
+ searchForText: s,
7
+ searchForStyle: t,
8
+ searchForTermStyle: a
9
+ }) => /* @__PURE__ */ r(
10
+ "p",
11
+ {
12
+ className: "suggestion-search_for",
13
+ style: { ...o, ...t },
14
+ "data-testid": "search-for",
15
+ children: [
16
+ s ?? "Você pesquisou por ",
17
+ /* @__PURE__ */ r(
18
+ "span",
19
+ {
20
+ className: "suggestion-search_for-term",
21
+ style: { ...c, ...a },
22
+ children: [
23
+ "“",
24
+ e.replace(
25
+ e.charAt(0),
26
+ e.charAt(0).toUpperCase()
27
+ ),
28
+ "”"
29
+ ]
30
+ }
31
+ )
32
+ ]
33
+ }
34
+ );
35
+ export {
36
+ l as SearchText
37
+ };
@@ -0,0 +1,3 @@
1
+ export { SearchSuggestions } from './components/SearchSuggestions';
2
+ export type { SearchSuggestionsProps } from './types/SearchSuggestionsProps';
3
+ export type { SearchSuggestionsApiResponse, Searches } from './types/ResponseApi';
@@ -0,0 +1,4 @@
1
+ import { SearchSuggestions as r } from "./components/SearchSuggestions/index.js";
2
+ export {
3
+ r as SearchSuggestions
4
+ };
@@ -0,0 +1,4 @@
1
+ export declare const mockSearchSuggestions: {
2
+ term: string;
3
+ }[];
4
+ export declare const mockSearchFor = "user search";
@@ -0,0 +1,16 @@
1
+ const t = [
2
+ { term: "test-term-1" },
3
+ { term: "test-term-2" },
4
+ { term: "test-term-3" },
5
+ { term: "test-term-4" },
6
+ { term: "test-term-5" },
7
+ { term: "test-term-6" },
8
+ { term: "test-term-7" },
9
+ { term: "test-term-8" },
10
+ { term: "test-term-9" },
11
+ { term: "test-term-10" }
12
+ ], e = "user search";
13
+ export {
14
+ e as mockSearchFor,
15
+ t as mockSearchSuggestions
16
+ };
@@ -0,0 +1,3 @@
1
+ import { CSSProperties } from 'react';
2
+
3
+ export declare const baseAllSuggestionsContainerStyle: CSSProperties;
@@ -0,0 +1,10 @@
1
+ const e = {
2
+ display: "flex",
3
+ alignItems: "center",
4
+ flexWrap: "wrap",
5
+ gap: "8px 4px",
6
+ margin: "8px 0"
7
+ };
8
+ export {
9
+ e as baseAllSuggestionsContainerStyle
10
+ };
@@ -0,0 +1,3 @@
1
+ import { CSSProperties } from 'react';
2
+
3
+ export declare const baseButtonHoveredStyle: CSSProperties;
@@ -0,0 +1,7 @@
1
+ const o = {
2
+ background: "transparent",
3
+ color: "var(--color-support-links, #00289C)"
4
+ };
5
+ export {
6
+ o as baseButtonHoveredStyle
7
+ };
@@ -0,0 +1,3 @@
1
+ import { CSSProperties } from 'react';
2
+
3
+ export declare const baseButtonStyle: CSSProperties;
@@ -0,0 +1,13 @@
1
+ const o = {
2
+ display: "inline-block",
3
+ border: "none",
4
+ background: "transparent",
5
+ color: "var(--color-support-links, #00289C)",
6
+ fontSize: "14px",
7
+ lineHeight: "18px",
8
+ textDecoration: "underline",
9
+ cursor: "pointer"
10
+ };
11
+ export {
12
+ o as baseButtonStyle
13
+ };
@@ -0,0 +1,3 @@
1
+ import { CSSProperties } from 'react';
2
+
3
+ export declare const baseSearchForStyle: CSSProperties;
@@ -0,0 +1,9 @@
1
+ const c = {
2
+ margin: "0 0 24px 0",
3
+ color: "var(--color-grayScale, #1c1c1c)",
4
+ fontSize: "16px",
5
+ lineHeight: "20px"
6
+ };
7
+ export {
8
+ c as baseSearchForStyle
9
+ };
@@ -0,0 +1,3 @@
1
+ import { CSSProperties } from 'react';
2
+
3
+ export declare const baseSearchForTermStyle: CSSProperties;
@@ -0,0 +1,8 @@
1
+ const e = {
2
+ fontSize: "20px",
3
+ fontWeight: 700,
4
+ lineHeight: "24px"
5
+ };
6
+ export {
7
+ e as baseSearchForTermStyle
8
+ };
@@ -0,0 +1,3 @@
1
+ import { CSSProperties } from 'react';
2
+
3
+ export declare const baseSuggestionLinkHoveredStyle: CSSProperties;
@@ -0,0 +1,7 @@
1
+ const o = {
2
+ background: "var(--color-main, #004A93)",
3
+ color: "var(--color-grayScale-white, #fff)"
4
+ };
5
+ export {
6
+ o as baseSuggestionLinkHoveredStyle
7
+ };
@@ -0,0 +1,3 @@
1
+ import { CSSProperties } from 'react';
2
+
3
+ export declare const baseSuggestionLinkStyle: CSSProperties;
@@ -0,0 +1,14 @@
1
+ const o = {
2
+ display: "inline-block",
3
+ padding: "8.5px 8px",
4
+ border: "1px solid var(--color-main, #004A93)",
5
+ borderRadius: "16px",
6
+ color: "var(--color-main, #004A93)",
7
+ fontSize: "11px",
8
+ lineHeight: "15px",
9
+ textTransform: "capitalize",
10
+ textDecoration: "none"
11
+ };
12
+ export {
13
+ o as baseSuggestionLinkStyle
14
+ };
@@ -0,0 +1,3 @@
1
+ import { CSSProperties } from 'react';
2
+
3
+ export declare const baseTitleStyle: CSSProperties;
@@ -0,0 +1,9 @@
1
+ const e = {
2
+ margin: 0,
3
+ fontSize: 20,
4
+ lineHeight: "24px",
5
+ color: "var(--color-grayScale, #1c1c1c)"
6
+ };
7
+ export {
8
+ e as baseTitleStyle
9
+ };
@@ -0,0 +1,10 @@
1
+ export interface SearchSuggestionsApiResponse {
2
+ data: {
3
+ searchSuggestions: {
4
+ searches: Searches[];
5
+ };
6
+ };
7
+ }
8
+ export interface Searches {
9
+ term: string;
10
+ }
@@ -0,0 +1,24 @@
1
+ import { CSSProperties } from 'react';
2
+
3
+ export interface SearchSuggestionsProps {
4
+ searchSuggestions: Array<{
5
+ term: string;
6
+ }>;
7
+ loading: boolean;
8
+ itemsToShow?: number;
9
+ searchFor?: string;
10
+ loadingText?: string;
11
+ searchForText?: string;
12
+ titleText?: string;
13
+ showMoreSuggestionsText?: string;
14
+ showLessSuggestionsText?: string;
15
+ searchForStyle?: CSSProperties;
16
+ searchForTermStyle?: CSSProperties;
17
+ titleStyle?: CSSProperties;
18
+ allSuggestionsContainerStyle?: CSSProperties;
19
+ suggestionLinkStyle?: CSSProperties;
20
+ suggestionLinkHoveredStyle?: CSSProperties;
21
+ buttonStyle?: CSSProperties;
22
+ buttonHoveredStyle?: CSSProperties;
23
+ urlSearch?: string;
24
+ }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@plurix/ecom-components",
3
3
  "author": "Plurix",
4
4
  "private": false,
5
- "version": "1.11.4",
5
+ "version": "1.11.6",
6
6
  "type": "module",
7
7
  "main": "dist/main.js",
8
8
  "types": "dist/main.d.ts",
@@ -1,22 +0,0 @@
1
- /// <reference types="react" />
2
- export interface ContactCardProps {
3
- title: string;
4
- subtitle?: string;
5
- image?: string;
6
- alt?: string;
7
- imgWidth?: number;
8
- linkItem?: {
9
- link: string;
10
- linkText: string;
11
- };
12
- backgroundColor?: string;
13
- color?: string;
14
- widthContainer?: number;
15
- heightContainer?: number;
16
- padding?: number | string;
17
- alignItems?: string;
18
- justifyContent?: string;
19
- marginRightLogo?: number;
20
- lineHeightContainer?: number | string;
21
- }
22
- export declare const ContactCard: ({ title, subtitle, image, alt, imgWidth, linkItem, backgroundColor, color, widthContainer, heightContainer, padding, alignItems, justifyContent, marginRightLogo, lineHeightContainer }: ContactCardProps) => JSX.Element;
@@ -1,40 +0,0 @@
1
- import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
- const j = ({
3
- title: o,
4
- subtitle: n,
5
- image: r,
6
- alt: l,
7
- imgWidth: s,
8
- linkItem: t,
9
- backgroundColor: c,
10
- color: a,
11
- widthContainer: d,
12
- heightContainer: h,
13
- padding: g,
14
- alignItems: x,
15
- justifyContent: p,
16
- marginRightLogo: y,
17
- lineHeightContainer: C
18
- }) => /* @__PURE__ */ i("div", { className: "container-card", style: {
19
- backgroundColor: c || "#25D366",
20
- color: a || "#FFFFFF",
21
- height: h,
22
- width: d,
23
- display: "flex",
24
- justifyContent: p || "center",
25
- padding: g || "16px 24px",
26
- alignItems: x || "center",
27
- lineHeight: C || "10px"
28
- }, children: [
29
- /* @__PURE__ */ e("div", { className: "logo", style: {
30
- marginRight: y || 10
31
- }, children: r && /* @__PURE__ */ e("img", { src: r, alt: l || "", width: s || 50 }) }),
32
- /* @__PURE__ */ i("div", { className: "text-box", children: [
33
- /* @__PURE__ */ e("p", { children: o }),
34
- n && /* @__PURE__ */ e("p", { children: n }),
35
- t && /* @__PURE__ */ e("a", { href: t.link, children: t.linkText })
36
- ] })
37
- ] });
38
- export {
39
- j as ContactCard
40
- };