px-react-ui-components 1.0.3 → 1.0.6
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/components/MyAlert/MyAlert.js +19 -23
- package/dist/components/MyContainer/MyContainer.js +30 -41
- package/dist/components/MyContainer/MyContainerBody.js +6 -5
- package/dist/components/MyContainer/MyContainerFooter.js +6 -5
- package/dist/components/MyContainer/MyContainerRight.js +7 -6
- package/dist/components/MyEditor/MyEditor.js +72 -112
- package/dist/components/MyFileUpload/MyFileUpload.js +77 -121
- package/dist/components/MyImageCropper/MyImageCropper.js +41 -67
- package/dist/components/MyInput/MyInput.js +273 -419
- package/dist/components/MyInput/index.js +9 -8
- package/dist/components/MyMaps/YandexMaps.js +62 -95
- package/dist/components/MyMenu/MenuItem.js +35 -59
- package/dist/components/MyModal/MyModal.js +24 -31
- package/dist/components/MyModal/MyModalBody.js +6 -5
- package/dist/components/MyModal/MyModalFooter.js +6 -5
- package/dist/components/MyNotFound/MyNotFound.js +8 -11
- package/dist/components/MyScrollableCard/MyScrollableCard.js +25 -49
- package/dist/components/MyTable/MyTable.js +152 -227
- package/dist/components/MyTable/MyTableBody.js +6 -5
- package/dist/components/MyTable/MyTableHead.js +6 -5
- package/dist/components/MyTabs/MyTabPane.js +17 -27
- package/dist/components/MyTabs/MyTabs.js +21 -41
- package/dist/components/MyWaiting/MyWaiting.js +6 -7
- package/dist/components/MyZoomImage/MyZoomImage.js +32 -57
- package/dist/index.js +32 -32
- package/package.json +9 -11
|
@@ -1,38 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
|
-
exports
|
|
6
|
+
exports.default = void 0;
|
|
8
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
8
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function
|
|
11
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" !=
|
|
12
|
-
function MyTabPane(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
icon = _ref$icon === void 0 ? null : _ref$icon,
|
|
26
|
-
_ref$className = _ref.className,
|
|
27
|
-
className = _ref$className === void 0 ? null : _ref$className,
|
|
28
|
-
_ref$style = _ref.style,
|
|
29
|
-
style = _ref$style === void 0 ? null : _ref$style,
|
|
30
|
-
_ref$tabClassName = _ref.tabClassName,
|
|
31
|
-
tabClassName = _ref$tabClassName === void 0 ? null : _ref$tabClassName,
|
|
32
|
-
_ref$tabStyle = _ref.tabStyle,
|
|
33
|
-
tabStyle = _ref$tabStyle === void 0 ? null : _ref$tabStyle;
|
|
9
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
10
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
11
|
+
function MyTabPane({
|
|
12
|
+
children,
|
|
13
|
+
label = null,
|
|
14
|
+
title = null,
|
|
15
|
+
description = null,
|
|
16
|
+
badge = null,
|
|
17
|
+
name = null,
|
|
18
|
+
icon = null,
|
|
19
|
+
className = null,
|
|
20
|
+
style = null,
|
|
21
|
+
tabClassName = null,
|
|
22
|
+
tabStyle = null
|
|
23
|
+
}) {
|
|
34
24
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
35
25
|
children: children
|
|
36
26
|
});
|
|
37
27
|
}
|
|
38
|
-
var _default = exports
|
|
28
|
+
var _default = exports.default = MyTabPane;
|
|
@@ -1,39 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
|
-
exports
|
|
6
|
+
exports.default = void 0;
|
|
8
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
8
|
require("./MyTabs.css");
|
|
10
9
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function
|
|
12
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" !=
|
|
13
|
-
function
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
style = _ref$style === void 0 ? null : _ref$style,
|
|
25
|
-
_ref$onChange = _ref.onChange,
|
|
26
|
-
onChange = _ref$onChange === void 0 ? null : _ref$onChange,
|
|
27
|
-
_ref$activePaneIndex = _ref.activePaneIndex,
|
|
28
|
-
activePaneIndex = _ref$activePaneIndex === void 0 ? -1 : _ref$activePaneIndex,
|
|
29
|
-
_ref$activePaneName = _ref.activePaneName,
|
|
30
|
-
activePaneName = _ref$activePaneName === void 0 ? null : _ref$activePaneName;
|
|
31
|
-
var _useState = (0, _react.useState)(activePaneIndex > -1 ? activePaneIndex : 0),
|
|
32
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
33
|
-
activei = _useState2[0],
|
|
34
|
-
setActivei = _useState2[1];
|
|
35
|
-
var arrChild = _react["default"].Children.toArray(children);
|
|
36
|
-
(0, _react.useEffect)(function () {
|
|
10
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
11
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
12
|
+
function MyTabs({
|
|
13
|
+
children,
|
|
14
|
+
className = null,
|
|
15
|
+
style = null,
|
|
16
|
+
onChange = null,
|
|
17
|
+
activePaneIndex = -1,
|
|
18
|
+
activePaneName = null
|
|
19
|
+
}) {
|
|
20
|
+
const [activei, setActivei] = (0, _react.useState)(activePaneIndex > -1 ? activePaneIndex : 0);
|
|
21
|
+
const arrChild = _react.default.Children.toArray(children);
|
|
22
|
+
(0, _react.useEffect)(() => {
|
|
37
23
|
if (onChange) {
|
|
38
24
|
onChange({
|
|
39
25
|
index: activei,
|
|
@@ -42,11 +28,9 @@ function MyTabs(_ref) {
|
|
|
42
28
|
});
|
|
43
29
|
}
|
|
44
30
|
}, [activei]);
|
|
45
|
-
(0, _react.useEffect)(
|
|
31
|
+
(0, _react.useEffect)(() => {
|
|
46
32
|
if (activePaneName) {
|
|
47
|
-
|
|
48
|
-
return item.props.name === activePaneName;
|
|
49
|
-
});
|
|
33
|
+
const index = arrChild.findIndex(item => item.props.name === activePaneName);
|
|
50
34
|
if (index > -1) {
|
|
51
35
|
setActivei(index);
|
|
52
36
|
}
|
|
@@ -57,13 +41,11 @@ function MyTabs(_ref) {
|
|
|
57
41
|
style: style,
|
|
58
42
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("ul", {
|
|
59
43
|
className: "my-TabsTabList",
|
|
60
|
-
children: arrChild.map(
|
|
44
|
+
children: arrChild.map((item, i) => {
|
|
61
45
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("li", {
|
|
62
46
|
className: (i == activei && 'active') + ' ' + (item.props.tabClassName ? item.props.tabClassName : ''),
|
|
63
47
|
style: item.props.tabStyle,
|
|
64
|
-
onClick:
|
|
65
|
-
return setActivei(i);
|
|
66
|
-
},
|
|
48
|
+
onClick: () => setActivei(i),
|
|
67
49
|
title: item.props.title,
|
|
68
50
|
children: [item.props.icon != undefined && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
69
51
|
className: "icon",
|
|
@@ -88,17 +70,15 @@ function MyTabs(_ref) {
|
|
|
88
70
|
})
|
|
89
71
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
90
72
|
className: "my-TabsTabBody",
|
|
91
|
-
children: arrChild.map(
|
|
73
|
+
children: arrChild.map((item, i) => {
|
|
92
74
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
93
75
|
className: "my-TabsTabContainer " + (i == activei && 'active') + ' ' + (item.props.className ? item.props.className : ''),
|
|
94
76
|
style: item.props.style,
|
|
95
|
-
onClick:
|
|
96
|
-
return setActivei(i);
|
|
97
|
-
},
|
|
77
|
+
onClick: () => setActivei(i),
|
|
98
78
|
children: item.props.children
|
|
99
79
|
}, i);
|
|
100
80
|
})
|
|
101
81
|
})]
|
|
102
82
|
});
|
|
103
83
|
}
|
|
104
|
-
var _default = exports
|
|
84
|
+
var _default = exports.default = MyTabs;
|
|
@@ -3,18 +3,17 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.default = MyWaiting;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _reactLoaderSpinner = require("react-loader-spinner");
|
|
9
9
|
require("./MyWaiting.css");
|
|
10
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : {
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
12
|
// Modal için CSS dosyası
|
|
13
|
-
function MyWaiting(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
message = _ref$message === void 0 ? null : _ref$message;
|
|
13
|
+
function MyWaiting({
|
|
14
|
+
show = false,
|
|
15
|
+
message = null
|
|
16
|
+
}) {
|
|
18
17
|
if (!show) {
|
|
19
18
|
return null;
|
|
20
19
|
}
|
|
@@ -1,36 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
|
-
exports
|
|
6
|
+
exports.default = void 0;
|
|
8
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
8
|
var _reactZoomPanPinch = require("react-zoom-pan-pinch");
|
|
10
9
|
require("./MyZoomImage.css");
|
|
11
10
|
var _pi = require("react-icons/pi");
|
|
12
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function
|
|
14
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" !=
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
zoomOut = _useControls.zoomOut,
|
|
27
|
-
resetTransform = _useControls.resetTransform,
|
|
28
|
-
centerView = _useControls.centerView;
|
|
29
|
-
var handlePan = function handlePan(x, y) {
|
|
12
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
|
+
const Controls = ({
|
|
15
|
+
wrapperRef,
|
|
16
|
+
openArrow
|
|
17
|
+
}) => {
|
|
18
|
+
const {
|
|
19
|
+
zoomIn,
|
|
20
|
+
zoomOut,
|
|
21
|
+
resetTransform,
|
|
22
|
+
centerView
|
|
23
|
+
} = (0, _reactZoomPanPinch.useControls)();
|
|
24
|
+
const handlePan = (x, y) => {
|
|
30
25
|
if (wrapperRef.current) {
|
|
31
26
|
// debugger
|
|
32
27
|
// Mevcut pozisyonu al
|
|
33
|
-
|
|
28
|
+
const state = wrapperRef.current.instance.transformState;
|
|
34
29
|
// Pozisyonu güncelle
|
|
35
30
|
wrapperRef.current.instance.setTransformState(state.scale, state.positionX + x, state.positionY + y);
|
|
36
31
|
}
|
|
@@ -41,27 +36,21 @@ var Controls = function Controls(_ref) {
|
|
|
41
36
|
className: "flex gap-1 mb-3",
|
|
42
37
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
43
38
|
className: "bg-slate-400 hover:bg-slate-500 rounded-full p-2",
|
|
44
|
-
onClick:
|
|
45
|
-
return zoomIn();
|
|
46
|
-
},
|
|
39
|
+
onClick: () => zoomIn(),
|
|
47
40
|
title: "Zoom +",
|
|
48
41
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pi.PiPlusBold, {
|
|
49
42
|
className: "text-lg text-white"
|
|
50
43
|
})
|
|
51
44
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
52
45
|
className: "bg-slate-400 hover:bg-slate-500 rounded-full p-2",
|
|
53
|
-
onClick:
|
|
54
|
-
return zoomOut();
|
|
55
|
-
},
|
|
46
|
+
onClick: () => zoomOut(),
|
|
56
47
|
title: "Zoom -",
|
|
57
48
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pi.PiMinusBold, {
|
|
58
49
|
className: "text-lg text-white"
|
|
59
50
|
})
|
|
60
51
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
61
52
|
className: "bg-slate-400 hover:bg-slate-500 rounded-full p-2",
|
|
62
|
-
onClick:
|
|
63
|
-
return resetTransform();
|
|
64
|
-
},
|
|
53
|
+
onClick: () => resetTransform(),
|
|
65
54
|
title: "Zoom Cancel",
|
|
66
55
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pi.PiX, {
|
|
67
56
|
className: "text-lg text-white"
|
|
@@ -71,9 +60,7 @@ var Controls = function Controls(_ref) {
|
|
|
71
60
|
className: "flex flex-col items-center p-2",
|
|
72
61
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
73
62
|
className: "bg-blue-400 hover:bg-blue-500 rounded-full p-2 mb-1",
|
|
74
|
-
onClick:
|
|
75
|
-
return handlePan(0, 30);
|
|
76
|
-
},
|
|
63
|
+
onClick: () => handlePan(0, 30),
|
|
77
64
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pi.PiArrowUpBold, {
|
|
78
65
|
className: "text-lg text-white"
|
|
79
66
|
})
|
|
@@ -81,35 +68,27 @@ var Controls = function Controls(_ref) {
|
|
|
81
68
|
className: "flex",
|
|
82
69
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
83
70
|
className: "bg-blue-400 hover:bg-blue-500 rounded-full p-2",
|
|
84
|
-
onClick:
|
|
85
|
-
return handlePan(30, 0);
|
|
86
|
-
},
|
|
71
|
+
onClick: () => handlePan(30, 0),
|
|
87
72
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pi.PiArrowLeftBold, {
|
|
88
73
|
className: "text-lg text-white"
|
|
89
74
|
})
|
|
90
75
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
91
76
|
className: "bg-blue-400 hover:bg-blue-500 rounded-full p-2 ml-1 mr-1",
|
|
92
|
-
onClick:
|
|
93
|
-
return centerView();
|
|
94
|
-
},
|
|
77
|
+
onClick: () => centerView(),
|
|
95
78
|
title: "Center",
|
|
96
79
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pi.PiArrowsIn, {
|
|
97
80
|
className: "text-lg text-white"
|
|
98
81
|
})
|
|
99
82
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
100
83
|
className: "bg-blue-400 hover:bg-blue-500 rounded-full p-2",
|
|
101
|
-
onClick:
|
|
102
|
-
return handlePan(-30, 0);
|
|
103
|
-
},
|
|
84
|
+
onClick: () => handlePan(-30, 0),
|
|
104
85
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pi.PiArrowRightBold, {
|
|
105
86
|
className: "text-lg text-white"
|
|
106
87
|
})
|
|
107
88
|
})]
|
|
108
89
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
109
90
|
className: "bg-blue-400 hover:bg-blue-500 rounded-full p-2 mt-1",
|
|
110
|
-
onClick:
|
|
111
|
-
return handlePan(0, -30);
|
|
112
|
-
},
|
|
91
|
+
onClick: () => handlePan(0, -30),
|
|
113
92
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pi.PiArrowDownBold, {
|
|
114
93
|
className: "text-lg text-white"
|
|
115
94
|
})
|
|
@@ -117,18 +96,14 @@ var Controls = function Controls(_ref) {
|
|
|
117
96
|
})]
|
|
118
97
|
});
|
|
119
98
|
};
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
129
|
-
openArrow = _useState2[0],
|
|
130
|
-
setOpenArrow = _useState2[1];
|
|
131
|
-
var handlerTransform = function handlerTransform(e) {
|
|
99
|
+
const MyImageZoom = ({
|
|
100
|
+
image,
|
|
101
|
+
children = null,
|
|
102
|
+
onZoomChange = null
|
|
103
|
+
}) => {
|
|
104
|
+
const wrapperRef = (0, _react.useRef)(null); // Ref oluştur
|
|
105
|
+
const [openArrow, setOpenArrow] = (0, _react.useState)(false);
|
|
106
|
+
const handlerTransform = e => {
|
|
132
107
|
setOpenArrow(e.state.scale != 1);
|
|
133
108
|
if (onZoomChange != null) {
|
|
134
109
|
onZoomChange(e.state);
|
|
@@ -154,4 +129,4 @@ var MyImageZoom = function MyImageZoom(_ref2) {
|
|
|
154
129
|
})
|
|
155
130
|
});
|
|
156
131
|
};
|
|
157
|
-
var _default = exports
|
|
132
|
+
var _default = exports.default = MyImageZoom;
|
package/dist/index.js
CHANGED
|
@@ -5,93 +5,93 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
Object.defineProperty(exports, "MyAlert", {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: function
|
|
9
|
-
return _MyAlert
|
|
8
|
+
get: function () {
|
|
9
|
+
return _MyAlert.default;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "MyContainer", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function
|
|
15
|
-
return _MyContainer
|
|
14
|
+
get: function () {
|
|
15
|
+
return _MyContainer.default;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "MyEditor", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function
|
|
21
|
-
return _MyEditor
|
|
20
|
+
get: function () {
|
|
21
|
+
return _MyEditor.default;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "MyFileUpload", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function
|
|
27
|
-
return _MyFileUpload
|
|
26
|
+
get: function () {
|
|
27
|
+
return _MyFileUpload.default;
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "MyImageCropper", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function
|
|
33
|
-
return _MyImageCropper
|
|
32
|
+
get: function () {
|
|
33
|
+
return _MyImageCropper.default;
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "MyInput", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function
|
|
39
|
-
return _MyInput
|
|
38
|
+
get: function () {
|
|
39
|
+
return _MyInput.default;
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
exports.MyInputType = void 0;
|
|
43
43
|
Object.defineProperty(exports, "MyMaps", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function
|
|
46
|
-
return _MyMaps
|
|
45
|
+
get: function () {
|
|
46
|
+
return _MyMaps.default;
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "MyMenu", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function
|
|
52
|
-
return _MyMenu
|
|
51
|
+
get: function () {
|
|
52
|
+
return _MyMenu.default;
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "MyModal", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function
|
|
58
|
-
return _MyModal
|
|
57
|
+
get: function () {
|
|
58
|
+
return _MyModal.default;
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "MyNotFound", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function
|
|
64
|
-
return _MyNotFound
|
|
63
|
+
get: function () {
|
|
64
|
+
return _MyNotFound.default;
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "MyScrollableCard", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function
|
|
70
|
-
return _MyScrollableCard
|
|
69
|
+
get: function () {
|
|
70
|
+
return _MyScrollableCard.default;
|
|
71
71
|
}
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "MyTable", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function
|
|
76
|
-
return _MyTable
|
|
75
|
+
get: function () {
|
|
76
|
+
return _MyTable.default;
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "MyTabs", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function
|
|
82
|
-
return _MyTabs
|
|
81
|
+
get: function () {
|
|
82
|
+
return _MyTabs.default;
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "MyWaiting", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function
|
|
88
|
-
return _MyWaiting
|
|
87
|
+
get: function () {
|
|
88
|
+
return _MyWaiting.default;
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "MyZoomImage", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function
|
|
94
|
-
return _MyZoomImage
|
|
93
|
+
get: function () {
|
|
94
|
+
return _MyZoomImage.default;
|
|
95
95
|
}
|
|
96
96
|
});
|
|
97
97
|
var _MyInput = _interopRequireDefault(require("./components/MyInput"));
|
|
@@ -109,9 +109,9 @@ var _MyTable = _interopRequireDefault(require("./components/MyTable"));
|
|
|
109
109
|
var _MyTabs = _interopRequireDefault(require("./components/MyTabs"));
|
|
110
110
|
var _MyWaiting = _interopRequireDefault(require("./components/MyWaiting"));
|
|
111
111
|
var _MyZoomImage = _interopRequireDefault(require("./components/MyZoomImage"));
|
|
112
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : {
|
|
112
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
113
113
|
// Export types
|
|
114
|
-
|
|
114
|
+
const MyInputType = exports.MyInputType = {
|
|
115
115
|
TEXT: 'text',
|
|
116
116
|
PASSWORD: 'password',
|
|
117
117
|
SELECT: 'select',
|
package/package.json
CHANGED
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "px-react-ui-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
|
-
"type": "
|
|
6
|
+
"type": "commonjs",
|
|
7
7
|
"exports": {
|
|
8
|
-
".":
|
|
9
|
-
"import": "./dist/index.js",
|
|
10
|
-
"require": "./dist/index.js"
|
|
11
|
-
}
|
|
8
|
+
".": "./dist/index.js"
|
|
12
9
|
},
|
|
13
10
|
"files": [
|
|
14
11
|
"dist",
|
|
12
|
+
"dist/components",
|
|
15
13
|
"README.md"
|
|
16
14
|
],
|
|
17
15
|
"scripts": {
|
|
18
|
-
"build": "babel src --out-dir dist --copy-files
|
|
16
|
+
"build": "babel src --out-dir dist --copy-files",
|
|
19
17
|
"prepare": "npm run build"
|
|
20
18
|
},
|
|
21
19
|
"keywords": [
|
|
@@ -39,17 +37,17 @@
|
|
|
39
37
|
"devDependencies": {
|
|
40
38
|
"@babel/cli": "^7.27.0",
|
|
41
39
|
"@babel/core": "^7.26.10",
|
|
42
|
-
"@babel/preset-
|
|
43
|
-
"@babel/preset-
|
|
40
|
+
"@babel/preset-react": "^7.26.3",
|
|
41
|
+
"@babel/preset-env": "^7.26.10"
|
|
44
42
|
},
|
|
45
43
|
"peerDependencies": {
|
|
44
|
+
"react": "^18.3.1",
|
|
45
|
+
"react-dom": "^18.3.1",
|
|
46
46
|
"katex": "^0.16.21",
|
|
47
47
|
"quill": "^2.0.3",
|
|
48
48
|
"quill-image-resize-module-react": "^3.0.0",
|
|
49
49
|
"quill-table-ui": "^1.0.7",
|
|
50
|
-
"react": "^18.3.1",
|
|
51
50
|
"react-confirm-alert": "^3.0.6",
|
|
52
|
-
"react-dom": "^18.3.1",
|
|
53
51
|
"react-icons": "^5.5.0",
|
|
54
52
|
"react-image-crop": "^11.0.7",
|
|
55
53
|
"react-loader-spinner": "^6.1.6",
|