@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
package/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # @websolutespa/bom-mixer-ui
2
+
3
+ ## 0.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Added: first release.
package/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # @websolutespa/bom-mixer-ui
2
+
3
+ [![npm version](https://badge.fury.io/js/%40websolutespa%2Fbom-mixer-ui.svg)](https://badge.fury.io/js/%40websolutespa%2Fbom-mixer-ui)
4
+
5
+ [![status alpha](https://img.shields.io/badge/status-alpha-red.svg)](https://shields.io/)
6
+
7
+ Mixer UI module of the [BOM Repository](https://github.com/websolutespa/bom) by [websolute](https://www.websolute.com/).
8
+
9
+ ---
10
+
11
+ ##### *this library is for internal usage and not production ready*
@@ -0,0 +1,13 @@
1
+ import {
2
+ Carousel1,
3
+ Carousel1Export
4
+ } from "./chunk-SBQY6FWU.mjs";
5
+ import "./chunk-LEHIZSHR.mjs";
6
+ import "./chunk-A7SAZJPB.mjs";
7
+ import "./chunk-GNG6WR62.mjs";
8
+ import "./chunk-GGXSEAD2.mjs";
9
+ import "./chunk-B5WDQW62.mjs";
10
+ export {
11
+ Carousel1,
12
+ Carousel1Export
13
+ };
@@ -0,0 +1,14 @@
1
+ import {
2
+ Carousel1,
3
+ Carousel1Export
4
+ } from "./chunk-MU4CJBV7.mjs";
5
+ import "./chunk-ZBPDMEV4.mjs";
6
+ import "./chunk-DBOW5IIN.mjs";
7
+ import "./chunk-VTNTTQXM.mjs";
8
+ import "./chunk-TNJCCH5V.mjs";
9
+ import "./chunk-2NOCZCBX.mjs";
10
+ import "./chunk-4GP5DTTM.mjs";
11
+ export {
12
+ Carousel1,
13
+ Carousel1Export
14
+ };
@@ -0,0 +1,494 @@
1
+ import {
2
+ __objRest,
3
+ __spreadProps,
4
+ __spreadValues,
5
+ getAspectResponsive,
6
+ getContainer,
7
+ getCssResponsive,
8
+ hasChildOfType
9
+ } from "./chunk-4GP5DTTM.mjs";
10
+
11
+ // src/components/container/container.tsx
12
+ import { withSchema } from "@websolutespa/bom-mixer-core";
13
+ import { forwardRef } from "react";
14
+ import styled from "styled-components";
15
+ import { jsx } from "react/jsx-runtime";
16
+ var ContainerBase = styled.div`
17
+ width: 100%;
18
+ margin: 0 auto;
19
+ ${(props) => getContainer(props, props.fluid)}
20
+ ${(props) => getCssResponsive(props)}
21
+ `;
22
+ var ContainerFluid = forwardRef((_a, ref) => {
23
+ var _b = _a, { children, as = "div" } = _b, props = __objRest(_b, ["children", "as"]);
24
+ return /* @__PURE__ */ jsx(ContainerBase, __spreadProps(__spreadValues({ ref, as }, props), { fluid: true, children }));
25
+ });
26
+ ContainerFluid.displayName = "ContainerFluid";
27
+ var Container = withSchema(ContainerBase, {
28
+ Fluid: ContainerFluid,
29
+ displayName: "Container"
30
+ });
31
+
32
+ // src/components/text/text.tsx
33
+ import { withSchema as withSchema2 } from "@websolutespa/bom-mixer-core";
34
+ import styled2, { css as css2 } from "styled-components";
35
+
36
+ // src/components/button/button.css.ts
37
+ import { css } from "styled-components";
38
+ var CssDefault = css`
39
+ // display: inline-block;
40
+ color: inherit;
41
+ display: inline-flex;
42
+ align-items: center;
43
+ font-size: 1em;
44
+ line-height: normal;
45
+ transition: ease 150ms;
46
+ transition-property: background-color, color, border-color, outline-color, opacity;
47
+ cursor: pointer;
48
+ `;
49
+ var CssResponsive = css`
50
+ @media (max-width: 399.9px) {
51
+ display: flex;
52
+ justify-content: center;
53
+ align-items: center;
54
+ }
55
+ `;
56
+ var CssFocus = css`
57
+ &:focus,
58
+ &:active {
59
+ outline: 2px solid var(--color-primary-200);
60
+ outline-offset: 2px;
61
+ }
62
+ `;
63
+ var CssActive = css`
64
+ &.active {
65
+ outline: 2px solid var(--color-primary-500);
66
+ outline-offset: 2px;
67
+ }
68
+ `;
69
+ var CssDisabled = css`
70
+ &:disabled,
71
+ &.disabled {
72
+ pointer-events: none;
73
+ opacity: 0.5;
74
+ }
75
+ `;
76
+ var CssSvg = css`
77
+ svg {
78
+ width: 1em;
79
+ height: 1em;
80
+ margin: 0 0.3em;
81
+ transition: transform ease-in-out 200ms;
82
+
83
+ &:first-child {
84
+ margin-left: 0;
85
+ }
86
+
87
+ &:last-child {
88
+ margin-right: 0;
89
+ }
90
+ }
91
+ &:hover,
92
+ &.active {
93
+ svg {
94
+ transform: scale(1.1);
95
+ }
96
+ }
97
+ `;
98
+ var CssUnderline = css`
99
+ &>* {
100
+ display: inline;
101
+ background-image: linear-gradient(90deg, var(--color-secondary-500), currentColor);
102
+ background-repeat: no-repeat;
103
+ background-position: bottom left;
104
+ background-size: 0% 0.1em;
105
+ transition: background-size 500ms cubic-bezier(0,.97,.43,1);
106
+ }
107
+
108
+ &:hover {
109
+ &>* {
110
+ background-size: 100% 0.1em;
111
+ }
112
+ }
113
+ `;
114
+ var CssAfter = css`
115
+ &:after {
116
+ content: '';
117
+ display: block;
118
+ position: absolute;
119
+ bottom: 0;
120
+ left: 0;
121
+ width: 100%;
122
+ height: 1.1px;
123
+ background: currentColor;
124
+ transform: scale(0, 1);
125
+ transform-origin: left;
126
+ transition: transform 500ms cubic-bezier(0,.97,.43,1);
127
+ will-change: transform;
128
+ }
129
+
130
+ &:hover,
131
+ &.active {
132
+ &:after {
133
+ transform: scale(1, 1);
134
+ }
135
+ }
136
+ `;
137
+ var CssAfterInverted = css`
138
+ &:after {
139
+ content: '';
140
+ display: block;
141
+ position: absolute;
142
+ bottom: 0;
143
+ left: 0;
144
+ width: 100%;
145
+ height: 1.1px;
146
+ background: currentColor;
147
+ transform: scale(1, 1);
148
+ transform-origin: left;
149
+ transition: transform 500ms cubic-bezier(0,.97,.43,1);
150
+ will-change: transform;
151
+ }
152
+
153
+ &:hover,
154
+ &.active {
155
+ &:after {
156
+ transform: scale(0, 1);
157
+ }
158
+ }
159
+ `;
160
+ var CssButtonDefault = css`
161
+ padding: 0.4em 1em;
162
+ border-radius: var(--button-border-radius);
163
+ color: var(--color-primary-500);
164
+ border: 2px solid var(--color-primary-100);
165
+
166
+ &:hover,
167
+ &.active {
168
+ color: var(--color-primary-600);
169
+ border-color: var(--color-primary-200);
170
+ }
171
+
172
+ ${CssSvg}
173
+ `;
174
+ var CssButtonPrimary = css`
175
+ padding: 0.4em 1em;
176
+ border-radius: var(--button-border-radius);
177
+ background: var(--color-primary-500);
178
+ color: var(--color-neutral-100);
179
+ border: 2px solid var(--color-primary-500);
180
+
181
+ &:hover,
182
+ &.active {
183
+ background-color: var(--color-primary-600);
184
+ color: var(--color-neutral-100);
185
+ border-color: var(--color-primary-600);
186
+ }
187
+
188
+ ${CssSvg}
189
+ ${CssFocus}
190
+ ${CssActive}
191
+ ${CssDisabled}
192
+ ${CssResponsive}
193
+ `;
194
+ var CssButtonSecondary = css`
195
+ padding: 0.4em 1em;
196
+ border-radius: var(--button-border-radius);
197
+ background: var(--color-primary-100);
198
+ border: 2px solid var(--color-primary-100);
199
+ color: var(--color-primary-500);
200
+
201
+ &:hover,
202
+ &.active {
203
+ border-color: var(--color-primary-300);
204
+ color: var(--color-primary-600);
205
+ }
206
+
207
+ ${CssSvg}
208
+ ${CssFocus}
209
+ ${CssActive}
210
+ ${CssDisabled}
211
+ ${CssResponsive}
212
+ `;
213
+ var CssButtonOutline = css`
214
+ padding: 0.4em 1em;
215
+ border-radius: var(--button-border-radius);
216
+ background: transparent;
217
+ border: 2px solid var(--color-primary-500);
218
+ color: var(--color-primary-500);
219
+
220
+ &:hover,
221
+ &.active {
222
+ background: var(--color-primary-500);
223
+ border-color: var(--color-primary-600);
224
+ color: var(--color-neutral-100);
225
+ }
226
+
227
+ ${CssSvg}
228
+ ${CssFocus}
229
+ ${CssActive}
230
+ ${CssDisabled}
231
+ ${CssResponsive}
232
+ `;
233
+ var CssButtonGhost = css`
234
+ padding: 0.4em 1em;
235
+ border-radius: var(--button-border-radius);
236
+ background: transparent;
237
+ border: 2px solid transparent;
238
+ color: var(--color-neutral-700);
239
+
240
+ &:hover,
241
+ &.active {
242
+ background: transparent;
243
+ border-color: var(--color-neutral-300);
244
+ color: var(--color-neutral-900);
245
+ }
246
+
247
+ ${CssSvg}
248
+ ${CssFocus}
249
+ ${CssActive}
250
+ ${CssDisabled}
251
+ ${CssResponsive}
252
+ `;
253
+ var CssButtonLink = css`
254
+ position: relative;
255
+ color: var(--color-primary-400);
256
+
257
+ &:hover,
258
+ &.active {
259
+ color: var(--color-primary-500);
260
+ }
261
+
262
+ ${CssAfter}
263
+ ${CssSvg}
264
+ `;
265
+ var CssButtonUnderline = css`
266
+ position: relative;
267
+ color: var(--color-primary-400);
268
+
269
+ &:hover,
270
+ &.active {
271
+ color: var(--color-primary-500);
272
+ }
273
+
274
+ ${CssAfterInverted}
275
+ ${CssSvg}
276
+ `;
277
+ var CssButtonNav = css`
278
+ position: relative;
279
+
280
+ ${CssAfter}
281
+ ${CssSvg}
282
+ `;
283
+ var CssButtonNavInverted = css`
284
+ position: relative;
285
+
286
+ ${CssAfterInverted}
287
+ ${CssSvg}
288
+ `;
289
+ var CssButtonCircle = css`
290
+ justify-content: center;
291
+ width: 3em;
292
+ height: 3em;
293
+ border-radius: 50%;
294
+ background: var(--color-neutral-200);
295
+ border: 2px solid var(--color-neutral-200);
296
+ color: var(--color-neutral-700);
297
+
298
+ &>span {
299
+ font-size: 0;
300
+ }
301
+
302
+ &:hover,
303
+ &.active {
304
+ border-color: var(--color-neutral-400);
305
+ color: var(--color-neutral-900);
306
+ }
307
+
308
+ ${CssSvg}
309
+ ${CssFocus}
310
+ ${CssActive}
311
+ ${CssDisabled}
312
+ `;
313
+ var CssButtonToggle = css`
314
+ &:not(.active) {
315
+ opacity: 0.2;
316
+ }
317
+ `;
318
+
319
+ // src/components/text/text.tsx
320
+ var CssH = css2`
321
+ h1, h2, h3, h4, h5, h6 {
322
+ color: var(--color-neutral-500);
323
+ margin-bottom: 3rem;
324
+ }
325
+ h4 {
326
+ font-size: 1.2em;
327
+ }
328
+ `;
329
+ var CssA = css2`
330
+ a[href] {
331
+ ${CssDefault}
332
+ ${CssButtonNavInverted}
333
+ }
334
+ `;
335
+ var CssP = css2`
336
+ p {
337
+ margin-bottom: 2rem;
338
+ }
339
+ `;
340
+ var CssUl = css2`
341
+ ul {
342
+ list-style: initial;
343
+ margin: 0 0 2em 1.1em;
344
+
345
+ &>li {
346
+ padding: 0.3em 0;
347
+ }
348
+ }
349
+ `;
350
+ var TextBase = styled2.div`
351
+ font-family: var(--font-primary-family);
352
+ ${({ size }) => {
353
+ if (!size)
354
+ return "";
355
+ const index = (typeof size === "string" ? parseInt(size) : size) - 1;
356
+ return css2`
357
+ font-size: var(--font-primary-size-${index}, 1rem);
358
+ line-height: var(--font-primary-line-height-${index}, 1);
359
+ font-weight: var(--font-primary-font-weight-${index}, normal);
360
+ `;
361
+ }}
362
+ ${(props) => props.gradient ? css2`
363
+ background: -webkit-linear-gradient(0deg, var(--color-primary-500), var(--color-secondary-500));
364
+ -webkit-background-clip: text;
365
+ -webkit-text-fill-color: transparent;
366
+ ` : ""}
367
+
368
+ ${CssH}
369
+ ${CssA}
370
+ ${CssP}
371
+ ${CssUl}
372
+ ${(props) => getCssResponsive(props)}
373
+ `;
374
+ var TextSecondary = styled2.div`
375
+ display: inline-block;
376
+ font-family: var(--font-secondary-family);
377
+ ${({ size }) => {
378
+ if (!size)
379
+ return "";
380
+ const index = (typeof size === "string" ? parseInt(size) : size) - 1;
381
+ return css2`
382
+ font-size: var(--font-secondary-size-${index}, 1rem);
383
+ line-height: var(--font-secondary-line-height-${index}, 1);
384
+ font-weight: var(--font-secondary-font-weight-${index}, normal);
385
+ `;
386
+ }}
387
+ ${(props) => props.gradient ? css2`
388
+ background: -webkit-linear-gradient(0deg, var(--color-primary-500), var(--color-secondary-500));
389
+ -webkit-background-clip: text;
390
+ -webkit-text-fill-color: transparent;
391
+ ` : ""}
392
+
393
+ ${CssUl}
394
+ ${(props) => getCssResponsive(props)}
395
+ `;
396
+ var TextSROnly = styled2.div`
397
+ position: absolute;
398
+ width: 1px;
399
+ height: 1px;
400
+ padding: 0;
401
+ margin: -1px;
402
+ overflow: hidden;
403
+ clip: rect(0,0,0,0);
404
+ white-space: nowrap;
405
+ border-width: 0;
406
+ `;
407
+ var Text = withSchema2(TextBase, {
408
+ Primary: TextBase,
409
+ Secondary: TextSecondary,
410
+ SROnly: TextSROnly,
411
+ displayName: "Text"
412
+ });
413
+
414
+ // src/components/section/section.tsx
415
+ import { withSchema as withSchema3 } from "@websolutespa/bom-mixer-core";
416
+ import styled4, { css as css3 } from "styled-components";
417
+
418
+ // src/components/background/background.tsx
419
+ import styled3 from "styled-components";
420
+ var Background = styled3.div`
421
+ position: absolute;
422
+ top: 0;
423
+ left: 0;
424
+ // background: var(--color-neutral-900);
425
+
426
+ &, & > * {
427
+ width: 100%;
428
+ height: 100%;
429
+ display: flex;
430
+ justify-content: center;
431
+ align-items: center;
432
+ }
433
+
434
+ & > * > * {
435
+ width: 100%;
436
+ height: 100%;
437
+ object-fit: cover;
438
+ }
439
+
440
+ ${(props) => getCssResponsive(props)}
441
+ `;
442
+ Background.defaultProps = {
443
+ className: "background"
444
+ };
445
+
446
+ // src/components/section/section.tsx
447
+ import { jsx as jsx2 } from "react/jsx-runtime";
448
+ var SectionContainer = styled4.div`
449
+ display: flex;
450
+ flex-direction: column;
451
+ justify-content: center;
452
+
453
+ ${(props) => getCssResponsive(props, { padding: "3rem 0" })}
454
+ ${(props) => getAspectResponsive(props)};
455
+
456
+ ${(props) => hasBackground(props) ? css3`
457
+ color: var(--color-neutral-100);
458
+ position: relative;
459
+
460
+ &>:not(.background) {
461
+ position: relative;
462
+ }
463
+ ` : ""}
464
+ `;
465
+ var SectionBase = (props) => {
466
+ return /* @__PURE__ */ jsx2(SectionContainer, __spreadProps(__spreadValues({}, props), { children: props.children }));
467
+ };
468
+ var Section = withSchema3(SectionBase, {
469
+ Background,
470
+ displayName: "Section"
471
+ });
472
+ function hasBackground(props) {
473
+ return hasChildOfType(props.children, Background);
474
+ }
475
+
476
+ export {
477
+ CssDefault,
478
+ CssButtonDefault,
479
+ CssButtonPrimary,
480
+ CssButtonSecondary,
481
+ CssButtonOutline,
482
+ CssButtonGhost,
483
+ CssButtonLink,
484
+ CssButtonUnderline,
485
+ CssButtonNav,
486
+ CssButtonCircle,
487
+ CssButtonToggle,
488
+ Background,
489
+ ContainerBase,
490
+ ContainerFluid,
491
+ Container,
492
+ Text,
493
+ Section
494
+ };
@@ -0,0 +1,27 @@
1
+ import {
2
+ Box
3
+ } from "./chunk-6RQBZFNK.mjs";
4
+ import {
5
+ Container,
6
+ Section,
7
+ Text
8
+ } from "./chunk-GGXSEAD2.mjs";
9
+
10
+ // src/lazy/text-text-1/text-text-1.tsx
11
+ import { getClassNames } from "@websolutespa/bom-mixer-core";
12
+ import dynamic from "next/dynamic";
13
+ import { jsx } from "react/jsx-runtime";
14
+ var TextText1 = ({ item }) => {
15
+ const classNames = getClassNames(item.schema);
16
+ return /* @__PURE__ */ jsx(Section, { className: classNames, padding: "6rem 0", children: /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsx(Box, { columnCount: 1, columnCountSm: 2, columnGap: "var(--grid-column-gap)", children: item.description && /* @__PURE__ */ jsx(Text, { size: "8", lineHeight: "2", dangerouslySetInnerHTML: { __html: item.description } }) }) }) });
17
+ };
18
+ var TextText1Export = {
19
+ "text-text-1": dynamic(() => Promise.resolve().then(() => require_text_text_1()).then(
20
+ (module) => module.TextText1
21
+ ))
22
+ };
23
+
24
+ export {
25
+ TextText1,
26
+ TextText1Export
27
+ };
@@ -0,0 +1,54 @@
1
+ import {
2
+ Box
3
+ } from "./chunk-6RQBZFNK.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-6HX6MNJA.mjs";
13
+ import {
14
+ Media
15
+ } from "./chunk-GNG6WR62.mjs";
16
+ import {
17
+ Container,
18
+ Section,
19
+ Text
20
+ } from "./chunk-GGXSEAD2.mjs";
21
+
22
+ // src/sections/products-detail-size-color/products-detail-size-color.tsx
23
+ import { getClassNames } from "@websolutespa/bom-mixer-core";
24
+ import dynamic from "next/dynamic";
25
+ import { jsx, jsxs } from "react/jsx-runtime";
26
+ var ProductsDetailSizeColor = ({ id, item }) => {
27
+ const classNames = getClassNames(item.schema);
28
+ if (!item) {
29
+ return null;
30
+ }
31
+ return /* @__PURE__ */ jsx(Section, { id, className: classNames, padding: "6rem 0", children: /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsxs(Grid.Row, { rowGap: "3rem", children: [
32
+ /* @__PURE__ */ jsx(Grid, { sm: 6, justifyContent: "center", children: /* @__PURE__ */ jsxs(Flex.Col, { children: [
33
+ item.title && /* @__PURE__ */ jsx(Text, { size: "3", marginBottom: "3rem", children: item.title }),
34
+ item.list && item.list.map((item2, i) => /* @__PURE__ */ jsxs(Flex.Row, { padding: "2rem 0", borderBottom: "2px solid var(--color-neutral-900)", children: [
35
+ /* @__PURE__ */ jsx(Text, { flexBasis: "20%", dangerouslySetInnerHTML: { __html: item2.title } }),
36
+ /* @__PURE__ */ jsx(Text, { dangerouslySetInnerHTML: { __html: item2.abstract } })
37
+ ] }, i))
38
+ ] }) }),
39
+ /* @__PURE__ */ jsxs(Grid, { sm: 6, alignItems: "center", justifyContent: "center", gap: "2rem", children: [
40
+ /* @__PURE__ */ jsx(Box, { width: "100%", maxWidth: "300px", children: /* @__PURE__ */ jsx(Media, { aspectRatio: 1, item: item.medias }) }),
41
+ /* @__PURE__ */ jsx(Button, { variant: "outline", children: "Vedi tutti i colori" })
42
+ ] })
43
+ ] }) }) });
44
+ };
45
+ var ProductsDetailSizeColorExport = {
46
+ "products-detail-size-color": dynamic(() => Promise.resolve().then(() => require_products_detail_size_color()).then(
47
+ (module) => ({ default: module.ProductsDetailSizeColor })
48
+ ))
49
+ };
50
+
51
+ export {
52
+ ProductsDetailSizeColor,
53
+ ProductsDetailSizeColorExport
54
+ };
@@ -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-6HX6MNJA.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
+ };