@elice/material-quiz 1.240715.0-touch.3 → 1.240715.0-touch.4

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.
@@ -19,7 +19,8 @@ const EbDraggable = ({
19
19
  attributes,
20
20
  listeners,
21
21
  setNodeRef,
22
- transform
22
+ transform,
23
+ isDragging
23
24
  } = core.useDraggable({
24
25
  id,
25
26
  disabled
@@ -34,7 +35,9 @@ const EbDraggable = ({
34
35
  return React.createElement("div", Object.assign({
35
36
  ref: setNodeRef,
36
37
  className: className,
37
- style: style
38
+ style: isDragging ? Object.assign(Object.assign({}, style), {
39
+ zIndex: 1000
40
+ }) : style
38
41
  }, listeners, attributes), children);
39
42
  };
40
43
 
@@ -45,7 +45,7 @@ const StyledOrder = styled.div.withConfig({
45
45
  })(["width:1.5rem;height:1.5rem;display:flex;border-radius:4px;align-items:center;justify-content:center;color:", ";background-color:", ";flex:none;margin-left:0.5rem;"], designTokens.base.color.navy0, designTokens.base.color.navy4);
46
46
  const StyledQuizDraggbleOption = styled(EbDraggable.default).withConfig({
47
47
  componentId: "sc-19b0zkq-3"
48
- })(["display:flex;border-radius:8px;border:1px solid ", ";background-color:", ";overflow:hidden;z-index:980 !important;&:not(:last-of-type){margin-bottom:1rem;}", "{background-color:", ";color:", ";}", "{background-color:", ";& *{color:", ";}}", "{background-color:", ";color:", ";}&.ui-draggable-dragging{z-index:1000 !important;color:", " !important;border:none !important;", "{background-color:", ";}", "{background-color:", ";border:1px solid ", " !important;}", "{color:", ";background-color:", ";}& *{color:", " !important;}}&.ui-draggable-dragging.quiz-answer{width:calc(100% - 1rem * 2);}"], designTokens.base.color.navy4, designTokens.base.color.navy5, StyledQuizDraggbleOptionHandle, ({
48
+ })(["display:flex;border-radius:8px;border:1px solid ", ";background-color:", ";overflow:hidden;&:not(:last-of-type){margin-bottom:1rem;}", "{background-color:", ";color:", ";}", "{background-color:", ";& *{color:", ";}}", "{background-color:", ";color:", ";}&.ui-draggable-dragging{z-index:1000 !important;color:", " !important;border:none !important;", "{background-color:", ";}", "{background-color:", ";border:1px solid ", " !important;}", "{color:", ";background-color:", ";}& *{color:", " !important;}}&.ui-draggable-dragging.quiz-answer{width:calc(100% - 1rem * 2);}"], designTokens.base.color.navy4, designTokens.base.color.navy5, StyledQuizDraggbleOptionHandle, ({
49
49
  role
50
50
  }) => {
51
51
  switch (role) {
@@ -15,7 +15,8 @@ const EbDraggable = ({
15
15
  attributes,
16
16
  listeners,
17
17
  setNodeRef,
18
- transform
18
+ transform,
19
+ isDragging
19
20
  } = useDraggable({
20
21
  id,
21
22
  disabled
@@ -30,7 +31,9 @@ const EbDraggable = ({
30
31
  return React.createElement("div", Object.assign({
31
32
  ref: setNodeRef,
32
33
  className: className,
33
- style: style
34
+ style: isDragging ? Object.assign(Object.assign({}, style), {
35
+ zIndex: 1000
36
+ }) : style
34
37
  }, listeners, attributes), children);
35
38
  };
36
39
 
@@ -41,7 +41,7 @@ const StyledOrder = styled.div.withConfig({
41
41
  })(["width:1.5rem;height:1.5rem;display:flex;border-radius:4px;align-items:center;justify-content:center;color:", ";background-color:", ";flex:none;margin-left:0.5rem;"], base.color.navy0, base.color.navy4);
42
42
  const StyledQuizDraggbleOption = styled(EbDraggable).withConfig({
43
43
  componentId: "sc-19b0zkq-3"
44
- })(["display:flex;border-radius:8px;border:1px solid ", ";background-color:", ";overflow:hidden;z-index:980 !important;&:not(:last-of-type){margin-bottom:1rem;}", "{background-color:", ";color:", ";}", "{background-color:", ";& *{color:", ";}}", "{background-color:", ";color:", ";}&.ui-draggable-dragging{z-index:1000 !important;color:", " !important;border:none !important;", "{background-color:", ";}", "{background-color:", ";border:1px solid ", " !important;}", "{color:", ";background-color:", ";}& *{color:", " !important;}}&.ui-draggable-dragging.quiz-answer{width:calc(100% - 1rem * 2);}"], base.color.navy4, base.color.navy5, StyledQuizDraggbleOptionHandle, ({
44
+ })(["display:flex;border-radius:8px;border:1px solid ", ";background-color:", ";overflow:hidden;&:not(:last-of-type){margin-bottom:1rem;}", "{background-color:", ";color:", ";}", "{background-color:", ";& *{color:", ";}}", "{background-color:", ";color:", ";}&.ui-draggable-dragging{z-index:1000 !important;color:", " !important;border:none !important;", "{background-color:", ";}", "{background-color:", ";border:1px solid ", " !important;}", "{color:", ";background-color:", ";}& *{color:", " !important;}}&.ui-draggable-dragging.quiz-answer{width:calc(100% - 1rem * 2);}"], base.color.navy4, base.color.navy5, StyledQuizDraggbleOptionHandle, ({
45
45
  role
46
46
  }) => {
47
47
  switch (role) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elice/material-quiz",
3
- "version": "1.240715.0-touch.3",
3
+ "version": "1.240715.0-touch.4",
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",
@@ -67,8 +67,8 @@
67
67
  "@elice/icons-legacy": "npm:@elice/icons@0.230814.0",
68
68
  "@elice/intl": "0.240425.0-rc.2",
69
69
  "@elice/markdown": "^1.240124.0",
70
- "@elice/material-shared-types": "1.240715.0-touch.3",
71
- "@elice/material-shared-utils": "1.240715.0-touch.3",
70
+ "@elice/material-shared-types": "1.240715.0-touch.4",
71
+ "@elice/material-shared-utils": "1.240715.0-touch.4",
72
72
  "@elice/mui-system": "^5.240108.1",
73
73
  "@elice/types": "^1.240619.0",
74
74
  "@emotion/react": "^11.10.0",
@@ -90,5 +90,5 @@
90
90
  "react-use": "^17.2.4",
91
91
  "styled-components": "^5.3.0"
92
92
  },
93
- "gitHead": "974b8b856bd216d827c9cb55cb2419247c2788f6"
93
+ "gitHead": "2f4f75ac5db8f73968fecc24f3bb563db270fe09"
94
94
  }