@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,808 @@
|
|
|
1
|
+
import {
|
|
2
|
+
eachMedia,
|
|
3
|
+
getCssResponsive,
|
|
4
|
+
getGrid
|
|
5
|
+
} from "./chunk-B5WDQW62.mjs";
|
|
6
|
+
|
|
7
|
+
// src/styles/mixins/_scrollbar.tsx
|
|
8
|
+
import { css } from "styled-components";
|
|
9
|
+
var CssScrollbar = css`
|
|
10
|
+
&::-webkit-scrollbar {
|
|
11
|
+
width: 8px;
|
|
12
|
+
height: 8px;
|
|
13
|
+
border-radius: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&::-webkit-scrollbar-button {
|
|
17
|
+
display: none;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&::-webkit-scrollbar-button:hover {
|
|
21
|
+
display: none;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&::-webkit-scrollbar-thumb {
|
|
25
|
+
background-color: var(--color-neutral-400);
|
|
26
|
+
box-shadow: none;
|
|
27
|
+
border-radius: 4px;
|
|
28
|
+
|
|
29
|
+
&:hover {
|
|
30
|
+
background-color: var(--color-neutral-600);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&::-webkit-scrollbar-track {
|
|
35
|
+
background-color: var(--color-neutral-100);
|
|
36
|
+
border-radius: 0;
|
|
37
|
+
|
|
38
|
+
&:hover {
|
|
39
|
+
background-color: var(--color-neutral-100);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
`;
|
|
43
|
+
|
|
44
|
+
// src/styles/_debug.tsx
|
|
45
|
+
import { css as css2 } from "styled-components";
|
|
46
|
+
var CssDebug = css2`
|
|
47
|
+
.debug {
|
|
48
|
+
outline: 1px solid var(--color-danger-100);
|
|
49
|
+
}
|
|
50
|
+
`;
|
|
51
|
+
|
|
52
|
+
// src/styles/_reset.tsx
|
|
53
|
+
import { css as css3 } from "styled-components";
|
|
54
|
+
var CssReset = css3`
|
|
55
|
+
/*
|
|
56
|
+
*,
|
|
57
|
+
*::before,
|
|
58
|
+
*::after {
|
|
59
|
+
margin: 0;
|
|
60
|
+
padding: 0;
|
|
61
|
+
box-sizing: border-box;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
:where([hidden]:not([hidden='until-found'])) {
|
|
65
|
+
display: none !important;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
:where(html) {
|
|
69
|
+
-webkit-text-size-adjust: none;
|
|
70
|
+
color-scheme: dark light;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@supports not (min-block-size: 100dvb) {
|
|
74
|
+
:where(html) {
|
|
75
|
+
block-size: 100%;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
80
|
+
:where(html:focus-within) {
|
|
81
|
+
scroll-behavior: smooth;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
:where(body) {
|
|
86
|
+
block-size: 100%;
|
|
87
|
+
block-size: 100dvb;
|
|
88
|
+
line-height: 1.5;
|
|
89
|
+
font-family: system-ui, sans-serif;
|
|
90
|
+
-webkit-font-smoothing: antialiased;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
:where(input, button, textarea, select) {
|
|
94
|
+
font: inherit;
|
|
95
|
+
color: inherit;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
:where(textarea) {
|
|
99
|
+
resize: vertical;
|
|
100
|
+
resize: block;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
:where(button, label, select, summary, [role='button'], [role='option']) {
|
|
104
|
+
cursor: pointer;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
:where(:disabled) {
|
|
108
|
+
cursor: not-allowed;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
:where(
|
|
112
|
+
label:has(> input:disabled),
|
|
113
|
+
label:has(+ input:disabled)) {
|
|
114
|
+
cursor: not-allowed;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
:where(button) {
|
|
118
|
+
border-style: solid;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
:where(a) {
|
|
122
|
+
text-underline-offset: 0.2ex;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
:where(ul, ol) {
|
|
126
|
+
list-style: none;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
:where(img, svg, video, canvas, audio, iframe, embed, object) {
|
|
130
|
+
display: block;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
:where(img, picture, svg) {
|
|
134
|
+
max-inline-size: 100%;
|
|
135
|
+
block-size: auto;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
:where(p, h1, h2, h3, h4, h5, h6) {
|
|
139
|
+
overflow-wrap: break-word;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
:where(h1, h2, h3) {
|
|
143
|
+
line-height: calc(1em + 0.5rem);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
:where(hr) {
|
|
147
|
+
border: none;
|
|
148
|
+
border-block-start: 1px solid;
|
|
149
|
+
color: inherit;
|
|
150
|
+
block-size: 0;
|
|
151
|
+
overflow: visible;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
:where(:focus-visible) {
|
|
155
|
+
outline: 2px solid var(--focus-color, Highlight);
|
|
156
|
+
outline-offset: 2px;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
:where(.visually-hidden:not(:focus, :active, :focus-within, .not-visually-hidden)) {
|
|
160
|
+
clip-path: inset(50%) !important;
|
|
161
|
+
height: 1px !important;
|
|
162
|
+
width: 1px !important;
|
|
163
|
+
overflow: hidden !important;
|
|
164
|
+
position: absolute !important;
|
|
165
|
+
white-space: nowrap !important;
|
|
166
|
+
border: 0 !important;
|
|
167
|
+
}
|
|
168
|
+
*/
|
|
169
|
+
|
|
170
|
+
html,
|
|
171
|
+
body,
|
|
172
|
+
p,
|
|
173
|
+
ol,
|
|
174
|
+
ul,
|
|
175
|
+
li,
|
|
176
|
+
dl,
|
|
177
|
+
dt,
|
|
178
|
+
dd,
|
|
179
|
+
blockquote,
|
|
180
|
+
figure,
|
|
181
|
+
fieldset,
|
|
182
|
+
legend,
|
|
183
|
+
textarea,
|
|
184
|
+
pre,
|
|
185
|
+
iframe,
|
|
186
|
+
hr,
|
|
187
|
+
h1,
|
|
188
|
+
h2,
|
|
189
|
+
h3,
|
|
190
|
+
h4,
|
|
191
|
+
h5,
|
|
192
|
+
h6 {
|
|
193
|
+
margin: 0;
|
|
194
|
+
padding: 0;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
h1,
|
|
198
|
+
h2,
|
|
199
|
+
h3,
|
|
200
|
+
h4,
|
|
201
|
+
h5,
|
|
202
|
+
h6 {
|
|
203
|
+
font-size: 100%;
|
|
204
|
+
font-weight: normal;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
ul {
|
|
208
|
+
list-style: none;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
button,
|
|
212
|
+
input,
|
|
213
|
+
select {
|
|
214
|
+
margin: 0;
|
|
215
|
+
padding: 0;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
button {
|
|
219
|
+
border: none;
|
|
220
|
+
text-decoration: none;
|
|
221
|
+
background: none;
|
|
222
|
+
appearance: none;
|
|
223
|
+
font-family: inherit;
|
|
224
|
+
font-style: inherit;
|
|
225
|
+
font-variant-ligatures: inherit;
|
|
226
|
+
font-variant-caps: inherit;
|
|
227
|
+
font-variant-numeric: inherit;
|
|
228
|
+
font-variant-east-asian: inherit;
|
|
229
|
+
font-weight: inherit;
|
|
230
|
+
font-stretch: inherit;
|
|
231
|
+
text-rendering: inherit;
|
|
232
|
+
letter-spacing: inherit;
|
|
233
|
+
word-spacing: inherit;
|
|
234
|
+
line-height: inherit;
|
|
235
|
+
text-transform: none;
|
|
236
|
+
text-indent: inherit;
|
|
237
|
+
text-shadow: none;
|
|
238
|
+
text-align: inherit;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
html {
|
|
242
|
+
box-sizing: border-box;
|
|
243
|
+
-webkit-text-size-adjust: none;
|
|
244
|
+
color-scheme: dark light;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
*, *::before, *::after {
|
|
248
|
+
box-sizing: inherit;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
img,
|
|
252
|
+
video {
|
|
253
|
+
height: auto;
|
|
254
|
+
max-width: 100%;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
iframe {
|
|
258
|
+
border: 0;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
table {
|
|
262
|
+
border-collapse: collapse;
|
|
263
|
+
border-spacing: 0;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
td,
|
|
267
|
+
th {
|
|
268
|
+
padding: 0;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
//
|
|
272
|
+
|
|
273
|
+
html,
|
|
274
|
+
body {
|
|
275
|
+
margin: 0;
|
|
276
|
+
padding: 0;
|
|
277
|
+
block-size: 100%;
|
|
278
|
+
block-size: 100dvb;
|
|
279
|
+
font-size: 20px;
|
|
280
|
+
line-height: 1.5;
|
|
281
|
+
font-family: system-ui, sans-serif;
|
|
282
|
+
-webkit-font-smoothing: antialiased;
|
|
283
|
+
}
|
|
284
|
+
`;
|
|
285
|
+
|
|
286
|
+
// src/styles/_typography.tsx
|
|
287
|
+
import { css as css4 } from "styled-components";
|
|
288
|
+
var CssTypography = css4`
|
|
289
|
+
html,
|
|
290
|
+
body {
|
|
291
|
+
font-family: var(--font-primary-family);
|
|
292
|
+
line-height: 1.5;
|
|
293
|
+
${(props) => eachMedia(props, (key) => `font-size: var(--base-font-size-${key});`)}
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
body {
|
|
297
|
+
background: var(--color-neutral-100);
|
|
298
|
+
color: var(--color-neutral-700);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
/*
|
|
302
|
+
* {
|
|
303
|
+
outline-offset: 0.2rem;
|
|
304
|
+
&:focus-visible {
|
|
305
|
+
outline: 2px solid var(--color-primary-200);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
*/
|
|
309
|
+
|
|
310
|
+
`;
|
|
311
|
+
|
|
312
|
+
// src/styles/_vars.tsx
|
|
313
|
+
import { css as css5 } from "styled-components";
|
|
314
|
+
var CssVars = css5`
|
|
315
|
+
:root {
|
|
316
|
+
--base-font-size-xs: 14px;
|
|
317
|
+
--base-font-size-sm: 15px;
|
|
318
|
+
--base-font-size-md: 15px;
|
|
319
|
+
--base-font-size-lg: 16px;
|
|
320
|
+
--base-font-size-xl: 16px;
|
|
321
|
+
--font-primary-family: Inter, -apple-system, 'Helvetica Neue', 'Segoe UI', Roboto, Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
|
|
322
|
+
--font-primary-size-0: Min(6.25rem, 16vw);
|
|
323
|
+
--font-primary-size-1: Min(4.5rem, 11.5vw);
|
|
324
|
+
--font-primary-size-2: Min(2.75rem, 7vw);
|
|
325
|
+
--font-primary-size-3: Min(2.5rem, 6.4vw);
|
|
326
|
+
--font-primary-size-4: 2.25rem;
|
|
327
|
+
--font-primary-size-5: 1.875rem;
|
|
328
|
+
--font-primary-size-6: 1.5rem;
|
|
329
|
+
--font-primary-size-7: 1.125rem;
|
|
330
|
+
--font-primary-size-8: 1rem;
|
|
331
|
+
--font-primary-size-9: 0.9rem;
|
|
332
|
+
--font-primary-size-10: 0.8rem;
|
|
333
|
+
--font-primary-size-11: 0.7rem;
|
|
334
|
+
--font-primary-line-height-0: 0.9;
|
|
335
|
+
--font-primary-line-height-1: 1.0;
|
|
336
|
+
--font-primary-line-height-2: 1.1;
|
|
337
|
+
--font-primary-line-height-3: 1.2;
|
|
338
|
+
--font-primary-line-height-4: 1.3;
|
|
339
|
+
--font-primary-line-height-5: 1.4;
|
|
340
|
+
--font-primary-line-height-6: 1.5;
|
|
341
|
+
--font-primary-line-height-7: 1.625;
|
|
342
|
+
--font-primary-line-height-8: 1.5;
|
|
343
|
+
--font-primary-line-height-9: 1.6;
|
|
344
|
+
--font-primary-line-height-10: 1.7;
|
|
345
|
+
--font-primary-line-height-11: 1.8;
|
|
346
|
+
--font-secondary-family: Petrona, serif;
|
|
347
|
+
--font-secondary-size-0: 7.5rem;
|
|
348
|
+
--font-secondary-size-1: 5.4rem;
|
|
349
|
+
--font-secondary-size-2: 3.3rem;
|
|
350
|
+
--font-secondary-size-3: 3rem;
|
|
351
|
+
--font-secondary-size-4: 2.7rem;
|
|
352
|
+
--font-secondary-size-5: 2.25rem;
|
|
353
|
+
--font-secondary-size-6: 1.8rem;
|
|
354
|
+
--font-secondary-size-7: 1.35rem;
|
|
355
|
+
--font-secondary-size-8: 1.2rem;
|
|
356
|
+
--font-secondary-size-9: 1.08rem;
|
|
357
|
+
--font-secondary-size-10: 0.96rem;
|
|
358
|
+
--font-secondary-size-11: 0.84rem;
|
|
359
|
+
--font-secondary-line-height-0: 0.9;
|
|
360
|
+
--font-secondary-line-height-1: 1.0;
|
|
361
|
+
--font-secondary-line-height-2: 1.1;
|
|
362
|
+
--font-secondary-line-height-3: 1.2;
|
|
363
|
+
--font-secondary-line-height-4: 1.3;
|
|
364
|
+
--font-secondary-line-height-5: 1.4;
|
|
365
|
+
--font-secondary-line-height-6: 1.5;
|
|
366
|
+
--font-secondary-line-height-7: 1.625;
|
|
367
|
+
--font-secondary-line-height-8: 1.5;
|
|
368
|
+
--font-secondary-line-height-9: 1.6;
|
|
369
|
+
--font-secondary-line-height-10: 1.7;
|
|
370
|
+
--font-secondary-line-height-11: 1.8;
|
|
371
|
+
--grid-columns: 12;
|
|
372
|
+
--grid-size: 1fr;
|
|
373
|
+
--grid-column-gap: Max(4vw, Min(96px, calc(100% / 24)));
|
|
374
|
+
--grid-row-gap: 0;
|
|
375
|
+
--media-query-xs: 0;
|
|
376
|
+
--media-query-sm: 768;
|
|
377
|
+
--media-query-md: 1024;
|
|
378
|
+
--media-query-lg: 1440;
|
|
379
|
+
--media-query-xl: 1600;
|
|
380
|
+
--container-max-width-xs: calc(100% - var(--grid-column-gap) * 2);
|
|
381
|
+
--container-max-width-sm: calc(100% - var(--grid-column-gap) * 2);
|
|
382
|
+
--container-max-width-md: calc(1024px - var(--grid-column-gap) * 2);
|
|
383
|
+
--container-max-width-lg: calc(1440px - var(--grid-column-gap) * 2);
|
|
384
|
+
--container-max-width-xl: calc(1600px - var(--grid-column-gap) * 2);
|
|
385
|
+
--max-width-xs: calc(100% - var(--grid-column-gap) * 2);
|
|
386
|
+
--max-width-sm: calc(100% - var(--grid-column-gap) * 2);
|
|
387
|
+
--max-width-md: Min(928px, calc(100% - var(--grid-column-gap) * 2));
|
|
388
|
+
--max-width-lg: Min(1344px, calc(100% - var(--grid-column-gap) * 4));
|
|
389
|
+
--max-width-xl: Min(1204px, calc(100% - var(--grid-column-gap) * 6));
|
|
390
|
+
--button-size-xs: 0.7rem;
|
|
391
|
+
--button-size-sm: 0.8rem;
|
|
392
|
+
--button-size-md: 1rem;
|
|
393
|
+
--button-size-lg: 1.25rem;
|
|
394
|
+
--button-size-xl: 1.45rem;
|
|
395
|
+
--button-border-radius: 0.2em;
|
|
396
|
+
--form-font-size: 1.125rem;
|
|
397
|
+
--form-line-height: 1.6;
|
|
398
|
+
--form-padding: 0.8em;
|
|
399
|
+
--card-shadow: 0 20px 20px -10px rgba(0,0,0,0.2);
|
|
400
|
+
--backdrop-opacity: 0.5;
|
|
401
|
+
--border-radius: 0.5em;
|
|
402
|
+
--shadow-xs: 0 0.1rem 0.4rem -0.1rem rgba(0, 0, 0, 0.2);
|
|
403
|
+
--shadow-sm: 0 0.3rem 0.8rem -0.2rem rgba(0, 0, 0, 0.3);
|
|
404
|
+
--shadow-md: 0 0.6rem 1.6rem -0.3rem rgba(0, 0, 0, 0.4);
|
|
405
|
+
--shadow-lg: 0 0.9rem 3.2rem -0.4rem rgba(0, 0, 0, 0.5);
|
|
406
|
+
--shadow-xl: 0 1.2rem 6.4rem -0.5rem rgba(0, 0, 0, 0.6);
|
|
407
|
+
--color-neutral-100: #FFFFFF;
|
|
408
|
+
--color-neutral-200: #EFEFF2;
|
|
409
|
+
--color-neutral-300: #DBDBD7;
|
|
410
|
+
--color-neutral-400: #B1B1B1;
|
|
411
|
+
--color-neutral-500: #7E7E8B;
|
|
412
|
+
--color-neutral-600: #61616B;
|
|
413
|
+
--color-neutral-700: #44444B;
|
|
414
|
+
--color-neutral-800: #27272B;
|
|
415
|
+
--color-neutral-900: #09090A;
|
|
416
|
+
--color-primary-100: #F4F5FB;
|
|
417
|
+
--color-primary-200: #C4D2F9;
|
|
418
|
+
--color-primary-300: #9EAEF5;
|
|
419
|
+
--color-primary-400: #727CEF;
|
|
420
|
+
--color-primary-500: #4F46E5;
|
|
421
|
+
--color-primary-600: #3A33C4;
|
|
422
|
+
--color-primary-700: #2923A4;
|
|
423
|
+
--color-primary-800: #1A1684;
|
|
424
|
+
--color-primary-900: #100D6D;
|
|
425
|
+
--color-secondary-100: #FFCDD8;
|
|
426
|
+
--color-secondary-200: #FF9BBC;
|
|
427
|
+
--color-secondary-300: #FF69AA;
|
|
428
|
+
--color-secondary-400: #FF43A7;
|
|
429
|
+
--color-secondary-500: #ff05a3;
|
|
430
|
+
--color-secondary-600: #DB03A1;
|
|
431
|
+
--color-secondary-700: #B70298;
|
|
432
|
+
--color-secondary-800: #930189;
|
|
433
|
+
--color-secondary-900: #76007A;
|
|
434
|
+
--color-success-100: #CFFDD5;
|
|
435
|
+
--color-success-200: #A1FCB5;
|
|
436
|
+
--color-success-300: #70F69B;
|
|
437
|
+
--color-success-400: #4CED90;
|
|
438
|
+
--color-success-500: #16e280;
|
|
439
|
+
--color-success-600: #10C27E;
|
|
440
|
+
--color-success-700: #0BA278;
|
|
441
|
+
--color-success-800: #07836C;
|
|
442
|
+
--color-success-900: #046C64;
|
|
443
|
+
--color-warning-100: #FEF9CB;
|
|
444
|
+
--color-warning-200: #FEF198;
|
|
445
|
+
--color-warning-300: #FEE765;
|
|
446
|
+
--color-warning-400: #FDDE3F;
|
|
447
|
+
--color-warning-500: #fdce00;
|
|
448
|
+
--color-warning-600: #D9AC00;
|
|
449
|
+
--color-warning-700: #B68D00;
|
|
450
|
+
--color-warning-800: #926E00;
|
|
451
|
+
--color-warning-900: #795900;
|
|
452
|
+
--color-danger-100: #FEE9CD;
|
|
453
|
+
--color-danger-200: #FECC9C;
|
|
454
|
+
--color-danger-300: #FCA86A;
|
|
455
|
+
--color-danger-400: #FA8645;
|
|
456
|
+
--color-danger-500: #f74e09;
|
|
457
|
+
--color-danger-600: #D43406;
|
|
458
|
+
--color-danger-700: #B11F04;
|
|
459
|
+
--color-danger-800: #8F0F02;
|
|
460
|
+
--color-danger-900: #760301;
|
|
461
|
+
}
|
|
462
|
+
`;
|
|
463
|
+
|
|
464
|
+
// src/styles/style.tsx
|
|
465
|
+
import { createGlobalStyle } from "styled-components";
|
|
466
|
+
|
|
467
|
+
// src/styles/_base.tsx
|
|
468
|
+
import { css as css6 } from "styled-components";
|
|
469
|
+
var CssBase = css6`
|
|
470
|
+
html,
|
|
471
|
+
body {
|
|
472
|
+
background: var(--color-neutral-100);
|
|
473
|
+
// color: var(--color-neutral-500);
|
|
474
|
+
scroll-behavior: smooth;
|
|
475
|
+
}
|
|
476
|
+
`;
|
|
477
|
+
|
|
478
|
+
// src/styles/_print.tsx
|
|
479
|
+
import { css as css7 } from "styled-components";
|
|
480
|
+
var CssPrint = css7`
|
|
481
|
+
.print-none {
|
|
482
|
+
@media print {
|
|
483
|
+
display: none;
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
.screen-none {
|
|
487
|
+
@media screen {
|
|
488
|
+
display: none;
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
`;
|
|
492
|
+
|
|
493
|
+
// src/styles/style.tsx
|
|
494
|
+
var swiperCss = "";
|
|
495
|
+
var GlobalStyle = createGlobalStyle`
|
|
496
|
+
|
|
497
|
+
${swiperCss}
|
|
498
|
+
|
|
499
|
+
${CssReset}
|
|
500
|
+
${CssVars}
|
|
501
|
+
${CssBase}
|
|
502
|
+
${CssTypography}
|
|
503
|
+
${CssScrollbar}
|
|
504
|
+
${CssPrint}
|
|
505
|
+
${CssDebug}
|
|
506
|
+
|
|
507
|
+
a {
|
|
508
|
+
color: inherit;
|
|
509
|
+
text-decoration: none;
|
|
510
|
+
}
|
|
511
|
+
`;
|
|
512
|
+
var style_default = GlobalStyle;
|
|
513
|
+
|
|
514
|
+
// src/styles/theme.json
|
|
515
|
+
var theme_default = {
|
|
516
|
+
base: {
|
|
517
|
+
fontSize: {
|
|
518
|
+
xs: "14px",
|
|
519
|
+
sm: "15px",
|
|
520
|
+
md: "15px",
|
|
521
|
+
lg: "16px",
|
|
522
|
+
xl: "16px"
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
font: {
|
|
526
|
+
primary: {
|
|
527
|
+
family: "Inter, -apple-system, 'Helvetica Neue', 'Segoe UI', Roboto, Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",
|
|
528
|
+
size: [
|
|
529
|
+
"Min(6.25rem, 16vw)",
|
|
530
|
+
"Min(4.5rem, 11.5vw)",
|
|
531
|
+
"Min(2.75rem, 7vw)",
|
|
532
|
+
"Min(2.5rem, 6.4vw)",
|
|
533
|
+
"2.25rem",
|
|
534
|
+
"1.875rem",
|
|
535
|
+
"1.5rem",
|
|
536
|
+
"1.125rem",
|
|
537
|
+
"1rem",
|
|
538
|
+
"0.9rem",
|
|
539
|
+
"0.8rem",
|
|
540
|
+
"0.7rem"
|
|
541
|
+
],
|
|
542
|
+
lineHeight: [
|
|
543
|
+
"0.9",
|
|
544
|
+
"1.0",
|
|
545
|
+
"1.1",
|
|
546
|
+
"1.2",
|
|
547
|
+
"1.3",
|
|
548
|
+
"1.4",
|
|
549
|
+
"1.5",
|
|
550
|
+
"1.625",
|
|
551
|
+
"1.5",
|
|
552
|
+
"1.6",
|
|
553
|
+
"1.7",
|
|
554
|
+
"1.8"
|
|
555
|
+
]
|
|
556
|
+
},
|
|
557
|
+
secondary: {
|
|
558
|
+
family: "Petrona, serif",
|
|
559
|
+
size: [
|
|
560
|
+
"7.5rem",
|
|
561
|
+
"5.4rem",
|
|
562
|
+
"3.3rem",
|
|
563
|
+
"3rem",
|
|
564
|
+
"2.7rem",
|
|
565
|
+
"2.25rem",
|
|
566
|
+
"1.8rem",
|
|
567
|
+
"1.35rem",
|
|
568
|
+
"1.2rem",
|
|
569
|
+
"1.08rem",
|
|
570
|
+
"0.96rem",
|
|
571
|
+
"0.84rem"
|
|
572
|
+
],
|
|
573
|
+
lineHeight: [
|
|
574
|
+
"0.9",
|
|
575
|
+
"1.0",
|
|
576
|
+
"1.1",
|
|
577
|
+
"1.2",
|
|
578
|
+
"1.3",
|
|
579
|
+
"1.4",
|
|
580
|
+
"1.5",
|
|
581
|
+
"1.625",
|
|
582
|
+
"1.5",
|
|
583
|
+
"1.6",
|
|
584
|
+
"1.7",
|
|
585
|
+
"1.8"
|
|
586
|
+
]
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
grid: {
|
|
590
|
+
columns: 12,
|
|
591
|
+
size: "1fr",
|
|
592
|
+
columnGap: "Max(4vw, Min(96px, calc(100% / 24)))",
|
|
593
|
+
rowGap: "0"
|
|
594
|
+
},
|
|
595
|
+
mediaQuery: {
|
|
596
|
+
xs: 0,
|
|
597
|
+
sm: 768,
|
|
598
|
+
md: 1024,
|
|
599
|
+
lg: 1440,
|
|
600
|
+
xl: 1600
|
|
601
|
+
},
|
|
602
|
+
container: {
|
|
603
|
+
maxWidth: {
|
|
604
|
+
xs: "calc(100% - var(--grid-column-gap) * 2)",
|
|
605
|
+
sm: "calc(100% - var(--grid-column-gap) * 2)",
|
|
606
|
+
md: "calc(1024px - var(--grid-column-gap) * 2)",
|
|
607
|
+
lg: "calc(1440px - var(--grid-column-gap) * 2)",
|
|
608
|
+
xl: "calc(1600px - var(--grid-column-gap) * 2)"
|
|
609
|
+
}
|
|
610
|
+
},
|
|
611
|
+
maxWidth: {
|
|
612
|
+
xs: "calc(100% - var(--grid-column-gap) * 2)",
|
|
613
|
+
sm: "calc(100% - var(--grid-column-gap) * 2)",
|
|
614
|
+
md: "Min(928px, calc(100% - var(--grid-column-gap) * 2))",
|
|
615
|
+
lg: "Min(1344px, calc(100% - var(--grid-column-gap) * 4))",
|
|
616
|
+
xl: "Min(1204px, calc(100% - var(--grid-column-gap) * 6))"
|
|
617
|
+
},
|
|
618
|
+
button: {
|
|
619
|
+
size: {
|
|
620
|
+
xs: "0.7rem",
|
|
621
|
+
sm: "0.8rem",
|
|
622
|
+
md: "1rem",
|
|
623
|
+
lg: "1.25rem",
|
|
624
|
+
xl: "1.45rem"
|
|
625
|
+
},
|
|
626
|
+
borderRadius: "0.2em"
|
|
627
|
+
},
|
|
628
|
+
form: {
|
|
629
|
+
fontSize: "1.125rem",
|
|
630
|
+
lineHeight: "1.6",
|
|
631
|
+
padding: "0.8em"
|
|
632
|
+
},
|
|
633
|
+
card: {
|
|
634
|
+
shadow: "0 20px 20px -10px rgba(0,0,0,0.2)"
|
|
635
|
+
},
|
|
636
|
+
backdrop: {
|
|
637
|
+
opacity: 0.5
|
|
638
|
+
},
|
|
639
|
+
border: {
|
|
640
|
+
radius: "0.5em"
|
|
641
|
+
},
|
|
642
|
+
shadow: {
|
|
643
|
+
xs: "0 0.1rem 0.4rem -0.1rem rgba(0, 0, 0, 0.2)",
|
|
644
|
+
sm: "0 0.3rem 0.8rem -0.2rem rgba(0, 0, 0, 0.3)",
|
|
645
|
+
md: "0 0.6rem 1.6rem -0.3rem rgba(0, 0, 0, 0.4)",
|
|
646
|
+
lg: "0 0.9rem 3.2rem -0.4rem rgba(0, 0, 0, 0.5)",
|
|
647
|
+
xl: "0 1.2rem 6.4rem -0.5rem rgba(0, 0, 0, 0.6)"
|
|
648
|
+
},
|
|
649
|
+
color: {
|
|
650
|
+
neutral: {
|
|
651
|
+
"100": "#FFFFFF",
|
|
652
|
+
"200": "#EFEFF2",
|
|
653
|
+
"300": "#DBDBD7",
|
|
654
|
+
"400": "#B1B1B1",
|
|
655
|
+
"500": "#7E7E8B",
|
|
656
|
+
"600": "#61616B",
|
|
657
|
+
"700": "#44444B",
|
|
658
|
+
"800": "#27272B",
|
|
659
|
+
"900": "#09090A"
|
|
660
|
+
},
|
|
661
|
+
primary: {
|
|
662
|
+
"100": "#F4F5FB",
|
|
663
|
+
"200": "#C4D2F9",
|
|
664
|
+
"300": "#9EAEF5",
|
|
665
|
+
"400": "#727CEF",
|
|
666
|
+
"500": "#4F46E5",
|
|
667
|
+
"600": "#3A33C4",
|
|
668
|
+
"700": "#2923A4",
|
|
669
|
+
"800": "#1A1684",
|
|
670
|
+
"900": "#100D6D"
|
|
671
|
+
},
|
|
672
|
+
secondary: {
|
|
673
|
+
"100": "#FFCDD8",
|
|
674
|
+
"200": "#FF9BBC",
|
|
675
|
+
"300": "#FF69AA",
|
|
676
|
+
"400": "#FF43A7",
|
|
677
|
+
"500": "#ff05a3",
|
|
678
|
+
"600": "#DB03A1",
|
|
679
|
+
"700": "#B70298",
|
|
680
|
+
"800": "#930189",
|
|
681
|
+
"900": "#76007A"
|
|
682
|
+
},
|
|
683
|
+
success: {
|
|
684
|
+
"100": "#CFFDD5",
|
|
685
|
+
"200": "#A1FCB5",
|
|
686
|
+
"300": "#70F69B",
|
|
687
|
+
"400": "#4CED90",
|
|
688
|
+
"500": "#16e280",
|
|
689
|
+
"600": "#10C27E",
|
|
690
|
+
"700": "#0BA278",
|
|
691
|
+
"800": "#07836C",
|
|
692
|
+
"900": "#046C64"
|
|
693
|
+
},
|
|
694
|
+
warning: {
|
|
695
|
+
"100": "#FEF9CB",
|
|
696
|
+
"200": "#FEF198",
|
|
697
|
+
"300": "#FEE765",
|
|
698
|
+
"400": "#FDDE3F",
|
|
699
|
+
"500": "#fdce00",
|
|
700
|
+
"600": "#D9AC00",
|
|
701
|
+
"700": "#B68D00",
|
|
702
|
+
"800": "#926E00",
|
|
703
|
+
"900": "#795900"
|
|
704
|
+
},
|
|
705
|
+
danger: {
|
|
706
|
+
"100": "#FEE9CD",
|
|
707
|
+
"200": "#FECC9C",
|
|
708
|
+
"300": "#FCA86A",
|
|
709
|
+
"400": "#FA8645",
|
|
710
|
+
"500": "#f74e09",
|
|
711
|
+
"600": "#D43406",
|
|
712
|
+
"700": "#B11F04",
|
|
713
|
+
"800": "#8F0F02",
|
|
714
|
+
"900": "#760301"
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
};
|
|
718
|
+
|
|
719
|
+
// src/styles/theme.ts
|
|
720
|
+
var customTheme = theme_default;
|
|
721
|
+
|
|
722
|
+
// src/styles/utils.ts
|
|
723
|
+
function merge(target, source) {
|
|
724
|
+
if (source === null) {
|
|
725
|
+
return source;
|
|
726
|
+
}
|
|
727
|
+
if (!target) {
|
|
728
|
+
if (source && typeof source === "object") {
|
|
729
|
+
return Object.assign({}, source);
|
|
730
|
+
} else {
|
|
731
|
+
return source;
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
if (source && typeof source === "object") {
|
|
735
|
+
Object.keys(source).forEach((key) => {
|
|
736
|
+
const value = source[key];
|
|
737
|
+
if (typeof value === "object" && !Array.isArray(value)) {
|
|
738
|
+
target[key] = merge(target[key], value);
|
|
739
|
+
} else {
|
|
740
|
+
target[key] = value;
|
|
741
|
+
}
|
|
742
|
+
});
|
|
743
|
+
}
|
|
744
|
+
return target;
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
// src/styles/index.ts
|
|
748
|
+
var sizes = ["xs", "sm", "md", "lg", "xl"];
|
|
749
|
+
|
|
750
|
+
// src/components/grid/grid-row.tsx
|
|
751
|
+
import styled from "styled-components";
|
|
752
|
+
var GridRow = styled.div`
|
|
753
|
+
${(props) => getCssResponsive(props)}
|
|
754
|
+
${(props) => getGrid(props)}
|
|
755
|
+
`;
|
|
756
|
+
|
|
757
|
+
// src/components/grid/grid.tsx
|
|
758
|
+
import { withSchema } from "@websolutespa/bom-mixer-core";
|
|
759
|
+
import styled2, { css as css8 } from "styled-components";
|
|
760
|
+
var GridBase = styled2.div`
|
|
761
|
+
// default grid column
|
|
762
|
+
grid-column: span var(--grid-columns);
|
|
763
|
+
|
|
764
|
+
${(props) => props.justifyContent || props.alignItems ? css8`
|
|
765
|
+
display: flex;
|
|
766
|
+
flex-direction: column;
|
|
767
|
+
` : ""}
|
|
768
|
+
|
|
769
|
+
// get media query column
|
|
770
|
+
${(props) => getMediaQueryColumn(props)}
|
|
771
|
+
${(props) => getCssResponsive(props)}
|
|
772
|
+
`;
|
|
773
|
+
var Grid = withSchema(GridBase, {
|
|
774
|
+
Row: GridRow,
|
|
775
|
+
displayName: "Grid"
|
|
776
|
+
});
|
|
777
|
+
function getMediaQueryColumn(props) {
|
|
778
|
+
const theme = props.theme;
|
|
779
|
+
return sizes.map((size) => {
|
|
780
|
+
const key = size;
|
|
781
|
+
const columns = props[key];
|
|
782
|
+
if (typeof columns === "number" && theme.mediaQuery) {
|
|
783
|
+
const width = theme.mediaQuery[key];
|
|
784
|
+
return key === "xs" ? `grid-column: span ${columns};
|
|
785
|
+
` : `
|
|
786
|
+
@media(min-width: ${width}px) {
|
|
787
|
+
grid-column: span ${columns};
|
|
788
|
+
}
|
|
789
|
+
`;
|
|
790
|
+
} else {
|
|
791
|
+
return "";
|
|
792
|
+
}
|
|
793
|
+
}).join("\n");
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
export {
|
|
797
|
+
CssScrollbar,
|
|
798
|
+
CssDebug,
|
|
799
|
+
CssReset,
|
|
800
|
+
CssTypography,
|
|
801
|
+
CssVars,
|
|
802
|
+
style_default,
|
|
803
|
+
customTheme,
|
|
804
|
+
merge,
|
|
805
|
+
sizes,
|
|
806
|
+
GridRow,
|
|
807
|
+
Grid
|
|
808
|
+
};
|