authscape 1.0.400 → 1.0.404
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/index.js
CHANGED
|
@@ -2348,13 +2348,13 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
2348
2348
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2349
2349
|
// import {Action} from './Action';
|
|
2350
2350
|
|
|
2351
|
-
var
|
|
2351
|
+
var dragIcon = function dragIcon() {
|
|
2352
2352
|
return /*#__PURE__*/_react["default"].createElement(_DragIndicatorRounded["default"], null);
|
|
2353
2353
|
};
|
|
2354
2354
|
var Handle = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
2355
2355
|
return /*#__PURE__*/_react["default"].createElement(Action, _extends({
|
|
2356
|
+
icon: dragIcon,
|
|
2356
2357
|
ref: ref,
|
|
2357
|
-
icon: icon,
|
|
2358
2358
|
cursor: "grab",
|
|
2359
2359
|
"data-cypress": "draggable-handle"
|
|
2360
2360
|
}, props));
|
|
@@ -3332,17 +3332,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3332
3332
|
});
|
|
3333
3333
|
exports.Remove = Remove;
|
|
3334
3334
|
var _react = _interopRequireDefault(require("react"));
|
|
3335
|
-
var
|
|
3335
|
+
var _DragIndicatorRounded = _interopRequireDefault(require("@mui/icons-material/DragIndicatorRounded"));
|
|
3336
3336
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
3337
3337
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3338
3338
|
// import {Action} from './Action';
|
|
3339
3339
|
|
|
3340
|
-
var
|
|
3341
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
3340
|
+
var removeIcon = function removeIcon() {
|
|
3341
|
+
return /*#__PURE__*/_react["default"].createElement(DeleteRoundedIcon, null);
|
|
3342
3342
|
};
|
|
3343
3343
|
function Remove(props) {
|
|
3344
3344
|
return /*#__PURE__*/_react["default"].createElement(Action, _extends({
|
|
3345
|
-
icon:
|
|
3345
|
+
icon: removeIcon
|
|
3346
3346
|
}, props, {
|
|
3347
3347
|
active: {
|
|
3348
3348
|
fill: 'rgba(255, 70, 70, 0.95)',
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import React, {forwardRef} from 'react';
|
|
|
2
2
|
import DragIndicatorRoundedIcon from '@mui/icons-material/DragIndicatorRounded';
|
|
3
3
|
// import {Action} from './Action';
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const dragIcon = () => {
|
|
6
6
|
return <DragIndicatorRoundedIcon/>
|
|
7
7
|
}
|
|
8
8
|
|
|
@@ -10,8 +10,8 @@ export const Handle = forwardRef(
|
|
|
10
10
|
(props, ref) => {
|
|
11
11
|
return (
|
|
12
12
|
<Action
|
|
13
|
+
icon={dragIcon}
|
|
13
14
|
ref={ref}
|
|
14
|
-
icon={icon}
|
|
15
15
|
cursor="grab"
|
|
16
16
|
data-cypress="draggable-handle"
|
|
17
17
|
{...props}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import DragIndicatorRoundedIcon from '@mui/icons-material/DragIndicatorRounded';
|
|
3
3
|
// import {Action} from './Action';
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const removeIcon = () => {
|
|
6
6
|
return <DeleteRoundedIcon/>
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
export function Remove(props) {
|
|
10
10
|
return (
|
|
11
11
|
<Action
|
|
12
|
-
icon={
|
|
12
|
+
icon={removeIcon}
|
|
13
13
|
{...props}
|
|
14
14
|
active={{
|
|
15
15
|
fill: 'rgba(255, 70, 70, 0.95)',
|