@elice/material-quiz 1.260128.0-rc.0 → 1.260129.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.
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
var core = require('@dnd-kit/core');
|
|
7
|
-
var
|
|
7
|
+
var utilities = require('@dnd-kit/utilities');
|
|
8
8
|
|
|
9
9
|
//
|
|
10
10
|
//
|
|
@@ -25,7 +25,7 @@ var EbDraggable = function EbDraggable(_ref) {
|
|
|
25
25
|
transform = _useDraggable.transform,
|
|
26
26
|
isDragging = _useDraggable.isDragging;
|
|
27
27
|
var style = {
|
|
28
|
-
transform:
|
|
28
|
+
transform: utilities.CSS.Translate.toString(transform),
|
|
29
29
|
cursor: disabled ? 'auto' : 'move'
|
|
30
30
|
};
|
|
31
31
|
//
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elice/material-quiz",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.260129.0",
|
|
4
4
|
"description": "User view and editing components of Elice material quiz",
|
|
5
5
|
"repository": "https://git.elicer.io/elice/frontend/library/elice-material",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -23,8 +23,6 @@
|
|
|
23
23
|
"clean": "del-cli \"es/*\" \"cjs/*\" \"dist/*\""
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@dnd-kit/core": "^6.1.0",
|
|
27
|
-
"@dnd-kit/modifiers": "^9.0.0",
|
|
28
26
|
"@elice/api-client": "^1",
|
|
29
27
|
"@elice/blocks": "^1",
|
|
30
28
|
"@elice/design-tokens": "^1",
|
|
@@ -32,8 +30,8 @@
|
|
|
32
30
|
"@elice/icons": "^1",
|
|
33
31
|
"@elice/intl": "^0",
|
|
34
32
|
"@elice/markdown": "^1",
|
|
35
|
-
"@elice/material-shared-types": "1.
|
|
36
|
-
"@elice/material-shared-utils": "1.
|
|
33
|
+
"@elice/material-shared-types": "1.260129.0",
|
|
34
|
+
"@elice/material-shared-utils": "1.260129.0",
|
|
37
35
|
"@elice/mui-elements": "^5",
|
|
38
36
|
"@elice/mui-system": "^5",
|
|
39
37
|
"@elice/openapi-client-course": "^1",
|
|
@@ -53,6 +51,9 @@
|
|
|
53
51
|
"react-use": "^17.0.0"
|
|
54
52
|
},
|
|
55
53
|
"dependencies": {
|
|
54
|
+
"@dnd-kit/core": "^6.1.0",
|
|
55
|
+
"@dnd-kit/modifiers": "^9.0.0",
|
|
56
|
+
"@dnd-kit/utilities": "^3.2.2",
|
|
56
57
|
"animated-scroll-to": "^2.0.5",
|
|
57
58
|
"classnames": "^2.2.0",
|
|
58
59
|
"jquery": "^3.6.0",
|
|
@@ -66,8 +67,6 @@
|
|
|
66
67
|
"tslib": "^2.6.1"
|
|
67
68
|
},
|
|
68
69
|
"devDependencies": {
|
|
69
|
-
"@dnd-kit/core": "^6.1.0",
|
|
70
|
-
"@dnd-kit/modifiers": "^9.0.0",
|
|
71
70
|
"@elice/api-client": "^1.250702.0",
|
|
72
71
|
"@elice/blocks": "1.241007.0",
|
|
73
72
|
"@elice/design-tokens": "^1.220803.0",
|
|
@@ -76,8 +75,8 @@
|
|
|
76
75
|
"@elice/icons-legacy": "npm:@elice/icons@0.230814.0",
|
|
77
76
|
"@elice/intl": "0.241127.0",
|
|
78
77
|
"@elice/markdown": "1.241015.0",
|
|
79
|
-
"@elice/material-shared-types": "1.
|
|
80
|
-
"@elice/material-shared-utils": "1.
|
|
78
|
+
"@elice/material-shared-types": "1.260129.0",
|
|
79
|
+
"@elice/material-shared-utils": "1.260129.0",
|
|
81
80
|
"@elice/mui-elements": "5.251204.0",
|
|
82
81
|
"@elice/mui-system": "5.251204.0",
|
|
83
82
|
"@elice/openapi-client-course": "^1.250702.0",
|
|
@@ -92,7 +91,7 @@
|
|
|
92
91
|
"@mui/material": "^5.10.16",
|
|
93
92
|
"@mui/x-data-grid": "^6.7.0",
|
|
94
93
|
"@mui/x-date-pickers": "^6.7.0",
|
|
95
|
-
"@tanstack/react-query": "^4.29.
|
|
94
|
+
"@tanstack/react-query": "^4.29.3",
|
|
96
95
|
"@types/classnames": "^2.3.1",
|
|
97
96
|
"@types/jquery": "^3.5.13",
|
|
98
97
|
"@types/jqueryui": "^1.12.16",
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
require('react');
|
|
4
|
-
|
|
5
|
-
const CSS = /*#__PURE__*/Object.freeze({
|
|
6
|
-
Translate: {
|
|
7
|
-
toString(transform) {
|
|
8
|
-
if (!transform) {
|
|
9
|
-
return;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const {
|
|
13
|
-
x,
|
|
14
|
-
y
|
|
15
|
-
} = transform;
|
|
16
|
-
return "translate3d(" + (x ? Math.round(x) : 0) + "px, " + (y ? Math.round(y) : 0) + "px, 0)";
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
},
|
|
20
|
-
Scale: {
|
|
21
|
-
toString(transform) {
|
|
22
|
-
if (!transform) {
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
const {
|
|
27
|
-
scaleX,
|
|
28
|
-
scaleY
|
|
29
|
-
} = transform;
|
|
30
|
-
return "scaleX(" + scaleX + ") scaleY(" + scaleY + ")";
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
},
|
|
34
|
-
Transform: {
|
|
35
|
-
toString(transform) {
|
|
36
|
-
if (!transform) {
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
return [CSS.Translate.toString(transform), CSS.Scale.toString(transform)].join(' ');
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
},
|
|
44
|
-
Transition: {
|
|
45
|
-
toString(_ref) {
|
|
46
|
-
let {
|
|
47
|
-
property,
|
|
48
|
-
duration,
|
|
49
|
-
easing
|
|
50
|
-
} = _ref;
|
|
51
|
-
return property + " " + duration + "ms " + easing;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
exports.CSS = CSS;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import 'react';
|
|
2
|
-
|
|
3
|
-
const CSS = /*#__PURE__*/Object.freeze({
|
|
4
|
-
Translate: {
|
|
5
|
-
toString(transform) {
|
|
6
|
-
if (!transform) {
|
|
7
|
-
return;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
const {
|
|
11
|
-
x,
|
|
12
|
-
y
|
|
13
|
-
} = transform;
|
|
14
|
-
return "translate3d(" + (x ? Math.round(x) : 0) + "px, " + (y ? Math.round(y) : 0) + "px, 0)";
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
},
|
|
18
|
-
Scale: {
|
|
19
|
-
toString(transform) {
|
|
20
|
-
if (!transform) {
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
const {
|
|
25
|
-
scaleX,
|
|
26
|
-
scaleY
|
|
27
|
-
} = transform;
|
|
28
|
-
return "scaleX(" + scaleX + ") scaleY(" + scaleY + ")";
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
},
|
|
32
|
-
Transform: {
|
|
33
|
-
toString(transform) {
|
|
34
|
-
if (!transform) {
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
return [CSS.Translate.toString(transform), CSS.Scale.toString(transform)].join(' ');
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
},
|
|
42
|
-
Transition: {
|
|
43
|
-
toString(_ref) {
|
|
44
|
-
let {
|
|
45
|
-
property,
|
|
46
|
-
duration,
|
|
47
|
-
easing
|
|
48
|
-
} = _ref;
|
|
49
|
-
return property + " " + duration + "ms " + easing;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
export { CSS };
|