syncing after fetching my synced forking
This commit is contained in:
1 parent
e4ab6b3e0d
commit
67cba8bfb9
29 files changed
+4720
-100
No files matched your search
Generated
+4488
File diff suppressed because it is too large.
Load diff
+3
-27
@@ -1,33 +1,9 @@
|
|||||||
import { useState } from 'react'
|
|
||||||
import reactLogo from './assets/react.svg'
|
|
||||||
import viteLogo from '/vite.svg'
|
|
||||||
import './App.css'
|
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div>
|
<div></div>
|
||||||
<a href="https://vitejs.dev" target="_blank">
|
|
||||||
<img src={viteLogo} className="logo" alt="Vite logo" />
|
|
||||||
</a>
|
|
||||||
<a href="https://react.dev" target="_blank">
|
|
||||||
<img src={reactLogo} className="logo react" alt="React logo" />
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<h1>Vite + React</h1>
|
|
||||||
<div className="card">
|
|
||||||
<button onClick={() => setCount((count) => count + 1)}>
|
|
||||||
count is {count}
|
|
||||||
</button>
|
|
||||||
<p>
|
|
||||||
Edit <code>src/App.jsx</code> and save to test HMR
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<p className="read-the-docs">
|
|
||||||
Click on the Vite and React logos to learn more
|
|
||||||
</p>
|
|
||||||
</>
|
</>
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default App
|
export default App;
|
||||||
File renamed without changes.
+11
-2
@@ -5,10 +5,19 @@ import DualButtonPopupModalWithTextfields from "../../components/PopupModals/Dua
|
|||||||
function PlayGroundPopupModals() {
|
function PlayGroundPopupModals() {
|
||||||
return (
|
return (
|
||||||
<div style={{ display: "flex" }}>
|
<div style={{ display: "flex" }}>
|
||||||
<DualButtonPopupModal />
|
<DualButtonPopupModal
|
||||||
|
subject="Unsaved changes"
|
||||||
|
description="Do you want to save or discard changes?"
|
||||||
|
esc="Discard"
|
||||||
|
save="Save changes"
|
||||||
|
/>
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
<DualButtonPopupModalWithTextfields />
|
<DualButtonPopupModalWithTextfields
|
||||||
|
title="Create new organization"
|
||||||
|
esc="Cancel"
|
||||||
|
save="Save"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
File renamed without changes.
+3
-2
@@ -1,3 +1,4 @@
|
|||||||
|
import "./playGround.css";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import AnnouncementsDualButtonWithIcon from "../../components/Announcements/AnnouncementsDualButtonWithIcon/AnnouncementsDualButtonWithIcon";
|
import AnnouncementsDualButtonWithIcon from "../../components/Announcements/AnnouncementsDualButtonWithIcon/AnnouncementsDualButtonWithIcon";
|
||||||
import InfoOutlinedIcon from "@mui/icons-material/InfoOutlined";
|
import InfoOutlinedIcon from "@mui/icons-material/InfoOutlined";
|
||||||
@@ -8,7 +9,7 @@ import AnnouncementUpdateSubscription from "../../components/Announcements/Annou
|
|||||||
|
|
||||||
function PlayGroundAnnouncements() {
|
function PlayGroundAnnouncements() {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div className="playground">
|
||||||
<AnnouncementsDualButtonWithIcon
|
<AnnouncementsDualButtonWithIcon
|
||||||
icon={
|
icon={
|
||||||
<div className="info-icon-frame">
|
<div className="info-icon-frame">
|
||||||
@@ -52,7 +53,7 @@ function PlayGroundAnnouncements() {
|
|||||||
/>
|
/>
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
<AnnouncementsMessageBar />
|
<AnnouncementsMessageBar message="New employee created successfully" />
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
<AnnouncementUpdateSubscription
|
<AnnouncementUpdateSubscription
|
||||||
+4
-1
@@ -48,7 +48,10 @@ function PlayGround() {
|
|||||||
<hr />
|
<hr />
|
||||||
{/* Now, illustration of the Description text fields */}
|
{/* Now, illustration of the Description text fields */}
|
||||||
<br />
|
<br />
|
||||||
<DescriptionTextField hintText="This is a hint text to help user." />
|
<DescriptionTextField
|
||||||
|
hasError={false}
|
||||||
|
hintText="This is a hint text to help user."
|
||||||
|
/>
|
||||||
<DescriptionTextField
|
<DescriptionTextField
|
||||||
hasError={true}
|
hasError={true}
|
||||||
hintText="This is a hint text to help user."
|
hintText="This is a hint text to help user."
|
||||||
+6
-1
@@ -8,7 +8,12 @@
|
|||||||
|
|
||||||
.tooltip-playground {
|
.tooltip-playground {
|
||||||
margin: auto;
|
margin: auto;
|
||||||
width: 100%;
|
padding: 5%;
|
||||||
|
width: 5%;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.playground {
|
||||||
|
padding: 40px;
|
||||||
|
}
|
||||||
+13
-3
@@ -1,14 +1,15 @@
|
|||||||
import "./announcementUpdateSubscription.css";
|
import "./announcementUpdateSubscription.css";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
import PropTypes from "prop-types";
|
||||||
|
|
||||||
function AnnouncementUpdateSubscription({
|
const AnnouncementUpdateSubscription = ({
|
||||||
title,
|
title,
|
||||||
text,
|
text,
|
||||||
cancel,
|
cancel,
|
||||||
positive,
|
positive,
|
||||||
header,
|
header,
|
||||||
button,
|
button,
|
||||||
}) {
|
}) => {
|
||||||
return (
|
return (
|
||||||
<div className="update-subscription">
|
<div className="update-subscription">
|
||||||
<div className="update-subscription-dialog">
|
<div className="update-subscription-dialog">
|
||||||
@@ -35,6 +36,15 @@ function AnnouncementUpdateSubscription({
|
|||||||
<div className="v-spacing-medium"></div>
|
<div className="v-spacing-medium"></div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
};
|
||||||
|
|
||||||
|
AnnouncementUpdateSubscription.propTypes = {
|
||||||
|
title: PropTypes.string.isRequired,
|
||||||
|
text: PropTypes.string.isRequired,
|
||||||
|
cancel: PropTypes.string.isRequired,
|
||||||
|
positive: PropTypes.string.isRequired,
|
||||||
|
header: PropTypes.string.isRequired,
|
||||||
|
button: PropTypes.string.isRequired,
|
||||||
|
};
|
||||||
|
|
||||||
export default AnnouncementUpdateSubscription;
|
export default AnnouncementUpdateSubscription;
|
||||||
+2
-1
@@ -30,7 +30,7 @@
|
|||||||
.subscription-dialog-title {
|
.subscription-dialog-title {
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
font-family: var(--update-subscription-font-family);
|
font-family: var(--update-subscription-font-family);
|
||||||
font-weight: 900;
|
font-weight: 700;
|
||||||
color: var(--update-subscription-color-0);
|
color: var(--update-subscription-color-0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -68,6 +68,7 @@
|
|||||||
border: 1px solid var(--update-subscription-color-4);
|
border: 1px solid var(--update-subscription-color-4);
|
||||||
background-color: var(--update-subscription-color-5);
|
background-color: var(--update-subscription-color-5);
|
||||||
color: var(--update-subscription-color-2);
|
color: var(--update-subscription-color-2);
|
||||||
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.update-subscription-title {
|
.update-subscription-title {
|
||||||
|
|||||||
+10
-2
@@ -1,8 +1,9 @@
|
|||||||
import "./announcementsDualButton.css";
|
import "./announcementsDualButton.css";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import CloseIcon from "@mui/icons-material/Close";
|
import CloseIcon from "@mui/icons-material/Close";
|
||||||
|
import PropTypes from "prop-types";
|
||||||
|
|
||||||
function AnnouncementsDualButton({ subject, body, esc, primary }) {
|
const AnnouncementsDualButton = ({ subject, body, esc, primary }) => {
|
||||||
return (
|
return (
|
||||||
<div className="announcement-without-tile">
|
<div className="announcement-without-tile">
|
||||||
<div className="announcement-without-content">
|
<div className="announcement-without-content">
|
||||||
@@ -20,6 +21,13 @@ function AnnouncementsDualButton({ subject, body, esc, primary }) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
};
|
||||||
|
|
||||||
|
AnnouncementsDualButton.propTypes = {
|
||||||
|
subject: PropTypes.string.isRequired,
|
||||||
|
body: PropTypes.string.isRequired,
|
||||||
|
esc: PropTypes.string.isRequired,
|
||||||
|
primary: PropTypes.string.isRequired,
|
||||||
|
};
|
||||||
|
|
||||||
export default AnnouncementsDualButton;
|
export default AnnouncementsDualButton;
|
||||||
+9
@@ -1,6 +1,7 @@
|
|||||||
import "./announcementsDualButtonWithIcon.css";
|
import "./announcementsDualButtonWithIcon.css";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import CloseIcon from "@mui/icons-material/Close";
|
import CloseIcon from "@mui/icons-material/Close";
|
||||||
|
import PropTypes from "prop-types";
|
||||||
|
|
||||||
function AnnouncementsDualButtonWithIcon({
|
function AnnouncementsDualButtonWithIcon({
|
||||||
icon,
|
icon,
|
||||||
@@ -33,4 +34,12 @@ function AnnouncementsDualButtonWithIcon({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AnnouncementsDualButtonWithIcon.propTypes = {
|
||||||
|
icon: PropTypes.object,
|
||||||
|
subject: PropTypes.string,
|
||||||
|
body: PropTypes.string,
|
||||||
|
esc: PropTypes.string,
|
||||||
|
primary: PropTypes.string,
|
||||||
|
};
|
||||||
|
|
||||||
export default AnnouncementsDualButtonWithIcon;
|
export default AnnouncementsDualButtonWithIcon;
|
||||||
+3
-2
@@ -44,6 +44,7 @@
|
|||||||
.announcement-content-body {
|
.announcement-content-body {
|
||||||
font-size: var(--announcement-font-size-0);
|
font-size: var(--announcement-font-size-0);
|
||||||
color: var(--announcement-font-color-1);
|
color: var(--announcement-font-color-1);
|
||||||
|
font-weight: 300;
|
||||||
}
|
}
|
||||||
|
|
||||||
.announcement-content-controllers {
|
.announcement-content-controllers {
|
||||||
@@ -54,13 +55,13 @@
|
|||||||
|
|
||||||
.controllers-button-esc {
|
.controllers-button-esc {
|
||||||
font-size: var(--announcement-font-size-0);
|
font-size: var(--announcement-font-size-0);
|
||||||
font-weight: 500;
|
font-weight: 600;
|
||||||
margin-right: 12px;
|
margin-right: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.controllers-button-primary {
|
.controllers-button-primary {
|
||||||
font-size: var(--announcement-font-size-0);
|
font-size: var(--announcement-font-size-0);
|
||||||
font-weight: 500;
|
font-weight: 600;
|
||||||
color: var(--announcement-font-color-2);
|
color: var(--announcement-font-color-2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+7
-4
@@ -1,13 +1,12 @@
|
|||||||
import "./announcementsMessageBar.css";
|
import "./announcementsMessageBar.css";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import CloseIcon from "@mui/icons-material/Close";
|
import CloseIcon from "@mui/icons-material/Close";
|
||||||
|
import PropTypes from "prop-types";
|
||||||
|
|
||||||
function AnnouncementsMessageBar() {
|
function AnnouncementsMessageBar({ message }) {
|
||||||
return (
|
return (
|
||||||
<div className="announcement-tile">
|
<div className="announcement-tile">
|
||||||
<div className="announcement-messagebar-body">
|
<div className="announcement-messagebar-body">{message}</div>
|
||||||
New employee created successfully
|
|
||||||
</div>
|
|
||||||
<div className="announcement-close">
|
<div className="announcement-close">
|
||||||
<CloseIcon style={{ fill: "#98A2B3" }} />
|
<CloseIcon style={{ fill: "#98A2B3" }} />
|
||||||
</div>
|
</div>
|
||||||
@@ -15,4 +14,8 @@ function AnnouncementsMessageBar() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AnnouncementsMessageBar.propTypes = {
|
||||||
|
message: PropTypes.string.isRequired,
|
||||||
|
};
|
||||||
|
|
||||||
export default AnnouncementsMessageBar;
|
export default AnnouncementsMessageBar;
|
||||||
@@ -1,13 +1,20 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import "./serverStatus.css";
|
import "./serverStatus.css";
|
||||||
|
import PropTypes from "prop-types";
|
||||||
|
|
||||||
function ServerStatus({ title, value, state }) {
|
const ServerStatus = ({ title, value, state }) => {
|
||||||
return (
|
return (
|
||||||
<div className="server-status-tile">
|
<div className="server-status-tile">
|
||||||
<div className="server-status-tile-title">{title}</div>
|
<div className="server-status-tile-title">{title}</div>
|
||||||
<div className={`server-status-tile-value ` + " " + state}>{value}</div>
|
<div className={`server-status-tile-value ` + " " + state}>{value}</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
};
|
||||||
|
|
||||||
|
ServerStatus.propTypes = {
|
||||||
|
title: PropTypes.string.isRequired,
|
||||||
|
value: PropTypes.string.isRequired,
|
||||||
|
state: PropTypes.string.isRequired,
|
||||||
|
};
|
||||||
|
|
||||||
export default ServerStatus;
|
export default ServerStatus;
|
||||||
@@ -15,6 +15,7 @@
|
|||||||
.server-status-tile {
|
.server-status-tile {
|
||||||
width: 230px;
|
width: 230px;
|
||||||
margin: var(--spacing-general-0);
|
margin: var(--spacing-general-0);
|
||||||
|
margin-left: 10px;
|
||||||
padding: var(--spacing-general-1);
|
padding: var(--spacing-general-1);
|
||||||
border: 1px solid var(--color-border-0);
|
border: 1px solid var(--color-border-0);
|
||||||
border-radius: var(--border-radius-0);
|
border-radius: var(--border-radius-0);
|
||||||
|
|||||||
@@ -1,13 +1,19 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import "./statistic.css";
|
import "./statistic.css";
|
||||||
|
import PropTypes from "prop-types";
|
||||||
|
|
||||||
function Statistic({ title, value }) {
|
const Statistic = ({ title, value }) => {
|
||||||
return (
|
return (
|
||||||
<div className="statistic-tile">
|
<div className="statistic-tile">
|
||||||
<div className="statistic-tile-title">{title}</div>
|
<div className="statistic-tile-title">{title}</div>
|
||||||
<div className="statistic-tile-value">{value}</div>
|
<div className="statistic-tile-value">{value}</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
};
|
||||||
|
|
||||||
|
Statistic.propTypes = {
|
||||||
|
title: PropTypes.string.isRequired,
|
||||||
|
value: PropTypes.string.isRequired,
|
||||||
|
};
|
||||||
|
|
||||||
export default Statistic;
|
export default Statistic;
|
||||||
@@ -1,8 +1,9 @@
|
|||||||
import "./complexAlert.css";
|
import "./complexAlert.css";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import ErrorOutlineIcon from "@mui/icons-material/ErrorOutline";
|
import ErrorOutlineIcon from "@mui/icons-material/ErrorOutline";
|
||||||
|
import PropTypes from "prop-types";
|
||||||
|
|
||||||
function ComplexAlert({ theme }) {
|
const ComplexAlert = ({ theme }) => {
|
||||||
if (theme === "red") {
|
if (theme === "red") {
|
||||||
return (
|
return (
|
||||||
<div className="icon-holder-outer-red">
|
<div className="icon-holder-outer-red">
|
||||||
@@ -20,6 +21,10 @@ function ComplexAlert({ theme }) {
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
|
ComplexAlert.propTypes = {
|
||||||
|
theme: PropTypes.string.isRequired,
|
||||||
|
};
|
||||||
|
|
||||||
export default ComplexAlert;
|
export default ComplexAlert;
|
||||||
@@ -1,20 +1,33 @@
|
|||||||
import "./dualButtonPopupModal.css";
|
import "./dualButtonPopupModal.css";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
import PropTypes from "prop-types";
|
||||||
|
|
||||||
function DualButtonPopupModal({ open = true }) {
|
const DualButtonPopupModal = ({
|
||||||
|
open = true,
|
||||||
|
subject,
|
||||||
|
description,
|
||||||
|
esc,
|
||||||
|
save,
|
||||||
|
}) => {
|
||||||
return (
|
return (
|
||||||
<div className="dual-button-popup-modal-holder">
|
<div className="dual-button-popup-modal-holder">
|
||||||
<div className="dual-button-popup-modal-subject">Unsaved changes</div>
|
<div className="dual-button-popup-modal-subject">{subject}</div>
|
||||||
<div className="dual-button-popup-modal-description">
|
<div className="dual-button-popup-modal-description">{description}</div>
|
||||||
Do you want to save or discard changes?
|
|
||||||
</div>
|
|
||||||
<div className="dual-modal-spacing"></div>
|
<div className="dual-modal-spacing"></div>
|
||||||
<div className="dual-button-popup-modal-controllers">
|
<div className="dual-button-popup-modal-controllers">
|
||||||
<button className="transparent-discard-button">Discard</button>
|
<button className="transparent-discard-button">{esc}</button>
|
||||||
<button className="blue-save-button">Save changes</button>
|
<button className="blue-save-button">{save}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
};
|
||||||
|
|
||||||
|
DualButtonPopupModal.propTypes = {
|
||||||
|
open: PropTypes.bool,
|
||||||
|
subject: PropTypes.string.isRequired,
|
||||||
|
description: PropTypes.string.isRequired,
|
||||||
|
esc: PropTypes.string.isRequired,
|
||||||
|
save: PropTypes.string.isRequired,
|
||||||
|
};
|
||||||
|
|
||||||
export default DualButtonPopupModal;
|
export default DualButtonPopupModal;
|
||||||
@@ -21,7 +21,8 @@
|
|||||||
.dual-button-popup-modal-subject {
|
.dual-button-popup-modal-subject {
|
||||||
font-family: var(--popup-font-family-0);
|
font-family: var(--popup-font-family-0);
|
||||||
color: var(--popup-color-0);
|
color: var(--popup-color-0);
|
||||||
font-weight: 900;
|
font-weight: bolder;
|
||||||
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dual-button-popup-modal-description {
|
.dual-button-popup-modal-description {
|
||||||
@@ -52,6 +53,7 @@
|
|||||||
color: white;
|
color: white;
|
||||||
font-family: var(--popup-font-family-0);
|
font-family: var(--popup-font-family-0);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.transparent-discard-button {
|
.transparent-discard-button {
|
||||||
@@ -59,4 +61,5 @@
|
|||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
font-family: var(--popup-font-family-0);
|
font-family: var(--popup-font-family-0);
|
||||||
margin: 5px 10px;
|
margin: 5px 10px;
|
||||||
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
+11
-5
@@ -1,13 +1,13 @@
|
|||||||
import "./dualButtonPopupModalWithTextfields.css";
|
import "./dualButtonPopupModalWithTextfields.css";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import CloseIcon from "@mui/icons-material/Close";
|
import CloseIcon from "@mui/icons-material/Close";
|
||||||
import { TextField } from "@mui/material";
|
import PropTypes from "prop-types";
|
||||||
|
|
||||||
function DualButtonPopupModalWithTextfields() {
|
function DualButtonPopupModalWithTextfields({ title, esc, save }) {
|
||||||
return (
|
return (
|
||||||
<div className="popup-modal-holder">
|
<div className="popup-modal-holder">
|
||||||
<div className="popup-modal-header">
|
<div className="popup-modal-header">
|
||||||
<div className="popup-modal-title">Create new organization</div>
|
<div className="popup-modal-title">{title}</div>
|
||||||
<div className="popup-modal-close">
|
<div className="popup-modal-close">
|
||||||
<CloseIcon style={{ fill: "#98A2B3" }} />
|
<CloseIcon style={{ fill: "#98A2B3" }} />
|
||||||
</div>
|
</div>
|
||||||
@@ -17,13 +17,19 @@ function DualButtonPopupModalWithTextfields() {
|
|||||||
<div className="spacing-height"></div>
|
<div className="spacing-height"></div>
|
||||||
<div className="spacing-height"></div>
|
<div className="spacing-height"></div>
|
||||||
<div className="popup-modal-controllers">
|
<div className="popup-modal-controllers">
|
||||||
<button className="white-cancel-button">Cancel</button>
|
<button className="white-cancel-button">{esc}</button>
|
||||||
<button className="blue-save-button">Save</button>
|
<button className="blue-save-button">{save}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DualButtonPopupModalWithTextfields.propTypes = {
|
||||||
|
title: PropTypes.string.isRequired,
|
||||||
|
esc: PropTypes.string.isRequired,
|
||||||
|
save: PropTypes.string.isRequired,
|
||||||
|
};
|
||||||
|
|
||||||
export default DualButtonPopupModalWithTextfields;
|
export default DualButtonPopupModalWithTextfields;
|
||||||
|
|
||||||
function PopupModalTextfield() {
|
function PopupModalTextfield() {
|
||||||
|
|||||||
+2
-1
@@ -30,7 +30,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.popup-modal-input-title {
|
.popup-modal-input-title {
|
||||||
margin-bottom: 20px;
|
margin-bottom: 15px;
|
||||||
color: var(--popup-modal-with-input-title-color);
|
color: var(--popup-modal-with-input-title-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -57,4 +57,5 @@
|
|||||||
border: 1px solid var(--popup-color-with-input-border-1);
|
border: 1px solid var(--popup-color-with-input-border-1);
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
@@ -1,12 +1,14 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import "./descriptionTextField.css";
|
import "./descriptionTextField.css";
|
||||||
import { TextField } from "@mui/material";
|
import { TextField } from "@mui/material";
|
||||||
|
import PropTypes from "prop-types";
|
||||||
|
|
||||||
function DescriptionTextField({ hintText, hasError }) {
|
const DescriptionTextField = ({ hintText, hasError }) => {
|
||||||
return (
|
return (
|
||||||
<div className="description-field-holder">
|
<div className="description-field-holder">
|
||||||
<div className="text-field-title">Website</div>
|
<div className="text-field-title">Description</div>
|
||||||
<TextField
|
<TextField
|
||||||
|
id="description-field-area"
|
||||||
error={hasError}
|
error={hasError}
|
||||||
className="description-field-area"
|
className="description-field-area"
|
||||||
multiline
|
multiline
|
||||||
@@ -16,6 +18,11 @@ function DescriptionTextField({ hintText, hasError }) {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
};
|
||||||
|
|
||||||
|
DescriptionTextField.propTypes = {
|
||||||
|
hintText: PropTypes.string.isRequired,
|
||||||
|
hasError: PropTypes.bool.isRequired,
|
||||||
|
};
|
||||||
|
|
||||||
export default DescriptionTextField;
|
export default DescriptionTextField;
|
||||||
@@ -2,6 +2,7 @@
|
|||||||
--color-title-1: #344054;
|
--color-title-1: #344054;
|
||||||
--font-family-1: "Roboto", "Helvetica", "Arial", sans-serif;
|
--font-family-1: "Roboto", "Helvetica", "Arial", sans-serif;
|
||||||
--text-field-margin-0: 10px 20px;
|
--text-field-margin-0: 10px 20px;
|
||||||
|
--description-color-0: #344054;
|
||||||
}
|
}
|
||||||
|
|
||||||
.description-field-holder {
|
.description-field-holder {
|
||||||
@@ -14,9 +15,13 @@
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-family: var(--font-family-1);
|
font-family: var(--font-family-1);
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
|
font-size: 13px;
|
||||||
|
color: var(--description-color-0);
|
||||||
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.description-field-area {
|
.description-field-area {
|
||||||
|
min-width: 320px;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
}
|
}
|
||||||
@@ -30,3 +35,14 @@
|
|||||||
.with-error {
|
.with-error {
|
||||||
color: red;
|
color: red;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#description-field-area-helper-text {
|
||||||
|
margin-left: 0;
|
||||||
|
margin-top: 10px;
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#description-field-area {
|
||||||
|
min-width: 320px;
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
@@ -4,7 +4,7 @@ import { InputAdornment, TextField } from "@mui/material";
|
|||||||
import ErrorOutlineIcon from "@mui/icons-material/ErrorOutline";
|
import ErrorOutlineIcon from "@mui/icons-material/ErrorOutline";
|
||||||
import HelpOutlineIcon from "@mui/icons-material/HelpOutline";
|
import HelpOutlineIcon from "@mui/icons-material/HelpOutline";
|
||||||
|
|
||||||
function EmailTextField({
|
const EmailTextField = ({
|
||||||
id,
|
id,
|
||||||
label,
|
label,
|
||||||
variant,
|
variant,
|
||||||
@@ -12,10 +12,9 @@ function EmailTextField({
|
|||||||
icon,
|
icon,
|
||||||
helperText,
|
helperText,
|
||||||
error,
|
error,
|
||||||
}) {
|
}) => {
|
||||||
const [showIcon, setShowIcon] = useState(false);
|
const [showIcon, setShowIcon] = useState(false);
|
||||||
|
|
||||||
// State to control mouse hover effect
|
|
||||||
const handleMouseEnter = () => setShowIcon(true);
|
const handleMouseEnter = () => setShowIcon(true);
|
||||||
const handleMouseLeave = () => setShowIcon(false);
|
const handleMouseLeave = () => setShowIcon(false);
|
||||||
|
|
||||||
@@ -33,13 +32,26 @@ function EmailTextField({
|
|||||||
InputProps={{
|
InputProps={{
|
||||||
endAdornment: (
|
endAdornment: (
|
||||||
<InputAdornment position="end">
|
<InputAdornment position="end">
|
||||||
{error && showIcon && (
|
<div className="icon-holder">
|
||||||
<ErrorOutlineIcon style={{ fill: "red" }} />
|
{error && showIcon && (
|
||||||
)}
|
<ErrorOutlineIcon
|
||||||
{error && !showIcon && (
|
className="text-field-icon"
|
||||||
<ErrorOutlineIcon style={{ fill: "red" }} />
|
style={{ fill: "red", width: "16px", height: "16px" }}
|
||||||
)}
|
/>
|
||||||
{!error && showIcon && <HelpOutlineIcon />}
|
)}
|
||||||
|
{error && !showIcon && (
|
||||||
|
<ErrorOutlineIcon
|
||||||
|
className="text-field-icon"
|
||||||
|
style={{ fill: "red", width: "16px", height: "16px" }}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
{!error && showIcon && (
|
||||||
|
<HelpOutlineIcon
|
||||||
|
className="text-field-icon"
|
||||||
|
style={{ width: "16px", height: "16px" }}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
</InputAdornment>
|
</InputAdornment>
|
||||||
),
|
),
|
||||||
}}
|
}}
|
||||||
@@ -50,6 +62,6 @@ function EmailTextField({
|
|||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
};
|
||||||
|
|
||||||
export default EmailTextField;
|
export default EmailTextField;
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
#outlined-basic {
|
:root {
|
||||||
width: 320px;
|
--textfield-color-0: #344054;
|
||||||
font-size: 13px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.email-text-field {
|
.email-text-field {
|
||||||
@@ -8,8 +7,36 @@
|
|||||||
margin: 10px 20px;
|
margin: 10px 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#outlined-basic {
|
||||||
|
width: 320px;
|
||||||
|
height: 14px;
|
||||||
|
font-size: 13px;
|
||||||
|
padding: 8px 12px;
|
||||||
|
}
|
||||||
|
|
||||||
.email-text-field-title {
|
.email-text-field-title {
|
||||||
font-family: "Roboto", "Helvetica", "Arial", sans-serif;
|
font-family: "Roboto", "Helvetica", "Arial", sans-serif;
|
||||||
margin: 0 20px;
|
margin: 0 20px;
|
||||||
margin-top: 30px;
|
margin-top: 30px;
|
||||||
|
font-size: 13px;
|
||||||
|
color: var(--textfield-color-0);
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
#outlined-basic-helper-text {
|
||||||
|
margin-left: 0;
|
||||||
|
margin-top: 10px;
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-field-icon {
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-holder {
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
@@ -3,11 +3,11 @@ import "./websiteTextField.css";
|
|||||||
import HelpOutlineIcon from "@mui/icons-material/HelpOutline";
|
import HelpOutlineIcon from "@mui/icons-material/HelpOutline";
|
||||||
import ContentCopyIcon from "@mui/icons-material/ContentCopy";
|
import ContentCopyIcon from "@mui/icons-material/ContentCopy";
|
||||||
|
|
||||||
function WebsiteTextField({
|
const WebsiteTextField = ({
|
||||||
showHelp = true,
|
showHelp = true,
|
||||||
hasCopyButton = false,
|
hasCopyButton = false,
|
||||||
hintText,
|
hintText,
|
||||||
}) {
|
}) => {
|
||||||
const [copied, setCopied] = useState(false);
|
const [copied, setCopied] = useState(false);
|
||||||
|
|
||||||
const handleCopy = () => {
|
const handleCopy = () => {
|
||||||
@@ -19,9 +19,7 @@ function WebsiteTextField({
|
|||||||
<>
|
<>
|
||||||
<div className="website-textfield-title">Website</div>
|
<div className="website-textfield-title">Website</div>
|
||||||
<div className="website-textfield">
|
<div className="website-textfield">
|
||||||
<label className="website-label" htmlFor="website">
|
<label className="website-label">http://</label>
|
||||||
http://
|
|
||||||
</label>
|
|
||||||
<input
|
<input
|
||||||
type="url"
|
type="url"
|
||||||
name="website-url"
|
name="website-url"
|
||||||
@@ -41,14 +39,17 @@ function WebsiteTextField({
|
|||||||
)}
|
)}
|
||||||
{hasCopyButton && (
|
{hasCopyButton && (
|
||||||
<div className="copy-to-clipboard-button" onClick={handleCopy}>
|
<div className="copy-to-clipboard-button" onClick={handleCopy}>
|
||||||
<ContentCopyIcon className="copy-icon" />
|
<ContentCopyIcon
|
||||||
<span>{copied ? " Copied " : " Copy "}</span>
|
className="copy-icon"
|
||||||
|
style={{ width: "20px", height: "20px" }}
|
||||||
|
/>
|
||||||
|
<span className="">{copied ? " Copied " : " Copy "}</span>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<label className="website-textfield-hint">{hintText}</label>
|
<label className="website-textfield-hint">{hintText}</label>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
};
|
||||||
|
|
||||||
export default WebsiteTextField;
|
export default WebsiteTextField;
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
:root {
|
:root {
|
||||||
|
--website-color-0: #344054;
|
||||||
--border-color: #d0d5dd;
|
--border-color: #d0d5dd;
|
||||||
--label-font-color: #475467;
|
--label-font-color: #475467;
|
||||||
--icon-color: #98a2b3;
|
--icon-color: #98a2b3;
|
||||||
@@ -11,6 +12,9 @@
|
|||||||
font-family: "Roboto", "Helvetica", "Arial", sans-serif;
|
font-family: "Roboto", "Helvetica", "Arial", sans-serif;
|
||||||
margin: 0 20px;
|
margin: 0 20px;
|
||||||
margin-top: 30px;
|
margin-top: 30px;
|
||||||
|
font-size: 13px;
|
||||||
|
color: var(--website-color-0);
|
||||||
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.website-textfield {
|
.website-textfield {
|
||||||
@@ -28,11 +32,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.website-label {
|
.website-label {
|
||||||
height: 33px;
|
padding: 6px 20px 6px 10px;
|
||||||
padding: 5px 20px 5px 10px;
|
|
||||||
border: solid 1px var(--border-color);
|
border: solid 1px var(--border-color);
|
||||||
border-right: none;
|
border-right: none;
|
||||||
border-radius: 8px 0 0 8px;
|
border-radius: 4px 0 0 4px;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -43,8 +46,8 @@
|
|||||||
|
|
||||||
.website-url {
|
.website-url {
|
||||||
width: 248px;
|
width: 248px;
|
||||||
height: 33px;
|
height: 31.5px;
|
||||||
padding: 5px 15px;
|
padding: 0px 15px;
|
||||||
border: solid 1px var(--border-color);
|
border: solid 1px var(--border-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -61,8 +64,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.copy-to-clipboard-button {
|
.copy-to-clipboard-button {
|
||||||
height: 33px;
|
padding: 5.5px 20px 6px 10px;
|
||||||
padding: 5px 20px 5px 10px;
|
|
||||||
border: solid 1px var(--border-color);
|
border: solid 1px var(--border-color);
|
||||||
border-left: none;
|
border-left: none;
|
||||||
border-radius: 0 8px 8px 0;
|
border-radius: 0 8px 8px 0;
|
||||||
@@ -76,7 +78,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.copy-icon {
|
.copy-icon {
|
||||||
margin-right: 10px;
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.with-no-copy-button {
|
.with-no-copy-button {
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import "./tooltipWithTail.css";
|
import "./tooltipWithTail.css";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { styled } from "@mui/material/styles";
|
import { styled } from "@mui/material/styles";
|
||||||
import Button from "@mui/material/Button";
|
|
||||||
import Tooltip, { TooltipProps, tooltipClasses } from "@mui/material/Tooltip";
|
import Tooltip, { TooltipProps, tooltipClasses } from "@mui/material/Tooltip";
|
||||||
import HelpOutlineIcon from "@mui/icons-material/HelpOutline";
|
import HelpOutlineIcon from "@mui/icons-material/HelpOutline";
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user