authscape 1.0.394 → 1.0.398

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
@@ -2216,7 +2216,7 @@ Object.defineProperty(exports, "__esModule", {
2216
2216
  });
2217
2217
  exports.Action = void 0;
2218
2218
  var _react = _interopRequireWildcard(require("react"));
2219
- var _excluded = ["active", "className", "cursor", "style"];
2219
+ var _excluded = ["active", "className", "cursor", "icon", "style"];
2220
2220
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
2221
2221
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
2222
2222
  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); }
@@ -2233,6 +2233,7 @@ var Action = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
2233
2233
  var active = _ref.active,
2234
2234
  className = _ref.className,
2235
2235
  cursor = _ref.cursor,
2236
+ icon = _ref.icon,
2236
2237
  style = _ref.style,
2237
2238
  props = _objectWithoutProperties(_ref, _excluded);
2238
2239
  return /*#__PURE__*/_react["default"].createElement("button", _extends({
@@ -2245,7 +2246,7 @@ var Action = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
2245
2246
  '--fill': active === null || active === void 0 ? void 0 : active.fill,
2246
2247
  '--background': active === null || active === void 0 ? void 0 : active.background
2247
2248
  })
2248
- }));
2249
+ }), icon());
2249
2250
  });
2250
2251
  exports.Action = Action;
2251
2252
  "use strict";
@@ -2340,22 +2341,23 @@ Object.defineProperty(exports, "__esModule", {
2340
2341
  });
2341
2342
  exports.Handle = void 0;
2342
2343
  var _react = _interopRequireWildcard(require("react"));
2344
+ var _DragIndicatorRounded = _interopRequireDefault(require("@mui/icons-material/DragIndicatorRounded"));
2345
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
2343
2346
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
2344
2347
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
2345
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); }
2346
2349
  // import {Action} from './Action';
2347
2350
 
2351
+ var icon = function icon() {
2352
+ return /*#__PURE__*/_react["default"].createElement(_DragIndicatorRounded["default"], null);
2353
+ };
2348
2354
  var Handle = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
2349
2355
  return /*#__PURE__*/_react["default"].createElement(Action, _extends({
2350
2356
  ref: ref,
2357
+ icon: icon,
2351
2358
  cursor: "grab",
2352
2359
  "data-cypress": "draggable-handle"
2353
- }, props), /*#__PURE__*/_react["default"].createElement("svg", {
2354
- viewBox: "0 0 20 20",
2355
- width: "12"
2356
- }, /*#__PURE__*/_react["default"].createElement("path", {
2357
- d: "M7 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 2zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 14zm6-8a2 2 0 1 0-.001-4.001A2 2 0 0 0 13 6zm0 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 14z"
2358
- })));
2360
+ }, props));
2359
2361
  });
2360
2362
  exports.Handle = Handle;
2361
2363
  "use strict";
@@ -3330,6 +3332,7 @@ Object.defineProperty(exports, "__esModule", {
3330
3332
  });
3331
3333
  exports.Remove = Remove;
3332
3334
  var _react = _interopRequireDefault(require("react"));
3335
+ var _DeleteRounded = _interopRequireDefault(require("@mui/icons-material/DeleteRounded"));
3333
3336
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
3334
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); }
3335
3338
  // import {Action} from './Action';
@@ -3340,13 +3343,7 @@ function Remove(props) {
3340
3343
  fill: 'rgba(255, 70, 70, 0.95)',
3341
3344
  background: 'rgba(255, 70, 70, 0.1)'
3342
3345
  }
3343
- }), /*#__PURE__*/_react["default"].createElement("svg", {
3344
- width: "8",
3345
- viewBox: "0 0 22 22",
3346
- xmlns: "http://www.w3.org/2000/svg"
3347
- }, /*#__PURE__*/_react["default"].createElement("path", {
3348
- d: "M2.99998 -0.000206962C2.7441 -0.000206962 2.48794 0.0972617 2.29294 0.292762L0.292945 2.29276C-0.0980552 2.68376 -0.0980552 3.31682 0.292945 3.70682L7.58591 10.9998L0.292945 18.2928C-0.0980552 18.6838 -0.0980552 19.3168 0.292945 19.7068L2.29294 21.7068C2.68394 22.0978 3.31701 22.0978 3.70701 21.7068L11 14.4139L18.2929 21.7068C18.6829 22.0978 19.317 22.0978 19.707 21.7068L21.707 19.7068C22.098 19.3158 22.098 18.6828 21.707 18.2928L14.414 10.9998L21.707 3.70682C22.098 3.31682 22.098 2.68276 21.707 2.29276L19.707 0.292762C19.316 -0.0982383 18.6829 -0.0982383 18.2929 0.292762L11 7.58573L3.70701 0.292762C3.51151 0.0972617 3.25585 -0.000206962 2.99998 -0.000206962Z"
3349
- })));
3346
+ }), /*#__PURE__*/_react["default"].createElement(_DeleteRounded["default"], null));
3350
3347
  }
3351
3348
  "use strict";
3352
3349
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "authscape",
3
- "version": "1.0.394",
3
+ "version": "1.0.398",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -2,7 +2,7 @@ import React, {forwardRef, CSSProperties} from 'react';
2
2
  // import classNames from 'classnames';
3
3
 
4
4
  export const Action = forwardRef(
5
- ({active, className, cursor, style, ...props}, ref) => {
5
+ ({active, className, cursor, icon, style, ...props}, ref) => {
6
6
  return (
7
7
  <button
8
8
  ref={ref}
@@ -17,7 +17,9 @@ export const Action = forwardRef(
17
17
  '--background': active?.background,
18
18
  }
19
19
  }
20
- />
20
+ >
21
+ {icon()}
22
+ </button>
21
23
  );
22
24
  }
23
25
  );
@@ -1,19 +1,21 @@
1
1
  import React, {forwardRef} from 'react';
2
-
2
+ import DragIndicatorRoundedIcon from '@mui/icons-material/DragIndicatorRounded';
3
3
  // import {Action} from './Action';
4
4
 
5
+ const icon = () => {
6
+ return <DragIndicatorRoundedIcon/>
7
+ }
8
+
5
9
  export const Handle = forwardRef(
6
10
  (props, ref) => {
7
11
  return (
8
12
  <Action
9
13
  ref={ref}
14
+ icon={icon}
10
15
  cursor="grab"
11
16
  data-cypress="draggable-handle"
12
17
  {...props}
13
18
  >
14
- <svg viewBox="0 0 20 20" width="12">
15
- <path d="M7 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 2zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 14zm6-8a2 2 0 1 0-.001-4.001A2 2 0 0 0 13 6zm0 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 14z"></path>
16
- </svg>
17
19
  </Action>
18
20
  );
19
21
  }
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
-
2
+ import DeleteRoundedIcon from '@mui/icons-material/DeleteRounded';
3
3
  // import {Action} from './Action';
4
4
 
5
5
  export function Remove(props) {
@@ -11,9 +11,7 @@ export function Remove(props) {
11
11
  background: 'rgba(255, 70, 70, 0.1)',
12
12
  }}
13
13
  >
14
- <svg width="8" viewBox="0 0 22 22" xmlns="http://www.w3.org/2000/svg">
15
- <path d="M2.99998 -0.000206962C2.7441 -0.000206962 2.48794 0.0972617 2.29294 0.292762L0.292945 2.29276C-0.0980552 2.68376 -0.0980552 3.31682 0.292945 3.70682L7.58591 10.9998L0.292945 18.2928C-0.0980552 18.6838 -0.0980552 19.3168 0.292945 19.7068L2.29294 21.7068C2.68394 22.0978 3.31701 22.0978 3.70701 21.7068L11 14.4139L18.2929 21.7068C18.6829 22.0978 19.317 22.0978 19.707 21.7068L21.707 19.7068C22.098 19.3158 22.098 18.6828 21.707 18.2928L14.414 10.9998L21.707 3.70682C22.098 3.31682 22.098 2.68276 21.707 2.29276L19.707 0.292762C19.316 -0.0982383 18.6829 -0.0982383 18.2929 0.292762L11 7.58573L3.70701 0.292762C3.51151 0.0972617 3.25585 -0.000206962 2.99998 -0.000206962Z" />
16
- </svg>
14
+ <DeleteRoundedIcon />
17
15
  </Action>
18
16
  );
19
17
  }