@sydsoft/base 1.54.0 → 1.57.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.
Files changed (81) hide show
  1. package/package.json +8 -16
  2. package/_dist/_lib/baseFunctions.d.ts +0 -11
  3. package/_dist/_lib/baseFunctions.js +0 -110
  4. package/_dist/_lib/inputMask.d.ts +0 -7
  5. package/_dist/_lib/inputMask.js +0 -233
  6. package/_dist/_lib/listFunctions.d.ts +0 -2
  7. package/_dist/_lib/listFunctions.js +0 -119
  8. package/_dist/_lib/storage/cookies.d.ts +0 -4
  9. package/_dist/_lib/storage/cookies.js +0 -41
  10. package/_dist/_lib/storage/encData.d.ts +0 -2
  11. package/_dist/_lib/storage/encData.js +0 -48
  12. package/_dist/_lib/storage/localStorage.d.ts +0 -6
  13. package/_dist/_lib/storage/localStorage.js +0 -78
  14. package/_dist/_lib/storage/sessionStorage.d.ts +0 -6
  15. package/_dist/_lib/storage/sessionStorage.js +0 -78
  16. package/_dist/_lib/useInterval.d.ts +0 -6
  17. package/_dist/_lib/useInterval.js +0 -27
  18. package/_dist/alert/index.d.ts +0 -18
  19. package/_dist/alert/index.js +0 -116
  20. package/_dist/alert/index.module.css +0 -119
  21. package/_dist/box/Box.d.ts +0 -9
  22. package/_dist/box/Box.js +0 -19
  23. package/_dist/box/Box.module.css +0 -153
  24. package/_dist/box/BoxContent.d.ts +0 -9
  25. package/_dist/box/BoxContent.js +0 -11
  26. package/_dist/box/BoxFooter.d.ts +0 -10
  27. package/_dist/box/BoxFooter.js +0 -11
  28. package/_dist/box/BoxHeader.d.ts +0 -16
  29. package/_dist/box/BoxHeader.js +0 -12
  30. package/_dist/box/index.d.ts +0 -9
  31. package/_dist/box/index.js +0 -12
  32. package/_dist/countDown/index.d.ts +0 -22
  33. package/_dist/countDown/index.js +0 -102
  34. package/_dist/dateTime/index.d.ts +0 -12
  35. package/_dist/dateTime/index.js +0 -78
  36. package/_dist/form/Button.d.ts +0 -27
  37. package/_dist/form/Button.js +0 -79
  38. package/_dist/form/Checkbox.d.ts +0 -23
  39. package/_dist/form/Checkbox.js +0 -28
  40. package/_dist/form/Dialog.d.ts +0 -20
  41. package/_dist/form/Dialog.js +0 -44
  42. package/_dist/form/Form.d.ts +0 -10
  43. package/_dist/form/Form.js +0 -15
  44. package/_dist/form/FormOlustur.d.ts +0 -39
  45. package/_dist/form/FormOlustur.js +0 -55
  46. package/_dist/form/Input.d.ts +0 -66
  47. package/_dist/form/Input.js +0 -200
  48. package/_dist/form/Label.d.ts +0 -7
  49. package/_dist/form/Label.js +0 -12
  50. package/_dist/form/SearchableInput.d.ts +0 -37
  51. package/_dist/form/SearchableInput.js +0 -275
  52. package/_dist/form/UploadBase.d.ts +0 -25
  53. package/_dist/form/UploadBase.js +0 -91
  54. package/_dist/form/index.d.ts +0 -9
  55. package/_dist/form/index.js +0 -12
  56. package/_dist/form/styles/Button.module.css +0 -145
  57. package/_dist/form/styles/Input.module.css +0 -221
  58. package/_dist/form/styles/Label.module.css +0 -31
  59. package/_dist/form/styles/SearchableInput.module.css +0 -80
  60. package/_dist/grid/index.d.ts +0 -38
  61. package/_dist/grid/index.js +0 -104
  62. package/_dist/grid/index.module.css +0 -805
  63. package/_dist/icon/icons.d.ts +0 -22
  64. package/_dist/icon/icons.js +0 -26
  65. package/_dist/icon/index.d.ts +0 -34
  66. package/_dist/icon/index.js +0 -30
  67. package/_dist/icon/mui.d.ts +0 -1
  68. package/_dist/icon/mui.js +0 -2
  69. package/_dist/index.d.ts +0 -19
  70. package/_dist/index.js +0 -22
  71. package/_dist/menu/index.d.ts +0 -69
  72. package/_dist/menu/index.js +0 -55
  73. package/_dist/menu/index.module.css +0 -92
  74. package/_dist/modal/index.d.ts +0 -23
  75. package/_dist/modal/index.js +0 -69
  76. package/_dist/modal/index.module.css +0 -77
  77. package/_dist/popover/index.d.ts +0 -26
  78. package/_dist/popover/index.js +0 -346
  79. package/_dist/popover/index.module.css +0 -89
  80. package/_dist/tooltip/index.d.ts +0 -11
  81. package/_dist/tooltip/index.js +0 -122
@@ -1,55 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Menu = void 0;
4
- var tslib_1 = require("tslib");
5
- var jsx_runtime_1 = require("react/jsx-runtime");
6
- /**
7
- * @author : izzetseydaoglu
8
- * @copyright : sydSOFT Bilişim Hizmetleri (c) 2026
9
- * @version : 2026-02-07 19:31:01
10
- */
11
- var react_1 = tslib_1.__importStar(require("react"));
12
- var form_1 = require("../form");
13
- var popover_1 = require("../popover");
14
- var link_1 = tslib_1.__importDefault(require("next/link"));
15
- var index_module_css_1 = tslib_1.__importDefault(require("./index.module.css"));
16
- exports.Menu = (0, react_1.memo)(function MemoFunction(_a) {
17
- var menu = _a.menu, className = _a.className, style = _a.style, _b = _a.withIcon, withIcon = _b === void 0 ? 'auto' : _b;
18
- var withIconComponent = (0, react_1.useMemo)(function () {
19
- if (withIcon === true)
20
- return true;
21
- if (withIcon === false)
22
- return false;
23
- return Object.values(menu).some(function (item) { return 'icon' in item && !!item.icon; });
24
- }, [menu, withIcon]);
25
- var withRightComponent = (0, react_1.useMemo)(function () {
26
- return Object.values(menu).some(function (item) { return 'rightComponent' in item && !!item.rightComponent; });
27
- }, [menu]);
28
- var handleClick = function (item, e) {
29
- if (!item.onClick)
30
- return;
31
- if (item.dialog) {
32
- (0, form_1.Dialog)(tslib_1.__assign({}, item.dialog)).then(function (result) {
33
- if (result && item.onClick) {
34
- item.onClick(e);
35
- }
36
- });
37
- }
38
- else {
39
- item.onClick(e);
40
- }
41
- };
42
- return ((0, jsx_runtime_1.jsx)("ul", { className: "smenu ".concat(index_module_css_1.default.ul, " ").concat(className || ''), style: style, children: Object.values(menu).map(function (item, key) {
43
- 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 = tslib_1.__rest(_a, ["fullComponent", "icon", "title", "rightComponent", "seperator", "href", "style", "itemProps", "type", "items", "menuProps", "subMenuPopoverProps"]);
44
- var hasSubmenu = type === 'submenu' && Array.isArray(items) && items.length > 0;
45
- if (fullComponent)
46
- return react_1.default.cloneElement(fullComponent, { key: key });
47
- if (seperator)
48
- return (0, jsx_runtime_1.jsx)("li", tslib_1.__assign({ className: index_module_css_1.default.seperator, style: style }, itemProps, other), key);
49
- var Component = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [withIconComponent && (0, jsx_runtime_1.jsx)("div", { className: index_module_css_1.default.menuicon, children: icon }), (0, jsx_runtime_1.jsx)("div", { className: index_module_css_1.default.menutitle, children: title }), withRightComponent && (0, jsx_runtime_1.jsx)("div", { className: index_module_css_1.default.rightmenu, children: rightComponent })] }));
50
- if (hasSubmenu) {
51
- return ((0, jsx_runtime_1.jsx)(popover_1.Popover, tslib_1.__assign({ component: (0, jsx_runtime_1.jsx)("li", tslib_1.__assign({ style: style }, itemProps, other, { children: Component })), position: "right-top" }, (subMenuPopoverProps || {}), { children: (0, jsx_runtime_1.jsx)(exports.Menu, tslib_1.__assign({ menu: items }, (menuProps || {}))) }), key));
52
- }
53
- return ((0, jsx_runtime_1.jsx)("li", tslib_1.__assign({ style: style, onClick: function (e) { return handleClick(item, e); } }, itemProps, other, { children: href ? (0, jsx_runtime_1.jsx)(link_1.default, { href: href, children: Component }) : Component }), key));
54
- }) }));
55
- });
@@ -1,92 +0,0 @@
1
- .ul {
2
- position: relative;
3
- width: 100%;
4
- max-height: calc(100vh - 94px);
5
- list-style: none;
6
- padding: 0;
7
- margin: 0;
8
- background: #fff;
9
- letter-spacing: 0.2px;
10
- outline: none;
11
- border: 1px solid transparent;
12
- border-radius: 4px;
13
- box-shadow: 0 2px 6px 2px rgba(60, 64, 67, 0.15);
14
- overflow-y: auto;
15
- user-select: none;
16
- }
17
-
18
- .ul > li {
19
- cursor: pointer;
20
- padding: 2px 6px;
21
- min-height: 25px;
22
- }
23
- .ul > li,
24
- .ul > li a {
25
- display: flex;
26
- flex-direction: row;
27
- flex-wrap: nowrap;
28
- width: 100%;
29
- }
30
- .ul > li a,
31
- .ul > li a:visited {
32
- color: inherit;
33
- text-decoration: none;
34
- }
35
-
36
- .ul > li:first-child {
37
- margin-top: 5px;
38
- }
39
-
40
- .ul > li:last-child {
41
- margin-bottom: 5px;
42
- }
43
-
44
- .ul > li:hover {
45
- background: #f0f2f5;
46
- }
47
-
48
- .ul > li:global(.spopover_active) {
49
- background: #e8f0fe;
50
- }
51
-
52
- .menuicon {
53
- display: inline-flex;
54
- overflow: hidden;
55
- width: 30px;
56
- flex: 0 0 auto;
57
- align-items: center;
58
- justify-content: center;
59
- color: #606060;
60
- }
61
-
62
- .menutitle {
63
- display: inline-flex;
64
- flex: 1;
65
- align-items: center;
66
- justify-content: flex-start;
67
- margin: 0 10px;
68
- }
69
-
70
- .rightmenu {
71
- display: inline-flex;
72
- flex: 0 0 auto;
73
- align-items: center;
74
- justify-content: center;
75
- color: #909090;
76
- font-size: 12px;
77
- width: 50px;
78
- }
79
- .rightmenu span {
80
- user-select: none;
81
- }
82
-
83
- .seperator {
84
- cursor: default !important;
85
- background: #00000014 !important;
86
- border: 0;
87
- height: 1px;
88
- min-height: 1px !important;
89
- margin: 4px 0;
90
- padding: 0 !important;
91
- display: block !important;
92
- }
@@ -1,23 +0,0 @@
1
- /**
2
- * Copyright (c) 2023
3
- * @author: izzetseydaoglu
4
- * @last-modified: 9.02.2024 06:07
5
- */
6
- import React from "react";
7
- interface Props {
8
- children: React.ReactNode;
9
- open: boolean;
10
- close?: Function;
11
- keepMounted?: boolean;
12
- hideBackdrop?: boolean;
13
- hideEsc?: boolean;
14
- hideCloseButton?: boolean;
15
- fullScreen?: boolean;
16
- modalStyle?: React.CSSProperties;
17
- backdropStyle?: React.CSSProperties;
18
- vertialAlign?: "flex-start" | "center" | "flex-end";
19
- horizontalAlign?: "flex-start" | "center" | "flex-end";
20
- refModal?: any;
21
- }
22
- export declare const Modal: React.NamedExoticComponent<Props>;
23
- export {};
@@ -1,69 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Modal = void 0;
4
- var tslib_1 = require("tslib");
5
- var jsx_runtime_1 = require("react/jsx-runtime");
6
- /**
7
- * Copyright (c) 2023
8
- * @author: izzetseydaoglu
9
- * @last-modified: 9.02.2024 06:07
10
- */
11
- var react_1 = require("react");
12
- var react_dom_1 = tslib_1.__importDefault(require("react-dom"));
13
- var index_module_css_1 = tslib_1.__importDefault(require("./index.module.css"));
14
- exports.Modal = (0, react_1.memo)(function MemoFunction(_a) {
15
- 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 = (0, react_1.useState)(null), modalDiv = _l[0], setModalDiv = _l[1];
17
- var ref = (0, react_1.useRef)(null);
18
- (0, react_1.useEffect)(function () {
19
- if (refModal)
20
- refModal.current = ref.current;
21
- }, [ref.current]);
22
- var onClose = function () {
23
- if (close)
24
- close();
25
- };
26
- var checkHideBackDrop = function (e) {
27
- if (open && ref.current && !ref.current.contains(e.target))
28
- onClose();
29
- };
30
- var checkESC = function (e) {
31
- if (e.keyCode === 27 || e.key === "Escape" || e.code === "Escape")
32
- onClose();
33
- };
34
- (0, react_1.useEffect)(function () {
35
- if (open) {
36
- if (hideBackdrop)
37
- window.addEventListener("mousedown", checkHideBackDrop);
38
- if (hideEsc)
39
- window.addEventListener("keydown", checkESC);
40
- }
41
- return function () {
42
- if (hideBackdrop)
43
- window.removeEventListener("mousedown", checkHideBackDrop);
44
- if (hideEsc)
45
- window.removeEventListener("keydown", checkESC);
46
- };
47
- });
48
- (0, react_1.useEffect)(function () {
49
- if (!modalDiv) {
50
- var modalDivCheck = document.getElementById("smodal");
51
- if (modalDivCheck) {
52
- setModalDiv(modalDivCheck);
53
- }
54
- else {
55
- var div = document.createElement("div");
56
- div.setAttribute("id", "smodal");
57
- document.body.appendChild(div);
58
- setModalDiv(div);
59
- }
60
- }
61
- return function () {
62
- onClose();
63
- };
64
- }, []);
65
- if ((!keepMounted && !open) || typeof window === "undefined")
66
- return null;
67
- var Component = ((0, jsx_runtime_1.jsx)("div", { className: "".concat(index_module_css_1.default.backdrop, " ").concat(open ? index_module_css_1.default.backdrop_open : ""), style: tslib_1.__assign({ alignItems: vertialAlign, justifyContent: horizontalAlign }, backdropStyle), children: (0, jsx_runtime_1.jsxs)("div", { ref: ref, className: "smodal ".concat(index_module_css_1.default.modal, " ").concat(fullScreen ? index_module_css_1.default.fullscreen : ""), style: modalStyle, children: [!hideCloseButton && ((0, jsx_runtime_1.jsx)("div", { className: "close ".concat(index_module_css_1.default.close_fixed), children: (0, jsx_runtime_1.jsx)("div", { className: index_module_css_1.default.close, onClick: onClose, children: "\u2715" }) })), children] }) }));
68
- return modalDiv ? react_dom_1.default.createPortal(Component, modalDiv) : null;
69
- });
@@ -1,77 +0,0 @@
1
- .backdrop {
2
- position: fixed;
3
- z-index: 1300;
4
- inset: 0;
5
- display: none;
6
- align-items: center;
7
- justify-content: center;
8
- background: rgba(0, 0, 0, 0.23);
9
- width: 100%;
10
- height: 100%;
11
- outline: none;
12
- }
13
- .backdrop_open {
14
- display: flex !important;
15
- }
16
-
17
- .modal {
18
- position: relative;
19
- min-width: 200px;
20
- max-width: 90%;
21
- max-height: calc(100% - 64px);
22
- overflow-x: hidden;
23
- border-radius: 8px;
24
- background: transparent;
25
- box-shadow:
26
- rgb(0 0 0 / 32%) 0 4px 8px,
27
- rgb(0 0 0 / 40%) 0 8px 40px;
28
- margin: 15px;
29
- padding: 0;
30
- z-index: 1;
31
- outline: none;
32
- }
33
- .fullscreen {
34
- width: 100vw;
35
- max-width: 100vw;
36
- height: 100vh;
37
- max-height: 100vh;
38
- border-radius: 0;
39
- margin: 0;
40
- }
41
- .close_fixed {
42
- position: absolute;
43
- top: 2px;
44
- right: 2px;
45
- z-index: 1000;
46
- text-align: right;
47
- border-radius: inherit;
48
- }
49
-
50
- .close {
51
- position: fixed;
52
- background: linear-gradient(0deg, transparent, #00000026, transparent);
53
- padding: 8px 10px;
54
- font-size: 11px;
55
- transform: scale(1) translateX(-100%);
56
- border-radius: none;
57
- cursor: pointer;
58
- font-weight: bold;
59
- text-shadow: 1px 0px 0px #000000;
60
- transition: all 0.3s ease-in-out;
61
- }
62
- .close:hover {
63
- transform: scale(1.3) translateX(-85%);
64
- background: linear-gradient(180deg, transparent, #0000003a, transparent);
65
- }
66
-
67
- .sbox_header {
68
- position: sticky;
69
- top: 0;
70
- z-index: 10;
71
- }
72
-
73
- .sbox_footer {
74
- position: sticky;
75
- bottom: 0;
76
- z-index: 10;
77
- }
@@ -1,26 +0,0 @@
1
- /**
2
- * @author : izzetseydaoglu
3
- * @copyright : sydSOFT Bilişim Hizmetleri (c) 2026
4
- * @version : 2026-02-10 16:12:35
5
- */
6
- import React from 'react';
7
- type PopoverPosition = 'top' | 'top-left' | 'top-right' | 'bottom' | 'bottom-left' | 'bottom-right' | 'left' | 'left-top' | 'left-center' | 'left-bottom' | 'right' | 'right-top' | 'right-center' | 'right-bottom';
8
- type ArrowColor = 'auto' | string;
9
- export interface PopoverConfigBaseProps {
10
- position?: PopoverPosition;
11
- removeWhenClickInside?: boolean;
12
- hideBackdrop?: boolean;
13
- arrow?: boolean;
14
- distance?: number;
15
- fade?: boolean;
16
- arrowColor?: ArrowColor;
17
- hover?: boolean;
18
- hoverCloseDelay?: number;
19
- keepMounted?: boolean;
20
- }
21
- interface PopoverProps extends PopoverConfigBaseProps {
22
- component: any;
23
- children: React.ReactNode;
24
- }
25
- export declare const Popover: React.NamedExoticComponent<PopoverProps>;
26
- export {};