sprint-asia-custom-component 0.1.80 → 0.1.82

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/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.80",
4
+ "version": "0.1.82",
5
5
  "private": false,
6
6
  "dependencies": {
7
7
  "@headlessui/react": "^1.7.18",
@@ -1,5 +1,4 @@
1
1
  import React from 'react'
2
- import "./style.css"
3
2
  import { IoIosBatteryFull, IoIosWifi, IoMdVolumeHigh } from "react-icons/io";
4
3
  import LogoPrezentHidden from "../../assets/images/logo_prezent_hidden.png"
5
4
  import LogoEmptyVoucher from "../../assets/images/logo_empty_voucher.png"
@@ -33,10 +32,10 @@ const CustomPhone = ({
33
32
  data,
34
33
  }) => {
35
34
  return (
36
- <div className="iphone-frame">
35
+ <div className="w-[250px] h-[500px] rounded-[25px] border-[10px] border-black relative">
37
36
  <div className='flex justify-between'>
38
37
  <p className='absolute left-0 pt-1 pl-2 text-xs text-black ml-2'>09.41</p>
39
- <div className="iphone-notch"></div>
38
+ <div className="w-[110px] h-[20px] bg-black rounded-b-[10px] absolute top-0 left-[calc(50%-55px)]"></div>
40
39
  <div className='absolute right-0 pt-1 pr-2'>
41
40
  <div className='flex'>
42
41
  <IoMdVolumeHigh className='w-3 h-3 text-black my-1'/>
@@ -45,7 +44,7 @@ const CustomPhone = ({
45
44
  </div>
46
45
  </div>
47
46
  </div>
48
- <div className="iphone-screen">
47
+ <div className="w-full h-full bg-white rounded-[15px] overflow-hidden">
49
48
  {
50
49
  mode === "Empty" &&
51
50
  <div className='h-full w-full bg-white flex justify-center items-center text-center'>
@@ -245,8 +244,8 @@ const CustomPhone = ({
245
244
  </div>
246
245
  }
247
246
  </div>
248
- </div>
249
- )
247
+ </div>
248
+ );
250
249
  }
251
250
 
252
251
  export default CustomPhone
package/src/index.css CHANGED
@@ -5,4 +5,14 @@
5
5
 
6
6
  * {
7
7
  font-family: "Inter", sans-serif;
8
+ }
9
+
10
+ .no-scrollbar {
11
+ overflow-y: scroll;
12
+ -ms-overflow-style: none;
13
+ scrollbar-width: none;
14
+ }
15
+
16
+ .no-scrollbar::-webkit-scrollbar {
17
+ display: none;
8
18
  }
package/src/index.js CHANGED
@@ -87,6 +87,7 @@ import FilterDropdown from "./components/filter/filterDropdown";
87
87
  import Footer from "./components/footer";
88
88
  import Header from "./components/header";
89
89
  import TextEditor from "./components/texteditor";
90
+ import CustomPhone from "./components/customphone";
90
91
 
91
92
  export {
92
93
  Header,
@@ -146,4 +147,5 @@ export {
146
147
  ModalDeposit,
147
148
  DescriptionFile,
148
149
  TextEditor,
150
+ CustomPhone
149
151
  };
@@ -59,6 +59,7 @@ import DetailDivision from "../components/table/listTable/report/detaildivision"
59
59
  import CellModelFive from "../components/table/listTable/cellmodefive";
60
60
  import CellModelSix from "../components/table/listTable/cellmodesix";
61
61
  import CellModelSeven from "../components/table/listTable/cellmodelseven";
62
+ import CustomPhone from "../components/customphone";
62
63
 
63
64
  const Templates = () => {
64
65
  const [startDate, setStartDate] = useState(null);
@@ -837,6 +838,14 @@ const Templates = () => {
837
838
  <Header title="Navbar" />
838
839
  </div>
839
840
 
841
+ <div className="flex my-4 justify-center">
842
+ <CustomPhone mode="Empty"/>
843
+ <CustomPhone mode="Whatsapp" data="Ini message"/>
844
+ <CustomPhone mode="SMS" data="Ini message"/>
845
+ <CustomPhone mode="Email" data="Ini message"/>
846
+ <CustomPhone mode="Voucher"/>
847
+ </div>
848
+
840
849
  <div>
841
850
  <TextEditor title="Description" />
842
851
  </div>
@@ -1815,6 +1824,7 @@ const Templates = () => {
1815
1824
  </tbody>
1816
1825
  </table>
1817
1826
  </div>
1827
+
1818
1828
  );
1819
1829
  };
1820
1830
 
@@ -1,27 +0,0 @@
1
- /* src/components/iphone.css */
2
- .iphone-frame {
3
- width: 250px; /* Perkecil ukuran dari 375px */
4
- height: 500px; /* Perkecil ukuran dari 812px */
5
- border-radius: 25px; /* Perkecil radius dari 40px */
6
- border: 10px solid #000; /* Perkecil border dari 16px */
7
- position: relative;
8
- }
9
-
10
- .iphone-notch {
11
- width: 110px; /* Perkecil ukuran dari 210px */
12
- height: 20px; /* Perkecil ukuran dari 30px */
13
- background: #000;
14
- border-radius: 0px 0px 10px 10px;
15
- position: absolute;
16
- top: 0px; /* Perkecil ukuran dari -16px */
17
- left: calc(50% - 55px); /* Perkecil ukuran dari 105px */
18
- }
19
-
20
- .iphone-screen {
21
- width: 100%;
22
- height: 100%;
23
- background: #fff;
24
- border-radius: 15px; /* Perkecil radius dari 24px */
25
- overflow: hidden;
26
- }
27
-