@sydsoft/base 1.58.0 → 2.0.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/esm/_lib/baseFunctions.d.ts +16 -0
- package/dist/esm/_lib/baseFunctions.js +102 -0
- package/dist/esm/_lib/inputMask.d.ts +12 -0
- package/dist/esm/_lib/inputMask.js +234 -0
- package/dist/esm/_lib/listFunctions.d.ts +7 -0
- package/dist/esm/_lib/listFunctions.js +119 -0
- package/dist/esm/_lib/storage/cookies.d.ts +9 -0
- package/dist/esm/_lib/storage/cookies.js +39 -0
- package/dist/esm/_lib/storage/encData.d.ts +7 -0
- package/dist/esm/_lib/storage/encData.js +48 -0
- package/dist/esm/_lib/storage/localStorage.d.ts +11 -0
- package/dist/esm/_lib/storage/localStorage.js +74 -0
- package/dist/esm/_lib/storage/sessionStorage.d.ts +11 -0
- package/dist/esm/_lib/storage/sessionStorage.js +74 -0
- package/dist/esm/_lib/useInterval.d.ts +6 -0
- package/dist/esm/_lib/useInterval.js +24 -0
- package/dist/esm/alert/index.d.ts +23 -0
- package/dist/esm/alert/index.js +112 -0
- package/dist/esm/alert/index.module.css +125 -0
- package/dist/esm/box/Box.d.ts +14 -0
- package/dist/esm/box/Box.js +20 -0
- package/dist/esm/box/Box.module.css +159 -0
- package/dist/esm/box/BoxContent.d.ts +14 -0
- package/dist/esm/box/BoxContent.js +7 -0
- package/dist/esm/box/BoxFooter.d.ts +15 -0
- package/dist/esm/box/BoxFooter.js +13 -0
- package/dist/esm/box/BoxHeader.d.ts +21 -0
- package/dist/esm/box/BoxHeader.js +14 -0
- package/dist/esm/box/index.d.ts +9 -0
- package/dist/esm/box/index.js +9 -0
- package/dist/esm/countDown/index.d.ts +27 -0
- package/dist/esm/countDown/index.js +102 -0
- package/dist/esm/dateTime/index.d.ts +17 -0
- package/dist/esm/dateTime/index.js +81 -0
- package/dist/esm/form/Button.d.ts +32 -0
- package/dist/esm/form/Button.js +81 -0
- package/dist/esm/form/Checkbox.d.ts +28 -0
- package/dist/esm/form/Checkbox.js +28 -0
- package/dist/esm/form/Dialog.d.ts +25 -0
- package/dist/esm/form/Dialog.js +40 -0
- package/dist/esm/form/Form.d.ts +15 -0
- package/dist/esm/form/Form.js +17 -0
- package/dist/esm/form/FormOlustur.d.ts +44 -0
- package/dist/esm/form/FormOlustur.js +57 -0
- package/dist/esm/form/Input.d.ts +66 -0
- package/dist/esm/form/Input.js +196 -0
- package/dist/esm/form/Label.d.ts +12 -0
- package/dist/esm/form/Label.js +14 -0
- package/dist/esm/form/SearchableInput.d.ts +42 -0
- package/dist/esm/form/SearchableInput.js +277 -0
- package/dist/esm/form/UploadBase.d.ts +25 -0
- package/dist/esm/form/UploadBase.js +86 -0
- package/dist/esm/form/index.d.ts +14 -0
- package/dist/esm/form/index.js +14 -0
- package/dist/esm/form/styles/Button.module.css +151 -0
- package/dist/esm/form/styles/Input.module.css +227 -0
- package/dist/esm/form/styles/Label.module.css +37 -0
- package/dist/esm/form/styles/SearchableInput.module.css +86 -0
- package/dist/esm/grid/index.d.ts +43 -0
- package/dist/esm/grid/index.js +102 -0
- package/dist/esm/grid/index.module.css +812 -0
- package/dist/esm/icon/icons.d.ts +27 -0
- package/dist/esm/icon/icons.js +28 -0
- package/dist/esm/icon/index.d.ts +38 -0
- package/dist/esm/icon/index.js +25 -0
- package/dist/esm/icon/mui.d.ts +6 -0
- package/dist/esm/icon/mui.js +6 -0
- package/dist/esm/index.d.ts +24 -0
- package/dist/esm/index.js +24 -0
- package/dist/esm/menu/index.d.ts +75 -0
- package/dist/esm/menu/index.js +59 -0
- package/dist/esm/menu/index.module.css +106 -0
- package/dist/esm/modal/index.d.ts +23 -0
- package/dist/esm/modal/index.js +66 -0
- package/dist/esm/modal/index.module.css +83 -0
- package/dist/esm/popover/index.d.ts +26 -0
- package/dist/esm/popover/index.js +343 -0
- package/dist/esm/popover/index.module.css +95 -0
- package/dist/esm/tooltip/index.d.ts +16 -0
- package/dist/esm/tooltip/index.js +124 -0
- package/package.json +12 -8
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author : izzetseydaoglu
|
|
3
|
+
* @copyright : sydSOFT Bilişim Hizmetleri (c) 2026
|
|
4
|
+
* @version : 2026-02-11 18:48:47
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { propsDialog } from '../form';
|
|
8
|
+
import { PopoverConfigBaseProps } from '../popover';
|
|
9
|
+
interface BaseProps {
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
itemProps?: any;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
noRender?: boolean;
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}
|
|
16
|
+
interface SeperatorProps extends BaseProps {
|
|
17
|
+
seperator: boolean;
|
|
18
|
+
title?: never;
|
|
19
|
+
icon?: never;
|
|
20
|
+
fullComponent?: never;
|
|
21
|
+
href?: never;
|
|
22
|
+
target?: never;
|
|
23
|
+
onClick?: never;
|
|
24
|
+
dialog?: never;
|
|
25
|
+
}
|
|
26
|
+
interface FullComponentProps extends BaseProps {
|
|
27
|
+
fullComponent: React.ReactElement;
|
|
28
|
+
seperator?: never;
|
|
29
|
+
title?: never;
|
|
30
|
+
icon?: never;
|
|
31
|
+
href?: never;
|
|
32
|
+
target?: never;
|
|
33
|
+
onClick?: never;
|
|
34
|
+
dialog?: never;
|
|
35
|
+
}
|
|
36
|
+
interface ItemComponentProps extends BaseProps {
|
|
37
|
+
seperator?: false;
|
|
38
|
+
fullComponent?: never;
|
|
39
|
+
type?: never;
|
|
40
|
+
title: string;
|
|
41
|
+
icon?: React.ReactNode;
|
|
42
|
+
rightComponent?: React.ReactNode;
|
|
43
|
+
href?: string;
|
|
44
|
+
target?: '_blank' | '_self' | '_parent' | '_top';
|
|
45
|
+
onClick?: (e: React.MouseEvent<HTMLLIElement>) => void;
|
|
46
|
+
dialog?: propsDialog;
|
|
47
|
+
}
|
|
48
|
+
interface SubMenuProps extends BaseProps {
|
|
49
|
+
type: 'submenu';
|
|
50
|
+
title: string;
|
|
51
|
+
items: typeMenu[];
|
|
52
|
+
icon?: React.ReactNode;
|
|
53
|
+
subMenuPopoverProps?: PopoverConfigBaseProps;
|
|
54
|
+
rightComponent?: React.ReactNode;
|
|
55
|
+
menuProps?: {
|
|
56
|
+
className?: string;
|
|
57
|
+
style?: React.CSSProperties;
|
|
58
|
+
withIcon?: boolean | 'auto';
|
|
59
|
+
};
|
|
60
|
+
seperator?: never;
|
|
61
|
+
fullComponent?: never;
|
|
62
|
+
href?: never;
|
|
63
|
+
target?: never;
|
|
64
|
+
onClick?: never;
|
|
65
|
+
dialog?: never;
|
|
66
|
+
}
|
|
67
|
+
export type typeMenu = SeperatorProps | FullComponentProps | ItemComponentProps | SubMenuProps;
|
|
68
|
+
interface Props {
|
|
69
|
+
menu: typeMenu[];
|
|
70
|
+
className?: string;
|
|
71
|
+
style?: React.CSSProperties;
|
|
72
|
+
withIcon?: boolean | 'auto';
|
|
73
|
+
}
|
|
74
|
+
export declare const Menu: React.NamedExoticComponent<Props>;
|
|
75
|
+
export {};
|
|
@@ -0,0 +1,59 @@
|
|
|
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-11 18:48:47
|
|
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.disabled) {
|
|
27
|
+
e.preventDefault();
|
|
28
|
+
e.stopPropagation();
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
if (!item.onClick)
|
|
32
|
+
return;
|
|
33
|
+
if (item.dialog) {
|
|
34
|
+
Dialog(__assign({}, item.dialog)).then(function (result) {
|
|
35
|
+
if (result && item.onClick) {
|
|
36
|
+
item.onClick(e);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
item.onClick(e);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
return (_jsx("ul", { className: "smenu ".concat(styles.ul, " ").concat(className || ''), style: style, children: Object.values(menu).map(function (item, key) {
|
|
45
|
+
var _a = item, noRender = _a.noRender, fullComponent = _a.fullComponent, icon = _a.icon, title = _a.title, rightComponent = _a.rightComponent, seperator = _a.seperator, href = _a.href, target = _a.target, style = _a.style, itemProps = _a.itemProps, type = _a.type, items = _a.items, menuProps = _a.menuProps, subMenuPopoverProps = _a.subMenuPopoverProps, disabled = _a.disabled, other = __rest(_a, ["noRender", "fullComponent", "icon", "title", "rightComponent", "seperator", "href", "target", "style", "itemProps", "type", "items", "menuProps", "subMenuPopoverProps", "disabled"]);
|
|
46
|
+
if (noRender)
|
|
47
|
+
return null;
|
|
48
|
+
var hasSubmenu = type === 'submenu' && Array.isArray(items) && items.length > 0;
|
|
49
|
+
if (fullComponent)
|
|
50
|
+
return React.cloneElement(fullComponent, { key: key });
|
|
51
|
+
if (seperator)
|
|
52
|
+
return _jsx("li", __assign({ className: styles.seperator, style: style }, itemProps, other), key);
|
|
53
|
+
var Component = (_jsxs(_Fragment, { children: [withIconComponent && _jsx("div", { className: 'menuicon', children: icon }), _jsx("div", { className: 'menutitle', children: title }), withRightComponent && _jsx("div", { className: 'menuright', children: rightComponent })] }));
|
|
54
|
+
if (hasSubmenu) {
|
|
55
|
+
return (_jsx(Popover, __assign({ component: _jsx("li", __assign({ style: style, disabled: disabled }, itemProps, other, { children: Component })), position: "right-top" }, (subMenuPopoverProps || {}), { children: _jsx(Menu, __assign({ menu: items }, (menuProps || {}))) }), key));
|
|
56
|
+
}
|
|
57
|
+
return (_jsx("li", __assign({ style: style, disabled: disabled }, itemProps, other, { onClick: function (e) { return handleClick(item, e); }, children: href ? (_jsx(Link, { href: href, target: target, children: Component })) : (Component) }), key));
|
|
58
|
+
}) }));
|
|
59
|
+
});
|
|
@@ -0,0 +1,106 @@
|
|
|
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
|
+
.ul > li:hover :global(.menutitle){
|
|
53
|
+
text-shadow: 0.3px 0 0 currentColor;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.ul > li[disabled] {
|
|
57
|
+
cursor: not-allowed;
|
|
58
|
+
opacity: 0.5;
|
|
59
|
+
}
|
|
60
|
+
.ul > li :global(.menuicon) {
|
|
61
|
+
display: inline-flex;
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
width: 30px;
|
|
64
|
+
flex: 0 0 auto;
|
|
65
|
+
align-items: center;
|
|
66
|
+
justify-content: center;
|
|
67
|
+
color: #606060;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.ul > li :global(.menuicon) img {
|
|
71
|
+
max-height: 19px;
|
|
72
|
+
width: auto !important;
|
|
73
|
+
height: auto !important;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.ul > li :global(.menutitle) {
|
|
77
|
+
display: inline-flex;
|
|
78
|
+
flex: 1;
|
|
79
|
+
align-items: center;
|
|
80
|
+
justify-content: flex-start;
|
|
81
|
+
margin: 0 10px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.ul > li :global(.menuright) {
|
|
85
|
+
display: inline-flex;
|
|
86
|
+
flex: 0 0 auto;
|
|
87
|
+
align-items: center;
|
|
88
|
+
justify-content: center;
|
|
89
|
+
color: #909090;
|
|
90
|
+
font-size: 12px;
|
|
91
|
+
width: 50px;
|
|
92
|
+
}
|
|
93
|
+
.ul > li :global(.menuright) > span {
|
|
94
|
+
user-select: none;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.seperator {
|
|
98
|
+
cursor: default !important;
|
|
99
|
+
background: #00000014 !important;
|
|
100
|
+
border: 0;
|
|
101
|
+
height: 1px;
|
|
102
|
+
min-height: 1px !important;
|
|
103
|
+
margin: 4px 0;
|
|
104
|
+
padding: 0 !important;
|
|
105
|
+
display: block !important;
|
|
106
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author : izzetseydaoglu
|
|
3
|
+
* @copyright : sydSOFT Bilişim Hizmetleri (c) 2026
|
|
4
|
+
* @version : 2026-02-10 20:26:27
|
|
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 {};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
/**
|
|
4
|
+
* @author : izzetseydaoglu
|
|
5
|
+
* @copyright : sydSOFT Bilişim Hizmetleri (c) 2026
|
|
6
|
+
* @version : 2026-02-10 20:26:27
|
|
7
|
+
*/
|
|
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) {
|
|
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;
|
|
13
|
+
var _l = useState(null), modalDiv = _l[0], setModalDiv = _l[1];
|
|
14
|
+
var ref = useRef(null);
|
|
15
|
+
useEffect(function () {
|
|
16
|
+
if (refModal)
|
|
17
|
+
refModal.current = ref.current;
|
|
18
|
+
}, [ref.current]);
|
|
19
|
+
var onClose = function () {
|
|
20
|
+
if (close)
|
|
21
|
+
close();
|
|
22
|
+
};
|
|
23
|
+
var checkHideBackDrop = function (e) {
|
|
24
|
+
if (open && ref.current && !ref.current.contains(e.target))
|
|
25
|
+
onClose();
|
|
26
|
+
};
|
|
27
|
+
var checkESC = function (e) {
|
|
28
|
+
if (e.keyCode === 27 || e.key === "Escape" || e.code === "Escape")
|
|
29
|
+
onClose();
|
|
30
|
+
};
|
|
31
|
+
useEffect(function () {
|
|
32
|
+
if (open) {
|
|
33
|
+
if (hideBackdrop)
|
|
34
|
+
window.addEventListener("mousedown", checkHideBackDrop);
|
|
35
|
+
if (hideEsc)
|
|
36
|
+
window.addEventListener("keydown", checkESC);
|
|
37
|
+
}
|
|
38
|
+
return function () {
|
|
39
|
+
if (hideBackdrop)
|
|
40
|
+
window.removeEventListener("mousedown", checkHideBackDrop);
|
|
41
|
+
if (hideEsc)
|
|
42
|
+
window.removeEventListener("keydown", checkESC);
|
|
43
|
+
};
|
|
44
|
+
});
|
|
45
|
+
useEffect(function () {
|
|
46
|
+
if (!modalDiv) {
|
|
47
|
+
var modalDivCheck = document.getElementById("smodal");
|
|
48
|
+
if (modalDivCheck) {
|
|
49
|
+
setModalDiv(modalDivCheck);
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
var div = document.createElement("div");
|
|
53
|
+
div.setAttribute("id", "smodal");
|
|
54
|
+
document.body.appendChild(div);
|
|
55
|
+
setModalDiv(div);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return function () {
|
|
59
|
+
onClose();
|
|
60
|
+
};
|
|
61
|
+
}, []);
|
|
62
|
+
if ((!keepMounted && !open) || typeof window === "undefined")
|
|
63
|
+
return null;
|
|
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;
|
|
66
|
+
});
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author : izzetseydaoglu
|
|
3
|
+
* @copyright : sydSOFT Bilişim Hizmetleri (c) 2026
|
|
4
|
+
* @version : 2026-02-10 20:25:31
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
.backdrop {
|
|
8
|
+
position: fixed;
|
|
9
|
+
z-index: 1300;
|
|
10
|
+
inset: 0;
|
|
11
|
+
display: none;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
background: rgba(0, 0, 0, 0.23);
|
|
15
|
+
width: 100%;
|
|
16
|
+
height: 100%;
|
|
17
|
+
outline: none;
|
|
18
|
+
}
|
|
19
|
+
.backdrop_open {
|
|
20
|
+
display: flex !important;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.modal {
|
|
24
|
+
position: relative;
|
|
25
|
+
min-width: 200px;
|
|
26
|
+
max-width: 90%;
|
|
27
|
+
max-height: calc(100% - 64px);
|
|
28
|
+
overflow-x: hidden;
|
|
29
|
+
border-radius: 8px;
|
|
30
|
+
background: transparent;
|
|
31
|
+
box-shadow:
|
|
32
|
+
rgb(0 0 0 / 32%) 0 4px 8px,
|
|
33
|
+
rgb(0 0 0 / 40%) 0 8px 40px;
|
|
34
|
+
margin: 15px;
|
|
35
|
+
padding: 0;
|
|
36
|
+
z-index: 1;
|
|
37
|
+
outline: none;
|
|
38
|
+
}
|
|
39
|
+
.fullscreen {
|
|
40
|
+
width: 100vw;
|
|
41
|
+
max-width: 100vw;
|
|
42
|
+
height: 100vh;
|
|
43
|
+
max-height: 100vh;
|
|
44
|
+
border-radius: 0;
|
|
45
|
+
margin: 0;
|
|
46
|
+
}
|
|
47
|
+
.close_fixed {
|
|
48
|
+
position: absolute;
|
|
49
|
+
top: 2px;
|
|
50
|
+
right: 2px;
|
|
51
|
+
z-index: 1000;
|
|
52
|
+
text-align: right;
|
|
53
|
+
border-radius: inherit;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.close {
|
|
57
|
+
position: fixed;
|
|
58
|
+
background: linear-gradient(0deg, transparent, #00000026, transparent);
|
|
59
|
+
padding: 8px 10px;
|
|
60
|
+
font-size: 11px;
|
|
61
|
+
transform: scale(1) translateX(-100%);
|
|
62
|
+
border-radius: none;
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
font-weight: bold;
|
|
65
|
+
text-shadow: 1px 0px 0px #000000;
|
|
66
|
+
transition: all 0.3s ease-in-out;
|
|
67
|
+
}
|
|
68
|
+
.close:hover {
|
|
69
|
+
transform: scale(1.3) translateX(-85%);
|
|
70
|
+
background: linear-gradient(180deg, transparent, #0000003a, transparent);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.sbox_header {
|
|
74
|
+
position: sticky;
|
|
75
|
+
top: 0;
|
|
76
|
+
z-index: 10;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.sbox_footer {
|
|
80
|
+
position: sticky;
|
|
81
|
+
bottom: 0;
|
|
82
|
+
z-index: 10;
|
|
83
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author : izzetseydaoglu
|
|
3
|
+
* @copyright : sydSOFT Bilişim Hizmetleri (c) 2026
|
|
4
|
+
* @version : 2026-02-11 18:50:06
|
|
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 {};
|