sprint-asia-custom-component 0.1.93 → 0.1.95

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
@@ -48286,13 +48286,21 @@
48286
48286
  className: "text-neutral900"
48287
48287
  }, "Messages and call are end-to-end encrypted. No one outside of this chat, not even Whatsapp, can read or listen to them. Tap to learn more.")), /*#__PURE__*/React__default["default"].createElement("div", {
48288
48288
  className: "bg-white py-1 px-2 rounded-md w-32 drop-shadow-2xl"
48289
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
48290
+ className: "flex"
48289
48291
  }, /*#__PURE__*/React__default["default"].createElement("p", {
48290
48292
  style: {
48291
48293
  fontSize: "8px",
48292
48294
  wordBreak: "break-word"
48293
48295
  },
48294
48296
  className: "text-neutral5"
48295
- }, data), /*#__PURE__*/React__default["default"].createElement("div", {
48297
+ }, data === "" ? "-" : data), data !== "" && /*#__PURE__*/React__default["default"].createElement("p", {
48298
+ style: {
48299
+ fontSize: "8px",
48300
+ wordBreak: "break-word"
48301
+ },
48302
+ className: "text-primary500 ml-1"
48303
+ }, "https://prezent.id/redeem/NXcralJZffsjksdDVds9")), /*#__PURE__*/React__default["default"].createElement("div", {
48296
48304
  className: "flex justify-end"
48297
48305
  }, /*#__PURE__*/React__default["default"].createElement("p", {
48298
48306
  style: {
@@ -48480,11 +48488,13 @@
48480
48488
  }))), /*#__PURE__*/React__default["default"].createElement("div", {
48481
48489
  className: "w-full bg-white px-2"
48482
48490
  }, /*#__PURE__*/React__default["default"].createElement("div", {
48483
- className: "p-4",
48491
+ className: "p-4 flex",
48484
48492
  style: {
48485
48493
  fontSize: "8px"
48486
48494
  }
48487
- }, /*#__PURE__*/React__default["default"].createElement("p", null, data))), /*#__PURE__*/React__default["default"].createElement("div", {
48495
+ }, /*#__PURE__*/React__default["default"].createElement("p", null, data === "" ? "-" : data), data !== "" && /*#__PURE__*/React__default["default"].createElement("p", {
48496
+ className: "text-primary500 ml-1"
48497
+ }, "https://prezent.id/redeem/NXcralJZffsjksdDVds9"))), /*#__PURE__*/React__default["default"].createElement("div", {
48488
48498
  className: "w-full bg-white absolute bottom-0 p-2 rounded-md-lb rounded-b-xl"
48489
48499
  }, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", {
48490
48500
  className: "flex justify-center"
@@ -48537,11 +48547,13 @@
48537
48547
  })), /*#__PURE__*/React__default["default"].createElement("div", {
48538
48548
  className: "w-full bg-white px-2 py-4"
48539
48549
  }, /*#__PURE__*/React__default["default"].createElement("div", {
48540
- className: "w-40 bg-neutral30 rounded-lg p-2",
48550
+ className: "w-40 bg-neutral30 rounded-lg p-2 flex",
48541
48551
  style: {
48542
48552
  fontSize: "8px"
48543
48553
  }
48544
- }, /*#__PURE__*/React__default["default"].createElement("p", null, data))), /*#__PURE__*/React__default["default"].createElement("div", {
48554
+ }, /*#__PURE__*/React__default["default"].createElement("p", null, data === "" ? "-" : data), data !== "" && /*#__PURE__*/React__default["default"].createElement("p", {
48555
+ className: "text-primary500 ml-1"
48556
+ }, "https://prezent.id/redeem/NXcralJZffsjksdDVds9"))), /*#__PURE__*/React__default["default"].createElement("div", {
48545
48557
  className: "w-full bg-white absolute bottom-0 p-2 rounded-md-lb rounded-b-xl"
48546
48558
  }, /*#__PURE__*/React__default["default"].createElement("div", {
48547
48559
  className: "flex justify-between mb-2 items-center"
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.93",
4
+ "version": "0.1.95",
5
5
  "private": false,
6
6
  "dependencies": {
7
7
  "@headlessui/react": "^1.7.18",
@@ -104,9 +104,17 @@ const CustomPhone = ({ mode = "Empty", data }) => {
104
104
  </p>
105
105
  </div>
106
106
  <div className="bg-white py-1 px-2 rounded-md w-32 drop-shadow-2xl">
107
- <p style={{ fontSize: "8px", wordBreak: "break-word" }} className="text-neutral5">
108
- {data}
109
- </p>
107
+ <div className="flex">
108
+ <p style={{ fontSize: "8px", wordBreak: "break-word" }} className="text-neutral5">
109
+ {data === "" ? "-" : data}
110
+ </p>
111
+ {
112
+ data !== "" &&
113
+ <p style={{ fontSize: "8px", wordBreak: "break-word" }} className="text-primary500 ml-1">
114
+ https://prezent.id/redeem/NXcralJZffsjksdDVds9
115
+ </p>
116
+ }
117
+ </div>
110
118
  <div className="flex justify-end">
111
119
  <p style={{ fontSize: "8px" }} className="text-neutral80">
112
120
  9.41 AM
@@ -252,8 +260,12 @@ const CustomPhone = ({ mode = "Empty", data }) => {
252
260
  </div>
253
261
  </div>
254
262
  <div className="w-full bg-white px-2">
255
- <div className="p-4" style={{ fontSize: "8px" }}>
256
- <p>{data}</p>
263
+ <div className="p-4 flex" style={{ fontSize: "8px" }}>
264
+ <p>{data === "" ? "-" : data}</p>
265
+ {
266
+ data !== "" &&
267
+ <p className="text-primary500 ml-1">https://prezent.id/redeem/NXcralJZffsjksdDVds9</p>
268
+ }
257
269
  </div>
258
270
  </div>
259
271
  <div className="w-full bg-white absolute bottom-0 p-2 rounded-md-lb rounded-b-xl">
@@ -296,8 +308,12 @@ const CustomPhone = ({ mode = "Empty", data }) => {
296
308
  <IoIosArrowBack className="w-5 h-5 text-neutral20 mt-2" />
297
309
  </div>
298
310
  <div className="w-full bg-white px-2 py-4">
299
- <div className="w-40 bg-neutral30 rounded-lg p-2" style={{ fontSize: "8px" }}>
300
- <p>{data}</p>
311
+ <div className="w-40 bg-neutral30 rounded-lg p-2 flex" style={{ fontSize: "8px" }}>
312
+ <p>{data === "" ? "-" : data}</p>
313
+ {
314
+ data !== "" &&
315
+ <p className="text-primary500 ml-1">https://prezent.id/redeem/NXcralJZffsjksdDVds9</p>
316
+ }
301
317
  </div>
302
318
  </div>
303
319
  <div className="w-full bg-white absolute bottom-0 p-2 rounded-md-lb rounded-b-xl">