@plurix/ecom-components 1.14.1-bugfix.0 → 1.14.1-bugfix.1
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.
- package/dist/constants/index.js +1 -1
- package/dist/main.d.ts +9 -2
- package/dist/main.js +18 -12
- package/dist/node_modules/@faststore/components/dist/esm/atoms/Button/Button.js +45 -0
- package/dist/node_modules/@faststore/components/dist/esm/atoms/Loader/Loader.js +34 -0
- package/dist/node_modules/@faststore/components/dist/esm/molecules/IconButton/IconButton.js +29 -0
- package/dist/packages/Carousel/Carousel.js +96 -92
- package/dist/packages/CartClubAlert/CartClubAlert.js +1 -1
- package/dist/packages/ChangeOrderModal/ChangeOrderModal.js +1 -1
- package/dist/packages/ChangeOrderModal/assets/icons.js +30 -19
- package/dist/packages/ContactCard/ContactCard.d.ts +22 -0
- package/dist/packages/ContactCard/ContactCard.js +40 -0
- package/dist/packages/Coupons/Coupons.js +31 -31
- package/dist/packages/Coupons/components/CouponCard.js +28 -28
- package/dist/packages/Coupons/components/Modal.js +60 -32
- package/dist/packages/Coupons/views/CouponsView.js +22 -22
- package/dist/packages/Modal/Modal.js +1 -1
- package/dist/packages/Onboarding/Onboarding.js +1 -1
- package/dist/packages/ProductCard/ProducCardUnavailable/index.d.ts +3 -0
- package/dist/packages/ProductCard/ProducCardUnavailable/index.js +67 -0
- package/dist/packages/ProductCard/ProductCardBadge/ProductCardBadgeClube.d.ts +5 -0
- package/dist/packages/ProductCard/ProductCardBadge/ProductCardBadgeClube.js +5 -0
- package/dist/packages/ProductCard/ProductCardBadge/ProductCardBadgeKg.d.ts +10 -0
- package/dist/packages/ProductCard/ProductCardBadge/ProductCardBadgeKg.js +15 -0
- package/dist/packages/ProductCard/ProductCardBadge/ProductCardDiscountBadge.d.ts +13 -0
- package/dist/packages/ProductCard/ProductCardBadge/ProductCardDiscountBadge.js +42 -0
- package/dist/packages/ProductCard/ProductCardButton/AddToCartButton.d.ts +5 -0
- package/dist/packages/ProductCard/ProductCardButton/AddToCartButton.js +16 -0
- package/dist/packages/ProductCard/ProductCardButton/CustomQuantitySelector/index.d.ts +12 -0
- package/dist/packages/ProductCard/ProductCardButton/CustomQuantitySelector/index.js +73 -0
- package/dist/packages/ProductCard/ProductCardButton/QuantitySelector.d.ts +12 -0
- package/dist/packages/ProductCard/ProductCardButton/QuantitySelector.js +74 -0
- package/dist/packages/ProductCard/ProductCardButton/index.d.ts +10 -0
- package/dist/packages/ProductCard/ProductCardButton/index.js +24 -0
- package/dist/packages/ProductCard/ProductCardHorizontal/index.d.ts +3 -0
- package/dist/packages/ProductCard/ProductCardHorizontal/index.js +156 -0
- package/dist/packages/ProductCard/ProductCardImage/index.d.ts +14 -0
- package/dist/packages/ProductCard/ProductCardImage/index.js +36 -0
- package/dist/packages/{ProductCardUi/ProductCardUiName/ProductCardUiName.d.ts → ProductCard/ProductCardName/index.d.ts} +0 -1
- package/dist/packages/ProductCard/ProductCardName/index.js +5 -0
- package/dist/packages/{ProductCardUi/ProductCardUiPrice/ProductCardUiPrice.d.ts → ProductCard/ProductCardPrice/index.d.ts} +3 -4
- package/dist/packages/ProductCard/ProductCardPrice/index.js +39 -0
- package/dist/packages/ProductCard/ProductCardPromotionFlag/index.d.ts +12 -0
- package/dist/packages/ProductCard/ProductCardPromotionFlag/index.js +21 -0
- package/dist/packages/ProductCard/ProductCardVertical/index.d.ts +3 -0
- package/dist/packages/ProductCard/ProductCardVertical/index.js +128 -0
- package/dist/packages/ProductCard/index.d.ts +3 -0
- package/dist/packages/ProductCard/index.js +61 -0
- package/dist/packages/{ProductCardUiSeeMore/ProductCardUiSeeMore.js → ProductCardSeeMore/ProductCardSeeMore.js} +4 -4
- package/dist/packages/ProductCardSeeMore/ProductCardSeeMoreHorizontal.d.ts +3 -0
- package/dist/packages/{ProductCardUiSeeMore/ProductCardUiSeeMoreHorizontal.js → ProductCardSeeMore/ProductCardSeeMoreHorizontal.js} +2 -2
- package/dist/packages/Regionalization/Regionalization.js +1 -1
- package/dist/packages/SearchSugestions/components/Button/index.d.ts +13 -0
- package/dist/packages/SearchSugestions/components/Button/index.js +53 -0
- package/dist/packages/SearchSugestions/components/Button/showMoreOrLess.d.ts +1 -0
- package/dist/packages/SearchSugestions/components/Button/showMoreOrLess.js +6 -0
- package/dist/packages/SearchSugestions/components/Link/index.d.ts +10 -0
- package/dist/packages/SearchSugestions/components/Link/index.js +39 -0
- package/dist/packages/SearchSugestions/components/Link/navigation.d.ts +1 -0
- package/dist/packages/SearchSugestions/components/Link/navigation.js +8 -0
- package/dist/packages/SearchSugestions/components/SearchSuggestions/index.d.ts +4 -0
- package/dist/packages/SearchSugestions/components/SearchSuggestions/index.js +91 -0
- package/dist/packages/SearchSugestions/components/SearchText/Index.d.ts +10 -0
- package/dist/packages/SearchSugestions/components/SearchText/Index.js +48 -0
- package/dist/packages/SearchSugestions/index.d.ts +3 -0
- package/dist/packages/SearchSugestions/index.js +4 -0
- package/dist/packages/SearchSugestions/mocks.d.ts +4 -0
- package/dist/packages/SearchSugestions/mocks.js +16 -0
- package/dist/packages/SearchSugestions/styles/baseAllSuggestionsContainerStyle.d.ts +3 -0
- package/dist/packages/SearchSugestions/styles/baseAllSuggestionsContainerStyle.js +10 -0
- package/dist/packages/SearchSugestions/styles/baseButtonHoveredStyle.d.ts +3 -0
- package/dist/packages/SearchSugestions/styles/baseButtonHoveredStyle.js +7 -0
- package/dist/packages/SearchSugestions/styles/baseButtonStyle.d.ts +3 -0
- package/dist/packages/SearchSugestions/styles/baseButtonStyle.js +13 -0
- package/dist/packages/SearchSugestions/styles/baseSearchForStyle.d.ts +3 -0
- package/dist/packages/SearchSugestions/styles/baseSearchForStyle.js +9 -0
- package/dist/packages/SearchSugestions/styles/baseSearchForTermStyle.d.ts +3 -0
- package/dist/packages/SearchSugestions/styles/baseSearchForTermStyle.js +8 -0
- package/dist/packages/SearchSugestions/styles/baseSuggestionLinkHoveredStyle.d.ts +3 -0
- package/dist/packages/SearchSugestions/styles/baseSuggestionLinkHoveredStyle.js +7 -0
- package/dist/packages/SearchSugestions/styles/baseSuggestionLinkStyle.d.ts +3 -0
- package/dist/packages/SearchSugestions/styles/baseSuggestionLinkStyle.js +14 -0
- package/dist/packages/SearchSugestions/styles/baseTitleStyle.d.ts +3 -0
- package/dist/packages/SearchSugestions/styles/baseTitleStyle.js +9 -0
- package/dist/packages/SearchSugestions/types/ResponseApi.d.ts +10 -0
- package/dist/packages/SearchSugestions/types/SearchSuggestionsProps.d.ts +24 -0
- package/dist/packages/Skeleton/components/SkeletonAnimation/SkeletonAnimation.d.ts +9 -0
- package/dist/packages/Skeleton/components/SkeletonAnimation/SkeletonAnimation.js +14 -0
- package/dist/packages/Skeleton/components/SkeletonContainer/SkeletonContainer.d.ts +15 -0
- package/dist/packages/Skeleton/components/SkeletonContainer/SkeletonContainer.js +22 -0
- package/dist/packages/Skeleton/components/SkeletonRender/SkeletonRender.d.ts +21 -0
- package/dist/packages/Skeleton/components/SkeletonRender/SkeletonRender.js +57 -0
- package/dist/packages/Skeleton/components/SkeletonTable/SkeletonTable.d.ts +12 -0
- package/dist/packages/Skeleton/components/SkeletonTable/SkeletonTable.js +18 -0
- package/dist/packages/Skeleton/components/SkeletonWrapper/SkeletonWrapper.d.ts +10 -0
- package/dist/packages/Skeleton/components/SkeletonWrapper/SkeletonWrapper.js +20 -0
- package/dist/packages/Skeleton/hooks/useResponsiveImages.d.ts +9 -0
- package/dist/packages/Skeleton/hooks/useResponsiveImages.js +34 -0
- package/dist/packages/Skeleton/index.d.ts +32 -0
- package/dist/packages/Skeleton/index.js +91 -0
- package/dist/packages/Skeleton/types/types.d.ts +42 -0
- package/dist/packages/Skeleton/types/types.js +1 -0
- package/dist/packages/Skeleton/utils/createStyleAnimation.d.ts +7 -0
- package/dist/packages/Skeleton/utils/createStyleAnimation.js +7 -0
- package/dist/packages/Skeleton/utils/createStyleCell.d.ts +18 -0
- package/dist/packages/Skeleton/utils/createStyleCell.js +19 -0
- package/dist/packages/Skeleton/utils/createStyleContainers.d.ts +33 -0
- package/dist/packages/Skeleton/utils/createStyleContainers.js +45 -0
- package/dist/packages/Skeleton/utils/createStyleTable.d.ts +12 -0
- package/dist/packages/Skeleton/utils/createStyleTable.js +9 -0
- package/dist/packages/Tour/Tour.js +1 -1
- package/dist/styles/change-order-modal.global.css +1 -1
- package/dist/styles/modal.global.css +1 -1
- package/dist/styles/onboarding.global.css +1 -1
- package/dist/styles/product-card-see-more-horizontal.global.css +1 -0
- package/dist/styles/product-card.global.css +1 -0
- package/dist/types/ProductCard.d.js +1 -0
- package/dist/types/{ProductCardUi.d.ts → ProductCard.d.ts} +21 -5
- package/dist/types/ProductCard.js +1 -0
- package/package.json +1 -1
- package/dist/packages/ProductCardUi/ProducCardUIUnavailable/ProductCardUnavailable.d.ts +0 -13
- package/dist/packages/ProductCardUi/ProducCardUIUnavailable/ProductCardUnavailable.js +0 -43
- package/dist/packages/ProductCardUi/ProducCardUIUnavailable/ProductCardUnavailableHorizontal.d.ts +0 -12
- package/dist/packages/ProductCardUi/ProducCardUIUnavailable/ProductCardUnavailableHorizontal.js +0 -36
- package/dist/packages/ProductCardUi/ProductCardUi.d.ts +0 -3
- package/dist/packages/ProductCardUi/ProductCardUi.js +0 -58
- package/dist/packages/ProductCardUi/ProductCardUiBadge/ProductCardUiBadgeClube.d.ts +0 -5
- package/dist/packages/ProductCardUi/ProductCardUiBadge/ProductCardUiBadgeClube.js +0 -7
- package/dist/packages/ProductCardUi/ProductCardUiBadge/ProductCardUiBadgeKg.d.ts +0 -9
- package/dist/packages/ProductCardUi/ProductCardUiBadge/ProductCardUiBadgeKg.js +0 -17
- package/dist/packages/ProductCardUi/ProductCardUiBadge/ProductCardUiDiscountBadge.d.ts +0 -12
- package/dist/packages/ProductCardUi/ProductCardUiBadge/ProductCardUiDiscountBadge.js +0 -35
- package/dist/packages/ProductCardUi/ProductCardUiButton/ProductCardUiButton.d.ts +0 -7
- package/dist/packages/ProductCardUi/ProductCardUiButton/ProductCardUiButton.js +0 -5
- package/dist/packages/ProductCardUi/ProductCardUiHorizontal/ProductCardUiHorizontal.d.ts +0 -3
- package/dist/packages/ProductCardUi/ProductCardUiHorizontal/ProductCardUiHorizontal.js +0 -132
- package/dist/packages/ProductCardUi/ProductCardUiImage/ProductCardUiImage.d.ts +0 -14
- package/dist/packages/ProductCardUi/ProductCardUiImage/ProductCardUiImage.js +0 -36
- package/dist/packages/ProductCardUi/ProductCardUiName/ProductCardUiName.js +0 -5
- package/dist/packages/ProductCardUi/ProductCardUiPrice/ProductCardUiPrice.js +0 -43
- package/dist/packages/ProductCardUi/ProductCardUiPromotionFlag/ProductCardUiPromotionFlag.d.ts +0 -12
- package/dist/packages/ProductCardUi/ProductCardUiPromotionFlag/ProductCardUiPromotionFlag.js +0 -18
- package/dist/packages/ProductCardUi/ProductCardUiVertical/ProductCardUiVertical.d.ts +0 -3
- package/dist/packages/ProductCardUi/ProductCardUiVertical/ProductCardUiVertical.js +0 -104
- package/dist/packages/ProductCardUiSeeMore/ProductCardUiSeeMoreHorizontal.d.ts +0 -3
- package/dist/styles/productCardUi.global.css +0 -1
- package/dist/styles/productCardUiSeeMoreHorizontal.global.css +0 -1
- package/dist/styles/styles.css +0 -1
- package/dist/styles/styles2.css +0 -1
- package/dist/styles/styles3.css +0 -1
- package/dist/styles/styles4.css +0 -1
- package/dist/styles/styles5.css +0 -1
- /package/dist/packages/{ProductCardUiSeeMore/ProductCardUiSeeMore.d.ts → ProductCardSeeMore/ProductCardSeeMore.d.ts} +0 -0
- /package/dist/{types/ProductCardUi.d.js → packages/SearchSugestions/types/ResponseApi.js} +0 -0
- /package/dist/{types/ProductCardUi.js → packages/SearchSugestions/types/SearchSuggestionsProps.js} +0 -0
package/dist/constants/index.js
CHANGED
package/dist/main.d.ts
CHANGED
|
@@ -6,7 +6,14 @@ 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';
|
|
9
11
|
export * from './types/ChangeOrderModal';
|
|
10
12
|
export { ChangeOrderModal } from './packages/ChangeOrderModal/ChangeOrderModal';
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
+
export { Skeleton } from './packages/Skeleton';
|
|
14
|
+
export type { SkeletonProps } from './packages/Skeleton';
|
|
15
|
+
export { SearchSuggestions } from './packages/SearchSugestions/components/SearchSuggestions';
|
|
16
|
+
export type { SearchSuggestionsProps } from './packages/SearchSugestions/types/SearchSuggestionsProps';
|
|
17
|
+
export type { SearchSuggestionsApiResponse, Searches } from './packages/SearchSugestions/types/ResponseApi';
|
|
18
|
+
export { ProductCard } from './packages/ProductCard';
|
|
19
|
+
export { ProductCardSeeMore } from './packages/ProductCardSeeMore/ProductCardSeeMore';
|
package/dist/main.js
CHANGED
|
@@ -2,21 +2,27 @@ import { CartClubAlert as e } from "./packages/CartClubAlert/CartClubAlert.js";
|
|
|
2
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
|
|
6
|
-
import { Regionalization as
|
|
7
|
-
import { Modal as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
5
|
+
import { Tour as n } from "./packages/Tour/Tour.js";
|
|
6
|
+
import { Regionalization as l } from "./packages/Regionalization/Regionalization.js";
|
|
7
|
+
import { Modal as g } from "./packages/Modal/Modal.js";
|
|
8
|
+
import { ContactCard as c } from "./packages/ContactCard/ContactCard.js";
|
|
9
|
+
import { ChangeOrderModal as S } from "./packages/ChangeOrderModal/ChangeOrderModal.js";
|
|
10
|
+
import { Skeleton as b } from "./packages/Skeleton/index.js";
|
|
11
|
+
import { SearchSuggestions as O } from "./packages/SearchSugestions/components/SearchSuggestions/index.js";
|
|
12
|
+
import { ProductCard as k } from "./packages/ProductCard/index.js";
|
|
13
|
+
import { ProductCardSeeMore as A } from "./packages/ProductCardSeeMore/ProductCardSeeMore.js";
|
|
11
14
|
export {
|
|
12
15
|
p as Carousel,
|
|
13
16
|
e as CartClubAlert,
|
|
14
|
-
|
|
17
|
+
S as ChangeOrderModal,
|
|
18
|
+
c as ContactCard,
|
|
15
19
|
f as Coupons,
|
|
16
|
-
|
|
20
|
+
g as Modal,
|
|
17
21
|
x as Onboarding,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
k as ProductCard,
|
|
23
|
+
A as ProductCardSeeMore,
|
|
24
|
+
l as Regionalization,
|
|
25
|
+
O as SearchSuggestions,
|
|
26
|
+
b as Skeleton,
|
|
27
|
+
n as Tour
|
|
22
28
|
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var R = Object.defineProperty;
|
|
2
|
+
var o = Object.getOwnPropertySymbols;
|
|
3
|
+
var b = Object.prototype.hasOwnProperty, m = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var l = (e, a, t) => a in e ? R(e, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[a] = t, p = (e, a) => {
|
|
5
|
+
for (var t in a || (a = {}))
|
|
6
|
+
b.call(a, t) && l(e, t, a[t]);
|
|
7
|
+
if (o)
|
|
8
|
+
for (var t of o(a))
|
|
9
|
+
m.call(a, t) && l(e, t, a[t]);
|
|
10
|
+
return e;
|
|
11
|
+
};
|
|
12
|
+
var c = (e, a) => {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var r in e)
|
|
15
|
+
b.call(e, r) && a.indexOf(r) < 0 && (t[r] = e[r]);
|
|
16
|
+
if (e != null && o)
|
|
17
|
+
for (var r of o(e))
|
|
18
|
+
a.indexOf(r) < 0 && m.call(e, r) && (t[r] = e[r]);
|
|
19
|
+
return t;
|
|
20
|
+
};
|
|
21
|
+
import n, { forwardRef as h } from "react";
|
|
22
|
+
import k from "../Loader/Loader.js";
|
|
23
|
+
const x = h(function(y, w) {
|
|
24
|
+
var s = y, { children: a, variant: t, inverse: r, size: i = "regular", testId: E = "fs-button", loading: f, loadingLabel: g, icon: u, iconPosition: d = "left", disabled: B } = s, v = c(s, ["children", "variant", "inverse", "size", "testId", "loading", "loadingLabel", "icon", "iconPosition", "disabled"]);
|
|
25
|
+
return n.createElement(
|
|
26
|
+
"button",
|
|
27
|
+
p({ ref: w, "data-fs-button": !0, "data-fs-button-inverse": r, "data-fs-button-size": i, "data-fs-button-loading": f, "data-fs-button-variant": t, disabled: B, "data-testid": E }, v),
|
|
28
|
+
n.createElement(
|
|
29
|
+
"div",
|
|
30
|
+
{ "data-fs-button-wrapper": !0 },
|
|
31
|
+
f && n.createElement(
|
|
32
|
+
"p",
|
|
33
|
+
{ "data-fs-button-loading-label": !0 },
|
|
34
|
+
g,
|
|
35
|
+
n.createElement(k, { variant: t === "primary" && !r ? "light" : "dark" })
|
|
36
|
+
),
|
|
37
|
+
!!u && d === "left" && n.createElement("span", { "data-fs-button-icon": !0 }, u),
|
|
38
|
+
a && n.createElement("span", null, a),
|
|
39
|
+
!!u && d === "right" && n.createElement("span", { "data-fs-button-icon": !0 }, u)
|
|
40
|
+
)
|
|
41
|
+
);
|
|
42
|
+
}), j = x;
|
|
43
|
+
export {
|
|
44
|
+
j as default
|
|
45
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
var u = Object.defineProperty;
|
|
2
|
+
var d = Object.getOwnPropertySymbols;
|
|
3
|
+
var f = Object.prototype.hasOwnProperty, l = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var s = (e, t, a) => t in e ? u(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a, m = (e, t) => {
|
|
5
|
+
for (var a in t || (t = {}))
|
|
6
|
+
f.call(t, a) && s(e, a, t[a]);
|
|
7
|
+
if (d)
|
|
8
|
+
for (var a of d(t))
|
|
9
|
+
l.call(t, a) && s(e, a, t[a]);
|
|
10
|
+
return e;
|
|
11
|
+
};
|
|
12
|
+
var c = (e, t) => {
|
|
13
|
+
var a = {};
|
|
14
|
+
for (var r in e)
|
|
15
|
+
f.call(e, r) && t.indexOf(r) < 0 && (a[r] = e[r]);
|
|
16
|
+
if (e != null && d)
|
|
17
|
+
for (var r of d(e))
|
|
18
|
+
t.indexOf(r) < 0 && l.call(e, r) && (a[r] = e[r]);
|
|
19
|
+
return a;
|
|
20
|
+
};
|
|
21
|
+
import o, { forwardRef as p } from "react";
|
|
22
|
+
const E = p(function(L, i) {
|
|
23
|
+
var n = L, { testId: t = "fs-loader", variant: a = "dark" } = n, r = c(n, ["testId", "variant"]);
|
|
24
|
+
return o.createElement(
|
|
25
|
+
"span",
|
|
26
|
+
m({ ref: i, "data-fs-loader": !0, "data-fs-loader-variant": a, "data-testid": t }, r),
|
|
27
|
+
o.createElement("span", { "data-fs-loader-item": !0 }),
|
|
28
|
+
o.createElement("span", { "data-fs-loader-item": !0 }),
|
|
29
|
+
o.createElement("span", { "data-fs-loader-item": !0 })
|
|
30
|
+
);
|
|
31
|
+
}), v = E;
|
|
32
|
+
export {
|
|
33
|
+
v as default
|
|
34
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var I = Object.defineProperty;
|
|
2
|
+
var r = Object.getOwnPropertySymbols;
|
|
3
|
+
var f = Object.prototype.hasOwnProperty, s = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var c = (t, e, o) => e in t ? I(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o, i = (t, e) => {
|
|
5
|
+
for (var o in e || (e = {}))
|
|
6
|
+
f.call(e, o) && c(t, o, e[o]);
|
|
7
|
+
if (r)
|
|
8
|
+
for (var o of r(e))
|
|
9
|
+
s.call(e, o) && c(t, o, e[o]);
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
var l = (t, e) => {
|
|
13
|
+
var o = {};
|
|
14
|
+
for (var n in t)
|
|
15
|
+
f.call(t, n) && e.indexOf(n) < 0 && (o[n] = t[n]);
|
|
16
|
+
if (t != null && r)
|
|
17
|
+
for (var n of r(t))
|
|
18
|
+
e.indexOf(n) < 0 && s.call(t, n) && (o[n] = t[n]);
|
|
19
|
+
return o;
|
|
20
|
+
};
|
|
21
|
+
import p, { forwardRef as R } from "react";
|
|
22
|
+
import g from "../../atoms/Button/Button.js";
|
|
23
|
+
const w = R(function(x, B) {
|
|
24
|
+
var a = x, { icon: e, children: o, testId: n = "fs-icon-button", "aria-label": b, size: d = "regular", variant: u } = a, m = l(a, ["icon", "children", "testId", "aria-label", "size", "variant"]);
|
|
25
|
+
return p.createElement(g, i({ ref: B, "data-fs-button": !0, "data-fs-icon-button": !0, variant: u != null ? u : "tertiary", icon: e, "aria-label": b, testId: n, size: d }, m), o);
|
|
26
|
+
}), $ = w;
|
|
27
|
+
export {
|
|
28
|
+
$ as default
|
|
29
|
+
};
|
|
@@ -1,132 +1,136 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
var H = Object.defineProperty, J = Object.defineProperties;
|
|
2
|
+
var K = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var k = Object.getOwnPropertySymbols;
|
|
4
|
+
var O = Object.prototype.hasOwnProperty, T = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var S = (s, r, t) => r in s ? H(s, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[r] = t, d = (s, r) => {
|
|
6
|
+
for (var t in r || (r = {}))
|
|
7
|
+
O.call(r, t) && S(s, t, r[t]);
|
|
8
|
+
if (k)
|
|
9
|
+
for (var t of k(r))
|
|
10
|
+
T.call(r, t) && S(s, t, r[t]);
|
|
11
|
+
return s;
|
|
12
|
+
}, C = (s, r) => J(s, K(r));
|
|
13
|
+
import { jsx as o, Fragment as U, jsxs as A } from "react/jsx-runtime";
|
|
14
|
+
import { Children as X, useState as m, useRef as D, useEffect as Y } from "react";
|
|
15
|
+
import Z from "./components/Bullets.js";
|
|
16
|
+
import E from "./components/Arrows.js";
|
|
17
|
+
import { DefaultProps as M } from "./utils/defaultProps.js";
|
|
18
|
+
/* empty css */const rt = ({
|
|
19
|
+
children: s,
|
|
20
|
+
id: r,
|
|
21
|
+
bullet: t,
|
|
22
|
+
arrow: i,
|
|
23
|
+
qtyItems: u,
|
|
24
|
+
gapItems: W = 4,
|
|
25
|
+
itemWidthProp: f = 0,
|
|
26
|
+
isMobile: g
|
|
15
27
|
}) => {
|
|
16
|
-
const
|
|
17
|
-
bullets: {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
...r == null ? void 0 : r.style
|
|
28
|
+
const y = X.toArray(s), [F, N] = m(0), [B, I] = m(0), [Q, R] = m(f), [V, j] = m(null), c = D(null), l = D(null), v = {
|
|
29
|
+
bullets: d(d({}, M.styles.bullets), t == null ? void 0 : t.style),
|
|
30
|
+
arrows: d(d({}, M.styles.arrows), i == null ? void 0 : i.style)
|
|
31
|
+
}, p = () => {
|
|
32
|
+
if (c.current) {
|
|
33
|
+
const n = c.current.scrollWidth, e = c.current.scrollLeft, a = c.current.offsetWidth, h = Math.ceil(n / a), G = Math.round(e / (n / h) - 0.3) + 1;
|
|
34
|
+
j(`${G}/${h}`);
|
|
24
35
|
}
|
|
25
|
-
},
|
|
26
|
-
if (
|
|
27
|
-
const
|
|
28
|
-
I(
|
|
36
|
+
}, w = () => {
|
|
37
|
+
if (c.current && l.current) {
|
|
38
|
+
const n = l.current.clientWidth, e = c.current.scrollLeft, a = Math.round(e / n);
|
|
39
|
+
I(a);
|
|
29
40
|
}
|
|
30
|
-
},
|
|
31
|
-
if (
|
|
32
|
-
const e =
|
|
33
|
-
|
|
41
|
+
}, L = (n) => {
|
|
42
|
+
if (c.current && l.current) {
|
|
43
|
+
const e = l.current.clientWidth;
|
|
44
|
+
n === "prev" && (c.current.scrollLeft -= e), n === "next" && (c.current.scrollLeft += e);
|
|
34
45
|
}
|
|
35
|
-
},
|
|
36
|
-
if (
|
|
37
|
-
const
|
|
38
|
-
|
|
46
|
+
}, $ = () => {
|
|
47
|
+
if (c.current && l.current) {
|
|
48
|
+
const n = l.current.clientWidth, e = c.current.offsetWidth, a = c.current.scrollWidth, h = Math.round((a - e) / n);
|
|
49
|
+
N(u ? Math.ceil(y.length - u) : h);
|
|
39
50
|
}
|
|
40
|
-
},
|
|
41
|
-
if (
|
|
42
|
-
const e =
|
|
43
|
-
|
|
51
|
+
}, _ = (n) => {
|
|
52
|
+
if (c.current && l.current) {
|
|
53
|
+
const e = l.current.clientWidth;
|
|
54
|
+
c.current.scrollLeft = e * n;
|
|
44
55
|
}
|
|
45
|
-
},
|
|
46
|
-
if (
|
|
47
|
-
const
|
|
48
|
-
|
|
56
|
+
}, x = (n) => {
|
|
57
|
+
if (c.current && f === 0) {
|
|
58
|
+
const a = c.current.offsetWidth / n;
|
|
59
|
+
R(a);
|
|
49
60
|
}
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
-
const o = n.current.offsetWidth / e;
|
|
53
|
-
M(o);
|
|
54
|
-
}
|
|
55
|
-
}, V = {
|
|
56
|
-
width: `${a || (E < 150 ? 150 : 226)}px`
|
|
61
|
+
}, z = {
|
|
62
|
+
width: `${f || (Q < 150 ? 150 : 226)}px`
|
|
57
63
|
};
|
|
58
|
-
return typeof window
|
|
59
|
-
|
|
60
|
-
}),
|
|
61
|
-
var
|
|
62
|
-
|
|
63
|
-
|
|
64
|
+
return typeof window != "undefined" && window.addEventListener("resize", () => {
|
|
65
|
+
p(), $(), u && x(u);
|
|
66
|
+
}), Y(() => {
|
|
67
|
+
var n;
|
|
68
|
+
u && x(u), $(), p(), (n = c.current) == null || n.addEventListener("scroll", () => {
|
|
69
|
+
p(), w();
|
|
64
70
|
});
|
|
65
|
-
}, [
|
|
66
|
-
/* @__PURE__ */
|
|
67
|
-
(
|
|
68
|
-
|
|
71
|
+
}, [c]), /* @__PURE__ */ o(U, { children: /* @__PURE__ */ A("div", { id: "carousel", "data-testid": "Carousel", children: [
|
|
72
|
+
/* @__PURE__ */ A("div", { className: "carousel-content", children: [
|
|
73
|
+
(i == null ? void 0 : i.isVisible) && /* @__PURE__ */ o("div", { className: "carousel-arrow-button-prev", children: /* @__PURE__ */ o(
|
|
74
|
+
E,
|
|
69
75
|
{
|
|
70
76
|
position: "prev",
|
|
71
|
-
style:
|
|
72
|
-
iconColor:
|
|
73
|
-
onClick: () =>
|
|
77
|
+
style: v.arrows,
|
|
78
|
+
iconColor: i.iconColor || "#ccc",
|
|
79
|
+
onClick: () => L("prev")
|
|
74
80
|
}
|
|
75
81
|
) }),
|
|
76
|
-
/* @__PURE__ */
|
|
82
|
+
/* @__PURE__ */ o(
|
|
77
83
|
"div",
|
|
78
84
|
{
|
|
79
|
-
ref:
|
|
85
|
+
ref: c,
|
|
80
86
|
className: "carousel-container",
|
|
81
|
-
id: `carousel-container-tracking${
|
|
82
|
-
children:
|
|
87
|
+
id: `carousel-container-tracking${r ? "-" + r : ""}`,
|
|
88
|
+
children: y.map((n, e) => /* @__PURE__ */ o(
|
|
83
89
|
"div",
|
|
84
90
|
{
|
|
85
91
|
className: "container-item",
|
|
86
|
-
style: {
|
|
87
|
-
...V,
|
|
92
|
+
style: C(d({}, z), {
|
|
88
93
|
transition: "all 0.5s ease-out",
|
|
89
|
-
marginRight: `${
|
|
90
|
-
marginBottom: `${
|
|
91
|
-
},
|
|
92
|
-
ref:
|
|
93
|
-
children:
|
|
94
|
+
marginRight: `${g ? 0 : W}px`,
|
|
95
|
+
marginBottom: `${g ? W : 0}px`
|
|
96
|
+
}),
|
|
97
|
+
ref: l,
|
|
98
|
+
children: n
|
|
94
99
|
},
|
|
95
|
-
|
|
100
|
+
e
|
|
96
101
|
))
|
|
97
102
|
}
|
|
98
103
|
),
|
|
99
|
-
|
|
100
|
-
|
|
104
|
+
i != null && i.isVisible ? /* @__PURE__ */ o("div", { className: "carousel-arrow-button-next", children: /* @__PURE__ */ o(
|
|
105
|
+
E,
|
|
101
106
|
{
|
|
102
107
|
position: "next",
|
|
103
|
-
style:
|
|
104
|
-
iconColor:
|
|
105
|
-
onClick: () =>
|
|
108
|
+
style: v.arrows,
|
|
109
|
+
iconColor: i.iconColor || "#ccc",
|
|
110
|
+
onClick: () => L("next")
|
|
106
111
|
}
|
|
107
112
|
) }) : ""
|
|
108
113
|
] }),
|
|
109
|
-
(
|
|
110
|
-
|
|
111
|
-
(
|
|
112
|
-
|
|
114
|
+
(t == null ? void 0 : t.numeric) && /* @__PURE__ */ o("div", { className: "numeric-bullets", children: V }),
|
|
115
|
+
t != null && t.isVisible ? /* @__PURE__ */ o("div", { className: "bullets-container", children: Array.from({ length: F + 1 }, (n, e) => e + 1).map(
|
|
116
|
+
(n, e) => /* @__PURE__ */ o(
|
|
117
|
+
Z,
|
|
113
118
|
{
|
|
114
119
|
onClick: () => {
|
|
115
|
-
|
|
120
|
+
_(e);
|
|
116
121
|
},
|
|
117
|
-
index:
|
|
118
|
-
style: {
|
|
119
|
-
...f.bullets,
|
|
122
|
+
index: e,
|
|
123
|
+
style: C(d({}, v.bullets), {
|
|
120
124
|
transition: "all 0.8s ease-out",
|
|
121
|
-
backgroundColor: `${
|
|
122
|
-
},
|
|
123
|
-
isActive:
|
|
125
|
+
backgroundColor: `${B === e ? (t == null ? void 0 : t.bulletEnableColor) || "#ff0000" : (t == null ? void 0 : t.bulletDisableColor) || "#ccc"}`
|
|
126
|
+
}),
|
|
127
|
+
isActive: B === e
|
|
124
128
|
},
|
|
125
|
-
|
|
129
|
+
e
|
|
126
130
|
)
|
|
127
131
|
) }) : ""
|
|
128
132
|
] }) });
|
|
129
133
|
};
|
|
130
134
|
export {
|
|
131
|
-
|
|
135
|
+
rt as Carousel
|
|
132
136
|
};
|
|
@@ -4,7 +4,7 @@ import { Modal as M } from "../Modal/Modal.js";
|
|
|
4
4
|
import { ProductSelected as N } from "./components/ProductSelected.js";
|
|
5
5
|
import { SimilarProducts as k } from "./components/SimilarProducts.js";
|
|
6
6
|
import { ModalFooter as v } from "./components/ModalFooter.js";
|
|
7
|
-
/* empty css
|
|
7
|
+
/* empty css */import { Skeleton as A } from "@acctglobal/skeleton";
|
|
8
8
|
import { getProductsSimilars as E } from "./api/getProductsSimilars.js";
|
|
9
9
|
import _ from "../../hooks/useAnalitcsEvents.js";
|
|
10
10
|
import { NoSimilarProduct as J } from "./components/NoSimilarProduct.js";
|
|
@@ -1,24 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
var c = Object.defineProperty;
|
|
2
|
+
var l = Object.getOwnPropertySymbols;
|
|
3
|
+
var s = Object.prototype.hasOwnProperty, h = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var n = (o, C, e) => C in o ? c(o, C, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[C] = e, a = (o, C) => {
|
|
5
|
+
for (var e in C || (C = {}))
|
|
6
|
+
s.call(C, e) && n(o, e, C[e]);
|
|
7
|
+
if (l)
|
|
8
|
+
for (var e of l(C))
|
|
9
|
+
h.call(C, e) && n(o, e, C[e]);
|
|
10
|
+
return o;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as r, jsxs as d } from "react/jsx-runtime";
|
|
13
|
+
const v = ({
|
|
14
|
+
iconId: o,
|
|
15
|
+
color: C,
|
|
16
|
+
heigth: e,
|
|
17
|
+
size: t,
|
|
18
|
+
width: i
|
|
8
19
|
}) => ({
|
|
9
|
-
Check: /* @__PURE__ */
|
|
20
|
+
Check: /* @__PURE__ */ r(
|
|
10
21
|
"svg",
|
|
11
22
|
{
|
|
12
|
-
width:
|
|
13
|
-
height:
|
|
23
|
+
width: t || i || "10",
|
|
24
|
+
height: t || e || "8",
|
|
14
25
|
viewBox: "0 0 10 8",
|
|
15
26
|
fill: "none",
|
|
16
27
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17
|
-
children: /* @__PURE__ */
|
|
28
|
+
children: /* @__PURE__ */ r(
|
|
18
29
|
"path",
|
|
19
30
|
{
|
|
20
31
|
d: "M1 4.00016L3.66667 6.66683L9 1.3335",
|
|
21
|
-
stroke:
|
|
32
|
+
stroke: C || "var(--color-grayScale-white)",
|
|
22
33
|
strokeWidth: "1.2",
|
|
23
34
|
strokeLinecap: "round",
|
|
24
35
|
strokeLinejoin: "round"
|
|
@@ -26,7 +37,7 @@ const a = ({
|
|
|
26
37
|
)
|
|
27
38
|
}
|
|
28
39
|
),
|
|
29
|
-
Trash: /* @__PURE__ */
|
|
40
|
+
Trash: /* @__PURE__ */ d(
|
|
30
41
|
"svg",
|
|
31
42
|
{
|
|
32
43
|
width: "24",
|
|
@@ -35,28 +46,28 @@ const a = ({
|
|
|
35
46
|
fill: "none",
|
|
36
47
|
xmlns: "http://www.w3.org/2000/svg",
|
|
37
48
|
children: [
|
|
38
|
-
/* @__PURE__ */
|
|
49
|
+
/* @__PURE__ */ r(
|
|
39
50
|
"path",
|
|
40
51
|
{
|
|
41
52
|
d: "M8.54916 5.63072C8.52824 5.27321 8.52824 4.91488 8.54916 4.55737C8.59731 4.13015 8.81097 3.73515 9.14856 3.44917C9.48614 3.16319 9.92354 3.00662 10.3759 3.00988C11.4504 2.99671 12.5249 2.99671 13.5994 3.00988C13.8457 3.00761 14.0899 3.05241 14.3176 3.14158C14.5452 3.23075 14.7517 3.36248 14.9247 3.52895C15.0977 3.69542 15.2337 3.89325 15.3246 4.11064C15.4155 4.32803 15.4595 4.56056 15.4539 4.79442C15.4539 5.0644 15.4539 5.33769 15.4539 5.63072H15.7069H20.1644C20.2716 5.6272 20.3789 5.63715 20.4834 5.66034C20.6376 5.70026 20.7726 5.78958 20.8654 5.91319C20.9583 6.03679 21.0033 6.18705 20.9929 6.33857C20.9788 6.49301 20.9078 6.63779 20.7924 6.7474C20.677 6.85701 20.5246 6.92445 20.362 6.93783C20.0154 6.93783 19.6688 6.93783 19.3013 6.93783C19.1627 6.93783 19.1003 6.96418 19.0899 7.11563C18.949 9.36989 18.8022 11.6252 18.6497 13.8817C18.5527 15.4061 18.4556 16.9305 18.3481 18.4549C18.3083 19.1365 17.995 19.7778 17.4729 20.2469C16.9507 20.7159 16.2593 20.9772 15.5406 20.977C13.1801 20.977 10.823 20.977 8.46598 20.977C7.7366 20.9697 7.03841 20.695 6.51717 20.2103C5.99593 19.7256 5.69201 19.0684 5.66881 18.3759C5.56482 16.6013 5.42616 14.8233 5.30137 13.0487C5.19277 11.4946 5.0865 9.94278 4.98251 8.39312C4.95478 7.9618 4.92012 7.53377 4.89932 7.10245C4.89932 6.97404 4.84039 6.93783 4.7156 6.94112C4.38978 6.94112 4.0674 6.94112 3.74158 6.94112C3.55772 6.94112 3.38136 6.87174 3.25135 6.74824C3.12135 6.62475 3.04834 6.45727 3.04834 6.28263C3.04834 6.10798 3.12135 5.9405 3.25135 5.81701C3.38136 5.69352 3.55772 5.62413 3.74158 5.62413H8.24765L8.54916 5.63072ZM6.33083 6.99381C6.33083 7.05966 6.33083 7.12551 6.33083 7.19465C6.42095 8.68944 6.51224 10.1864 6.60467 11.6856C6.74332 13.8883 6.88541 16.0876 7.01713 18.2903C7.01546 18.4778 7.05417 18.6637 7.13086 18.8365C7.20755 19.0093 7.3206 19.1654 7.4631 19.2952C7.60559 19.425 7.77452 19.5258 7.9595 19.5914C8.14448 19.6569 8.34166 19.6858 8.53884 19.6764H15.4712C15.6686 19.6863 15.8659 19.6577 16.0511 19.5923C16.2363 19.527 16.4054 19.4262 16.548 19.2963C16.6906 19.1664 16.8036 19.0101 16.8802 18.8371C16.9567 18.6641 16.995 18.478 16.9929 18.2903C16.9929 18.0104 17.0275 17.7306 17.0483 17.4507C17.1569 15.7825 17.2725 14.1143 17.3949 12.4461C17.4897 11.004 17.5844 9.56192 17.6792 8.11982C17.7034 7.75435 17.7242 7.38562 17.7485 6.99381H6.33083ZM14.0535 5.62413C14.0625 5.6062 14.0695 5.58743 14.0744 5.56814C14.0744 5.33767 14.0744 5.1039 14.0744 4.87014C14.0744 4.50796 13.9322 4.36967 13.5544 4.36638H10.4348C10.1714 4.36638 9.9738 4.47175 9.95993 4.66601C9.9322 4.99525 9.95993 5.30147 9.95993 5.62413H14.0535Z",
|
|
42
53
|
fill: "var(--color-negativeFeedback)"
|
|
43
54
|
}
|
|
44
55
|
),
|
|
45
|
-
/* @__PURE__ */
|
|
56
|
+
/* @__PURE__ */ r(
|
|
46
57
|
"path",
|
|
47
58
|
{
|
|
48
59
|
d: "M9.92547 13.2957C9.92547 14.4612 9.92547 15.6235 9.92547 16.7891C9.93338 16.9518 9.87749 17.1115 9.76866 17.2374C9.65983 17.3632 9.50572 17.4463 9.33615 17.4706C9.16629 17.4933 8.99364 17.4553 8.85151 17.3641C8.70938 17.2729 8.60787 17.1349 8.56666 16.9767C8.54797 16.8968 8.53988 16.8149 8.54246 16.7331V9.88799C8.54246 9.71334 8.61546 9.54586 8.74547 9.42237C8.87548 9.29888 9.05184 9.22949 9.2357 9.22949C9.41956 9.22949 9.59583 9.29888 9.72584 9.42237C9.85585 9.54586 9.92894 9.71334 9.92894 9.88799C9.92547 11.0206 9.92547 12.1598 9.92547 13.2957Z",
|
|
49
60
|
fill: "var(--color-negativeFeedback)"
|
|
50
61
|
}
|
|
51
62
|
),
|
|
52
|
-
/* @__PURE__ */
|
|
63
|
+
/* @__PURE__ */ r(
|
|
53
64
|
"path",
|
|
54
65
|
{
|
|
55
66
|
d: "M11.3084 13.2955C11.3084 12.1366 11.3084 10.9908 11.3084 9.82199C11.3089 9.66148 11.3711 9.50667 11.4833 9.38667C11.5956 9.26668 11.7501 9.18977 11.9178 9.17036C12.0855 9.15095 12.255 9.1904 12.3942 9.28129C12.5335 9.37218 12.633 9.50826 12.6741 9.66395C12.6845 9.75918 12.6845 9.85517 12.6741 9.9504C12.6741 12.1893 12.6741 14.4292 12.6741 16.6703C12.6741 16.7197 12.6741 16.7691 12.6741 16.8152C12.6741 16.9899 12.601 17.1573 12.471 17.2808C12.341 17.4043 12.1647 17.4737 11.9808 17.4737C11.797 17.4737 11.6206 17.4043 11.4906 17.2808C11.3606 17.1573 11.2876 16.9899 11.2876 16.8152C11.3049 15.6398 11.3084 14.4644 11.3084 13.2955Z",
|
|
56
67
|
fill: "var(--color-negativeFeedback)"
|
|
57
68
|
}
|
|
58
69
|
),
|
|
59
|
-
/* @__PURE__ */
|
|
70
|
+
/* @__PURE__ */ r(
|
|
60
71
|
"path",
|
|
61
72
|
{
|
|
62
73
|
d: "M14.0782 13.2955C14.0782 12.1366 14.0782 10.9908 14.0782 9.82199C14.0787 9.66148 14.1409 9.50667 14.2531 9.38667C14.3653 9.26668 14.5198 9.18977 14.6876 9.17036C14.8553 9.15095 15.0247 9.1904 15.164 9.28129C15.3033 9.37218 15.4028 9.50826 15.4438 9.66395C15.4601 9.75861 15.4659 9.8546 15.4612 9.9504C15.4612 12.1893 15.4612 14.4292 15.4612 16.6703C15.4612 16.7197 15.4612 16.7691 15.4612 16.8152C15.4612 16.9899 15.3881 17.1573 15.2581 17.2808C15.1281 17.4043 14.9518 17.4737 14.7679 17.4737C14.5841 17.4737 14.4077 17.4043 14.2777 17.2808C14.1477 17.1573 14.0747 16.9899 14.0747 16.8152C14.0747 15.6398 14.0782 14.4644 14.0782 13.2955Z",
|
|
@@ -66,7 +77,7 @@ const a = ({
|
|
|
66
77
|
]
|
|
67
78
|
}
|
|
68
79
|
)
|
|
69
|
-
})[
|
|
80
|
+
})[o], k = (o) => /* @__PURE__ */ r(v, a({}, o));
|
|
70
81
|
export {
|
|
71
|
-
|
|
82
|
+
k as Icons
|
|
72
83
|
};
|
|
@@ -0,0 +1,22 @@
|
|
|
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;
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
};
|