@weaverse/react 1.0.6 → 1.0.7
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.d.ts +16 -1
- package/dist/index.js +437 -335
- package/dist/index.mjs +399 -297
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -290,46 +290,65 @@ Image.defaultProps = {
|
|
|
290
290
|
};
|
|
291
291
|
var image_default = Image;
|
|
292
292
|
|
|
293
|
-
// src/elements/layout
|
|
293
|
+
// src/elements/layout.tsx
|
|
294
294
|
import React8, { forwardRef as forwardRef4 } from "react";
|
|
295
295
|
|
|
296
|
-
// src/
|
|
296
|
+
// src/components/background.tsx
|
|
297
297
|
import React6 from "react";
|
|
298
298
|
function Background(props) {
|
|
299
|
-
let {
|
|
299
|
+
let {
|
|
300
|
+
backgroundColor,
|
|
301
|
+
backgroundImage,
|
|
302
|
+
backgroundFit,
|
|
303
|
+
backgroundPosition,
|
|
304
|
+
className
|
|
305
|
+
} = props;
|
|
300
306
|
let style = {
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
307
|
+
display: "block",
|
|
308
|
+
position: "absolute",
|
|
309
|
+
inset: 0,
|
|
310
|
+
backgroundColor
|
|
304
311
|
};
|
|
305
|
-
if (
|
|
306
|
-
return /* @__PURE__ */ React6.createElement("div", { style, className
|
|
312
|
+
if (backgroundImage || backgroundColor) {
|
|
313
|
+
return /* @__PURE__ */ React6.createElement("div", { style, className }, backgroundImage && /* @__PURE__ */ React6.createElement(
|
|
307
314
|
"img",
|
|
308
315
|
{
|
|
309
316
|
width: "100%",
|
|
310
317
|
height: "100%",
|
|
311
|
-
"data-blink-src":
|
|
312
|
-
alt: "
|
|
318
|
+
"data-blink-src": backgroundImage,
|
|
319
|
+
alt: "Background",
|
|
320
|
+
style: {
|
|
321
|
+
objectFit: backgroundFit,
|
|
322
|
+
objectPosition: backgroundPosition
|
|
323
|
+
}
|
|
313
324
|
}
|
|
314
325
|
));
|
|
315
326
|
}
|
|
316
327
|
return null;
|
|
317
328
|
}
|
|
318
329
|
|
|
319
|
-
// src/
|
|
330
|
+
// src/components/overlay.tsx
|
|
320
331
|
import React7 from "react";
|
|
321
332
|
function Overlay(props) {
|
|
322
|
-
let { enableOverlay, overlayOpacity } = props;
|
|
333
|
+
let { enableOverlay, overlayOpacity, className } = props;
|
|
323
334
|
if (enableOverlay) {
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
335
|
+
return /* @__PURE__ */ React7.createElement(
|
|
336
|
+
"div",
|
|
337
|
+
{
|
|
338
|
+
className,
|
|
339
|
+
style: {
|
|
340
|
+
position: "absolute",
|
|
341
|
+
inset: 0,
|
|
342
|
+
display: "block",
|
|
343
|
+
backgroundColor: `rgba(0, 0, 0, ${overlayOpacity / 100})`
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
);
|
|
328
347
|
}
|
|
329
348
|
return null;
|
|
330
349
|
}
|
|
331
350
|
|
|
332
|
-
// src/elements/layout
|
|
351
|
+
// src/elements/layout.tsx
|
|
333
352
|
var Layout = forwardRef4((props, ref) => {
|
|
334
353
|
let {
|
|
335
354
|
children,
|
|
@@ -360,10 +379,10 @@ var Layout = forwardRef4((props, ref) => {
|
|
|
360
379
|
return /* @__PURE__ */ React8.createElement("div", { ref, ...rest, style }, /* @__PURE__ */ React8.createElement(
|
|
361
380
|
Background,
|
|
362
381
|
{
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
objectFit,
|
|
366
|
-
objectPosition
|
|
382
|
+
backgroundImage,
|
|
383
|
+
backgroundColor,
|
|
384
|
+
backgroundFit: objectFit,
|
|
385
|
+
backgroundPosition: objectPosition
|
|
367
386
|
}
|
|
368
387
|
), /* @__PURE__ */ React8.createElement(Overlay, { enableOverlay, overlayOpacity }), /* @__PURE__ */ React8.createElement("div", { "data-layout-content": true }, children));
|
|
369
388
|
});
|
|
@@ -380,22 +399,6 @@ var css5 = {
|
|
|
380
399
|
gridAutoRows: "var(--row-size)",
|
|
381
400
|
gap: "var(--gap)",
|
|
382
401
|
maxWidth: "var(--layout-content-width)"
|
|
383
|
-
},
|
|
384
|
-
".wv-layout-background": {
|
|
385
|
-
display: "block",
|
|
386
|
-
position: "absolute",
|
|
387
|
-
inset: 0,
|
|
388
|
-
backgroundColor: "var(--layout-bg-color)",
|
|
389
|
-
img: {
|
|
390
|
-
objectFit: "var(--layout-bg-image-object-fit, cover)",
|
|
391
|
-
objectPosition: "var(--layout-bg-image-position, 50% 50%)"
|
|
392
|
-
}
|
|
393
|
-
},
|
|
394
|
-
".wv-layout-overlay": {
|
|
395
|
-
display: "block",
|
|
396
|
-
position: "absolute",
|
|
397
|
-
inset: 0,
|
|
398
|
-
backgroundColor: "rgba(0, 0, 0, var(--layout-overlay-opacity, 0.5))"
|
|
399
402
|
}
|
|
400
403
|
},
|
|
401
404
|
"@mobile": {
|
|
@@ -475,7 +478,7 @@ var css7 = {
|
|
|
475
478
|
overflow: "hidden",
|
|
476
479
|
".wv-text-content": {
|
|
477
480
|
width: "100%",
|
|
478
|
-
height: "
|
|
481
|
+
height: "fit-content",
|
|
479
482
|
"> p, > h1, > h2, > h3, > h4, > h5, > h6": {
|
|
480
483
|
all: "inherit",
|
|
481
484
|
margin: "0",
|
|
@@ -492,14 +495,76 @@ Text.defaultProps = {
|
|
|
492
495
|
};
|
|
493
496
|
var text_default = Text;
|
|
494
497
|
|
|
498
|
+
// src/elements/scrolling-text.tsx
|
|
499
|
+
import React11 from "react";
|
|
500
|
+
import { useState } from "react";
|
|
501
|
+
var ScrollingText = React11.forwardRef((props, ref) => {
|
|
502
|
+
let { children, value, gap, speed, pauseOnHover, ...rest } = props;
|
|
503
|
+
let [playState, setPlayState] = useState("running");
|
|
504
|
+
let style = {
|
|
505
|
+
"--gap": `${gap}px`,
|
|
506
|
+
"--speed": `${speed}s`,
|
|
507
|
+
"--play-state": playState
|
|
508
|
+
};
|
|
509
|
+
let events = {};
|
|
510
|
+
if (pauseOnHover) {
|
|
511
|
+
events = {
|
|
512
|
+
onMouseEnter: () => setPlayState("paused"),
|
|
513
|
+
onMouseLeave: () => setPlayState("running")
|
|
514
|
+
};
|
|
515
|
+
}
|
|
516
|
+
return /* @__PURE__ */ React11.createElement("div", { ref, ...rest }, /* @__PURE__ */ React11.createElement("div", { className: "wv-scrolling-text__container", style, ...events }, Array.from({ length: 30 }).map((_, i) => /* @__PURE__ */ React11.createElement(
|
|
517
|
+
"div",
|
|
518
|
+
{
|
|
519
|
+
key: i,
|
|
520
|
+
className: "wv-text-content",
|
|
521
|
+
dangerouslySetInnerHTML: { __html: value }
|
|
522
|
+
}
|
|
523
|
+
))));
|
|
524
|
+
});
|
|
525
|
+
var css8 = {
|
|
526
|
+
"@desktop": {
|
|
527
|
+
display: "flex",
|
|
528
|
+
padding: "10px",
|
|
529
|
+
overflow: "hidden",
|
|
530
|
+
".wv-scrolling-text__container": {
|
|
531
|
+
visibility: "visible",
|
|
532
|
+
whiteSpace: "nowrap",
|
|
533
|
+
display: "flex",
|
|
534
|
+
gap: "var(--gap, 40px)",
|
|
535
|
+
animation: "wv-scrolling-text var(--speed, 100s) linear infinite",
|
|
536
|
+
animationPlayState: "var(--play-state, running)",
|
|
537
|
+
".wv-text-content": {
|
|
538
|
+
width: "100%",
|
|
539
|
+
height: "fit-content",
|
|
540
|
+
"> p, > h1, > h2, > h3, > h4, > h5, > h6": {
|
|
541
|
+
all: "inherit",
|
|
542
|
+
margin: "0",
|
|
543
|
+
wordBreak: "break-word",
|
|
544
|
+
overflowWrap: "break-word",
|
|
545
|
+
width: "auto",
|
|
546
|
+
height: "auto"
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
};
|
|
552
|
+
ScrollingText.defaultProps = {
|
|
553
|
+
value: "<p>The quick brown fox jumps over the lazy dog</p>",
|
|
554
|
+
gap: 40,
|
|
555
|
+
speed: 200,
|
|
556
|
+
pauseOnHover: true
|
|
557
|
+
};
|
|
558
|
+
var scrolling_text_default = ScrollingText;
|
|
559
|
+
|
|
495
560
|
// src/elements/video/index.tsx
|
|
496
|
-
import
|
|
561
|
+
import React15, { forwardRef as forwardRef7, useContext as useContext3 } from "react";
|
|
497
562
|
|
|
498
563
|
// src/elements/video/html-video.tsx
|
|
499
|
-
import
|
|
564
|
+
import React12 from "react";
|
|
500
565
|
function HTMLVideo(props) {
|
|
501
566
|
let { src, type, controls, autoPlay, loop, muted } = props;
|
|
502
|
-
return /* @__PURE__ */
|
|
567
|
+
return /* @__PURE__ */ React12.createElement(
|
|
503
568
|
"video",
|
|
504
569
|
{
|
|
505
570
|
controls,
|
|
@@ -509,23 +574,23 @@ function HTMLVideo(props) {
|
|
|
509
574
|
controlsList: "nodownload",
|
|
510
575
|
disablePictureInPicture: true
|
|
511
576
|
},
|
|
512
|
-
/* @__PURE__ */
|
|
513
|
-
/* @__PURE__ */
|
|
577
|
+
/* @__PURE__ */ React12.createElement("source", { src, type: type || "video/mp4" }),
|
|
578
|
+
/* @__PURE__ */ React12.createElement("source", { src, type: "video/ogg" }),
|
|
514
579
|
"Your browser does not support the video tag."
|
|
515
580
|
);
|
|
516
581
|
}
|
|
517
582
|
|
|
518
583
|
// src/elements/video/vimeo.tsx
|
|
519
|
-
import
|
|
584
|
+
import React13 from "react";
|
|
520
585
|
function Vimeo(props) {
|
|
521
586
|
let { vimeoId, controls, autoPlay, loop, muted } = props;
|
|
522
587
|
let params = `autoplay=${autoPlay}&loop=${loop}&controls=${controls}&muted=${muted}`;
|
|
523
588
|
let vimeoSrc = `https://player.vimeo.com/video/${vimeoId}?${params}`;
|
|
524
|
-
return /* @__PURE__ */
|
|
589
|
+
return /* @__PURE__ */ React13.createElement("iframe", { src: vimeoSrc, width: "100%", height: "100%", allowFullScreen: true });
|
|
525
590
|
}
|
|
526
591
|
|
|
527
592
|
// src/elements/video/youtube.tsx
|
|
528
|
-
import
|
|
593
|
+
import React14 from "react";
|
|
529
594
|
function Youtube(props) {
|
|
530
595
|
let { youtubeId, controls, autoPlay, loop, muted } = props;
|
|
531
596
|
let params = new URLSearchParams({
|
|
@@ -536,7 +601,7 @@ function Youtube(props) {
|
|
|
536
601
|
});
|
|
537
602
|
let youtubeSrc = `https://www.youtube.com/embed/${youtubeId}?playlist=${youtubeId}&${params.toString()}`;
|
|
538
603
|
let allow = `accelerometer;${autoPlay ? "autoplay;" : ""} clipboard-write; encrypted-media; gyroscope; picture-in-picture`;
|
|
539
|
-
return /* @__PURE__ */
|
|
604
|
+
return /* @__PURE__ */ React14.createElement("iframe", { src: youtubeSrc, width: "100%", height: "100%", allow });
|
|
540
605
|
}
|
|
541
606
|
|
|
542
607
|
// src/elements/video/index.tsx
|
|
@@ -557,15 +622,15 @@ var Video = forwardRef7((props, ref) => {
|
|
|
557
622
|
let youtubeId = getYoutubeEmbedId(src);
|
|
558
623
|
let vimeoId = getVimeoId(src);
|
|
559
624
|
if (youtubeId) {
|
|
560
|
-
content = /* @__PURE__ */
|
|
625
|
+
content = /* @__PURE__ */ React15.createElement(Youtube, { ...videoProps, youtubeId });
|
|
561
626
|
} else if (vimeoId) {
|
|
562
|
-
content = /* @__PURE__ */
|
|
627
|
+
content = /* @__PURE__ */ React15.createElement(Vimeo, { ...videoProps, vimeoId });
|
|
563
628
|
} else {
|
|
564
|
-
content = /* @__PURE__ */
|
|
629
|
+
content = /* @__PURE__ */ React15.createElement(HTMLVideo, { ...videoProps });
|
|
565
630
|
}
|
|
566
|
-
return /* @__PURE__ */
|
|
631
|
+
return /* @__PURE__ */ React15.createElement("div", { ref, ...rest }, content);
|
|
567
632
|
});
|
|
568
|
-
var
|
|
633
|
+
var css9 = {
|
|
569
634
|
"@desktop": {
|
|
570
635
|
video: {
|
|
571
636
|
height: "100%",
|
|
@@ -593,7 +658,7 @@ Video.defaultProps = {
|
|
|
593
658
|
var video_default = Video;
|
|
594
659
|
|
|
595
660
|
// src/elements/instagram.tsx
|
|
596
|
-
import
|
|
661
|
+
import React25, { forwardRef as forwardRef10, useEffect as useEffect3, useState as useState3 } from "react";
|
|
597
662
|
|
|
598
663
|
// src/components/modal/index.tsx
|
|
599
664
|
var modal_exports = {};
|
|
@@ -605,10 +670,10 @@ __export(modal_exports, {
|
|
|
605
670
|
ModalTrigger: () => ModalTrigger
|
|
606
671
|
});
|
|
607
672
|
import { Close, Portal, Root, Trigger } from "@radix-ui/react-dialog";
|
|
608
|
-
import
|
|
673
|
+
import React18, { forwardRef as forwardRef8 } from "react";
|
|
609
674
|
|
|
610
675
|
// src/components/icons/index.tsx
|
|
611
|
-
import
|
|
676
|
+
import React17 from "react";
|
|
612
677
|
|
|
613
678
|
// src/components/icons/phosphor.tsx
|
|
614
679
|
var phosphor_exports = {};
|
|
@@ -618,8 +683,10 @@ __export(phosphor_exports, {
|
|
|
618
683
|
Backpack: () => Backpack,
|
|
619
684
|
CaretLeft: () => CaretLeft,
|
|
620
685
|
CaretRight: () => CaretRight,
|
|
686
|
+
Circle: () => Circle,
|
|
621
687
|
CircleNotch: () => CircleNotch,
|
|
622
688
|
Eye: () => Eye,
|
|
689
|
+
HandBag: () => HandBag,
|
|
623
690
|
Image: () => Image2,
|
|
624
691
|
Minus: () => Minus,
|
|
625
692
|
Newspaper: () => Newspaper,
|
|
@@ -627,11 +694,27 @@ __export(phosphor_exports, {
|
|
|
627
694
|
Plus: () => Plus,
|
|
628
695
|
ShoppingCart: () => ShoppingCart,
|
|
629
696
|
Storefront: () => Storefront,
|
|
697
|
+
Tag: () => Tag,
|
|
630
698
|
X: () => X
|
|
631
699
|
});
|
|
632
|
-
import
|
|
700
|
+
import React16 from "react";
|
|
701
|
+
var Circle = (props) => {
|
|
702
|
+
return /* @__PURE__ */ React16.createElement(
|
|
703
|
+
"svg",
|
|
704
|
+
{
|
|
705
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
706
|
+
width: "192",
|
|
707
|
+
height: "192",
|
|
708
|
+
fill: "currentColor",
|
|
709
|
+
viewBox: "0 0 256 256",
|
|
710
|
+
...props
|
|
711
|
+
},
|
|
712
|
+
/* @__PURE__ */ React16.createElement("rect", { width: "256", height: "256", fill: "none" }),
|
|
713
|
+
/* @__PURE__ */ React16.createElement("circle", { cx: "128", cy: "128", r: "104" })
|
|
714
|
+
);
|
|
715
|
+
};
|
|
633
716
|
var CircleNotch = (props) => {
|
|
634
|
-
return /* @__PURE__ */
|
|
717
|
+
return /* @__PURE__ */ React16.createElement(
|
|
635
718
|
"svg",
|
|
636
719
|
{
|
|
637
720
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -639,7 +722,7 @@ var CircleNotch = (props) => {
|
|
|
639
722
|
viewBox: "0 0 24 24",
|
|
640
723
|
...props
|
|
641
724
|
},
|
|
642
|
-
/* @__PURE__ */
|
|
725
|
+
/* @__PURE__ */ React16.createElement(
|
|
643
726
|
"circle",
|
|
644
727
|
{
|
|
645
728
|
style: { opacity: ".25" },
|
|
@@ -650,7 +733,7 @@ var CircleNotch = (props) => {
|
|
|
650
733
|
strokeWidth: "4"
|
|
651
734
|
}
|
|
652
735
|
),
|
|
653
|
-
/* @__PURE__ */
|
|
736
|
+
/* @__PURE__ */ React16.createElement(
|
|
654
737
|
"path",
|
|
655
738
|
{
|
|
656
739
|
style: { opacity: ".75" },
|
|
@@ -661,7 +744,7 @@ var CircleNotch = (props) => {
|
|
|
661
744
|
);
|
|
662
745
|
};
|
|
663
746
|
var X = (props) => {
|
|
664
|
-
return /* @__PURE__ */
|
|
747
|
+
return /* @__PURE__ */ React16.createElement(
|
|
665
748
|
"svg",
|
|
666
749
|
{
|
|
667
750
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -671,8 +754,8 @@ var X = (props) => {
|
|
|
671
754
|
viewBox: "0 0 256 256",
|
|
672
755
|
...props
|
|
673
756
|
},
|
|
674
|
-
/* @__PURE__ */
|
|
675
|
-
/* @__PURE__ */
|
|
757
|
+
/* @__PURE__ */ React16.createElement("rect", { width: "256", height: "256", fill: "none" }),
|
|
758
|
+
/* @__PURE__ */ React16.createElement(
|
|
676
759
|
"line",
|
|
677
760
|
{
|
|
678
761
|
x1: "200",
|
|
@@ -686,7 +769,7 @@ var X = (props) => {
|
|
|
686
769
|
strokeWidth: "12"
|
|
687
770
|
}
|
|
688
771
|
),
|
|
689
|
-
/* @__PURE__ */
|
|
772
|
+
/* @__PURE__ */ React16.createElement(
|
|
690
773
|
"line",
|
|
691
774
|
{
|
|
692
775
|
x1: "200",
|
|
@@ -703,37 +786,77 @@ var X = (props) => {
|
|
|
703
786
|
);
|
|
704
787
|
};
|
|
705
788
|
var Minus = (props) => {
|
|
706
|
-
return /* @__PURE__ */
|
|
789
|
+
return /* @__PURE__ */ React16.createElement(
|
|
707
790
|
"svg",
|
|
708
791
|
{
|
|
709
|
-
width: "196",
|
|
710
|
-
height: "196",
|
|
711
|
-
fill: "currentColor",
|
|
712
|
-
stroke: "currentColor",
|
|
713
792
|
xmlns: "http://www.w3.org/2000/svg",
|
|
714
|
-
|
|
793
|
+
width: "192",
|
|
794
|
+
height: "192",
|
|
795
|
+
fill: "currentColor",
|
|
796
|
+
viewBox: "0 0 256 256",
|
|
715
797
|
...props
|
|
716
798
|
},
|
|
717
|
-
/* @__PURE__ */
|
|
799
|
+
/* @__PURE__ */ React16.createElement("rect", { width: "256", height: "256", fill: "none" }),
|
|
800
|
+
/* @__PURE__ */ React16.createElement(
|
|
801
|
+
"line",
|
|
802
|
+
{
|
|
803
|
+
x1: "40",
|
|
804
|
+
y1: "128",
|
|
805
|
+
x2: "216",
|
|
806
|
+
y2: "128",
|
|
807
|
+
fill: "none",
|
|
808
|
+
stroke: "currentColor",
|
|
809
|
+
strokeLinecap: "round",
|
|
810
|
+
strokeLinejoin: "round",
|
|
811
|
+
strokeWidth: "16"
|
|
812
|
+
}
|
|
813
|
+
)
|
|
718
814
|
);
|
|
719
815
|
};
|
|
720
816
|
var Plus = (props) => {
|
|
721
|
-
return /* @__PURE__ */
|
|
817
|
+
return /* @__PURE__ */ React16.createElement(
|
|
722
818
|
"svg",
|
|
723
819
|
{
|
|
724
|
-
width: "196",
|
|
725
|
-
height: "196",
|
|
726
|
-
fill: "currentColor",
|
|
727
|
-
stroke: "currentColor",
|
|
728
820
|
xmlns: "http://www.w3.org/2000/svg",
|
|
729
|
-
|
|
821
|
+
width: "192",
|
|
822
|
+
height: "192",
|
|
823
|
+
fill: "currentColor",
|
|
824
|
+
viewBox: "0 0 256 256",
|
|
730
825
|
...props
|
|
731
826
|
},
|
|
732
|
-
/* @__PURE__ */
|
|
827
|
+
/* @__PURE__ */ React16.createElement("rect", { width: "256", height: "256", fill: "none" }),
|
|
828
|
+
/* @__PURE__ */ React16.createElement(
|
|
829
|
+
"line",
|
|
830
|
+
{
|
|
831
|
+
x1: "40",
|
|
832
|
+
y1: "128",
|
|
833
|
+
x2: "216",
|
|
834
|
+
y2: "128",
|
|
835
|
+
fill: "none",
|
|
836
|
+
stroke: "currentColor",
|
|
837
|
+
strokeLinecap: "round",
|
|
838
|
+
strokeLinejoin: "round",
|
|
839
|
+
strokeWidth: "16"
|
|
840
|
+
}
|
|
841
|
+
),
|
|
842
|
+
/* @__PURE__ */ React16.createElement(
|
|
843
|
+
"line",
|
|
844
|
+
{
|
|
845
|
+
x1: "128",
|
|
846
|
+
y1: "40",
|
|
847
|
+
x2: "128",
|
|
848
|
+
y2: "216",
|
|
849
|
+
fill: "none",
|
|
850
|
+
stroke: "currentColor",
|
|
851
|
+
strokeLinecap: "round",
|
|
852
|
+
strokeLinejoin: "round",
|
|
853
|
+
strokeWidth: "16"
|
|
854
|
+
}
|
|
855
|
+
)
|
|
733
856
|
);
|
|
734
857
|
};
|
|
735
858
|
var CaretLeft = (props) => {
|
|
736
|
-
return /* @__PURE__ */
|
|
859
|
+
return /* @__PURE__ */ React16.createElement(
|
|
737
860
|
"svg",
|
|
738
861
|
{
|
|
739
862
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -743,8 +866,8 @@ var CaretLeft = (props) => {
|
|
|
743
866
|
viewBox: "0 0 256 256",
|
|
744
867
|
...props
|
|
745
868
|
},
|
|
746
|
-
/* @__PURE__ */
|
|
747
|
-
/* @__PURE__ */
|
|
869
|
+
/* @__PURE__ */ React16.createElement("rect", { width: "256", height: "256", fill: "none" }),
|
|
870
|
+
/* @__PURE__ */ React16.createElement(
|
|
748
871
|
"polyline",
|
|
749
872
|
{
|
|
750
873
|
points: "160 208 80 128 160 48",
|
|
@@ -758,7 +881,7 @@ var CaretLeft = (props) => {
|
|
|
758
881
|
);
|
|
759
882
|
};
|
|
760
883
|
var CaretRight = (props) => {
|
|
761
|
-
return /* @__PURE__ */
|
|
884
|
+
return /* @__PURE__ */ React16.createElement(
|
|
762
885
|
"svg",
|
|
763
886
|
{
|
|
764
887
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -768,8 +891,8 @@ var CaretRight = (props) => {
|
|
|
768
891
|
viewBox: "0 0 256 256",
|
|
769
892
|
...props
|
|
770
893
|
},
|
|
771
|
-
/* @__PURE__ */
|
|
772
|
-
/* @__PURE__ */
|
|
894
|
+
/* @__PURE__ */ React16.createElement("rect", { width: "256", height: "256", fill: "none" }),
|
|
895
|
+
/* @__PURE__ */ React16.createElement(
|
|
773
896
|
"polyline",
|
|
774
897
|
{
|
|
775
898
|
points: "96 48 176 128 96 208",
|
|
@@ -783,7 +906,7 @@ var CaretRight = (props) => {
|
|
|
783
906
|
);
|
|
784
907
|
};
|
|
785
908
|
var ArrowLeft = (props) => {
|
|
786
|
-
return /* @__PURE__ */
|
|
909
|
+
return /* @__PURE__ */ React16.createElement(
|
|
787
910
|
"svg",
|
|
788
911
|
{
|
|
789
912
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -793,8 +916,8 @@ var ArrowLeft = (props) => {
|
|
|
793
916
|
viewBox: "0 0 256 256",
|
|
794
917
|
...props
|
|
795
918
|
},
|
|
796
|
-
/* @__PURE__ */
|
|
797
|
-
/* @__PURE__ */
|
|
919
|
+
/* @__PURE__ */ React16.createElement("rect", { width: "256", height: "256", fill: "none" }),
|
|
920
|
+
/* @__PURE__ */ React16.createElement(
|
|
798
921
|
"line",
|
|
799
922
|
{
|
|
800
923
|
x1: "216",
|
|
@@ -808,7 +931,7 @@ var ArrowLeft = (props) => {
|
|
|
808
931
|
strokeWidth: "16"
|
|
809
932
|
}
|
|
810
933
|
),
|
|
811
|
-
/* @__PURE__ */
|
|
934
|
+
/* @__PURE__ */ React16.createElement(
|
|
812
935
|
"polyline",
|
|
813
936
|
{
|
|
814
937
|
points: "112 56 40 128 112 200",
|
|
@@ -822,7 +945,7 @@ var ArrowLeft = (props) => {
|
|
|
822
945
|
);
|
|
823
946
|
};
|
|
824
947
|
var ArrowRight = (props) => {
|
|
825
|
-
return /* @__PURE__ */
|
|
948
|
+
return /* @__PURE__ */ React16.createElement(
|
|
826
949
|
"svg",
|
|
827
950
|
{
|
|
828
951
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -832,8 +955,8 @@ var ArrowRight = (props) => {
|
|
|
832
955
|
viewBox: "0 0 256 256",
|
|
833
956
|
...props
|
|
834
957
|
},
|
|
835
|
-
/* @__PURE__ */
|
|
836
|
-
/* @__PURE__ */
|
|
958
|
+
/* @__PURE__ */ React16.createElement("rect", { width: "256", height: "256", fill: "none" }),
|
|
959
|
+
/* @__PURE__ */ React16.createElement(
|
|
837
960
|
"line",
|
|
838
961
|
{
|
|
839
962
|
x1: "40",
|
|
@@ -847,7 +970,7 @@ var ArrowRight = (props) => {
|
|
|
847
970
|
strokeWidth: "16"
|
|
848
971
|
}
|
|
849
972
|
),
|
|
850
|
-
/* @__PURE__ */
|
|
973
|
+
/* @__PURE__ */ React16.createElement(
|
|
851
974
|
"polyline",
|
|
852
975
|
{
|
|
853
976
|
points: "144 56 216 128 144 200",
|
|
@@ -861,7 +984,7 @@ var ArrowRight = (props) => {
|
|
|
861
984
|
);
|
|
862
985
|
};
|
|
863
986
|
var Image2 = (props) => {
|
|
864
|
-
return /* @__PURE__ */
|
|
987
|
+
return /* @__PURE__ */ React16.createElement(
|
|
865
988
|
"svg",
|
|
866
989
|
{
|
|
867
990
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -870,11 +993,11 @@ var Image2 = (props) => {
|
|
|
870
993
|
viewBox: "0 0 640 512",
|
|
871
994
|
...props
|
|
872
995
|
},
|
|
873
|
-
/* @__PURE__ */
|
|
996
|
+
/* @__PURE__ */ React16.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" })
|
|
874
997
|
);
|
|
875
998
|
};
|
|
876
999
|
var ShoppingCart = (props) => {
|
|
877
|
-
return /* @__PURE__ */
|
|
1000
|
+
return /* @__PURE__ */ React16.createElement(
|
|
878
1001
|
"svg",
|
|
879
1002
|
{
|
|
880
1003
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -884,8 +1007,8 @@ var ShoppingCart = (props) => {
|
|
|
884
1007
|
viewBox: "0 0 256 256",
|
|
885
1008
|
...props
|
|
886
1009
|
},
|
|
887
|
-
/* @__PURE__ */
|
|
888
|
-
/* @__PURE__ */
|
|
1010
|
+
/* @__PURE__ */ React16.createElement("rect", { width: "256", height: "256", fill: "none" }),
|
|
1011
|
+
/* @__PURE__ */ React16.createElement(
|
|
889
1012
|
"path",
|
|
890
1013
|
{
|
|
891
1014
|
d: "M184,184H69.8L41.9,30.6A8,8,0,0,0,34.1,24H16",
|
|
@@ -896,7 +1019,7 @@ var ShoppingCart = (props) => {
|
|
|
896
1019
|
strokeWidth: "16"
|
|
897
1020
|
}
|
|
898
1021
|
),
|
|
899
|
-
/* @__PURE__ */
|
|
1022
|
+
/* @__PURE__ */ React16.createElement(
|
|
900
1023
|
"circle",
|
|
901
1024
|
{
|
|
902
1025
|
cx: "80",
|
|
@@ -909,7 +1032,7 @@ var ShoppingCart = (props) => {
|
|
|
909
1032
|
strokeWidth: "16"
|
|
910
1033
|
}
|
|
911
1034
|
),
|
|
912
|
-
/* @__PURE__ */
|
|
1035
|
+
/* @__PURE__ */ React16.createElement(
|
|
913
1036
|
"circle",
|
|
914
1037
|
{
|
|
915
1038
|
cx: "184",
|
|
@@ -922,7 +1045,7 @@ var ShoppingCart = (props) => {
|
|
|
922
1045
|
strokeWidth: "16"
|
|
923
1046
|
}
|
|
924
1047
|
),
|
|
925
|
-
/* @__PURE__ */
|
|
1048
|
+
/* @__PURE__ */ React16.createElement(
|
|
926
1049
|
"path",
|
|
927
1050
|
{
|
|
928
1051
|
d: "M62.5,144H188.1a15.9,15.9,0,0,0,15.7-13.1L216,64H48",
|
|
@@ -936,7 +1059,7 @@ var ShoppingCart = (props) => {
|
|
|
936
1059
|
);
|
|
937
1060
|
};
|
|
938
1061
|
var Storefront = (props) => {
|
|
939
|
-
return /* @__PURE__ */
|
|
1062
|
+
return /* @__PURE__ */ React16.createElement(
|
|
940
1063
|
"svg",
|
|
941
1064
|
{
|
|
942
1065
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -946,8 +1069,8 @@ var Storefront = (props) => {
|
|
|
946
1069
|
viewBox: "0 0 256 256",
|
|
947
1070
|
...props
|
|
948
1071
|
},
|
|
949
|
-
/* @__PURE__ */
|
|
950
|
-
/* @__PURE__ */
|
|
1072
|
+
/* @__PURE__ */ React16.createElement("rect", { width: "256", height: "256", fill: "none" }),
|
|
1073
|
+
/* @__PURE__ */ React16.createElement(
|
|
951
1074
|
"path",
|
|
952
1075
|
{
|
|
953
1076
|
d: "M48,139.6V208a8,8,0,0,0,8,8H200a8,8,0,0,0,8-8V139.6",
|
|
@@ -958,7 +1081,7 @@ var Storefront = (props) => {
|
|
|
958
1081
|
strokeWidth: "12"
|
|
959
1082
|
}
|
|
960
1083
|
),
|
|
961
|
-
/* @__PURE__ */
|
|
1084
|
+
/* @__PURE__ */ React16.createElement(
|
|
962
1085
|
"path",
|
|
963
1086
|
{
|
|
964
1087
|
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",
|
|
@@ -969,7 +1092,7 @@ var Storefront = (props) => {
|
|
|
969
1092
|
strokeWidth: "12"
|
|
970
1093
|
}
|
|
971
1094
|
),
|
|
972
|
-
/* @__PURE__ */
|
|
1095
|
+
/* @__PURE__ */ React16.createElement(
|
|
973
1096
|
"path",
|
|
974
1097
|
{
|
|
975
1098
|
d: "M96,96v16a32,32,0,0,1-64,0V96",
|
|
@@ -980,7 +1103,7 @@ var Storefront = (props) => {
|
|
|
980
1103
|
strokeWidth: "12"
|
|
981
1104
|
}
|
|
982
1105
|
),
|
|
983
|
-
/* @__PURE__ */
|
|
1106
|
+
/* @__PURE__ */ React16.createElement(
|
|
984
1107
|
"path",
|
|
985
1108
|
{
|
|
986
1109
|
d: "M160,96v16a32,32,0,0,1-64,0V96",
|
|
@@ -991,7 +1114,7 @@ var Storefront = (props) => {
|
|
|
991
1114
|
strokeWidth: "12"
|
|
992
1115
|
}
|
|
993
1116
|
),
|
|
994
|
-
/* @__PURE__ */
|
|
1117
|
+
/* @__PURE__ */ React16.createElement(
|
|
995
1118
|
"path",
|
|
996
1119
|
{
|
|
997
1120
|
d: "M224,96v16a32,32,0,0,1-64,0V96",
|
|
@@ -1005,7 +1128,7 @@ var Storefront = (props) => {
|
|
|
1005
1128
|
);
|
|
1006
1129
|
};
|
|
1007
1130
|
var Package = (props) => {
|
|
1008
|
-
return /* @__PURE__ */
|
|
1131
|
+
return /* @__PURE__ */ React16.createElement(
|
|
1009
1132
|
"svg",
|
|
1010
1133
|
{
|
|
1011
1134
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1015,8 +1138,8 @@ var Package = (props) => {
|
|
|
1015
1138
|
viewBox: "0 0 256 256",
|
|
1016
1139
|
...props
|
|
1017
1140
|
},
|
|
1018
|
-
/* @__PURE__ */
|
|
1019
|
-
/* @__PURE__ */
|
|
1141
|
+
/* @__PURE__ */ React16.createElement("rect", { width: "256", height: "256", fill: "none" }),
|
|
1142
|
+
/* @__PURE__ */ React16.createElement(
|
|
1020
1143
|
"path",
|
|
1021
1144
|
{
|
|
1022
1145
|
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",
|
|
@@ -1027,7 +1150,7 @@ var Package = (props) => {
|
|
|
1027
1150
|
strokeWidth: "8"
|
|
1028
1151
|
}
|
|
1029
1152
|
),
|
|
1030
|
-
/* @__PURE__ */
|
|
1153
|
+
/* @__PURE__ */ React16.createElement(
|
|
1031
1154
|
"polyline",
|
|
1032
1155
|
{
|
|
1033
1156
|
points: "177 152.5 177 100.5 80 47",
|
|
@@ -1038,7 +1161,7 @@ var Package = (props) => {
|
|
|
1038
1161
|
strokeWidth: "8"
|
|
1039
1162
|
}
|
|
1040
1163
|
),
|
|
1041
|
-
/* @__PURE__ */
|
|
1164
|
+
/* @__PURE__ */ React16.createElement(
|
|
1042
1165
|
"polyline",
|
|
1043
1166
|
{
|
|
1044
1167
|
points: "222.9 74.6 128.9 128 33.1 74.6",
|
|
@@ -1049,7 +1172,7 @@ var Package = (props) => {
|
|
|
1049
1172
|
strokeWidth: "8"
|
|
1050
1173
|
}
|
|
1051
1174
|
),
|
|
1052
|
-
/* @__PURE__ */
|
|
1175
|
+
/* @__PURE__ */ React16.createElement(
|
|
1053
1176
|
"line",
|
|
1054
1177
|
{
|
|
1055
1178
|
x1: "128.9",
|
|
@@ -1065,8 +1188,70 @@ var Package = (props) => {
|
|
|
1065
1188
|
)
|
|
1066
1189
|
);
|
|
1067
1190
|
};
|
|
1191
|
+
var HandBag = (props) => {
|
|
1192
|
+
return /* @__PURE__ */ React16.createElement(
|
|
1193
|
+
"svg",
|
|
1194
|
+
{
|
|
1195
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1196
|
+
width: "192",
|
|
1197
|
+
height: "192",
|
|
1198
|
+
fill: "currentColor",
|
|
1199
|
+
viewBox: "0 0 256 256",
|
|
1200
|
+
...props
|
|
1201
|
+
},
|
|
1202
|
+
/* @__PURE__ */ React16.createElement("rect", { width: "256", height: "256", fill: "none" }),
|
|
1203
|
+
/* @__PURE__ */ React16.createElement(
|
|
1204
|
+
"path",
|
|
1205
|
+
{
|
|
1206
|
+
d: "M208.8,72H47.2a8.1,8.1,0,0,0-8,7.1L25,207.1a8,8,0,0,0,7.9,8.9H223.1a8,8,0,0,0,7.9-8.9l-14.2-128A8.1,8.1,0,0,0,208.8,72Z",
|
|
1207
|
+
fill: "none",
|
|
1208
|
+
stroke: "currentColor",
|
|
1209
|
+
strokeLinecap: "round",
|
|
1210
|
+
strokeLinejoin: "round",
|
|
1211
|
+
strokeWidth: "16"
|
|
1212
|
+
}
|
|
1213
|
+
),
|
|
1214
|
+
/* @__PURE__ */ React16.createElement(
|
|
1215
|
+
"path",
|
|
1216
|
+
{
|
|
1217
|
+
d: "M88,104V72a40,40,0,0,1,80,0v32",
|
|
1218
|
+
fill: "none",
|
|
1219
|
+
stroke: "currentColor",
|
|
1220
|
+
strokeLinecap: "round",
|
|
1221
|
+
strokeLinejoin: "round",
|
|
1222
|
+
strokeWidth: "16"
|
|
1223
|
+
}
|
|
1224
|
+
)
|
|
1225
|
+
);
|
|
1226
|
+
};
|
|
1227
|
+
var Tag = (props) => {
|
|
1228
|
+
return /* @__PURE__ */ React16.createElement(
|
|
1229
|
+
"svg",
|
|
1230
|
+
{
|
|
1231
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1232
|
+
width: "192",
|
|
1233
|
+
height: "192",
|
|
1234
|
+
fill: "currentColor",
|
|
1235
|
+
viewBox: "0 0 256 256",
|
|
1236
|
+
...props
|
|
1237
|
+
},
|
|
1238
|
+
/* @__PURE__ */ React16.createElement("rect", { width: "256", height: "256", fill: "none" }),
|
|
1239
|
+
/* @__PURE__ */ React16.createElement(
|
|
1240
|
+
"path",
|
|
1241
|
+
{
|
|
1242
|
+
d: "M122.7,25.9,42,42,25.9,122.7a8,8,0,0,0,2.2,7.2L132.5,234.3a7.9,7.9,0,0,0,11.3,0l90.5-90.5a7.9,7.9,0,0,0,0-11.3L129.9,28.1A8,8,0,0,0,122.7,25.9Z",
|
|
1243
|
+
fill: "none",
|
|
1244
|
+
stroke: "currentColor",
|
|
1245
|
+
strokeLinecap: "round",
|
|
1246
|
+
strokeLinejoin: "round",
|
|
1247
|
+
strokeWidth: "16"
|
|
1248
|
+
}
|
|
1249
|
+
),
|
|
1250
|
+
/* @__PURE__ */ React16.createElement("circle", { cx: "84", cy: "84", r: "12" })
|
|
1251
|
+
);
|
|
1252
|
+
};
|
|
1068
1253
|
var Backpack = (props) => {
|
|
1069
|
-
return /* @__PURE__ */
|
|
1254
|
+
return /* @__PURE__ */ React16.createElement(
|
|
1070
1255
|
"svg",
|
|
1071
1256
|
{
|
|
1072
1257
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1076,8 +1261,8 @@ var Backpack = (props) => {
|
|
|
1076
1261
|
viewBox: "0 0 256 256",
|
|
1077
1262
|
...props
|
|
1078
1263
|
},
|
|
1079
|
-
/* @__PURE__ */
|
|
1080
|
-
/* @__PURE__ */
|
|
1264
|
+
/* @__PURE__ */ React16.createElement("rect", { width: "256", height: "256", fill: "none" }),
|
|
1265
|
+
/* @__PURE__ */ React16.createElement(
|
|
1081
1266
|
"path",
|
|
1082
1267
|
{
|
|
1083
1268
|
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",
|
|
@@ -1088,7 +1273,7 @@ var Backpack = (props) => {
|
|
|
1088
1273
|
strokeWidth: "12"
|
|
1089
1274
|
}
|
|
1090
1275
|
),
|
|
1091
|
-
/* @__PURE__ */
|
|
1276
|
+
/* @__PURE__ */ React16.createElement(
|
|
1092
1277
|
"path",
|
|
1093
1278
|
{
|
|
1094
1279
|
d: "M80,224V152a16,16,0,0,1,16-16h64a16,16,0,0,1,16,16v72",
|
|
@@ -1099,7 +1284,7 @@ var Backpack = (props) => {
|
|
|
1099
1284
|
strokeWidth: "12"
|
|
1100
1285
|
}
|
|
1101
1286
|
),
|
|
1102
|
-
/* @__PURE__ */
|
|
1287
|
+
/* @__PURE__ */ React16.createElement(
|
|
1103
1288
|
"path",
|
|
1104
1289
|
{
|
|
1105
1290
|
d: "M96,48V32a16,16,0,0,1,16-16h32a16,16,0,0,1,16,16V48",
|
|
@@ -1110,7 +1295,7 @@ var Backpack = (props) => {
|
|
|
1110
1295
|
strokeWidth: "12"
|
|
1111
1296
|
}
|
|
1112
1297
|
),
|
|
1113
|
-
/* @__PURE__ */
|
|
1298
|
+
/* @__PURE__ */ React16.createElement(
|
|
1114
1299
|
"line",
|
|
1115
1300
|
{
|
|
1116
1301
|
x1: "112",
|
|
@@ -1124,7 +1309,7 @@ var Backpack = (props) => {
|
|
|
1124
1309
|
strokeWidth: "12"
|
|
1125
1310
|
}
|
|
1126
1311
|
),
|
|
1127
|
-
/* @__PURE__ */
|
|
1312
|
+
/* @__PURE__ */ React16.createElement(
|
|
1128
1313
|
"line",
|
|
1129
1314
|
{
|
|
1130
1315
|
x1: "80",
|
|
@@ -1138,7 +1323,7 @@ var Backpack = (props) => {
|
|
|
1138
1323
|
strokeWidth: "12"
|
|
1139
1324
|
}
|
|
1140
1325
|
),
|
|
1141
|
-
/* @__PURE__ */
|
|
1326
|
+
/* @__PURE__ */ React16.createElement(
|
|
1142
1327
|
"line",
|
|
1143
1328
|
{
|
|
1144
1329
|
x1: "144",
|
|
@@ -1155,7 +1340,7 @@ var Backpack = (props) => {
|
|
|
1155
1340
|
);
|
|
1156
1341
|
};
|
|
1157
1342
|
var Newspaper = (props) => {
|
|
1158
|
-
return /* @__PURE__ */
|
|
1343
|
+
return /* @__PURE__ */ React16.createElement(
|
|
1159
1344
|
"svg",
|
|
1160
1345
|
{
|
|
1161
1346
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1165,8 +1350,8 @@ var Newspaper = (props) => {
|
|
|
1165
1350
|
viewBox: "0 0 256 256",
|
|
1166
1351
|
...props
|
|
1167
1352
|
},
|
|
1168
|
-
/* @__PURE__ */
|
|
1169
|
-
/* @__PURE__ */
|
|
1353
|
+
/* @__PURE__ */ React16.createElement("rect", { width: "256", height: "256", fill: "none" }),
|
|
1354
|
+
/* @__PURE__ */ React16.createElement(
|
|
1170
1355
|
"line",
|
|
1171
1356
|
{
|
|
1172
1357
|
x1: "96",
|
|
@@ -1180,7 +1365,7 @@ var Newspaper = (props) => {
|
|
|
1180
1365
|
strokeWidth: "8"
|
|
1181
1366
|
}
|
|
1182
1367
|
),
|
|
1183
|
-
/* @__PURE__ */
|
|
1368
|
+
/* @__PURE__ */ React16.createElement(
|
|
1184
1369
|
"line",
|
|
1185
1370
|
{
|
|
1186
1371
|
x1: "96",
|
|
@@ -1194,7 +1379,7 @@ var Newspaper = (props) => {
|
|
|
1194
1379
|
strokeWidth: "8"
|
|
1195
1380
|
}
|
|
1196
1381
|
),
|
|
1197
|
-
/* @__PURE__ */
|
|
1382
|
+
/* @__PURE__ */ React16.createElement(
|
|
1198
1383
|
"path",
|
|
1199
1384
|
{
|
|
1200
1385
|
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",
|
|
@@ -1205,7 +1390,7 @@ var Newspaper = (props) => {
|
|
|
1205
1390
|
strokeWidth: "8"
|
|
1206
1391
|
}
|
|
1207
1392
|
),
|
|
1208
|
-
/* @__PURE__ */
|
|
1393
|
+
/* @__PURE__ */ React16.createElement(
|
|
1209
1394
|
"path",
|
|
1210
1395
|
{
|
|
1211
1396
|
d: "M32,200a16,16,0,0,1-16-16h0V88",
|
|
@@ -1219,7 +1404,7 @@ var Newspaper = (props) => {
|
|
|
1219
1404
|
);
|
|
1220
1405
|
};
|
|
1221
1406
|
var Eye = (props) => {
|
|
1222
|
-
return /* @__PURE__ */
|
|
1407
|
+
return /* @__PURE__ */ React16.createElement(
|
|
1223
1408
|
"svg",
|
|
1224
1409
|
{
|
|
1225
1410
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1229,8 +1414,8 @@ var Eye = (props) => {
|
|
|
1229
1414
|
viewBox: "0 0 256 256",
|
|
1230
1415
|
...props
|
|
1231
1416
|
},
|
|
1232
|
-
/* @__PURE__ */
|
|
1233
|
-
/* @__PURE__ */
|
|
1417
|
+
/* @__PURE__ */ React16.createElement("rect", { width: "256", height: "256", fill: "none" }),
|
|
1418
|
+
/* @__PURE__ */ React16.createElement(
|
|
1234
1419
|
"path",
|
|
1235
1420
|
{
|
|
1236
1421
|
d: "M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Z",
|
|
@@ -1241,7 +1426,7 @@ var Eye = (props) => {
|
|
|
1241
1426
|
strokeWidth: "12"
|
|
1242
1427
|
}
|
|
1243
1428
|
),
|
|
1244
|
-
/* @__PURE__ */
|
|
1429
|
+
/* @__PURE__ */ React16.createElement(
|
|
1245
1430
|
"circle",
|
|
1246
1431
|
{
|
|
1247
1432
|
cx: "128",
|
|
@@ -1262,7 +1447,7 @@ import clsx from "clsx";
|
|
|
1262
1447
|
function Icon({ name, className, ...props }) {
|
|
1263
1448
|
let WeaverseIcon = phosphor_exports[name];
|
|
1264
1449
|
let cls = clsx("wv-icon", className);
|
|
1265
|
-
return /* @__PURE__ */
|
|
1450
|
+
return /* @__PURE__ */ React17.createElement(WeaverseIcon, { className: cls, ...props });
|
|
1266
1451
|
}
|
|
1267
1452
|
|
|
1268
1453
|
// src/components/modal/styled.ts
|
|
@@ -1378,7 +1563,7 @@ function useOpenChangeEffect(props) {
|
|
|
1378
1563
|
var Modal = (props) => {
|
|
1379
1564
|
let { children, open, defaultOpen, onOpenChange, ...rest } = props;
|
|
1380
1565
|
let handleOpenChange = useOpenChangeEffect(props);
|
|
1381
|
-
return /* @__PURE__ */
|
|
1566
|
+
return /* @__PURE__ */ React18.createElement(
|
|
1382
1567
|
Root,
|
|
1383
1568
|
{
|
|
1384
1569
|
open,
|
|
@@ -1393,13 +1578,13 @@ var ModalTrigger = Trigger;
|
|
|
1393
1578
|
var ModalHeader = forwardRef8(
|
|
1394
1579
|
(props, ref) => {
|
|
1395
1580
|
let { children, ...rest } = props;
|
|
1396
|
-
return /* @__PURE__ */
|
|
1581
|
+
return /* @__PURE__ */ React18.createElement(StyledTitle, { ref, ...rest, "data-wv-modal-header": true }, children);
|
|
1397
1582
|
}
|
|
1398
1583
|
);
|
|
1399
1584
|
var ModalContent = forwardRef8(
|
|
1400
1585
|
(props, ref) => {
|
|
1401
1586
|
let { children, size, portal, ...rest } = props;
|
|
1402
|
-
let modalContent = /* @__PURE__ */
|
|
1587
|
+
let modalContent = /* @__PURE__ */ React18.createElement(React18.Fragment, null, /* @__PURE__ */ React18.createElement(StyledOverlay, null), /* @__PURE__ */ React18.createElement(
|
|
1403
1588
|
StyledContent,
|
|
1404
1589
|
{
|
|
1405
1590
|
...rest,
|
|
@@ -1408,11 +1593,11 @@ var ModalContent = forwardRef8(
|
|
|
1408
1593
|
"data-size": size,
|
|
1409
1594
|
ref
|
|
1410
1595
|
},
|
|
1411
|
-
/* @__PURE__ */
|
|
1412
|
-
/* @__PURE__ */
|
|
1596
|
+
/* @__PURE__ */ React18.createElement(ModalClose, null),
|
|
1597
|
+
/* @__PURE__ */ React18.createElement("div", { className: "wv-modal-content" }, children)
|
|
1413
1598
|
));
|
|
1414
1599
|
if (portal) {
|
|
1415
|
-
return /* @__PURE__ */
|
|
1600
|
+
return /* @__PURE__ */ React18.createElement(Portal, null, modalContent);
|
|
1416
1601
|
}
|
|
1417
1602
|
return modalContent;
|
|
1418
1603
|
}
|
|
@@ -1424,32 +1609,32 @@ ModalContent.defaultProps = {
|
|
|
1424
1609
|
var ModalClose = forwardRef8(
|
|
1425
1610
|
(props, ref) => {
|
|
1426
1611
|
let { asChild, children, ...rest } = props;
|
|
1427
|
-
let closeIcon = /* @__PURE__ */
|
|
1428
|
-
return /* @__PURE__ */
|
|
1612
|
+
let closeIcon = /* @__PURE__ */ React18.createElement(StyledCloseIcon, null, /* @__PURE__ */ React18.createElement(Icon, { name: "X" }));
|
|
1613
|
+
return /* @__PURE__ */ React18.createElement(Close, { asChild: true, ...rest, ref }, asChild ? children : closeIcon);
|
|
1429
1614
|
}
|
|
1430
1615
|
);
|
|
1431
1616
|
|
|
1432
1617
|
// src/components/spinner.tsx
|
|
1433
|
-
import
|
|
1618
|
+
import React19 from "react";
|
|
1434
1619
|
function Spinner() {
|
|
1435
|
-
return /* @__PURE__ */
|
|
1620
|
+
return /* @__PURE__ */ React19.createElement("span", { className: "wv-spinner-wrapper" }, /* @__PURE__ */ React19.createElement(Icon, { name: "CircleNotch", className: "wv-spinner" }));
|
|
1436
1621
|
}
|
|
1437
1622
|
|
|
1438
1623
|
// src/components/tooltip.tsx
|
|
1439
|
-
import
|
|
1624
|
+
import React20 from "react";
|
|
1440
1625
|
function Tooltip({ children }) {
|
|
1441
|
-
return /* @__PURE__ */
|
|
1626
|
+
return /* @__PURE__ */ React20.createElement("span", { className: "wv-tooltip" }, children);
|
|
1442
1627
|
}
|
|
1443
1628
|
|
|
1444
1629
|
// src/components/slider/index.tsx
|
|
1445
1630
|
import clsx3 from "clsx";
|
|
1446
1631
|
import { useKeenSlider } from "keen-slider/react";
|
|
1447
|
-
import
|
|
1632
|
+
import React22, { useState as useState2 } from "react";
|
|
1448
1633
|
|
|
1449
1634
|
// src/components/slider/arrows.tsx
|
|
1450
1635
|
import { styled as styled2 } from "@stitches/react";
|
|
1451
1636
|
import clsx2 from "clsx";
|
|
1452
|
-
import
|
|
1637
|
+
import React21 from "react";
|
|
1453
1638
|
function Arrows(props) {
|
|
1454
1639
|
let { currentSlide, instanceRef, className, icon, offset } = props;
|
|
1455
1640
|
let isFirst = currentSlide === 0;
|
|
@@ -1460,7 +1645,7 @@ function Arrows(props) {
|
|
|
1460
1645
|
let style = {
|
|
1461
1646
|
"--offset": `${offset}px`
|
|
1462
1647
|
};
|
|
1463
|
-
return /* @__PURE__ */
|
|
1648
|
+
return /* @__PURE__ */ React21.createElement(StyledArrows, { className, style }, /* @__PURE__ */ React21.createElement(
|
|
1464
1649
|
"button",
|
|
1465
1650
|
{
|
|
1466
1651
|
type: "button",
|
|
@@ -1470,8 +1655,8 @@ function Arrows(props) {
|
|
|
1470
1655
|
instanceRef?.current?.prev();
|
|
1471
1656
|
}
|
|
1472
1657
|
},
|
|
1473
|
-
/* @__PURE__ */
|
|
1474
|
-
), /* @__PURE__ */
|
|
1658
|
+
/* @__PURE__ */ React21.createElement(Icon, { name: icon === "caret" ? "CaretLeft" : "ArrowLeft" })
|
|
1659
|
+
), /* @__PURE__ */ React21.createElement(
|
|
1475
1660
|
"button",
|
|
1476
1661
|
{
|
|
1477
1662
|
type: "button",
|
|
@@ -1481,7 +1666,7 @@ function Arrows(props) {
|
|
|
1481
1666
|
instanceRef?.current?.next();
|
|
1482
1667
|
}
|
|
1483
1668
|
},
|
|
1484
|
-
/* @__PURE__ */
|
|
1669
|
+
/* @__PURE__ */ React21.createElement(Icon, { name: icon === "caret" ? "CaretRight" : "ArrowRight" })
|
|
1485
1670
|
));
|
|
1486
1671
|
}
|
|
1487
1672
|
var StyledArrows = styled2("div", {
|
|
@@ -1539,8 +1724,8 @@ var ResizePlugin = (slider) => {
|
|
|
1539
1724
|
// src/components/slider/index.tsx
|
|
1540
1725
|
function Slider(props) {
|
|
1541
1726
|
let { children, className, gap, slidesPerView, arrowOffset } = props;
|
|
1542
|
-
let [currentSlide, setCurrentSlide] =
|
|
1543
|
-
let [created, setCreated] =
|
|
1727
|
+
let [currentSlide, setCurrentSlide] = useState2(0);
|
|
1728
|
+
let [created, setCreated] = useState2(false);
|
|
1544
1729
|
let [ref, instanceRef] = useKeenSlider(
|
|
1545
1730
|
{
|
|
1546
1731
|
slides: { perView: slidesPerView, spacing: gap },
|
|
@@ -1566,13 +1751,13 @@ function Slider(props) {
|
|
|
1566
1751
|
);
|
|
1567
1752
|
let _className = clsx3("keen-slider", className);
|
|
1568
1753
|
let arrowsClass = clsx3(className && `${className}-arrows`);
|
|
1569
|
-
return /* @__PURE__ */
|
|
1754
|
+
return /* @__PURE__ */ React22.createElement(React22.Fragment, null, /* @__PURE__ */ React22.createElement("div", { ref, className: _className }, /* @__PURE__ */ React22.createElement(
|
|
1570
1755
|
"link",
|
|
1571
1756
|
{
|
|
1572
1757
|
rel: "stylesheet",
|
|
1573
1758
|
href: "https://cdn.jsdelivr.net/npm/keen-slider@latest/keen-slider.min.css"
|
|
1574
1759
|
}
|
|
1575
|
-
), children), created && instanceRef?.current && /* @__PURE__ */
|
|
1760
|
+
), children), created && instanceRef?.current && /* @__PURE__ */ React22.createElement(
|
|
1576
1761
|
Arrows,
|
|
1577
1762
|
{
|
|
1578
1763
|
currentSlide,
|
|
@@ -1584,73 +1769,10 @@ function Slider(props) {
|
|
|
1584
1769
|
));
|
|
1585
1770
|
}
|
|
1586
1771
|
|
|
1587
|
-
// src/components/background.tsx
|
|
1588
|
-
import { styled as styled3 } from "@stitches/react";
|
|
1589
|
-
import React22 from "react";
|
|
1590
|
-
function Background2(props) {
|
|
1591
|
-
let {
|
|
1592
|
-
backgroundColor,
|
|
1593
|
-
backgroundImage,
|
|
1594
|
-
backgroundFit,
|
|
1595
|
-
backgroundPosition,
|
|
1596
|
-
className
|
|
1597
|
-
} = props;
|
|
1598
|
-
let style = {
|
|
1599
|
-
["--bg-color"]: backgroundColor,
|
|
1600
|
-
["--bg-fit"]: backgroundFit,
|
|
1601
|
-
["--bg-position"]: backgroundPosition
|
|
1602
|
-
};
|
|
1603
|
-
if (backgroundImage || backgroundColor) {
|
|
1604
|
-
return /* @__PURE__ */ React22.createElement(StyledBackground, { style, className }, backgroundImage && /* @__PURE__ */ React22.createElement(
|
|
1605
|
-
"img",
|
|
1606
|
-
{
|
|
1607
|
-
width: "100%",
|
|
1608
|
-
height: "100%",
|
|
1609
|
-
"data-blink-src": backgroundImage,
|
|
1610
|
-
alt: "Background"
|
|
1611
|
-
}
|
|
1612
|
-
));
|
|
1613
|
-
}
|
|
1614
|
-
return null;
|
|
1615
|
-
}
|
|
1616
|
-
var StyledBackground = styled3("div", {
|
|
1617
|
-
display: "block !important",
|
|
1618
|
-
position: "absolute",
|
|
1619
|
-
inset: 0,
|
|
1620
|
-
backgroundColor: "var(--bg-color)",
|
|
1621
|
-
img: {
|
|
1622
|
-
objectFit: "var(--bg-fit, cover)",
|
|
1623
|
-
objectPosition: "var(--bg-position, 50% 50%)"
|
|
1624
|
-
}
|
|
1625
|
-
});
|
|
1626
|
-
|
|
1627
|
-
// src/components/overlay.tsx
|
|
1628
|
-
import { styled as styled4 } from "@stitches/react";
|
|
1629
|
-
import React23 from "react";
|
|
1630
|
-
function Overlay3(props) {
|
|
1631
|
-
let { enableOverlay: enabled, overlayOpacity: opacity, className } = props;
|
|
1632
|
-
if (enabled) {
|
|
1633
|
-
return /* @__PURE__ */ React23.createElement(
|
|
1634
|
-
StyledOverlay2,
|
|
1635
|
-
{
|
|
1636
|
-
className,
|
|
1637
|
-
css: { ["--overlay-opacity"]: opacity / 100 }
|
|
1638
|
-
}
|
|
1639
|
-
);
|
|
1640
|
-
}
|
|
1641
|
-
return null;
|
|
1642
|
-
}
|
|
1643
|
-
var StyledOverlay2 = styled4("div", {
|
|
1644
|
-
display: "block !important",
|
|
1645
|
-
position: "absolute",
|
|
1646
|
-
inset: 0,
|
|
1647
|
-
backgroundColor: "rgba(0, 0, 0, var(--overlay-opacity, .3))"
|
|
1648
|
-
});
|
|
1649
|
-
|
|
1650
1772
|
// src/components/slider/dots.tsx
|
|
1651
|
-
import { styled as
|
|
1773
|
+
import { styled as styled3 } from "@stitches/react";
|
|
1652
1774
|
import clsx4 from "clsx";
|
|
1653
|
-
import
|
|
1775
|
+
import React23 from "react";
|
|
1654
1776
|
function Dots(props) {
|
|
1655
1777
|
let { currentSlide, instanceRef, className, absolute, position, color } = props;
|
|
1656
1778
|
let _className = clsx4(
|
|
@@ -1659,10 +1781,10 @@ function Dots(props) {
|
|
|
1659
1781
|
position && `dots--${position}`,
|
|
1660
1782
|
color && `dots--${color}`
|
|
1661
1783
|
);
|
|
1662
|
-
return /* @__PURE__ */
|
|
1784
|
+
return /* @__PURE__ */ React23.createElement(StyledDots, { className: _className }, [...Array(instanceRef.current?.track.details.slides.length).keys()].map(
|
|
1663
1785
|
(idx) => {
|
|
1664
1786
|
let className2 = clsx4("dot", currentSlide === idx && "dot--active");
|
|
1665
|
-
return /* @__PURE__ */
|
|
1787
|
+
return /* @__PURE__ */ React23.createElement(
|
|
1666
1788
|
"button",
|
|
1667
1789
|
{
|
|
1668
1790
|
key: idx,
|
|
@@ -1674,7 +1796,7 @@ function Dots(props) {
|
|
|
1674
1796
|
}
|
|
1675
1797
|
));
|
|
1676
1798
|
}
|
|
1677
|
-
var StyledDots =
|
|
1799
|
+
var StyledDots = styled3("div", {
|
|
1678
1800
|
padding: "10px 0",
|
|
1679
1801
|
display: "flex",
|
|
1680
1802
|
justifyContent: "center",
|
|
@@ -1753,21 +1875,21 @@ function AutoplayPlugin(changeSlidesEvery) {
|
|
|
1753
1875
|
}
|
|
1754
1876
|
|
|
1755
1877
|
// src/components/placeholder.tsx
|
|
1756
|
-
import
|
|
1878
|
+
import React24, { forwardRef as forwardRef9 } from "react";
|
|
1757
1879
|
var Placeholder = forwardRef9(
|
|
1758
1880
|
(props, ref) => {
|
|
1759
1881
|
let { element, className, children, ...rest } = props;
|
|
1760
|
-
return /* @__PURE__ */
|
|
1882
|
+
return /* @__PURE__ */ React24.createElement("div", { "data-wv-placeholder": true, ref, className, ...rest }, /* @__PURE__ */ React24.createElement("div", { style: { fontWeight: 600, marginBottom: "10px" } }, element), /* @__PURE__ */ React24.createElement("div", null, children));
|
|
1761
1883
|
}
|
|
1762
1884
|
);
|
|
1763
1885
|
var placeholder_default = Placeholder;
|
|
1764
1886
|
|
|
1765
1887
|
// src/components/index.ts
|
|
1766
1888
|
var Components = {
|
|
1767
|
-
Background
|
|
1889
|
+
Background,
|
|
1768
1890
|
Icon,
|
|
1769
1891
|
ModalComponents: modal_exports,
|
|
1770
|
-
Overlay
|
|
1892
|
+
Overlay,
|
|
1771
1893
|
Placeholder: placeholder_default,
|
|
1772
1894
|
Spinner,
|
|
1773
1895
|
Slider,
|
|
@@ -1784,8 +1906,8 @@ var SliderComponents = {
|
|
|
1784
1906
|
var Instagram = forwardRef10(
|
|
1785
1907
|
(props, ref) => {
|
|
1786
1908
|
let { token, username, numberOfImages, imagesPerRow, gap, ...rest } = props;
|
|
1787
|
-
let [media, setMedia] =
|
|
1788
|
-
let [error, setError] =
|
|
1909
|
+
let [media, setMedia] = useState3([]);
|
|
1910
|
+
let [error, setError] = useState3(null);
|
|
1789
1911
|
useEffect3(() => {
|
|
1790
1912
|
if (token) {
|
|
1791
1913
|
let params = new URLSearchParams({
|
|
@@ -1803,13 +1925,13 @@ var Instagram = forwardRef10(
|
|
|
1803
1925
|
}
|
|
1804
1926
|
}, [token]);
|
|
1805
1927
|
if (!token || error) {
|
|
1806
|
-
return /* @__PURE__ */
|
|
1928
|
+
return /* @__PURE__ */ React25.createElement("div", { ref, ...rest }, /* @__PURE__ */ React25.createElement(Components.Placeholder, { element: "Instagram" }, !token ? "Connect to Instagram to display photos on your site." : "Invalid or expired token!"));
|
|
1807
1929
|
}
|
|
1808
1930
|
let style = {
|
|
1809
1931
|
"--wv-ig-images-per-row": imagesPerRow,
|
|
1810
1932
|
"--wv-ig-images-gap": gap + "px"
|
|
1811
1933
|
};
|
|
1812
|
-
return /* @__PURE__ */
|
|
1934
|
+
return /* @__PURE__ */ React25.createElement("div", { ref, ...rest, style }, /* @__PURE__ */ React25.createElement("div", { className: "wv-ig-media-container" }, media.slice(0, numberOfImages).map((item) => {
|
|
1813
1935
|
let {
|
|
1814
1936
|
id,
|
|
1815
1937
|
permalink,
|
|
@@ -1819,13 +1941,13 @@ var Instagram = forwardRef10(
|
|
|
1819
1941
|
thumbnail_url
|
|
1820
1942
|
} = item;
|
|
1821
1943
|
if (media_type === "VIDEO") {
|
|
1822
|
-
return /* @__PURE__ */
|
|
1944
|
+
return /* @__PURE__ */ React25.createElement("video", { key: id, controls: true, poster: thumbnail_url }, /* @__PURE__ */ React25.createElement("source", { src: media_url, type: "video/mp4" }));
|
|
1823
1945
|
}
|
|
1824
|
-
return /* @__PURE__ */
|
|
1946
|
+
return /* @__PURE__ */ React25.createElement("a", { key: id, href: permalink, target: "_blank", rel: "noreferrer" }, /* @__PURE__ */ React25.createElement("img", { alt: caption, src: media_url }));
|
|
1825
1947
|
})));
|
|
1826
1948
|
}
|
|
1827
1949
|
);
|
|
1828
|
-
var
|
|
1950
|
+
var css10 = {
|
|
1829
1951
|
// '@desktop': {
|
|
1830
1952
|
// '.wv-ig-media-container': {
|
|
1831
1953
|
// overflow: 'hidden',
|
|
@@ -1890,23 +2012,23 @@ var instagram_default = Instagram;
|
|
|
1890
2012
|
// src/elements/slideshow/index.tsx
|
|
1891
2013
|
import { css as stitchesCss } from "@stitches/react";
|
|
1892
2014
|
import clsx6 from "clsx";
|
|
1893
|
-
import
|
|
2015
|
+
import React27, { forwardRef as forwardRef11 } from "react";
|
|
1894
2016
|
|
|
1895
2017
|
// src/elements/slideshow/use-slideshow-configs.ts
|
|
1896
2018
|
import { useKeenSlider as useKeenSlider2 } from "keen-slider/react";
|
|
1897
|
-
import
|
|
2019
|
+
import React26, { useContext as useContext5, useEffect as useEffect4, useState as useState4 } from "react";
|
|
1898
2020
|
|
|
1899
2021
|
// src/utils/css.ts
|
|
1900
2022
|
import clsx5 from "clsx";
|
|
1901
|
-
function formatCSS(
|
|
2023
|
+
function formatCSS(css13) {
|
|
1902
2024
|
return {
|
|
1903
|
-
"@desktop":
|
|
1904
|
-
"@mobile":
|
|
2025
|
+
"@desktop": css13["@desktop"],
|
|
2026
|
+
"@mobile": css13["@mobile"]
|
|
1905
2027
|
};
|
|
1906
2028
|
}
|
|
1907
2029
|
var permanentClasses = {};
|
|
1908
2030
|
function generateItemClassName(instance, stitchesInstance) {
|
|
1909
|
-
let { css:
|
|
2031
|
+
let { css: css13, type, className: cls = "" } = instance.data;
|
|
1910
2032
|
let className = "";
|
|
1911
2033
|
let permanentClass = "";
|
|
1912
2034
|
let perCss = instance.Element?.permanentCss;
|
|
@@ -1920,8 +2042,8 @@ function generateItemClassName(instance, stitchesInstance) {
|
|
|
1920
2042
|
}
|
|
1921
2043
|
}
|
|
1922
2044
|
className = permanentClass;
|
|
1923
|
-
if (
|
|
1924
|
-
let formattedCss = formatCSS(
|
|
2045
|
+
if (css13) {
|
|
2046
|
+
let formattedCss = formatCSS(css13);
|
|
1925
2047
|
let newStitchesClass = stitchesInstance.css(formattedCss)().className || "";
|
|
1926
2048
|
let { stitchesClass } = instance;
|
|
1927
2049
|
let otherClass = (instance.ref.current?.className || "").replace(stitchesClass, "").replace(cls, "").replace(permanentClass, "").trim();
|
|
@@ -1955,18 +2077,18 @@ function useSlideshowConfigs(props) {
|
|
|
1955
2077
|
children
|
|
1956
2078
|
} = props;
|
|
1957
2079
|
let { isDesignMode, isPreviewMode } = useContext5(WeaverseContext);
|
|
1958
|
-
let [opacities, setOpacities] =
|
|
1959
|
-
let [cssLoaded, setCssLoaded] =
|
|
1960
|
-
let [created, setCreated] =
|
|
1961
|
-
let [ready, setReady] =
|
|
1962
|
-
let [currentSlide, setCurrentSlide] =
|
|
2080
|
+
let [opacities, setOpacities] = React26.useState([]);
|
|
2081
|
+
let [cssLoaded, setCssLoaded] = useState4(false);
|
|
2082
|
+
let [created, setCreated] = useState4(false);
|
|
2083
|
+
let [ready, setReady] = useState4(false);
|
|
2084
|
+
let [currentSlide, setCurrentSlide] = useState4(0);
|
|
1963
2085
|
let sliderPlugins = [ResizePlugin];
|
|
1964
2086
|
if (autoRotate && (isPreviewMode || !isDesignMode)) {
|
|
1965
2087
|
sliderPlugins.push(AutoplayPlugin(changeSlidesEvery));
|
|
1966
2088
|
}
|
|
1967
2089
|
let [sliderRef, instanceRef] = useKeenSlider2(
|
|
1968
2090
|
{
|
|
1969
|
-
slides: animation === "fade" ?
|
|
2091
|
+
slides: animation === "fade" ? React26.Children.count(children) : { perView: slidesPerView, number: React26.Children.count(children) },
|
|
1970
2092
|
drag: isPreviewMode || !isDesignMode,
|
|
1971
2093
|
loop,
|
|
1972
2094
|
selector: animation === "fade" ? null : ".keen-slider__slide",
|
|
@@ -2055,7 +2177,7 @@ var Slideshow = forwardRef11((props, ref) => {
|
|
|
2055
2177
|
showArrowsOnHover && "show-on-hover",
|
|
2056
2178
|
`arrows--${arrowsColor}`
|
|
2057
2179
|
);
|
|
2058
|
-
return /* @__PURE__ */
|
|
2180
|
+
return /* @__PURE__ */ React27.createElement("div", { ref, style, ...rest }, /* @__PURE__ */ React27.createElement("div", { ref: sliderRef, className: _className }, children), showArrows && created && instanceRef?.current && /* @__PURE__ */ React27.createElement(
|
|
2059
2181
|
Arrows,
|
|
2060
2182
|
{
|
|
2061
2183
|
instanceRef,
|
|
@@ -2064,7 +2186,7 @@ var Slideshow = forwardRef11((props, ref) => {
|
|
|
2064
2186
|
icon: arrowIcon,
|
|
2065
2187
|
offset: 20
|
|
2066
2188
|
}
|
|
2067
|
-
), showDots && created && instanceRef?.current && /* @__PURE__ */
|
|
2189
|
+
), showDots && created && instanceRef?.current && /* @__PURE__ */ React27.createElement(
|
|
2068
2190
|
Dots,
|
|
2069
2191
|
{
|
|
2070
2192
|
instanceRef,
|
|
@@ -2076,7 +2198,7 @@ var Slideshow = forwardRef11((props, ref) => {
|
|
|
2076
2198
|
}
|
|
2077
2199
|
));
|
|
2078
2200
|
});
|
|
2079
|
-
var
|
|
2201
|
+
var css11 = {
|
|
2080
2202
|
"@desktop": {
|
|
2081
2203
|
opacity: "var(--slider-opacity, 0)",
|
|
2082
2204
|
padding: "32px 0",
|
|
@@ -2145,7 +2267,7 @@ Slideshow.defaultProps = {
|
|
|
2145
2267
|
var slideshow_default = Slideshow;
|
|
2146
2268
|
|
|
2147
2269
|
// src/elements/slideshow/slide.tsx
|
|
2148
|
-
import
|
|
2270
|
+
import React28, { forwardRef as forwardRef12 } from "react";
|
|
2149
2271
|
|
|
2150
2272
|
// src/elements/slideshow/position.ts
|
|
2151
2273
|
var slidePositionMap = {
|
|
@@ -2200,8 +2322,8 @@ var Slide = forwardRef12((props, ref) => {
|
|
|
2200
2322
|
children,
|
|
2201
2323
|
...rest
|
|
2202
2324
|
} = props;
|
|
2203
|
-
return /* @__PURE__ */
|
|
2204
|
-
|
|
2325
|
+
return /* @__PURE__ */ React28.createElement("div", { className: "keen-slider__slide" }, /* @__PURE__ */ React28.createElement(
|
|
2326
|
+
Background,
|
|
2205
2327
|
{
|
|
2206
2328
|
backgroundColor,
|
|
2207
2329
|
backgroundImage,
|
|
@@ -2209,16 +2331,16 @@ var Slide = forwardRef12((props, ref) => {
|
|
|
2209
2331
|
backgroundPosition,
|
|
2210
2332
|
className: "slide-background"
|
|
2211
2333
|
}
|
|
2212
|
-
), /* @__PURE__ */
|
|
2213
|
-
|
|
2334
|
+
), /* @__PURE__ */ React28.createElement(
|
|
2335
|
+
Overlay,
|
|
2214
2336
|
{
|
|
2215
2337
|
enableOverlay,
|
|
2216
2338
|
overlayOpacity,
|
|
2217
2339
|
className: "slide-overlay"
|
|
2218
2340
|
}
|
|
2219
|
-
), /* @__PURE__ */
|
|
2341
|
+
), /* @__PURE__ */ React28.createElement("div", { ref, style: slidePositionMap[contentPosition], ...rest }, children?.length ? children : /* @__PURE__ */ React28.createElement(placeholder_default, { element: "Slide", className: "wv-slide-placeholder" }, "Drag and drop elements here")));
|
|
2220
2342
|
});
|
|
2221
|
-
var
|
|
2343
|
+
var css12 = {
|
|
2222
2344
|
"@desktop": {
|
|
2223
2345
|
position: "relative",
|
|
2224
2346
|
height: "100%",
|
|
@@ -2268,7 +2390,7 @@ var Elements = {
|
|
|
2268
2390
|
Instagram: {
|
|
2269
2391
|
Component: instagram_default,
|
|
2270
2392
|
type: "instagram",
|
|
2271
|
-
defaultCss:
|
|
2393
|
+
defaultCss: css10,
|
|
2272
2394
|
permanentCss
|
|
2273
2395
|
},
|
|
2274
2396
|
Layout: {
|
|
@@ -2286,45 +2408,25 @@ var Elements = {
|
|
|
2286
2408
|
type: "text",
|
|
2287
2409
|
defaultCss: css7
|
|
2288
2410
|
},
|
|
2411
|
+
ScrollingText: {
|
|
2412
|
+
Component: scrolling_text_default,
|
|
2413
|
+
type: "scrolling-text",
|
|
2414
|
+
defaultCss: css8
|
|
2415
|
+
},
|
|
2289
2416
|
Video: {
|
|
2290
2417
|
Component: video_default,
|
|
2291
2418
|
type: "video",
|
|
2292
|
-
defaultCss:
|
|
2419
|
+
defaultCss: css9
|
|
2293
2420
|
},
|
|
2294
|
-
// Accordion: {
|
|
2295
|
-
// Component: Accordion.default,
|
|
2296
|
-
// type: 'accordion',
|
|
2297
|
-
// defaultCss: Accordion.css,
|
|
2298
|
-
// },
|
|
2299
|
-
// AccordionWrapper: {
|
|
2300
|
-
// Component: AccordionWrapper.default,
|
|
2301
|
-
// type: 'accordion.wrapper',
|
|
2302
|
-
// defaultCss: AccordionWrapper.css,
|
|
2303
|
-
// },
|
|
2304
|
-
// AccordionContent: {
|
|
2305
|
-
// Component: AccordionContent.default,
|
|
2306
|
-
// type: 'accordion.content',
|
|
2307
|
-
// defaultCss: AccordionContent.css,
|
|
2308
|
-
// },
|
|
2309
|
-
// Tab: {
|
|
2310
|
-
// Component: Tab.default,
|
|
2311
|
-
// type: 'tab',
|
|
2312
|
-
// defaultCss: Tab.css,
|
|
2313
|
-
// },
|
|
2314
|
-
// TabContent: {
|
|
2315
|
-
// Component: TabContent.default,
|
|
2316
|
-
// type: 'tab.content',
|
|
2317
|
-
// defaultCss: TabContent.css,
|
|
2318
|
-
// },
|
|
2319
2421
|
Slideshow: {
|
|
2320
2422
|
Component: slideshow_default,
|
|
2321
2423
|
type: "slideshow",
|
|
2322
|
-
defaultCss:
|
|
2424
|
+
defaultCss: css11
|
|
2323
2425
|
},
|
|
2324
2426
|
Slide: {
|
|
2325
2427
|
Component: slide_default,
|
|
2326
2428
|
type: "slide",
|
|
2327
|
-
defaultCss:
|
|
2429
|
+
defaultCss: css12
|
|
2328
2430
|
}
|
|
2329
2431
|
};
|
|
2330
2432
|
|
|
@@ -2372,9 +2474,9 @@ var WeaverseContextConsumer = WeaverseContext.Consumer;
|
|
|
2372
2474
|
|
|
2373
2475
|
// src/renderer.tsx
|
|
2374
2476
|
import { isBrowser as isBrowser2 } from "@weaverse/core";
|
|
2375
|
-
import
|
|
2477
|
+
import React29, { useContext as useContext6, useEffect as useEffect5, useRef, useState as useState5 } from "react";
|
|
2376
2478
|
var WeaverseRoot = ({ context }) => {
|
|
2377
|
-
let [, setData] =
|
|
2479
|
+
let [, setData] = useState5(context.data);
|
|
2378
2480
|
let rootRef = useRef();
|
|
2379
2481
|
let renderRoot = () => setData({});
|
|
2380
2482
|
useEffect5(() => {
|
|
@@ -2388,23 +2490,23 @@ var WeaverseRoot = ({ context }) => {
|
|
|
2388
2490
|
let eventHandlers = context?.studioBridge?.eventHandlers || {};
|
|
2389
2491
|
let themeClass = context.stitchesInstance.theme.className;
|
|
2390
2492
|
if (context.data?.rootId) {
|
|
2391
|
-
return /* @__PURE__ */
|
|
2493
|
+
return /* @__PURE__ */ React29.createElement(
|
|
2392
2494
|
"div",
|
|
2393
2495
|
{
|
|
2394
2496
|
className: `weaverse-content-root ${themeClass}`,
|
|
2395
2497
|
...eventHandlers,
|
|
2396
2498
|
ref: rootRef
|
|
2397
2499
|
},
|
|
2398
|
-
/* @__PURE__ */
|
|
2399
|
-
context.platformType === "react-ssr" ? /* @__PURE__ */
|
|
2500
|
+
/* @__PURE__ */ React29.createElement(WeaverseContextProvider, { value: context }, /* @__PURE__ */ React29.createElement(ItemInstance, { id: context.data.rootId })),
|
|
2501
|
+
context.platformType === "react-ssr" ? /* @__PURE__ */ React29.createElement(StitchesSSR, { stitchesInstance: context.stitchesInstance }) : null
|
|
2400
2502
|
);
|
|
2401
2503
|
}
|
|
2402
2504
|
return null;
|
|
2403
2505
|
};
|
|
2404
2506
|
var ItemComponent = ({ instance }) => {
|
|
2405
2507
|
let { stitchesInstance, elementInstances } = useContext6(WeaverseContext);
|
|
2406
|
-
let [data, setData] =
|
|
2407
|
-
let { id, type, childIds = [], css:
|
|
2508
|
+
let [data, setData] = useState5(instance.data);
|
|
2509
|
+
let { id, type, childIds = [], css: css13, className, ...rest } = data;
|
|
2408
2510
|
useEffect5(() => {
|
|
2409
2511
|
let render = (data2) => setData({ ...data2 });
|
|
2410
2512
|
instance.subscribe(render);
|
|
@@ -2421,7 +2523,7 @@ var ItemComponent = ({ instance }) => {
|
|
|
2421
2523
|
if (Component.$$typeof === Symbol.for("react.forward_ref")) {
|
|
2422
2524
|
rest.ref = instance.ref;
|
|
2423
2525
|
}
|
|
2424
|
-
return /* @__PURE__ */
|
|
2526
|
+
return /* @__PURE__ */ React29.createElement(
|
|
2425
2527
|
Component,
|
|
2426
2528
|
{
|
|
2427
2529
|
key: id,
|
|
@@ -2430,7 +2532,7 @@ var ItemComponent = ({ instance }) => {
|
|
|
2430
2532
|
className: generateItemClassName(instance, stitchesInstance),
|
|
2431
2533
|
...rest
|
|
2432
2534
|
},
|
|
2433
|
-
childIds.map((id2) => /* @__PURE__ */
|
|
2535
|
+
childIds.map((id2) => /* @__PURE__ */ React29.createElement(ItemInstance, { key: id2, id: id2 }))
|
|
2434
2536
|
);
|
|
2435
2537
|
} else {
|
|
2436
2538
|
console.log(`Unknown element: ${type}`);
|
|
@@ -2439,7 +2541,7 @@ var ItemComponent = ({ instance }) => {
|
|
|
2439
2541
|
};
|
|
2440
2542
|
var StitchesSSR = ({ stitchesInstance }) => {
|
|
2441
2543
|
const stitchesCss2 = stitchesInstance.getCssText();
|
|
2442
|
-
return /* @__PURE__ */
|
|
2544
|
+
return /* @__PURE__ */ React29.createElement(
|
|
2443
2545
|
"style",
|
|
2444
2546
|
{
|
|
2445
2547
|
id: "stitches",
|
|
@@ -2454,9 +2556,9 @@ var ItemInstance = ({ id }) => {
|
|
|
2454
2556
|
let { itemInstances } = context;
|
|
2455
2557
|
let instance = itemInstances.get(id);
|
|
2456
2558
|
if (!instance) {
|
|
2457
|
-
return /* @__PURE__ */
|
|
2559
|
+
return /* @__PURE__ */ React29.createElement("div", { style: { display: "none" } }, "Item instance ", id, " not found");
|
|
2458
2560
|
}
|
|
2459
|
-
return /* @__PURE__ */
|
|
2561
|
+
return /* @__PURE__ */ React29.createElement(ItemComponent, { key: id, instance });
|
|
2460
2562
|
};
|
|
2461
2563
|
export {
|
|
2462
2564
|
Components,
|