@dev-blinq/ui-systems 1.0.4 → 1.0.6
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 +1 -47
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -47
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -1
- package/build +0 -22
- package/index.html +0 -14
- package/public/colors.css +0 -141
- package/src/components/CustomButton/CustomButton.tsx +0 -42
- package/src/components/CustomButton/CustomButtonProps.ts +0 -12
- package/src/components/CustomButton/CustomButtonTypes.ts +0 -28
- package/src/components/CustomButton/css/color/default.css +0 -84
- package/src/components/CustomButton/css/color/disabled.css +0 -58
- package/src/components/CustomButton/css/color/focused.css +0 -39
- package/src/components/CustomButton/css/color/hover.css +0 -39
- package/src/components/CustomButton/css/customButton.css +0 -73
- package/src/components/CustomButton/css/index.css +0 -6
- package/src/components/CustomButton/css/size.css +0 -23
- package/src/components/CustomCheckbox.tsx +0 -24
- package/src/components/CustomInput/ChooseInput.tsx +0 -36
- package/src/components/CustomInput/CustomInput.tsx +0 -43
- package/src/components/CustomInput/CustomInputProps.ts +0 -40
- package/src/components/CustomInput/css/index.css +0 -7
- package/src/components/CustomInput/css/input.css +0 -76
- package/src/components/CustomInput/css/size.css +0 -3
- package/src/components/CustomInput/css/state/default.css +0 -0
- package/src/components/CustomInput/css/state/disabled.css +0 -5
- package/src/components/CustomInput/css/state/error.css +0 -3
- package/src/components/CustomInput/css/state/filled.css +0 -0
- package/src/components/CustomInput/css/state/focused.css +0 -6
- package/src/components/CustomInput/css/state/hover.css +0 -5
- package/src/components/CustomInput/types/Action.tsx +0 -34
- package/src/components/CustomInput/types/CreditCard.tsx +0 -25
- package/src/components/CustomInput/types/Currency.tsx +0 -68
- package/src/components/CustomInput/types/Date.tsx +0 -20
- package/src/components/CustomInput/types/Link.tsx +0 -32
- package/src/components/CustomInput/types/Number.tsx +0 -23
- package/src/components/CustomInput/types/Password.tsx +0 -30
- package/src/components/CustomInput/types/Telephone.tsx +0 -0
- package/src/components/CustomInput/types/Text.tsx +0 -27
- package/src/components/Typography/Typography.tsx +0 -28
- package/src/components/Typography/css/bold.css +0 -20
- package/src/components/Typography/css/category/display.css +0 -20
- package/src/components/Typography/css/category/heading.css +0 -41
- package/src/components/Typography/css/category/text.css +0 -48
- package/src/components/Typography/css/index.css +0 -4
- package/src/icons/details.tsx +0 -10
- package/src/icons/index.tsx +0 -2
- package/src/icons/lock.tsx +0 -29
- package/src/icons/mail.svg +0 -4
- package/src/icons/mail.tsx +0 -23
- package/src/icons/password-eye.tsx +0 -10
- package/src/index.ts +0 -3
- package/src/playground/App.tsx +0 -105
- package/src/playground/main.tsx +0 -9
- package/src/svg.d.ts +0 -5
- package/tsconfig.json +0 -17
- package/tsup.config.ts +0 -10
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { CustomInputProps, InputContext } from "./CustomInputProps";
|
|
3
|
-
import "./css/index.css";
|
|
4
|
-
import { DetailsIcon } from "../../icons/details";
|
|
5
|
-
import TypographyCustom from "../Typography/Typography";
|
|
6
|
-
import { ChooseInput } from "./ChooseInput";
|
|
7
|
-
|
|
8
|
-
const CustomInput: React.FC<CustomInputProps> = ({
|
|
9
|
-
size = "lg",
|
|
10
|
-
type = "default",
|
|
11
|
-
disabled = false,
|
|
12
|
-
label = "",
|
|
13
|
-
errExists = false,
|
|
14
|
-
placeholder,
|
|
15
|
-
leftIcon,
|
|
16
|
-
rightIcon,
|
|
17
|
-
style,
|
|
18
|
-
onAction,
|
|
19
|
-
...props
|
|
20
|
-
}) => {
|
|
21
|
-
const context: InputContext = {
|
|
22
|
-
type,
|
|
23
|
-
placeholder,
|
|
24
|
-
disabled,
|
|
25
|
-
errExists,
|
|
26
|
-
leftIcon,
|
|
27
|
-
rightIcon,
|
|
28
|
-
onAction, // application if type is action
|
|
29
|
-
...props,
|
|
30
|
-
};
|
|
31
|
-
return (
|
|
32
|
-
<div style={style}>
|
|
33
|
-
{label && (
|
|
34
|
-
<TypographyCustom category="text" Size="sm" bold="semibold">
|
|
35
|
-
{label}
|
|
36
|
-
</TypographyCustom>
|
|
37
|
-
)}
|
|
38
|
-
<ChooseInput {...context} />
|
|
39
|
-
</div>
|
|
40
|
-
);
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export default CustomInput;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { ReactNode, CSSProperties } from "react";
|
|
2
|
-
// import inputprop from mui that will be extended by custominputprops
|
|
3
|
-
import { InputProps } from "@mui/material";
|
|
4
|
-
|
|
5
|
-
export type Size = "md" | "lg";
|
|
6
|
-
export type Type =
|
|
7
|
-
| "default"
|
|
8
|
-
| "action"
|
|
9
|
-
| "currency"
|
|
10
|
-
| "creditCard"
|
|
11
|
-
| "date"
|
|
12
|
-
| "link"
|
|
13
|
-
| "password"
|
|
14
|
-
| "search"
|
|
15
|
-
| "tel"
|
|
16
|
-
| "number";
|
|
17
|
-
export interface CustomInputProps {
|
|
18
|
-
Size?: Size;
|
|
19
|
-
type?: Type;
|
|
20
|
-
label?: string;
|
|
21
|
-
disabled?: boolean;
|
|
22
|
-
errExists?: boolean;
|
|
23
|
-
placeholder: string;
|
|
24
|
-
leftIcon?: any; //ReactNode
|
|
25
|
-
rightIcon?: any; //ReactNode
|
|
26
|
-
onAction?: () => void;
|
|
27
|
-
style?: CSSProperties;
|
|
28
|
-
[key: string]: any;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export interface InputContext {
|
|
32
|
-
type: string;
|
|
33
|
-
placeholder: string;
|
|
34
|
-
disabled: boolean;
|
|
35
|
-
errExists: boolean;
|
|
36
|
-
leftIcon?: any; //ReactNode
|
|
37
|
-
rightIcon?: any; //ReactNode
|
|
38
|
-
onAction?: (text: string | undefined) => void;
|
|
39
|
-
[key: string]: any;
|
|
40
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
.custom-input {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: row;
|
|
4
|
-
padding: 12px;
|
|
5
|
-
align-items: center;
|
|
6
|
-
gap: 12px;
|
|
7
|
-
width: 296px;
|
|
8
|
-
align-self: stretch;
|
|
9
|
-
border-radius: var(--border-radius-radius-pre-lg, 12px);
|
|
10
|
-
|
|
11
|
-
border: 1px solid var(--border-default, #e6e6e6);
|
|
12
|
-
background: var(--surface-white, #fff);
|
|
13
|
-
|
|
14
|
-
/* Shadow/xs */
|
|
15
|
-
box-shadow: 0px 1px 2px 0px rgba(23, 23, 23, 0.05);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.custom-input input {
|
|
19
|
-
width: 100%;
|
|
20
|
-
border: none;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.custom-input input::placeholder {
|
|
24
|
-
color: var(--text-disabled, #939197);
|
|
25
|
-
font-weight: 500;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.custom-input input:hover,
|
|
29
|
-
.custom-input input:focus,
|
|
30
|
-
.custom-input input:active {
|
|
31
|
-
border: none;
|
|
32
|
-
outline: none;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.custom-input .left-icon,
|
|
36
|
-
.custom-input .right-icon {
|
|
37
|
-
display: flex;
|
|
38
|
-
align-items: center;
|
|
39
|
-
justify-content: center;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.custom-input input {
|
|
43
|
-
font-family: var(--font-family);
|
|
44
|
-
color: var(--text-primary, #080808);
|
|
45
|
-
font-weight: 600;
|
|
46
|
-
font-size: 14px;
|
|
47
|
-
font-style: normal;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.custom-input .grey-box {
|
|
51
|
-
margin: -12px;
|
|
52
|
-
padding: 12px;
|
|
53
|
-
gap: 6px;
|
|
54
|
-
display: flex;
|
|
55
|
-
flex-direction: row;
|
|
56
|
-
background: #f9f9f9;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.custom-input .grey-right-box {
|
|
60
|
-
padding: 12px;
|
|
61
|
-
border-top-right-radius: 12px;
|
|
62
|
-
border-bottom-right-radius: 12px;
|
|
63
|
-
border-left: 1px solid #e6e6e6;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.custom-input .grey-left-box {
|
|
67
|
-
padding: 12px 14px;
|
|
68
|
-
border-top-left-radius: 12px;
|
|
69
|
-
border-bottom-left-radius: 12px;
|
|
70
|
-
border-right: 1px solid #e6e6e6;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.custom-input select:focus {
|
|
74
|
-
border: none;
|
|
75
|
-
outline: none;
|
|
76
|
-
}
|
|
File without changes
|
|
File without changes
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { InputContext } from "../CustomInputProps";
|
|
2
|
-
import TypographyCustom from "../../Typography/Typography";
|
|
3
|
-
import React, { useRef } from "react";
|
|
4
|
-
|
|
5
|
-
export const ActionInput = (context: InputContext) => {
|
|
6
|
-
const inputRef = useRef<HTMLInputElement>(null);
|
|
7
|
-
return (
|
|
8
|
-
<div className="custom-input" data-type={context.type} data-error={context.errExists}>
|
|
9
|
-
{/* {context.leftIcon && <div className="left-icon">{context.leftIcon}</div>} */}
|
|
10
|
-
{context.leftIcon && <img src={context.leftIcon} alt="icon" />}
|
|
11
|
-
<input
|
|
12
|
-
type="text"
|
|
13
|
-
placeholder={context.placeholder}
|
|
14
|
-
disabled={context.disabled}
|
|
15
|
-
ref={inputRef}
|
|
16
|
-
{...context.props}
|
|
17
|
-
/>
|
|
18
|
-
<div className="grey-box grey-right-box">
|
|
19
|
-
<TypographyCustom
|
|
20
|
-
category="text"
|
|
21
|
-
Size="sm"
|
|
22
|
-
bold="medium"
|
|
23
|
-
onClick={() => {
|
|
24
|
-
context.onAction && context.onAction(inputRef.current?.value);
|
|
25
|
-
}}
|
|
26
|
-
>
|
|
27
|
-
{context.actionLabel}
|
|
28
|
-
</TypographyCustom>
|
|
29
|
-
{/* {context.rightIcon && <div className="right-icon">{context.rightIcon}</div>} */}
|
|
30
|
-
{context.rightIcon && <img src={context.rightIcon} alt="icon" />}
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
|
-
);
|
|
34
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { InputContext } from "../CustomInputProps";
|
|
2
|
-
import { DetailsIcon } from "../../../icons/details";
|
|
3
|
-
export const CreditCardInput = (context: InputContext) => {
|
|
4
|
-
return (
|
|
5
|
-
<div className="custom-input" data-type={context.type} data-error={context.errExists}>
|
|
6
|
-
<input
|
|
7
|
-
type="text"
|
|
8
|
-
placeholder={"0000 0000 0000 0000"}
|
|
9
|
-
disabled={context.disabled}
|
|
10
|
-
{...context.props}
|
|
11
|
-
style={{
|
|
12
|
-
fontFamily: "var(--font-family)",
|
|
13
|
-
color: "var(--text-primary, #080808)",
|
|
14
|
-
fontWeight: 600,
|
|
15
|
-
fontSize: "14px",
|
|
16
|
-
fontStyle: "normal",
|
|
17
|
-
}}
|
|
18
|
-
/>
|
|
19
|
-
<div className="right-icon">
|
|
20
|
-
{" "}
|
|
21
|
-
<DetailsIcon />
|
|
22
|
-
</div>
|
|
23
|
-
</div>
|
|
24
|
-
);
|
|
25
|
-
};
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { InputContext } from "../CustomInputProps";
|
|
2
|
-
import React, { useState, useEffect } from "react";
|
|
3
|
-
import { countries } from "countries-list";
|
|
4
|
-
import getSymbolFromCurrency from "currency-symbol-map";
|
|
5
|
-
import TypographyCustom from "../../Typography/Typography";
|
|
6
|
-
|
|
7
|
-
export const CurrencyInput = (context: InputContext) => {
|
|
8
|
-
const [amount, setAmount] = useState<string>("");
|
|
9
|
-
const [selectedCurrency, setSelectedCurrency] = useState<string>("USD");
|
|
10
|
-
const [countryCurrencies, setCountryCurrencies] = useState<string[]>([]);
|
|
11
|
-
const inputRef = React.useRef<HTMLInputElement>(null);
|
|
12
|
-
|
|
13
|
-
useEffect(() => {
|
|
14
|
-
// Create an array of unique currencies
|
|
15
|
-
const uniqueCurrencies = [...new Set(Object.values(countries).map((country: any) => country.currency))];
|
|
16
|
-
setCountryCurrencies(uniqueCurrencies);
|
|
17
|
-
}, []);
|
|
18
|
-
|
|
19
|
-
const handleAmountChange = (e: React.ChangeEvent<HTMLInputElement>) => {
|
|
20
|
-
setAmount(e.target.value);
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
const handleCurrencyChange = (e: React.ChangeEvent<HTMLSelectElement>) => {
|
|
24
|
-
setSelectedCurrency(e.target.value);
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
return (
|
|
28
|
-
<div className="currency-input-container">
|
|
29
|
-
<div className="custom-input" data-type={context.type} data-error={context.errExists}>
|
|
30
|
-
<div className="grey-box grey-left-box">
|
|
31
|
-
<TypographyCustom category="text" Size="sm" bold="semibold">
|
|
32
|
-
{getSymbolFromCurrency(selectedCurrency) || "$"}
|
|
33
|
-
</TypographyCustom>
|
|
34
|
-
</div>
|
|
35
|
-
|
|
36
|
-
<input
|
|
37
|
-
type="text"
|
|
38
|
-
placeholder={"amount"}
|
|
39
|
-
style={{ marginLeft: "12px" }}
|
|
40
|
-
onChange={handleAmountChange}
|
|
41
|
-
disabled={context.disabled}
|
|
42
|
-
ref={inputRef}
|
|
43
|
-
{...context.props}
|
|
44
|
-
/>
|
|
45
|
-
<div className="grey-box grey-right-box">
|
|
46
|
-
<select
|
|
47
|
-
value={selectedCurrency}
|
|
48
|
-
onChange={handleCurrencyChange}
|
|
49
|
-
className="currency-select"
|
|
50
|
-
style={{
|
|
51
|
-
fontFamily: "var(--font-family)",
|
|
52
|
-
fontWeight: "500",
|
|
53
|
-
width: "55px",
|
|
54
|
-
border: "none",
|
|
55
|
-
background: "transparent",
|
|
56
|
-
}}
|
|
57
|
-
>
|
|
58
|
-
{countryCurrencies.map((currency) => (
|
|
59
|
-
<option key={currency} value={currency}>
|
|
60
|
-
{currency}
|
|
61
|
-
</option>
|
|
62
|
-
))}
|
|
63
|
-
</select>
|
|
64
|
-
</div>
|
|
65
|
-
</div>
|
|
66
|
-
</div>
|
|
67
|
-
);
|
|
68
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { InputContext } from "../CustomInputProps";
|
|
2
|
-
export const DateInput = (context: InputContext) => {
|
|
3
|
-
return (
|
|
4
|
-
<div className="custom-input" data-type={context.type} data-error={context.errExists}>
|
|
5
|
-
<input
|
|
6
|
-
type="date"
|
|
7
|
-
placeholder={context.placeholder}
|
|
8
|
-
disabled={context.disabled}
|
|
9
|
-
{...context.props}
|
|
10
|
-
style={{
|
|
11
|
-
fontFamily: "var(--font-family)",
|
|
12
|
-
color: "var(--text-primary, #080808)",
|
|
13
|
-
fontWeight: 600,
|
|
14
|
-
fontSize: "14px",
|
|
15
|
-
fontStyle: "normal",
|
|
16
|
-
}}
|
|
17
|
-
/>
|
|
18
|
-
</div>
|
|
19
|
-
);
|
|
20
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { InputContext } from "../CustomInputProps";
|
|
2
|
-
import { DetailsIcon } from "../../../icons/details";
|
|
3
|
-
import TypographyCustom from "../../Typography/Typography";
|
|
4
|
-
export const LinkInput = (context: InputContext) => {
|
|
5
|
-
return (
|
|
6
|
-
<div className="custom-input" data-type={context.type} data-error={context.errExists}>
|
|
7
|
-
<div className="grey-box grey-left-box">
|
|
8
|
-
<TypographyCustom category="text" Size="sm" bold="medium">
|
|
9
|
-
https://
|
|
10
|
-
</TypographyCustom>
|
|
11
|
-
</div>
|
|
12
|
-
<input
|
|
13
|
-
type="text"
|
|
14
|
-
placeholder="Link Text"
|
|
15
|
-
disabled={context.disabled}
|
|
16
|
-
{...context.props}
|
|
17
|
-
style={{
|
|
18
|
-
fontFamily: "var(--font-family)",
|
|
19
|
-
color: "var(--text-primary, #080808)",
|
|
20
|
-
fontWeight: 600,
|
|
21
|
-
fontSize: "14px",
|
|
22
|
-
fontStyle: "normal",
|
|
23
|
-
marginLeft: "12px",
|
|
24
|
-
}}
|
|
25
|
-
/>
|
|
26
|
-
<div className="right-icon">
|
|
27
|
-
{/* {context.rightIcon ? context.rightIcon : <DetailsIcon />} */}
|
|
28
|
-
{context.rightIcon ? <img src={context.rightIcon} alt="icon" /> : <DetailsIcon />}
|
|
29
|
-
</div>
|
|
30
|
-
</div>
|
|
31
|
-
);
|
|
32
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { InputContext } from "../CustomInputProps";
|
|
2
|
-
|
|
3
|
-
export const NumberInput = (context: InputContext) => {
|
|
4
|
-
return (
|
|
5
|
-
<div className="custom-input" data-type={context.type} data-error={context.errExists}>
|
|
6
|
-
{/* {context.leftIcon && <div className="left-icon">{context.leftIcon}</div>} */}
|
|
7
|
-
{context.leftIcon && <img src={context.leftIcon} alt="icon" />}
|
|
8
|
-
<input
|
|
9
|
-
type="number"
|
|
10
|
-
placeholder={context.placeholder ? context.placeholder : "Enter Value"}
|
|
11
|
-
disabled={context.disabled}
|
|
12
|
-
{...context.props}
|
|
13
|
-
style={{
|
|
14
|
-
fontFamily: "var(--font-family)",
|
|
15
|
-
color: "var(--text-primary, #080808)",
|
|
16
|
-
fontWeight: 600,
|
|
17
|
-
fontSize: "14px",
|
|
18
|
-
fontStyle: "normal",
|
|
19
|
-
}}
|
|
20
|
-
/>
|
|
21
|
-
</div>
|
|
22
|
-
);
|
|
23
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { InputContext } from "../CustomInputProps";
|
|
2
|
-
import { LockIcon } from "../../../icons/lock";
|
|
3
|
-
import { PasswordEyeIcon } from "../../../icons/password-eye";
|
|
4
|
-
|
|
5
|
-
export const PasswordInput = (context: InputContext) => {
|
|
6
|
-
return (
|
|
7
|
-
<div className="custom-input" data-type={context.type} data-error={context.errExists}>
|
|
8
|
-
<div className="left-icon">
|
|
9
|
-
<LockIcon />
|
|
10
|
-
</div>
|
|
11
|
-
<input
|
|
12
|
-
type="password"
|
|
13
|
-
placeholder="*****************"
|
|
14
|
-
disabled={context.disabled}
|
|
15
|
-
{...context.props}
|
|
16
|
-
style={{
|
|
17
|
-
fontFamily: "var(--font-family)",
|
|
18
|
-
color: "var(--text-primary, #080808)",
|
|
19
|
-
fontWeight: 600,
|
|
20
|
-
fontSize: "14px",
|
|
21
|
-
fontStyle: "normal",
|
|
22
|
-
}}
|
|
23
|
-
/>
|
|
24
|
-
<div className="right-icon">
|
|
25
|
-
{/* {context.rightIcon ? context.rightIcon : <PasswordEyeIcon />} */}
|
|
26
|
-
{context.rightIcon ? <img src={context.rightIcon} alt="icon" /> : <PasswordEyeIcon />}
|
|
27
|
-
</div>
|
|
28
|
-
</div>
|
|
29
|
-
);
|
|
30
|
-
};
|
|
File without changes
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { InputContext } from "../CustomInputProps";
|
|
2
|
-
import { DetailsIcon } from "../../../icons/details";
|
|
3
|
-
export const DefaultInput = (context: InputContext) => {
|
|
4
|
-
return (
|
|
5
|
-
<div className="custom-input" data-type={context.type} data-error={context.errExists}>
|
|
6
|
-
{/* {context.leftIcon && <div className="left-icon">{context.leftIcon}</div>} */}
|
|
7
|
-
{context.leftIcon && <img src={context.leftIcon} alt="icon" />}
|
|
8
|
-
<input
|
|
9
|
-
type="text"
|
|
10
|
-
placeholder={context.placeholder}
|
|
11
|
-
disabled={context.disabled}
|
|
12
|
-
{...context.props}
|
|
13
|
-
style={{
|
|
14
|
-
fontFamily: "var(--font-family)",
|
|
15
|
-
color: "var(--text-primary, #080808)",
|
|
16
|
-
fontWeight: 600,
|
|
17
|
-
fontSize: "14px",
|
|
18
|
-
fontStyle: "normal",
|
|
19
|
-
}}
|
|
20
|
-
/>
|
|
21
|
-
<div className="right-icon">
|
|
22
|
-
{/* {context.rightIcon ? context.rightIcon : <DetailsIcon />} */}
|
|
23
|
-
{context.rightIcon ? <img src={context.rightIcon} alt="icon" /> : <DetailsIcon />}
|
|
24
|
-
</div>
|
|
25
|
-
</div>
|
|
26
|
-
);
|
|
27
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Typography, TypographyProps } from "@mui/material";
|
|
2
|
-
import "./css/index.css";
|
|
3
|
-
type category = "display" | "heading" | "text";
|
|
4
|
-
type size = "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
|
|
5
|
-
type bold = "semibold" | "bold" | "extrabold" | "medium";
|
|
6
|
-
|
|
7
|
-
interface TypegraphyCustomType extends TypographyProps {
|
|
8
|
-
Size?: size;
|
|
9
|
-
category?: category;
|
|
10
|
-
bold?: bold;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const TypographyCustom: React.FC<TypegraphyCustomType> = ({ children, Size, category, bold, sx, ...props }) => {
|
|
14
|
-
return (
|
|
15
|
-
<Typography
|
|
16
|
-
className="TypographyCustom"
|
|
17
|
-
data-size={Size}
|
|
18
|
-
data-category={category}
|
|
19
|
-
data-bold={bold}
|
|
20
|
-
sx={{ fontFamily: "var(--font-family), sans-serif", ...sx }}
|
|
21
|
-
{...props}
|
|
22
|
-
>
|
|
23
|
-
{children}
|
|
24
|
-
</Typography>
|
|
25
|
-
);
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export default TypographyCustom;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
.TypographyCustom {
|
|
2
|
-
color: var(--Gray-110, var(--colors-greyscale-110, #2d2b32));
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
/* text bold css*/
|
|
6
|
-
.TypographyCustom[data-bold="extrabold"] {
|
|
7
|
-
font-weight: 800;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.TypographyCustom[data-bold="bold"] {
|
|
11
|
-
font-weight: 700;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.TypographyCustom[data-bold="semibold"] {
|
|
15
|
-
font-weight: 600;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.TypographyCustom[data-bold="medium"] {
|
|
19
|
-
font-weight: 500;
|
|
20
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
.TypographyCustom[data-category="display"][data-size="lg"] {
|
|
2
|
-
font-size: 180px;
|
|
3
|
-
font-style: normal;
|
|
4
|
-
line-height: 188px; /* 104.444% */
|
|
5
|
-
letter-spacing: -9px;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.TypographyCustom[data-category="display"][data-size="md"] {
|
|
9
|
-
font-size: 128px;
|
|
10
|
-
font-style: normal;
|
|
11
|
-
line-height: 136px; /* 106.25% */
|
|
12
|
-
letter-spacing: -5.12px;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.TypographyCustom[data-category="display"][data-size="sm"] {
|
|
16
|
-
font-size: 96px;
|
|
17
|
-
font-style: normal;
|
|
18
|
-
line-height: 104px; /* 108.333% */
|
|
19
|
-
letter-spacing: -2.88px;
|
|
20
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
.TypographyCustom[data-category="heading"][data-size="xxl"] {
|
|
2
|
-
font-size: 72px;
|
|
3
|
-
font-style: normal;
|
|
4
|
-
line-height: 80px; /* 111.111% */
|
|
5
|
-
letter-spacing: -1.44px;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.TypographyCustom[data-category="heading"][data-size="xl"] {
|
|
9
|
-
font-size: 60px;
|
|
10
|
-
font-style: normal;
|
|
11
|
-
line-height: 68px; /* 113.333% */
|
|
12
|
-
letter-spacing: -1.08px;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.TypographyCustom[data-category="heading"][data-size="lg"] {
|
|
16
|
-
font-size: 48px;
|
|
17
|
-
font-style: normal;
|
|
18
|
-
line-height: 56px; /* 116.667% */
|
|
19
|
-
letter-spacing: -0.768px;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.TypographyCustom[data-category="heading"][data-size="md"] {
|
|
23
|
-
font-size: 36px;
|
|
24
|
-
font-style: normal;
|
|
25
|
-
line-height: 44px; /* 122.222% */
|
|
26
|
-
letter-spacing: -0.504px;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.TypographyCustom[data-category="heading"][data-size="sm"] {
|
|
30
|
-
font-size: 30px;
|
|
31
|
-
font-style: normal;
|
|
32
|
-
line-height: 38px; /* 126.667% */
|
|
33
|
-
letter-spacing: -0.39px;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.TypographyCustom[data-category="heading"][data-size="xs"] {
|
|
37
|
-
font-size: 24px;
|
|
38
|
-
font-style: normal;
|
|
39
|
-
line-height: 32px; /* 133.333% */
|
|
40
|
-
letter-spacing: -0.288px;
|
|
41
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
.TypographyCustom[data-category="text"][data-size="xxl"] {
|
|
2
|
-
font-size: 24px;
|
|
3
|
-
font-style: normal;
|
|
4
|
-
line-height: 32px; /* 133.333% */
|
|
5
|
-
letter-spacing: -0.288px;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.TypographyCustom[data-category="text"][data-size="xl"] {
|
|
9
|
-
font-size: 20px;
|
|
10
|
-
font-style: normal;
|
|
11
|
-
line-height: 28px; /* 140% */
|
|
12
|
-
letter-spacing: -0.2px;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.TypographyCustom[data-category="text"][data-size="lg"] {
|
|
16
|
-
font-size: 18px;
|
|
17
|
-
font-style: normal;
|
|
18
|
-
line-height: 24px; /* 133.333% */
|
|
19
|
-
letter-spacing: -0.144px;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.TypographyCustom[data-category="text"][data-size="md"] {
|
|
23
|
-
font-size: 16px;
|
|
24
|
-
font-style: normal;
|
|
25
|
-
line-height: 22px; /* 137.5% */
|
|
26
|
-
letter-spacing: -0.112px;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.TypographyCustom[data-category="text"][data-size="sm"] {
|
|
30
|
-
font-size: 14px;
|
|
31
|
-
font-style: normal;
|
|
32
|
-
line-height: 20px; /* 142.857% */
|
|
33
|
-
letter-spacing: -0.084px;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.TypographyCustom[data-category="text"][data-size="xs"] {
|
|
37
|
-
font-size: 12px;
|
|
38
|
-
font-style: normal;
|
|
39
|
-
line-height: 16px; /* 133.333% */
|
|
40
|
-
letter-spacing: -0.06px;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.TypographyCustom[data-category="text"][data-size="xxs"] {
|
|
44
|
-
font-size: 10px;
|
|
45
|
-
font-style: normal;
|
|
46
|
-
line-height: 14px; /* 140% */
|
|
47
|
-
letter-spacing: -0.04px;
|
|
48
|
-
}
|
package/src/icons/details.tsx
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export const DetailsIcon = () => {
|
|
2
|
-
return (
|
|
3
|
-
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
4
|
-
<path
|
|
5
|
-
d="M11.25 14.0625C11.25 14.3097 11.1767 14.5514 11.0393 14.757C10.902 14.9625 10.7068 15.1227 10.4784 15.2173C10.2499 15.312 9.99862 15.3367 9.75614 15.2885C9.51366 15.2402 9.29094 15.1212 9.11612 14.9464C8.9413 14.7716 8.82225 14.5488 8.77402 14.3064C8.72579 14.0639 8.75054 13.8126 8.84515 13.5841C8.93976 13.3557 9.09998 13.1605 9.30554 13.0232C9.5111 12.8858 9.75278 12.8125 10 12.8125C10.3315 12.8125 10.6495 12.9442 10.8839 13.1786C11.1183 13.413 11.25 13.731 11.25 14.0625ZM18.4375 10C18.4375 11.6688 17.9427 13.3001 17.0155 14.6876C16.0884 16.0752 14.7706 17.1566 13.2289 17.7952C11.6871 18.4338 9.99064 18.6009 8.35393 18.2754C6.71721 17.9498 5.2138 17.1462 4.03379 15.9662C2.85378 14.7862 2.05019 13.2828 1.72463 11.6461C1.39907 10.0094 1.56616 8.31286 2.20477 6.77111C2.84338 5.22936 3.92484 3.9116 5.31238 2.98448C6.69992 2.05735 8.33122 1.5625 10 1.5625C12.237 1.56498 14.3817 2.45473 15.9635 4.03653C17.5453 5.61833 18.435 7.763 18.4375 10ZM16.5625 10C16.5625 8.70206 16.1776 7.43327 15.4565 6.35407C14.7354 5.27487 13.7105 4.43374 12.5114 3.93704C11.3122 3.44034 9.99272 3.31038 8.71972 3.5636C7.44672 3.81681 6.2774 4.44183 5.35962 5.35961C4.44183 6.27739 3.81682 7.44672 3.5636 8.71972C3.31038 9.99272 3.44034 11.3122 3.93704 12.5114C4.43374 13.7105 5.27488 14.7354 6.35407 15.4565C7.43327 16.1776 8.70206 16.5625 10 16.5625C11.7399 16.5606 13.408 15.8686 14.6383 14.6383C15.8686 13.408 16.5606 11.7399 16.5625 10ZM10 5C8.10469 5 6.5625 6.40156 6.5625 8.125V8.4375C6.5625 8.68614 6.66127 8.9246 6.83709 9.10041C7.01291 9.27623 7.25136 9.375 7.5 9.375C7.74864 9.375 7.9871 9.27623 8.16292 9.10041C8.33873 8.9246 8.4375 8.68614 8.4375 8.4375V8.125C8.4375 7.43594 9.14063 6.875 10 6.875C10.8594 6.875 11.5625 7.43594 11.5625 8.125C11.5625 8.81406 10.8594 9.375 10 9.375C9.75136 9.375 9.51291 9.47377 9.33709 9.64959C9.16127 9.8254 9.0625 10.0639 9.0625 10.3125V10.9375C9.06194 11.1691 9.14715 11.3927 9.30169 11.5653C9.45623 11.7378 9.66916 11.847 9.89945 11.8719C10.1297 11.8967 10.3611 11.8354 10.5488 11.6998C10.7366 11.5642 10.8676 11.3639 10.9164 11.1375C12.368 10.7719 13.4375 9.56016 13.4375 8.125C13.4375 6.40156 11.8953 5 10 5Z"
|
|
6
|
-
fill="#080808"
|
|
7
|
-
/>
|
|
8
|
-
</svg>
|
|
9
|
-
);
|
|
10
|
-
};
|
package/src/icons/index.tsx
DELETED