kdpa-components 1.1.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 +2 -2
- package/dist/Accordion/index.js +14 -14
- package/dist/Alert/index.js +17 -17
- package/dist/{ArrowDropDown-ea2f6035.js → ArrowDropDown-07b9ccae.js} +19 -20
- package/dist/Avatar/index.js +6 -6
- package/dist/Badge/index.js +19 -19
- package/dist/{Box-06b8bc37.js → Box-032e9a1d.js} +23 -24
- package/dist/{Button-28699d65.js → Button-9d9cc0bd.js} +11 -12
- package/dist/{ButtonBase-e4d95755.js → ButtonBase-fa4630c8.js} +9 -10
- package/dist/Buttons/index.js +24 -24
- package/dist/{CSSTransition-2d7d1f1e.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 +12 -12
- package/dist/Chip/index.js +16 -16
- package/dist/{Chip-95532a41.js → Chip-e5751770.js} +7 -8
- package/dist/{CircularProgress-6e67e3d8.js → CircularProgress-01a8929e.js} +15 -16
- package/dist/{Close-70f0ad0d.js → Close-db7afda5.js} +2 -2
- package/dist/Collapse/index.js +9 -9
- package/dist/{Collapse-c7000672.js → Collapse-547e6c7a.js} +35 -36
- package/dist/CopyToClipboard/index.js +23 -23
- package/dist/{Dialog-185ee62e.js → Dialog-652a3ad4.js} +15 -16
- package/dist/Divider/index.js +6 -6
- package/dist/DropZone/index.js +33 -33
- package/dist/{Fade-e6cc07e5.js → Fade-7ee2c0a4.js} +11 -12
- package/dist/FormControl/index.js +10 -10
- package/dist/{FormControl-3d1d38fe.js → FormControl-ca7447ab.js} +5 -6
- package/dist/FullScreenDialog/index.js +16 -16
- package/dist/Grid/index.js +8 -8
- package/dist/{Grid-b29d871f.js → Grid-9708b9ca.js} +59 -60
- package/dist/{Grow-bcd47732.js → Grow-55d0786d.js} +16 -17
- package/dist/{IconButton-eace4b91.js → IconButton-48d87778.js} +12 -13
- package/dist/Input/index.js +22 -22
- package/dist/{KdpaAccordions-39a4ed6e.js → KdpaAccordions-2ae65dd1.js} +125 -113
- package/dist/{KdpaAlertTitle-85b3b759.js → KdpaAlertTitle-f1549035.js} +103 -91
- package/dist/{KdpaAutoComplete-e2ccab34.js → KdpaAutoComplete-8a11974a.js} +225 -221
- package/dist/{KdpaAvatar-798f595f.js → KdpaAvatar-d297ef8a.js} +75 -71
- package/dist/{KdpaCheckBox-ca4f09b9.js → KdpaCheckBox-84d56486.js} +31 -27
- 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-2168fb05.js → KdpaCopyToClipboard-53aa97d3.js} +196 -160
- package/dist/{KdpaDateTimePicker-f6810c38.js → KdpaDateTimePicker-cb4a16d0.js} +10531 -13197
- package/dist/{KdpaDivider-8da2e22f.js → KdpaDivider-1c62c65a.js} +93 -81
- package/dist/{KdpaDropZone-3abdf72d.js → KdpaDropZone-b21d2304.js} +631 -531
- package/dist/KdpaFormControl-135b070d.js +10 -0
- package/dist/{KdpaFormControlLabel-e993132d.js → KdpaFormControlLabel-249b7622.js} +53 -49
- package/dist/KdpaFullScreenDialog-e56db731.js +24 -0
- package/dist/KdpaGrid-2a3f9346.js +12 -0
- package/dist/{KdpaGridBadge-544999b0.js → KdpaGridBadge-65b88a7a.js} +121 -101
- package/dist/KdpaIconButton-a0ee669c.js +35 -0
- package/dist/KdpaInputMultiline-231a2be1.js +68 -0
- package/dist/{KdpaLazyDrop-3f3eb039.js → KdpaLazyDrop-1985fc75.js} +253 -217
- package/dist/KdpaMenuItem-99cde871.js +56 -0
- package/dist/{KdpaModalImage-f3b07c33.js → KdpaModalImage-eb732bf0.js} +69 -61
- package/dist/{KdpaPaginationGrid-281683fd.js → KdpaPaginationGrid-97a5b164.js} +307 -247
- package/dist/{KdpaRadioGroup-123a09aa.js → KdpaRadioGroup-87122ec7.js} +101 -93
- package/dist/{KdpaRtlProvider-120dff80.js → KdpaRtlProvider-495e4bb0.js} +142 -134
- package/dist/KdpaSecondaryButton-a70aafe5.js +44 -0
- package/dist/KdpaSkeleton-f8f3aefc.js +580 -0
- package/dist/{KdpaSlider-40a1807a.js → KdpaSlider-b7226e20.js} +190 -182
- package/dist/{KdpaSwitch-603cd217.js → KdpaSwitch-b2ba7c23.js} +39 -31
- package/dist/KdpaTabs-ab618f36.js +50 -0
- package/dist/{KdpaTooltip-20c42ab8.js → KdpaTooltip-653424c7.js} +96 -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 +23 -23
- package/dist/{ListItem-8c33bc78.js → ListItem-ddec0b28.js} +8 -9
- package/dist/Loading/KdpaProgress/index.js +11 -11
- package/dist/Loading/index.js +8 -8
- package/dist/{MenuItem-db67ec92.js → MenuItem-057c85a3.js} +14 -15
- package/dist/Modal/index.js +2 -2
- package/dist/{Modal-8739c755.js → Modal-daf2a588.js} +10 -11
- package/dist/PaginationGrid/index.js +31 -31
- package/dist/{Paper-726cd077.js → Paper-00aea968.js} +15 -16
- package/dist/Pickers/index.d.ts +2 -1
- package/dist/Pickers/index.d.ts.map +1 -1
- package/dist/Pickers/index.js +38 -38
- package/dist/{Popper-708e355f.js → Popper-7adcd815.js} +8 -9
- package/dist/{Portal-90cf7ba4.js → Portal-de5e310c.js} +6 -7
- package/dist/Radio/index.js +12 -12
- package/dist/Selects/index.js +33 -33
- package/dist/{Slide-107d0b58.js → Slide-803fd098.js} +11 -12
- package/dist/Slider/index.js +7 -7
- package/dist/Switch/index.js +11 -11
- package/dist/{SwitchBase-0a37f2eb.js → SwitchBase-64e5662e.js} +7 -8
- package/dist/Tabs/index.js +14 -14
- package/dist/{Tabs-1caed6d0.js → Tabs-1140d353.js} +77 -78
- package/dist/{TextField-092190de.js → TextField-57c51dbe.js} +15 -16
- package/dist/ThemeProvider/index.js +5 -5
- package/dist/Tooltips/index.js +15 -15
- package/dist/{TransitionGroup-a1dcb75a.js → TransitionGroup-f9877c5b.js} +2 -2
- package/dist/Transitions/index.js +15 -15
- package/dist/Tree/index.js +2 -2
- package/dist/TreeSelect/index.js +3 -3
- package/dist/Typography/index.js +7 -7
- package/dist/{Typography-644bd1d9.js → Typography-db7e5ea2.js} +18 -19
- package/dist/{Zoom-39a63b9e.js → Zoom-36a189bb.js} +11 -12
- package/dist/{createSvgIcon-5491f07a.js → createSvgIcon-1aa1b2b2.js} +5 -6
- package/dist/{dividerClasses-6fed9b68.js → dividerClasses-a9b8b1ae.js} +2 -2
- package/dist/{elementAcceptingRef-f1cfc912.js → elementAcceptingRef-bd96c731.js} +1 -1
- package/dist/{elementTypeAcceptingRef-d599eee7.js → elementTypeAcceptingRef-dea9e62a.js} +1 -1
- package/dist/{emotion-react.browser.esm-7120a510.js → emotion-react.browser.esm-3fa5f721.js} +1 -1
- package/dist/{exactProp-7fadf441.js → exactProp-86f148d5.js} +1 -1
- package/dist/{extendSxProp-ee27a957.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-e017d9bf.js → index-5f8afc53.js} +5 -5
- package/dist/index.js +82 -82
- package/dist/jsx-dev-runtime-48fdc504.js +615 -0
- package/dist/{listItemTextClasses-29c5c497.js → listItemTextClasses-da281500.js} +2 -2
- package/dist/{refType-0b7ad6f5.js → refType-450337d6.js} +1 -1
- package/dist/{useSlotProps-615f7694.js → useSlotProps-3b927bcb.js} +2 -2
- package/dist/{useTheme-948a6d35.js → useTheme-6ea322ec.js} +2 -2
- package/dist/{useThemeProps-0f6826f6.js → useThemeProps-ea792506.js} +2 -2
- package/dist/{utils-765dc524.js → utils-acd98a68.js} +2 -2
- package/package.json +4 -1
- package/dist/KdpaChip-1bb449f1.js +0 -31
- package/dist/KdpaCircularProgress-18524b3d.js +0 -44
- package/dist/KdpaCollapse-0d001d1f.js +0 -11
- package/dist/KdpaCollapse-db70c13b.js +0 -8
- package/dist/KdpaFormControl-5136bd3a.js +0 -6
- package/dist/KdpaFullScreenDialog-6c8bc817.js +0 -16
- package/dist/KdpaGrid-c32b342e.js +0 -8
- package/dist/KdpaIconButton-d4c623d6.js +0 -23
- package/dist/KdpaInputMultiline-9f5ee3f0.js +0 -48
- package/dist/KdpaMenuItem-ec7a72c8.js +0 -36
- package/dist/KdpaSecondaryButton-ea9f2aeb.js +0 -28
- package/dist/KdpaSkeleton-872821e6.js +0 -540
- package/dist/KdpaTabs-8a087fe4.js +0 -38
- package/dist/KdpaTypography-0aab42ce.js +0 -6
- package/dist/KdpaZoom-dcf1dd78.js +0 -10
- package/dist/KpdaPrimaryButton-4e76c06b.js +0 -47
- package/dist/identifier-878ccaef.js +0 -3147
- package/dist/jsx-runtime-944c88e2.js +0 -631
- package/yarn-error.log +0 -7875
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { j as t } from "./jsx-dev-runtime-48fdc504.js";
|
|
2
|
+
import { K as o } from "./KdpaFormControl-135b070d.js";
|
|
3
|
+
import "./kdpaSelect-4ed993c7.js";
|
|
4
|
+
import { T as l } from "./TextField-57c51dbe.js";
|
|
5
|
+
import { M as n } from "./MenuItem-057c85a3.js";
|
|
6
|
+
const d = ({ label: e = "", children: a, ...s }) => /* @__PURE__ */ t.jsxDEV(o, { className: "kdpa-form-control", children: /* @__PURE__ */ t.jsxDEV(
|
|
7
|
+
l,
|
|
8
|
+
{
|
|
9
|
+
select: !0,
|
|
10
|
+
fullWidth: !0,
|
|
11
|
+
label: e,
|
|
12
|
+
defaultValue: "",
|
|
13
|
+
variant: "standard",
|
|
14
|
+
inputProps: { MenuProps: { disableScrollLock: !0 } },
|
|
15
|
+
...s,
|
|
16
|
+
children: a
|
|
17
|
+
},
|
|
18
|
+
void 0,
|
|
19
|
+
!1,
|
|
20
|
+
{
|
|
21
|
+
fileName: "D:/a.dakhili/kdpa/packages/components/src/components/Selects/KdpaSelect/KdpaSelect.tsx",
|
|
22
|
+
lineNumber: 10,
|
|
23
|
+
columnNumber: 7
|
|
24
|
+
},
|
|
25
|
+
globalThis
|
|
26
|
+
) }, void 0, !1, {
|
|
27
|
+
fileName: "D:/a.dakhili/kdpa/packages/components/src/components/Selects/KdpaSelect/KdpaSelect.tsx",
|
|
28
|
+
lineNumber: 9,
|
|
29
|
+
columnNumber: 5
|
|
30
|
+
}, globalThis);
|
|
31
|
+
function u({ children: e, ...a }) {
|
|
32
|
+
return /* @__PURE__ */ t.jsxDEV(
|
|
33
|
+
n,
|
|
34
|
+
{
|
|
35
|
+
sx: {
|
|
36
|
+
display: "flex",
|
|
37
|
+
justifyContent: "flex-start",
|
|
38
|
+
padding: "6px 16px !important"
|
|
39
|
+
},
|
|
40
|
+
...a,
|
|
41
|
+
children: e
|
|
42
|
+
},
|
|
43
|
+
void 0,
|
|
44
|
+
!1,
|
|
45
|
+
{
|
|
46
|
+
fileName: "D:/a.dakhili/kdpa/packages/components/src/components/Selects/KdpaMenuItem/KdpaMenuItem.tsx",
|
|
47
|
+
lineNumber: 8,
|
|
48
|
+
columnNumber: 5
|
|
49
|
+
},
|
|
50
|
+
this
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
export {
|
|
54
|
+
d as K,
|
|
55
|
+
u as a
|
|
56
|
+
};
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as P } from "./jsx-dev-runtime-48fdc504.js";
|
|
2
2
|
import a, { Component as E } from "react";
|
|
3
|
-
function
|
|
4
|
-
return
|
|
3
|
+
function k(t) {
|
|
4
|
+
return k = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
5
5
|
return typeof e;
|
|
6
6
|
} : function(e) {
|
|
7
7
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
8
|
-
},
|
|
8
|
+
}, k(t);
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function A(t, e) {
|
|
11
11
|
if (!(t instanceof e))
|
|
12
12
|
throw new TypeError("Cannot call a class as a function");
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function B(t, e) {
|
|
15
15
|
for (var o = 0; o < e.length; o++) {
|
|
16
16
|
var n = e[o];
|
|
17
17
|
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
function F(t, e, o) {
|
|
21
|
-
return e &&
|
|
21
|
+
return e && B(t.prototype, e), o && B(t, o), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
22
22
|
}
|
|
23
23
|
function q(t, e) {
|
|
24
24
|
if (typeof e != "function" && e !== null)
|
|
25
25
|
throw new TypeError("Super expression must either be null or a function");
|
|
26
|
-
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);
|
|
27
27
|
}
|
|
28
|
-
function
|
|
29
|
-
return
|
|
28
|
+
function z(t, e) {
|
|
29
|
+
return z = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) {
|
|
30
30
|
return n.__proto__ = r, n;
|
|
31
|
-
},
|
|
31
|
+
}, z(t, e);
|
|
32
32
|
}
|
|
33
33
|
function X(t) {
|
|
34
34
|
var e = J();
|
|
@@ -43,7 +43,7 @@ function X(t) {
|
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
45
|
function Y(t, e) {
|
|
46
|
-
if (e && (
|
|
46
|
+
if (e && (k(e) === "object" || typeof e == "function"))
|
|
47
47
|
return e;
|
|
48
48
|
if (e !== void 0)
|
|
49
49
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
@@ -81,7 +81,7 @@ var ee = /* @__PURE__ */ function(t) {
|
|
|
81
81
|
q(o, t);
|
|
82
82
|
var e = X(o);
|
|
83
83
|
function o() {
|
|
84
|
-
return
|
|
84
|
+
return A(this, o), e.apply(this, arguments);
|
|
85
85
|
}
|
|
86
86
|
return F(o, [{
|
|
87
87
|
key: "componentDidMount",
|
|
@@ -294,12 +294,12 @@ var ue = function(e) {
|
|
|
294
294
|
className: "__react_modal_image__caption"
|
|
295
295
|
}, n));
|
|
296
296
|
};
|
|
297
|
-
function
|
|
298
|
-
return
|
|
297
|
+
function $(t) {
|
|
298
|
+
return $ = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
299
299
|
return typeof e;
|
|
300
300
|
} : function(e) {
|
|
301
301
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
302
|
-
},
|
|
302
|
+
}, $(t);
|
|
303
303
|
}
|
|
304
304
|
function se(t, e) {
|
|
305
305
|
if (!(t instanceof e))
|
|
@@ -317,15 +317,15 @@ function me(t, e, o) {
|
|
|
317
317
|
function de(t, e) {
|
|
318
318
|
if (typeof e != "function" && e !== null)
|
|
319
319
|
throw new TypeError("Super expression must either be null or a function");
|
|
320
|
-
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);
|
|
321
321
|
}
|
|
322
|
-
function
|
|
323
|
-
return
|
|
322
|
+
function I(t, e) {
|
|
323
|
+
return I = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) {
|
|
324
324
|
return n.__proto__ = r, n;
|
|
325
|
-
},
|
|
325
|
+
}, I(t, e);
|
|
326
326
|
}
|
|
327
327
|
function he(t) {
|
|
328
|
-
var e =
|
|
328
|
+
var e = ge();
|
|
329
329
|
return function() {
|
|
330
330
|
var n = w(t), r;
|
|
331
331
|
if (e) {
|
|
@@ -337,7 +337,7 @@ function he(t) {
|
|
|
337
337
|
};
|
|
338
338
|
}
|
|
339
339
|
function pe(t, e) {
|
|
340
|
-
if (e && (
|
|
340
|
+
if (e && ($(e) === "object" || typeof e == "function"))
|
|
341
341
|
return e;
|
|
342
342
|
if (e !== void 0)
|
|
343
343
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
@@ -348,7 +348,7 @@ function v(t) {
|
|
|
348
348
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
349
349
|
return t;
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function ge() {
|
|
352
352
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
353
353
|
return !1;
|
|
354
354
|
if (typeof Proxy == "function")
|
|
@@ -402,14 +402,14 @@ var V = /* @__PURE__ */ function(t) {
|
|
|
402
402
|
}
|
|
403
403
|
}]), o;
|
|
404
404
|
}(E);
|
|
405
|
-
function
|
|
406
|
-
return
|
|
405
|
+
function T(t) {
|
|
406
|
+
return T = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
407
407
|
return typeof e;
|
|
408
408
|
} : function(e) {
|
|
409
409
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
410
|
-
},
|
|
410
|
+
}, T(t);
|
|
411
411
|
}
|
|
412
|
-
function
|
|
412
|
+
function ye(t, e) {
|
|
413
413
|
if (!(t instanceof e))
|
|
414
414
|
throw new TypeError("Cannot call a class as a function");
|
|
415
415
|
}
|
|
@@ -445,7 +445,7 @@ function be(t) {
|
|
|
445
445
|
};
|
|
446
446
|
}
|
|
447
447
|
function we(t, e) {
|
|
448
|
-
if (e && (
|
|
448
|
+
if (e && (T(e) === "object" || typeof e == "function"))
|
|
449
449
|
return e;
|
|
450
450
|
if (e !== void 0)
|
|
451
451
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
@@ -481,7 +481,7 @@ var xe = /* @__PURE__ */ function(t) {
|
|
|
481
481
|
var e = be(o);
|
|
482
482
|
function o() {
|
|
483
483
|
var n;
|
|
484
|
-
|
|
484
|
+
ye(this, o);
|
|
485
485
|
for (var r = arguments.length, i = new Array(r), c = 0; c < r; c++)
|
|
486
486
|
i[c] = arguments[c];
|
|
487
487
|
return n = e.call.apply(e, [this].concat(i)), d(s(n), "state", {
|
|
@@ -497,10 +497,10 @@ var xe = /* @__PURE__ */ function(t) {
|
|
|
497
497
|
}), d(s(n), "getCoordinatesIfOverImg", function(l) {
|
|
498
498
|
var u = l.changedTouches ? l.changedTouches[0] : l;
|
|
499
499
|
if (u.target.id === "react-modal-image-img") {
|
|
500
|
-
var f = n.contentEl.getBoundingClientRect(), m = u.clientX - f.left,
|
|
500
|
+
var f = n.contentEl.getBoundingClientRect(), m = u.clientX - f.left, g = u.clientY - f.top;
|
|
501
501
|
return {
|
|
502
502
|
x: m,
|
|
503
|
-
y
|
|
503
|
+
y: g
|
|
504
504
|
};
|
|
505
505
|
}
|
|
506
506
|
}), d(s(n), "handleMouseDownOrTouchStart", function(l) {
|
|
@@ -571,11 +571,11 @@ var xe = /* @__PURE__ */ function(t) {
|
|
|
571
571
|
}, {
|
|
572
572
|
key: "render",
|
|
573
573
|
value: function() {
|
|
574
|
-
var r = this, i = this.props, c = i.medium, l = i.large, u = i.alt, f = i.onClose, m = i.hideDownload,
|
|
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
575
|
return /* @__PURE__ */ a.createElement("div", null, /* @__PURE__ */ a.createElement(ee, {
|
|
576
576
|
name: "__react_modal_image__lightbox",
|
|
577
577
|
css: te({
|
|
578
|
-
imageBackgroundColor:
|
|
578
|
+
imageBackgroundColor: M
|
|
579
579
|
})
|
|
580
580
|
}), /* @__PURE__ */ a.createElement("div", {
|
|
581
581
|
className: "__react_modal_image__modal_container"
|
|
@@ -587,10 +587,10 @@ var xe = /* @__PURE__ */ function(t) {
|
|
|
587
587
|
onTouchStart: this.handleMouseDownOrTouchStart,
|
|
588
588
|
onTouchEnd: this.handleMouseUpOrTouchEnd,
|
|
589
589
|
onTouchMove: this.handleMouseMoveOrTouchMove,
|
|
590
|
-
ref: function(
|
|
591
|
-
r.contentEl =
|
|
590
|
+
ref: function(W) {
|
|
591
|
+
r.contentEl = W;
|
|
592
592
|
}
|
|
593
|
-
},
|
|
593
|
+
}, R && /* @__PURE__ */ a.createElement(V, {
|
|
594
594
|
id: "react-modal-image-img",
|
|
595
595
|
className: "__react_modal_image__large_img",
|
|
596
596
|
src: l || c,
|
|
@@ -600,7 +600,7 @@ var xe = /* @__PURE__ */ function(t) {
|
|
|
600
600
|
MsTransform: "translate3d(-50%, -50%, 0) translate3d(".concat(h.x, "px, ").concat(h.y, "px, 0) rotate(").concat(p, "deg)")
|
|
601
601
|
},
|
|
602
602
|
handleDoubleClick: this.toggleZoom
|
|
603
|
-
}), !
|
|
603
|
+
}), !R && /* @__PURE__ */ a.createElement(V, {
|
|
604
604
|
id: "react-modal-image-img",
|
|
605
605
|
className: "__react_modal_image__medium_img",
|
|
606
606
|
src: c || l,
|
|
@@ -614,12 +614,12 @@ var xe = /* @__PURE__ */ function(t) {
|
|
|
614
614
|
})), /* @__PURE__ */ a.createElement(fe, {
|
|
615
615
|
image: l || c,
|
|
616
616
|
alt: u,
|
|
617
|
-
zoomed:
|
|
617
|
+
zoomed: R,
|
|
618
618
|
toggleZoom: this.toggleZoom,
|
|
619
619
|
toggleRotate: this.toggleRotate,
|
|
620
620
|
onClose: f,
|
|
621
621
|
enableDownload: !m,
|
|
622
|
-
enableZoom: !
|
|
622
|
+
enableZoom: !g,
|
|
623
623
|
enableRotate: !!S
|
|
624
624
|
})));
|
|
625
625
|
}
|
|
@@ -645,17 +645,17 @@ function U(t, e) {
|
|
|
645
645
|
function Se(t, e, o) {
|
|
646
646
|
return e && U(t.prototype, e), o && U(t, o), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
647
647
|
}
|
|
648
|
-
function
|
|
648
|
+
function Me(t, e) {
|
|
649
649
|
if (typeof e != "function" && e !== null)
|
|
650
650
|
throw new TypeError("Super expression must either be null or a function");
|
|
651
|
-
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);
|
|
652
652
|
}
|
|
653
|
-
function
|
|
654
|
-
return
|
|
653
|
+
function N(t, e) {
|
|
654
|
+
return N = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) {
|
|
655
655
|
return n.__proto__ = r, n;
|
|
656
|
-
},
|
|
656
|
+
}, N(t, e);
|
|
657
657
|
}
|
|
658
|
-
function
|
|
658
|
+
function Re(t) {
|
|
659
659
|
var e = De();
|
|
660
660
|
return function() {
|
|
661
661
|
var n = x(t), r;
|
|
@@ -664,17 +664,17 @@ function Pe(t) {
|
|
|
664
664
|
r = Reflect.construct(n, arguments, i);
|
|
665
665
|
} else
|
|
666
666
|
r = n.apply(this, arguments);
|
|
667
|
-
return
|
|
667
|
+
return Pe(this, r);
|
|
668
668
|
};
|
|
669
669
|
}
|
|
670
|
-
function
|
|
670
|
+
function Pe(t, e) {
|
|
671
671
|
if (e && (H(e) === "object" || typeof e == "function"))
|
|
672
672
|
return e;
|
|
673
673
|
if (e !== void 0)
|
|
674
674
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
675
|
-
return
|
|
675
|
+
return C(t);
|
|
676
676
|
}
|
|
677
|
-
function
|
|
677
|
+
function C(t) {
|
|
678
678
|
if (t === void 0)
|
|
679
679
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
680
680
|
return t;
|
|
@@ -696,20 +696,20 @@ function x(t) {
|
|
|
696
696
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
697
697
|
}, x(t);
|
|
698
698
|
}
|
|
699
|
-
function
|
|
699
|
+
function K(t, e, o) {
|
|
700
700
|
return e in t ? Object.defineProperty(t, e, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = o, t;
|
|
701
701
|
}
|
|
702
|
-
var
|
|
703
|
-
|
|
704
|
-
var e =
|
|
702
|
+
var ke = /* @__PURE__ */ function(t) {
|
|
703
|
+
Me(o, t);
|
|
704
|
+
var e = Re(o);
|
|
705
705
|
function o() {
|
|
706
706
|
var n;
|
|
707
707
|
Ee(this, o);
|
|
708
708
|
for (var r = arguments.length, i = new Array(r), c = 0; c < r; c++)
|
|
709
709
|
i[c] = arguments[c];
|
|
710
|
-
return n = e.call.apply(e, [this].concat(i)),
|
|
710
|
+
return n = e.call.apply(e, [this].concat(i)), K(C(n), "state", {
|
|
711
711
|
modalOpen: !1
|
|
712
|
-
}),
|
|
712
|
+
}), K(C(n), "toggleModal", function() {
|
|
713
713
|
n.setState(function(l) {
|
|
714
714
|
return {
|
|
715
715
|
modalOpen: !l.modalOpen
|
|
@@ -720,7 +720,7 @@ var ze = /* @__PURE__ */ function(t) {
|
|
|
720
720
|
return Se(o, [{
|
|
721
721
|
key: "render",
|
|
722
722
|
value: function() {
|
|
723
|
-
var r = this.props, i = r.className, c = r.small, l = r.smallSrcSet, u = r.medium, f = r.large, m = r.alt,
|
|
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;
|
|
724
724
|
return /* @__PURE__ */ a.createElement("div", null, /* @__PURE__ */ a.createElement("img", {
|
|
725
725
|
className: i,
|
|
726
726
|
style: {
|
|
@@ -732,20 +732,28 @@ var ze = /* @__PURE__ */ function(t) {
|
|
|
732
732
|
src: c,
|
|
733
733
|
srcSet: l,
|
|
734
734
|
alt: m
|
|
735
|
-
}),
|
|
735
|
+
}), y && /* @__PURE__ */ a.createElement(xe, {
|
|
736
736
|
medium: u,
|
|
737
737
|
large: f,
|
|
738
738
|
alt: m,
|
|
739
739
|
onClose: this.toggleModal,
|
|
740
|
-
hideDownload:
|
|
740
|
+
hideDownload: g,
|
|
741
741
|
hideZoom: S,
|
|
742
742
|
showRotate: _,
|
|
743
|
-
imageBackgroundColor:
|
|
743
|
+
imageBackgroundColor: M
|
|
744
744
|
}));
|
|
745
745
|
}
|
|
746
746
|
}]), o;
|
|
747
747
|
}(E);
|
|
748
|
-
const
|
|
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);
|
|
749
757
|
export {
|
|
750
|
-
|
|
758
|
+
Te as K
|
|
751
759
|
};
|