@weaverse/react 0.7.65 → 0.7.66
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 +7 -0
- package/dist/index.js +130 -13
- package/dist/index.mjs +130 -13
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -22,6 +22,8 @@ declare let ArrowRight: (props: HTMLAttributes<SVGElement>) => JSX.Element;
|
|
|
22
22
|
declare let Image: (props: HTMLAttributes<SVGElement>) => JSX.Element;
|
|
23
23
|
declare let ShoppingCart: (props: HTMLAttributes<SVGElement>) => JSX.Element;
|
|
24
24
|
declare let Storefront: (props: HTMLAttributes<SVGElement>) => JSX.Element;
|
|
25
|
+
declare let Package: (props: HTMLAttributes<SVGElement>) => JSX.Element;
|
|
26
|
+
declare let Backpack: (props: HTMLAttributes<SVGElement>) => JSX.Element;
|
|
25
27
|
declare let Eye: (props: HTMLAttributes<SVGElement>) => JSX.Element;
|
|
26
28
|
|
|
27
29
|
declare const PhosphorIcons_CircleNotch: typeof CircleNotch;
|
|
@@ -33,6 +35,8 @@ declare const PhosphorIcons_ArrowRight: typeof ArrowRight;
|
|
|
33
35
|
declare const PhosphorIcons_Image: typeof Image;
|
|
34
36
|
declare const PhosphorIcons_ShoppingCart: typeof ShoppingCart;
|
|
35
37
|
declare const PhosphorIcons_Storefront: typeof Storefront;
|
|
38
|
+
declare const PhosphorIcons_Package: typeof Package;
|
|
39
|
+
declare const PhosphorIcons_Backpack: typeof Backpack;
|
|
36
40
|
declare const PhosphorIcons_Eye: typeof Eye;
|
|
37
41
|
declare namespace PhosphorIcons {
|
|
38
42
|
export {
|
|
@@ -45,6 +49,8 @@ declare namespace PhosphorIcons {
|
|
|
45
49
|
PhosphorIcons_Image as Image,
|
|
46
50
|
PhosphorIcons_ShoppingCart as ShoppingCart,
|
|
47
51
|
PhosphorIcons_Storefront as Storefront,
|
|
52
|
+
PhosphorIcons_Package as Package,
|
|
53
|
+
PhosphorIcons_Backpack as Backpack,
|
|
48
54
|
PhosphorIcons_Eye as Eye,
|
|
49
55
|
};
|
|
50
56
|
}
|
|
@@ -65,6 +71,7 @@ interface SliderProps {
|
|
|
65
71
|
className?: string;
|
|
66
72
|
gap?: number;
|
|
67
73
|
arrowOffset: number;
|
|
74
|
+
slidesPerView: number;
|
|
68
75
|
}
|
|
69
76
|
interface SliderArrowsProps {
|
|
70
77
|
currentSlide: number;
|
package/dist/index.js
CHANGED
|
@@ -296,16 +296,19 @@ var Image = import_react5.default.forwardRef(
|
|
|
296
296
|
"data-blink-src": src
|
|
297
297
|
});
|
|
298
298
|
if (clickAction === "openLink" && linkTo) {
|
|
299
|
-
let target = openLinkInNewTab ? "_blank" : "_self";
|
|
300
299
|
content = /* @__PURE__ */ import_react5.default.createElement("a", {
|
|
301
300
|
href: linkTo,
|
|
302
|
-
target
|
|
303
|
-
|
|
301
|
+
target: openLinkInNewTab ? "_blank" : "_self",
|
|
302
|
+
rel: "noreferrer"
|
|
303
|
+
}, /* @__PURE__ */ import_react5.default.createElement("img", {
|
|
304
|
+
alt,
|
|
305
|
+
"data-blink-src": src
|
|
306
|
+
}));
|
|
304
307
|
}
|
|
305
308
|
return /* @__PURE__ */ import_react5.default.createElement("div", {
|
|
306
309
|
ref,
|
|
307
|
-
|
|
308
|
-
|
|
310
|
+
style,
|
|
311
|
+
...rest
|
|
309
312
|
}, content);
|
|
310
313
|
}
|
|
311
314
|
);
|
|
@@ -313,6 +316,8 @@ var css4 = {
|
|
|
313
316
|
"@desktop": {
|
|
314
317
|
display: "flex",
|
|
315
318
|
overflow: "hidden",
|
|
319
|
+
justifyContent: "center",
|
|
320
|
+
alignItems: "center",
|
|
316
321
|
img: {
|
|
317
322
|
width: "100%",
|
|
318
323
|
height: "100%",
|
|
@@ -322,8 +327,8 @@ var css4 = {
|
|
|
322
327
|
}
|
|
323
328
|
};
|
|
324
329
|
Image.defaultProps = {
|
|
325
|
-
src: "https://ucarecdn.com/
|
|
326
|
-
alt: "
|
|
330
|
+
src: "https://ucarecdn.com/dac0f414-2b1f-46df-99ce-41554f0f653a/",
|
|
331
|
+
alt: "Alternative information",
|
|
327
332
|
objectFit: "cover",
|
|
328
333
|
objectPosition: "center center",
|
|
329
334
|
clickAction: "none",
|
|
@@ -675,10 +680,12 @@ var phosphor_exports = {};
|
|
|
675
680
|
__export(phosphor_exports, {
|
|
676
681
|
ArrowLeft: () => ArrowLeft,
|
|
677
682
|
ArrowRight: () => ArrowRight,
|
|
683
|
+
Backpack: () => Backpack,
|
|
678
684
|
CircleNotch: () => CircleNotch,
|
|
679
685
|
Eye: () => Eye,
|
|
680
686
|
Image: () => Image2,
|
|
681
687
|
Minus: () => Minus,
|
|
688
|
+
Package: () => Package,
|
|
682
689
|
Plus: () => Plus,
|
|
683
690
|
ShoppingCart: () => ShoppingCart,
|
|
684
691
|
Storefront: () => Storefront,
|
|
@@ -901,35 +908,145 @@ var Storefront = (props) => {
|
|
|
901
908
|
stroke: "currentColor",
|
|
902
909
|
strokeLinecap: "round",
|
|
903
910
|
strokeLinejoin: "round",
|
|
904
|
-
strokeWidth: "
|
|
911
|
+
strokeWidth: "12"
|
|
905
912
|
}), /* @__PURE__ */ import_react14.default.createElement("path", {
|
|
906
913
|
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",
|
|
907
914
|
fill: "none",
|
|
908
915
|
stroke: "currentColor",
|
|
909
916
|
strokeLinecap: "round",
|
|
910
917
|
strokeLinejoin: "round",
|
|
911
|
-
strokeWidth: "
|
|
918
|
+
strokeWidth: "12"
|
|
912
919
|
}), /* @__PURE__ */ import_react14.default.createElement("path", {
|
|
913
920
|
d: "M96,96v16a32,32,0,0,1-64,0V96",
|
|
914
921
|
fill: "none",
|
|
915
922
|
stroke: "currentColor",
|
|
916
923
|
strokeLinecap: "round",
|
|
917
924
|
strokeLinejoin: "round",
|
|
918
|
-
strokeWidth: "
|
|
925
|
+
strokeWidth: "12"
|
|
919
926
|
}), /* @__PURE__ */ import_react14.default.createElement("path", {
|
|
920
927
|
d: "M160,96v16a32,32,0,0,1-64,0V96",
|
|
921
928
|
fill: "none",
|
|
922
929
|
stroke: "currentColor",
|
|
923
930
|
strokeLinecap: "round",
|
|
924
931
|
strokeLinejoin: "round",
|
|
925
|
-
strokeWidth: "
|
|
932
|
+
strokeWidth: "12"
|
|
926
933
|
}), /* @__PURE__ */ import_react14.default.createElement("path", {
|
|
927
934
|
d: "M224,96v16a32,32,0,0,1-64,0V96",
|
|
928
935
|
fill: "none",
|
|
929
936
|
stroke: "currentColor",
|
|
930
937
|
strokeLinecap: "round",
|
|
931
938
|
strokeLinejoin: "round",
|
|
939
|
+
strokeWidth: "12"
|
|
940
|
+
}));
|
|
941
|
+
};
|
|
942
|
+
var Package = (props) => {
|
|
943
|
+
return /* @__PURE__ */ import_react14.default.createElement("svg", {
|
|
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
|
+
}, /* @__PURE__ */ import_react14.default.createElement("rect", {
|
|
951
|
+
width: "256",
|
|
952
|
+
height: "256",
|
|
953
|
+
fill: "none"
|
|
954
|
+
}), /* @__PURE__ */ import_react14.default.createElement("path", {
|
|
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
|
+
}), /* @__PURE__ */ import_react14.default.createElement("polyline", {
|
|
962
|
+
points: "177 152.5 177 100.5 80 47",
|
|
963
|
+
fill: "none",
|
|
964
|
+
stroke: "currentColor",
|
|
965
|
+
strokeLinecap: "round",
|
|
966
|
+
strokeLinejoin: "round",
|
|
932
967
|
strokeWidth: "8"
|
|
968
|
+
}), /* @__PURE__ */ import_react14.default.createElement("polyline", {
|
|
969
|
+
points: "222.9 74.6 128.9 128 33.1 74.6",
|
|
970
|
+
fill: "none",
|
|
971
|
+
stroke: "currentColor",
|
|
972
|
+
strokeLinecap: "round",
|
|
973
|
+
strokeLinejoin: "round",
|
|
974
|
+
strokeWidth: "8"
|
|
975
|
+
}), /* @__PURE__ */ import_react14.default.createElement("line", {
|
|
976
|
+
x1: "128.9",
|
|
977
|
+
y1: "128",
|
|
978
|
+
x2: "128",
|
|
979
|
+
y2: "234.8",
|
|
980
|
+
fill: "none",
|
|
981
|
+
stroke: "currentColor",
|
|
982
|
+
strokeLinecap: "round",
|
|
983
|
+
strokeLinejoin: "round",
|
|
984
|
+
strokeWidth: "8"
|
|
985
|
+
}));
|
|
986
|
+
};
|
|
987
|
+
var Backpack = (props) => {
|
|
988
|
+
return /* @__PURE__ */ import_react14.default.createElement("svg", {
|
|
989
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
990
|
+
width: "192",
|
|
991
|
+
height: "192",
|
|
992
|
+
fill: "currentColor",
|
|
993
|
+
viewBox: "0 0 256 256",
|
|
994
|
+
...props
|
|
995
|
+
}, /* @__PURE__ */ import_react14.default.createElement("rect", {
|
|
996
|
+
width: "256",
|
|
997
|
+
height: "256",
|
|
998
|
+
fill: "none"
|
|
999
|
+
}), /* @__PURE__ */ import_react14.default.createElement("path", {
|
|
1000
|
+
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",
|
|
1001
|
+
fill: "none",
|
|
1002
|
+
stroke: "currentColor",
|
|
1003
|
+
strokeLinecap: "round",
|
|
1004
|
+
strokeLinejoin: "round",
|
|
1005
|
+
strokeWidth: "12"
|
|
1006
|
+
}), /* @__PURE__ */ import_react14.default.createElement("path", {
|
|
1007
|
+
d: "M80,224V152a16,16,0,0,1,16-16h64a16,16,0,0,1,16,16v72",
|
|
1008
|
+
fill: "none",
|
|
1009
|
+
stroke: "currentColor",
|
|
1010
|
+
strokeLinecap: "round",
|
|
1011
|
+
strokeLinejoin: "round",
|
|
1012
|
+
strokeWidth: "12"
|
|
1013
|
+
}), /* @__PURE__ */ import_react14.default.createElement("path", {
|
|
1014
|
+
d: "M96,48V32a16,16,0,0,1,16-16h32a16,16,0,0,1,16,16V48",
|
|
1015
|
+
fill: "none",
|
|
1016
|
+
stroke: "currentColor",
|
|
1017
|
+
strokeLinecap: "round",
|
|
1018
|
+
strokeLinejoin: "round",
|
|
1019
|
+
strokeWidth: "12"
|
|
1020
|
+
}), /* @__PURE__ */ import_react14.default.createElement("line", {
|
|
1021
|
+
x1: "112",
|
|
1022
|
+
y1: "88",
|
|
1023
|
+
x2: "144",
|
|
1024
|
+
y2: "88",
|
|
1025
|
+
fill: "none",
|
|
1026
|
+
stroke: "currentColor",
|
|
1027
|
+
strokeLinecap: "round",
|
|
1028
|
+
strokeLinejoin: "round",
|
|
1029
|
+
strokeWidth: "12"
|
|
1030
|
+
}), /* @__PURE__ */ import_react14.default.createElement("line", {
|
|
1031
|
+
x1: "80",
|
|
1032
|
+
y1: "168",
|
|
1033
|
+
x2: "176",
|
|
1034
|
+
y2: "168",
|
|
1035
|
+
fill: "none",
|
|
1036
|
+
stroke: "currentColor",
|
|
1037
|
+
strokeLinecap: "round",
|
|
1038
|
+
strokeLinejoin: "round",
|
|
1039
|
+
strokeWidth: "12"
|
|
1040
|
+
}), /* @__PURE__ */ import_react14.default.createElement("line", {
|
|
1041
|
+
x1: "144",
|
|
1042
|
+
y1: "168",
|
|
1043
|
+
x2: "144",
|
|
1044
|
+
y2: "184",
|
|
1045
|
+
fill: "none",
|
|
1046
|
+
stroke: "currentColor",
|
|
1047
|
+
strokeLinecap: "round",
|
|
1048
|
+
strokeLinejoin: "round",
|
|
1049
|
+
strokeWidth: "12"
|
|
933
1050
|
}));
|
|
934
1051
|
};
|
|
935
1052
|
var Eye = (props) => {
|
|
@@ -1820,12 +1937,12 @@ var import_clsx6 = __toESM(require("clsx"));
|
|
|
1820
1937
|
var import_react36 = require("keen-slider/react");
|
|
1821
1938
|
var import_react37 = __toESM(require("react"));
|
|
1822
1939
|
function Slider(props) {
|
|
1823
|
-
let { children, className, gap, arrowOffset } = props;
|
|
1940
|
+
let { children, className, gap, slidesPerView, arrowOffset } = props;
|
|
1824
1941
|
let [currentSlide, setCurrentSlide] = (0, import_react37.useState)(0);
|
|
1825
1942
|
let [created, setCreated] = (0, import_react37.useState)(false);
|
|
1826
1943
|
let [ref, instanceRef] = (0, import_react36.useKeenSlider)(
|
|
1827
1944
|
{
|
|
1828
|
-
slides: { perView:
|
|
1945
|
+
slides: { perView: slidesPerView, spacing: gap },
|
|
1829
1946
|
breakpoints: {
|
|
1830
1947
|
"(max-width: 1024px)": {
|
|
1831
1948
|
slides: { perView: 3, spacing: gap }
|
package/dist/index.mjs
CHANGED
|
@@ -264,16 +264,19 @@ var Image = React5.forwardRef(
|
|
|
264
264
|
"data-blink-src": src
|
|
265
265
|
});
|
|
266
266
|
if (clickAction === "openLink" && linkTo) {
|
|
267
|
-
let target = openLinkInNewTab ? "_blank" : "_self";
|
|
268
267
|
content = /* @__PURE__ */ React5.createElement("a", {
|
|
269
268
|
href: linkTo,
|
|
270
|
-
target
|
|
271
|
-
|
|
269
|
+
target: openLinkInNewTab ? "_blank" : "_self",
|
|
270
|
+
rel: "noreferrer"
|
|
271
|
+
}, /* @__PURE__ */ React5.createElement("img", {
|
|
272
|
+
alt,
|
|
273
|
+
"data-blink-src": src
|
|
274
|
+
}));
|
|
272
275
|
}
|
|
273
276
|
return /* @__PURE__ */ React5.createElement("div", {
|
|
274
277
|
ref,
|
|
275
|
-
|
|
276
|
-
|
|
278
|
+
style,
|
|
279
|
+
...rest
|
|
277
280
|
}, content);
|
|
278
281
|
}
|
|
279
282
|
);
|
|
@@ -281,6 +284,8 @@ var css4 = {
|
|
|
281
284
|
"@desktop": {
|
|
282
285
|
display: "flex",
|
|
283
286
|
overflow: "hidden",
|
|
287
|
+
justifyContent: "center",
|
|
288
|
+
alignItems: "center",
|
|
284
289
|
img: {
|
|
285
290
|
width: "100%",
|
|
286
291
|
height: "100%",
|
|
@@ -290,8 +295,8 @@ var css4 = {
|
|
|
290
295
|
}
|
|
291
296
|
};
|
|
292
297
|
Image.defaultProps = {
|
|
293
|
-
src: "https://ucarecdn.com/
|
|
294
|
-
alt: "
|
|
298
|
+
src: "https://ucarecdn.com/dac0f414-2b1f-46df-99ce-41554f0f653a/",
|
|
299
|
+
alt: "Alternative information",
|
|
295
300
|
objectFit: "cover",
|
|
296
301
|
objectPosition: "center center",
|
|
297
302
|
clickAction: "none",
|
|
@@ -643,10 +648,12 @@ var phosphor_exports = {};
|
|
|
643
648
|
__export(phosphor_exports, {
|
|
644
649
|
ArrowLeft: () => ArrowLeft,
|
|
645
650
|
ArrowRight: () => ArrowRight,
|
|
651
|
+
Backpack: () => Backpack,
|
|
646
652
|
CircleNotch: () => CircleNotch,
|
|
647
653
|
Eye: () => Eye,
|
|
648
654
|
Image: () => Image2,
|
|
649
655
|
Minus: () => Minus,
|
|
656
|
+
Package: () => Package,
|
|
650
657
|
Plus: () => Plus,
|
|
651
658
|
ShoppingCart: () => ShoppingCart,
|
|
652
659
|
Storefront: () => Storefront,
|
|
@@ -869,35 +876,145 @@ var Storefront = (props) => {
|
|
|
869
876
|
stroke: "currentColor",
|
|
870
877
|
strokeLinecap: "round",
|
|
871
878
|
strokeLinejoin: "round",
|
|
872
|
-
strokeWidth: "
|
|
879
|
+
strokeWidth: "12"
|
|
873
880
|
}), /* @__PURE__ */ React15.createElement("path", {
|
|
874
881
|
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",
|
|
875
882
|
fill: "none",
|
|
876
883
|
stroke: "currentColor",
|
|
877
884
|
strokeLinecap: "round",
|
|
878
885
|
strokeLinejoin: "round",
|
|
879
|
-
strokeWidth: "
|
|
886
|
+
strokeWidth: "12"
|
|
880
887
|
}), /* @__PURE__ */ React15.createElement("path", {
|
|
881
888
|
d: "M96,96v16a32,32,0,0,1-64,0V96",
|
|
882
889
|
fill: "none",
|
|
883
890
|
stroke: "currentColor",
|
|
884
891
|
strokeLinecap: "round",
|
|
885
892
|
strokeLinejoin: "round",
|
|
886
|
-
strokeWidth: "
|
|
893
|
+
strokeWidth: "12"
|
|
887
894
|
}), /* @__PURE__ */ React15.createElement("path", {
|
|
888
895
|
d: "M160,96v16a32,32,0,0,1-64,0V96",
|
|
889
896
|
fill: "none",
|
|
890
897
|
stroke: "currentColor",
|
|
891
898
|
strokeLinecap: "round",
|
|
892
899
|
strokeLinejoin: "round",
|
|
893
|
-
strokeWidth: "
|
|
900
|
+
strokeWidth: "12"
|
|
894
901
|
}), /* @__PURE__ */ React15.createElement("path", {
|
|
895
902
|
d: "M224,96v16a32,32,0,0,1-64,0V96",
|
|
896
903
|
fill: "none",
|
|
897
904
|
stroke: "currentColor",
|
|
898
905
|
strokeLinecap: "round",
|
|
899
906
|
strokeLinejoin: "round",
|
|
907
|
+
strokeWidth: "12"
|
|
908
|
+
}));
|
|
909
|
+
};
|
|
910
|
+
var Package = (props) => {
|
|
911
|
+
return /* @__PURE__ */ React15.createElement("svg", {
|
|
912
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
913
|
+
width: "192",
|
|
914
|
+
height: "192",
|
|
915
|
+
fill: "currentColor",
|
|
916
|
+
viewBox: "0 0 256 256",
|
|
917
|
+
...props
|
|
918
|
+
}, /* @__PURE__ */ React15.createElement("rect", {
|
|
919
|
+
width: "256",
|
|
920
|
+
height: "256",
|
|
921
|
+
fill: "none"
|
|
922
|
+
}), /* @__PURE__ */ React15.createElement("path", {
|
|
923
|
+
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",
|
|
924
|
+
fill: "none",
|
|
925
|
+
stroke: "currentColor",
|
|
926
|
+
strokeLinecap: "round",
|
|
927
|
+
strokeLinejoin: "round",
|
|
928
|
+
strokeWidth: "8"
|
|
929
|
+
}), /* @__PURE__ */ React15.createElement("polyline", {
|
|
930
|
+
points: "177 152.5 177 100.5 80 47",
|
|
931
|
+
fill: "none",
|
|
932
|
+
stroke: "currentColor",
|
|
933
|
+
strokeLinecap: "round",
|
|
934
|
+
strokeLinejoin: "round",
|
|
900
935
|
strokeWidth: "8"
|
|
936
|
+
}), /* @__PURE__ */ React15.createElement("polyline", {
|
|
937
|
+
points: "222.9 74.6 128.9 128 33.1 74.6",
|
|
938
|
+
fill: "none",
|
|
939
|
+
stroke: "currentColor",
|
|
940
|
+
strokeLinecap: "round",
|
|
941
|
+
strokeLinejoin: "round",
|
|
942
|
+
strokeWidth: "8"
|
|
943
|
+
}), /* @__PURE__ */ React15.createElement("line", {
|
|
944
|
+
x1: "128.9",
|
|
945
|
+
y1: "128",
|
|
946
|
+
x2: "128",
|
|
947
|
+
y2: "234.8",
|
|
948
|
+
fill: "none",
|
|
949
|
+
stroke: "currentColor",
|
|
950
|
+
strokeLinecap: "round",
|
|
951
|
+
strokeLinejoin: "round",
|
|
952
|
+
strokeWidth: "8"
|
|
953
|
+
}));
|
|
954
|
+
};
|
|
955
|
+
var Backpack = (props) => {
|
|
956
|
+
return /* @__PURE__ */ React15.createElement("svg", {
|
|
957
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
958
|
+
width: "192",
|
|
959
|
+
height: "192",
|
|
960
|
+
fill: "currentColor",
|
|
961
|
+
viewBox: "0 0 256 256",
|
|
962
|
+
...props
|
|
963
|
+
}, /* @__PURE__ */ React15.createElement("rect", {
|
|
964
|
+
width: "256",
|
|
965
|
+
height: "256",
|
|
966
|
+
fill: "none"
|
|
967
|
+
}), /* @__PURE__ */ React15.createElement("path", {
|
|
968
|
+
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",
|
|
969
|
+
fill: "none",
|
|
970
|
+
stroke: "currentColor",
|
|
971
|
+
strokeLinecap: "round",
|
|
972
|
+
strokeLinejoin: "round",
|
|
973
|
+
strokeWidth: "12"
|
|
974
|
+
}), /* @__PURE__ */ React15.createElement("path", {
|
|
975
|
+
d: "M80,224V152a16,16,0,0,1,16-16h64a16,16,0,0,1,16,16v72",
|
|
976
|
+
fill: "none",
|
|
977
|
+
stroke: "currentColor",
|
|
978
|
+
strokeLinecap: "round",
|
|
979
|
+
strokeLinejoin: "round",
|
|
980
|
+
strokeWidth: "12"
|
|
981
|
+
}), /* @__PURE__ */ React15.createElement("path", {
|
|
982
|
+
d: "M96,48V32a16,16,0,0,1,16-16h32a16,16,0,0,1,16,16V48",
|
|
983
|
+
fill: "none",
|
|
984
|
+
stroke: "currentColor",
|
|
985
|
+
strokeLinecap: "round",
|
|
986
|
+
strokeLinejoin: "round",
|
|
987
|
+
strokeWidth: "12"
|
|
988
|
+
}), /* @__PURE__ */ React15.createElement("line", {
|
|
989
|
+
x1: "112",
|
|
990
|
+
y1: "88",
|
|
991
|
+
x2: "144",
|
|
992
|
+
y2: "88",
|
|
993
|
+
fill: "none",
|
|
994
|
+
stroke: "currentColor",
|
|
995
|
+
strokeLinecap: "round",
|
|
996
|
+
strokeLinejoin: "round",
|
|
997
|
+
strokeWidth: "12"
|
|
998
|
+
}), /* @__PURE__ */ React15.createElement("line", {
|
|
999
|
+
x1: "80",
|
|
1000
|
+
y1: "168",
|
|
1001
|
+
x2: "176",
|
|
1002
|
+
y2: "168",
|
|
1003
|
+
fill: "none",
|
|
1004
|
+
stroke: "currentColor",
|
|
1005
|
+
strokeLinecap: "round",
|
|
1006
|
+
strokeLinejoin: "round",
|
|
1007
|
+
strokeWidth: "12"
|
|
1008
|
+
}), /* @__PURE__ */ React15.createElement("line", {
|
|
1009
|
+
x1: "144",
|
|
1010
|
+
y1: "168",
|
|
1011
|
+
x2: "144",
|
|
1012
|
+
y2: "184",
|
|
1013
|
+
fill: "none",
|
|
1014
|
+
stroke: "currentColor",
|
|
1015
|
+
strokeLinecap: "round",
|
|
1016
|
+
strokeLinejoin: "round",
|
|
1017
|
+
strokeWidth: "12"
|
|
901
1018
|
}));
|
|
902
1019
|
};
|
|
903
1020
|
var Eye = (props) => {
|
|
@@ -1788,12 +1905,12 @@ import clsx6 from "clsx";
|
|
|
1788
1905
|
import { useKeenSlider as useKeenSlider2 } from "keen-slider/react";
|
|
1789
1906
|
import React28, { useState as useState2 } from "react";
|
|
1790
1907
|
function Slider(props) {
|
|
1791
|
-
let { children, className, gap, arrowOffset } = props;
|
|
1908
|
+
let { children, className, gap, slidesPerView, arrowOffset } = props;
|
|
1792
1909
|
let [currentSlide, setCurrentSlide] = useState2(0);
|
|
1793
1910
|
let [created, setCreated] = useState2(false);
|
|
1794
1911
|
let [ref, instanceRef] = useKeenSlider2(
|
|
1795
1912
|
{
|
|
1796
|
-
slides: { perView:
|
|
1913
|
+
slides: { perView: slidesPerView, spacing: gap },
|
|
1797
1914
|
breakpoints: {
|
|
1798
1915
|
"(max-width: 1024px)": {
|
|
1799
1916
|
slides: { perView: 3, spacing: gap }
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.7.
|
|
2
|
+
"version": "0.7.66",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@radix-ui/react-dialog": "^1.0.2",
|
|
36
36
|
"@stitches/react": "^1.2.8",
|
|
37
|
-
"@weaverse/core": "0.7.
|
|
37
|
+
"@weaverse/core": "0.7.66",
|
|
38
38
|
"clsx": "^1.2.1",
|
|
39
39
|
"keen-slider": "^6.8.5"
|
|
40
40
|
}
|