@sydsoft/base 1.53.0 → 1.56.0
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 → dist/esm}/_lib/baseFunctions.js +11 -24
- package/{_dist → dist/esm}/_lib/inputMask.js +3 -7
- package/{_dist → dist/esm}/_lib/listFunctions.js +2 -7
- package/dist/esm/_lib/storage/cookies.js +34 -0
- package/{_dist → dist/esm}/_lib/storage/encData.js +5 -10
- package/dist/esm/_lib/storage/localStorage.js +69 -0
- package/dist/esm/_lib/storage/sessionStorage.js +69 -0
- package/{_dist → dist/esm}/_lib/useInterval.js +5 -8
- package/{_dist → dist/esm}/alert/index.js +13 -22
- package/dist/esm/box/Box.js +15 -0
- package/dist/esm/box/BoxContent.js +7 -0
- package/dist/esm/box/BoxFooter.js +8 -0
- package/dist/esm/box/BoxHeader.js +9 -0
- package/dist/esm/box/index.js +9 -0
- package/{_dist → dist/esm}/countDown/index.js +12 -17
- package/{_dist → dist/esm}/dateTime/index.js +1 -3
- package/dist/esm/form/Button.js +76 -0
- package/dist/esm/form/Checkbox.js +23 -0
- package/dist/esm/form/Dialog.js +40 -0
- package/dist/esm/form/Form.js +12 -0
- package/{_dist → dist/esm}/form/FormOlustur.js +19 -22
- package/{_dist → dist/esm}/form/Input.js +45 -49
- package/dist/esm/form/Label.js +9 -0
- package/{_dist → dist/esm}/form/SearchableInput.js +45 -48
- package/{_dist → dist/esm}/form/UploadBase.js +16 -21
- package/dist/esm/form/index.js +9 -0
- package/dist/esm/grid/index.js +97 -0
- package/dist/esm/icon/icons.js +23 -0
- package/dist/esm/icon/index.js +26 -0
- package/dist/esm/icon/mui.js +1 -0
- package/dist/esm/index.js +19 -0
- package/dist/esm/menu/index.js +52 -0
- package/{_dist → dist/esm}/modal/index.js +13 -16
- package/{_dist → dist/esm}/popover/index.js +36 -39
- package/{_dist → dist/esm}/tooltip/index.js +6 -9
- package/package.json +8 -13
- package/_dist/_lib/storage/cookies.js +0 -41
- package/_dist/_lib/storage/localStorage.js +0 -78
- package/_dist/_lib/storage/sessionStorage.js +0 -78
- package/_dist/box/Box.js +0 -19
- package/_dist/box/BoxContent.js +0 -11
- package/_dist/box/BoxFooter.js +0 -11
- package/_dist/box/BoxHeader.js +0 -12
- package/_dist/box/index.js +0 -12
- package/_dist/form/Button.js +0 -79
- package/_dist/form/Checkbox.js +0 -28
- package/_dist/form/Dialog.js +0 -44
- package/_dist/form/Form.js +0 -15
- package/_dist/form/Label.js +0 -12
- package/_dist/form/index.js +0 -12
- package/_dist/grid/index.js +0 -104
- package/_dist/icon/icons.js +0 -26
- package/_dist/icon/index.js +0 -30
- package/_dist/icon/mui.js +0 -2
- package/_dist/index.js +0 -22
- package/_dist/menu/index.js +0 -55
- /package/{_dist → dist/esm}/_lib/baseFunctions.d.ts +0 -0
- /package/{_dist → dist/esm}/_lib/inputMask.d.ts +0 -0
- /package/{_dist → dist/esm}/_lib/listFunctions.d.ts +0 -0
- /package/{_dist → dist/esm}/_lib/storage/cookies.d.ts +0 -0
- /package/{_dist → dist/esm}/_lib/storage/encData.d.ts +0 -0
- /package/{_dist → dist/esm}/_lib/storage/localStorage.d.ts +0 -0
- /package/{_dist → dist/esm}/_lib/storage/sessionStorage.d.ts +0 -0
- /package/{_dist → dist/esm}/_lib/useInterval.d.ts +0 -0
- /package/{_dist → dist/esm}/alert/index.d.ts +0 -0
- /package/{_dist → dist/esm}/alert/index.module.css +0 -0
- /package/{_dist → dist/esm}/box/Box.d.ts +0 -0
- /package/{_dist → dist/esm}/box/Box.module.css +0 -0
- /package/{_dist → dist/esm}/box/BoxContent.d.ts +0 -0
- /package/{_dist → dist/esm}/box/BoxFooter.d.ts +0 -0
- /package/{_dist → dist/esm}/box/BoxHeader.d.ts +0 -0
- /package/{_dist → dist/esm}/box/index.d.ts +0 -0
- /package/{_dist → dist/esm}/countDown/index.d.ts +0 -0
- /package/{_dist → dist/esm}/dateTime/index.d.ts +0 -0
- /package/{_dist → dist/esm}/form/Button.d.ts +0 -0
- /package/{_dist → dist/esm}/form/Checkbox.d.ts +0 -0
- /package/{_dist → dist/esm}/form/Dialog.d.ts +0 -0
- /package/{_dist → dist/esm}/form/Form.d.ts +0 -0
- /package/{_dist → dist/esm}/form/FormOlustur.d.ts +0 -0
- /package/{_dist → dist/esm}/form/Input.d.ts +0 -0
- /package/{_dist → dist/esm}/form/Label.d.ts +0 -0
- /package/{_dist → dist/esm}/form/SearchableInput.d.ts +0 -0
- /package/{_dist → dist/esm}/form/UploadBase.d.ts +0 -0
- /package/{_dist → dist/esm}/form/index.d.ts +0 -0
- /package/{_dist → dist/esm}/form/styles/Button.module.css +0 -0
- /package/{_dist → dist/esm}/form/styles/Input.module.css +0 -0
- /package/{_dist → dist/esm}/form/styles/Label.module.css +0 -0
- /package/{_dist → dist/esm}/form/styles/SearchableInput.module.css +0 -0
- /package/{_dist → dist/esm}/grid/index.d.ts +0 -0
- /package/{_dist → dist/esm}/grid/index.module.css +0 -0
- /package/{_dist → dist/esm}/icon/icons.d.ts +0 -0
- /package/{_dist → dist/esm}/icon/index.d.ts +0 -0
- /package/{_dist → dist/esm}/icon/mui.d.ts +0 -0
- /package/{_dist → dist/esm}/index.d.ts +0 -0
- /package/{_dist → dist/esm}/menu/index.d.ts +0 -0
- /package/{_dist → dist/esm}/menu/index.module.css +0 -0
- /package/{_dist → dist/esm}/modal/index.d.ts +0 -0
- /package/{_dist → dist/esm}/modal/index.module.css +0 -0
- /package/{_dist → dist/esm}/popover/index.d.ts +0 -0
- /package/{_dist → dist/esm}/popover/index.module.css +0 -0
- /package/{_dist → dist/esm}/tooltip/index.d.ts +0 -0
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.uploadBase_CreateForm = exports.UploadBase = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
3
|
/**
|
|
7
4
|
* Copyright (c) 2024
|
|
8
5
|
* @author: izzetseydaoglu
|
|
9
6
|
* @last-modified: 11.06.2024 02:39
|
|
10
7
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
import { useEffect, useRef } from "react";
|
|
9
|
+
import { alert_add } from "../alert";
|
|
13
10
|
var upload_ext_ok = ["pdf", "doc", "docx", "xls", "xlsx", "jpg", "jpeg", "png", "bmp", "tiff", "tif", "udf", "txt", "rtf", "csv", "xml", "zip", "rar"];
|
|
14
11
|
var upload_maxsize = 30;
|
|
15
12
|
var upload_maxfile = 50;
|
|
16
|
-
var UploadBase = function (_a) {
|
|
13
|
+
export var UploadBase = function (_a) {
|
|
17
14
|
var _b = _a.component, component = _b === void 0 ? "div" : _b, children = _a.children, targetForm = _a.targetForm, onChange = _a.onChange, _c = _a.name, name = _c === void 0 ? "file__" : _c, _d = _a.required, required = _d === void 0 ? true : _d, _e = _a.multiple, multiple = _e === void 0 ? false : _e, _f = _a.maxSize, maxSize = _f === void 0 ? upload_maxsize : _f, _g = _a.maxFile, maxFile = _g === void 0 ? upload_maxfile : _g, _h = _a.ext_ok, ext_ok = _h === void 0 ? upload_ext_ok : _h, style = _a.style, className = _a.className, _j = _a.refUploadInput, refUploadInput = _j === void 0 ? null : _j, label = _a.label;
|
|
18
|
-
var ref =
|
|
19
|
-
|
|
15
|
+
var ref = useRef(null);
|
|
16
|
+
useEffect(function () {
|
|
20
17
|
if (refUploadInput)
|
|
21
18
|
refUploadInput.current = ref.current;
|
|
22
19
|
}, [ref.current]);
|
|
@@ -26,7 +23,7 @@ var UploadBase = function (_a) {
|
|
|
26
23
|
return null;
|
|
27
24
|
}
|
|
28
25
|
if (e.target.files.length > maxFile) {
|
|
29
|
-
|
|
26
|
+
alert_add({ type: "error", message: "En fazla " + maxFile + " dosya seçebilirsiniz." });
|
|
30
27
|
e.target.value = null;
|
|
31
28
|
return null;
|
|
32
29
|
}
|
|
@@ -35,10 +32,10 @@ var UploadBase = function (_a) {
|
|
|
35
32
|
var size = file.size;
|
|
36
33
|
var ext = file.name.replace(/^.*\./, "").toLowerCase();
|
|
37
34
|
if (ext_ok.indexOf(ext) === -1) {
|
|
38
|
-
|
|
35
|
+
alert_add({ type: "error", message: "Yüklemeye çalıştığınız dosya türü desteklenmiyor. Desteklenen dosya türleri: " + ext_ok.join(", ") });
|
|
39
36
|
}
|
|
40
37
|
else if (size > maxSize * 1000000) {
|
|
41
|
-
|
|
38
|
+
alert_add({ type: "error", message: "En fazla " + maxSize + "MB büyüklüğündeki dosyaları seçebilirsiniz." });
|
|
42
39
|
}
|
|
43
40
|
else {
|
|
44
41
|
fileList.push(file);
|
|
@@ -53,10 +50,10 @@ var UploadBase = function (_a) {
|
|
|
53
50
|
fileList.map(function (file) {
|
|
54
51
|
var _a;
|
|
55
52
|
uniqueID_1 = uniqueID_1 + 1;
|
|
56
|
-
newform_1 =
|
|
53
|
+
newform_1 = __assign(__assign({}, newform_1), (_a = {}, _a[name + uniqueID_1] = file, _a));
|
|
57
54
|
nameList_1.push(file.name);
|
|
58
55
|
});
|
|
59
|
-
targetForm(function (prev) { return (
|
|
56
|
+
targetForm(function (prev) { return (__assign(__assign({}, prev), { uploadBaseList: __assign({}, newform_1), uploadBaseListName: nameList_1.join(", ") })); });
|
|
60
57
|
}
|
|
61
58
|
};
|
|
62
59
|
var defaultStyle = {
|
|
@@ -64,7 +61,7 @@ var UploadBase = function (_a) {
|
|
|
64
61
|
cursor: "pointer"
|
|
65
62
|
};
|
|
66
63
|
var Component = component.toLowerCase();
|
|
67
|
-
return ((
|
|
64
|
+
return (_jsxs(Component, { className: className, style: __assign(__assign({}, defaultStyle), style), "data-label": label !== null && label !== void 0 ? label : "", children: [children, _jsx("input", { ref: ref, type: "file", required: required, onChange: fileSelected, multiple: multiple, accept: ext_ok.map(function (i) { return "." + i; }).join(","), style: {
|
|
68
65
|
position: "absolute",
|
|
69
66
|
top: 0,
|
|
70
67
|
left: 0,
|
|
@@ -75,17 +72,15 @@ var UploadBase = function (_a) {
|
|
|
75
72
|
zIndex: 1
|
|
76
73
|
} })] }));
|
|
77
74
|
};
|
|
78
|
-
|
|
79
|
-
var uploadBase_CreateForm = function (formData) {
|
|
75
|
+
export var uploadBase_CreateForm = function (formData) {
|
|
80
76
|
var _a;
|
|
81
|
-
var newform =
|
|
77
|
+
var newform = __assign({}, formData);
|
|
82
78
|
var list = (_a = formData["uploadBaseList"]) !== null && _a !== void 0 ? _a : {};
|
|
83
79
|
Object.keys(list).map(function (fileKey) {
|
|
84
80
|
var _a;
|
|
85
|
-
return (newform =
|
|
81
|
+
return (newform = __assign(__assign({}, newform), (_a = {}, _a[fileKey] = list[fileKey], _a)));
|
|
86
82
|
});
|
|
87
83
|
delete newform["uploadBaseList"];
|
|
88
84
|
delete newform["uploadBaseListName"];
|
|
89
85
|
return newform;
|
|
90
86
|
};
|
|
91
|
-
exports.uploadBase_CreateForm = uploadBase_CreateForm;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./Button";
|
|
2
|
+
export * from "./Checkbox";
|
|
3
|
+
export * from "./Dialog";
|
|
4
|
+
export * from "./Form";
|
|
5
|
+
export * from "./FormOlustur";
|
|
6
|
+
export * from "./Input";
|
|
7
|
+
export * from "./Label";
|
|
8
|
+
export * from "./SearchableInput";
|
|
9
|
+
export * from "./UploadBase";
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { __assign, __rest, __spreadArray } from "tslib";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import React, { useState } from 'react';
|
|
4
|
+
import styles from './index.module.css';
|
|
5
|
+
export var Row = function (_a) {
|
|
6
|
+
var children = _a.children, _b = _a.className, className = _b === void 0 ? '' : _b, style = _a.style, _c = _a.flexDirection, flexDirection = _c === void 0 ? 'row' : _c, _d = _a.flexWrap, flexWrap = _d === void 0 ? 'wrap' : _d, _e = _a.justifyContent, justifyContent = _e === void 0 ? 'flex-start' : _e, _f = _a.alignContent, alignContent = _f === void 0 ? 'center' : _f, _g = _a.alignItems, alignItems = _g === void 0 ? 'center' : _g, _h = _a.rowSpacing, rowSpacing = _h === void 0 ? 2 : _h, _j = _a.colSpacing, colSpacing = _j === void 0 ? 2 : _j, other = __rest(_a, ["children", "className", "style", "flexDirection", "flexWrap", "justifyContent", "alignContent", "alignItems", "rowSpacing", "colSpacing"]);
|
|
7
|
+
var classes = [
|
|
8
|
+
styles.row,
|
|
9
|
+
rowSpacing !== undefined && styles["row-spacing-".concat(rowSpacing)],
|
|
10
|
+
colSpacing !== undefined && styles["col-spacing-".concat(colSpacing)],
|
|
11
|
+
flexDirection !== 'row' && styles["flex-".concat(flexDirection.replace('-', '-'))],
|
|
12
|
+
flexWrap !== 'wrap' && styles["flex-".concat(flexWrap)],
|
|
13
|
+
justifyContent !== 'flex-start' && styles["justify-".concat(justifyContent.replace('flex-', '').replace('space-', ''))],
|
|
14
|
+
alignItems !== 'center' && styles["align-items-".concat(alignItems.replace('flex-', ''))],
|
|
15
|
+
alignContent !== 'center' && styles["align-content-".concat(alignContent.replace('flex-', ''))],
|
|
16
|
+
className
|
|
17
|
+
]
|
|
18
|
+
.filter(Boolean)
|
|
19
|
+
.join(' ');
|
|
20
|
+
return (_jsx("div", __assign({ className: classes, style: style }, other, { children: children })));
|
|
21
|
+
};
|
|
22
|
+
export var Col = function (_a) {
|
|
23
|
+
// Cascading logic - aynı sizin component'inizdeki gibi
|
|
24
|
+
var children = _a.children, _b = _a.className, className = _b === void 0 ? '' : _b, style = _a.style, xs = _a.xs, sm = _a.sm, md = _a.md, lg = _a.lg, xl = _a.xl, xxl = _a.xxl, other = __rest(_a, ["children", "className", "style", "xs", "sm", "md", "lg", "xl", "xxl"]);
|
|
25
|
+
var classes = [
|
|
26
|
+
styles.col,
|
|
27
|
+
// Sadece belirtilen breakpoint'ler için class ekle
|
|
28
|
+
xs && styles["col-xs-".concat(xs)],
|
|
29
|
+
sm && styles["col-sm-".concat(sm)],
|
|
30
|
+
md && styles["col-md-".concat(md)],
|
|
31
|
+
lg && styles["col-lg-".concat(lg)],
|
|
32
|
+
xl && styles["col-xl-".concat(xl)],
|
|
33
|
+
xxl && styles["col-xxl-".concat(xxl)],
|
|
34
|
+
className
|
|
35
|
+
]
|
|
36
|
+
.filter(Boolean)
|
|
37
|
+
.join(' ');
|
|
38
|
+
return (_jsx("div", __assign({ className: classes, style: style }, other, { children: children })));
|
|
39
|
+
};
|
|
40
|
+
export var Hidden = function (_a) {
|
|
41
|
+
var children = _a.children, hidden = _a.hidden, onlyHidden = _a.onlyHidden, other = __rest(_a, ["children", "hidden", "onlyHidden"]);
|
|
42
|
+
var existingClassName = children.props.className || '';
|
|
43
|
+
var hiddenClasses = [];
|
|
44
|
+
if (onlyHidden) {
|
|
45
|
+
onlyHidden.forEach(function (breakpoint) {
|
|
46
|
+
hiddenClasses.push(styles["hidden-".concat(breakpoint)]);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
else if (hidden) {
|
|
50
|
+
// Orijinal mantık: seçilen breakpoint ve altındaki tüm breakpoint'ler gizlenir
|
|
51
|
+
var breakpoints = ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'];
|
|
52
|
+
var targetIndex = breakpoints.indexOf(hidden);
|
|
53
|
+
if (targetIndex !== -1) {
|
|
54
|
+
for (var i = 0; i <= targetIndex; i++) {
|
|
55
|
+
hiddenClasses.push(styles["hidden-".concat(breakpoints[i])]);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
var newClassName = __spreadArray([existingClassName], hiddenClasses, true).filter(Boolean).join(' ');
|
|
60
|
+
return React.cloneElement(children, __assign({ className: newClassName }, other));
|
|
61
|
+
};
|
|
62
|
+
export var DevelopGridComponent = function () {
|
|
63
|
+
var _a = useState(''), currentBreakpoint = _a[0], setCurrentBreakpoint = _a[1];
|
|
64
|
+
// Breakpoint detector
|
|
65
|
+
React.useEffect(function () {
|
|
66
|
+
var updateBreakpoint = function () {
|
|
67
|
+
var width = window.innerWidth;
|
|
68
|
+
var breakpoint = '';
|
|
69
|
+
if (width <= 576)
|
|
70
|
+
breakpoint = 'XS (≤576px)';
|
|
71
|
+
else if (width <= 768)
|
|
72
|
+
breakpoint = 'SM (577-768px)';
|
|
73
|
+
else if (width <= 992)
|
|
74
|
+
breakpoint = 'MD (769-992px)';
|
|
75
|
+
else if (width <= 1200)
|
|
76
|
+
breakpoint = 'LG (993-1200px)';
|
|
77
|
+
else if (width <= 1400)
|
|
78
|
+
breakpoint = 'XL (1201-1400px)';
|
|
79
|
+
else
|
|
80
|
+
breakpoint = 'XXL (≥1401px)';
|
|
81
|
+
setCurrentBreakpoint(breakpoint);
|
|
82
|
+
};
|
|
83
|
+
updateBreakpoint();
|
|
84
|
+
window.addEventListener('resize', updateBreakpoint);
|
|
85
|
+
return function () { return window.removeEventListener('resize', updateBreakpoint); };
|
|
86
|
+
}, []);
|
|
87
|
+
return (_jsxs("div", { style: {
|
|
88
|
+
position: 'fixed',
|
|
89
|
+
bottom: '10px',
|
|
90
|
+
right: '10px',
|
|
91
|
+
background: '#333',
|
|
92
|
+
color: 'white',
|
|
93
|
+
padding: '10px',
|
|
94
|
+
borderRadius: '4px',
|
|
95
|
+
zIndex: 9999999
|
|
96
|
+
}, children: ["Current: ", currentBreakpoint] }));
|
|
97
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
export var iconMap = {
|
|
3
|
+
close: {
|
|
4
|
+
viewBox: '0 -960 960 960',
|
|
5
|
+
content: (_jsx(_Fragment, { children: _jsx("path", { d: "m336-280-56-56 144-144-144-143 56-56 144 144 143-144 56 56-144 143 144 144-56 56-143-144-144 144Z" }) }))
|
|
6
|
+
},
|
|
7
|
+
search: {
|
|
8
|
+
viewBox: '0 0 24 24',
|
|
9
|
+
content: (_jsxs(_Fragment, { children: [_jsx("path", { d: "M0 0h24v24H0V0z", fill: "none" }), _jsx("path", { d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" })] }))
|
|
10
|
+
},
|
|
11
|
+
edit: {
|
|
12
|
+
viewBox: '0 -960 960 960',
|
|
13
|
+
content: (_jsx("path", { d: "M200-200h57l391-391-57-57-391 391v57Zm-80 80v-170l528-527q12-11 26.5-17t30.5-6q16 0 31 6t26 18l55 56q12 11 17.5 26t5.5 30q0 16-5.5 30.5T817-647L290-120H120Zm640-584-56-56 56 56Zm-141 85-28-29 57 57-29-28Z" }))
|
|
14
|
+
},
|
|
15
|
+
keyboard_arrow_up: {
|
|
16
|
+
viewBox: '0 -960 960 960',
|
|
17
|
+
content: _jsx("path", { d: "M480-528 296-344l-56-56 240-240 240 240-56 56-184-184Z" })
|
|
18
|
+
},
|
|
19
|
+
keyboard_arrow_down: {
|
|
20
|
+
viewBox: '0 -960 960 960',
|
|
21
|
+
content: _jsx("path", { d: "M480-344 240-584l56-56 184 184 184-184 56 56-240 240Z" })
|
|
22
|
+
}
|
|
23
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { __assign, __rest } from "tslib";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { iconMap } from './icons';
|
|
4
|
+
export var iconList = Object.keys(iconMap);
|
|
5
|
+
var defaultIconStyle = {
|
|
6
|
+
userSelect: 'none',
|
|
7
|
+
width: '1em',
|
|
8
|
+
height: '1em',
|
|
9
|
+
// display: 'inline-block',
|
|
10
|
+
verticalAlign: 'middle',
|
|
11
|
+
flexShrink: 0,
|
|
12
|
+
display: 'flex',
|
|
13
|
+
alignItems: 'center',
|
|
14
|
+
justifyContent: 'center'
|
|
15
|
+
};
|
|
16
|
+
export var Icon = function (_a) {
|
|
17
|
+
var name = _a.name, iconMui = _a.iconMui, customIcon = _a.customIcon, fontSize = _a.fontSize, color = _a.color, className = _a.className, style = _a.style, other = __rest(_a, ["name", "iconMui", "customIcon", "fontSize", "color", "className", "style"]);
|
|
18
|
+
if (iconMui) {
|
|
19
|
+
return (_jsx("span", __assign({ className: "material-icons ".concat(className || ''), style: __assign(__assign(__assign({}, defaultIconStyle), style), { fontSize: fontSize || '1.3rem', color: color || 'inherit' }), "aria-hidden": "true" }, other, { children: iconMui })));
|
|
20
|
+
}
|
|
21
|
+
var iconComponent = name ? iconMap[name] : customIcon;
|
|
22
|
+
if (!iconComponent) {
|
|
23
|
+
return _jsx("span", { children: "\u26A0\uFE0F" });
|
|
24
|
+
}
|
|
25
|
+
return (_jsx("span", __assign({ className: className, style: __assign(__assign(__assign({}, defaultIconStyle), style), { fontSize: fontSize || '1.5rem', color: color || 'inherit' }) }, other, { children: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: iconComponent.viewBox, fill: 'currentColor', width: "1em", height: "1em", style: { display: 'block', flexShrink: 0 }, children: iconComponent.content }) })));
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export * from './_lib/baseFunctions';
|
|
2
|
+
export * from './_lib/inputMask';
|
|
3
|
+
export * from './_lib/listFunctions';
|
|
4
|
+
export * from './_lib/storage/cookies';
|
|
5
|
+
export * from './_lib/storage/encData';
|
|
6
|
+
export * from './_lib/storage/localStorage';
|
|
7
|
+
export * from './_lib/storage/sessionStorage';
|
|
8
|
+
export * from './_lib/useInterval';
|
|
9
|
+
export * from './alert';
|
|
10
|
+
export * from './box';
|
|
11
|
+
export * from './countDown';
|
|
12
|
+
export * from './dateTime';
|
|
13
|
+
export * from './form';
|
|
14
|
+
export * from './grid';
|
|
15
|
+
export * from './icon';
|
|
16
|
+
export * from './menu';
|
|
17
|
+
export * from './modal';
|
|
18
|
+
export * from './popover';
|
|
19
|
+
export * from './tooltip';
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { __assign, __rest } from "tslib";
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
/**
|
|
4
|
+
* @author : izzetseydaoglu
|
|
5
|
+
* @copyright : sydSOFT Bilişim Hizmetleri (c) 2026
|
|
6
|
+
* @version : 2026-02-07 19:31:01
|
|
7
|
+
*/
|
|
8
|
+
import React, { memo, useMemo } from 'react';
|
|
9
|
+
import { Dialog } from '../form';
|
|
10
|
+
import { Popover } from '../popover';
|
|
11
|
+
import Link from 'next/link';
|
|
12
|
+
import styles from './index.module.css';
|
|
13
|
+
export var Menu = memo(function MemoFunction(_a) {
|
|
14
|
+
var menu = _a.menu, className = _a.className, style = _a.style, _b = _a.withIcon, withIcon = _b === void 0 ? 'auto' : _b;
|
|
15
|
+
var withIconComponent = useMemo(function () {
|
|
16
|
+
if (withIcon === true)
|
|
17
|
+
return true;
|
|
18
|
+
if (withIcon === false)
|
|
19
|
+
return false;
|
|
20
|
+
return Object.values(menu).some(function (item) { return 'icon' in item && !!item.icon; });
|
|
21
|
+
}, [menu, withIcon]);
|
|
22
|
+
var withRightComponent = useMemo(function () {
|
|
23
|
+
return Object.values(menu).some(function (item) { return 'rightComponent' in item && !!item.rightComponent; });
|
|
24
|
+
}, [menu]);
|
|
25
|
+
var handleClick = function (item, e) {
|
|
26
|
+
if (!item.onClick)
|
|
27
|
+
return;
|
|
28
|
+
if (item.dialog) {
|
|
29
|
+
Dialog(__assign({}, item.dialog)).then(function (result) {
|
|
30
|
+
if (result && item.onClick) {
|
|
31
|
+
item.onClick(e);
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
item.onClick(e);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
return (_jsx("ul", { className: "smenu ".concat(styles.ul, " ").concat(className || ''), style: style, children: Object.values(menu).map(function (item, key) {
|
|
40
|
+
var _a = item, fullComponent = _a.fullComponent, icon = _a.icon, title = _a.title, rightComponent = _a.rightComponent, seperator = _a.seperator, href = _a.href, style = _a.style, itemProps = _a.itemProps, type = _a.type, items = _a.items, menuProps = _a.menuProps, subMenuPopoverProps = _a.subMenuPopoverProps, other = __rest(_a, ["fullComponent", "icon", "title", "rightComponent", "seperator", "href", "style", "itemProps", "type", "items", "menuProps", "subMenuPopoverProps"]);
|
|
41
|
+
var hasSubmenu = type === 'submenu' && Array.isArray(items) && items.length > 0;
|
|
42
|
+
if (fullComponent)
|
|
43
|
+
return React.cloneElement(fullComponent, { key: key });
|
|
44
|
+
if (seperator)
|
|
45
|
+
return _jsx("li", __assign({ className: styles.seperator, style: style }, itemProps, other), key);
|
|
46
|
+
var Component = (_jsxs(_Fragment, { children: [withIconComponent && _jsx("div", { className: styles.menuicon, children: icon }), _jsx("div", { className: styles.menutitle, children: title }), withRightComponent && _jsx("div", { className: styles.rightmenu, children: rightComponent })] }));
|
|
47
|
+
if (hasSubmenu) {
|
|
48
|
+
return (_jsx(Popover, __assign({ component: _jsx("li", __assign({ style: style }, itemProps, other, { children: Component })), position: "right-top" }, (subMenuPopoverProps || {}), { children: _jsx(Menu, __assign({ menu: items }, (menuProps || {}))) }), key));
|
|
49
|
+
}
|
|
50
|
+
return (_jsx("li", __assign({ style: style, onClick: function (e) { return handleClick(item, e); } }, itemProps, other, { children: href ? _jsx(Link, { href: href, children: Component }) : Component }), key));
|
|
51
|
+
}) }));
|
|
52
|
+
});
|
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.Modal = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
3
|
/**
|
|
7
4
|
* Copyright (c) 2023
|
|
8
5
|
* @author: izzetseydaoglu
|
|
9
6
|
* @last-modified: 9.02.2024 06:07
|
|
10
7
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
import { memo, useEffect, useRef, useState } from "react";
|
|
9
|
+
import ReactDOM from "react-dom";
|
|
10
|
+
import styles from "./index.module.css";
|
|
11
|
+
export var Modal = memo(function MemoFunction(_a) {
|
|
15
12
|
var _b = _a.refModal, refModal = _b === void 0 ? null : _b, children = _a.children, _c = _a.open, open = _c === void 0 ? false : _c, close = _a.close, _d = _a.keepMounted, keepMounted = _d === void 0 ? false : _d, _e = _a.fullScreen, fullScreen = _e === void 0 ? false : _e, _f = _a.hideBackdrop, hideBackdrop = _f === void 0 ? true : _f, _g = _a.hideEsc, hideEsc = _g === void 0 ? false : _g, _h = _a.hideCloseButton, hideCloseButton = _h === void 0 ? false : _h, modalStyle = _a.modalStyle, backdropStyle = _a.backdropStyle, _j = _a.vertialAlign, vertialAlign = _j === void 0 ? "center" : _j, _k = _a.horizontalAlign, horizontalAlign = _k === void 0 ? "center" : _k;
|
|
16
|
-
var _l =
|
|
17
|
-
var ref =
|
|
18
|
-
|
|
13
|
+
var _l = useState(null), modalDiv = _l[0], setModalDiv = _l[1];
|
|
14
|
+
var ref = useRef(null);
|
|
15
|
+
useEffect(function () {
|
|
19
16
|
if (refModal)
|
|
20
17
|
refModal.current = ref.current;
|
|
21
18
|
}, [ref.current]);
|
|
@@ -31,7 +28,7 @@ exports.Modal = (0, react_1.memo)(function MemoFunction(_a) {
|
|
|
31
28
|
if (e.keyCode === 27 || e.key === "Escape" || e.code === "Escape")
|
|
32
29
|
onClose();
|
|
33
30
|
};
|
|
34
|
-
|
|
31
|
+
useEffect(function () {
|
|
35
32
|
if (open) {
|
|
36
33
|
if (hideBackdrop)
|
|
37
34
|
window.addEventListener("mousedown", checkHideBackDrop);
|
|
@@ -45,7 +42,7 @@ exports.Modal = (0, react_1.memo)(function MemoFunction(_a) {
|
|
|
45
42
|
window.removeEventListener("keydown", checkESC);
|
|
46
43
|
};
|
|
47
44
|
});
|
|
48
|
-
|
|
45
|
+
useEffect(function () {
|
|
49
46
|
if (!modalDiv) {
|
|
50
47
|
var modalDivCheck = document.getElementById("smodal");
|
|
51
48
|
if (modalDivCheck) {
|
|
@@ -64,6 +61,6 @@ exports.Modal = (0, react_1.memo)(function MemoFunction(_a) {
|
|
|
64
61
|
}, []);
|
|
65
62
|
if ((!keepMounted && !open) || typeof window === "undefined")
|
|
66
63
|
return null;
|
|
67
|
-
var Component = ((
|
|
68
|
-
return modalDiv ?
|
|
64
|
+
var Component = (_jsx("div", { className: "".concat(styles.backdrop, " ").concat(open ? styles.backdrop_open : ""), style: __assign({ alignItems: vertialAlign, justifyContent: horizontalAlign }, backdropStyle), children: _jsxs("div", { ref: ref, className: "smodal ".concat(styles.modal, " ").concat(fullScreen ? styles.fullscreen : ""), style: modalStyle, children: [!hideCloseButton && (_jsx("div", { className: "close ".concat(styles.close_fixed), children: _jsx("div", { className: styles.close, onClick: onClose, children: "\u2715" }) })), children] }) }));
|
|
65
|
+
return modalDiv ? ReactDOM.createPortal(Component, modalDiv) : null;
|
|
69
66
|
});
|
|
@@ -1,24 +1,21 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* @author : izzetseydaoglu
|
|
4
3
|
* @copyright : sydSOFT Bilişim Hizmetleri (c) 2026
|
|
5
4
|
* @version : 2026-02-10 16:12:35
|
|
6
5
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
var zIndexRef = (0, react_1.useRef)(null);
|
|
21
|
-
(0, react_1.useEffect)(function () {
|
|
6
|
+
import { __assign, __rest } from "tslib";
|
|
7
|
+
import { cloneElement, memo, useEffect, useRef } from 'react';
|
|
8
|
+
import { createRoot } from 'react-dom/client';
|
|
9
|
+
import styles from './index.module.css';
|
|
10
|
+
export var Popover = memo(function MemoFunction(_a) {
|
|
11
|
+
var children = _a.children, component = _a.component, _b = _a.position, position = _b === void 0 ? 'top' : _b, _c = _a.arrow, arrow = _c === void 0 ? false : _c, _d = _a.distance, distance = _d === void 0 ? 5 : _d, _e = _a.removeWhenClickInside, removeWhenClickInside = _e === void 0 ? false : _e, _f = _a.hideBackdrop, hideBackdrop = _f === void 0 ? true : _f, _g = _a.fade, fade = _g === void 0 ? true : _g, _h = _a.arrowColor, arrowColor = _h === void 0 ? 'auto' : _h, _j = _a.hover, hover = _j === void 0 ? false : _j, _k = _a.hoverCloseDelay, hoverCloseDelay = _k === void 0 ? 120 : _k, _l = _a.keepMounted, keepMounted = _l === void 0 ? false : _l, other = __rest(_a, ["children", "component", "position", "arrow", "distance", "removeWhenClickInside", "hideBackdrop", "fade", "arrowColor", "hover", "hoverCloseDelay", "keepMounted"]);
|
|
12
|
+
var refComponent = useRef(null);
|
|
13
|
+
var closeTimer = useRef(null);
|
|
14
|
+
var hoverCloseTimer = useRef(null);
|
|
15
|
+
var popoverRef = useRef(null);
|
|
16
|
+
var rootRef = useRef(null);
|
|
17
|
+
var zIndexRef = useRef(null);
|
|
18
|
+
useEffect(function () {
|
|
22
19
|
if (typeof window === 'undefined')
|
|
23
20
|
return;
|
|
24
21
|
return function () {
|
|
@@ -41,13 +38,13 @@ exports.Popover = (0, react_1.memo)(function MemoFunction(_a) {
|
|
|
41
38
|
if (popoverRef.current && keepMounted) {
|
|
42
39
|
var popover_1 = popoverRef.current;
|
|
43
40
|
var target_1 = e.currentTarget;
|
|
44
|
-
var wasVisible = popover_1.classList.contains(
|
|
41
|
+
var wasVisible = popover_1.classList.contains(styles.visible);
|
|
45
42
|
(_b = (_a = rootRef.current) === null || _a === void 0 ? void 0 : _a.render) === null || _b === void 0 ? void 0 : _b.call(_a, children);
|
|
46
43
|
applyArrowColor(popover_1);
|
|
47
44
|
popoverPosition({ target: target_1, position: position });
|
|
48
45
|
popover_1.style.zIndex = String(nextPopoverZIndex());
|
|
49
|
-
popover_1.classList.remove(
|
|
50
|
-
popover_1.classList.add(
|
|
46
|
+
popover_1.classList.remove(styles.closing);
|
|
47
|
+
popover_1.classList.add(styles.visible);
|
|
51
48
|
if (!wasVisible) {
|
|
52
49
|
if (hideBackdrop) {
|
|
53
50
|
window.addEventListener('mousedown', checkHideBackDrop);
|
|
@@ -65,12 +62,12 @@ exports.Popover = (0, react_1.memo)(function MemoFunction(_a) {
|
|
|
65
62
|
}
|
|
66
63
|
popoverSil(false);
|
|
67
64
|
var popover = document.createElement('div');
|
|
68
|
-
popover.classList.add('spopover',
|
|
65
|
+
popover.classList.add('spopover', styles.popover);
|
|
69
66
|
var zIndex = nextPopoverZIndex();
|
|
70
67
|
zIndexRef.current = zIndex;
|
|
71
68
|
document.body.appendChild(popover);
|
|
72
69
|
// ReactDOM.render(children, popover)
|
|
73
|
-
var root =
|
|
70
|
+
var root = createRoot(popover);
|
|
74
71
|
root.render(children);
|
|
75
72
|
popoverRef.current = popover;
|
|
76
73
|
rootRef.current = root;
|
|
@@ -81,7 +78,7 @@ exports.Popover = (0, react_1.memo)(function MemoFunction(_a) {
|
|
|
81
78
|
applyArrowColor(popover);
|
|
82
79
|
popoverPosition({ target: target, position: position });
|
|
83
80
|
popover.style.zIndex = String((_a = zIndexRef.current) !== null && _a !== void 0 ? _a : zIndex);
|
|
84
|
-
popover.classList.add(
|
|
81
|
+
popover.classList.add(styles.visible);
|
|
85
82
|
}, 100);
|
|
86
83
|
if (hideBackdrop) {
|
|
87
84
|
window.addEventListener('mousedown', checkHideBackDrop);
|
|
@@ -99,7 +96,7 @@ exports.Popover = (0, react_1.memo)(function MemoFunction(_a) {
|
|
|
99
96
|
if (animate === void 0) { animate = true; }
|
|
100
97
|
refComponent.current && refComponent.current.classList.remove('spopover_active');
|
|
101
98
|
var check = popoverRef.current;
|
|
102
|
-
var wasVisible = !!(check === null || check === void 0 ? void 0 : check.classList.contains(
|
|
99
|
+
var wasVisible = !!(check === null || check === void 0 ? void 0 : check.classList.contains(styles.visible));
|
|
103
100
|
if (check) {
|
|
104
101
|
if (removeWhenClickInside)
|
|
105
102
|
check.removeEventListener('mouseup', popoverGecikmeliSil);
|
|
@@ -123,12 +120,12 @@ exports.Popover = (0, react_1.memo)(function MemoFunction(_a) {
|
|
|
123
120
|
rootRef.current = null;
|
|
124
121
|
}
|
|
125
122
|
else {
|
|
126
|
-
check.classList.remove(
|
|
127
|
-
check.classList.remove(
|
|
123
|
+
check.classList.remove(styles.visible);
|
|
124
|
+
check.classList.remove(styles.closing);
|
|
128
125
|
}
|
|
129
126
|
}
|
|
130
|
-
else if (!check.classList.contains(
|
|
131
|
-
check.classList.add(
|
|
127
|
+
else if (!check.classList.contains(styles.closing)) {
|
|
128
|
+
check.classList.add(styles.closing);
|
|
132
129
|
closeTimer.current = window.setTimeout(function () {
|
|
133
130
|
var _a;
|
|
134
131
|
if (!keepMounted) {
|
|
@@ -139,8 +136,8 @@ exports.Popover = (0, react_1.memo)(function MemoFunction(_a) {
|
|
|
139
136
|
rootRef.current = null;
|
|
140
137
|
}
|
|
141
138
|
else {
|
|
142
|
-
check.classList.remove(
|
|
143
|
-
check.classList.remove(
|
|
139
|
+
check.classList.remove(styles.visible);
|
|
140
|
+
check.classList.remove(styles.closing);
|
|
144
141
|
}
|
|
145
142
|
}, FADE_DURATION);
|
|
146
143
|
}
|
|
@@ -200,7 +197,7 @@ exports.Popover = (0, react_1.memo)(function MemoFunction(_a) {
|
|
|
200
197
|
alignClass = resolvedAlign;
|
|
201
198
|
style.push('top:' + top_1 + 'px');
|
|
202
199
|
}
|
|
203
|
-
var classNames = ['spopover',
|
|
200
|
+
var classNames = ['spopover', styles.popover, arrow ? styles.arrow : '', fade ? '' : styles.noFade, sideClass[side], alignClassMap[alignClass]].filter(Boolean);
|
|
204
201
|
popover.className = classNames.join(' ');
|
|
205
202
|
popover.setAttribute('style', style.join(';'));
|
|
206
203
|
applyArrowColor(popover);
|
|
@@ -251,7 +248,7 @@ exports.Popover = (0, react_1.memo)(function MemoFunction(_a) {
|
|
|
251
248
|
body.dataset.spopoverZIndex = String(next);
|
|
252
249
|
return next;
|
|
253
250
|
}
|
|
254
|
-
var componentProps =
|
|
251
|
+
var componentProps = __assign({ ref: refComponent, onClick: function (e) {
|
|
255
252
|
var _a, _b;
|
|
256
253
|
(_b = (_a = component.props) === null || _a === void 0 ? void 0 : _a.onClick) === null || _b === void 0 ? void 0 : _b.call(_a, e);
|
|
257
254
|
popoverEkle(e);
|
|
@@ -269,18 +266,18 @@ exports.Popover = (0, react_1.memo)(function MemoFunction(_a) {
|
|
|
269
266
|
scheduleHoverClose();
|
|
270
267
|
};
|
|
271
268
|
}
|
|
272
|
-
return
|
|
269
|
+
return cloneElement(component, componentProps);
|
|
273
270
|
});
|
|
274
271
|
var sideClass = {
|
|
275
|
-
top:
|
|
276
|
-
bottom:
|
|
277
|
-
left:
|
|
278
|
-
right:
|
|
272
|
+
top: styles.top,
|
|
273
|
+
bottom: styles.bottom,
|
|
274
|
+
left: styles.left,
|
|
275
|
+
right: styles.right
|
|
279
276
|
};
|
|
280
277
|
var alignClassMap = {
|
|
281
|
-
start:
|
|
282
|
-
center:
|
|
283
|
-
end:
|
|
278
|
+
start: styles.alignStart,
|
|
279
|
+
center: styles.alignCenter,
|
|
280
|
+
end: styles.alignEnd
|
|
284
281
|
};
|
|
285
282
|
var FADE_DURATION = 160;
|
|
286
283
|
var normalizePosition = function (position) {
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
exports.Tooltip = (0, react_1.memo)(function MemoFunction(_a) {
|
|
7
|
-
var children = _a.children, title = _a.title, _b = _a.position, position = _b === void 0 ? "top" : _b, _c = _a.arrow, arrow = _c === void 0 ? false : _c, _d = _a.distance, distance = _d === void 0 ? 5 : _d, other = tslib_1.__rest(_a, ["children", "title", "position", "arrow", "distance"]);
|
|
8
|
-
(0, react_1.useEffect)(function () {
|
|
1
|
+
import { __assign, __rest } from "tslib";
|
|
2
|
+
import React, { memo, useEffect } from "react";
|
|
3
|
+
export var Tooltip = memo(function MemoFunction(_a) {
|
|
4
|
+
var children = _a.children, title = _a.title, _b = _a.position, position = _b === void 0 ? "top" : _b, _c = _a.arrow, arrow = _c === void 0 ? false : _c, _d = _a.distance, distance = _d === void 0 ? 5 : _d, other = __rest(_a, ["children", "title", "position", "arrow", "distance"]);
|
|
5
|
+
useEffect(function () {
|
|
9
6
|
if (typeof window === "undefined")
|
|
10
7
|
return null;
|
|
11
8
|
var cssCheck = document.getElementsByClassName("stooltip_css")[0];
|
|
@@ -117,6 +114,6 @@ exports.Tooltip = (0, react_1.memo)(function MemoFunction(_a) {
|
|
|
117
114
|
tooltip.setAttribute("style", style.join(";"));
|
|
118
115
|
}
|
|
119
116
|
};
|
|
120
|
-
return
|
|
117
|
+
return React.cloneElement(children, __assign({ onMouseEnter: tooltipEkle, onMouseLeave: tooltipSil, onMouseDown: tooltipSil }, other));
|
|
121
118
|
});
|
|
122
119
|
var tooltipCss = "\n.stooltip {\n position: fixed;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: #1a1a1a;\n color: rgba(255,255,255,0.9);\n text-align: center;\n font-size: 0.9rem;\n font-weight:400;\n padding: 5px 10px;\n border-radius: 8px;\n z-index: 1000000;\n opacity: 0.9;\n pointer-events: none;\n /*transition: all 0.1s;*/\n white-space:pre-line;\n max-width: 300px;\n animation: stooltip_fadein 0.7s;\n}\n\n.stooltip.arrow:after {\n content: \"\";\n position: absolute;\n margin-left: -5px;\n border-width: 5px;\n border-style: solid;\n}\n\n.stooltip.arrow.top:after {\n top: 100%;\n border-color: #1a1a1a transparent transparent transparent;\n}\n\n.stooltip.arrow.top.start:after { left: 15px;}\n\n.stooltip.arrow.top.center:after { left: 50%;}\n\n.stooltip.arrow.top.end:after { right: 15px;}\n\n\n.stooltip.arrow.bottom:after {\n bottom: 100%;\n border-color: transparent transparent #1a1a1a transparent;\n}\n\n.stooltip.arrow.bottom.start:after { left: 15px;}\n\n.stooltip.arrow.bottom.center:after { left: 50%;}\n\n.stooltip.bottom.end:after { right: 15px;}\n\n.stooltip.arrow.left:after {\n margin-left: -1px;\n left: 100%;\n border-color: transparent transparent transparent #1a1a1a;\n}\n\n.stooltip.arrow.left.start:after { top: 5px;}\n\n.stooltip.arrow.left.center:after { top: 50%; margin-top: -5px;}\n\n.stooltip.arrow.left.end:after { bottom: 15px;}\n\n.stooltip.arrow.right:after {\n margin-right: -1px;\n right: 100%;\n border-color: transparent #1a1a1a transparent transparent;\n}\n\n.stooltip.arrow.right.start:after { top: 5px;}\n\n.stooltip.arrow.right.center:after { top: 50%; margin-top: -5px;}\n\n.stooltip.arrow.right.end:after { bottom: 15px;}\n\n@keyframes stooltip_fadein {\n from { opacity: 0; }\n to { opacity: 0.85; }\n}\n";
|
package/package.json
CHANGED
|
@@ -1,23 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sydsoft/base",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"types": "./
|
|
4
|
+
"version": "1.56.0",
|
|
5
|
+
"main": "./dist/cjs/index.js",
|
|
6
|
+
"module": "./dist/esm/index.js",
|
|
7
|
+
"types": "./dist/esm/index.d.ts",
|
|
8
8
|
"files": [
|
|
9
|
-
"./
|
|
9
|
+
"./dist/",
|
|
10
10
|
"README.md"
|
|
11
11
|
],
|
|
12
|
-
"exports": {
|
|
13
|
-
".": {
|
|
14
|
-
"types": "./_dist/index.d.ts",
|
|
15
|
-
"default": "./_dist/index.js"
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
12
|
"scripts": {
|
|
19
|
-
"clean": "rm -rf ./
|
|
20
|
-
"
|
|
13
|
+
"clean": "rm -rf ./dist",
|
|
14
|
+
"test": "rm -rf ../*.tgz && rm -rf ../.next && npm run build && npm pack --pack-destination ../ && cd ../ && npm uninstall @sydsoft/base && npm install *.tgz && npm run dev",
|
|
15
|
+
"copyFiles": "find . -name \"*.css\" -not -path \"./dist/*\" -exec sh -c 'for f do mkdir -p \"dist/esm/$(dirname \"$f\")\"; cp \"$f\" \"dist/esm/$f\"; done' sh {} +",
|
|
21
16
|
"build": "npm run clean && tsc && npm run copyFiles",
|
|
22
17
|
"publishNPM": "npm run build && npm version patch && npm version minor && npm publish --dry-run && npm publish --access public && npm run clean"
|
|
23
18
|
},
|