react-core-ts 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.
- package/dist/ExpandableAutoComplete.d.ts +4 -0
- package/dist/ExpandableAutoComplete.js +335 -0
- package/dist/ExpandableAutoComplete.js.map +1 -0
- package/dist/commontypes.d.ts +3 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/styles/components/autocomplete.css +63 -7
- package/dist/utilities/expandableTootltip.d.ts +3 -0
- package/dist/utilities/expandableTootltip.js +155 -0
- package/dist/utilities/expandableTootltip.js.map +1 -0
- package/docs/App.tsx +31 -1
- package/package.json +1 -1
- package/src/ExpandableAutoComplete.tsx +543 -0
- package/src/commontypes.ts +3 -0
- package/src/index.tsx +2 -0
- package/src/styles/components/autocomplete.css +60 -5
- package/src/utilities/expandableTootltip.tsx +149 -0
- package/dist/styles/styles/components/autocomplete.css +0 -523
- package/dist/styles/styles/global.css +0 -1
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import React, { useState, useRef, useLayoutEffect, useEffect } from "react";
|
|
2
|
+
import ReactDOM from "react-dom";
|
|
3
|
+
|
|
4
|
+
const ExpandableToolTip: React.FC<any> = ({ title, children, enabled }) => {
|
|
5
|
+
const [dropdownPosition, setDropdownPosition] = useState("bottom-position");
|
|
6
|
+
const dropRef = useRef(null);
|
|
7
|
+
const menuButtonRef = useRef<HTMLDivElement>(null);
|
|
8
|
+
const [visible, setVisible] = useState(false);
|
|
9
|
+
const [tooltipStyle, setTooltipStyle] = useState({
|
|
10
|
+
top: 0,
|
|
11
|
+
left: 0,
|
|
12
|
+
width: 0,
|
|
13
|
+
});
|
|
14
|
+
const adjustDropdownPosition = (): string => {
|
|
15
|
+
if (menuButtonRef.current) {
|
|
16
|
+
const inputBoxRect = menuButtonRef.current?.getBoundingClientRect();
|
|
17
|
+
const viewportHeight = window.innerHeight;
|
|
18
|
+
|
|
19
|
+
const spaceAbove = inputBoxRect.top;
|
|
20
|
+
const spaceBelow = viewportHeight - inputBoxRect.bottom;
|
|
21
|
+
if (spaceAbove > spaceBelow) {
|
|
22
|
+
if (spaceAbove > 90 && spaceBelow < 120) {
|
|
23
|
+
return "top-position";
|
|
24
|
+
} else {
|
|
25
|
+
return "bottom-position";
|
|
26
|
+
}
|
|
27
|
+
} else {
|
|
28
|
+
const diff: number = spaceBelow - spaceAbove;
|
|
29
|
+
if (spaceAbove > 90 && spaceBelow > 90 && diff < 90) {
|
|
30
|
+
return "top-position";
|
|
31
|
+
} else {
|
|
32
|
+
return "bottom-position";
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
const handleMouseEnter = (e: React.MouseEvent) => {
|
|
39
|
+
if (menuButtonRef.current) {
|
|
40
|
+
const dropPosition = adjustDropdownPosition();
|
|
41
|
+
setDropdownPosition(dropPosition);
|
|
42
|
+
const rect = (e.target as HTMLElement).getBoundingClientRect();
|
|
43
|
+
let top = rect.bottom + window.scrollY;
|
|
44
|
+
let left = rect.left + window.scrollX;
|
|
45
|
+
const height = rect.height;
|
|
46
|
+
const width = dropRef?.current?.offsetWidth;
|
|
47
|
+
if (dropPosition === "bottom-position") {
|
|
48
|
+
top = top + height / 2 - 5;
|
|
49
|
+
} else {
|
|
50
|
+
top = top - height * 2 + 15;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
setTooltipStyle({
|
|
54
|
+
top: top,
|
|
55
|
+
left: left,
|
|
56
|
+
width: width,
|
|
57
|
+
});
|
|
58
|
+
setVisible(true);
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
const handleMouseLeave = () => {
|
|
63
|
+
setVisible(false);
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
useLayoutEffect(() => {
|
|
67
|
+
const updateTooltipPosition = () => {
|
|
68
|
+
if (dropRef.current && visible && tooltipStyle) {
|
|
69
|
+
const tooltipHeight = dropRef.current.offsetHeight;
|
|
70
|
+
const tooltipWidth = dropRef.current.offsetWidth;
|
|
71
|
+
const boxWidth = menuButtonRef.current.offsetWidth;
|
|
72
|
+
setTooltipStyle((prevStyle) => ({
|
|
73
|
+
...prevStyle,
|
|
74
|
+
left:
|
|
75
|
+
prevStyle.left + boxWidth / 2 - tooltipWidth / 2 < 0
|
|
76
|
+
? 20
|
|
77
|
+
: prevStyle.left + boxWidth / 2 - tooltipWidth / 2,
|
|
78
|
+
width: tooltipWidth,
|
|
79
|
+
top:
|
|
80
|
+
dropdownPosition === "bottom-position"
|
|
81
|
+
? prevStyle.top
|
|
82
|
+
: prevStyle.top - tooltipHeight,
|
|
83
|
+
}));
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
if (visible) {
|
|
88
|
+
updateTooltipPosition();
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
window.addEventListener("resize", updateTooltipPosition);
|
|
92
|
+
|
|
93
|
+
return () => {
|
|
94
|
+
window.removeEventListener("resize", updateTooltipPosition);
|
|
95
|
+
};
|
|
96
|
+
}, [visible, dropdownPosition]);
|
|
97
|
+
|
|
98
|
+
useEffect(() => {
|
|
99
|
+
const handleClickOutside = (event: MouseEvent) => {
|
|
100
|
+
if (dropRef.current && !dropRef.current.contains(event.target as Node)) {
|
|
101
|
+
setVisible(false);
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
document.addEventListener("mousedown", handleClickOutside);
|
|
106
|
+
return () => {
|
|
107
|
+
document.removeEventListener("mousedown", handleClickOutside);
|
|
108
|
+
};
|
|
109
|
+
}, []);
|
|
110
|
+
|
|
111
|
+
return (
|
|
112
|
+
<>
|
|
113
|
+
<div
|
|
114
|
+
onMouseEnter={handleMouseEnter}
|
|
115
|
+
onMouseLeave={handleMouseLeave}
|
|
116
|
+
ref={menuButtonRef}
|
|
117
|
+
style={{ display: "flex" }}
|
|
118
|
+
>
|
|
119
|
+
{children}
|
|
120
|
+
|
|
121
|
+
{visible &&
|
|
122
|
+
enabled &&
|
|
123
|
+
tooltipStyle &&
|
|
124
|
+
ReactDOM.createPortal(
|
|
125
|
+
<span
|
|
126
|
+
ref={(node) => (dropRef.current = node)}
|
|
127
|
+
className={`tooltiptext ${
|
|
128
|
+
dropdownPosition == "bottom-position" ? "down" : "up"
|
|
129
|
+
}`}
|
|
130
|
+
style={{
|
|
131
|
+
top: tooltipStyle.top,
|
|
132
|
+
left: tooltipStyle.left,
|
|
133
|
+
opacity: 1,
|
|
134
|
+
width: tooltipStyle.width,
|
|
135
|
+
minWidth: "60px",
|
|
136
|
+
maxWidth: "200px",
|
|
137
|
+
visibility: "visible",
|
|
138
|
+
}}
|
|
139
|
+
>
|
|
140
|
+
{title}
|
|
141
|
+
</span>,
|
|
142
|
+
document.body
|
|
143
|
+
)}
|
|
144
|
+
</div>
|
|
145
|
+
</>
|
|
146
|
+
);
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
export default ExpandableToolTip;
|
|
@@ -1,523 +0,0 @@
|
|
|
1
|
-
body * {
|
|
2
|
-
box-sizing: border-box;
|
|
3
|
-
}
|
|
4
|
-
:root {
|
|
5
|
-
--grey-dark: #4a4a4a;
|
|
6
|
-
--grey-light: #d3d3d3;
|
|
7
|
-
--blue-navy: #001f3f;
|
|
8
|
-
--input-disabled: #a9a9a9;
|
|
9
|
-
--error-light: #f08080;
|
|
10
|
-
--error-extra-light: #fddede;
|
|
11
|
-
--success: #28a745;
|
|
12
|
-
--success-light: #d4edda;
|
|
13
|
-
--blue-light: #add8e6;
|
|
14
|
-
}
|
|
15
|
-
:root {
|
|
16
|
-
--blue-navy: #001f3f;
|
|
17
|
-
--table-hover: #your-hover-color; /* Replace with your actual color code */
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.custom-spinner {
|
|
21
|
-
width: 24px !important; /* w-6 */
|
|
22
|
-
height: 24px; /* h-6 */
|
|
23
|
-
color: transparent; /* text-table-hover */
|
|
24
|
-
fill: var(--blue-navy); /* fill-blue-navy */
|
|
25
|
-
animation: spin 1s linear infinite; /* animate-spin */
|
|
26
|
-
width: 15px;
|
|
27
|
-
position: relative;
|
|
28
|
-
top: 1px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@keyframes spin {
|
|
32
|
-
0% {
|
|
33
|
-
transform: rotate(0deg);
|
|
34
|
-
}
|
|
35
|
-
100% {
|
|
36
|
-
transform: rotate(360deg);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.textfield,
|
|
41
|
-
.textfield-big {
|
|
42
|
-
outline: none;
|
|
43
|
-
color: var(--grey-dark);
|
|
44
|
-
border-color: var(--grey-light);
|
|
45
|
-
background-color: white;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.textfield:focus,
|
|
49
|
-
.textfield-big:focus {
|
|
50
|
-
border-color: var(--blue-navy);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.textfield:disabled,
|
|
54
|
-
.textfield-big:disabled {
|
|
55
|
-
color: var(--input-disabled);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.textfield-error,
|
|
59
|
-
.textfield-big-error {
|
|
60
|
-
outline: none;
|
|
61
|
-
color: var(--error-light) !important;
|
|
62
|
-
border-color: var(--error-light) !important;
|
|
63
|
-
background-color: var(--error-extra-light) !important ;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.textfield-error::placeholder,
|
|
67
|
-
.textfield-big-error::placeholder {
|
|
68
|
-
color: var(--error-light);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.textfield-success {
|
|
72
|
-
outline: none;
|
|
73
|
-
color: var(--success);
|
|
74
|
-
border-color: var(--success);
|
|
75
|
-
background-color: var(--success-light);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.textfield-success:focus {
|
|
79
|
-
ring-width: 0;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.textfield-success::placeholder {
|
|
83
|
-
color: var(--success);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.textfield-editable {
|
|
87
|
-
outline: none;
|
|
88
|
-
color: var(--grey-dark);
|
|
89
|
-
border-color: var(--blue-navy);
|
|
90
|
-
background-color: var(--blue-light);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.textfield-editable::placeholder {
|
|
94
|
-
color: var(--grey-dark);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.qbs-autocomplete-suggestions {
|
|
98
|
-
position: absolute;
|
|
99
|
-
height: auto;
|
|
100
|
-
width: 100%;
|
|
101
|
-
padding: 8px; /* Corresponding to p-1.5 in Tailwind */
|
|
102
|
-
z-index: 99;
|
|
103
|
-
margin-top: 4px;
|
|
104
|
-
margin-bottom: 0;
|
|
105
|
-
border-radius: 8px;
|
|
106
|
-
background: #fff;
|
|
107
|
-
box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.15);
|
|
108
|
-
}
|
|
109
|
-
.qbs-autocomplete-suggestions.bottom {
|
|
110
|
-
top: 100%; /* Position below the input */
|
|
111
|
-
/* Other styling */
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.qbs-autocomplete-suggestions.top {
|
|
115
|
-
bottom: 100%; /* Position above the input */
|
|
116
|
-
/* Other styling */
|
|
117
|
-
}
|
|
118
|
-
.qbs-autocomplete-suggestions-item {
|
|
119
|
-
cursor: pointer;
|
|
120
|
-
padding: 6px 8px;
|
|
121
|
-
border-radius: 6px;
|
|
122
|
-
color: #222;
|
|
123
|
-
font-size: 14px;
|
|
124
|
-
font-weight: 500;
|
|
125
|
-
line-height: 20px; /* 142.857% */
|
|
126
|
-
width: 100%;
|
|
127
|
-
display: flex;
|
|
128
|
-
align-items: flex-start;
|
|
129
|
-
gap: 8px;
|
|
130
|
-
}
|
|
131
|
-
.qbs-autocomplete-suggestions-item:hover {
|
|
132
|
-
background: #f8f8f8;
|
|
133
|
-
border-radius: 6px;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
/* When value.id is equal to suggestion.id */
|
|
137
|
-
.is-selected {
|
|
138
|
-
border-radius: 6px;
|
|
139
|
-
background: var(--neutrals-grey-20, #f4f4f4);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
/* When value.id is NOT equal to suggestion.id */
|
|
143
|
-
.qbs-autocomplete-suggestions-item .is-not-selected:hover {
|
|
144
|
-
background-color: #f1f5f9; /* Replace with actual color code for 'hover:bg-table-hover' */
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.qbs-autocomplete-notfound {
|
|
148
|
-
cursor: pointer;
|
|
149
|
-
padding: 6px 8px;
|
|
150
|
-
border-radius: 6px;
|
|
151
|
-
font-size: 12px;
|
|
152
|
-
font-weight: 500;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.qbs-autocomplete-close-icon {
|
|
156
|
-
position: absolute;
|
|
157
|
-
top: calc(50% - 7px);
|
|
158
|
-
right: 2px; /* right-1 */
|
|
159
|
-
padding-left: 0.25rem; /* px-1 */
|
|
160
|
-
padding-right: 0.25rem; /* px-1 */
|
|
161
|
-
display: flex;
|
|
162
|
-
justify-content: center;
|
|
163
|
-
align-items: center;
|
|
164
|
-
background-color: white; /* bg-white */
|
|
165
|
-
}
|
|
166
|
-
.qbs-textfield-default {
|
|
167
|
-
width: 100%;
|
|
168
|
-
position: relative;
|
|
169
|
-
padding-right: 8px;
|
|
170
|
-
min-height: 36px;
|
|
171
|
-
height: 36px;
|
|
172
|
-
border-radius: 6px;
|
|
173
|
-
padding-left: 8px;
|
|
174
|
-
border: 1px solid #d6d8dc;
|
|
175
|
-
background: #fff;
|
|
176
|
-
box-sizing: border-box;
|
|
177
|
-
font-size: 14px;
|
|
178
|
-
font-style: normal;
|
|
179
|
-
font-weight: 500;
|
|
180
|
-
line-height: 20px;
|
|
181
|
-
color: #313131;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.qbs-textfield-default::placeholder {
|
|
185
|
-
font-size: 14px;
|
|
186
|
-
font-style: normal;
|
|
187
|
-
font-weight: 500;
|
|
188
|
-
line-height: 20px;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.qbs-autocomplete-close-icon button:focus-within {
|
|
192
|
-
outline: none;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.fullWidth {
|
|
196
|
-
width: 100%;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
.autoWidth {
|
|
200
|
-
width: auto;
|
|
201
|
-
}
|
|
202
|
-
.icon-button {
|
|
203
|
-
background: transparent;
|
|
204
|
-
border: none;
|
|
205
|
-
display: inline-flex;
|
|
206
|
-
cursor: pointer;
|
|
207
|
-
padding: 0px 1px;
|
|
208
|
-
}
|
|
209
|
-
.labels {
|
|
210
|
-
font-size: 12px;
|
|
211
|
-
}
|
|
212
|
-
.dropdown-search-input {
|
|
213
|
-
min-width: -webkit-fill-available;
|
|
214
|
-
border-radius: 6px;
|
|
215
|
-
border: 1px solid var(--border-card-color-default, #d6d8dc);
|
|
216
|
-
background: var(--surface-input-bg-color-default, #fff);
|
|
217
|
-
color: #313131;
|
|
218
|
-
font-size: 14px;
|
|
219
|
-
height: 36px;
|
|
220
|
-
padding: 0px 8px;
|
|
221
|
-
font-style: normal;
|
|
222
|
-
font-weight: 500;
|
|
223
|
-
line-height: 20px;
|
|
224
|
-
padding-left: 32px;
|
|
225
|
-
}
|
|
226
|
-
.qbs-autocomplete-suggestions-sub {
|
|
227
|
-
position: relative;
|
|
228
|
-
overflow: auto;
|
|
229
|
-
max-height: 192px;
|
|
230
|
-
top: 0;
|
|
231
|
-
display: flex;
|
|
232
|
-
flex-direction: column;
|
|
233
|
-
gap: 4px;
|
|
234
|
-
}
|
|
235
|
-
.qbs-autocomplete-listitem-container {
|
|
236
|
-
display: flex;
|
|
237
|
-
align-items: center;
|
|
238
|
-
gap: 0px;
|
|
239
|
-
}
|
|
240
|
-
ul {
|
|
241
|
-
list-style-type: none;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
.react-core-ts-search-container {
|
|
245
|
-
display: flex;
|
|
246
|
-
align-items: center;
|
|
247
|
-
gap: var(--spacing-4, 4px);
|
|
248
|
-
align-self: stretch;
|
|
249
|
-
margin-bottom: 4px;
|
|
250
|
-
}
|
|
251
|
-
.selected-item {
|
|
252
|
-
display: flex;
|
|
253
|
-
align-items: center;
|
|
254
|
-
justify-content: space-between;
|
|
255
|
-
padding: 3px 6px;
|
|
256
|
-
margin: 0;
|
|
257
|
-
background-color: #e0e0e0;
|
|
258
|
-
color: #333;
|
|
259
|
-
border-radius: 6px;
|
|
260
|
-
border: 1px solid rgba(231, 100, 88, 0.1);
|
|
261
|
-
background: rgba(231, 100, 88, 0.1);
|
|
262
|
-
font-size: 12px;
|
|
263
|
-
font-style: normal;
|
|
264
|
-
font-weight: 500;
|
|
265
|
-
line-height: 16px;
|
|
266
|
-
color: #e76458;
|
|
267
|
-
gap: 6px;
|
|
268
|
-
height: 22px;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
.remove-item-btn {
|
|
272
|
-
background-color: transparent;
|
|
273
|
-
border: none;
|
|
274
|
-
color: #e76458;
|
|
275
|
-
cursor: pointer;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
.remove-item-btn:hover {
|
|
279
|
-
color: #e76458;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
.selected-items-container {
|
|
283
|
-
display: flex;
|
|
284
|
-
gap: 12px;
|
|
285
|
-
align-items: center;
|
|
286
|
-
position: absolute;
|
|
287
|
-
left: 8px;
|
|
288
|
-
z-index: 99;
|
|
289
|
-
top: 6.5px;
|
|
290
|
-
flex-wrap: wrap;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
.selected-item-more {
|
|
294
|
-
display: flex;
|
|
295
|
-
align-items: center;
|
|
296
|
-
justify-content: center;
|
|
297
|
-
padding: 3px 8px;
|
|
298
|
-
margin: 0;
|
|
299
|
-
border-radius: 6px;
|
|
300
|
-
background: #c63a3a;
|
|
301
|
-
font-size: 12px;
|
|
302
|
-
font-style: normal;
|
|
303
|
-
font-weight: 500;
|
|
304
|
-
line-height: 16px;
|
|
305
|
-
color: #fff;
|
|
306
|
-
height: 22px;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
.loadMoreSection {
|
|
310
|
-
margin: 0;
|
|
311
|
-
cursor: pointer;
|
|
312
|
-
display: flex;
|
|
313
|
-
justify-content: flex-start;
|
|
314
|
-
padding: 8px;
|
|
315
|
-
}
|
|
316
|
-
.loadMoreSection p {
|
|
317
|
-
color: #336cfc;
|
|
318
|
-
font-size: 14px;
|
|
319
|
-
font-style: normal;
|
|
320
|
-
font-weight: 500;
|
|
321
|
-
line-height: 20px;
|
|
322
|
-
margin: 0;
|
|
323
|
-
}
|
|
324
|
-
::-webkit-scrollbar-track {
|
|
325
|
-
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0);
|
|
326
|
-
border-radius: 0px;
|
|
327
|
-
background-color: transparent;
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
::-webkit-scrollbar {
|
|
331
|
-
width: 6px;
|
|
332
|
-
height: 4px;
|
|
333
|
-
background-color: transparent;
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
::-webkit-scrollbar-thumb {
|
|
337
|
-
border-radius: 100px;
|
|
338
|
-
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0);
|
|
339
|
-
background-color: #ddd;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
.qbs-autocomplete-suggestions-item.is-selected {
|
|
343
|
-
color: #e76458;
|
|
344
|
-
background: #f8f8f8;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
span.dropdown-search-icon {
|
|
348
|
-
position: absolute;
|
|
349
|
-
left: 8px;
|
|
350
|
-
top: 10px;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
.dropdown-search-input:focus {
|
|
354
|
-
outline: none;
|
|
355
|
-
border: 1px solid #222;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
.qbs-autocomplete-checkbox-container {
|
|
359
|
-
gap: 8px;
|
|
360
|
-
padding: 6px 8px;
|
|
361
|
-
display: flex;
|
|
362
|
-
align-items: flex-start;
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
.qbs-autocomplete-checkbox-container .qbs-autocomplete-suggestions-item {
|
|
366
|
-
padding: 0;
|
|
367
|
-
pointer-events: none;
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
.qbs-autocomplete-checkbox-container:hover {
|
|
371
|
-
background: #f8f8f8;
|
|
372
|
-
border-radius: 6px;
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
.qbs-autocomplete-checkbox-container.is-selected {
|
|
376
|
-
background: #f8f8f8;
|
|
377
|
-
border-radius: 6px;
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
.qbs-autocomplete-checkbox {
|
|
381
|
-
position: relative;
|
|
382
|
-
display: flex;
|
|
383
|
-
align-items: center;
|
|
384
|
-
justify-content: center;
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
.qbs-autocomplete-checkbox input {
|
|
388
|
-
opacity: 0;
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
.qbs-autocomplete-checkbox input ~ label {
|
|
392
|
-
position: absolute;
|
|
393
|
-
border-radius: 3px;
|
|
394
|
-
border: 1px solid #999696;
|
|
395
|
-
width: 16px;
|
|
396
|
-
height: 16px;
|
|
397
|
-
top: 3px;
|
|
398
|
-
transition: all 0.2s ease;
|
|
399
|
-
cursor: pointer;
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
.qbs-autocomplete-checkbox input ~ label svg {
|
|
403
|
-
opacity: 0;
|
|
404
|
-
transition: all 0.2s ease;
|
|
405
|
-
position: absolute;
|
|
406
|
-
left: 3px;
|
|
407
|
-
top: 3px;
|
|
408
|
-
width: 9px;
|
|
409
|
-
height: 9px;
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
.qbs-autocomplete-checkbox input:checked ~ label {
|
|
413
|
-
transition: all 0.2s ease;
|
|
414
|
-
border-radius: 3px;
|
|
415
|
-
background: #e76458;
|
|
416
|
-
border-color: #e76458;
|
|
417
|
-
}
|
|
418
|
-
.qbs-autocomplete-checkbox input:checked ~ label svg {
|
|
419
|
-
opacity: 1;
|
|
420
|
-
transition: all 0.2s ease;
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
.action_label {
|
|
424
|
-
font-size: 14px;
|
|
425
|
-
color: #4c7ad6;
|
|
426
|
-
}
|
|
427
|
-
/* Tooltip.css */
|
|
428
|
-
/* .tooltip-wrapper {
|
|
429
|
-
position: relative;
|
|
430
|
-
display: inline-block;
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
.tooltip-content {
|
|
434
|
-
visibility: hidden;
|
|
435
|
-
width: max-content;
|
|
436
|
-
background-color: black;
|
|
437
|
-
color: white;
|
|
438
|
-
text-align: center;
|
|
439
|
-
max-width: 150px;
|
|
440
|
-
padding: 5px 10px;
|
|
441
|
-
border-radius: 6px;
|
|
442
|
-
position: absolute;
|
|
443
|
-
z-index: 1;
|
|
444
|
-
bottom: 125%;
|
|
445
|
-
left: 50%;
|
|
446
|
-
transform: translateX(-50%);
|
|
447
|
-
transition: visibility 0.2s ease-in-out;
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
.tooltip-content::after {
|
|
451
|
-
content: '';
|
|
452
|
-
position: absolute;
|
|
453
|
-
top: 100%;
|
|
454
|
-
left: 50%;
|
|
455
|
-
margin-left: -5px;
|
|
456
|
-
border-width: 5px;
|
|
457
|
-
border-style: solid;
|
|
458
|
-
border-color: black transparent transparent transparent;
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
.tooltip-wrapper:hover .tooltip-content {
|
|
462
|
-
visibility: visible;
|
|
463
|
-
} */
|
|
464
|
-
.qbs-table-tooltip {
|
|
465
|
-
position: relative;
|
|
466
|
-
display: contents;
|
|
467
|
-
cursor: pointer;
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
.qbs-table-tooltip .tooltiptext {
|
|
471
|
-
visibility: hidden;
|
|
472
|
-
background-color: #000;
|
|
473
|
-
color: #fff;
|
|
474
|
-
text-align: center;
|
|
475
|
-
padding: 6px;
|
|
476
|
-
border-radius: 4px;
|
|
477
|
-
position: absolute;
|
|
478
|
-
z-index: 9999;
|
|
479
|
-
opacity: 0;
|
|
480
|
-
transition: opacity 0.3s;
|
|
481
|
-
font-size: 14px;
|
|
482
|
-
font-style: normal;
|
|
483
|
-
font-weight: 400;
|
|
484
|
-
line-height: 16px;
|
|
485
|
-
max-width: 300px;
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
.qbs-table-tooltip.up .tooltiptext {
|
|
489
|
-
bottom: 125%;
|
|
490
|
-
left: 0%;
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
.qbs-table-tooltip.down .tooltiptext {
|
|
494
|
-
top: 125%;
|
|
495
|
-
right: 0px;
|
|
496
|
-
left: auto;
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
.qbs-table-tooltip:hover .tooltiptext {
|
|
500
|
-
visibility: visible;
|
|
501
|
-
opacity: 1;
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
.qbs-table-tooltip .tooltiptext::after {
|
|
505
|
-
content: '';
|
|
506
|
-
position: absolute;
|
|
507
|
-
border-width: 5px;
|
|
508
|
-
border-style: solid;
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
.qbs-table-tooltip.up .tooltiptext::after {
|
|
512
|
-
top: 100%;
|
|
513
|
-
left: 50%;
|
|
514
|
-
margin-left: -5px;
|
|
515
|
-
border-color: #000 transparent transparent transparent;
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
.qbs-table-tooltip.down .tooltiptext::after {
|
|
519
|
-
bottom: 100%;
|
|
520
|
-
left: 50%;
|
|
521
|
-
margin-left: -5px;
|
|
522
|
-
border-color: transparent transparent #000 transparent;
|
|
523
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import './components/autocomplete.css';
|