allaw-ui 1.0.73 → 1.0.76
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.
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
font-size: 18px;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
/*
|
|
16
|
-
.tab-navigation-d.
|
|
15
|
+
/* Normal variant styles */
|
|
16
|
+
.tab-navigation-d:not(.tab-navigation--round) .tab-item-d {
|
|
17
17
|
display: flex;
|
|
18
18
|
padding: 0px 16px 10px 16px;
|
|
19
19
|
justify-content: center;
|
|
@@ -23,91 +23,77 @@
|
|
|
23
23
|
position: relative;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
.tab-navigation-d.
|
|
26
|
+
.tab-navigation-d:not(.tab-navigation--round) .tab-item-d.active {
|
|
27
27
|
border-bottom: 3px solid #000;
|
|
28
28
|
padding-bottom: 10px;
|
|
29
29
|
color: var(--Primary-Mid-black, var(--primary-black, #171e25));
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
.tab-navigation-d.
|
|
32
|
+
.tab-navigation-d:not(.tab-navigation--round) .tab-item-d.inactive {
|
|
33
33
|
border-bottom: 3px solid var(--grey-venom, #e6edf5);
|
|
34
34
|
color: var(--Tags-Mid-grey, var(--light-grey, #728ea7));
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
color: var(--Tags-Mid-grey, var(--dark-grey, #456073));
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/* Style round */
|
|
43
|
-
.tab-navigation-d.tab-navigation--round.small .tab-item-d,
|
|
44
|
-
.tab-navigation-d.tab-navigation--round.normal .tab-item-d {
|
|
37
|
+
/* Round variant styles */
|
|
38
|
+
.tab-navigation-d.tab-navigation--round .tab-item-d {
|
|
45
39
|
display: flex;
|
|
46
|
-
|
|
40
|
+
height: 35px;
|
|
41
|
+
padding: 12px 24px;
|
|
47
42
|
justify-content: center;
|
|
48
43
|
align-items: center;
|
|
49
44
|
gap: 8px;
|
|
50
45
|
cursor: pointer;
|
|
51
46
|
position: relative;
|
|
52
|
-
border-radius:
|
|
47
|
+
border-radius: 18px;
|
|
53
48
|
}
|
|
54
49
|
|
|
55
|
-
/*
|
|
56
|
-
.tab-navigation-d.tab-navigation--round
|
|
57
|
-
|
|
58
|
-
background-color: var(--grey-light, #f6fcfe) !important;
|
|
50
|
+
/* Round variant - inactive state */
|
|
51
|
+
.tab-navigation-d.tab-navigation--round .tab-item-d.inactive {
|
|
52
|
+
background-color: var(--grey-light, #f6fcfe);
|
|
59
53
|
color: var(--noir, #171e25);
|
|
60
|
-
height: 35px;
|
|
61
|
-
padding: 12px 24px;
|
|
62
|
-
border-radius: 18px;
|
|
63
54
|
border: 1px solid var(--grey-venom, #e6edf5);
|
|
64
55
|
}
|
|
65
56
|
|
|
66
|
-
/*
|
|
67
|
-
.tab-navigation-d.tab-navigation--round
|
|
68
|
-
|
|
69
|
-
background-color: var(--dark-grey, #456073) !important;
|
|
57
|
+
/* Round variant - active state */
|
|
58
|
+
.tab-navigation-d.tab-navigation--round .tab-item-d.active {
|
|
59
|
+
background-color: var(--dark-grey, #456073);
|
|
70
60
|
color: var(--pure-white, #fff);
|
|
71
|
-
height: 35px;
|
|
72
|
-
padding: 12px 24px;
|
|
73
|
-
border-radius: 18px;
|
|
74
61
|
border: 1px solid var(--dark-grey, #456073);
|
|
75
62
|
}
|
|
76
63
|
|
|
77
|
-
/* Hover states */
|
|
78
|
-
.tab-navigation-d.tab-navigation--round
|
|
79
|
-
|
|
80
|
-
background-color: var(--grey-venom, #e6edf5) !important;
|
|
64
|
+
/* Hover states for round variant */
|
|
65
|
+
.tab-navigation-d.tab-navigation--round .tab-item-d.inactive:hover {
|
|
66
|
+
background-color: var(--grey-venom, #e6edf5);
|
|
81
67
|
}
|
|
82
68
|
|
|
83
|
-
.tab-navigation-d.tab-navigation--round
|
|
84
|
-
|
|
85
|
-
background-color: #3c5364 !important;
|
|
86
|
-
color: var(--pure-white, #fff);
|
|
69
|
+
.tab-navigation-d.tab-navigation--round .tab-item-d.active:hover {
|
|
70
|
+
background-color: #3c5364;
|
|
87
71
|
}
|
|
88
72
|
|
|
73
|
+
/* Label styles */
|
|
89
74
|
.tab-label-d {
|
|
90
75
|
font-family: "Open Sans", sans-serif;
|
|
91
|
-
font-size: 14px;
|
|
92
76
|
font-style: normal;
|
|
93
77
|
font-weight: 500;
|
|
94
78
|
line-height: 1;
|
|
95
79
|
text-align: center;
|
|
96
80
|
}
|
|
97
81
|
|
|
82
|
+
/* Notification styles */
|
|
98
83
|
.tab-notification-dot {
|
|
99
84
|
width: 5px;
|
|
100
85
|
height: 5px;
|
|
101
86
|
background-color: #ef1a1a;
|
|
102
87
|
border-radius: 50%;
|
|
103
88
|
position: absolute;
|
|
104
|
-
right: 10px;
|
|
105
89
|
}
|
|
106
90
|
|
|
107
|
-
.tab-navigation-d.
|
|
91
|
+
.tab-navigation-d:not(.tab-navigation--round) .tab-notification-dot {
|
|
108
92
|
top: 7px;
|
|
93
|
+
right: 10px;
|
|
109
94
|
}
|
|
110
95
|
|
|
111
96
|
.tab-navigation-d.tab-navigation--round .tab-notification-dot {
|
|
112
97
|
top: 15px;
|
|
98
|
+
right: 10px;
|
|
113
99
|
}
|
|
@@ -14,6 +14,7 @@ export interface InputProps {
|
|
|
14
14
|
onChange?: (value: string) => void;
|
|
15
15
|
value?: string;
|
|
16
16
|
error?: string;
|
|
17
|
+
type?: string;
|
|
17
18
|
color?: "bleu-allaw" | "mid-grey" | "dark-grey" | "noir" | "pure-white" | "grey-venom" | "venom-grey-dark";
|
|
18
19
|
variant?: "bold" | "semiBold" | "medium";
|
|
19
20
|
}
|
|
@@ -6,11 +6,11 @@ import { commonRegex } from "../../../utils/regex";
|
|
|
6
6
|
import TinyInfo from "../typography/TinyInfo";
|
|
7
7
|
import Paragraph from "../typography/Paragraph";
|
|
8
8
|
var Input = forwardRef(function (_a, ref) {
|
|
9
|
-
var title = _a.title, _b = _a.style, style = _b === void 0 ? "default" : _b, placeholder = _a.placeholder, endIcon = _a.endIcon, _c = _a.isRequired, isRequired = _c === void 0 ? false : _c, validate = _a.validate, onError = _a.onError, onChange = _a.onChange, propValue = _a.value, propError = _a.error,
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
9
|
+
var title = _a.title, _b = _a.style, style = _b === void 0 ? "default" : _b, placeholder = _a.placeholder, endIcon = _a.endIcon, _c = _a.isRequired, isRequired = _c === void 0 ? false : _c, validate = _a.validate, onError = _a.onError, onChange = _a.onChange, propValue = _a.value, _d = _a.type, type = _d === void 0 ? "text" : _d, propError = _a.error, _e = _a.color, color = _e === void 0 ? "noir" : _e, _f = _a.variant, variant = _f === void 0 ? "medium" : _f;
|
|
10
|
+
var _g = useState(false), isPasswordVisible = _g[0], setIsPasswordVisible = _g[1];
|
|
11
|
+
var _h = useState(propValue || ""), value = _h[0], setValue = _h[1];
|
|
12
|
+
var _j = useState(propError || ""), error = _j[0], setError = _j[1];
|
|
13
|
+
var _k = useState(false), isTouched = _k[0], setIsTouched = _k[1];
|
|
14
14
|
var inputRef = useRef(null);
|
|
15
15
|
useEffect(function () {
|
|
16
16
|
setValue(propValue || "");
|
|
@@ -77,7 +77,7 @@ var Input = forwardRef(function (_a, ref) {
|
|
|
77
77
|
"*"))),
|
|
78
78
|
React.createElement("div", { className: "Input-container" },
|
|
79
79
|
React.createElement("div", { className: "Input-input ".concat(style === "password" ? "Input-password-input" : "") },
|
|
80
|
-
React.createElement("input", { ref: inputRef, type: style === "password" && !isPasswordVisible ? "password" :
|
|
80
|
+
React.createElement("input", { ref: inputRef, type: style === "password" && !isPasswordVisible ? "password" : type, placeholder: placeholder, className: "Input-placeholder", value: value, onChange: handleChange, onBlur: handleBlur })),
|
|
81
81
|
renderEndIcon(),
|
|
82
82
|
error && isTouched && (React.createElement("div", { className: "error-message" },
|
|
83
83
|
React.createElement(TinyInfo, { variant: "medium12", color: "actions-error", text: error }))))));
|