@websolutespa/bom-mixer-ui 0.0.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/CHANGELOG.md +7 -0
- package/README.md +11 -0
- package/dist/carousel-1-DVCEK6QW.mjs +13 -0
- package/dist/carousel-1-DXYGMXKJ.mjs +14 -0
- package/dist/chunk-2NOCZCBX.mjs +494 -0
- package/dist/chunk-2QPVBWSO.mjs +27 -0
- package/dist/chunk-3O6XPTXR.mjs +54 -0
- package/dist/chunk-4G2V76JL.mjs +87 -0
- package/dist/chunk-4GP5DTTM.mjs +1101 -0
- package/dist/chunk-56QPQUHL.mjs +87 -0
- package/dist/chunk-5HED55DH.mjs +89 -0
- package/dist/chunk-5JVP5WNM.mjs +109 -0
- package/dist/chunk-5OIM36YU.mjs +43 -0
- package/dist/chunk-6HX6MNJA.mjs +808 -0
- package/dist/chunk-6RQBZFNK.mjs +13 -0
- package/dist/chunk-74GX2GU5.mjs +84 -0
- package/dist/chunk-A5PJ35ED.mjs +30 -0
- package/dist/chunk-A7SAZJPB.mjs +54 -0
- package/dist/chunk-AWRVGAMB.mjs +34 -0
- package/dist/chunk-B5WDQW62.mjs +469 -0
- package/dist/chunk-CCBJBAAA.mjs +47 -0
- package/dist/chunk-DANHURV6.mjs +84 -0
- package/dist/chunk-DBOW5IIN.mjs +5138 -0
- package/dist/chunk-DC3AZYXP.mjs +48 -0
- package/dist/chunk-DV6WR2TC.mjs +51 -0
- package/dist/chunk-G4IKIC5S.mjs +36 -0
- package/dist/chunk-GDCL5WRV.mjs +47 -0
- package/dist/chunk-GGXSEAD2.mjs +494 -0
- package/dist/chunk-GNG6WR62.mjs +220 -0
- package/dist/chunk-GZ4XU7KO.mjs +84 -0
- package/dist/chunk-HCSER4UQ.mjs +31 -0
- package/dist/chunk-IF5CE4SD.mjs +89 -0
- package/dist/chunk-IG66RP7S.mjs +54 -0
- package/dist/chunk-IK736OHT.mjs +31 -0
- package/dist/chunk-IZQZVLFR.mjs +84 -0
- package/dist/chunk-J7LSTFGB.mjs +51 -0
- package/dist/chunk-JQPC4MHB.mjs +40 -0
- package/dist/chunk-JTGZNI2A.mjs +92 -0
- package/dist/chunk-JYFB4EY7.mjs +26 -0
- package/dist/chunk-KJAR4KTH.mjs +114 -0
- package/dist/chunk-LEHIZSHR.mjs +122 -0
- package/dist/chunk-LSXKWZBB.mjs +808 -0
- package/dist/chunk-LV3AK64L.mjs +37 -0
- package/dist/chunk-MU4CJBV7.mjs +82 -0
- package/dist/chunk-MW5M3AIG.mjs +29 -0
- package/dist/chunk-MZ764V34.mjs +33 -0
- package/dist/chunk-N5J24WJE.mjs +22 -0
- package/dist/chunk-NLXIPXSN.mjs +44 -0
- package/dist/chunk-NM3CSEJ3.mjs +33 -0
- package/dist/chunk-NWHJ5ZAA.mjs +27 -0
- package/dist/chunk-OAAW3SV6.mjs +199 -0
- package/dist/chunk-OAVF6LFH.mjs +58 -0
- package/dist/chunk-PFPUP4FL.mjs +807 -0
- package/dist/chunk-QSN3F243.mjs +33 -0
- package/dist/chunk-QXUK3J2W.mjs +199 -0
- package/dist/chunk-RU2KB7XM.mjs +51 -0
- package/dist/chunk-SBQY6FWU.mjs +77 -0
- package/dist/chunk-TNJCCH5V.mjs +220 -0
- package/dist/chunk-U4CLZOPI.mjs +232 -0
- package/dist/chunk-UGZQFVRQ.mjs +29 -0
- package/dist/chunk-VTNTTQXM.mjs +54 -0
- package/dist/chunk-W346ZVLC.mjs +13 -0
- package/dist/chunk-XAXJC3FV.mjs +36 -0
- package/dist/chunk-Y2QTR7KM.mjs +55 -0
- package/dist/chunk-ZBPDMEV4.mjs +122 -0
- package/dist/chunk-ZFNJUDPN.mjs +43 -0
- package/dist/download-1-FRTTCFSC.mjs +14 -0
- package/dist/download-1-HFDPW6PG.mjs +13 -0
- package/dist/index.d.ts +2548 -0
- package/dist/index.js +15611 -0
- package/dist/index.mjs +11555 -0
- package/dist/magazine-related-D3WTHTLF.mjs +14 -0
- package/dist/magazine-related-JCGUUCUP.mjs +15 -0
- package/dist/media-full-1-BDODTFLB.mjs +10 -0
- package/dist/media-full-1-EBZLR4NY.mjs +10 -0
- package/dist/media-full-2-2PO7MSS6.mjs +11 -0
- package/dist/media-full-2-M4O7HRCV.mjs +11 -0
- package/dist/media-media-1-ET3G2SWF.mjs +12 -0
- package/dist/media-media-1-HIJUPGM7.mjs +12 -0
- package/dist/media-media-1-V6ZQ6RZG.mjs +12 -0
- package/dist/not-found-JWIKAAPV.mjs +10 -0
- package/dist/not-found-YT633IOF.mjs +10 -0
- package/dist/products-detail-download-4FB5IJ3Q.mjs +13 -0
- package/dist/products-detail-download-7G2TYM3Q.mjs +14 -0
- package/dist/products-detail-related-2PVSOSDY.mjs +16 -0
- package/dist/products-detail-related-EVYW6HQA.mjs +15 -0
- package/dist/products-detail-related-YIFMTUCQ.mjs +15 -0
- package/dist/products-detail-size-color-AKSUWV6K.mjs +15 -0
- package/dist/products-detail-size-color-DN3E6KET.mjs +15 -0
- package/dist/products-detail-size-color-YLQ352FR.mjs +15 -0
- package/dist/related-1-27HY3JEE.mjs +16 -0
- package/dist/related-1-RW2MS6XN.mjs +15 -0
- package/dist/related-1-XXICN6PY.mjs +15 -0
- package/dist/shop-detail-related-AW5RTFOH.mjs +15 -0
- package/dist/shop-detail-related-OS5YUH6Y.mjs +15 -0
- package/dist/shop-detail-related-SQ5MBIA2.mjs +16 -0
- package/dist/sizes-colors-1-IPWE45PQ.mjs +15 -0
- package/dist/sizes-colors-1-JSJSGDQB.mjs +15 -0
- package/dist/sizes-colors-1-R36L2GI3.mjs +15 -0
- package/dist/text-1-265D6JDN.mjs +11 -0
- package/dist/text-1-4LCCLSTO.mjs +11 -0
- package/dist/text-aside-1-5COCRCVM.mjs +12 -0
- package/dist/text-aside-1-H56SUGSM.mjs +12 -0
- package/dist/text-aside-1-YIXPMUBS.mjs +12 -0
- package/dist/text-media-1-FTVDNKGV.mjs +13 -0
- package/dist/text-media-1-QQY7WNS2.mjs +13 -0
- package/dist/text-media-1-ZGI6ITM6.mjs +13 -0
- package/dist/text-text-1-KCRMHXGX.mjs +11 -0
- package/dist/text-text-1-NOFPMB5T.mjs +11 -0
- package/package.json +79 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Card
|
|
3
|
+
} from "./chunk-ZBPDMEV4.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Flex
|
|
6
|
+
} from "./chunk-QXUK3J2W.mjs";
|
|
7
|
+
import {
|
|
8
|
+
require_link
|
|
9
|
+
} from "./chunk-DBOW5IIN.mjs";
|
|
10
|
+
import {
|
|
11
|
+
Button
|
|
12
|
+
} from "./chunk-VTNTTQXM.mjs";
|
|
13
|
+
import {
|
|
14
|
+
Grid
|
|
15
|
+
} from "./chunk-LSXKWZBB.mjs";
|
|
16
|
+
import {
|
|
17
|
+
Media
|
|
18
|
+
} from "./chunk-TNJCCH5V.mjs";
|
|
19
|
+
import {
|
|
20
|
+
Container,
|
|
21
|
+
Section,
|
|
22
|
+
Text
|
|
23
|
+
} from "./chunk-2NOCZCBX.mjs";
|
|
24
|
+
import {
|
|
25
|
+
__objRest,
|
|
26
|
+
__spreadProps,
|
|
27
|
+
__spreadValues,
|
|
28
|
+
__toESM,
|
|
29
|
+
require_dynamic
|
|
30
|
+
} from "./chunk-4GP5DTTM.mjs";
|
|
31
|
+
|
|
32
|
+
// src/sections/products-detail-related/products-detail-related.tsx
|
|
33
|
+
var import_dynamic = __toESM(require_dynamic());
|
|
34
|
+
import { getClassNames } from "@websolutespa/bom-mixer-core";
|
|
35
|
+
|
|
36
|
+
// src/sections/products-detail-related/products-detail-related-card.tsx
|
|
37
|
+
var import_link = __toESM(require_link());
|
|
38
|
+
import styled from "styled-components";
|
|
39
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
40
|
+
var StyledCard = styled(Card)`
|
|
41
|
+
.media{
|
|
42
|
+
.image {
|
|
43
|
+
position: absolute;
|
|
44
|
+
top: 0;
|
|
45
|
+
right: 0;
|
|
46
|
+
bottom: 0;
|
|
47
|
+
left: 0;
|
|
48
|
+
object-fit: cover;
|
|
49
|
+
|
|
50
|
+
&:not(:first-child) {
|
|
51
|
+
opacity: 0!important;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
&:hover {
|
|
56
|
+
.media {
|
|
57
|
+
.image:nth-child(2) {
|
|
58
|
+
opacity: 1!important;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
`;
|
|
63
|
+
var ProductsDetailRelatedCard = (_a) => {
|
|
64
|
+
var _b = _a, { item } = _b, props = __objRest(_b, ["item"]);
|
|
65
|
+
return /* @__PURE__ */ jsxs(StyledCard, __spreadProps(__spreadValues({}, props), { hoverable: true, children: [
|
|
66
|
+
/* @__PURE__ */ jsx(import_link.default, { href: item.href, passHref: true, children: /* @__PURE__ */ jsx(Media, { as: "a", aspectRatio: 880 / 550, borderRadius: "0.4rem", marginBottom: "1.5rem", item: item.media }) }),
|
|
67
|
+
/* @__PURE__ */ jsx(Card.Content, { children: /* @__PURE__ */ jsx(Flex.Row, { justifyContent: "space-between", children: /* @__PURE__ */ jsx(Button, { variant: "nav", children: /* @__PURE__ */ jsx(Text, { size: "6", dangerouslySetInnerHTML: { __html: item.title || "untitled" } }) }) }) })
|
|
68
|
+
] }));
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
// src/sections/products-detail-related/products-detail-related.tsx
|
|
72
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
73
|
+
var ProductsDetailRelated = ({ id, item }) => {
|
|
74
|
+
const classNames = getClassNames(item.schema);
|
|
75
|
+
if (!item) {
|
|
76
|
+
return null;
|
|
77
|
+
}
|
|
78
|
+
return /* @__PURE__ */ jsx2(Section, { id, className: classNames, padding: "6rem 0", children: /* @__PURE__ */ jsxs2(Container, { children: [
|
|
79
|
+
item.title && /* @__PURE__ */ jsx2(Text, { size: "3", textAlign: "center", marginBottom: "4rem", dangerouslySetInnerHTML: { __html: item.title } }),
|
|
80
|
+
/* @__PURE__ */ jsx2(Grid.Row, { rowGap: "3rem", children: item.items && item.items.map((related, r) => /* @__PURE__ */ jsx2(Grid, { sm: 6, justifyContent: "center", children: /* @__PURE__ */ jsx2(ProductsDetailRelatedCard, { item: related }) }, r)) })
|
|
81
|
+
] }) });
|
|
82
|
+
};
|
|
83
|
+
var ProductsDetailRelatedExport = {
|
|
84
|
+
"products-detail-related": (0, import_dynamic.default)(() => Promise.resolve().then(() => require_products_detail_related()).then(
|
|
85
|
+
(module) => module.ProductsDetailRelated
|
|
86
|
+
))
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
export {
|
|
90
|
+
ProductsDetailRelated,
|
|
91
|
+
ProductsDetailRelatedExport
|
|
92
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Media
|
|
3
|
+
} from "./chunk-TNJCCH5V.mjs";
|
|
4
|
+
import {
|
|
5
|
+
__toESM,
|
|
6
|
+
require_dynamic
|
|
7
|
+
} from "./chunk-4GP5DTTM.mjs";
|
|
8
|
+
|
|
9
|
+
// src/lazy/media-full-1/media-full-1.tsx
|
|
10
|
+
var import_dynamic = __toESM(require_dynamic());
|
|
11
|
+
import { getClassNames } from "@websolutespa/bom-mixer-core";
|
|
12
|
+
import { jsx } from "react/jsx-runtime";
|
|
13
|
+
var MediaFull1 = ({ item }) => {
|
|
14
|
+
const classNames = getClassNames("media", item.schema);
|
|
15
|
+
return /* @__PURE__ */ jsx(Media, { className: classNames, aspectRatio: 16 / 10, item: item.media });
|
|
16
|
+
};
|
|
17
|
+
var MediaFull1Export = {
|
|
18
|
+
"media-full-1": (0, import_dynamic.default)(() => Promise.resolve().then(() => require_media_full_1()).then(
|
|
19
|
+
(module) => module.MediaFull1
|
|
20
|
+
))
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export {
|
|
24
|
+
MediaFull1,
|
|
25
|
+
MediaFull1Export
|
|
26
|
+
};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Card
|
|
3
|
+
} from "./chunk-ZBPDMEV4.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Flex
|
|
6
|
+
} from "./chunk-QXUK3J2W.mjs";
|
|
7
|
+
import {
|
|
8
|
+
require_link
|
|
9
|
+
} from "./chunk-DBOW5IIN.mjs";
|
|
10
|
+
import {
|
|
11
|
+
Button
|
|
12
|
+
} from "./chunk-VTNTTQXM.mjs";
|
|
13
|
+
import {
|
|
14
|
+
Media
|
|
15
|
+
} from "./chunk-TNJCCH5V.mjs";
|
|
16
|
+
import {
|
|
17
|
+
Container,
|
|
18
|
+
Section,
|
|
19
|
+
Text
|
|
20
|
+
} from "./chunk-2NOCZCBX.mjs";
|
|
21
|
+
import {
|
|
22
|
+
__objRest,
|
|
23
|
+
__spreadProps,
|
|
24
|
+
__spreadValues,
|
|
25
|
+
__toESM,
|
|
26
|
+
require_dynamic
|
|
27
|
+
} from "./chunk-4GP5DTTM.mjs";
|
|
28
|
+
|
|
29
|
+
// src/sections/magazine-related/magazine-related.tsx
|
|
30
|
+
var import_dynamic = __toESM(require_dynamic());
|
|
31
|
+
import { getClassNames } from "@websolutespa/bom-mixer-core";
|
|
32
|
+
import styled from "styled-components";
|
|
33
|
+
import { Swiper, SwiperSlide } from "swiper/react";
|
|
34
|
+
|
|
35
|
+
// src/sections/magazine-search/magazine-search-card.tsx
|
|
36
|
+
var import_link = __toESM(require_link());
|
|
37
|
+
import { useDateTimeFormat } from "@websolutespa/bom-mixer-hooks";
|
|
38
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
39
|
+
var MagazineSearchCard = (_a) => {
|
|
40
|
+
var _b = _a, { item, fixedRatio = false } = _b, props = __objRest(_b, ["item", "fixedRatio"]);
|
|
41
|
+
const dateTimeFormat = useDateTimeFormat({
|
|
42
|
+
year: "numeric",
|
|
43
|
+
month: "short",
|
|
44
|
+
day: "numeric"
|
|
45
|
+
});
|
|
46
|
+
return /* @__PURE__ */ jsxs(Card, __spreadProps(__spreadValues({}, props), { hoverable: true, width: "100%", children: [
|
|
47
|
+
/* @__PURE__ */ jsx(import_link.default, { href: item.href, passHref: true, children: /* @__PURE__ */ jsx(Media, { as: "a", aspectRatio: fixedRatio ? 400 / 472 : void 0, marginBottom: "2rem", item: item.media }) }),
|
|
48
|
+
/* @__PURE__ */ jsx(Card.Content, { children: /* @__PURE__ */ jsxs(Flex.Row, { alignItems: "flex-start", gap: "2rem", children: [
|
|
49
|
+
/* @__PURE__ */ jsx(Text, { flex: "100px", size: "10", children: dateTimeFormat(item.date) }),
|
|
50
|
+
/* @__PURE__ */ jsxs(Flex.Col, { flex: "calc(100% - 100px)", alignItems: "flex-start", gap: "1rem", children: [
|
|
51
|
+
/* @__PURE__ */ jsx(Text, { size: "6", lineHeight: "1.2", dangerouslySetInnerHTML: { __html: item.title || "untitled" } }),
|
|
52
|
+
/* @__PURE__ */ jsx(Button, { variant: "nav", children: /* @__PURE__ */ jsx(Text, { size: "9", textTransform: "uppercase", children: "View More" }) })
|
|
53
|
+
] })
|
|
54
|
+
] }) })
|
|
55
|
+
] }));
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
// src/sections/magazine-related/magazine-related.tsx
|
|
59
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
60
|
+
var StyledSection = styled(Section)`
|
|
61
|
+
.swiper-slide {
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
width: 400px;
|
|
64
|
+
|
|
65
|
+
@media (max-width: 767px) {
|
|
66
|
+
width: calc(100% - 40px);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
`;
|
|
70
|
+
var StyledCard = styled(Card)`
|
|
71
|
+
.media>.image {
|
|
72
|
+
transform: scale(1.1);
|
|
73
|
+
transition: all ease-in-out 350ms 200ms;
|
|
74
|
+
}
|
|
75
|
+
.button {
|
|
76
|
+
opacity: 0;
|
|
77
|
+
transform: translateY(30%);
|
|
78
|
+
}
|
|
79
|
+
.button {
|
|
80
|
+
transition: all ease-out 350ms 200ms;
|
|
81
|
+
}
|
|
82
|
+
.swiper-slide-active & {
|
|
83
|
+
.media>.image {
|
|
84
|
+
transform: scale(1);
|
|
85
|
+
}
|
|
86
|
+
.button {
|
|
87
|
+
opacity: 1;
|
|
88
|
+
transform: translateY(0);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
`;
|
|
92
|
+
var MagazineRelated = (_a) => {
|
|
93
|
+
var _b = _a, { item } = _b, props = __objRest(_b, ["item"]);
|
|
94
|
+
if (!item) {
|
|
95
|
+
return null;
|
|
96
|
+
}
|
|
97
|
+
const items = item.items;
|
|
98
|
+
const classNames = getClassNames(item.schema);
|
|
99
|
+
return /* @__PURE__ */ jsxs2(StyledSection, { className: classNames, padding: "7rem 0", children: [
|
|
100
|
+
/* @__PURE__ */ jsx2(Container, { textAlign: "center", children: item.title && /* @__PURE__ */ jsx2(Text, { size: "3", marginBottom: "4rem", children: item.title }) }),
|
|
101
|
+
items && /* @__PURE__ */ jsx2(Swiper, __spreadProps(__spreadValues({}, props), { spaceBetween: 60, slidesPerView: "auto", centeredSlides: true, style: { width: "100%" }, children: items.map((item2, i) => /* @__PURE__ */ jsx2(SwiperSlide, { virtualIndex: i, children: /* @__PURE__ */ jsx2(MagazineSearchCard, { fixedRatio: true, item: item2 }) }, i)) }))
|
|
102
|
+
] });
|
|
103
|
+
};
|
|
104
|
+
var MagazineRelatedExport = {
|
|
105
|
+
"magazine-related": (0, import_dynamic.default)(() => Promise.resolve().then(() => require_magazine_related()).then(
|
|
106
|
+
(module) => module.MagazineRelated
|
|
107
|
+
))
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
export {
|
|
111
|
+
MagazineSearchCard,
|
|
112
|
+
MagazineRelated,
|
|
113
|
+
MagazineRelatedExport
|
|
114
|
+
};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Background
|
|
3
|
+
} from "./chunk-GGXSEAD2.mjs";
|
|
4
|
+
import {
|
|
5
|
+
__objRest,
|
|
6
|
+
__spreadProps,
|
|
7
|
+
__spreadValues,
|
|
8
|
+
getAspectResponsive,
|
|
9
|
+
getCssResponsive,
|
|
10
|
+
getVariant,
|
|
11
|
+
hasChildOfType
|
|
12
|
+
} from "./chunk-B5WDQW62.mjs";
|
|
13
|
+
|
|
14
|
+
// src/components/card/card-content.tsx
|
|
15
|
+
import styled from "styled-components";
|
|
16
|
+
var CardContent = styled.div`
|
|
17
|
+
position: relative;
|
|
18
|
+
${(props) => getCssResponsive(props)}
|
|
19
|
+
`;
|
|
20
|
+
|
|
21
|
+
// src/components/card/card-footer.tsx
|
|
22
|
+
import styled2 from "styled-components";
|
|
23
|
+
var CardFooter = styled2.div`
|
|
24
|
+
flex: 0 0 4em;
|
|
25
|
+
position: relative;
|
|
26
|
+
display: flex;
|
|
27
|
+
justify-content: space-between;
|
|
28
|
+
align-items: center;
|
|
29
|
+
border-top: 1px solid var(--color-neutral-100);
|
|
30
|
+
${(props) => getCssResponsive(props)}
|
|
31
|
+
`;
|
|
32
|
+
|
|
33
|
+
// src/components/card/card.tsx
|
|
34
|
+
import { getClassNames, withSchema } from "@websolutespa/bom-mixer-core";
|
|
35
|
+
import { forwardRef } from "react";
|
|
36
|
+
import styled3, { css } from "styled-components";
|
|
37
|
+
import { jsx } from "react/jsx-runtime";
|
|
38
|
+
var variants = {
|
|
39
|
+
default: css`
|
|
40
|
+
`,
|
|
41
|
+
alfa: css`
|
|
42
|
+
border: 1px solid var(--color-neutral-200);
|
|
43
|
+
border-radius: 0.5em;
|
|
44
|
+
// box-shadow: var(--card-shadow);
|
|
45
|
+
`,
|
|
46
|
+
beta: css`
|
|
47
|
+
background: var(--color-neutral-200);
|
|
48
|
+
// border-radius: 2px;
|
|
49
|
+
`,
|
|
50
|
+
gamma: css`
|
|
51
|
+
border: 1px solid var(--color-neutral-200);
|
|
52
|
+
border-radius: 20px;
|
|
53
|
+
box-shadow: var(--card-shadow);
|
|
54
|
+
`,
|
|
55
|
+
delta: css`
|
|
56
|
+
border: 1px solid var(--color-neutral-200);
|
|
57
|
+
border-radius: 20px;
|
|
58
|
+
box-shadow: var(--card-shadow);
|
|
59
|
+
`
|
|
60
|
+
};
|
|
61
|
+
var StyledCard = styled3.div`
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
// margin: 0 0 40px 0;
|
|
65
|
+
|
|
66
|
+
${(props) => getVariant(variants, props.variant)}
|
|
67
|
+
${(props) => getCssResponsive(props)}
|
|
68
|
+
${(props) => getAspectResponsive(props)};
|
|
69
|
+
${(props) => props.hoverable ? css`
|
|
70
|
+
cursor: pointer;
|
|
71
|
+
.media {
|
|
72
|
+
display: flex;
|
|
73
|
+
justify-content: center;
|
|
74
|
+
align-items: center;
|
|
75
|
+
overflow: hidden;
|
|
76
|
+
&>:not(.media-info) {
|
|
77
|
+
transition: ease-in-out 200ms;
|
|
78
|
+
transition-property: transform, opacity;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
&:hover {
|
|
82
|
+
.media {
|
|
83
|
+
&>:not(.media-info) {
|
|
84
|
+
transform: scale(1.05);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
.button {
|
|
88
|
+
&:after {
|
|
89
|
+
transform: scale(1, 1);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
` : ""}
|
|
94
|
+
${(props) => hasBackground(props) ? css`
|
|
95
|
+
color: var(--color-neutral-100);
|
|
96
|
+
position: relative;
|
|
97
|
+
|
|
98
|
+
&>:not(.background) {
|
|
99
|
+
position: relative;
|
|
100
|
+
}
|
|
101
|
+
` : ""}
|
|
102
|
+
`;
|
|
103
|
+
var CardBase = forwardRef((_a, ref) => {
|
|
104
|
+
var _b = _a, { children, className, as = "div" } = _b, props = __objRest(_b, ["children", "className", "as"]);
|
|
105
|
+
const classNames = getClassNames("card", className);
|
|
106
|
+
return /* @__PURE__ */ jsx(StyledCard, __spreadProps(__spreadValues({ className: classNames, ref, as }, props), { children }));
|
|
107
|
+
});
|
|
108
|
+
CardBase.displayName = "Card";
|
|
109
|
+
var Card = withSchema(CardBase, {
|
|
110
|
+
Background,
|
|
111
|
+
Content: CardContent,
|
|
112
|
+
Footer: CardFooter
|
|
113
|
+
});
|
|
114
|
+
function hasBackground(props) {
|
|
115
|
+
return hasChildOfType(props.children, Background);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export {
|
|
119
|
+
CardContent,
|
|
120
|
+
CardFooter,
|
|
121
|
+
Card
|
|
122
|
+
};
|