albinasoft-ui-package 1.1.41 → 1.1.43
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/LICENSE +21 -21
- package/dist/assets/css/custom-autocomplete-input.css +49 -49
- package/dist/assets/css/custom-datatable.css +2 -2
- package/dist/assets/css/custom-datetime-picker.css +779 -779
- package/dist/assets/css/custom-progress-bar.css +37 -37
- package/dist/assets/css/custom-select.css +62 -62
- package/dist/assets/css/custom-simple-select.css +117 -94
- package/dist/assets/css/custom-timeline.css +43 -43
- package/dist/assets/css/dark.css +2159 -2159
- package/dist/assets/css/main.css +26664 -26664
- package/dist/components/AlbinaForm.d.ts +28 -28
- package/dist/components/AlbinaForm.js +88 -88
- package/dist/components/CustomAutocompleteInput.d.ts +23 -23
- package/dist/components/CustomAutocompleteInput.js +185 -185
- package/dist/components/CustomButton.d.ts +14 -14
- package/dist/components/CustomButton.js +98 -98
- package/dist/components/CustomCheckbox.d.ts +20 -20
- package/dist/components/CustomCheckbox.js +58 -58
- package/dist/components/CustomDatatable.d.ts +42 -42
- package/dist/components/CustomDatatable.js +92 -92
- package/dist/components/CustomDateTimePicker.d.ts +33 -33
- package/dist/components/CustomDateTimePicker.js +91 -91
- package/dist/components/CustomDivider.d.ts +51 -51
- package/dist/components/CustomDivider.js +87 -87
- package/dist/components/CustomFileUploader.d.ts +65 -65
- package/dist/components/CustomFileUploader.js +460 -460
- package/dist/components/CustomForm.d.ts +225 -225
- package/dist/components/CustomForm.js +243 -243
- package/dist/components/CustomInput.d.ts +37 -37
- package/dist/components/CustomInput.js +85 -85
- package/dist/components/CustomModal.d.ts +15 -15
- package/dist/components/CustomModal.js +17 -17
- package/dist/components/CustomPhoneInput.d.ts +29 -29
- package/dist/components/CustomPhoneInput.js +251 -251
- package/dist/components/CustomProgressBar.d.ts +9 -9
- package/dist/components/CustomProgressBar.js +40 -40
- package/dist/components/CustomRadioButton.d.ts +25 -25
- package/dist/components/CustomRadioButton.js +34 -34
- package/dist/components/CustomRichTextbox.d.ts +14 -14
- package/dist/components/CustomRichTextbox.js +89 -89
- package/dist/components/CustomSelect.d.ts +32 -32
- package/dist/components/CustomSelect.js +194 -191
- package/dist/components/CustomSimpleSelect.d.ts +21 -21
- package/dist/components/CustomSimpleSelect.js +64 -64
- package/dist/components/CustomTab.d.ts +44 -44
- package/dist/components/CustomTab.js +122 -122
- package/dist/components/CustomText.d.ts +72 -72
- package/dist/components/CustomText.js +158 -158
- package/dist/components/CustomTextarea.d.ts +22 -22
- package/dist/components/CustomTextarea.js +33 -33
- package/dist/components/CustomTimeline.d.ts +30 -30
- package/dist/components/CustomTimeline.js +80 -80
- package/dist/components/CustomTreeView.d.ts +22 -22
- package/dist/components/CustomTreeView.js +157 -157
- package/dist/index.d.ts +22 -22
- package/dist/index.js +48 -48
- package/package.json +44 -43
- package/readme.md +9 -9
@@ -1,158 +1,158 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
3
|
-
__assign = Object.assign || function(t) {
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
5
|
-
s = arguments[i];
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
7
|
-
t[p] = s[p];
|
8
|
-
}
|
9
|
-
return t;
|
10
|
-
};
|
11
|
-
return __assign.apply(this, arguments);
|
12
|
-
};
|
13
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
15
|
-
};
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
exports.Color = exports.FontWeight = exports.LineHeight = exports.FontSize = exports.TextAlign = exports.TextType = exports.CustomText = void 0;
|
18
|
-
var react_1 = __importDefault(require("react"));
|
19
|
-
var TextType;
|
20
|
-
(function (TextType) {
|
21
|
-
TextType["BOLDHEAD"] = "boldhead";
|
22
|
-
TextType["HEADING"] = "heading";
|
23
|
-
TextType["SUBHEADING"] = "subheading";
|
24
|
-
TextType["PARAGRAPH"] = "paragraph";
|
25
|
-
})(TextType || (TextType = {}));
|
26
|
-
exports.TextType = TextType;
|
27
|
-
var TextAlign;
|
28
|
-
(function (TextAlign) {
|
29
|
-
TextAlign["START"] = "start";
|
30
|
-
TextAlign["CENTER"] = "center";
|
31
|
-
TextAlign["END"] = "end";
|
32
|
-
})(TextAlign || (TextAlign = {}));
|
33
|
-
exports.TextAlign = TextAlign;
|
34
|
-
var FontSize;
|
35
|
-
(function (FontSize) {
|
36
|
-
FontSize["XXXXL"] = "96px";
|
37
|
-
FontSize["XXXL"] = "72px";
|
38
|
-
FontSize["XXL"] = "48px";
|
39
|
-
FontSize["XL"] = "32px";
|
40
|
-
FontSize["L"] = "24px";
|
41
|
-
FontSize["M"] = "20px";
|
42
|
-
FontSize["S"] = "18px";
|
43
|
-
FontSize["XS"] = "16px";
|
44
|
-
FontSize["XXS"] = "14px";
|
45
|
-
FontSize["XXXS"] = "12px";
|
46
|
-
FontSize["XXXXS"] = "10px";
|
47
|
-
})(FontSize || (FontSize = {}));
|
48
|
-
exports.FontSize = FontSize;
|
49
|
-
var LineHeight;
|
50
|
-
(function (LineHeight) {
|
51
|
-
LineHeight["XXL"] = "5";
|
52
|
-
LineHeight["XL"] = "4";
|
53
|
-
LineHeight["L"] = "3";
|
54
|
-
LineHeight["M"] = "2.5";
|
55
|
-
LineHeight["S"] = "2";
|
56
|
-
LineHeight["XS"] = "1.5";
|
57
|
-
LineHeight["XXS"] = "1";
|
58
|
-
})(LineHeight || (LineHeight = {}));
|
59
|
-
exports.LineHeight = LineHeight;
|
60
|
-
var FontWeight;
|
61
|
-
(function (FontWeight) {
|
62
|
-
FontWeight["BOLD"] = "800";
|
63
|
-
FontWeight["NORMAL"] = "600";
|
64
|
-
FontWeight["THIN"] = "400";
|
65
|
-
})(FontWeight || (FontWeight = {}));
|
66
|
-
exports.FontWeight = FontWeight;
|
67
|
-
var Color;
|
68
|
-
(function (Color) {
|
69
|
-
Color["DEFAULT"] = "currentColor";
|
70
|
-
Color["PRIMARY"] = "text-primary";
|
71
|
-
Color["SECONDARY"] = "text-secondary";
|
72
|
-
Color["SUCCESS"] = "text-success";
|
73
|
-
Color["WARNING"] = "text-warning";
|
74
|
-
Color["DANGER"] = "text-danger";
|
75
|
-
Color["INFO"] = "text-info";
|
76
|
-
Color["DARK"] = "text-dark";
|
77
|
-
Color["LIGHT"] = "text-light";
|
78
|
-
})(Color || (Color = {}));
|
79
|
-
exports.Color = Color;
|
80
|
-
var CustomText = function (_a) {
|
81
|
-
var _b;
|
82
|
-
var id = _a.id, value = _a.value, _c = _a.className, className = _c === void 0 ? "" : _c, _d = _a.style, style = _d === void 0 ? {} : _d, _e = _a.textType, textType = _e === void 0 ? TextType.PARAGRAPH : _e, color = _a.color, textAlign = _a.textAlign, fontSize = _a.fontSize, lineHeight = _a.lineHeight, fontWeight = _a.fontWeight, _f = _a.underline, underline = _f === void 0 ? false : _f, _g = _a.overline, overline = _g === void 0 ? false : _g, _h = _a.linethrough, linethrough = _h === void 0 ? false : _h, _j = _a.italic, italic = _j === void 0 ? false : _j, textAlignClass = _a.textAlignClass, containerClass = _a.containerClass, linkText = _a.linkText;
|
83
|
-
var defaultStyles = (_b = {},
|
84
|
-
_b[TextType.BOLDHEAD] = {
|
85
|
-
fontSize: FontSize.XL,
|
86
|
-
lineHeight: LineHeight.S,
|
87
|
-
fontWeight: FontWeight.BOLD,
|
88
|
-
},
|
89
|
-
_b[TextType.HEADING] = {
|
90
|
-
fontSize: FontSize.XL,
|
91
|
-
lineHeight: LineHeight.S,
|
92
|
-
fontWeight: FontWeight.NORMAL,
|
93
|
-
},
|
94
|
-
_b[TextType.SUBHEADING] = {
|
95
|
-
fontSize: FontSize.L,
|
96
|
-
lineHeight: LineHeight.XS,
|
97
|
-
fontWeight: FontWeight.NORMAL,
|
98
|
-
},
|
99
|
-
_b[TextType.PARAGRAPH] = {
|
100
|
-
fontSize: FontSize.XS,
|
101
|
-
lineHeight: LineHeight.XXS,
|
102
|
-
fontWeight: FontWeight.THIN,
|
103
|
-
},
|
104
|
-
_b);
|
105
|
-
if (textType == TextType.BOLDHEAD && !color) {
|
106
|
-
color = Color.DARK;
|
107
|
-
}
|
108
|
-
else if (textType == TextType.HEADING && !color) {
|
109
|
-
color = Color.DARK;
|
110
|
-
}
|
111
|
-
else if (textType == TextType.SUBHEADING && !color) {
|
112
|
-
color = Color.DARK;
|
113
|
-
}
|
114
|
-
else if (textType == TextType.PARAGRAPH && !color) {
|
115
|
-
color = Color.DEFAULT;
|
116
|
-
}
|
117
|
-
if (textAlign == TextAlign.START) {
|
118
|
-
textAlignClass = "text-start";
|
119
|
-
}
|
120
|
-
else if (textAlign == TextAlign.CENTER) {
|
121
|
-
textAlignClass = "text-center";
|
122
|
-
}
|
123
|
-
else if (textAlign == TextAlign.END) {
|
124
|
-
textAlignClass = "text-end";
|
125
|
-
}
|
126
|
-
var textDecoration = [
|
127
|
-
underline ? "underline" : "",
|
128
|
-
overline ? "overline" : "",
|
129
|
-
linethrough ? "line-through" : "",
|
130
|
-
]
|
131
|
-
.filter(Boolean)
|
132
|
-
.join(" ");
|
133
|
-
var combinedStyle = __assign(__assign(__assign({}, defaultStyles[textType]), { textAlign: textAlign !== null && textAlign !== void 0 ? textAlign : defaultStyles[textType].textAlign, fontSize: fontSize !== null && fontSize !== void 0 ? fontSize : defaultStyles[textType].fontSize, lineHeight: lineHeight !== null && lineHeight !== void 0 ? lineHeight : defaultStyles[textType].lineHeight, fontWeight: fontWeight !== null && fontWeight !== void 0 ? fontWeight : defaultStyles[textType].fontWeight, textDecoration: textDecoration || undefined, fontStyle: italic ? "italic" : undefined }), style);
|
134
|
-
var combinedClassName = "".concat(color, " ").concat(className).trim();
|
135
|
-
/**
|
136
|
-
* Metindeki düz linkleri `<a>` etiketi ile sarmalar ve HTML olarak render eder.
|
137
|
-
*/
|
138
|
-
var processTextWithLinks = function (text, linkText) {
|
139
|
-
if (typeof text !== "string")
|
140
|
-
return text;
|
141
|
-
// URL regex
|
142
|
-
var urlRegex = /(https?:\/\/[^\s]+|www\.[^\s]+)/g;
|
143
|
-
// Önce tüm satırları parçala (HTML olarak yazıldıysa çalışsın)
|
144
|
-
return text
|
145
|
-
.split("\n")
|
146
|
-
.map(function (line, lineIndex) {
|
147
|
-
// Metin içinde link var mı kontrol et
|
148
|
-
var parts = line.split(urlRegex);
|
149
|
-
return (react_1.default.createElement("p", { key: lineIndex, style: { margin: "0" } }, parts.map(function (part, index) {
|
150
|
-
return urlRegex.test(part) ? (react_1.default.createElement("a", { key: index, href: part.startsWith("http") ? part : "https://".concat(part), target: "_blank", rel: "noopener noreferrer", style: { wordBreak: "break-word", color: "#007bff" } }, linkText || part.replace(/https?:\/\/|www\.|\/$/g, ""))) : (react_1.default.createElement("span", { dangerouslySetInnerHTML: { __html: part }, key: index }));
|
151
|
-
})));
|
152
|
-
});
|
153
|
-
};
|
154
|
-
return (react_1.default.createElement("div", { className: "".concat(containerClass, " ").concat(textAlignClass) },
|
155
|
-
react_1.default.createElement("span", { id: id || "custom-text-".concat(Date.now()), className: "custom-text ".concat(combinedClassName), style: combinedStyle }, processTextWithLinks(value, linkText))));
|
156
|
-
};
|
157
|
-
exports.CustomText = CustomText;
|
158
|
-
exports.default = CustomText;
|
1
|
+
"use strict";
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
3
|
+
__assign = Object.assign || function(t) {
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
5
|
+
s = arguments[i];
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
7
|
+
t[p] = s[p];
|
8
|
+
}
|
9
|
+
return t;
|
10
|
+
};
|
11
|
+
return __assign.apply(this, arguments);
|
12
|
+
};
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
exports.Color = exports.FontWeight = exports.LineHeight = exports.FontSize = exports.TextAlign = exports.TextType = exports.CustomText = void 0;
|
18
|
+
var react_1 = __importDefault(require("react"));
|
19
|
+
var TextType;
|
20
|
+
(function (TextType) {
|
21
|
+
TextType["BOLDHEAD"] = "boldhead";
|
22
|
+
TextType["HEADING"] = "heading";
|
23
|
+
TextType["SUBHEADING"] = "subheading";
|
24
|
+
TextType["PARAGRAPH"] = "paragraph";
|
25
|
+
})(TextType || (TextType = {}));
|
26
|
+
exports.TextType = TextType;
|
27
|
+
var TextAlign;
|
28
|
+
(function (TextAlign) {
|
29
|
+
TextAlign["START"] = "start";
|
30
|
+
TextAlign["CENTER"] = "center";
|
31
|
+
TextAlign["END"] = "end";
|
32
|
+
})(TextAlign || (TextAlign = {}));
|
33
|
+
exports.TextAlign = TextAlign;
|
34
|
+
var FontSize;
|
35
|
+
(function (FontSize) {
|
36
|
+
FontSize["XXXXL"] = "96px";
|
37
|
+
FontSize["XXXL"] = "72px";
|
38
|
+
FontSize["XXL"] = "48px";
|
39
|
+
FontSize["XL"] = "32px";
|
40
|
+
FontSize["L"] = "24px";
|
41
|
+
FontSize["M"] = "20px";
|
42
|
+
FontSize["S"] = "18px";
|
43
|
+
FontSize["XS"] = "16px";
|
44
|
+
FontSize["XXS"] = "14px";
|
45
|
+
FontSize["XXXS"] = "12px";
|
46
|
+
FontSize["XXXXS"] = "10px";
|
47
|
+
})(FontSize || (FontSize = {}));
|
48
|
+
exports.FontSize = FontSize;
|
49
|
+
var LineHeight;
|
50
|
+
(function (LineHeight) {
|
51
|
+
LineHeight["XXL"] = "5";
|
52
|
+
LineHeight["XL"] = "4";
|
53
|
+
LineHeight["L"] = "3";
|
54
|
+
LineHeight["M"] = "2.5";
|
55
|
+
LineHeight["S"] = "2";
|
56
|
+
LineHeight["XS"] = "1.5";
|
57
|
+
LineHeight["XXS"] = "1";
|
58
|
+
})(LineHeight || (LineHeight = {}));
|
59
|
+
exports.LineHeight = LineHeight;
|
60
|
+
var FontWeight;
|
61
|
+
(function (FontWeight) {
|
62
|
+
FontWeight["BOLD"] = "800";
|
63
|
+
FontWeight["NORMAL"] = "600";
|
64
|
+
FontWeight["THIN"] = "400";
|
65
|
+
})(FontWeight || (FontWeight = {}));
|
66
|
+
exports.FontWeight = FontWeight;
|
67
|
+
var Color;
|
68
|
+
(function (Color) {
|
69
|
+
Color["DEFAULT"] = "currentColor";
|
70
|
+
Color["PRIMARY"] = "text-primary";
|
71
|
+
Color["SECONDARY"] = "text-secondary";
|
72
|
+
Color["SUCCESS"] = "text-success";
|
73
|
+
Color["WARNING"] = "text-warning";
|
74
|
+
Color["DANGER"] = "text-danger";
|
75
|
+
Color["INFO"] = "text-info";
|
76
|
+
Color["DARK"] = "text-dark";
|
77
|
+
Color["LIGHT"] = "text-light";
|
78
|
+
})(Color || (Color = {}));
|
79
|
+
exports.Color = Color;
|
80
|
+
var CustomText = function (_a) {
|
81
|
+
var _b;
|
82
|
+
var id = _a.id, value = _a.value, _c = _a.className, className = _c === void 0 ? "" : _c, _d = _a.style, style = _d === void 0 ? {} : _d, _e = _a.textType, textType = _e === void 0 ? TextType.PARAGRAPH : _e, color = _a.color, textAlign = _a.textAlign, fontSize = _a.fontSize, lineHeight = _a.lineHeight, fontWeight = _a.fontWeight, _f = _a.underline, underline = _f === void 0 ? false : _f, _g = _a.overline, overline = _g === void 0 ? false : _g, _h = _a.linethrough, linethrough = _h === void 0 ? false : _h, _j = _a.italic, italic = _j === void 0 ? false : _j, textAlignClass = _a.textAlignClass, containerClass = _a.containerClass, linkText = _a.linkText;
|
83
|
+
var defaultStyles = (_b = {},
|
84
|
+
_b[TextType.BOLDHEAD] = {
|
85
|
+
fontSize: FontSize.XL,
|
86
|
+
lineHeight: LineHeight.S,
|
87
|
+
fontWeight: FontWeight.BOLD,
|
88
|
+
},
|
89
|
+
_b[TextType.HEADING] = {
|
90
|
+
fontSize: FontSize.XL,
|
91
|
+
lineHeight: LineHeight.S,
|
92
|
+
fontWeight: FontWeight.NORMAL,
|
93
|
+
},
|
94
|
+
_b[TextType.SUBHEADING] = {
|
95
|
+
fontSize: FontSize.L,
|
96
|
+
lineHeight: LineHeight.XS,
|
97
|
+
fontWeight: FontWeight.NORMAL,
|
98
|
+
},
|
99
|
+
_b[TextType.PARAGRAPH] = {
|
100
|
+
fontSize: FontSize.XS,
|
101
|
+
lineHeight: LineHeight.XXS,
|
102
|
+
fontWeight: FontWeight.THIN,
|
103
|
+
},
|
104
|
+
_b);
|
105
|
+
if (textType == TextType.BOLDHEAD && !color) {
|
106
|
+
color = Color.DARK;
|
107
|
+
}
|
108
|
+
else if (textType == TextType.HEADING && !color) {
|
109
|
+
color = Color.DARK;
|
110
|
+
}
|
111
|
+
else if (textType == TextType.SUBHEADING && !color) {
|
112
|
+
color = Color.DARK;
|
113
|
+
}
|
114
|
+
else if (textType == TextType.PARAGRAPH && !color) {
|
115
|
+
color = Color.DEFAULT;
|
116
|
+
}
|
117
|
+
if (textAlign == TextAlign.START) {
|
118
|
+
textAlignClass = "text-start";
|
119
|
+
}
|
120
|
+
else if (textAlign == TextAlign.CENTER) {
|
121
|
+
textAlignClass = "text-center";
|
122
|
+
}
|
123
|
+
else if (textAlign == TextAlign.END) {
|
124
|
+
textAlignClass = "text-end";
|
125
|
+
}
|
126
|
+
var textDecoration = [
|
127
|
+
underline ? "underline" : "",
|
128
|
+
overline ? "overline" : "",
|
129
|
+
linethrough ? "line-through" : "",
|
130
|
+
]
|
131
|
+
.filter(Boolean)
|
132
|
+
.join(" ");
|
133
|
+
var combinedStyle = __assign(__assign(__assign({}, defaultStyles[textType]), { textAlign: textAlign !== null && textAlign !== void 0 ? textAlign : defaultStyles[textType].textAlign, fontSize: fontSize !== null && fontSize !== void 0 ? fontSize : defaultStyles[textType].fontSize, lineHeight: lineHeight !== null && lineHeight !== void 0 ? lineHeight : defaultStyles[textType].lineHeight, fontWeight: fontWeight !== null && fontWeight !== void 0 ? fontWeight : defaultStyles[textType].fontWeight, textDecoration: textDecoration || undefined, fontStyle: italic ? "italic" : undefined }), style);
|
134
|
+
var combinedClassName = "".concat(color, " ").concat(className).trim();
|
135
|
+
/**
|
136
|
+
* Metindeki düz linkleri `<a>` etiketi ile sarmalar ve HTML olarak render eder.
|
137
|
+
*/
|
138
|
+
var processTextWithLinks = function (text, linkText) {
|
139
|
+
if (typeof text !== "string")
|
140
|
+
return text;
|
141
|
+
// URL regex
|
142
|
+
var urlRegex = /(https?:\/\/[^\s]+|www\.[^\s]+)/g;
|
143
|
+
// Önce tüm satırları parçala (HTML olarak yazıldıysa çalışsın)
|
144
|
+
return text
|
145
|
+
.split("\n")
|
146
|
+
.map(function (line, lineIndex) {
|
147
|
+
// Metin içinde link var mı kontrol et
|
148
|
+
var parts = line.split(urlRegex);
|
149
|
+
return (react_1.default.createElement("p", { key: lineIndex, style: { margin: "0" } }, parts.map(function (part, index) {
|
150
|
+
return urlRegex.test(part) ? (react_1.default.createElement("a", { key: index, href: part.startsWith("http") ? part : "https://".concat(part), target: "_blank", rel: "noopener noreferrer", style: { wordBreak: "break-word", color: "#007bff" } }, linkText || part.replace(/https?:\/\/|www\.|\/$/g, ""))) : (react_1.default.createElement("span", { dangerouslySetInnerHTML: { __html: part }, key: index }));
|
151
|
+
})));
|
152
|
+
});
|
153
|
+
};
|
154
|
+
return (react_1.default.createElement("div", { className: "".concat(containerClass, " ").concat(textAlignClass) },
|
155
|
+
react_1.default.createElement("span", { id: id || "custom-text-".concat(Date.now()), className: "custom-text ".concat(combinedClassName), style: combinedStyle }, processTextWithLinks(value, linkText))));
|
156
|
+
};
|
157
|
+
exports.CustomText = CustomText;
|
158
|
+
exports.default = CustomText;
|
@@ -1,22 +1,22 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
interface CustomTextareaProps {
|
3
|
-
id?: string;
|
4
|
-
name?: string;
|
5
|
-
label: string;
|
6
|
-
value: string;
|
7
|
-
placeholder?: string;
|
8
|
-
required?: boolean;
|
9
|
-
errorMessage?: string;
|
10
|
-
conditionalErrorVisible?: boolean;
|
11
|
-
conditionalErrorMessage?: string;
|
12
|
-
disabled?: boolean;
|
13
|
-
readOnly?: boolean;
|
14
|
-
rows?: number;
|
15
|
-
description?: string | null;
|
16
|
-
tooltip?: string;
|
17
|
-
style?: React.CSSProperties;
|
18
|
-
className?: string;
|
19
|
-
onChange: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
20
|
-
}
|
21
|
-
declare const CustomTextarea: React.FC<CustomTextareaProps>;
|
22
|
-
export default CustomTextarea;
|
1
|
+
import React from 'react';
|
2
|
+
interface CustomTextareaProps {
|
3
|
+
id?: string;
|
4
|
+
name?: string;
|
5
|
+
label: string;
|
6
|
+
value: string;
|
7
|
+
placeholder?: string;
|
8
|
+
required?: boolean;
|
9
|
+
errorMessage?: string;
|
10
|
+
conditionalErrorVisible?: boolean;
|
11
|
+
conditionalErrorMessage?: string;
|
12
|
+
disabled?: boolean;
|
13
|
+
readOnly?: boolean;
|
14
|
+
rows?: number;
|
15
|
+
description?: string | null;
|
16
|
+
tooltip?: string;
|
17
|
+
style?: React.CSSProperties;
|
18
|
+
className?: string;
|
19
|
+
onChange: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
20
|
+
}
|
21
|
+
declare const CustomTextarea: React.FC<CustomTextareaProps>;
|
22
|
+
export default CustomTextarea;
|
@@ -1,33 +1,33 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
var react_1 = __importDefault(require("react"));
|
7
|
-
var react_bootstrap_1 = require("react-bootstrap");
|
8
|
-
var fa_1 = require("react-icons/fa");
|
9
|
-
var CustomTextarea = function (_a) {
|
10
|
-
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, errorMessage = _a.errorMessage, _c = _a.conditionalErrorVisible, conditionalErrorVisible = _c === void 0 ? false : _c, conditionalErrorMessage = _a.conditionalErrorMessage, _d = _a.disabled, disabled = _d === void 0 ? false : _d, _e = _a.readOnly, readOnly = _e === void 0 ? false : _e, _f = _a.rows, rows = _f === void 0 ? 3 : _f, description = _a.description, tooltip = _a.tooltip, style = _a.style, className = _a.className, onChange = _a.onChange;
|
11
|
-
return (react_1.default.createElement("div", { className: className },
|
12
|
-
react_1.default.createElement("div", { className: "form-group" },
|
13
|
-
react_1.default.createElement("label", { htmlFor: id, className: "form-label" }, label),
|
14
|
-
react_1.default.createElement("div", { className: "position-relative" },
|
15
|
-
tooltip ? (react_1.default.createElement(react_bootstrap_1.OverlayTrigger, { placement: "bottom", overlay: react_1.default.createElement(react_bootstrap_1.Tooltip, { id: "tooltip-".concat(tooltip) }, tooltip) },
|
16
|
-
react_1.default.createElement("textarea", { id: id, name: name, value: value, placeholder: placeholder, onChange: onChange, className: "form-control", style: style, required: required, disabled: disabled, readOnly: readOnly, rows: rows }))) : (react_1.default.createElement("textarea", { id: id, name: name, value: value, placeholder: placeholder, onChange: onChange, className: "form-control", style: style, required: required, disabled: disabled, readOnly: readOnly, rows: rows })),
|
17
|
-
required && (react_1.default.createElement("div", { className: "invalid-feedback text-danger" },
|
18
|
-
react_1.default.createElement("div", { className: "description-icon" },
|
19
|
-
react_1.default.createElement(fa_1.FaExclamationTriangle, null)),
|
20
|
-
react_1.default.createElement("div", { className: "description-text" },
|
21
|
-
react_1.default.createElement("span", null, errorMessage || 'Bu alan boş bırakılamaz.')))),
|
22
|
-
conditionalErrorVisible && (react_1.default.createElement("div", { className: "conditional-error-message text-warning" },
|
23
|
-
react_1.default.createElement("div", { className: "description-icon" },
|
24
|
-
react_1.default.createElement(fa_1.FaExclamationTriangle, null)),
|
25
|
-
react_1.default.createElement("div", { className: "description-text" },
|
26
|
-
react_1.default.createElement("span", null, conditionalErrorMessage)))),
|
27
|
-
description && (react_1.default.createElement("div", { className: "form-description text-secondary" },
|
28
|
-
react_1.default.createElement("div", { className: "description-icon" },
|
29
|
-
react_1.default.createElement(fa_1.FaInfoCircle, null)),
|
30
|
-
react_1.default.createElement("div", { className: "description-text" },
|
31
|
-
react_1.default.createElement("span", null, description))))))));
|
32
|
-
};
|
33
|
-
exports.default = CustomTextarea;
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
var react_1 = __importDefault(require("react"));
|
7
|
+
var react_bootstrap_1 = require("react-bootstrap");
|
8
|
+
var fa_1 = require("react-icons/fa");
|
9
|
+
var CustomTextarea = function (_a) {
|
10
|
+
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, errorMessage = _a.errorMessage, _c = _a.conditionalErrorVisible, conditionalErrorVisible = _c === void 0 ? false : _c, conditionalErrorMessage = _a.conditionalErrorMessage, _d = _a.disabled, disabled = _d === void 0 ? false : _d, _e = _a.readOnly, readOnly = _e === void 0 ? false : _e, _f = _a.rows, rows = _f === void 0 ? 3 : _f, description = _a.description, tooltip = _a.tooltip, style = _a.style, className = _a.className, onChange = _a.onChange;
|
11
|
+
return (react_1.default.createElement("div", { className: className },
|
12
|
+
react_1.default.createElement("div", { className: "form-group" },
|
13
|
+
react_1.default.createElement("label", { htmlFor: id, className: "form-label" }, label),
|
14
|
+
react_1.default.createElement("div", { className: "position-relative" },
|
15
|
+
tooltip ? (react_1.default.createElement(react_bootstrap_1.OverlayTrigger, { placement: "bottom", overlay: react_1.default.createElement(react_bootstrap_1.Tooltip, { id: "tooltip-".concat(tooltip) }, tooltip) },
|
16
|
+
react_1.default.createElement("textarea", { id: id, name: name, value: value, placeholder: placeholder, onChange: onChange, className: "form-control", style: style, required: required, disabled: disabled, readOnly: readOnly, rows: rows }))) : (react_1.default.createElement("textarea", { id: id, name: name, value: value, placeholder: placeholder, onChange: onChange, className: "form-control", style: style, required: required, disabled: disabled, readOnly: readOnly, rows: rows })),
|
17
|
+
required && (react_1.default.createElement("div", { className: "invalid-feedback text-danger" },
|
18
|
+
react_1.default.createElement("div", { className: "description-icon" },
|
19
|
+
react_1.default.createElement(fa_1.FaExclamationTriangle, null)),
|
20
|
+
react_1.default.createElement("div", { className: "description-text" },
|
21
|
+
react_1.default.createElement("span", null, errorMessage || 'Bu alan boş bırakılamaz.')))),
|
22
|
+
conditionalErrorVisible && (react_1.default.createElement("div", { className: "conditional-error-message text-warning" },
|
23
|
+
react_1.default.createElement("div", { className: "description-icon" },
|
24
|
+
react_1.default.createElement(fa_1.FaExclamationTriangle, null)),
|
25
|
+
react_1.default.createElement("div", { className: "description-text" },
|
26
|
+
react_1.default.createElement("span", null, conditionalErrorMessage)))),
|
27
|
+
description && (react_1.default.createElement("div", { className: "form-description text-secondary" },
|
28
|
+
react_1.default.createElement("div", { className: "description-icon" },
|
29
|
+
react_1.default.createElement(fa_1.FaInfoCircle, null)),
|
30
|
+
react_1.default.createElement("div", { className: "description-text" },
|
31
|
+
react_1.default.createElement("span", null, description))))))));
|
32
|
+
};
|
33
|
+
exports.default = CustomTextarea;
|
@@ -1,30 +1,30 @@
|
|
1
|
-
import React from "react";
|
2
|
-
import "../assets/css/custom-timeline.css";
|
3
|
-
export interface AdditionalInfo {
|
4
|
-
time: string;
|
5
|
-
description: React.ReactNode;
|
6
|
-
}
|
7
|
-
export interface TimelineElement {
|
8
|
-
title: string;
|
9
|
-
mainTime: string;
|
10
|
-
description?: string;
|
11
|
-
additionalInfos?: AdditionalInfo[];
|
12
|
-
dotColor?: DotColor;
|
13
|
-
elements?: TimelineElement[];
|
14
|
-
}
|
15
|
-
interface CustomTimelineProps {
|
16
|
-
timelineElements: TimelineElement[];
|
17
|
-
}
|
18
|
-
declare enum DotColor {
|
19
|
-
PRIMARY = "border-primary text-primary",
|
20
|
-
SECONDARY = "border-secondary text-secondary",
|
21
|
-
SUCCESS = "border-success text-success",
|
22
|
-
WARNING = "border-warning text-warning",
|
23
|
-
DANGER = "border-danger text-danger",
|
24
|
-
INFO = "border-info text-info",
|
25
|
-
DARK = "border-dark text-dark",
|
26
|
-
LIGHT = "border-light text-light"
|
27
|
-
}
|
28
|
-
declare const CustomTimeline: React.FC<CustomTimelineProps>;
|
29
|
-
export { CustomTimeline, DotColor };
|
30
|
-
export default CustomTimeline;
|
1
|
+
import React from "react";
|
2
|
+
import "../assets/css/custom-timeline.css";
|
3
|
+
export interface AdditionalInfo {
|
4
|
+
time: string;
|
5
|
+
description: React.ReactNode;
|
6
|
+
}
|
7
|
+
export interface TimelineElement {
|
8
|
+
title: string;
|
9
|
+
mainTime: string;
|
10
|
+
description?: string;
|
11
|
+
additionalInfos?: AdditionalInfo[];
|
12
|
+
dotColor?: DotColor;
|
13
|
+
elements?: TimelineElement[];
|
14
|
+
}
|
15
|
+
interface CustomTimelineProps {
|
16
|
+
timelineElements: TimelineElement[];
|
17
|
+
}
|
18
|
+
declare enum DotColor {
|
19
|
+
PRIMARY = "border-primary text-primary",
|
20
|
+
SECONDARY = "border-secondary text-secondary",
|
21
|
+
SUCCESS = "border-success text-success",
|
22
|
+
WARNING = "border-warning text-warning",
|
23
|
+
DANGER = "border-danger text-danger",
|
24
|
+
INFO = "border-info text-info",
|
25
|
+
DARK = "border-dark text-dark",
|
26
|
+
LIGHT = "border-light text-light"
|
27
|
+
}
|
28
|
+
declare const CustomTimeline: React.FC<CustomTimelineProps>;
|
29
|
+
export { CustomTimeline, DotColor };
|
30
|
+
export default CustomTimeline;
|