@elice/material-runbox 1.260910.0 → 1.260915.0-edsmigration.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.
Files changed (99) hide show
  1. package/cjs/components/material-runbox/MaterialAdminRunboxConfirmDialog.js +7 -7
  2. package/cjs/components/material-runbox/MaterialRunbox.js +2 -2
  3. package/cjs/components/material-runbox/MaterialRunboxAlert.js +3 -3
  4. package/cjs/components/material-runbox/MaterialRunboxContent.d.ts +1 -1
  5. package/cjs/components/material-runbox/MaterialRunboxContent.js +33 -23
  6. package/cjs/components/material-runbox/MaterialRunboxHeader.js +13 -11
  7. package/cjs/components/material-runbox/actions/MaterialRunboxActionAutoShutdown.js +5 -5
  8. package/cjs/components/material-runbox/actions/MaterialRunboxActionDisconnect.js +6 -6
  9. package/cjs/components/material-runbox/actions/MaterialRunboxActionDisconnectDialog.js +11 -9
  10. package/cjs/components/material-runbox/actions/MaterialRunboxActionDisconnectMenuItem.js +7 -8
  11. package/cjs/components/material-runbox/actions/MaterialRunboxActionGrade.js +25 -24
  12. package/cjs/components/material-runbox/actions/MaterialRunboxActionMenu.js +11 -7
  13. package/cjs/components/material-runbox/actions/MaterialRunboxActionReset.js +15 -16
  14. package/cjs/components/material-runbox/actions/MaterialRunboxActionRestart.js +13 -14
  15. package/cjs/components/material-runbox/actions/MaterialRunboxActionShare.js +8 -8
  16. package/cjs/components/material-runbox/actions/MaterialRunboxActionSubmitLog.js +6 -6
  17. package/cjs/components/material-runbox/actions/MaterialRunboxActionSubmitLogDialog.js +46 -38
  18. package/cjs/components/material-runbox/contexts/MaterialRunboxCommandContext.js +2 -2
  19. package/cjs/components/material-runbox/contexts/MaterialRunboxContext.d.ts +1 -1
  20. package/cjs/components/material-runbox/disk/MaterialRunboxDiskUsageAlert.js +5 -5
  21. package/cjs/components/material-runbox/disk/MaterialRunboxDiskUsageDialog.js +17 -13
  22. package/cjs/components/material-runbox/disk/MaterialRunboxEnvResetButton.d.ts +2 -2
  23. package/cjs/components/material-runbox/disk/MaterialRunboxEnvResetButton.js +5 -6
  24. package/cjs/components/material-runbox/disk/MaterialRunboxEnvResetDialog.js +20 -16
  25. package/cjs/components/material-runbox/hooks/useRunboxControl.js +2 -2
  26. package/cjs/components/material-runbox/runtime/RuntimeChangeMaterialDialog.js +7 -7
  27. package/cjs/components/material-runbox/runtime/RuntimeOverlayConflicted.js +39 -27
  28. package/cjs/components/material-runbox/runtime/RuntimeOverlayLoading.js +68 -49
  29. package/cjs/components/material-runbox/runtime/RuntimeOverlayTerminated.js +35 -27
  30. package/cjs/components/material-runbox/runtime/runtime-loading-tips.d.ts +2 -2
  31. package/cjs/components/material-runbox/status/MaterialRunboxStatusButton.js +7 -7
  32. package/cjs/components/material-runbox/status/MaterialRunboxStatusConnectionItem.d.ts +1 -1
  33. package/cjs/components/material-runbox/status/MaterialRunboxStatusConnectionItem.js +16 -10
  34. package/cjs/components/material-runbox/status/MaterialRunboxStatusPopover.d.ts +1 -1
  35. package/cjs/components/material-runbox/status/MaterialRunboxStatusPopover.js +24 -20
  36. package/cjs/components/material-runbox/status/MaterialRunboxStatusResourceItem.js +22 -14
  37. package/cjs/components/material-runbox/theme.d.ts +2 -2
  38. package/cjs/components/material-runbox/theme.js +3 -3
  39. package/cjs/components/material-runbox/timer/MaterialRunboxQuotaAlmostEndDialog.js +39 -25
  40. package/cjs/components/material-runbox/timer/MaterialRunboxQuotaAmount.js +7 -5
  41. package/cjs/components/material-runbox/timer/MaterialRunboxQuotaPerSessionAlmostEndDialog.js +39 -25
  42. package/cjs/components/material-runbox/timer/MaterialRunboxQuotaTimePart.js +9 -5
  43. package/cjs/components/material-runbox/timer/MaterialRunboxTimer.js +17 -13
  44. package/cjs/components/material-runbox/timer/MaterialRunboxTimerDetailPopover.d.ts +1 -1
  45. package/cjs/components/material-runbox/timer/MaterialRunboxTimerDetailPopover.js +76 -48
  46. package/cjs/components/shared/hooks/useBreakpoint.d.ts +2 -2
  47. package/cjs/components/shared/hooks/useBreakpoint.js +3 -3
  48. package/cjs/components/shared/material-runbox-snackbar/MaterialRunboxSnackbar.d.ts +1 -1
  49. package/cjs/components/shared/material-runbox-snackbar/MaterialRunboxSnackbar.js +12 -11
  50. package/es/components/material-runbox/MaterialAdminRunboxConfirmDialog.js +1 -1
  51. package/es/components/material-runbox/MaterialRunbox.js +1 -1
  52. package/es/components/material-runbox/MaterialRunboxAlert.js +1 -1
  53. package/es/components/material-runbox/MaterialRunboxContent.d.ts +1 -1
  54. package/es/components/material-runbox/MaterialRunboxContent.js +19 -9
  55. package/es/components/material-runbox/MaterialRunboxHeader.js +9 -7
  56. package/es/components/material-runbox/actions/MaterialRunboxActionAutoShutdown.js +2 -2
  57. package/es/components/material-runbox/actions/MaterialRunboxActionDisconnect.js +3 -3
  58. package/es/components/material-runbox/actions/MaterialRunboxActionDisconnectDialog.js +4 -2
  59. package/es/components/material-runbox/actions/MaterialRunboxActionDisconnectMenuItem.js +4 -5
  60. package/es/components/material-runbox/actions/MaterialRunboxActionGrade.js +6 -5
  61. package/es/components/material-runbox/actions/MaterialRunboxActionMenu.js +8 -4
  62. package/es/components/material-runbox/actions/MaterialRunboxActionReset.js +5 -6
  63. package/es/components/material-runbox/actions/MaterialRunboxActionRestart.js +4 -5
  64. package/es/components/material-runbox/actions/MaterialRunboxActionShare.js +4 -4
  65. package/es/components/material-runbox/actions/MaterialRunboxActionSubmitLog.js +3 -3
  66. package/es/components/material-runbox/actions/MaterialRunboxActionSubmitLogDialog.js +28 -20
  67. package/es/components/material-runbox/contexts/MaterialRunboxCommandContext.js +1 -1
  68. package/es/components/material-runbox/contexts/MaterialRunboxContext.d.ts +1 -1
  69. package/es/components/material-runbox/disk/MaterialRunboxDiskUsageAlert.js +3 -3
  70. package/es/components/material-runbox/disk/MaterialRunboxDiskUsageDialog.js +10 -6
  71. package/es/components/material-runbox/disk/MaterialRunboxEnvResetButton.d.ts +2 -2
  72. package/es/components/material-runbox/disk/MaterialRunboxEnvResetButton.js +3 -4
  73. package/es/components/material-runbox/disk/MaterialRunboxEnvResetDialog.js +10 -6
  74. package/es/components/material-runbox/hooks/useRunboxControl.js +1 -1
  75. package/es/components/material-runbox/runtime/RuntimeChangeMaterialDialog.js +1 -1
  76. package/es/components/material-runbox/runtime/RuntimeOverlayConflicted.js +26 -14
  77. package/es/components/material-runbox/runtime/RuntimeOverlayLoading.js +38 -19
  78. package/es/components/material-runbox/runtime/RuntimeOverlayTerminated.js +20 -12
  79. package/es/components/material-runbox/runtime/runtime-loading-tips.d.ts +2 -2
  80. package/es/components/material-runbox/status/MaterialRunboxStatusButton.js +5 -5
  81. package/es/components/material-runbox/status/MaterialRunboxStatusConnectionItem.d.ts +1 -1
  82. package/es/components/material-runbox/status/MaterialRunboxStatusConnectionItem.js +13 -7
  83. package/es/components/material-runbox/status/MaterialRunboxStatusPopover.d.ts +1 -1
  84. package/es/components/material-runbox/status/MaterialRunboxStatusPopover.js +19 -15
  85. package/es/components/material-runbox/status/MaterialRunboxStatusResourceItem.js +17 -9
  86. package/es/components/material-runbox/theme.d.ts +2 -2
  87. package/es/components/material-runbox/theme.js +1 -1
  88. package/es/components/material-runbox/timer/MaterialRunboxQuotaAlmostEndDialog.js +26 -12
  89. package/es/components/material-runbox/timer/MaterialRunboxQuotaAmount.js +5 -3
  90. package/es/components/material-runbox/timer/MaterialRunboxQuotaPerSessionAlmostEndDialog.js +26 -12
  91. package/es/components/material-runbox/timer/MaterialRunboxQuotaTimePart.js +7 -3
  92. package/es/components/material-runbox/timer/MaterialRunboxTimer.js +11 -7
  93. package/es/components/material-runbox/timer/MaterialRunboxTimerDetailPopover.d.ts +1 -1
  94. package/es/components/material-runbox/timer/MaterialRunboxTimerDetailPopover.js +55 -27
  95. package/es/components/shared/hooks/useBreakpoint.d.ts +2 -2
  96. package/es/components/shared/hooks/useBreakpoint.js +1 -1
  97. package/es/components/shared/material-runbox-snackbar/MaterialRunboxSnackbar.d.ts +1 -1
  98. package/es/components/shared/material-runbox-snackbar/MaterialRunboxSnackbar.js +10 -9
  99. package/package.json +17 -18
@@ -6,9 +6,9 @@ var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHel
6
6
  var jsxRuntime = require('react/jsx-runtime');
7
7
  var React = require('react');
8
8
  var apiClient = require('@elice/api-client');
9
+ var edsMaterial = require('@elice/eds-material');
9
10
  var runboxClient = require('@elice/runbox-client');
10
11
  var types = require('@elice/types');
11
- var material = require('@mui/material');
12
12
  var reactQuery = require('@tanstack/react-query');
13
13
  var MaterialRunboxActionAutoShutdown = require('./MaterialRunboxActionAutoShutdown.js');
14
14
  var MaterialRunboxActionDisconnectMenuItem = require('./MaterialRunboxActionDisconnectMenuItem.js');
@@ -83,7 +83,7 @@ var MaterialRunboxActionMenu = function MaterialRunboxActionMenu(_ref) {
83
83
  //
84
84
  //
85
85
  //
86
- return jsxRuntime.jsxs(material.Menu, {
86
+ return jsxRuntime.jsxs(edsMaterial.Menu, {
87
87
  open: Boolean(menuAnchorEl),
88
88
  anchorEl: menuAnchorEl,
89
89
  anchorOrigin: {
@@ -94,20 +94,24 @@ var MaterialRunboxActionMenu = function MaterialRunboxActionMenu(_ref) {
94
94
  vertical: 'top',
95
95
  horizontal: 'right'
96
96
  },
97
- TransitionComponent: material.Fade,
97
+ slots: {
98
+ transition: edsMaterial.Fade
99
+ },
98
100
  onClose: handleMenuClose,
99
101
  children: [enableAutoShutdown ? jsxRuntime.jsxs(jsxRuntime.Fragment, {
100
- children: [jsxRuntime.jsx(material.Stack, {
102
+ children: [jsxRuntime.jsx(edsMaterial.Stack, {
101
103
  direction: "row",
102
- alignItems: "center",
103
- padding: "0.25rem 0.5rem",
104
+ sx: {
105
+ padding: '0.25rem 0.5rem',
106
+ alignItems: 'center'
107
+ },
104
108
  children: jsxRuntime.jsx(MaterialRunboxActionAutoShutdown.default, {
105
109
  runtime: runtime,
106
110
  runtimeTemplate: runtimeTemplate,
107
111
  courseId: courseId,
108
112
  refetch: refetch
109
113
  })
110
- }), jsxRuntime.jsx(material.Divider, {
114
+ }), jsxRuntime.jsx(edsMaterial.Divider, {
111
115
  sx: {
112
116
  margin: '0.5rem 0'
113
117
  }
@@ -5,14 +5,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
6
6
  var jsxRuntime = require('react/jsx-runtime');
7
7
  var React = require('react');
8
+ var edsKit = require('@elice/eds-kit');
9
+ var edsMaterial = require('@elice/eds-material');
10
+ var edsXSnackbar = require('@elice/eds-x-snackbar');
8
11
  var intl = require('@elice/intl');
9
- var muiElements = require('@elice/mui-elements');
10
- var muiXSnackbar = require('@elice/mui-x-snackbar');
11
12
  var openapiClientMaterialRunbox = require('@elice/openapi-client-material-runbox');
12
13
  var types = require('@elice/types');
13
14
  var proSolidSvgIcons = require('@fortawesome/pro-solid-svg-icons');
14
- var lab = require('@mui/lab');
15
- var material = require('@mui/material');
16
15
  var MaterialRunboxApiContext = require('../contexts/MaterialRunboxApiContext.js');
17
16
  var MaterialRunboxCommandContext = require('../contexts/MaterialRunboxCommandContext.js');
18
17
 
@@ -28,7 +27,7 @@ var MaterialRunboxActionReset = function MaterialRunboxActionReset(_ref) {
28
27
  courseId = _ref.courseId,
29
28
  envMode = _ref.envMode;
30
29
  var intl$1 = intl.useRawEliceIntl();
31
- var _useSnackbar = muiXSnackbar.useSnackbar(),
30
+ var _useSnackbar = edsXSnackbar.useSnackbar(),
32
31
  enqueueSnackbar = _useSnackbar.enqueueSnackbar;
33
32
  var materialRunboxApi = MaterialRunboxApiContext.useMaterialRunboxApiContext();
34
33
  var _React$useState = React__default.default.useState(false),
@@ -100,16 +99,16 @@ var MaterialRunboxActionReset = function MaterialRunboxActionReset(_ref) {
100
99
  *
101
100
  */
102
101
  var renderResetMenuItem = function renderResetMenuItem() {
103
- return jsxRuntime.jsxs(material.MenuItem, {
102
+ return jsxRuntime.jsxs(edsMaterial.MenuItem, {
104
103
  disabled: isLastCommandRunning,
105
104
  onClick: function onClick() {
106
105
  return setDialogOpened(true);
107
106
  },
108
- children: [jsxRuntime.jsx(material.ListItemIcon, {
109
- children: jsxRuntime.jsx(muiElements.EliceIcon, {
107
+ children: [jsxRuntime.jsx(edsMaterial.ListItemIcon, {
108
+ children: jsxRuntime.jsx(edsKit.FaIcon, {
110
109
  icon: proSolidSvgIcons.faRefresh
111
110
  })
112
- }), jsxRuntime.jsx(material.ListItemText, {
111
+ }), jsxRuntime.jsx(edsMaterial.ListItemText, {
113
112
  children: intl$1.formatMessage({
114
113
  id: 'runbox.action.reset.title'
115
114
  })
@@ -123,17 +122,17 @@ var MaterialRunboxActionReset = function MaterialRunboxActionReset(_ref) {
123
122
  if (!isDialogOpened) {
124
123
  return null;
125
124
  }
126
- return jsxRuntime.jsxs(material.Dialog, {
125
+ return jsxRuntime.jsxs(edsMaterial.Dialog, {
127
126
  open: true,
128
127
  fullWidth: true,
129
128
  maxWidth: "xs",
130
129
  onClose: handleDialogClose,
131
- children: [jsxRuntime.jsx(material.DialogTitle, {
130
+ children: [jsxRuntime.jsx(edsMaterial.DialogTitle, {
132
131
  children: intl$1.formatMessage({
133
132
  id: 'runbox.action.reset.title'
134
133
  })
135
- }), jsxRuntime.jsx(material.DialogContent, {
136
- children: jsxRuntime.jsx(material.DialogContentText, {
134
+ }), jsxRuntime.jsx(edsMaterial.DialogContent, {
135
+ children: jsxRuntime.jsx(edsMaterial.DialogContentText, {
137
136
  sx: {
138
137
  whiteSpace: 'pre-line'
139
138
  },
@@ -143,15 +142,15 @@ var MaterialRunboxActionReset = function MaterialRunboxActionReset(_ref) {
143
142
  id: 'runbox.action.reset.dialog.shared.description'
144
143
  })
145
144
  })
146
- }), jsxRuntime.jsxs(material.DialogActions, {
147
- children: [jsxRuntime.jsx(material.Button, {
145
+ }), jsxRuntime.jsxs(edsMaterial.DialogActions, {
146
+ children: [jsxRuntime.jsx(edsMaterial.Button, {
148
147
  color: "inherit",
149
148
  disabled: isLoading,
150
149
  onClick: handleDialogClose,
151
150
  children: intl$1.formatMessage({
152
151
  id: 'runbox.common.close'
153
152
  })
154
- }), jsxRuntime.jsx(lab.LoadingButton, {
153
+ }), jsxRuntime.jsx(edsMaterial.Button, {
155
154
  variant: "contained",
156
155
  color: "warning",
157
156
  loading: isLoading || isLastCommandRunning,
@@ -5,12 +5,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
6
6
  var jsxRuntime = require('react/jsx-runtime');
7
7
  var React = require('react');
8
+ var edsKit = require('@elice/eds-kit');
9
+ var edsMaterial = require('@elice/eds-material');
8
10
  var intl = require('@elice/intl');
9
- var muiElements = require('@elice/mui-elements');
10
11
  var types = require('@elice/types');
11
12
  var proSolidSvgIcons = require('@fortawesome/pro-solid-svg-icons');
12
- var lab = require('@mui/lab');
13
- var material = require('@mui/material');
14
13
  var MaterialRunboxControlContext = require('../contexts/MaterialRunboxControlContext.js');
15
14
 
16
15
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
@@ -54,15 +53,15 @@ var MaterialRunboxActionRestart = function MaterialRunboxActionRestart(_ref) {
54
53
  *
55
54
  */
56
55
  var renderRestartMenuItem = function renderRestartMenuItem() {
57
- return jsxRuntime.jsxs(material.MenuItem, {
56
+ return jsxRuntime.jsxs(edsMaterial.MenuItem, {
58
57
  onClick: function onClick() {
59
58
  return setDialogOpened(true);
60
59
  },
61
- children: [jsxRuntime.jsx(material.ListItemIcon, {
62
- children: jsxRuntime.jsx(muiElements.EliceIcon, {
60
+ children: [jsxRuntime.jsx(edsMaterial.ListItemIcon, {
61
+ children: jsxRuntime.jsx(edsKit.FaIcon, {
63
62
  icon: proSolidSvgIcons.faRotateRight
64
63
  })
65
- }), jsxRuntime.jsx(material.ListItemText, {
64
+ }), jsxRuntime.jsx(edsMaterial.ListItemText, {
66
65
  children: intl$1.formatMessage({
67
66
  id: 'runbox.action.restart.title'
68
67
  })
@@ -76,17 +75,17 @@ var MaterialRunboxActionRestart = function MaterialRunboxActionRestart(_ref) {
76
75
  if (!isDialogOpened) {
77
76
  return null;
78
77
  }
79
- return jsxRuntime.jsxs(material.Dialog, {
78
+ return jsxRuntime.jsxs(edsMaterial.Dialog, {
80
79
  open: true,
81
80
  fullWidth: true,
82
81
  maxWidth: "xs",
83
82
  onClose: handleDialogClose,
84
- children: [jsxRuntime.jsx(material.DialogTitle, {
83
+ children: [jsxRuntime.jsx(edsMaterial.DialogTitle, {
85
84
  children: intl$1.formatMessage({
86
85
  id: 'runbox.action.restart.title'
87
86
  })
88
- }), jsxRuntime.jsx(material.DialogContent, {
89
- children: jsxRuntime.jsx(material.DialogContentText, {
87
+ }), jsxRuntime.jsx(edsMaterial.DialogContent, {
88
+ children: jsxRuntime.jsx(edsMaterial.DialogContentText, {
90
89
  sx: {
91
90
  whiteSpace: 'pre-line'
92
91
  },
@@ -96,15 +95,15 @@ var MaterialRunboxActionRestart = function MaterialRunboxActionRestart(_ref) {
96
95
  id: 'runbox.action.restart.dialog.shared.description'
97
96
  })
98
97
  })
99
- }), jsxRuntime.jsxs(material.DialogActions, {
100
- children: [jsxRuntime.jsx(material.Button, {
98
+ }), jsxRuntime.jsxs(edsMaterial.DialogActions, {
99
+ children: [jsxRuntime.jsx(edsMaterial.Button, {
101
100
  color: "inherit",
102
101
  disabled: isStarting,
103
102
  onClick: handleDialogClose,
104
103
  children: intl$1.formatMessage({
105
104
  id: 'runbox.common.close'
106
105
  })
107
- }), jsxRuntime.jsx(lab.LoadingButton, {
106
+ }), jsxRuntime.jsx(edsMaterial.Button, {
108
107
  variant: "contained",
109
108
  color: "warning",
110
109
  loading: isStarting,
@@ -6,12 +6,12 @@ var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHel
6
6
  var jsxRuntime = require('react/jsx-runtime');
7
7
  var React = require('react');
8
8
  var reactUse = require('react-use');
9
+ var edsKit = require('@elice/eds-kit');
10
+ var edsMaterial = require('@elice/eds-material');
11
+ var edsXSnackbar = require('@elice/eds-x-snackbar');
9
12
  var intl = require('@elice/intl');
10
- var muiElements = require('@elice/mui-elements');
11
- var muiXSnackbar = require('@elice/mui-x-snackbar');
12
13
  var runboxClient = require('@elice/runbox-client');
13
14
  var proSolidSvgIcons = require('@fortawesome/pro-solid-svg-icons');
14
- var material = require('@mui/material');
15
15
  var MaterialRunboxContext = require('../contexts/MaterialRunboxContext.js');
16
16
 
17
17
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
@@ -24,7 +24,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
24
24
  var MaterialRunboxActionShare = function MaterialRunboxActionShare(_ref) {
25
25
  var handleMenuClose = _ref.handleMenuClose;
26
26
  var intl$1 = intl.useRawEliceIntl();
27
- var _useSnackbar = muiXSnackbar.useSnackbar(),
27
+ var _useSnackbar = edsXSnackbar.useSnackbar(),
28
28
  enqueueSnackbar = _useSnackbar.enqueueSnackbar;
29
29
  var _useMaterialRunboxCon = MaterialRunboxContext.useMaterialRunboxContext(),
30
30
  enableUrlShare = _useMaterialRunboxCon.enableUrlShare;
@@ -47,14 +47,14 @@ var MaterialRunboxActionShare = function MaterialRunboxActionShare(_ref) {
47
47
  if (!enableUrlShare) {
48
48
  return null;
49
49
  }
50
- return jsxRuntime.jsxs(material.MenuItem, {
50
+ return jsxRuntime.jsxs(edsMaterial.MenuItem, {
51
51
  disabled: !url,
52
52
  onClick: handleShareAction,
53
- children: [jsxRuntime.jsx(material.ListItemIcon, {
54
- children: jsxRuntime.jsx(muiElements.EliceIcon, {
53
+ children: [jsxRuntime.jsx(edsMaterial.ListItemIcon, {
54
+ children: jsxRuntime.jsx(edsKit.FaIcon, {
55
55
  icon: proSolidSvgIcons.faLinkSimple
56
56
  })
57
- }), jsxRuntime.jsx(material.ListItemText, {
57
+ }), jsxRuntime.jsx(edsMaterial.ListItemText, {
58
58
  children: intl$1.formatMessage({
59
59
  id: 'runbox.action.share.title'
60
60
  })
@@ -5,10 +5,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
6
6
  var jsxRuntime = require('react/jsx-runtime');
7
7
  var React = require('react');
8
+ var edsKit = require('@elice/eds-kit');
9
+ var edsMaterial = require('@elice/eds-material');
8
10
  var intl = require('@elice/intl');
9
- var muiElements = require('@elice/mui-elements');
10
11
  var proRegularSvgIcons = require('@fortawesome/pro-regular-svg-icons');
11
- var material = require('@mui/material');
12
12
  var MaterialRunboxActionSubmitLogDialog = require('./MaterialRunboxActionSubmitLogDialog.js');
13
13
 
14
14
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
@@ -29,15 +29,15 @@ var MaterialRunboxActionSubmitLog = function MaterialRunboxActionSubmitLog(props
29
29
  *
30
30
  */
31
31
  var renderMenuItem = function renderMenuItem() {
32
- return jsxRuntime.jsxs(material.MenuItem, {
32
+ return jsxRuntime.jsxs(edsMaterial.MenuItem, {
33
33
  onClick: function onClick() {
34
34
  return setIsOpen(true);
35
35
  },
36
- children: [jsxRuntime.jsx(material.ListItemIcon, {
37
- children: jsxRuntime.jsx(muiElements.EliceIcon, {
36
+ children: [jsxRuntime.jsx(edsMaterial.ListItemIcon, {
37
+ children: jsxRuntime.jsx(edsKit.FaIcon, {
38
38
  icon: proRegularSvgIcons.faTimeline
39
39
  })
40
- }), jsxRuntime.jsx(material.ListItemText, {
40
+ }), jsxRuntime.jsx(edsMaterial.ListItemText, {
41
41
  children: intl$1.formatMessage({
42
42
  id: 'runbox.action.submitLog.title'
43
43
  })
@@ -7,11 +7,11 @@ var tslib = require('tslib');
7
7
  var jsxRuntime = require('react/jsx-runtime');
8
8
  var React = require('react');
9
9
  var reactIntersectionObserver = require('react-intersection-observer');
10
+ var edsKit = require('@elice/eds-kit');
11
+ var edsMaterial = require('@elice/eds-material');
10
12
  var intl = require('@elice/intl');
11
- var muiElements = require('@elice/mui-elements');
12
13
  var react = require('@emotion/react');
13
14
  var proRegularSvgIcons = require('@fortawesome/pro-regular-svg-icons');
14
- var material = require('@mui/material');
15
15
  var dayjs = require('dayjs');
16
16
  var useInfiniteRunboxRunboxIdGrade = require('../hooks/useInfiniteRunboxRunboxIdGrade.js');
17
17
  var MaterialRunboxContext = require('../contexts/MaterialRunboxContext.js');
@@ -36,7 +36,7 @@ var MaterialRunboxActionSubmitLogDialog = function MaterialRunboxActionSubmitLog
36
36
  dayjs__default.default.locale(locale);
37
37
  //
38
38
  var theme = react.useTheme();
39
- var isMobileOrSmaller = material.useMediaQuery(theme.breakpoints.down('sm'));
39
+ var isMobileOrSmaller = edsMaterial.useMediaQuery(theme.breakpoints.down('sm'));
40
40
  //
41
41
  var _useInfiniteRunboxRun = useInfiniteRunboxRunboxIdGrade.useInfiniteRunboxRunboxIdGrade(Object.assign(Object.assign({}, props), {
42
42
  enabled: Boolean(isOpen && props.runboxId && props.userId)
@@ -55,10 +55,12 @@ var MaterialRunboxActionSubmitLogDialog = function MaterialRunboxActionSubmitLog
55
55
  *
56
56
  */
57
57
  var renderEmpty = function renderEmpty() {
58
- return jsxRuntime.jsx(material.Stack, {
59
- justifyContent: "center",
60
- alignItems: "center",
61
- children: jsxRuntime.jsx(material.Typography, {
58
+ return jsxRuntime.jsx(edsMaterial.Stack, {
59
+ sx: {
60
+ justifyContent: 'center',
61
+ alignItems: 'center'
62
+ },
63
+ children: jsxRuntime.jsx(edsMaterial.Typography, {
62
64
  variant: "body1",
63
65
  children: intl$1.formatMessage({
64
66
  id: 'runbox.action.submitLog.empty'
@@ -70,7 +72,7 @@ var MaterialRunboxActionSubmitLogDialog = function MaterialRunboxActionSubmitLog
70
72
  *
71
73
  */
72
74
  var renderGradeList = function renderGradeList() {
73
- return jsxRuntime.jsxs(material.List, {
75
+ return jsxRuntime.jsxs(edsMaterial.List, {
74
76
  ref: ref,
75
77
  sx: {
76
78
  width: '100%',
@@ -78,19 +80,21 @@ var MaterialRunboxActionSubmitLogDialog = function MaterialRunboxActionSubmitLog
78
80
  overflow: 'auto'
79
81
  },
80
82
  children: [grade === null || grade === void 0 ? void 0 : grade.map(function (item) {
81
- return jsxRuntime.jsxs(material.ListItemButton, {
83
+ return jsxRuntime.jsxs(edsMaterial.ListItemButton, {
82
84
  selected: (selectedGrade === null || selectedGrade === void 0 ? void 0 : selectedGrade.id) === item.id,
83
85
  onClick: function onClick() {
84
86
  return setSelectedGrade(item);
85
87
  },
86
- children: [jsxRuntime.jsx(material.ListItemText, {
88
+ children: [jsxRuntime.jsx(edsMaterial.ListItemText, {
87
89
  primary: dayjs__default.default(item.created).format(isMobileOrSmaller ? 'YYYY.MM.DD' : 'YYYY.MM.DD A HH:mm')
88
- }), jsxRuntime.jsx(material.ListItemSecondaryAction, {
89
- children: jsxRuntime.jsxs(material.Stack, {
90
+ }), jsxRuntime.jsx(edsMaterial.ListItemSecondaryAction, {
91
+ children: jsxRuntime.jsxs(edsMaterial.Stack, {
90
92
  direction: "row",
91
- alignItems: "center",
92
- gap: "0.5rem",
93
- children: [(item === null || item === void 0 ? void 0 : item.score) ? jsxRuntime.jsx(muiElements.Tag, {
93
+ sx: {
94
+ alignItems: 'center',
95
+ gap: '0.5rem'
96
+ },
97
+ children: [(item === null || item === void 0 ? void 0 : item.score) ? jsxRuntime.jsx(edsKit.Tag, {
94
98
  variant: "muted",
95
99
  color: typeof getAchievementColor === 'function' ? getAchievementColor({
96
100
  score: Number(item.score),
@@ -101,15 +105,15 @@ var MaterialRunboxActionSubmitLogDialog = function MaterialRunboxActionSubmitLog
101
105
  }, {
102
106
  score: item.score
103
107
  })
104
- }) : null, jsxRuntime.jsx(material.Tooltip, {
108
+ }) : null, jsxRuntime.jsx(edsMaterial.Tooltip, {
105
109
  title: intl$1.formatMessage({
106
110
  id: 'runbox.action.submitLog.dialog.download.tooltip'
107
111
  }),
108
- children: jsxRuntime.jsx(material.IconButton, {
112
+ children: jsxRuntime.jsx(edsMaterial.IconButton, {
109
113
  onClick: function onClick() {
110
114
  window.open(item.submissionFileUrl, '_blank');
111
115
  },
112
- children: jsxRuntime.jsx(muiElements.EliceIcon, {
116
+ children: jsxRuntime.jsx(edsKit.FaIcon, {
113
117
  icon: proRegularSvgIcons.faArrowDownToLine
114
118
  })
115
119
  })
@@ -126,18 +130,20 @@ var MaterialRunboxActionSubmitLogDialog = function MaterialRunboxActionSubmitLog
126
130
  *
127
131
  */
128
132
  var renderCodebox = function renderCodebox() {
129
- return jsxRuntime.jsx(material.Box, {
130
- bgcolor: function bgcolor(theme) {
131
- return theme.palette.common.black;
133
+ return jsxRuntime.jsx(edsMaterial.Box, {
134
+ sx: {
135
+ bgcolor: function bgcolor(theme) {
136
+ return theme.palette.common.black;
137
+ },
138
+ borderRadius: '0.5rem',
139
+ padding: '1rem',
140
+ width: '100%',
141
+ overflow: 'auto',
142
+ fontFamily: 'Elice Digital Coding, monospace',
143
+ fontSize: '0.875rem',
144
+ whiteSpace: 'pre-wrap',
145
+ lineHeight: '1.375rem'
132
146
  },
133
- borderRadius: "0.5rem",
134
- padding: "1rem",
135
- width: "100%",
136
- overflow: "auto",
137
- fontFamily: "Elice Digital Coding, monospace",
138
- fontSize: "0.875rem",
139
- whiteSpace: "pre-wrap",
140
- lineHeight: "1.375rem",
141
147
  children: selectedGrade === null || selectedGrade === void 0 ? void 0 : selectedGrade.output
142
148
  });
143
149
  };
@@ -160,27 +166,29 @@ var MaterialRunboxActionSubmitLogDialog = function MaterialRunboxActionSubmitLog
160
166
  //
161
167
  //
162
168
  //
163
- return jsxRuntime.jsxs(material.Dialog, {
169
+ return jsxRuntime.jsxs(edsMaterial.Dialog, {
164
170
  fullWidth: true,
165
171
  maxWidth: "lg",
166
172
  open: isOpen,
167
173
  onClose: onClose,
168
- children: [jsxRuntime.jsx(material.DialogTitle, {
174
+ children: [jsxRuntime.jsx(edsMaterial.DialogTitle, {
169
175
  children: intl$1.formatMessage({
170
176
  id: 'runbox.action.submitLog.dialog.title'
171
177
  })
172
- }), jsxRuntime.jsx(material.DialogContent, {
173
- children: jsxRuntime.jsx(material.Stack, {
178
+ }), jsxRuntime.jsx(edsMaterial.DialogContent, {
179
+ children: jsxRuntime.jsx(edsMaterial.Stack, {
174
180
  direction: "row",
175
- gap: "0.5rem",
176
- overflow: "auto",
177
- maxHeight: "30rem",
181
+ sx: {
182
+ gap: '0.5rem',
183
+ overflow: 'auto',
184
+ maxHeight: '30rem'
185
+ },
178
186
  children: (grade === null || grade === void 0 ? void 0 : grade.length) ? jsxRuntime.jsxs(jsxRuntime.Fragment, {
179
187
  children: [renderGradeList(), renderCodebox()]
180
188
  }) : renderEmpty()
181
189
  })
182
- }), jsxRuntime.jsx(material.DialogActions, {
183
- children: jsxRuntime.jsx(material.Button, {
190
+ }), jsxRuntime.jsx(edsMaterial.DialogActions, {
191
+ children: jsxRuntime.jsx(edsMaterial.Button, {
184
192
  color: "inherit",
185
193
  onClick: onClose,
186
194
  children: intl$1.formatMessage({
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
6
6
  var jsxRuntime = require('react/jsx-runtime');
7
7
  var React = require('react');
8
+ var edsXSnackbar = require('@elice/eds-x-snackbar');
8
9
  var intl = require('@elice/intl');
9
- var muiXSnackbar = require('@elice/mui-x-snackbar');
10
10
  var openapiClientMaterialRunbox = require('@elice/openapi-client-material-runbox');
11
11
  var rxjs = require('rxjs');
12
12
  var operators = require('rxjs/operators');
@@ -37,7 +37,7 @@ var MaterialRunboxCommandContextProvider = function MaterialRunboxCommandContext
37
37
  runtime = _ref.runtime,
38
38
  courseId = _ref.courseId;
39
39
  var intl$1 = intl.useRawEliceIntl();
40
- var _useSnackbar = muiXSnackbar.useSnackbar(),
40
+ var _useSnackbar = edsXSnackbar.useSnackbar(),
41
41
  enqueueSnackbar = _useSnackbar.enqueueSnackbar;
42
42
  var runtimeId = runtime === null || runtime === void 0 ? void 0 : runtime.id;
43
43
  var materialRunboxApi = MaterialRunboxApiContext.useMaterialRunboxApiContext();
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
+ import type { ButtonProps } from '@elice/eds-material';
2
3
  import type { RunningRunbox } from '@elice/openapi-client-material-runbox';
3
- import type { ButtonProps } from '@mui/material';
4
4
  type OverlayOwnedButtonProps = 'children' | 'variant' | 'color' | 'startIcon' | 'endIcon' | 'sx' | 'disableRipple' | 'role' | 'tabIndex' | 'ref';
5
5
  /**
6
6
  * Props for the button reaching the runbox occupying the runtime. Defaults to an `a`;
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var jsxRuntime = require('react/jsx-runtime');
6
+ var edsKit = require('@elice/eds-kit');
7
+ var edsMaterial = require('@elice/eds-material');
6
8
  var intl = require('@elice/intl');
7
- var muiElements = require('@elice/mui-elements');
8
9
  var proSolidSvgIcons = require('@fortawesome/pro-solid-svg-icons');
9
- var material = require('@mui/material');
10
10
  var MaterialRunboxEnvResetButton = require('./MaterialRunboxEnvResetButton.js');
11
11
  var useRunboxDiskUsage = require('../hooks/useRunboxDiskUsage.js');
12
12
 
@@ -32,7 +32,7 @@ var MaterialRunboxDiskUsageAlert = function MaterialRunboxDiskUsageAlert(_ref) {
32
32
  //
33
33
  //
34
34
  //
35
- return jsxRuntime.jsx(material.Alert, {
35
+ return jsxRuntime.jsx(edsMaterial.Alert, {
36
36
  severity: severity,
37
37
  sx: {
38
38
  width: '100%',
@@ -43,14 +43,14 @@ var MaterialRunboxDiskUsageAlert = function MaterialRunboxDiskUsageAlert(_ref) {
43
43
  variant: "text",
44
44
  size: "small",
45
45
  color: "inherit",
46
- startIcon: jsxRuntime.jsx(muiElements.EliceIcon, {
46
+ startIcon: jsxRuntime.jsx(edsKit.FaIcon, {
47
47
  icon: proSolidSvgIcons.faArrowsRotate
48
48
  }),
49
49
  runtimeTemplateId: runtimeTemplateId,
50
50
  courseId: courseId,
51
51
  userId: userId
52
52
  }),
53
- children: jsxRuntime.jsx(material.Typography, {
53
+ children: jsxRuntime.jsx(edsMaterial.Typography, {
54
54
  variant: "body2",
55
55
  children: intl$1.formatMessage({
56
56
  id: "runbox.disk.usage.alert.".concat(severity)
@@ -5,10 +5,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
6
6
  var jsxRuntime = require('react/jsx-runtime');
7
7
  var reactUse = require('react-use');
8
+ var edsKit = require('@elice/eds-kit');
9
+ var edsMaterial = require('@elice/eds-material');
8
10
  var intl = require('@elice/intl');
9
- var muiElements = require('@elice/mui-elements');
10
11
  var proSolidSvgIcons = require('@fortawesome/pro-solid-svg-icons');
11
- var material = require('@mui/material');
12
12
  var useRunboxDiskUsage = require('../hooks/useRunboxDiskUsage.js');
13
13
 
14
14
  //
@@ -50,26 +50,30 @@ var MaterialRunboxDiskUsageDialog = function MaterialRunboxDiskUsageDialog(_ref)
50
50
  if (!severity) {
51
51
  return null;
52
52
  }
53
- return jsxRuntime.jsxs(material.Dialog, {
53
+ return jsxRuntime.jsxs(edsMaterial.Dialog, {
54
54
  fullWidth: true,
55
55
  open: !seenSeverities.includes(severity),
56
56
  maxWidth: "xs",
57
57
  onClose: handleClose,
58
- children: [jsxRuntime.jsx(material.DialogTitle, {
59
- children: jsxRuntime.jsxs(material.Stack, {
58
+ children: [jsxRuntime.jsx(edsMaterial.DialogTitle, {
59
+ children: jsxRuntime.jsxs(edsMaterial.Stack, {
60
60
  direction: "row",
61
- alignItems: "center",
62
- gap: "0.5rem",
63
- children: [jsxRuntime.jsx(muiElements.EliceIcon, {
61
+ sx: {
62
+ gap: '0.5rem',
63
+ alignItems: 'center'
64
+ },
65
+ children: [jsxRuntime.jsx(edsKit.FaIcon, {
64
66
  icon: severity === 'error' ? proSolidSvgIcons.faCircleExclamation : proSolidSvgIcons.faTriangleExclamation,
65
67
  color: severity
66
68
  }), intl$1.formatMessage({
67
69
  id: 'runbox.disk.usage.dialog.title'
68
70
  })]
69
71
  })
70
- }), jsxRuntime.jsx(material.DialogContent, {
71
- children: jsxRuntime.jsx(material.DialogContentText, {
72
- whiteSpace: "pre-line",
72
+ }), jsxRuntime.jsx(edsMaterial.DialogContent, {
73
+ children: jsxRuntime.jsx(edsMaterial.DialogContentText, {
74
+ sx: {
75
+ whiteSpace: 'pre-line'
76
+ },
73
77
  children: intl$1.formatMessage({
74
78
  id: "runbox.disk.usage.dialog.description.".concat(severity)
75
79
  }, {
@@ -83,8 +87,8 @@ var MaterialRunboxDiskUsageDialog = function MaterialRunboxDiskUsageDialog(_ref)
83
87
  })
84
88
  })
85
89
  })
86
- }), jsxRuntime.jsx(material.DialogActions, {
87
- children: jsxRuntime.jsx(material.Button, {
90
+ }), jsxRuntime.jsx(edsMaterial.DialogActions, {
91
+ children: jsxRuntime.jsx(edsMaterial.Button, {
88
92
  color: "inherit",
89
93
  onClick: handleClose,
90
94
  children: intl$1.formatMessage({
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import type { LoadingButtonProps } from '@mui/lab';
3
- export interface MaterialRunboxEnvResetButtonProps extends Omit<LoadingButtonProps, 'onClick' | 'loading'> {
2
+ import type { ButtonProps } from '@elice/eds-material';
3
+ export interface MaterialRunboxEnvResetButtonProps extends Omit<ButtonProps, 'onClick' | 'loading'> {
4
4
  runtimeTemplateId: string;
5
5
  courseId: number;
6
6
  userId?: number;
@@ -6,10 +6,9 @@ var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHel
6
6
  var tslib = require('tslib');
7
7
  var jsxRuntime = require('react/jsx-runtime');
8
8
  var React = require('react');
9
+ var edsMaterial = require('@elice/eds-material');
10
+ var edsXSnackbar = require('@elice/eds-x-snackbar');
9
11
  var intl = require('@elice/intl');
10
- var muiXSnackbar = require('@elice/mui-x-snackbar');
11
- var lab = require('@mui/lab');
12
- var material = require('@mui/material');
13
12
  var theme = require('../theme.js');
14
13
  var MaterialRunboxEnvResetDialog = require('./MaterialRunboxEnvResetDialog.js');
15
14
  var MaterialRunboxApiContext = require('../contexts/MaterialRunboxApiContext.js');
@@ -29,7 +28,7 @@ var MaterialRunboxEnvResetButton = function MaterialRunboxEnvResetButton(_a) {
29
28
  onSuccess = _a.onSuccess,
30
29
  props = tslib.__rest(_a, ["runtimeTemplateId", "courseId", "userId", "onSuccess"]);
31
30
  var intl$1 = intl.useRawEliceIntl();
32
- var _useSnackbar = muiXSnackbar.useSnackbar(),
31
+ var _useSnackbar = edsXSnackbar.useSnackbar(),
33
32
  enqueueSnackbar = _useSnackbar.enqueueSnackbar;
34
33
  var materialRunboxApi = MaterialRunboxApiContext.useMaterialRunboxApiContext();
35
34
  var _useMaterialRunboxCon = MaterialRunboxControlContext.useMaterialRunboxControlContext(),
@@ -125,7 +124,7 @@ var MaterialRunboxEnvResetButton = function MaterialRunboxEnvResetButton(_a) {
125
124
  //
126
125
  //
127
126
  return jsxRuntime.jsxs(jsxRuntime.Fragment, {
128
- children: [jsxRuntime.jsx(lab.LoadingButton, Object.assign({}, props, {
127
+ children: [jsxRuntime.jsx(edsMaterial.Button, Object.assign({}, props, {
129
128
  loading: isResetting,
130
129
  onClick: function onClick() {
131
130
  return setDialogOpened(true);
@@ -133,7 +132,7 @@ var MaterialRunboxEnvResetButton = function MaterialRunboxEnvResetButton(_a) {
133
132
  children: intl$1.formatMessage({
134
133
  id: 'runbox.disk.env_reset.title'
135
134
  })
136
- })), jsxRuntime.jsx(material.ThemeProvider, {
135
+ })), jsxRuntime.jsx(edsMaterial.ThemeProvider, {
137
136
  theme: theme.runboxDarkTheme,
138
137
  children: jsxRuntime.jsx(MaterialRunboxEnvResetDialog.default, {
139
138
  open: isDialogOpened,