@weaverse/react 0.7.67 → 0.7.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +828 -717
- package/dist/index.mjs +824 -717
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -18,18 +18,19 @@ var Button = React.forwardRef((props, ref) => {
|
|
|
18
18
|
let { isDesignMode } = useContext(WeaverseContext);
|
|
19
19
|
let { text, clickAction, linkTo, openInNewTab, ...rest } = props;
|
|
20
20
|
if (clickAction === "none") {
|
|
21
|
-
return /* @__PURE__ */ React.createElement("button", {
|
|
21
|
+
return /* @__PURE__ */ React.createElement("button", { ref, ...rest }, text);
|
|
22
|
+
}
|
|
23
|
+
return /* @__PURE__ */ React.createElement(
|
|
24
|
+
"a",
|
|
25
|
+
{
|
|
22
26
|
ref,
|
|
27
|
+
href: !isDesignMode ? linkTo : void 0,
|
|
28
|
+
target: openInNewTab ? "_blank" : "_self",
|
|
29
|
+
rel: "noreferrer",
|
|
23
30
|
...rest
|
|
24
|
-
},
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
ref,
|
|
28
|
-
href: !isDesignMode ? linkTo : void 0,
|
|
29
|
-
target: openInNewTab ? "_blank" : "_self",
|
|
30
|
-
rel: "noreferrer",
|
|
31
|
-
...rest
|
|
32
|
-
}, text);
|
|
31
|
+
},
|
|
32
|
+
text
|
|
33
|
+
);
|
|
33
34
|
});
|
|
34
35
|
Button.defaultProps = {
|
|
35
36
|
type: "button",
|
|
@@ -63,10 +64,7 @@ import React2, { forwardRef as forwardRef2 } from "react";
|
|
|
63
64
|
var Container = forwardRef2(
|
|
64
65
|
(props, ref) => {
|
|
65
66
|
let { children, ...rest } = props;
|
|
66
|
-
return /* @__PURE__ */ React2.createElement("div", {
|
|
67
|
-
ref,
|
|
68
|
-
...rest
|
|
69
|
-
}, children);
|
|
67
|
+
return /* @__PURE__ */ React2.createElement("div", { ref, ...rest }, children);
|
|
70
68
|
}
|
|
71
69
|
);
|
|
72
70
|
var css2 = {
|
|
@@ -117,13 +115,7 @@ function getVimeoId(url) {
|
|
|
117
115
|
// src/elements/countdown/timer-block.tsx
|
|
118
116
|
import React3 from "react";
|
|
119
117
|
function TimerBlock({ value, label }) {
|
|
120
|
-
return /* @__PURE__ */ React3.createElement("div", {
|
|
121
|
-
className: "wv-cd-block"
|
|
122
|
-
}, /* @__PURE__ */ React3.createElement("div", {
|
|
123
|
-
className: "wv-cd-number"
|
|
124
|
-
}, typeof value === "string" ? value : value.toString().padStart(2, "0")), label && /* @__PURE__ */ React3.createElement("div", {
|
|
125
|
-
className: "wv-cd-label"
|
|
126
|
-
}, label));
|
|
118
|
+
return /* @__PURE__ */ React3.createElement("div", { className: "wv-cd-block" }, /* @__PURE__ */ React3.createElement("div", { className: "wv-cd-number" }, typeof value === "string" ? value : value.toString().padStart(2, "0")), label && /* @__PURE__ */ React3.createElement("div", { className: "wv-cd-label" }, label));
|
|
127
119
|
}
|
|
128
120
|
|
|
129
121
|
// src/elements/countdown/index.tsx
|
|
@@ -186,18 +178,14 @@ var Countdown = forwardRef3(
|
|
|
186
178
|
};
|
|
187
179
|
}, [startTimeProp, endTimeProp, periods, timerType]);
|
|
188
180
|
const timer = getTime(remaining);
|
|
189
|
-
return /* @__PURE__ */ React4.createElement("div", {
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
value: remaining === 0 ? "--" : timer[time]
|
|
198
|
-
}), time !== "seconds" && /* @__PURE__ */ React4.createElement("div", {
|
|
199
|
-
className: "wv-cd-separator"
|
|
200
|
-
}, showColon && /* @__PURE__ */ React4.createElement("span", null, ":")));
|
|
181
|
+
return /* @__PURE__ */ React4.createElement("div", { ref, ...rest }, TIMES.map((time) => {
|
|
182
|
+
return /* @__PURE__ */ React4.createElement(React4.Fragment, { key: time }, /* @__PURE__ */ React4.createElement(
|
|
183
|
+
TimerBlock,
|
|
184
|
+
{
|
|
185
|
+
label: showLabel ? time : "",
|
|
186
|
+
value: remaining === 0 ? "--" : timer[time]
|
|
187
|
+
}
|
|
188
|
+
), time !== "seconds" && /* @__PURE__ */ React4.createElement("div", { className: "wv-cd-separator" }, showColon && /* @__PURE__ */ React4.createElement("span", null, ":")));
|
|
201
189
|
}));
|
|
202
190
|
}
|
|
203
191
|
);
|
|
@@ -259,25 +247,19 @@ var Image = React5.forwardRef(
|
|
|
259
247
|
"--img-object-fit": objectFit,
|
|
260
248
|
"--img-object-position": objectPosition
|
|
261
249
|
};
|
|
262
|
-
let content = /* @__PURE__ */ React5.createElement("img", {
|
|
263
|
-
alt,
|
|
264
|
-
"data-blink-src": src
|
|
265
|
-
});
|
|
250
|
+
let content = /* @__PURE__ */ React5.createElement("img", { alt, "data-blink-src": src });
|
|
266
251
|
if (clickAction === "openLink" && linkTo) {
|
|
267
|
-
content = /* @__PURE__ */ React5.createElement(
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
252
|
+
content = /* @__PURE__ */ React5.createElement(
|
|
253
|
+
"a",
|
|
254
|
+
{
|
|
255
|
+
href: linkTo,
|
|
256
|
+
target: openLinkInNewTab ? "_blank" : "_self",
|
|
257
|
+
rel: "noreferrer"
|
|
258
|
+
},
|
|
259
|
+
/* @__PURE__ */ React5.createElement("img", { alt, "data-blink-src": src })
|
|
260
|
+
);
|
|
275
261
|
}
|
|
276
|
-
return /* @__PURE__ */ React5.createElement("div", {
|
|
277
|
-
ref,
|
|
278
|
-
style,
|
|
279
|
-
...rest
|
|
280
|
-
}, content);
|
|
262
|
+
return /* @__PURE__ */ React5.createElement("div", { ref, style, ...rest }, content);
|
|
281
263
|
}
|
|
282
264
|
);
|
|
283
265
|
var css4 = {
|
|
@@ -318,15 +300,15 @@ function Background(props) {
|
|
|
318
300
|
["--layout-bg-image-position"]: objectPosition
|
|
319
301
|
};
|
|
320
302
|
if (imgUrl || bgColor) {
|
|
321
|
-
return /* @__PURE__ */ React6.createElement("div", {
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
303
|
+
return /* @__PURE__ */ React6.createElement("div", { style, className: "wv-layout-background" }, imgUrl && /* @__PURE__ */ React6.createElement(
|
|
304
|
+
"img",
|
|
305
|
+
{
|
|
306
|
+
width: "100%",
|
|
307
|
+
height: "100%",
|
|
308
|
+
"data-blink-src": imgUrl,
|
|
309
|
+
alt: "Section background"
|
|
310
|
+
}
|
|
311
|
+
));
|
|
330
312
|
}
|
|
331
313
|
return null;
|
|
332
314
|
}
|
|
@@ -339,10 +321,7 @@ function Overlay(props) {
|
|
|
339
321
|
let style = {
|
|
340
322
|
["--layout-overlay-opacity"]: overlayOpacity / 100
|
|
341
323
|
};
|
|
342
|
-
return /* @__PURE__ */ React7.createElement("div", {
|
|
343
|
-
className: "wv-layout-overlay",
|
|
344
|
-
style
|
|
345
|
-
});
|
|
324
|
+
return /* @__PURE__ */ React7.createElement("div", { className: "wv-layout-overlay", style });
|
|
346
325
|
}
|
|
347
326
|
return null;
|
|
348
327
|
}
|
|
@@ -375,21 +354,15 @@ var Layout = forwardRef4((props, ref) => {
|
|
|
375
354
|
"--row-size": rowSize + "px",
|
|
376
355
|
"--col-size": "calc((var(--grid-size) - calc(var(--columns) - 1) * var(--gap)) / var(--columns))"
|
|
377
356
|
};
|
|
378
|
-
return /* @__PURE__ */ React8.createElement("div", {
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
}), /* @__PURE__ */ React8.createElement(Overlay, {
|
|
388
|
-
enableOverlay,
|
|
389
|
-
overlayOpacity
|
|
390
|
-
}), /* @__PURE__ */ React8.createElement("div", {
|
|
391
|
-
"data-layout-content": true
|
|
392
|
-
}, children));
|
|
357
|
+
return /* @__PURE__ */ React8.createElement("div", { ref, ...rest, style }, /* @__PURE__ */ React8.createElement(
|
|
358
|
+
Background,
|
|
359
|
+
{
|
|
360
|
+
imgUrl: backgroundImage,
|
|
361
|
+
bgColor: backgroundColor,
|
|
362
|
+
objectFit,
|
|
363
|
+
objectPosition
|
|
364
|
+
}
|
|
365
|
+
), /* @__PURE__ */ React8.createElement(Overlay, { enableOverlay, overlayOpacity }), /* @__PURE__ */ React8.createElement("div", { "data-layout-content": true }, children));
|
|
393
366
|
});
|
|
394
367
|
var css5 = {
|
|
395
368
|
"@desktop": {
|
|
@@ -448,17 +421,17 @@ var layout_default = Layout;
|
|
|
448
421
|
import React9, { forwardRef as forwardRef5 } from "react";
|
|
449
422
|
var Map = forwardRef5((props, ref) => {
|
|
450
423
|
let { place, zoom, ...rest } = props;
|
|
451
|
-
return /* @__PURE__ */ React9.createElement("div", {
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
424
|
+
return /* @__PURE__ */ React9.createElement("div", { ref, ...rest }, /* @__PURE__ */ React9.createElement(
|
|
425
|
+
"iframe",
|
|
426
|
+
{
|
|
427
|
+
loading: "lazy",
|
|
428
|
+
width: "100%",
|
|
429
|
+
height: "100%",
|
|
430
|
+
title: "map",
|
|
431
|
+
src: `https://maps.google.com/maps?z=${zoom}&t=m&q=${place}&ie=UTF8&&output=embed`,
|
|
432
|
+
style: { pointerEvents: "none" }
|
|
433
|
+
}
|
|
434
|
+
));
|
|
462
435
|
});
|
|
463
436
|
var css6 = {
|
|
464
437
|
"@desktop": {
|
|
@@ -483,13 +456,13 @@ import * as React10 from "react";
|
|
|
483
456
|
var Text = React10.forwardRef(
|
|
484
457
|
(props, ref) => {
|
|
485
458
|
let { children, value, ...rest } = props;
|
|
486
|
-
return /* @__PURE__ */ React10.createElement("div", {
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
459
|
+
return /* @__PURE__ */ React10.createElement("div", { ref, ...rest }, /* @__PURE__ */ React10.createElement(
|
|
460
|
+
"div",
|
|
461
|
+
{
|
|
462
|
+
className: "wv-text-content",
|
|
463
|
+
dangerouslySetInnerHTML: { __html: value }
|
|
464
|
+
}
|
|
465
|
+
));
|
|
493
466
|
}
|
|
494
467
|
);
|
|
495
468
|
var css7 = {
|
|
@@ -516,20 +489,20 @@ import React14, { forwardRef as forwardRef7, useContext as useContext3 } from "r
|
|
|
516
489
|
import React11 from "react";
|
|
517
490
|
function HTMLVideo(props) {
|
|
518
491
|
let { src, type, controls, autoPlay, loop, muted } = props;
|
|
519
|
-
return /* @__PURE__ */ React11.createElement(
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
src,
|
|
531
|
-
|
|
532
|
-
|
|
492
|
+
return /* @__PURE__ */ React11.createElement(
|
|
493
|
+
"video",
|
|
494
|
+
{
|
|
495
|
+
controls,
|
|
496
|
+
autoPlay,
|
|
497
|
+
loop,
|
|
498
|
+
muted,
|
|
499
|
+
controlsList: "nodownload",
|
|
500
|
+
disablePictureInPicture: true
|
|
501
|
+
},
|
|
502
|
+
/* @__PURE__ */ React11.createElement("source", { src, type: type || "video/mp4" }),
|
|
503
|
+
/* @__PURE__ */ React11.createElement("source", { src, type: "video/ogg" }),
|
|
504
|
+
"Your browser does not support the video tag."
|
|
505
|
+
);
|
|
533
506
|
}
|
|
534
507
|
|
|
535
508
|
// src/elements/video/vimeo.tsx
|
|
@@ -538,12 +511,7 @@ function Vimeo(props) {
|
|
|
538
511
|
let { vimeoId, controls, autoPlay, loop, muted } = props;
|
|
539
512
|
let params = `autoplay=${autoPlay}&loop=${loop}&controls=${controls}&muted=${muted}`;
|
|
540
513
|
let vimeoSrc = `https://player.vimeo.com/video/${vimeoId}?${params}`;
|
|
541
|
-
return /* @__PURE__ */ React12.createElement("iframe", {
|
|
542
|
-
src: vimeoSrc,
|
|
543
|
-
width: "100%",
|
|
544
|
-
height: "100%",
|
|
545
|
-
allowFullScreen: true
|
|
546
|
-
});
|
|
514
|
+
return /* @__PURE__ */ React12.createElement("iframe", { src: vimeoSrc, width: "100%", height: "100%", allowFullScreen: true });
|
|
547
515
|
}
|
|
548
516
|
|
|
549
517
|
// src/elements/video/youtube.tsx
|
|
@@ -558,12 +526,7 @@ function Youtube(props) {
|
|
|
558
526
|
});
|
|
559
527
|
let youtubeSrc = `https://www.youtube.com/embed/${youtubeId}?playlist=${youtubeId}&${params.toString()}`;
|
|
560
528
|
let allow = `accelerometer;${autoPlay ? "autoplay;" : ""} clipboard-write; encrypted-media; gyroscope; picture-in-picture`;
|
|
561
|
-
return /* @__PURE__ */ React13.createElement("iframe", {
|
|
562
|
-
src: youtubeSrc,
|
|
563
|
-
width: "100%",
|
|
564
|
-
height: "100%",
|
|
565
|
-
allow
|
|
566
|
-
});
|
|
529
|
+
return /* @__PURE__ */ React13.createElement("iframe", { src: youtubeSrc, width: "100%", height: "100%", allow });
|
|
567
530
|
}
|
|
568
531
|
|
|
569
532
|
// src/elements/video/index.tsx
|
|
@@ -584,24 +547,13 @@ var Video = forwardRef7((props, ref) => {
|
|
|
584
547
|
let youtubeId = getYoutubeEmbedId(src);
|
|
585
548
|
let vimeoId = getVimeoId(src);
|
|
586
549
|
if (youtubeId) {
|
|
587
|
-
content = /* @__PURE__ */ React14.createElement(Youtube, {
|
|
588
|
-
...videoProps,
|
|
589
|
-
youtubeId
|
|
590
|
-
});
|
|
550
|
+
content = /* @__PURE__ */ React14.createElement(Youtube, { ...videoProps, youtubeId });
|
|
591
551
|
} else if (vimeoId) {
|
|
592
|
-
content = /* @__PURE__ */ React14.createElement(Vimeo, {
|
|
593
|
-
...videoProps,
|
|
594
|
-
vimeoId
|
|
595
|
-
});
|
|
552
|
+
content = /* @__PURE__ */ React14.createElement(Vimeo, { ...videoProps, vimeoId });
|
|
596
553
|
} else {
|
|
597
|
-
content = /* @__PURE__ */ React14.createElement(HTMLVideo, {
|
|
598
|
-
...videoProps
|
|
599
|
-
});
|
|
554
|
+
content = /* @__PURE__ */ React14.createElement(HTMLVideo, { ...videoProps });
|
|
600
555
|
}
|
|
601
|
-
return /* @__PURE__ */ React14.createElement("div", {
|
|
602
|
-
ref,
|
|
603
|
-
...rest
|
|
604
|
-
}, content);
|
|
556
|
+
return /* @__PURE__ */ React14.createElement("div", { ref, ...rest }, content);
|
|
605
557
|
});
|
|
606
558
|
var css8 = {
|
|
607
559
|
"@desktop": {
|
|
@@ -662,439 +614,580 @@ __export(phosphor_exports, {
|
|
|
662
614
|
});
|
|
663
615
|
import React15 from "react";
|
|
664
616
|
var CircleNotch = (props) => {
|
|
665
|
-
return /* @__PURE__ */ React15.createElement(
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
617
|
+
return /* @__PURE__ */ React15.createElement(
|
|
618
|
+
"svg",
|
|
619
|
+
{
|
|
620
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
621
|
+
fill: "none",
|
|
622
|
+
viewBox: "0 0 24 24",
|
|
623
|
+
...props
|
|
624
|
+
},
|
|
625
|
+
/* @__PURE__ */ React15.createElement(
|
|
626
|
+
"circle",
|
|
627
|
+
{
|
|
628
|
+
style: { opacity: ".25" },
|
|
629
|
+
cx: "12",
|
|
630
|
+
cy: "12",
|
|
631
|
+
r: "10",
|
|
632
|
+
stroke: "currentColor",
|
|
633
|
+
strokeWidth: "4"
|
|
634
|
+
}
|
|
635
|
+
),
|
|
636
|
+
/* @__PURE__ */ React15.createElement(
|
|
637
|
+
"path",
|
|
638
|
+
{
|
|
639
|
+
style: { opacity: ".75" },
|
|
640
|
+
fill: "currentColor",
|
|
641
|
+
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
642
|
+
}
|
|
643
|
+
)
|
|
644
|
+
);
|
|
682
645
|
};
|
|
683
646
|
var X = (props) => {
|
|
684
|
-
return /* @__PURE__ */ React15.createElement(
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
fill: "none"
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
647
|
+
return /* @__PURE__ */ React15.createElement(
|
|
648
|
+
"svg",
|
|
649
|
+
{
|
|
650
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
651
|
+
width: "20",
|
|
652
|
+
height: "20",
|
|
653
|
+
fill: "currentColor",
|
|
654
|
+
viewBox: "0 0 256 256",
|
|
655
|
+
...props
|
|
656
|
+
},
|
|
657
|
+
/* @__PURE__ */ React15.createElement("rect", { width: "256", height: "256", fill: "none" }),
|
|
658
|
+
/* @__PURE__ */ React15.createElement(
|
|
659
|
+
"line",
|
|
660
|
+
{
|
|
661
|
+
x1: "200",
|
|
662
|
+
y1: "56",
|
|
663
|
+
x2: "56",
|
|
664
|
+
y2: "200",
|
|
665
|
+
fill: "none",
|
|
666
|
+
stroke: "currentColor",
|
|
667
|
+
strokeLinecap: "round",
|
|
668
|
+
strokeLinejoin: "round",
|
|
669
|
+
strokeWidth: "12"
|
|
670
|
+
}
|
|
671
|
+
),
|
|
672
|
+
/* @__PURE__ */ React15.createElement(
|
|
673
|
+
"line",
|
|
674
|
+
{
|
|
675
|
+
x1: "200",
|
|
676
|
+
y1: "200",
|
|
677
|
+
x2: "56",
|
|
678
|
+
y2: "56",
|
|
679
|
+
fill: "none",
|
|
680
|
+
stroke: "currentColor",
|
|
681
|
+
strokeLinecap: "round",
|
|
682
|
+
strokeLinejoin: "round",
|
|
683
|
+
strokeWidth: "12"
|
|
684
|
+
}
|
|
685
|
+
)
|
|
686
|
+
);
|
|
716
687
|
};
|
|
717
688
|
var Minus = (props) => {
|
|
718
|
-
return /* @__PURE__ */ React15.createElement(
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
689
|
+
return /* @__PURE__ */ React15.createElement(
|
|
690
|
+
"svg",
|
|
691
|
+
{
|
|
692
|
+
width: "196",
|
|
693
|
+
height: "196",
|
|
694
|
+
fill: "currentColor",
|
|
695
|
+
stroke: "currentColor",
|
|
696
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
697
|
+
viewBox: "0 0 384 512",
|
|
698
|
+
...props
|
|
699
|
+
},
|
|
700
|
+
/* @__PURE__ */ React15.createElement("path", { d: "M376 232H8c-4.42 0-8 3.58-8 8v32c0 4.42 3.58 8 8 8h368c4.42 0 8-3.58 8-8v-32c0-4.42-3.58-8-8-8z" })
|
|
701
|
+
);
|
|
729
702
|
};
|
|
730
703
|
var Plus = (props) => {
|
|
731
|
-
return /* @__PURE__ */ React15.createElement(
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
704
|
+
return /* @__PURE__ */ React15.createElement(
|
|
705
|
+
"svg",
|
|
706
|
+
{
|
|
707
|
+
width: "196",
|
|
708
|
+
height: "196",
|
|
709
|
+
fill: "currentColor",
|
|
710
|
+
stroke: "currentColor",
|
|
711
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
712
|
+
viewBox: "0 0 384 512",
|
|
713
|
+
...props
|
|
714
|
+
},
|
|
715
|
+
/* @__PURE__ */ React15.createElement("path", { d: "M376 232H216V72c0-4.42-3.58-8-8-8h-32c-4.42 0-8 3.58-8 8v160H8c-4.42 0-8 3.58-8 8v32c0 4.42 3.58 8 8 8h160v160c0 4.42 3.58 8 8 8h32c4.42 0 8-3.58 8-8V280h160c4.42 0 8-3.58 8-8v-32c0-4.42-3.58-8-8-8z" })
|
|
716
|
+
);
|
|
742
717
|
};
|
|
743
718
|
var ArrowLeft = (props) => {
|
|
744
|
-
return /* @__PURE__ */ React15.createElement(
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
fill: "none"
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
719
|
+
return /* @__PURE__ */ React15.createElement(
|
|
720
|
+
"svg",
|
|
721
|
+
{
|
|
722
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
723
|
+
width: "192",
|
|
724
|
+
height: "192",
|
|
725
|
+
fill: "currentColor",
|
|
726
|
+
viewBox: "0 0 256 256",
|
|
727
|
+
...props
|
|
728
|
+
},
|
|
729
|
+
/* @__PURE__ */ React15.createElement("rect", { width: "256", height: "256", fill: "none" }),
|
|
730
|
+
/* @__PURE__ */ React15.createElement(
|
|
731
|
+
"line",
|
|
732
|
+
{
|
|
733
|
+
x1: "216",
|
|
734
|
+
y1: "128",
|
|
735
|
+
x2: "40",
|
|
736
|
+
y2: "128",
|
|
737
|
+
fill: "none",
|
|
738
|
+
stroke: "currentColor",
|
|
739
|
+
strokeLinecap: "round",
|
|
740
|
+
strokeLinejoin: "round",
|
|
741
|
+
strokeWidth: "16"
|
|
742
|
+
}
|
|
743
|
+
),
|
|
744
|
+
/* @__PURE__ */ React15.createElement(
|
|
745
|
+
"polyline",
|
|
746
|
+
{
|
|
747
|
+
points: "112 56 40 128 112 200",
|
|
748
|
+
fill: "none",
|
|
749
|
+
stroke: "currentColor",
|
|
750
|
+
strokeLinecap: "round",
|
|
751
|
+
strokeLinejoin: "round",
|
|
752
|
+
strokeWidth: "16"
|
|
753
|
+
}
|
|
754
|
+
)
|
|
755
|
+
);
|
|
773
756
|
};
|
|
774
757
|
var ArrowRight = (props) => {
|
|
775
|
-
return /* @__PURE__ */ React15.createElement(
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
fill: "none"
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
758
|
+
return /* @__PURE__ */ React15.createElement(
|
|
759
|
+
"svg",
|
|
760
|
+
{
|
|
761
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
762
|
+
width: "192",
|
|
763
|
+
height: "192",
|
|
764
|
+
fill: "currentColor",
|
|
765
|
+
viewBox: "0 0 256 256",
|
|
766
|
+
...props
|
|
767
|
+
},
|
|
768
|
+
/* @__PURE__ */ React15.createElement("rect", { width: "256", height: "256", fill: "none" }),
|
|
769
|
+
/* @__PURE__ */ React15.createElement(
|
|
770
|
+
"line",
|
|
771
|
+
{
|
|
772
|
+
x1: "40",
|
|
773
|
+
y1: "128",
|
|
774
|
+
x2: "216",
|
|
775
|
+
y2: "128",
|
|
776
|
+
fill: "none",
|
|
777
|
+
stroke: "currentColor",
|
|
778
|
+
strokeLinecap: "round",
|
|
779
|
+
strokeLinejoin: "round",
|
|
780
|
+
strokeWidth: "16"
|
|
781
|
+
}
|
|
782
|
+
),
|
|
783
|
+
/* @__PURE__ */ React15.createElement(
|
|
784
|
+
"polyline",
|
|
785
|
+
{
|
|
786
|
+
points: "144 56 216 128 144 200",
|
|
787
|
+
fill: "none",
|
|
788
|
+
stroke: "currentColor",
|
|
789
|
+
strokeLinecap: "round",
|
|
790
|
+
strokeLinejoin: "round",
|
|
791
|
+
strokeWidth: "16"
|
|
792
|
+
}
|
|
793
|
+
)
|
|
794
|
+
);
|
|
804
795
|
};
|
|
805
796
|
var Image2 = (props) => {
|
|
806
|
-
return /* @__PURE__ */ React15.createElement(
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
797
|
+
return /* @__PURE__ */ React15.createElement(
|
|
798
|
+
"svg",
|
|
799
|
+
{
|
|
800
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
801
|
+
"aria-hidden": "true",
|
|
802
|
+
fill: "currentColor",
|
|
803
|
+
viewBox: "0 0 640 512",
|
|
804
|
+
...props
|
|
805
|
+
},
|
|
806
|
+
/* @__PURE__ */ React15.createElement("path", { d: "M480 80C480 35.82 515.8 0 560 0C604.2 0 640 35.82 640 80C640 124.2 604.2 160 560 160C515.8 160 480 124.2 480 80zM0 456.1C0 445.6 2.964 435.3 8.551 426.4L225.3 81.01C231.9 70.42 243.5 64 256 64C268.5 64 280.1 70.42 286.8 81.01L412.7 281.7L460.9 202.7C464.1 196.1 472.2 192 480 192C487.8 192 495 196.1 499.1 202.7L631.1 419.1C636.9 428.6 640 439.7 640 450.9C640 484.6 612.6 512 578.9 512H55.91C25.03 512 .0006 486.1 .0006 456.1L0 456.1z" })
|
|
807
|
+
);
|
|
815
808
|
};
|
|
816
809
|
var ShoppingCart = (props) => {
|
|
817
|
-
return /* @__PURE__ */ React15.createElement(
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
fill: "none"
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
810
|
+
return /* @__PURE__ */ React15.createElement(
|
|
811
|
+
"svg",
|
|
812
|
+
{
|
|
813
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
814
|
+
width: "192",
|
|
815
|
+
height: "192",
|
|
816
|
+
fill: "currentColor",
|
|
817
|
+
viewBox: "0 0 256 256",
|
|
818
|
+
...props
|
|
819
|
+
},
|
|
820
|
+
/* @__PURE__ */ React15.createElement("rect", { width: "256", height: "256", fill: "none" }),
|
|
821
|
+
/* @__PURE__ */ React15.createElement(
|
|
822
|
+
"path",
|
|
823
|
+
{
|
|
824
|
+
d: "M184,184H69.8L41.9,30.6A8,8,0,0,0,34.1,24H16",
|
|
825
|
+
fill: "none",
|
|
826
|
+
stroke: "currentColor",
|
|
827
|
+
strokeLinecap: "round",
|
|
828
|
+
strokeLinejoin: "round",
|
|
829
|
+
strokeWidth: "16"
|
|
830
|
+
}
|
|
831
|
+
),
|
|
832
|
+
/* @__PURE__ */ React15.createElement(
|
|
833
|
+
"circle",
|
|
834
|
+
{
|
|
835
|
+
cx: "80",
|
|
836
|
+
cy: "204",
|
|
837
|
+
r: "20",
|
|
838
|
+
fill: "none",
|
|
839
|
+
stroke: "currentColor",
|
|
840
|
+
strokeLinecap: "round",
|
|
841
|
+
strokeLinejoin: "round",
|
|
842
|
+
strokeWidth: "16"
|
|
843
|
+
}
|
|
844
|
+
),
|
|
845
|
+
/* @__PURE__ */ React15.createElement(
|
|
846
|
+
"circle",
|
|
847
|
+
{
|
|
848
|
+
cx: "184",
|
|
849
|
+
cy: "204",
|
|
850
|
+
r: "20",
|
|
851
|
+
fill: "none",
|
|
852
|
+
stroke: "currentColor",
|
|
853
|
+
strokeLinecap: "round",
|
|
854
|
+
strokeLinejoin: "round",
|
|
855
|
+
strokeWidth: "16"
|
|
856
|
+
}
|
|
857
|
+
),
|
|
858
|
+
/* @__PURE__ */ React15.createElement(
|
|
859
|
+
"path",
|
|
860
|
+
{
|
|
861
|
+
d: "M62.5,144H188.1a15.9,15.9,0,0,0,15.7-13.1L216,64H48",
|
|
862
|
+
fill: "none",
|
|
863
|
+
stroke: "currentColor",
|
|
864
|
+
strokeLinecap: "round",
|
|
865
|
+
strokeLinejoin: "round",
|
|
866
|
+
strokeWidth: "16"
|
|
867
|
+
}
|
|
868
|
+
)
|
|
869
|
+
);
|
|
861
870
|
};
|
|
862
871
|
var Storefront = (props) => {
|
|
863
|
-
return /* @__PURE__ */ React15.createElement(
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
fill: "none"
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
872
|
+
return /* @__PURE__ */ React15.createElement(
|
|
873
|
+
"svg",
|
|
874
|
+
{
|
|
875
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
876
|
+
width: "192",
|
|
877
|
+
height: "192",
|
|
878
|
+
fill: "currentColor",
|
|
879
|
+
viewBox: "0 0 256 256",
|
|
880
|
+
...props
|
|
881
|
+
},
|
|
882
|
+
/* @__PURE__ */ React15.createElement("rect", { width: "256", height: "256", fill: "none" }),
|
|
883
|
+
/* @__PURE__ */ React15.createElement(
|
|
884
|
+
"path",
|
|
885
|
+
{
|
|
886
|
+
d: "M48,139.6V208a8,8,0,0,0,8,8H200a8,8,0,0,0,8-8V139.6",
|
|
887
|
+
fill: "none",
|
|
888
|
+
stroke: "currentColor",
|
|
889
|
+
strokeLinecap: "round",
|
|
890
|
+
strokeLinejoin: "round",
|
|
891
|
+
strokeWidth: "12"
|
|
892
|
+
}
|
|
893
|
+
),
|
|
894
|
+
/* @__PURE__ */ React15.createElement(
|
|
895
|
+
"path",
|
|
896
|
+
{
|
|
897
|
+
d: "M54,40H202a8.1,8.1,0,0,1,7.7,5.8L224,96H32L46.3,45.8A8.1,8.1,0,0,1,54,40Z",
|
|
898
|
+
fill: "none",
|
|
899
|
+
stroke: "currentColor",
|
|
900
|
+
strokeLinecap: "round",
|
|
901
|
+
strokeLinejoin: "round",
|
|
902
|
+
strokeWidth: "12"
|
|
903
|
+
}
|
|
904
|
+
),
|
|
905
|
+
/* @__PURE__ */ React15.createElement(
|
|
906
|
+
"path",
|
|
907
|
+
{
|
|
908
|
+
d: "M96,96v16a32,32,0,0,1-64,0V96",
|
|
909
|
+
fill: "none",
|
|
910
|
+
stroke: "currentColor",
|
|
911
|
+
strokeLinecap: "round",
|
|
912
|
+
strokeLinejoin: "round",
|
|
913
|
+
strokeWidth: "12"
|
|
914
|
+
}
|
|
915
|
+
),
|
|
916
|
+
/* @__PURE__ */ React15.createElement(
|
|
917
|
+
"path",
|
|
918
|
+
{
|
|
919
|
+
d: "M160,96v16a32,32,0,0,1-64,0V96",
|
|
920
|
+
fill: "none",
|
|
921
|
+
stroke: "currentColor",
|
|
922
|
+
strokeLinecap: "round",
|
|
923
|
+
strokeLinejoin: "round",
|
|
924
|
+
strokeWidth: "12"
|
|
925
|
+
}
|
|
926
|
+
),
|
|
927
|
+
/* @__PURE__ */ React15.createElement(
|
|
928
|
+
"path",
|
|
929
|
+
{
|
|
930
|
+
d: "M224,96v16a32,32,0,0,1-64,0V96",
|
|
931
|
+
fill: "none",
|
|
932
|
+
stroke: "currentColor",
|
|
933
|
+
strokeLinecap: "round",
|
|
934
|
+
strokeLinejoin: "round",
|
|
935
|
+
strokeWidth: "12"
|
|
936
|
+
}
|
|
937
|
+
)
|
|
938
|
+
);
|
|
910
939
|
};
|
|
911
940
|
var Package = (props) => {
|
|
912
|
-
return /* @__PURE__ */ React15.createElement(
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
fill: "none"
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
941
|
+
return /* @__PURE__ */ React15.createElement(
|
|
942
|
+
"svg",
|
|
943
|
+
{
|
|
944
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
945
|
+
width: "192",
|
|
946
|
+
height: "192",
|
|
947
|
+
fill: "currentColor",
|
|
948
|
+
viewBox: "0 0 256 256",
|
|
949
|
+
...props
|
|
950
|
+
},
|
|
951
|
+
/* @__PURE__ */ React15.createElement("rect", { width: "256", height: "256", fill: "none" }),
|
|
952
|
+
/* @__PURE__ */ React15.createElement(
|
|
953
|
+
"path",
|
|
954
|
+
{
|
|
955
|
+
d: "M224,177.3V78.7a8.1,8.1,0,0,0-4.1-7l-88-49.5a7.8,7.8,0,0,0-7.8,0l-88,49.5a8.1,8.1,0,0,0-4.1,7v98.6a8.1,8.1,0,0,0,4.1,7l88,49.5a7.8,7.8,0,0,0,7.8,0l88-49.5A8.1,8.1,0,0,0,224,177.3Z",
|
|
956
|
+
fill: "none",
|
|
957
|
+
stroke: "currentColor",
|
|
958
|
+
strokeLinecap: "round",
|
|
959
|
+
strokeLinejoin: "round",
|
|
960
|
+
strokeWidth: "8"
|
|
961
|
+
}
|
|
962
|
+
),
|
|
963
|
+
/* @__PURE__ */ React15.createElement(
|
|
964
|
+
"polyline",
|
|
965
|
+
{
|
|
966
|
+
points: "177 152.5 177 100.5 80 47",
|
|
967
|
+
fill: "none",
|
|
968
|
+
stroke: "currentColor",
|
|
969
|
+
strokeLinecap: "round",
|
|
970
|
+
strokeLinejoin: "round",
|
|
971
|
+
strokeWidth: "8"
|
|
972
|
+
}
|
|
973
|
+
),
|
|
974
|
+
/* @__PURE__ */ React15.createElement(
|
|
975
|
+
"polyline",
|
|
976
|
+
{
|
|
977
|
+
points: "222.9 74.6 128.9 128 33.1 74.6",
|
|
978
|
+
fill: "none",
|
|
979
|
+
stroke: "currentColor",
|
|
980
|
+
strokeLinecap: "round",
|
|
981
|
+
strokeLinejoin: "round",
|
|
982
|
+
strokeWidth: "8"
|
|
983
|
+
}
|
|
984
|
+
),
|
|
985
|
+
/* @__PURE__ */ React15.createElement(
|
|
986
|
+
"line",
|
|
987
|
+
{
|
|
988
|
+
x1: "128.9",
|
|
989
|
+
y1: "128",
|
|
990
|
+
x2: "128",
|
|
991
|
+
y2: "234.8",
|
|
992
|
+
fill: "none",
|
|
993
|
+
stroke: "currentColor",
|
|
994
|
+
strokeLinecap: "round",
|
|
995
|
+
strokeLinejoin: "round",
|
|
996
|
+
strokeWidth: "8"
|
|
997
|
+
}
|
|
998
|
+
)
|
|
999
|
+
);
|
|
955
1000
|
};
|
|
956
1001
|
var Backpack = (props) => {
|
|
957
|
-
return /* @__PURE__ */ React15.createElement(
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
fill: "none"
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1002
|
+
return /* @__PURE__ */ React15.createElement(
|
|
1003
|
+
"svg",
|
|
1004
|
+
{
|
|
1005
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1006
|
+
width: "192",
|
|
1007
|
+
height: "192",
|
|
1008
|
+
fill: "currentColor",
|
|
1009
|
+
viewBox: "0 0 256 256",
|
|
1010
|
+
...props
|
|
1011
|
+
},
|
|
1012
|
+
/* @__PURE__ */ React15.createElement("rect", { width: "256", height: "256", fill: "none" }),
|
|
1013
|
+
/* @__PURE__ */ React15.createElement(
|
|
1014
|
+
"path",
|
|
1015
|
+
{
|
|
1016
|
+
d: "M96,48h64a48,48,0,0,1,48,48V216a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V96A48,48,0,0,1,96,48Z",
|
|
1017
|
+
fill: "none",
|
|
1018
|
+
stroke: "currentColor",
|
|
1019
|
+
strokeLinecap: "round",
|
|
1020
|
+
strokeLinejoin: "round",
|
|
1021
|
+
strokeWidth: "12"
|
|
1022
|
+
}
|
|
1023
|
+
),
|
|
1024
|
+
/* @__PURE__ */ React15.createElement(
|
|
1025
|
+
"path",
|
|
1026
|
+
{
|
|
1027
|
+
d: "M80,224V152a16,16,0,0,1,16-16h64a16,16,0,0,1,16,16v72",
|
|
1028
|
+
fill: "none",
|
|
1029
|
+
stroke: "currentColor",
|
|
1030
|
+
strokeLinecap: "round",
|
|
1031
|
+
strokeLinejoin: "round",
|
|
1032
|
+
strokeWidth: "12"
|
|
1033
|
+
}
|
|
1034
|
+
),
|
|
1035
|
+
/* @__PURE__ */ React15.createElement(
|
|
1036
|
+
"path",
|
|
1037
|
+
{
|
|
1038
|
+
d: "M96,48V32a16,16,0,0,1,16-16h32a16,16,0,0,1,16,16V48",
|
|
1039
|
+
fill: "none",
|
|
1040
|
+
stroke: "currentColor",
|
|
1041
|
+
strokeLinecap: "round",
|
|
1042
|
+
strokeLinejoin: "round",
|
|
1043
|
+
strokeWidth: "12"
|
|
1044
|
+
}
|
|
1045
|
+
),
|
|
1046
|
+
/* @__PURE__ */ React15.createElement(
|
|
1047
|
+
"line",
|
|
1048
|
+
{
|
|
1049
|
+
x1: "112",
|
|
1050
|
+
y1: "88",
|
|
1051
|
+
x2: "144",
|
|
1052
|
+
y2: "88",
|
|
1053
|
+
fill: "none",
|
|
1054
|
+
stroke: "currentColor",
|
|
1055
|
+
strokeLinecap: "round",
|
|
1056
|
+
strokeLinejoin: "round",
|
|
1057
|
+
strokeWidth: "12"
|
|
1058
|
+
}
|
|
1059
|
+
),
|
|
1060
|
+
/* @__PURE__ */ React15.createElement(
|
|
1061
|
+
"line",
|
|
1062
|
+
{
|
|
1063
|
+
x1: "80",
|
|
1064
|
+
y1: "168",
|
|
1065
|
+
x2: "176",
|
|
1066
|
+
y2: "168",
|
|
1067
|
+
fill: "none",
|
|
1068
|
+
stroke: "currentColor",
|
|
1069
|
+
strokeLinecap: "round",
|
|
1070
|
+
strokeLinejoin: "round",
|
|
1071
|
+
strokeWidth: "12"
|
|
1072
|
+
}
|
|
1073
|
+
),
|
|
1074
|
+
/* @__PURE__ */ React15.createElement(
|
|
1075
|
+
"line",
|
|
1076
|
+
{
|
|
1077
|
+
x1: "144",
|
|
1078
|
+
y1: "168",
|
|
1079
|
+
x2: "144",
|
|
1080
|
+
y2: "184",
|
|
1081
|
+
fill: "none",
|
|
1082
|
+
stroke: "currentColor",
|
|
1083
|
+
strokeLinecap: "round",
|
|
1084
|
+
strokeLinejoin: "round",
|
|
1085
|
+
strokeWidth: "12"
|
|
1086
|
+
}
|
|
1087
|
+
)
|
|
1088
|
+
);
|
|
1020
1089
|
};
|
|
1021
1090
|
var Newspaper = (props) => {
|
|
1022
|
-
return /* @__PURE__ */ React15.createElement(
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
fill: "none"
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1091
|
+
return /* @__PURE__ */ React15.createElement(
|
|
1092
|
+
"svg",
|
|
1093
|
+
{
|
|
1094
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1095
|
+
width: "192",
|
|
1096
|
+
height: "192",
|
|
1097
|
+
fill: "currentColor",
|
|
1098
|
+
viewBox: "0 0 256 256",
|
|
1099
|
+
...props
|
|
1100
|
+
},
|
|
1101
|
+
/* @__PURE__ */ React15.createElement("rect", { width: "256", height: "256", fill: "none" }),
|
|
1102
|
+
/* @__PURE__ */ React15.createElement(
|
|
1103
|
+
"line",
|
|
1104
|
+
{
|
|
1105
|
+
x1: "96",
|
|
1106
|
+
y1: "112",
|
|
1107
|
+
x2: "176",
|
|
1108
|
+
y2: "112",
|
|
1109
|
+
fill: "none",
|
|
1110
|
+
stroke: "currentColor",
|
|
1111
|
+
strokeLinecap: "round",
|
|
1112
|
+
strokeLinejoin: "round",
|
|
1113
|
+
strokeWidth: "8"
|
|
1114
|
+
}
|
|
1115
|
+
),
|
|
1116
|
+
/* @__PURE__ */ React15.createElement(
|
|
1117
|
+
"line",
|
|
1118
|
+
{
|
|
1119
|
+
x1: "96",
|
|
1120
|
+
y1: "144",
|
|
1121
|
+
x2: "176",
|
|
1122
|
+
y2: "144",
|
|
1123
|
+
fill: "none",
|
|
1124
|
+
stroke: "currentColor",
|
|
1125
|
+
strokeLinecap: "round",
|
|
1126
|
+
strokeLinejoin: "round",
|
|
1127
|
+
strokeWidth: "8"
|
|
1128
|
+
}
|
|
1129
|
+
),
|
|
1130
|
+
/* @__PURE__ */ React15.createElement(
|
|
1131
|
+
"path",
|
|
1132
|
+
{
|
|
1133
|
+
d: "M32,200a16,16,0,0,0,16-16V64a8,8,0,0,1,8-8H216a8,8,0,0,1,8,8V184a16,16,0,0,1-16,16Z",
|
|
1134
|
+
fill: "none",
|
|
1135
|
+
stroke: "currentColor",
|
|
1136
|
+
strokeLinecap: "round",
|
|
1137
|
+
strokeLinejoin: "round",
|
|
1138
|
+
strokeWidth: "8"
|
|
1139
|
+
}
|
|
1140
|
+
),
|
|
1141
|
+
/* @__PURE__ */ React15.createElement(
|
|
1142
|
+
"path",
|
|
1143
|
+
{
|
|
1144
|
+
d: "M32,200a16,16,0,0,1-16-16h0V88",
|
|
1145
|
+
fill: "none",
|
|
1146
|
+
stroke: "currentColor",
|
|
1147
|
+
strokeLinecap: "round",
|
|
1148
|
+
strokeLinejoin: "round",
|
|
1149
|
+
strokeWidth: "8"
|
|
1150
|
+
}
|
|
1151
|
+
)
|
|
1152
|
+
);
|
|
1068
1153
|
};
|
|
1069
1154
|
var Eye = (props) => {
|
|
1070
|
-
return /* @__PURE__ */ React15.createElement(
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
fill: "none"
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1155
|
+
return /* @__PURE__ */ React15.createElement(
|
|
1156
|
+
"svg",
|
|
1157
|
+
{
|
|
1158
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1159
|
+
width: "192",
|
|
1160
|
+
height: "192",
|
|
1161
|
+
fill: "currentColor",
|
|
1162
|
+
viewBox: "0 0 256 256",
|
|
1163
|
+
...props
|
|
1164
|
+
},
|
|
1165
|
+
/* @__PURE__ */ React15.createElement("rect", { width: "256", height: "256", fill: "none" }),
|
|
1166
|
+
/* @__PURE__ */ React15.createElement(
|
|
1167
|
+
"path",
|
|
1168
|
+
{
|
|
1169
|
+
d: "M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Z",
|
|
1170
|
+
fill: "none",
|
|
1171
|
+
stroke: "currentColor",
|
|
1172
|
+
strokeLinecap: "round",
|
|
1173
|
+
strokeLinejoin: "round",
|
|
1174
|
+
strokeWidth: "12"
|
|
1175
|
+
}
|
|
1176
|
+
),
|
|
1177
|
+
/* @__PURE__ */ React15.createElement(
|
|
1178
|
+
"circle",
|
|
1179
|
+
{
|
|
1180
|
+
cx: "128",
|
|
1181
|
+
cy: "128",
|
|
1182
|
+
r: "40",
|
|
1183
|
+
fill: "none",
|
|
1184
|
+
stroke: "currentColor",
|
|
1185
|
+
strokeLinecap: "round",
|
|
1186
|
+
strokeLinejoin: "round",
|
|
1187
|
+
strokeWidth: "12"
|
|
1188
|
+
}
|
|
1189
|
+
)
|
|
1190
|
+
);
|
|
1098
1191
|
};
|
|
1099
1192
|
|
|
1100
1193
|
// src/components/icons/index.tsx
|
|
@@ -1102,10 +1195,7 @@ import clsx from "clsx";
|
|
|
1102
1195
|
function Icon({ name, className, ...props }) {
|
|
1103
1196
|
let WeaverseIcon = phosphor_exports[name];
|
|
1104
1197
|
let cls = clsx("wv-icon", className);
|
|
1105
|
-
return /* @__PURE__ */ React16.createElement(WeaverseIcon, {
|
|
1106
|
-
className: cls,
|
|
1107
|
-
...props
|
|
1108
|
-
});
|
|
1198
|
+
return /* @__PURE__ */ React16.createElement(WeaverseIcon, { className: cls, ...props });
|
|
1109
1199
|
}
|
|
1110
1200
|
|
|
1111
1201
|
// src/components/slider/arrows.tsx
|
|
@@ -1119,28 +1209,29 @@ function Arrows(props) {
|
|
|
1119
1209
|
let style = {
|
|
1120
1210
|
"--offset": `${offset}px`
|
|
1121
1211
|
};
|
|
1122
|
-
return /* @__PURE__ */ React17.createElement(StyledArrows, {
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
}
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
e
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1212
|
+
return /* @__PURE__ */ React17.createElement(StyledArrows, { className, style }, /* @__PURE__ */ React17.createElement(
|
|
1213
|
+
"button",
|
|
1214
|
+
{
|
|
1215
|
+
type: "button",
|
|
1216
|
+
className: clsx2("arrow arrow--left", isFirst && "arrow--disabled"),
|
|
1217
|
+
onClick: (e) => {
|
|
1218
|
+
e.stopPropagation();
|
|
1219
|
+
instanceRef?.current?.prev();
|
|
1220
|
+
}
|
|
1221
|
+
},
|
|
1222
|
+
/* @__PURE__ */ React17.createElement(Icon, { name: "ArrowLeft" })
|
|
1223
|
+
), /* @__PURE__ */ React17.createElement(
|
|
1224
|
+
"button",
|
|
1225
|
+
{
|
|
1226
|
+
type: "button",
|
|
1227
|
+
className: clsx2("arrow arrow--right", isLast && "arrow--disabled"),
|
|
1228
|
+
onClick: (e) => {
|
|
1229
|
+
e.stopPropagation();
|
|
1230
|
+
instanceRef?.current?.next();
|
|
1231
|
+
}
|
|
1232
|
+
},
|
|
1233
|
+
/* @__PURE__ */ React17.createElement(Icon, { name: "ArrowRight" })
|
|
1234
|
+
));
|
|
1144
1235
|
}
|
|
1145
1236
|
var StyledArrows = styled("div", {
|
|
1146
1237
|
".arrow": {
|
|
@@ -1195,17 +1286,18 @@ function Dots(props) {
|
|
|
1195
1286
|
position && `dots--${position}`,
|
|
1196
1287
|
color && `dots--${color}`
|
|
1197
1288
|
);
|
|
1198
|
-
return /* @__PURE__ */ React18.createElement(StyledDots, {
|
|
1199
|
-
className: _className
|
|
1200
|
-
}, [...Array(instanceRef.current?.track.details.slides.length).keys()].map(
|
|
1289
|
+
return /* @__PURE__ */ React18.createElement(StyledDots, { className: _className }, [...Array(instanceRef.current?.track.details.slides.length).keys()].map(
|
|
1201
1290
|
(idx) => {
|
|
1202
1291
|
let className2 = clsx3("dot", currentSlide === idx && "dot--active");
|
|
1203
|
-
return /* @__PURE__ */ React18.createElement(
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1292
|
+
return /* @__PURE__ */ React18.createElement(
|
|
1293
|
+
"button",
|
|
1294
|
+
{
|
|
1295
|
+
key: idx,
|
|
1296
|
+
type: "button",
|
|
1297
|
+
onClick: () => instanceRef.current?.moveToIdx(idx),
|
|
1298
|
+
className: className2
|
|
1299
|
+
}
|
|
1300
|
+
);
|
|
1209
1301
|
}
|
|
1210
1302
|
));
|
|
1211
1303
|
}
|
|
@@ -1453,26 +1545,25 @@ var Slideshow = forwardRef8((props, ref) => {
|
|
|
1453
1545
|
faderClass,
|
|
1454
1546
|
animation === "slide" ? "keen-slider" : "keen-fader"
|
|
1455
1547
|
);
|
|
1456
|
-
return /* @__PURE__ */ React20.createElement("div", {
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
}));
|
|
1548
|
+
return /* @__PURE__ */ React20.createElement("div", { ref, style, ...rest }, /* @__PURE__ */ React20.createElement("div", { ref: sliderRef, className: _className }, children), showArrows && created && instanceRef?.current && /* @__PURE__ */ React20.createElement(
|
|
1549
|
+
Arrows,
|
|
1550
|
+
{
|
|
1551
|
+
instanceRef,
|
|
1552
|
+
currentSlide,
|
|
1553
|
+
className: "wv-slideshow--arrows",
|
|
1554
|
+
offset: 20
|
|
1555
|
+
}
|
|
1556
|
+
), showDots && created && instanceRef?.current && /* @__PURE__ */ React20.createElement(
|
|
1557
|
+
Dots,
|
|
1558
|
+
{
|
|
1559
|
+
instanceRef,
|
|
1560
|
+
currentSlide,
|
|
1561
|
+
className: "wv-slideshow--dots",
|
|
1562
|
+
position: dotsPosition,
|
|
1563
|
+
color: dotsColor,
|
|
1564
|
+
absolute: true
|
|
1565
|
+
}
|
|
1566
|
+
));
|
|
1476
1567
|
});
|
|
1477
1568
|
var css9 = {
|
|
1478
1569
|
"@desktop": {
|
|
@@ -1526,15 +1617,15 @@ function Background2(props) {
|
|
|
1526
1617
|
["--bg-position"]: backgroundPosition
|
|
1527
1618
|
};
|
|
1528
1619
|
if (backgroundImage || backgroundColor) {
|
|
1529
|
-
return /* @__PURE__ */ React21.createElement(StyledBackground, {
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1620
|
+
return /* @__PURE__ */ React21.createElement(StyledBackground, { style, className }, backgroundImage && /* @__PURE__ */ React21.createElement(
|
|
1621
|
+
"img",
|
|
1622
|
+
{
|
|
1623
|
+
width: "100%",
|
|
1624
|
+
height: "100%",
|
|
1625
|
+
"data-blink-src": backgroundImage,
|
|
1626
|
+
alt: "Background"
|
|
1627
|
+
}
|
|
1628
|
+
));
|
|
1538
1629
|
}
|
|
1539
1630
|
return null;
|
|
1540
1631
|
}
|
|
@@ -1555,10 +1646,13 @@ import React22 from "react";
|
|
|
1555
1646
|
function Overlay2(props) {
|
|
1556
1647
|
let { enableOverlay: enabled, overlayOpacity: opacity, className } = props;
|
|
1557
1648
|
if (enabled) {
|
|
1558
|
-
return /* @__PURE__ */ React22.createElement(
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1649
|
+
return /* @__PURE__ */ React22.createElement(
|
|
1650
|
+
StyledOverlay,
|
|
1651
|
+
{
|
|
1652
|
+
className,
|
|
1653
|
+
css: { ["--overlay-opacity"]: opacity / 100 }
|
|
1654
|
+
}
|
|
1655
|
+
);
|
|
1562
1656
|
}
|
|
1563
1657
|
return null;
|
|
1564
1658
|
}
|
|
@@ -1574,14 +1668,7 @@ import React23, { forwardRef as forwardRef9 } from "react";
|
|
|
1574
1668
|
var Placeholder = forwardRef9(
|
|
1575
1669
|
(props, ref) => {
|
|
1576
1670
|
let { element, className, children, ...rest } = props;
|
|
1577
|
-
return /* @__PURE__ */ React23.createElement("div", {
|
|
1578
|
-
"data-wv-placeholder": true,
|
|
1579
|
-
ref,
|
|
1580
|
-
className,
|
|
1581
|
-
...rest
|
|
1582
|
-
}, /* @__PURE__ */ React23.createElement("div", {
|
|
1583
|
-
style: { fontWeight: 600, marginBottom: "10px" }
|
|
1584
|
-
}, element), /* @__PURE__ */ React23.createElement("div", null, children));
|
|
1671
|
+
return /* @__PURE__ */ React23.createElement("div", { "data-wv-placeholder": true, ref, className, ...rest }, /* @__PURE__ */ React23.createElement("div", { style: { fontWeight: 600, marginBottom: "10px" } }, element), /* @__PURE__ */ React23.createElement("div", null, children));
|
|
1585
1672
|
}
|
|
1586
1673
|
);
|
|
1587
1674
|
var placeholder_default = Placeholder;
|
|
@@ -1639,26 +1726,23 @@ var Slide = forwardRef10((props, ref) => {
|
|
|
1639
1726
|
children,
|
|
1640
1727
|
...rest
|
|
1641
1728
|
} = props;
|
|
1642
|
-
return /* @__PURE__ */ React24.createElement("div", {
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
}, children?.length ? children : /* @__PURE__ */ React24.createElement(placeholder_default, {
|
|
1659
|
-
element: "Slide",
|
|
1660
|
-
className: "wv-slide-placeholder"
|
|
1661
|
-
}, "Drag and drop elements here")));
|
|
1729
|
+
return /* @__PURE__ */ React24.createElement("div", { className: "keen-slider__slide" }, /* @__PURE__ */ React24.createElement(
|
|
1730
|
+
Background2,
|
|
1731
|
+
{
|
|
1732
|
+
backgroundColor,
|
|
1733
|
+
backgroundImage,
|
|
1734
|
+
backgroundFit,
|
|
1735
|
+
backgroundPosition,
|
|
1736
|
+
className: "slide-background"
|
|
1737
|
+
}
|
|
1738
|
+
), /* @__PURE__ */ React24.createElement(
|
|
1739
|
+
Overlay2,
|
|
1740
|
+
{
|
|
1741
|
+
enableOverlay,
|
|
1742
|
+
overlayOpacity,
|
|
1743
|
+
className: "slide-overlay"
|
|
1744
|
+
}
|
|
1745
|
+
), /* @__PURE__ */ React24.createElement("div", { ref, style: slidePositionMap[contentPosition], ...rest }, children?.length ? children : /* @__PURE__ */ React24.createElement(placeholder_default, { element: "Slide", className: "wv-slide-placeholder" }, "Drag and drop elements here")));
|
|
1662
1746
|
});
|
|
1663
1747
|
var css10 = {
|
|
1664
1748
|
"@desktop": {
|
|
@@ -1707,6 +1791,12 @@ var Elements = {
|
|
|
1707
1791
|
type: "image",
|
|
1708
1792
|
defaultCss: css4
|
|
1709
1793
|
},
|
|
1794
|
+
// Instagram: {
|
|
1795
|
+
// Component: Instagram.default,
|
|
1796
|
+
// type: 'instagram',
|
|
1797
|
+
// defaultCss: Instagram.css,
|
|
1798
|
+
// permanentCss: Instagram.permanentCss,
|
|
1799
|
+
// },
|
|
1710
1800
|
Layout: {
|
|
1711
1801
|
Component: layout_default,
|
|
1712
1802
|
type: "layout",
|
|
@@ -1727,6 +1817,31 @@ var Elements = {
|
|
|
1727
1817
|
type: "video",
|
|
1728
1818
|
defaultCss: css8
|
|
1729
1819
|
},
|
|
1820
|
+
// Accordion: {
|
|
1821
|
+
// Component: Accordion.default,
|
|
1822
|
+
// type: 'accordion',
|
|
1823
|
+
// defaultCss: Accordion.css,
|
|
1824
|
+
// },
|
|
1825
|
+
// AccordionWrapper: {
|
|
1826
|
+
// Component: AccordionWrapper.default,
|
|
1827
|
+
// type: 'accordion.wrapper',
|
|
1828
|
+
// defaultCss: AccordionWrapper.css,
|
|
1829
|
+
// },
|
|
1830
|
+
// AccordionContent: {
|
|
1831
|
+
// Component: AccordionContent.default,
|
|
1832
|
+
// type: 'accordion.content',
|
|
1833
|
+
// defaultCss: AccordionContent.css,
|
|
1834
|
+
// },
|
|
1835
|
+
// Tab: {
|
|
1836
|
+
// Component: Tab.default,
|
|
1837
|
+
// type: 'tab',
|
|
1838
|
+
// defaultCss: Tab.css,
|
|
1839
|
+
// },
|
|
1840
|
+
// TabContent: {
|
|
1841
|
+
// Component: TabContent.default,
|
|
1842
|
+
// type: 'tab.content',
|
|
1843
|
+
// defaultCss: TabContent.css,
|
|
1844
|
+
// },
|
|
1730
1845
|
Slideshow: {
|
|
1731
1846
|
Component: slideshow_default,
|
|
1732
1847
|
type: "slideshow",
|
|
@@ -1876,36 +1991,39 @@ function useOpenChangeEffect(props) {
|
|
|
1876
1991
|
var Modal = (props) => {
|
|
1877
1992
|
let { children, open, defaultOpen, onOpenChange, ...rest } = props;
|
|
1878
1993
|
let handleOpenChange = useOpenChangeEffect(props);
|
|
1879
|
-
return /* @__PURE__ */ React25.createElement(
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1994
|
+
return /* @__PURE__ */ React25.createElement(
|
|
1995
|
+
Root,
|
|
1996
|
+
{
|
|
1997
|
+
open,
|
|
1998
|
+
defaultOpen,
|
|
1999
|
+
onOpenChange: handleOpenChange,
|
|
2000
|
+
...rest
|
|
2001
|
+
},
|
|
2002
|
+
children
|
|
2003
|
+
);
|
|
1885
2004
|
};
|
|
1886
2005
|
var ModalTrigger = Trigger;
|
|
1887
2006
|
var ModalHeader = forwardRef11(
|
|
1888
2007
|
(props, ref) => {
|
|
1889
2008
|
let { children, ...rest } = props;
|
|
1890
|
-
return /* @__PURE__ */ React25.createElement(StyledTitle, {
|
|
1891
|
-
ref,
|
|
1892
|
-
...rest,
|
|
1893
|
-
"data-wv-modal-header": true
|
|
1894
|
-
}, children);
|
|
2009
|
+
return /* @__PURE__ */ React25.createElement(StyledTitle, { ref, ...rest, "data-wv-modal-header": true }, children);
|
|
1895
2010
|
}
|
|
1896
2011
|
);
|
|
1897
2012
|
var ModalContent = forwardRef11(
|
|
1898
2013
|
(props, ref) => {
|
|
1899
2014
|
let { children, size, portal, ...rest } = props;
|
|
1900
|
-
let modalContent = /* @__PURE__ */ React25.createElement(React25.Fragment, null, /* @__PURE__ */ React25.createElement(StyledOverlay2, null), /* @__PURE__ */ React25.createElement(
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
2015
|
+
let modalContent = /* @__PURE__ */ React25.createElement(React25.Fragment, null, /* @__PURE__ */ React25.createElement(StyledOverlay2, null), /* @__PURE__ */ React25.createElement(
|
|
2016
|
+
StyledContent,
|
|
2017
|
+
{
|
|
2018
|
+
...rest,
|
|
2019
|
+
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
2020
|
+
"data-wv-modal": true,
|
|
2021
|
+
"data-size": size,
|
|
2022
|
+
ref
|
|
2023
|
+
},
|
|
2024
|
+
/* @__PURE__ */ React25.createElement(ModalClose, null),
|
|
2025
|
+
/* @__PURE__ */ React25.createElement("div", { className: "wv-modal-content" }, children)
|
|
2026
|
+
));
|
|
1909
2027
|
if (portal) {
|
|
1910
2028
|
return /* @__PURE__ */ React25.createElement(Portal, null, modalContent);
|
|
1911
2029
|
}
|
|
@@ -1919,34 +2037,21 @@ ModalContent.defaultProps = {
|
|
|
1919
2037
|
var ModalClose = forwardRef11(
|
|
1920
2038
|
(props, ref) => {
|
|
1921
2039
|
let { asChild, children, ...rest } = props;
|
|
1922
|
-
let closeIcon = /* @__PURE__ */ React25.createElement(StyledCloseIcon, null, /* @__PURE__ */ React25.createElement(Icon, {
|
|
1923
|
-
|
|
1924
|
-
}));
|
|
1925
|
-
return /* @__PURE__ */ React25.createElement(Close, {
|
|
1926
|
-
asChild: true,
|
|
1927
|
-
...rest,
|
|
1928
|
-
ref
|
|
1929
|
-
}, asChild ? children : closeIcon);
|
|
2040
|
+
let closeIcon = /* @__PURE__ */ React25.createElement(StyledCloseIcon, null, /* @__PURE__ */ React25.createElement(Icon, { name: "X" }));
|
|
2041
|
+
return /* @__PURE__ */ React25.createElement(Close, { asChild: true, ...rest, ref }, asChild ? children : closeIcon);
|
|
1930
2042
|
}
|
|
1931
2043
|
);
|
|
1932
2044
|
|
|
1933
2045
|
// src/components/spinner.tsx
|
|
1934
2046
|
import React26 from "react";
|
|
1935
2047
|
function Spinner() {
|
|
1936
|
-
return /* @__PURE__ */ React26.createElement("span", {
|
|
1937
|
-
className: "wv-spinner-wrapper"
|
|
1938
|
-
}, /* @__PURE__ */ React26.createElement(Icon, {
|
|
1939
|
-
name: "CircleNotch",
|
|
1940
|
-
className: "wv-spinner"
|
|
1941
|
-
}));
|
|
2048
|
+
return /* @__PURE__ */ React26.createElement("span", { className: "wv-spinner-wrapper" }, /* @__PURE__ */ React26.createElement(Icon, { name: "CircleNotch", className: "wv-spinner" }));
|
|
1942
2049
|
}
|
|
1943
2050
|
|
|
1944
2051
|
// src/components/tooltip.tsx
|
|
1945
2052
|
import React27 from "react";
|
|
1946
2053
|
function Tooltip({ children }) {
|
|
1947
|
-
return /* @__PURE__ */ React27.createElement("span", {
|
|
1948
|
-
className: "wv-tooltip"
|
|
1949
|
-
}, children);
|
|
2054
|
+
return /* @__PURE__ */ React27.createElement("span", { className: "wv-tooltip" }, children);
|
|
1950
2055
|
}
|
|
1951
2056
|
|
|
1952
2057
|
// src/components/slider/index.tsx
|
|
@@ -1982,18 +2087,21 @@ function Slider(props) {
|
|
|
1982
2087
|
);
|
|
1983
2088
|
let _className = clsx6("keen-slider", className);
|
|
1984
2089
|
let arrowsClass = clsx6(className && `${className}-arrows`);
|
|
1985
|
-
return /* @__PURE__ */ React28.createElement(React28.Fragment, null, /* @__PURE__ */ React28.createElement("div", {
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
2090
|
+
return /* @__PURE__ */ React28.createElement(React28.Fragment, null, /* @__PURE__ */ React28.createElement("div", { ref, className: _className }, /* @__PURE__ */ React28.createElement(
|
|
2091
|
+
"link",
|
|
2092
|
+
{
|
|
2093
|
+
rel: "stylesheet",
|
|
2094
|
+
href: "https://cdn.jsdelivr.net/npm/keen-slider@latest/keen-slider.min.css"
|
|
2095
|
+
}
|
|
2096
|
+
), children), created && instanceRef?.current && /* @__PURE__ */ React28.createElement(
|
|
2097
|
+
Arrows,
|
|
2098
|
+
{
|
|
2099
|
+
currentSlide,
|
|
2100
|
+
instanceRef,
|
|
2101
|
+
className: arrowsClass,
|
|
2102
|
+
offset: arrowOffset
|
|
2103
|
+
}
|
|
2104
|
+
));
|
|
1997
2105
|
}
|
|
1998
2106
|
|
|
1999
2107
|
// src/components/index.ts
|
|
@@ -2031,15 +2139,15 @@ var WeaverseRoot = ({ context }) => {
|
|
|
2031
2139
|
let eventHandlers = context?.studioBridge?.eventHandlers || {};
|
|
2032
2140
|
let themeClass = context.stitchesInstance.theme.className;
|
|
2033
2141
|
if (context.projectData?.rootId) {
|
|
2034
|
-
return /* @__PURE__ */ React29.createElement(
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
id: context.projectData.rootId
|
|
2042
|
-
|
|
2142
|
+
return /* @__PURE__ */ React29.createElement(
|
|
2143
|
+
"div",
|
|
2144
|
+
{
|
|
2145
|
+
className: `weaverse-content-root ${themeClass}`,
|
|
2146
|
+
...eventHandlers,
|
|
2147
|
+
ref: rootRef
|
|
2148
|
+
},
|
|
2149
|
+
/* @__PURE__ */ React29.createElement(WeaverseContextProvider, { value: context }, /* @__PURE__ */ React29.createElement(ItemInstance, { id: context.projectData.rootId }))
|
|
2150
|
+
);
|
|
2043
2151
|
}
|
|
2044
2152
|
return null;
|
|
2045
2153
|
};
|
|
@@ -2063,16 +2171,20 @@ var ItemComponent = ({ instance }) => {
|
|
|
2063
2171
|
if (Component.$$typeof === Symbol.for("react.forward_ref")) {
|
|
2064
2172
|
rest.ref = instance.ref;
|
|
2065
2173
|
}
|
|
2066
|
-
return
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2174
|
+
return (
|
|
2175
|
+
// @ts-ignore
|
|
2176
|
+
/* @__PURE__ */ React29.createElement(
|
|
2177
|
+
Component,
|
|
2178
|
+
{
|
|
2179
|
+
key: id,
|
|
2180
|
+
"data-wv-type": type,
|
|
2181
|
+
"data-wv-id": id,
|
|
2182
|
+
className: generateItemClassName(instance, stitchesInstance),
|
|
2183
|
+
...rest
|
|
2184
|
+
},
|
|
2185
|
+
childIds.map((id2) => /* @__PURE__ */ React29.createElement(ItemInstance, { key: id2, id: id2 }))
|
|
2186
|
+
)
|
|
2187
|
+
);
|
|
2076
2188
|
} else {
|
|
2077
2189
|
console.log(`Unknown element: ${type}`);
|
|
2078
2190
|
return null;
|
|
@@ -2083,14 +2195,9 @@ var ItemInstance = ({ id }) => {
|
|
|
2083
2195
|
let { itemInstances } = context;
|
|
2084
2196
|
let instance = itemInstances.get(id);
|
|
2085
2197
|
if (!instance) {
|
|
2086
|
-
return /* @__PURE__ */ React29.createElement("div", {
|
|
2087
|
-
style: { display: "none" }
|
|
2088
|
-
}, "Item instance ", id, " not found");
|
|
2198
|
+
return /* @__PURE__ */ React29.createElement("div", { style: { display: "none" } }, "Item instance ", id, " not found");
|
|
2089
2199
|
}
|
|
2090
|
-
return /* @__PURE__ */ React29.createElement(ItemComponent, {
|
|
2091
|
-
key: id,
|
|
2092
|
-
instance
|
|
2093
|
-
});
|
|
2200
|
+
return /* @__PURE__ */ React29.createElement(ItemComponent, { key: id, instance });
|
|
2094
2201
|
};
|
|
2095
2202
|
export {
|
|
2096
2203
|
Components,
|