sprint-asia-custom-component 0.1.88 → 0.1.89
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
CHANGED
|
@@ -48326,20 +48326,20 @@
|
|
|
48326
48326
|
style: {
|
|
48327
48327
|
height: "450px"
|
|
48328
48328
|
}
|
|
48329
|
-
}, data?.voucherBackgroundType === "
|
|
48330
|
-
className: "w-full h-54 pt-6 pb-4",
|
|
48329
|
+
}, data?.voucherBackgroundType === "image" ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
48330
|
+
className: "w-full h-54 pt-6 pb-4 px-4",
|
|
48331
48331
|
style: {
|
|
48332
|
-
|
|
48332
|
+
backgroundImage: `url(${data?.voucherBackground})`,
|
|
48333
|
+
backgroundSize: "cover"
|
|
48333
48334
|
}
|
|
48334
48335
|
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
48335
48336
|
alt: "voucher-img",
|
|
48336
48337
|
src: data?.voucherPhoto || img$2,
|
|
48337
48338
|
className: "rounded-md mt-12"
|
|
48338
|
-
}))
|
|
48339
|
+
})) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
48339
48340
|
className: "w-full h-54 pt-6 pb-4 px-4",
|
|
48340
48341
|
style: {
|
|
48341
|
-
|
|
48342
|
-
backgroundSize: "cover"
|
|
48342
|
+
background: data?.voucherBackground || "#e5e5e5"
|
|
48343
48343
|
}
|
|
48344
48344
|
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
48345
48345
|
alt: "voucher-img",
|
package/package.json
CHANGED
|
@@ -134,16 +134,17 @@ const CustomPhone = ({ mode = "Empty", data }) => {
|
|
|
134
134
|
{mode === "Voucher" && (
|
|
135
135
|
<div className="h-screen">
|
|
136
136
|
<div className="overflow-y-auto no-scrollbar" style={{ height: "450px" }}>
|
|
137
|
-
{data?.voucherBackgroundType === "
|
|
138
|
-
<div
|
|
137
|
+
{data?.voucherBackgroundType === "image" ? (
|
|
138
|
+
<div
|
|
139
|
+
className="w-full h-54 pt-6 pb-4 px-4"
|
|
140
|
+
style={{ backgroundImage: `url(${data?.voucherBackground})`, backgroundSize: "cover" }}
|
|
141
|
+
>
|
|
139
142
|
<img alt="voucher-img" src={data?.voucherPhoto || VoucherPhoto} className="rounded-md mt-12" />
|
|
140
143
|
</div>
|
|
141
|
-
)
|
|
142
|
-
|
|
143
|
-
{data?.voucherBackgroundType === "image" && (
|
|
144
|
+
) : (
|
|
144
145
|
<div
|
|
145
146
|
className="w-full h-54 pt-6 pb-4 px-4"
|
|
146
|
-
style={{
|
|
147
|
+
style={{ background: data?.voucherBackground || "#e5e5e5" }}
|
|
147
148
|
>
|
|
148
149
|
<img alt="voucher-img" src={data?.voucherPhoto || VoucherPhoto} className="rounded-md mt-12" />
|
|
149
150
|
</div>
|
package/src/templates/index.js
CHANGED
|
@@ -850,10 +850,8 @@ const Templates = () => {
|
|
|
850
850
|
validDate: "29 December 2024",
|
|
851
851
|
voucherDescription:
|
|
852
852
|
"MAP Gift Voucher is the official gift voucher of PT Mitra Adiperkasa Tbk. Accepted in2 retail stores managed under MAP Group Indonesia, with a wide range of product brands. It is a perfect gift for Birthdays, Annivesaries, Valentines, Holidays, Festivals",
|
|
853
|
-
voucherBackgroundType: "
|
|
854
|
-
voucherBackground:
|
|
855
|
-
"https://static.promediateknologi.id/crop/0x0:0x0/0x0/webp/photo/jawapos/2022/09/one-piece-red.jpeg",
|
|
856
|
-
|
|
853
|
+
// voucherBackgroundType: "color",
|
|
854
|
+
// voucherBackground: "#000000",
|
|
857
855
|
voucherTitle: "One Piece Special Edition!",
|
|
858
856
|
voucherMessage: "This is One Piece special edition card",
|
|
859
857
|
howToRedeem: "This is how to redeem",
|