albinasoft-ui-package 1.0.13 → 1.0.14
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.
@@ -62,7 +62,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
62
62
|
var react_1 = __importStar(require("react"));
|
63
63
|
var fa_1 = require("react-icons/fa");
|
64
64
|
var react_bootstrap_1 = require("react-bootstrap");
|
65
|
-
require("
|
65
|
+
require("../assets/css/custom-autocomplete-input.css");
|
66
66
|
var CustomAutocompleteInput = function (_a) {
|
67
67
|
var id = _a.id, name = _a.name, label = _a.label, value = _a.value, placeholder = _a.placeholder, _b = _a.required, required = _b === void 0 ? false : _b, description = _a.description, errorMessage = _a.errorMessage, conditionalErrorVisible = _a.conditionalErrorVisible, conditionalErrorMessage = _a.conditionalErrorMessage, _c = _a.disabled, disabled = _c === void 0 ? false : _c, tooltip = _a.tooltip, _d = _a.className, className = _d === void 0 ? '' : _d, style = _a.style, fetchOptions = _a.fetchOptions, onSelect = _a.onSelect;
|
68
68
|
var _e = (0, react_1.useState)(value || ''), inputValue = _e[0], setInputValue = _e[1];
|
@@ -0,0 +1,35 @@
|
|
1
|
+
.autocomplete-container {
|
2
|
+
position: relative; /* Dropdown'u input'un kapsayıcısına bağlamak için */
|
3
|
+
}
|
4
|
+
|
5
|
+
.autocomplete-dropdown {
|
6
|
+
background-color: white;
|
7
|
+
border: 1px solid #ccc;
|
8
|
+
border-radius: 4px;
|
9
|
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
10
|
+
z-index: 1050;
|
11
|
+
max-height: 200px;
|
12
|
+
overflow-y: auto;
|
13
|
+
position: absolute;
|
14
|
+
width: 100%;
|
15
|
+
}
|
16
|
+
|
17
|
+
.autocomplete-option {
|
18
|
+
padding: 8px 12px;
|
19
|
+
cursor: pointer;
|
20
|
+
}
|
21
|
+
|
22
|
+
.autocomplete-option:hover {
|
23
|
+
background-color: #f1f1f1;
|
24
|
+
}
|
25
|
+
|
26
|
+
/* Dark Mode */
|
27
|
+
.dark .autocomplete-dropdown {
|
28
|
+
background-color: #333;
|
29
|
+
color: #fff;
|
30
|
+
border: 1px solid #444;
|
31
|
+
}
|
32
|
+
|
33
|
+
.dark .autocomplete-option:hover {
|
34
|
+
background-color: #444;
|
35
|
+
}
|
package/package.json
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
{
|
2
2
|
"name": "albinasoft-ui-package",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.14",
|
4
4
|
"main": "dist/index.js",
|
5
5
|
"types": "dist/index.d.ts",
|
6
6
|
"scripts": {
|
7
|
-
"build": "tsc",
|
7
|
+
"build": "tsc && xcopy /E /Y src\\assets\\css\\*.css dist\\",
|
8
8
|
"prepare": "npm run build"
|
9
9
|
},
|
10
10
|
"dependencies": {
|