sprint-asia-custom-component 0.1.88 → 0.1.90

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
@@ -23834,7 +23834,7 @@
23834
23834
  }, title), isRequired && /*#__PURE__*/React__default["default"].createElement("p", {
23835
23835
  className: "text-sm font-normal text-danger500 ml-1"
23836
23836
  }, "*")), /*#__PURE__*/React__default["default"].createElement("div", {
23837
- className: "cursor-pointer py-1 border border-neutral40 bg-neutral20 rounded-md w-fit flex items-center"
23837
+ className: "cursor-pointer py-1 border border-black bg-white rounded-md w-fit flex items-center"
23838
23838
  }, /*#__PURE__*/React__default["default"].createElement("div", {
23839
23839
  className: "p-2"
23840
23840
  }, /*#__PURE__*/React__default["default"].createElement(PiCalendarBlankDuotone, {
@@ -23848,7 +23848,7 @@
23848
23848
  selectsRange: true,
23849
23849
  utcOffset: 0,
23850
23850
  dateFormat: "d MMM yyyy",
23851
- className: "cursor-pointer bg-neutral20 text-neutral300 rounded-md pr-2 focus:outline-none text-sm"
23851
+ className: "cursor-pointer bg-white text-neutral300 rounded-md pr-2 focus:outline-none text-sm"
23852
23852
  })));
23853
23853
  };
23854
23854
 
@@ -48326,20 +48326,20 @@
48326
48326
  style: {
48327
48327
  height: "450px"
48328
48328
  }
48329
- }, data?.voucherBackgroundType === "color" && /*#__PURE__*/React__default["default"].createElement("div", {
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
- background: data?.voucherBackground || "black"
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
- })), data?.voucherBackgroundType === "image" && /*#__PURE__*/React__default["default"].createElement("div", {
48339
+ })) : /*#__PURE__*/React__default["default"].createElement("div", {
48339
48340
  className: "w-full h-54 pt-6 pb-4 px-4",
48340
48341
  style: {
48341
- backgroundImage: `url(${data?.voucherBackground})`,
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sprint-asia-custom-component",
3
3
  "main": "dist/index.js",
4
- "version": "0.1.88",
4
+ "version": "0.1.90",
5
5
  "private": false,
6
6
  "dependencies": {
7
7
  "@headlessui/react": "^1.7.18",
@@ -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 === "color" && (
138
- <div className="w-full h-54 pt-6 pb-4" style={{ background: data?.voucherBackground || "black" }}>
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={{ backgroundImage: `url(${data?.voucherBackground})`, backgroundSize: "cover" }}
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>
@@ -19,7 +19,7 @@ const CustomDatePicker = ({ startDate, onChangeStartDate, endDate, onChangeEndDa
19
19
  </div>
20
20
  )}
21
21
 
22
- <div className="cursor-pointer py-1 border border-neutral40 bg-neutral20 rounded-md w-fit flex items-center">
22
+ <div className="cursor-pointer py-1 border border-black bg-white rounded-md w-fit flex items-center">
23
23
  <div className="p-2">
24
24
  <PiCalendarBlankDuotone size={16} className="text-neutral300" />
25
25
  </div>
@@ -32,7 +32,7 @@ const CustomDatePicker = ({ startDate, onChangeStartDate, endDate, onChangeEndDa
32
32
  selectsRange
33
33
  utcOffset={0}
34
34
  dateFormat="d MMM yyyy"
35
- className="cursor-pointer bg-neutral20 text-neutral300 rounded-md pr-2 focus:outline-none text-sm"
35
+ className="cursor-pointer bg-white text-neutral300 rounded-md pr-2 focus:outline-none text-sm"
36
36
  />
37
37
  </div>
38
38
  </div>
@@ -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: "image",
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",