nestiq-component-library 1.0.6 → 1.0.8

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.
@@ -0,0 +1,99 @@
1
+ import React, { useRef } from "react";
2
+ import { toast } from "react-toastify";
3
+ import email from "../../../assets/Images/envelope-fill.svg";
4
+ import facebook from "../../../assets/Images/facebook.svg";
5
+ import x from "../../../assets/Images/icon_close 2.png";
6
+ import linkedln from "../../../assets/Images/linkedin.svg";
7
+ import Xtwitter from "../../../assets/Images/twitter-x.svg";
8
+ import whatsapp from "../../../assets/Images/whatsapp.svg";
9
+ import "./PopUp.css";
10
+
11
+ export default function PopUp({ onClick }) {
12
+ const handleClose = () => {
13
+ onClick();
14
+ };
15
+
16
+ const urlInputRef = useRef(null);
17
+
18
+ const copyToClipboard = () => {
19
+ urlInputRef.current.select();
20
+ document.execCommand("copy");
21
+ toast.success("URL copied to clipboard!");
22
+ };
23
+
24
+ return (
25
+ <div className="popup-overlay">
26
+ <div className="shareSection col-12 d-flex position-relative flex-column mx-auto justify-content-center col-5 col-lg-6 d-flex gap-4">
27
+ <div className="end-0 top-0 position-absolute ">
28
+ <img
29
+ src={x}
30
+ alt="close"
31
+ className="closeIcon me-2"
32
+ onClick={handleClose}
33
+ />
34
+ </div>
35
+ <div className="popUpHeader col-lg-12 d-flex justify-content-center mb-2">
36
+ Jetzt teilen und weitersagen!
37
+ </div>
38
+ <div className="h-25 col-lg-12 socialMediaIconsSection d-flex flex-row align-items-center justify-content-center mx-auto">
39
+
40
+ <a href="https://twitter.com/intent/tweet?url=https://www.nestiq.de&text=Nestiq" className="text-decoration-none" target="blank">
41
+ <div className=" flex-column d-flex align-items-center">
42
+ <img src={Xtwitter} alt="twitter" className="socialMediaIcons" />
43
+ <span className="socialMediaIconText" >Xtwitter</span>
44
+ </div>
45
+ </a>
46
+
47
+ <a href="https://www.facebook.com/sharer/sharer.php?u=https://www.nestiq.de" className="text-decoration-none" target="blank" >
48
+ <div className=" flex-column d-flex align-items-center">
49
+ <img src={facebook} alt="facebook" className="socialMediaIcons " />
50
+ <span className="socialMediaIconText">Facebook</span>
51
+ </div>
52
+ </a>
53
+
54
+ <a href="https://api.whatsapp.com/send?text=https://www.nestiq.de" target="blank" className="text-decoration-none">
55
+ <div className=" flex-column d-flex align-items-center">
56
+ <img src={whatsapp} alt="whatsapp" className=" socialMediaIcons" />
57
+ <span className="socialMediaIconText">WhatsApp</span>
58
+ </div>
59
+ </a>
60
+
61
+ <a href="https://www.linkedin.com/shareArticle?mini=true&url=https://www.nestiq.de" target="blank" className="text-decoration-none">
62
+ <div className=" flex-column d-flex align-items-center">
63
+ <img src={linkedln} alt="linkedin" className=" socialMediaIcons" />
64
+ <span className="socialMediaIconText">LinkedIn</span>
65
+ </div>
66
+ </a>
67
+
68
+ <a href="https://www.nestiq.de" target="blank" className="text-decoration-none">
69
+ <div className=" flex-column d-flex align-items-center">
70
+ <img src={email} alt="email" className=" socialMediaIcons" />
71
+ <span className="socialMediaIconText">E-mail</span>
72
+ </div>
73
+ </a>
74
+
75
+ </div>
76
+ <div className="col-10 mx-auto">
77
+ <div className=" row align-items-center position-relative">
78
+ <input
79
+ ref={urlInputRef}
80
+ type="text"
81
+ className="popup_search-input rounded-4 border border-0 "
82
+ placeholder="Enter link here"
83
+ value={window.location.href}
84
+ readOnly
85
+ />
86
+ <button
87
+ onClick={copyToClipboard}
88
+ className="popupcustom-button border border-0 position-absolute me-2 col-lg-3 col-md-3 col-sm-3 rounded-4 fs-6"
89
+ type="button"
90
+ id="button"
91
+ >
92
+ <strong>Kopieren</strong>
93
+ </button>
94
+ </div>
95
+ </div>
96
+ </div>
97
+ </div>
98
+ );
99
+ }
package/src/index.tsx CHANGED
@@ -1,3 +1,3 @@
1
- export { default as Button } from "./components/Button/Button";
2
- export { default as Popup } from "./components/Popup/Popup";
3
- export { default as ImageListPopup } from "./components/ImageListPopup/ImageListPopup";
1
+ export { default as Button } from "./components/Button/Button";
2
+ export { default as Popup } from "./components/Popup/Popup";
3
+ export { default as ImageListPopup } from "./components/ImageListPopup/ImageListPopup";
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-right" viewBox="0 0 16 16">
2
- <path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708"/>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-left" viewBox="0 0 16 16">
2
- <path fill-rule="evenodd" d="M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0"/>
3
- </svg>
Binary file
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-right" viewBox="0 0 16 16">
2
- <path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708"/>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-left" viewBox="0 0 16 16">
2
- <path fill-rule="evenodd" d="M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0"/>
3
- </svg>