kdpa-components 1.0.0 → 1.2.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/CHANGELOG.md +7 -0
- package/dist/Accordion/index.js +17 -19
- package/dist/Alert/index.js +19 -20
- package/dist/{ArrowDropDown-4bc3084f.js → ArrowDropDown-07b9ccae.js} +19 -20
- package/dist/Avatar/index.js +7 -8
- package/dist/Badge/index.js +22 -24
- package/dist/{Box-af81b133.js → Box-032e9a1d.js} +25 -27
- package/dist/{Button-da8592f4.js → Button-9d9cc0bd.js} +18 -20
- package/dist/{ButtonBase-496494a5.js → ButtonBase-fa4630c8.js} +35 -37
- package/dist/Buttons/index.js +28 -30
- package/dist/{CSSTransition-5496e075.js → CSSTransition-7e2d0e80.js} +3 -3
- package/dist/Cards/index.d.ts +2 -0
- package/dist/Cards/index.d.ts.map +1 -1
- package/dist/Cards/index.js +150 -1
- package/dist/CheckBox/index.js +13 -14
- package/dist/Chip/index.js +17 -19
- package/dist/{Chip-2dfcd6e9.js → Chip-e5751770.js} +25 -27
- package/dist/{CircularProgress-e1f22f2a.js → CircularProgress-01a8929e.js} +19 -21
- package/dist/{Close-319784e1.js → Close-db7afda5.js} +2 -2
- package/dist/Collapse/index.js +10 -12
- package/dist/{Collapse-75d5ed79.js → Collapse-547e6c7a.js} +27 -30
- package/dist/CopyToClipboard/index.js +24 -26
- package/dist/{Dialog-0eadb508.js → Dialog-652a3ad4.js} +19 -21
- package/dist/Divider/index.js +7 -8
- package/dist/DropZone/index.js +34 -36
- package/dist/{Fade-6a96fc41.js → Fade-7ee2c0a4.js} +23 -25
- package/dist/FormControl/index.js +12 -13
- package/dist/{FormControl-c914b3de.js → FormControl-ca7447ab.js} +13 -15
- package/dist/FullScreenDialog/index.js +20 -22
- package/dist/Grid/index.js +9 -10
- package/dist/{Grid-4cbef6c7.js → Grid-9708b9ca.js} +65 -67
- package/dist/{Grow-8a97586f.js → Grow-55d0786d.js} +17 -19
- package/dist/{IconButton-b4e677f7.js → IconButton-48d87778.js} +30 -32
- package/dist/Input/index.js +27 -29
- package/dist/{KdpaAccordions-60fefaf0.js → KdpaAccordions-2ae65dd1.js} +126 -115
- package/dist/{KdpaAlertTitle-497100ba.js → KdpaAlertTitle-f1549035.js} +93 -82
- package/dist/{KdpaAutoComplete-9c0b8d4d.js → KdpaAutoComplete-8a11974a.js} +237 -234
- package/dist/{KdpaAvatar-da84b516.js → KdpaAvatar-d297ef8a.js} +75 -72
- package/dist/{KdpaCheckBox-d06c93b0.js → KdpaCheckBox-84d56486.js} +33 -30
- package/dist/KdpaChip-10899788.js +51 -0
- package/dist/KdpaCircularProgress-6c4605cd.js +76 -0
- package/dist/KdpaCollapse-2d23c312.js +12 -0
- package/dist/KdpaCollapse-73c03e02.js +23 -0
- package/dist/{KdpaCopyToClipboard-2c36d593.js → KdpaCopyToClipboard-53aa97d3.js} +196 -160
- package/dist/{KdpaDateTimePicker-8e9da3c8.js → KdpaDateTimePicker-cb4a16d0.js} +10530 -13197
- package/dist/{KdpaDivider-10de74db.js → KdpaDivider-1c62c65a.js} +95 -84
- package/dist/{KdpaDropZone-85943160.js → KdpaDropZone-b21d2304.js} +631 -531
- package/dist/KdpaFormControl-135b070d.js +10 -0
- package/dist/{KdpaFormControlLabel-8a6ff2a6.js → KdpaFormControlLabel-249b7622.js} +57 -54
- package/dist/KdpaFullScreenDialog-e56db731.js +24 -0
- package/dist/KdpaGrid-2a3f9346.js +12 -0
- package/dist/{KdpaGridBadge-d8a8e388.js → KdpaGridBadge-65b88a7a.js} +123 -104
- package/dist/KdpaIconButton-a0ee669c.js +35 -0
- package/dist/KdpaInputMultiline-231a2be1.js +68 -0
- package/dist/{KdpaLazyDrop-347b6e24.js → KdpaLazyDrop-1985fc75.js} +254 -217
- package/dist/KdpaMenuItem-99cde871.js +56 -0
- package/dist/{KdpaSimpleModal-6ab72b9c.js → KdpaModalImage-eb732bf0.js} +176 -185
- package/dist/{KdpaPaginationGrid-6e4cd782.js → KdpaPaginationGrid-97a5b164.js} +343 -283
- package/dist/{KdpaRadioGroup-de6c67d4.js → KdpaRadioGroup-87122ec7.js} +129 -122
- package/dist/{KdpaRtlProvider-d7cc5029.js → KdpaRtlProvider-495e4bb0.js} +169 -162
- package/dist/KdpaSecondaryButton-a70aafe5.js +44 -0
- package/dist/KdpaSkeleton-f8f3aefc.js +580 -0
- package/dist/{KdpaSlider-93a991f0.js → KdpaSlider-b7226e20.js} +196 -182
- package/dist/{KdpaSwitch-2f07cd38.js → KdpaSwitch-b2ba7c23.js} +50 -43
- package/dist/KdpaTabs-ab618f36.js +50 -0
- package/dist/{KdpaTooltip-e30e1eea.js → KdpaTooltip-653424c7.js} +95 -88
- package/dist/{KdpaTree-8428a368.js → KdpaTree-2e1df83d.js} +348 -304
- package/dist/{KdpaTreeSelect-7fe5581c.js → KdpaTreeSelect-0152302e.js} +625 -609
- package/dist/KdpaTypography-763c3238.js +10 -0
- package/dist/KdpaZoom-1b0f3404.js +22 -0
- package/dist/KpdaPrimaryButton-5416aa2c.js +79 -0
- package/dist/LazyDrop/index.js +24 -24
- package/dist/{ListItem-da6701a3.js → ListItem-ddec0b28.js} +14 -16
- package/dist/Loading/KdpaProgress/index.js +12 -13
- package/dist/Loading/index.js +11 -12
- package/dist/{MenuItem-b9a45c1d.js → MenuItem-057c85a3.js} +44 -46
- package/dist/Modal/index.d.ts +0 -2
- package/dist/Modal/index.d.ts.map +1 -1
- package/dist/Modal/index.js +3 -17
- package/dist/{Modal-1e4a342f.js → Modal-daf2a588.js} +18 -20
- package/dist/PaginationGrid/index.js +33 -34
- package/dist/{Paper-ad7ba238.js → Paper-00aea968.js} +16 -18
- package/dist/Pickers/index.d.ts +2 -1
- package/dist/Pickers/index.d.ts.map +1 -1
- package/dist/Pickers/index.js +43 -45
- package/dist/{Popper-20f4d1e9.js → Popper-7adcd815.js} +13 -15
- package/dist/{Portal-1b00a402.js → Portal-de5e310c.js} +6 -7
- package/dist/Radio/index.js +14 -15
- package/dist/Selects/index.js +39 -40
- package/dist/{Slide-d61a6d2b.js → Slide-803fd098.js} +17 -19
- package/dist/Slider/index.js +8 -9
- package/dist/Switch/index.js +12 -13
- package/dist/{SwitchBase-e8b18f94.js → SwitchBase-64e5662e.js} +14 -16
- package/dist/Tabs/index.js +16 -17
- package/dist/{Tabs-1cc5862d.js → Tabs-1140d353.js} +87 -89
- package/dist/{TextField-c2c0172a.js → TextField-57c51dbe.js} +52 -54
- package/dist/ThemeProvider/index.js +7 -8
- package/dist/Tooltips/index.js +16 -18
- package/dist/{TransitionGroup-68fd1866.js → TransitionGroup-f9877c5b.js} +2 -2
- package/dist/Transitions/index.js +22 -24
- package/dist/Tree/index.js +2 -2
- package/dist/TreeSelect/index.js +3 -3
- package/dist/Typography/index.js +8 -9
- package/dist/{Typography-9a28b393.js → Typography-db7e5ea2.js} +42 -44
- package/dist/{Zoom-64a4beac.js → Zoom-36a189bb.js} +22 -24
- package/dist/{createSvgIcon-5cb90f79.js → createSvgIcon-1aa1b2b2.js} +20 -22
- package/dist/{dividerClasses-6f4cb6be.js → dividerClasses-a9b8b1ae.js} +2 -2
- package/dist/{elementAcceptingRef-332a290a.js → elementAcceptingRef-bd96c731.js} +1 -1
- package/dist/{elementTypeAcceptingRef-05dea79e.js → elementTypeAcceptingRef-dea9e62a.js} +1 -1
- package/dist/{emotion-react.browser.esm-921c014a.js → emotion-react.browser.esm-3fa5f721.js} +1 -1
- package/dist/{exactProp-7fadf441.js → exactProp-86f148d5.js} +1 -1
- package/dist/{extendSxProp-eacd850e.js → extendSxProp-d294b946.js} +2 -2
- package/dist/{extends-393586f3.js → extends-135d7828.js} +2 -2
- package/dist/identifier-2647f844.js +3775 -0
- package/dist/{index-456f3e1b.js → index-5f8afc53.js} +5 -5
- package/dist/index.js +140 -142
- package/dist/jsx-dev-runtime-48fdc504.js +615 -0
- package/dist/kdpaSelect-4ed993c7.js +1 -0
- package/dist/{listItemTextClasses-f7759ba4.js → listItemTextClasses-da281500.js} +2 -2
- package/dist/{refType-7c2b090c.js → refType-450337d6.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useSlotProps-db1ead27.js → useSlotProps-3b927bcb.js} +2 -2
- package/dist/{useTheme-2bb6b2df.js → useTheme-6ea322ec.js} +2 -2
- package/dist/{useThemeProps-114e8d66.js → useThemeProps-ea792506.js} +11 -11
- package/dist/{Transition-2ecbc61d.js → utils-acd98a68.js} +113 -98
- package/package.json +90 -87
- package/dist/KdpaChip-f94c5b7e.js +0 -31
- package/dist/KdpaCircularProgress-aed28149.js +0 -44
- package/dist/KdpaCollapse-73e5e40c.js +0 -8
- package/dist/KdpaCollapse-7f12a32a.js +0 -11
- package/dist/KdpaFormControl-ae8f7241.js +0 -6
- package/dist/KdpaFullScreenDialog-f60e21f3.js +0 -16
- package/dist/KdpaGrid-b93fab29.js +0 -8
- package/dist/KdpaIconButton-f5146164.js +0 -23
- package/dist/KdpaInputMultiline-71dfbfe5.js +0 -48
- package/dist/KdpaMenuItem-9a9ece89.js +0 -35
- package/dist/KdpaSecondaryButton-9b81f97d.js +0 -28
- package/dist/KdpaSkeleton-4696fadd.js +0 -541
- package/dist/KdpaTabs-a76a17a7.js +0 -38
- package/dist/KdpaTypography-17403558.js +0 -6
- package/dist/KdpaZoom-96a648cb.js +0 -10
- package/dist/KpdaPrimaryButton-9a5d8d6d.js +0 -47
- package/dist/Sanitizer/index.d.ts +0 -3
- package/dist/Sanitizer/index.d.ts.map +0 -1
- package/dist/Sanitizer/index.js +0 -492
- package/dist/identifier-5cabf5ae.js +0 -2481
- package/dist/index-f4329b29.js +0 -669
- package/dist/jsx-runtime-944c88e2.js +0 -631
- package/dist/utils-8a7b223e.js +0 -18
|
@@ -1,61 +1,60 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import a, { Component as
|
|
3
|
-
|
|
4
|
-
function
|
|
5
|
-
return $ = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
1
|
+
import { j as P } from "./jsx-dev-runtime-48fdc504.js";
|
|
2
|
+
import a, { Component as E } from "react";
|
|
3
|
+
function k(t) {
|
|
4
|
+
return k = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
6
5
|
return typeof e;
|
|
7
6
|
} : function(e) {
|
|
8
7
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
9
|
-
},
|
|
8
|
+
}, k(t);
|
|
10
9
|
}
|
|
11
|
-
function
|
|
10
|
+
function A(t, e) {
|
|
12
11
|
if (!(t instanceof e))
|
|
13
12
|
throw new TypeError("Cannot call a class as a function");
|
|
14
13
|
}
|
|
15
|
-
function
|
|
14
|
+
function B(t, e) {
|
|
16
15
|
for (var o = 0; o < e.length; o++) {
|
|
17
16
|
var n = e[o];
|
|
18
17
|
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n);
|
|
19
18
|
}
|
|
20
19
|
}
|
|
21
|
-
function
|
|
22
|
-
return e &&
|
|
20
|
+
function F(t, e, o) {
|
|
21
|
+
return e && B(t.prototype, e), o && B(t, o), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
23
22
|
}
|
|
24
|
-
function
|
|
23
|
+
function q(t, e) {
|
|
25
24
|
if (typeof e != "function" && e !== null)
|
|
26
25
|
throw new TypeError("Super expression must either be null or a function");
|
|
27
|
-
t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e &&
|
|
26
|
+
t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && z(t, e);
|
|
28
27
|
}
|
|
29
|
-
function
|
|
30
|
-
return
|
|
28
|
+
function z(t, e) {
|
|
29
|
+
return z = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) {
|
|
31
30
|
return n.__proto__ = r, n;
|
|
32
|
-
},
|
|
31
|
+
}, z(t, e);
|
|
33
32
|
}
|
|
34
|
-
function
|
|
35
|
-
var e =
|
|
33
|
+
function X(t) {
|
|
34
|
+
var e = J();
|
|
36
35
|
return function() {
|
|
37
|
-
var n =
|
|
36
|
+
var n = b(t), r;
|
|
38
37
|
if (e) {
|
|
39
|
-
var i =
|
|
38
|
+
var i = b(this).constructor;
|
|
40
39
|
r = Reflect.construct(n, arguments, i);
|
|
41
40
|
} else
|
|
42
41
|
r = n.apply(this, arguments);
|
|
43
|
-
return
|
|
42
|
+
return Y(this, r);
|
|
44
43
|
};
|
|
45
44
|
}
|
|
46
|
-
function
|
|
47
|
-
if (e && (
|
|
45
|
+
function Y(t, e) {
|
|
46
|
+
if (e && (k(e) === "object" || typeof e == "function"))
|
|
48
47
|
return e;
|
|
49
48
|
if (e !== void 0)
|
|
50
49
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
51
|
-
return
|
|
50
|
+
return G(t);
|
|
52
51
|
}
|
|
53
|
-
function
|
|
52
|
+
function G(t) {
|
|
54
53
|
if (t === void 0)
|
|
55
54
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
56
55
|
return t;
|
|
57
56
|
}
|
|
58
|
-
function
|
|
57
|
+
function J() {
|
|
59
58
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
60
59
|
return !1;
|
|
61
60
|
if (typeof Proxy == "function")
|
|
@@ -67,27 +66,27 @@ function Q() {
|
|
|
67
66
|
return !1;
|
|
68
67
|
}
|
|
69
68
|
}
|
|
70
|
-
function
|
|
71
|
-
return
|
|
69
|
+
function b(t) {
|
|
70
|
+
return b = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(o) {
|
|
72
71
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
73
|
-
},
|
|
72
|
+
}, b(t);
|
|
74
73
|
}
|
|
75
|
-
function
|
|
74
|
+
function Q(t, e) {
|
|
76
75
|
if (!document.head.querySelector("#" + t)) {
|
|
77
76
|
var o = document.createElement("style");
|
|
78
77
|
o.textContent = e, o.type = "text/css", o.id = t, document.head.appendChild(o);
|
|
79
78
|
}
|
|
80
79
|
}
|
|
81
|
-
var
|
|
82
|
-
|
|
83
|
-
var e =
|
|
80
|
+
var ee = /* @__PURE__ */ function(t) {
|
|
81
|
+
q(o, t);
|
|
82
|
+
var e = X(o);
|
|
84
83
|
function o() {
|
|
85
|
-
return
|
|
84
|
+
return A(this, o), e.apply(this, arguments);
|
|
86
85
|
}
|
|
87
|
-
return
|
|
86
|
+
return F(o, [{
|
|
88
87
|
key: "componentDidMount",
|
|
89
88
|
value: function() {
|
|
90
|
-
|
|
89
|
+
Q(this.props.name, this.props.css);
|
|
91
90
|
}
|
|
92
91
|
}, {
|
|
93
92
|
key: "componentWillUnmount",
|
|
@@ -101,7 +100,7 @@ var te = /* @__PURE__ */ function(t) {
|
|
|
101
100
|
return null;
|
|
102
101
|
}
|
|
103
102
|
}]), o;
|
|
104
|
-
}(
|
|
103
|
+
}(E), te = function(e) {
|
|
105
104
|
var o = e.imageBackgroundColor;
|
|
106
105
|
return `
|
|
107
106
|
body {
|
|
@@ -182,7 +181,7 @@ var te = /* @__PURE__ */ function(t) {
|
|
|
182
181
|
overflow: hidden;
|
|
183
182
|
}
|
|
184
183
|
`);
|
|
185
|
-
},
|
|
184
|
+
}, ne = function() {
|
|
186
185
|
return /* @__PURE__ */ a.createElement("svg", {
|
|
187
186
|
fill: "#ffffff",
|
|
188
187
|
height: "24",
|
|
@@ -195,7 +194,7 @@ var te = /* @__PURE__ */ function(t) {
|
|
|
195
194
|
}), /* @__PURE__ */ a.createElement("path", {
|
|
196
195
|
d: "M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"
|
|
197
196
|
}));
|
|
198
|
-
},
|
|
197
|
+
}, oe = function() {
|
|
199
198
|
return /* @__PURE__ */ a.createElement("svg", {
|
|
200
199
|
fill: "#ffffff",
|
|
201
200
|
height: "24",
|
|
@@ -208,7 +207,7 @@ var te = /* @__PURE__ */ function(t) {
|
|
|
208
207
|
}), /* @__PURE__ */ a.createElement("path", {
|
|
209
208
|
d: "M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"
|
|
210
209
|
}));
|
|
211
|
-
},
|
|
210
|
+
}, re = function() {
|
|
212
211
|
return /* @__PURE__ */ a.createElement("svg", {
|
|
213
212
|
fill: "#ffffff",
|
|
214
213
|
height: "24",
|
|
@@ -221,7 +220,7 @@ var te = /* @__PURE__ */ function(t) {
|
|
|
221
220
|
d: "M0 0h24v24H0z",
|
|
222
221
|
fill: "none"
|
|
223
222
|
}));
|
|
224
|
-
},
|
|
223
|
+
}, ae = function() {
|
|
225
224
|
return /* @__PURE__ */ a.createElement("svg", {
|
|
226
225
|
fill: "#ffffff",
|
|
227
226
|
height: "24",
|
|
@@ -234,7 +233,7 @@ var te = /* @__PURE__ */ function(t) {
|
|
|
234
233
|
d: "M0 0h24v24H0z",
|
|
235
234
|
fill: "none"
|
|
236
235
|
}));
|
|
237
|
-
},
|
|
236
|
+
}, ie = function() {
|
|
238
237
|
return /* @__PURE__ */ a.createElement("svg", {
|
|
239
238
|
fill: "#ffffff",
|
|
240
239
|
height: "48",
|
|
@@ -247,7 +246,7 @@ var te = /* @__PURE__ */ function(t) {
|
|
|
247
246
|
d: "M0 0h24v24H0V0z",
|
|
248
247
|
fill: "none"
|
|
249
248
|
}));
|
|
250
|
-
},
|
|
249
|
+
}, le = function() {
|
|
251
250
|
return /* @__PURE__ */ a.createElement("svg", {
|
|
252
251
|
fill: "#ffffff",
|
|
253
252
|
width: "24",
|
|
@@ -261,12 +260,12 @@ var te = /* @__PURE__ */ function(t) {
|
|
|
261
260
|
d: "M7.47 21.49C4.2 19.93 1.86 16.76 1.5 13H0c.51 6.16 5.66 11 11.95 11 .23 0 .44-.02.66-.03L8.8 20.15l-1.33 1.34zM12.05 0c-.23 0-.44.02-.66.04l3.81 3.81 1.33-1.33C19.8 4.07 22.14 7.24 22.5 11H24c-.51-6.16-5.66-11-11.95-11zM16 14h2V8c0-1.11-.9-2-2-2h-6v2h6v6zm-8 2V4H6v2H4v2h2v8c0 1.1.89 2 2 2h8v2h2v-2h2v-2H8z"
|
|
262
261
|
}));
|
|
263
262
|
};
|
|
264
|
-
function
|
|
263
|
+
function ce(t) {
|
|
265
264
|
return document.location.hostname !== new URL(t, document.location).hostname;
|
|
266
265
|
}
|
|
267
|
-
var
|
|
266
|
+
var ue = function(e) {
|
|
268
267
|
return function(o) {
|
|
269
|
-
|
|
268
|
+
ce(e) && (o.preventDefault(), fetch(e).then(function(n) {
|
|
270
269
|
return n.ok || console.error("Failed to download image, HTTP status " + n.status + " from " + e), n.blob().then(function(r) {
|
|
271
270
|
var i = document.createElement("a");
|
|
272
271
|
i.setAttribute("download", e.split("/").pop()), i.href = URL.createObjectURL(r), i.click();
|
|
@@ -275,7 +274,7 @@ var fe = function(e) {
|
|
|
275
274
|
console.error(n), console.error("Failed to download image from " + e);
|
|
276
275
|
}));
|
|
277
276
|
};
|
|
278
|
-
},
|
|
277
|
+
}, fe = function(e) {
|
|
279
278
|
var o = e.image, n = e.alt, r = e.zoomed, i = e.toggleZoom, c = e.toggleRotate, l = e.onClose, u = e.enableDownload, f = e.enableZoom, m = e.enableRotate;
|
|
280
279
|
return /* @__PURE__ */ a.createElement("div", {
|
|
281
280
|
className: "__react_modal_image__header"
|
|
@@ -284,67 +283,67 @@ var fe = function(e) {
|
|
|
284
283
|
}, u && /* @__PURE__ */ a.createElement("a", {
|
|
285
284
|
href: o,
|
|
286
285
|
download: !0,
|
|
287
|
-
onClick:
|
|
288
|
-
}, /* @__PURE__ */ a.createElement(
|
|
286
|
+
onClick: ue(o)
|
|
287
|
+
}, /* @__PURE__ */ a.createElement(re, null)), f && /* @__PURE__ */ a.createElement("a", {
|
|
289
288
|
onClick: i
|
|
290
|
-
}, r ? /* @__PURE__ */ a.createElement(
|
|
289
|
+
}, r ? /* @__PURE__ */ a.createElement(oe, null) : /* @__PURE__ */ a.createElement(ne, null)), m && /* @__PURE__ */ a.createElement("a", {
|
|
291
290
|
onClick: c
|
|
292
|
-
}, /* @__PURE__ */ a.createElement(
|
|
291
|
+
}, /* @__PURE__ */ a.createElement(le, null)), /* @__PURE__ */ a.createElement("a", {
|
|
293
292
|
onClick: l
|
|
294
|
-
}, /* @__PURE__ */ a.createElement(
|
|
293
|
+
}, /* @__PURE__ */ a.createElement(ae, null))), n && /* @__PURE__ */ a.createElement("span", {
|
|
295
294
|
className: "__react_modal_image__caption"
|
|
296
295
|
}, n));
|
|
297
296
|
};
|
|
298
|
-
function
|
|
299
|
-
return
|
|
297
|
+
function $(t) {
|
|
298
|
+
return $ = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
300
299
|
return typeof e;
|
|
301
300
|
} : function(e) {
|
|
302
301
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
303
|
-
},
|
|
302
|
+
}, $(t);
|
|
304
303
|
}
|
|
305
|
-
function
|
|
304
|
+
function se(t, e) {
|
|
306
305
|
if (!(t instanceof e))
|
|
307
306
|
throw new TypeError("Cannot call a class as a function");
|
|
308
307
|
}
|
|
309
|
-
function
|
|
308
|
+
function Z(t, e) {
|
|
310
309
|
for (var o = 0; o < e.length; o++) {
|
|
311
310
|
var n = e[o];
|
|
312
311
|
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n);
|
|
313
312
|
}
|
|
314
313
|
}
|
|
315
|
-
function
|
|
316
|
-
return e &&
|
|
314
|
+
function me(t, e, o) {
|
|
315
|
+
return e && Z(t.prototype, e), o && Z(t, o), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
317
316
|
}
|
|
318
|
-
function
|
|
317
|
+
function de(t, e) {
|
|
319
318
|
if (typeof e != "function" && e !== null)
|
|
320
319
|
throw new TypeError("Super expression must either be null or a function");
|
|
321
|
-
t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e &&
|
|
320
|
+
t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && I(t, e);
|
|
322
321
|
}
|
|
323
|
-
function
|
|
324
|
-
return
|
|
322
|
+
function I(t, e) {
|
|
323
|
+
return I = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) {
|
|
325
324
|
return n.__proto__ = r, n;
|
|
326
|
-
},
|
|
325
|
+
}, I(t, e);
|
|
327
326
|
}
|
|
328
|
-
function
|
|
327
|
+
function he(t) {
|
|
329
328
|
var e = ge();
|
|
330
329
|
return function() {
|
|
331
|
-
var n =
|
|
330
|
+
var n = w(t), r;
|
|
332
331
|
if (e) {
|
|
333
|
-
var i =
|
|
332
|
+
var i = w(this).constructor;
|
|
334
333
|
r = Reflect.construct(n, arguments, i);
|
|
335
334
|
} else
|
|
336
335
|
r = n.apply(this, arguments);
|
|
337
|
-
return
|
|
336
|
+
return pe(this, r);
|
|
338
337
|
};
|
|
339
338
|
}
|
|
340
|
-
function
|
|
341
|
-
if (e && (
|
|
339
|
+
function pe(t, e) {
|
|
340
|
+
if (e && ($(e) === "object" || typeof e == "function"))
|
|
342
341
|
return e;
|
|
343
342
|
if (e !== void 0)
|
|
344
343
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
345
|
-
return
|
|
344
|
+
return v(t);
|
|
346
345
|
}
|
|
347
|
-
function
|
|
346
|
+
function v(t) {
|
|
348
347
|
if (t === void 0)
|
|
349
348
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
350
349
|
return t;
|
|
@@ -361,37 +360,37 @@ function ge() {
|
|
|
361
360
|
return !1;
|
|
362
361
|
}
|
|
363
362
|
}
|
|
364
|
-
function
|
|
365
|
-
return
|
|
363
|
+
function w(t) {
|
|
364
|
+
return w = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(o) {
|
|
366
365
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
367
|
-
},
|
|
366
|
+
}, w(t);
|
|
368
367
|
}
|
|
369
|
-
function
|
|
368
|
+
function D(t, e, o) {
|
|
370
369
|
return e in t ? Object.defineProperty(t, e, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = o, t;
|
|
371
370
|
}
|
|
372
|
-
var
|
|
373
|
-
|
|
374
|
-
var e =
|
|
371
|
+
var V = /* @__PURE__ */ function(t) {
|
|
372
|
+
de(o, t);
|
|
373
|
+
var e = he(o);
|
|
375
374
|
function o() {
|
|
376
375
|
var n;
|
|
377
|
-
|
|
376
|
+
se(this, o);
|
|
378
377
|
for (var r = arguments.length, i = new Array(r), c = 0; c < r; c++)
|
|
379
378
|
i[c] = arguments[c];
|
|
380
|
-
return n = e.call.apply(e, [this].concat(i)),
|
|
379
|
+
return n = e.call.apply(e, [this].concat(i)), D(v(n), "state", {
|
|
381
380
|
loading: !0
|
|
382
|
-
}),
|
|
381
|
+
}), D(v(n), "handleOnLoad", function() {
|
|
383
382
|
n.setState({
|
|
384
383
|
loading: !1
|
|
385
384
|
});
|
|
386
|
-
}),
|
|
385
|
+
}), D(v(n), "handleOnContextMenu", function(l) {
|
|
387
386
|
!n.props.contextMenu && l.preventDefault();
|
|
388
387
|
}), n;
|
|
389
388
|
}
|
|
390
|
-
return
|
|
389
|
+
return me(o, [{
|
|
391
390
|
key: "render",
|
|
392
391
|
value: function() {
|
|
393
392
|
var r = this.props, i = r.id, c = r.className, l = r.src, u = r.style, f = r.handleDoubleClick;
|
|
394
|
-
return /* @__PURE__ */ a.createElement("div", null, this.state.loading && /* @__PURE__ */ a.createElement(
|
|
393
|
+
return /* @__PURE__ */ a.createElement("div", null, this.state.loading && /* @__PURE__ */ a.createElement(ie, null), /* @__PURE__ */ a.createElement("img", {
|
|
395
394
|
id: i,
|
|
396
395
|
className: c,
|
|
397
396
|
src: l,
|
|
@@ -402,51 +401,51 @@ var L = /* @__PURE__ */ function(t) {
|
|
|
402
401
|
}));
|
|
403
402
|
}
|
|
404
403
|
}]), o;
|
|
405
|
-
}(
|
|
406
|
-
function
|
|
407
|
-
return
|
|
404
|
+
}(E);
|
|
405
|
+
function T(t) {
|
|
406
|
+
return T = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
408
407
|
return typeof e;
|
|
409
408
|
} : function(e) {
|
|
410
409
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
411
|
-
},
|
|
410
|
+
}, T(t);
|
|
412
411
|
}
|
|
413
|
-
function
|
|
412
|
+
function ye(t, e) {
|
|
414
413
|
if (!(t instanceof e))
|
|
415
414
|
throw new TypeError("Cannot call a class as a function");
|
|
416
415
|
}
|
|
417
|
-
function
|
|
416
|
+
function L(t, e) {
|
|
418
417
|
for (var o = 0; o < e.length; o++) {
|
|
419
418
|
var n = e[o];
|
|
420
419
|
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n);
|
|
421
420
|
}
|
|
422
421
|
}
|
|
423
|
-
function
|
|
424
|
-
return e &&
|
|
422
|
+
function _e(t, e, o) {
|
|
423
|
+
return e && L(t.prototype, e), o && L(t, o), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
425
424
|
}
|
|
426
|
-
function
|
|
425
|
+
function ve(t, e) {
|
|
427
426
|
if (typeof e != "function" && e !== null)
|
|
428
427
|
throw new TypeError("Super expression must either be null or a function");
|
|
429
|
-
t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e &&
|
|
428
|
+
t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && j(t, e);
|
|
430
429
|
}
|
|
431
|
-
function
|
|
432
|
-
return
|
|
430
|
+
function j(t, e) {
|
|
431
|
+
return j = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) {
|
|
433
432
|
return n.__proto__ = r, n;
|
|
434
|
-
},
|
|
433
|
+
}, j(t, e);
|
|
435
434
|
}
|
|
436
|
-
function
|
|
437
|
-
var e =
|
|
435
|
+
function be(t) {
|
|
436
|
+
var e = Oe();
|
|
438
437
|
return function() {
|
|
439
|
-
var n =
|
|
438
|
+
var n = O(t), r;
|
|
440
439
|
if (e) {
|
|
441
|
-
var i =
|
|
440
|
+
var i = O(this).constructor;
|
|
442
441
|
r = Reflect.construct(n, arguments, i);
|
|
443
442
|
} else
|
|
444
443
|
r = n.apply(this, arguments);
|
|
445
|
-
return
|
|
444
|
+
return we(this, r);
|
|
446
445
|
};
|
|
447
446
|
}
|
|
448
|
-
function
|
|
449
|
-
if (e && (
|
|
447
|
+
function we(t, e) {
|
|
448
|
+
if (e && (T(e) === "object" || typeof e == "function"))
|
|
450
449
|
return e;
|
|
451
450
|
if (e !== void 0)
|
|
452
451
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
@@ -457,7 +456,7 @@ function s(t) {
|
|
|
457
456
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
458
457
|
return t;
|
|
459
458
|
}
|
|
460
|
-
function
|
|
459
|
+
function Oe() {
|
|
461
460
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
462
461
|
return !1;
|
|
463
462
|
if (typeof Proxy == "function")
|
|
@@ -469,20 +468,20 @@ function xe() {
|
|
|
469
468
|
return !1;
|
|
470
469
|
}
|
|
471
470
|
}
|
|
472
|
-
function
|
|
473
|
-
return
|
|
471
|
+
function O(t) {
|
|
472
|
+
return O = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(o) {
|
|
474
473
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
475
|
-
},
|
|
474
|
+
}, O(t);
|
|
476
475
|
}
|
|
477
476
|
function d(t, e, o) {
|
|
478
477
|
return e in t ? Object.defineProperty(t, e, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = o, t;
|
|
479
478
|
}
|
|
480
|
-
var
|
|
481
|
-
|
|
482
|
-
var e =
|
|
479
|
+
var xe = /* @__PURE__ */ function(t) {
|
|
480
|
+
ve(o, t);
|
|
481
|
+
var e = be(o);
|
|
483
482
|
function o() {
|
|
484
483
|
var n;
|
|
485
|
-
|
|
484
|
+
ye(this, o);
|
|
486
485
|
for (var r = arguments.length, i = new Array(r), c = 0; c < r; c++)
|
|
487
486
|
i[c] = arguments[c];
|
|
488
487
|
return n = e.call.apply(e, [this].concat(i)), d(s(n), "state", {
|
|
@@ -559,7 +558,7 @@ var Ee = /* @__PURE__ */ function(t) {
|
|
|
559
558
|
});
|
|
560
559
|
}), n;
|
|
561
560
|
}
|
|
562
|
-
return
|
|
561
|
+
return _e(o, [{
|
|
563
562
|
key: "componentDidMount",
|
|
564
563
|
value: function() {
|
|
565
564
|
document.addEventListener("keydown", this.handleKeyDown, !1);
|
|
@@ -572,11 +571,11 @@ var Ee = /* @__PURE__ */ function(t) {
|
|
|
572
571
|
}, {
|
|
573
572
|
key: "render",
|
|
574
573
|
value: function() {
|
|
575
|
-
var r = this, i = this.props, c = i.medium, l = i.large, u = i.alt, f = i.onClose, m = i.hideDownload, g = i.hideZoom,
|
|
576
|
-
return /* @__PURE__ */ a.createElement("div", null, /* @__PURE__ */ a.createElement(
|
|
574
|
+
var r = this, i = this.props, c = i.medium, l = i.large, u = i.alt, f = i.onClose, m = i.hideDownload, g = i.hideZoom, S = i.showRotate, _ = i.imageBackgroundColor, M = _ === void 0 ? "black" : _, y = this.state, h = y.move, R = y.zoomed, p = y.rotationDeg;
|
|
575
|
+
return /* @__PURE__ */ a.createElement("div", null, /* @__PURE__ */ a.createElement(ee, {
|
|
577
576
|
name: "__react_modal_image__lightbox",
|
|
578
|
-
css:
|
|
579
|
-
imageBackgroundColor:
|
|
577
|
+
css: te({
|
|
578
|
+
imageBackgroundColor: M
|
|
580
579
|
})
|
|
581
580
|
}), /* @__PURE__ */ a.createElement("div", {
|
|
582
581
|
className: "__react_modal_image__modal_container"
|
|
@@ -588,99 +587,99 @@ var Ee = /* @__PURE__ */ function(t) {
|
|
|
588
587
|
onTouchStart: this.handleMouseDownOrTouchStart,
|
|
589
588
|
onTouchEnd: this.handleMouseUpOrTouchEnd,
|
|
590
589
|
onTouchMove: this.handleMouseMoveOrTouchMove,
|
|
591
|
-
ref: function(
|
|
592
|
-
r.contentEl =
|
|
590
|
+
ref: function(W) {
|
|
591
|
+
r.contentEl = W;
|
|
593
592
|
}
|
|
594
|
-
},
|
|
593
|
+
}, R && /* @__PURE__ */ a.createElement(V, {
|
|
595
594
|
id: "react-modal-image-img",
|
|
596
595
|
className: "__react_modal_image__large_img",
|
|
597
596
|
src: l || c,
|
|
598
597
|
style: {
|
|
599
|
-
transform: "translate3d(-50%, -50%, 0) translate3d(".concat(
|
|
600
|
-
WebkitTransform: "translate3d(-50%, -50%, 0) translate3d(".concat(
|
|
601
|
-
MsTransform: "translate3d(-50%, -50%, 0) translate3d(".concat(
|
|
598
|
+
transform: "translate3d(-50%, -50%, 0) translate3d(".concat(h.x, "px, ").concat(h.y, "px, 0) rotate(").concat(p, "deg)"),
|
|
599
|
+
WebkitTransform: "translate3d(-50%, -50%, 0) translate3d(".concat(h.x, "px, ").concat(h.y, "px, 0) rotate(").concat(p, "deg)"),
|
|
600
|
+
MsTransform: "translate3d(-50%, -50%, 0) translate3d(".concat(h.x, "px, ").concat(h.y, "px, 0) rotate(").concat(p, "deg)")
|
|
602
601
|
},
|
|
603
602
|
handleDoubleClick: this.toggleZoom
|
|
604
|
-
}), !
|
|
603
|
+
}), !R && /* @__PURE__ */ a.createElement(V, {
|
|
605
604
|
id: "react-modal-image-img",
|
|
606
605
|
className: "__react_modal_image__medium_img",
|
|
607
606
|
src: c || l,
|
|
608
607
|
handleDoubleClick: this.toggleZoom,
|
|
609
608
|
contextMenu: !c,
|
|
610
609
|
style: {
|
|
611
|
-
transform: "translate3d(-50%, -50%, 0) rotate(".concat(
|
|
612
|
-
WebkitTransform: "translate3d(-50%, -50%, 0) rotate(".concat(
|
|
613
|
-
MsTransform: "translate3d(-50%, -50%, 0) rotate(".concat(
|
|
610
|
+
transform: "translate3d(-50%, -50%, 0) rotate(".concat(p, "deg)"),
|
|
611
|
+
WebkitTransform: "translate3d(-50%, -50%, 0) rotate(".concat(p, "deg)"),
|
|
612
|
+
MsTransform: "translate3d(-50%, -50%, 0) rotate(".concat(p, "deg)")
|
|
614
613
|
}
|
|
615
|
-
})), /* @__PURE__ */ a.createElement(
|
|
614
|
+
})), /* @__PURE__ */ a.createElement(fe, {
|
|
616
615
|
image: l || c,
|
|
617
616
|
alt: u,
|
|
618
|
-
zoomed:
|
|
617
|
+
zoomed: R,
|
|
619
618
|
toggleZoom: this.toggleZoom,
|
|
620
619
|
toggleRotate: this.toggleRotate,
|
|
621
620
|
onClose: f,
|
|
622
621
|
enableDownload: !m,
|
|
623
622
|
enableZoom: !g,
|
|
624
|
-
enableRotate: !!
|
|
623
|
+
enableRotate: !!S
|
|
625
624
|
})));
|
|
626
625
|
}
|
|
627
626
|
}]), o;
|
|
628
|
-
}(
|
|
629
|
-
function
|
|
630
|
-
return
|
|
627
|
+
}(E);
|
|
628
|
+
function H(t) {
|
|
629
|
+
return H = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
631
630
|
return typeof e;
|
|
632
631
|
} : function(e) {
|
|
633
632
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
634
|
-
},
|
|
633
|
+
}, H(t);
|
|
635
634
|
}
|
|
636
|
-
function
|
|
635
|
+
function Ee(t, e) {
|
|
637
636
|
if (!(t instanceof e))
|
|
638
637
|
throw new TypeError("Cannot call a class as a function");
|
|
639
638
|
}
|
|
640
|
-
function
|
|
639
|
+
function U(t, e) {
|
|
641
640
|
for (var o = 0; o < e.length; o++) {
|
|
642
641
|
var n = e[o];
|
|
643
642
|
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n);
|
|
644
643
|
}
|
|
645
644
|
}
|
|
646
|
-
function
|
|
647
|
-
return e &&
|
|
645
|
+
function Se(t, e, o) {
|
|
646
|
+
return e && U(t.prototype, e), o && U(t, o), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
648
647
|
}
|
|
649
648
|
function Me(t, e) {
|
|
650
649
|
if (typeof e != "function" && e !== null)
|
|
651
650
|
throw new TypeError("Super expression must either be null or a function");
|
|
652
|
-
t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e &&
|
|
651
|
+
t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && N(t, e);
|
|
653
652
|
}
|
|
654
|
-
function
|
|
655
|
-
return
|
|
653
|
+
function N(t, e) {
|
|
654
|
+
return N = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) {
|
|
656
655
|
return n.__proto__ = r, n;
|
|
657
|
-
},
|
|
656
|
+
}, N(t, e);
|
|
658
657
|
}
|
|
659
|
-
function
|
|
660
|
-
var e =
|
|
658
|
+
function Re(t) {
|
|
659
|
+
var e = De();
|
|
661
660
|
return function() {
|
|
662
|
-
var n =
|
|
661
|
+
var n = x(t), r;
|
|
663
662
|
if (e) {
|
|
664
|
-
var i =
|
|
663
|
+
var i = x(this).constructor;
|
|
665
664
|
r = Reflect.construct(n, arguments, i);
|
|
666
665
|
} else
|
|
667
666
|
r = n.apply(this, arguments);
|
|
668
|
-
return
|
|
667
|
+
return Pe(this, r);
|
|
669
668
|
};
|
|
670
669
|
}
|
|
671
|
-
function
|
|
672
|
-
if (e && (
|
|
670
|
+
function Pe(t, e) {
|
|
671
|
+
if (e && (H(e) === "object" || typeof e == "function"))
|
|
673
672
|
return e;
|
|
674
673
|
if (e !== void 0)
|
|
675
674
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
676
|
-
return
|
|
675
|
+
return C(t);
|
|
677
676
|
}
|
|
678
|
-
function
|
|
677
|
+
function C(t) {
|
|
679
678
|
if (t === void 0)
|
|
680
679
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
681
680
|
return t;
|
|
682
681
|
}
|
|
683
|
-
function
|
|
682
|
+
function De() {
|
|
684
683
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
685
684
|
return !1;
|
|
686
685
|
if (typeof Proxy == "function")
|
|
@@ -692,25 +691,25 @@ function ze() {
|
|
|
692
691
|
return !1;
|
|
693
692
|
}
|
|
694
693
|
}
|
|
695
|
-
function
|
|
696
|
-
return
|
|
694
|
+
function x(t) {
|
|
695
|
+
return x = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(o) {
|
|
697
696
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
698
|
-
},
|
|
697
|
+
}, x(t);
|
|
699
698
|
}
|
|
700
699
|
function K(t, e, o) {
|
|
701
700
|
return e in t ? Object.defineProperty(t, e, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = o, t;
|
|
702
701
|
}
|
|
703
|
-
var
|
|
702
|
+
var ke = /* @__PURE__ */ function(t) {
|
|
704
703
|
Me(o, t);
|
|
705
|
-
var e =
|
|
704
|
+
var e = Re(o);
|
|
706
705
|
function o() {
|
|
707
706
|
var n;
|
|
708
|
-
|
|
707
|
+
Ee(this, o);
|
|
709
708
|
for (var r = arguments.length, i = new Array(r), c = 0; c < r; c++)
|
|
710
709
|
i[c] = arguments[c];
|
|
711
|
-
return n = e.call.apply(e, [this].concat(i)), K(
|
|
710
|
+
return n = e.call.apply(e, [this].concat(i)), K(C(n), "state", {
|
|
712
711
|
modalOpen: !1
|
|
713
|
-
}), K(
|
|
712
|
+
}), K(C(n), "toggleModal", function() {
|
|
714
713
|
n.setState(function(l) {
|
|
715
714
|
return {
|
|
716
715
|
modalOpen: !l.modalOpen
|
|
@@ -718,10 +717,10 @@ var $e = /* @__PURE__ */ function(t) {
|
|
|
718
717
|
});
|
|
719
718
|
}), n;
|
|
720
719
|
}
|
|
721
|
-
return
|
|
720
|
+
return Se(o, [{
|
|
722
721
|
key: "render",
|
|
723
722
|
value: function() {
|
|
724
|
-
var r = this.props, i = r.className, c = r.small, l = r.smallSrcSet, u = r.medium, f = r.large, m = r.alt, g = r.hideDownload,
|
|
723
|
+
var r = this.props, i = r.className, c = r.small, l = r.smallSrcSet, u = r.medium, f = r.large, m = r.alt, g = r.hideDownload, S = r.hideZoom, _ = r.showRotate, M = r.imageBackgroundColor, y = this.state.modalOpen;
|
|
725
724
|
return /* @__PURE__ */ a.createElement("div", null, /* @__PURE__ */ a.createElement("img", {
|
|
726
725
|
className: i,
|
|
727
726
|
style: {
|
|
@@ -733,36 +732,28 @@ var $e = /* @__PURE__ */ function(t) {
|
|
|
733
732
|
src: c,
|
|
734
733
|
srcSet: l,
|
|
735
734
|
alt: m
|
|
736
|
-
}),
|
|
735
|
+
}), y && /* @__PURE__ */ a.createElement(xe, {
|
|
737
736
|
medium: u,
|
|
738
737
|
large: f,
|
|
739
738
|
alt: m,
|
|
740
739
|
onClose: this.toggleModal,
|
|
741
740
|
hideDownload: g,
|
|
742
|
-
hideZoom:
|
|
743
|
-
showRotate:
|
|
744
|
-
imageBackgroundColor:
|
|
741
|
+
hideZoom: S,
|
|
742
|
+
showRotate: _,
|
|
743
|
+
imageBackgroundColor: M
|
|
745
744
|
}));
|
|
746
745
|
}
|
|
747
746
|
}]), o;
|
|
748
|
-
}(
|
|
749
|
-
const
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
} = t;
|
|
759
|
-
return /* @__PURE__ */ h.jsxs(b.Modal, { isOpen: o, toggle: n, className: c, ...l, children: [
|
|
760
|
-
/* @__PURE__ */ h.jsx(b.ModalHeader, { toggle: n, children: r }),
|
|
761
|
-
/* @__PURE__ */ h.jsx(b.ModalBody, { children: e }),
|
|
762
|
-
i && /* @__PURE__ */ h.jsx(b.ModalFooter, { children: i })
|
|
763
|
-
] });
|
|
764
|
-
});
|
|
747
|
+
}(E);
|
|
748
|
+
const Te = (t) => /* @__PURE__ */ P.jsxDEV(P.Fragment, { children: /* @__PURE__ */ P.jsxDEV(ke, { ...t }, void 0, !1, {
|
|
749
|
+
fileName: "D:/a.dakhili/kdpa/packages/components/src/components/Modal/KdpaModalImage/KdpaModalImage.tsx",
|
|
750
|
+
lineNumber: 7,
|
|
751
|
+
columnNumber: 7
|
|
752
|
+
}, globalThis) }, void 0, !1, {
|
|
753
|
+
fileName: "D:/a.dakhili/kdpa/packages/components/src/components/Modal/KdpaModalImage/KdpaModalImage.tsx",
|
|
754
|
+
lineNumber: 6,
|
|
755
|
+
columnNumber: 5
|
|
756
|
+
}, globalThis);
|
|
765
757
|
export {
|
|
766
|
-
|
|
767
|
-
Ce as a
|
|
758
|
+
Te as K
|
|
768
759
|
};
|