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