mainstack-design-system 0.3.4 → 0.3.5
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.
|
@@ -64874,9 +64874,11 @@ const t6e = ({
|
|
|
64874
64874
|
handleChangeCoverImage: d,
|
|
64875
64875
|
multiImagePopover: c,
|
|
64876
64876
|
accept: m,
|
|
64877
|
-
|
|
64877
|
+
canUploadMultiple: p = !0,
|
|
64878
|
+
uploadText: v,
|
|
64879
|
+
...g
|
|
64878
64880
|
}) => {
|
|
64879
|
-
const
|
|
64881
|
+
const y = Lt(null), [b] = Cb("(max-width: 767px)");
|
|
64880
64882
|
return /* @__PURE__ */ Q(tr, { children: [
|
|
64881
64883
|
/* @__PURE__ */ f(pb, { templateColumns: "repeat(5, 1fr)", gap: "16px", children: a.length > 0 ? /* @__PURE__ */ f(Kg, { colSpan: 5, children: /* @__PURE__ */ f(
|
|
64882
64884
|
n1,
|
|
@@ -64894,7 +64896,7 @@ const t6e = ({
|
|
|
64894
64896
|
p: "24px",
|
|
64895
64897
|
aspectRatio: 764 / 574,
|
|
64896
64898
|
position: "relative",
|
|
64897
|
-
...
|
|
64899
|
+
...g,
|
|
64898
64900
|
children: e ? /* @__PURE__ */ f(
|
|
64899
64901
|
$i,
|
|
64900
64902
|
{
|
|
@@ -64930,9 +64932,9 @@ const t6e = ({
|
|
|
64930
64932
|
/* @__PURE__ */ f(mf, {}),
|
|
64931
64933
|
/* @__PURE__ */ f(Xs, { size: "6xs", lineHeight: "20px", children: "Change image" })
|
|
64932
64934
|
] }),
|
|
64933
|
-
onClick: (
|
|
64934
|
-
var
|
|
64935
|
-
|
|
64935
|
+
onClick: (x) => {
|
|
64936
|
+
var _;
|
|
64937
|
+
x.preventDefault(), (_ = y.current) == null || _.click();
|
|
64936
64938
|
}
|
|
64937
64939
|
}
|
|
64938
64940
|
),
|
|
@@ -64964,35 +64966,39 @@ const t6e = ({
|
|
|
64964
64966
|
_hover: {
|
|
64965
64967
|
bgColor: oe.gray50
|
|
64966
64968
|
},
|
|
64967
|
-
p:
|
|
64969
|
+
p: b ? "16px" : "24px",
|
|
64968
64970
|
aspectRatio: 764 / 574,
|
|
64969
64971
|
position: "relative",
|
|
64970
|
-
onClick: (
|
|
64971
|
-
var
|
|
64972
|
-
|
|
64972
|
+
onClick: (x) => {
|
|
64973
|
+
var _;
|
|
64974
|
+
x.preventDefault(), (_ = y.current) == null || _.click();
|
|
64973
64975
|
},
|
|
64974
|
-
...
|
|
64976
|
+
...g,
|
|
64975
64977
|
children: [
|
|
64976
|
-
/* @__PURE__ */ f($i, { boxSize:
|
|
64978
|
+
/* @__PURE__ */ f($i, { boxSize: b ? "24px" : "40px", children: /* @__PURE__ */ f(mf, { fontSize: b ? "24px" : "40px" }) }),
|
|
64977
64979
|
/* @__PURE__ */ f(
|
|
64978
64980
|
Xs,
|
|
64979
64981
|
{
|
|
64980
|
-
size:
|
|
64981
|
-
mt:
|
|
64982
|
-
children: "Drop your product images here."
|
|
64982
|
+
size: b ? "5xs" : "4xs",
|
|
64983
|
+
mt: b ? "12px" : "24px",
|
|
64984
|
+
children: v ?? "Drop your product images here."
|
|
64983
64985
|
}
|
|
64984
64986
|
),
|
|
64985
|
-
/* @__PURE__ */
|
|
64987
|
+
/* @__PURE__ */ Q(
|
|
64986
64988
|
Ya,
|
|
64987
64989
|
{
|
|
64988
|
-
size:
|
|
64990
|
+
size: b ? "xxs" : "xs",
|
|
64989
64991
|
color: oe.gray400,
|
|
64990
64992
|
textAlign: "center",
|
|
64991
64993
|
mt: "10px",
|
|
64992
|
-
children:
|
|
64994
|
+
children: [
|
|
64995
|
+
"1600 *1200 (4:3) recommended, up to 10MB",
|
|
64996
|
+
p && ` each. You can add up-to
|
|
64997
|
+
5 photos`
|
|
64998
|
+
]
|
|
64993
64999
|
}
|
|
64994
65000
|
),
|
|
64995
|
-
/* @__PURE__ */ f(v1, { position: "absolute", bottom:
|
|
65001
|
+
/* @__PURE__ */ f(v1, { position: "absolute", bottom: b ? "16px" : "24px", children: /* @__PURE__ */ f(
|
|
64996
65002
|
r5,
|
|
64997
65003
|
{
|
|
64998
65004
|
size: "small",
|
|
@@ -65010,16 +65016,16 @@ const t6e = ({
|
|
|
65010
65016
|
e && /* @__PURE__ */ f(
|
|
65011
65017
|
yO,
|
|
65012
65018
|
{
|
|
65013
|
-
minChildWidth:
|
|
65014
|
-
gap:
|
|
65015
|
-
mt:
|
|
65016
|
-
children: [1, 2, 3, 4, 5].map((
|
|
65019
|
+
minChildWidth: b ? "100%" : "140px",
|
|
65020
|
+
gap: b ? "8px" : "16px",
|
|
65021
|
+
mt: b ? "8px" : "16px",
|
|
65022
|
+
children: [1, 2, 3, 4, 5].map((x, _) => /* @__PURE__ */ f(tr, { children: /* @__PURE__ */ f(
|
|
65017
65023
|
$i,
|
|
65018
65024
|
{
|
|
65019
|
-
borderRadius:
|
|
65025
|
+
borderRadius: b ? "16px" : "12px",
|
|
65020
65026
|
aspectRatio: 764 / 574,
|
|
65021
|
-
bgImage: a[
|
|
65022
|
-
outline: a[
|
|
65027
|
+
bgImage: a[_],
|
|
65028
|
+
outline: a[_] ? "1px solid" : "1px dashed",
|
|
65023
65029
|
outlineColor: oe.gray50,
|
|
65024
65030
|
bgSize: "cover",
|
|
65025
65031
|
bgPosition: "center",
|
|
@@ -65027,15 +65033,15 @@ const t6e = ({
|
|
|
65027
65033
|
position: "relative",
|
|
65028
65034
|
_hover: {
|
|
65029
65035
|
outline: "3px solid",
|
|
65030
|
-
outlineColor: a[
|
|
65031
|
-
bgColor: a[
|
|
65036
|
+
outlineColor: a[_] ? oe.white100 : oe.black300,
|
|
65037
|
+
bgColor: a[_] ? oe.white100 : oe.gray50
|
|
65032
65038
|
},
|
|
65033
|
-
children: a[
|
|
65039
|
+
children: a[_] ? /* @__PURE__ */ f(v1, { position: "absolute", top: "8px", right: "8px", children: /* @__PURE__ */ Q(Tb, { placement: "bottom-end", children: [
|
|
65034
65040
|
/* @__PURE__ */ f(_b, { children: /* @__PURE__ */ f(
|
|
65035
65041
|
Sh,
|
|
65036
65042
|
{
|
|
65037
65043
|
bg: oe.white100,
|
|
65038
|
-
size:
|
|
65044
|
+
size: b ? "24px" : "32px",
|
|
65039
65045
|
cursor: "pointer",
|
|
65040
65046
|
children: /* @__PURE__ */ f(GO, {})
|
|
65041
65047
|
}
|
|
@@ -65056,7 +65062,7 @@ const t6e = ({
|
|
|
65056
65062
|
alignItems: "center",
|
|
65057
65063
|
gap: "8px",
|
|
65058
65064
|
p: "14px",
|
|
65059
|
-
onClick: () => d && d(
|
|
65065
|
+
onClick: () => d && d(_),
|
|
65060
65066
|
children: [
|
|
65061
65067
|
/* @__PURE__ */ f($i, { children: /* @__PURE__ */ f(nne, { fill: "red" }) }),
|
|
65062
65068
|
/* @__PURE__ */ f(Xs, { size: "6xs", children: "Make cover image" })
|
|
@@ -65071,7 +65077,7 @@ const t6e = ({
|
|
|
65071
65077
|
gap: "8px",
|
|
65072
65078
|
p: "14px",
|
|
65073
65079
|
onClick: () => {
|
|
65074
|
-
d && l && (d(0), l(
|
|
65080
|
+
d && l && (d(0), l(_));
|
|
65075
65081
|
},
|
|
65076
65082
|
children: [
|
|
65077
65083
|
/* @__PURE__ */ f(ry, {}),
|
|
@@ -65086,15 +65092,15 @@ const t6e = ({
|
|
|
65086
65092
|
$i,
|
|
65087
65093
|
{
|
|
65088
65094
|
cursor: "pointer",
|
|
65089
|
-
onClick: (
|
|
65090
|
-
var
|
|
65091
|
-
|
|
65095
|
+
onClick: (T) => {
|
|
65096
|
+
var k;
|
|
65097
|
+
T.preventDefault(), (k = y.current) == null || k.click();
|
|
65092
65098
|
},
|
|
65093
65099
|
children: /* @__PURE__ */ f(Y1e, { fontSize: "24px" })
|
|
65094
65100
|
}
|
|
65095
65101
|
)
|
|
65096
65102
|
},
|
|
65097
|
-
|
|
65103
|
+
_
|
|
65098
65104
|
) }))
|
|
65099
65105
|
}
|
|
65100
65106
|
),
|
|
@@ -65106,7 +65112,7 @@ const t6e = ({
|
|
|
65106
65112
|
multiple: e,
|
|
65107
65113
|
id: "inputFile",
|
|
65108
65114
|
style: { display: "none" },
|
|
65109
|
-
ref:
|
|
65115
|
+
ref: y,
|
|
65110
65116
|
onChange: n
|
|
65111
65117
|
}
|
|
65112
65118
|
)
|
|
@@ -9,6 +9,8 @@ export interface IImageUpload {
|
|
|
9
9
|
handleDeleteImage?: (e: any) => void;
|
|
10
10
|
handleChangeCoverImage?: (e: any) => void;
|
|
11
11
|
accept?: string;
|
|
12
|
+
uploadText?: string;
|
|
13
|
+
canUploadMultiple?: boolean;
|
|
12
14
|
}
|
|
13
|
-
declare const ImageUploader: ({ multiple, onHandleChange, imageArray, coverImageIndex, handleDeleteImage, handleChangeCoverImage, multiImagePopover, accept, ...props }: IImageUpload) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare const ImageUploader: ({ multiple, onHandleChange, imageArray, coverImageIndex, handleDeleteImage, handleChangeCoverImage, multiImagePopover, accept, canUploadMultiple, uploadText, ...props }: IImageUpload) => import("react/jsx-runtime").JSX.Element;
|
|
14
16
|
export default ImageUploader;
|