@blocklet/launcher-workflow 2.3.97 → 2.3.99
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/es/components/checkbox.js +5 -39
- package/lib/components/checkbox.js +5 -39
- package/package.json +12 -12
|
@@ -1,45 +1,11 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import styled from '@emotion/styled';
|
|
3
2
|
import Tooltip from '@mui/material/Tooltip';
|
|
4
3
|
import PropTypes from 'prop-types';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
fill: "#1DC1C7"
|
|
11
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
12
|
-
d: "m5.474 10.646 2.586 2.586 6.465-6.465",
|
|
13
|
-
fill: "#1DC1C7"
|
|
14
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
15
|
-
fillRule: "evenodd",
|
|
16
|
-
clipRule: "evenodd",
|
|
17
|
-
d: "M15.233 6.06a1 1 0 0 1 0 1.415L8.768 13.94a1 1 0 0 1-1.415 0l-2.586-2.586a1 1 0 1 1 1.415-1.415l1.878 1.88 5.758-5.759a1 1 0 0 1 1.415 0Z",
|
|
18
|
-
fill: "#fff"
|
|
19
|
-
})]
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
CheckedIcon.defaultProps = {
|
|
23
|
-
width: "20",
|
|
24
|
-
height: "20",
|
|
25
|
-
fill: "none",
|
|
26
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
27
|
-
};
|
|
28
|
-
var UncheckedIcon = function UncheckedIcon(props) {
|
|
29
|
-
return /*#__PURE__*/_jsx("svg", {
|
|
30
|
-
...props,
|
|
31
|
-
children: /*#__PURE__*/_jsx("path", {
|
|
32
|
-
d: "M19.5 10a9.5 9.5 0 0 1-9.5 9.5A9.5 9.5 0 0 1 .5 10 9.5 9.5 0 0 1 10 .5a9.5 9.5 0 0 1 9.5 9.5Z",
|
|
33
|
-
stroke: "#DDD"
|
|
34
|
-
})
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
UncheckedIcon.defaultProps = {
|
|
38
|
-
width: "20",
|
|
39
|
-
height: "20",
|
|
40
|
-
fill: "none",
|
|
41
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
42
|
-
};
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line import/no-unresolved
|
|
6
|
+
import CheckedIcon from '../assets/images/checkbox-checked.svg?react';
|
|
7
|
+
// eslint-disable-next-line import/no-unresolved
|
|
8
|
+
import UncheckedIcon from '../assets/images/checkbox-unchecked.svg?react';
|
|
43
9
|
import { useLocaleContext } from '../contexts/locale';
|
|
44
10
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
45
11
|
export default function CheckBox({
|
|
@@ -4,14 +4,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = CheckBox;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
7
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
8
|
var _Tooltip = _interopRequireDefault(require("@mui/material/Tooltip"));
|
|
10
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
+
var _checkboxChecked = _interopRequireDefault(require("../assets/images/checkbox-checked.svg?react"));
|
|
11
|
+
var _checkboxUnchecked = _interopRequireDefault(require("../assets/images/checkbox-unchecked.svg?react"));
|
|
11
12
|
var _locale = require("../contexts/locale");
|
|
12
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
14
|
var _templateObject;
|
|
14
|
-
const _excluded = ["label", "checked", "showHint"];
|
|
15
|
+
const _excluded = ["label", "checked", "showHint"]; // eslint-disable-next-line import/no-unresolved
|
|
16
|
+
// eslint-disable-next-line import/no-unresolved
|
|
15
17
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
18
|
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
17
19
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -21,42 +23,6 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
21
23
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
22
24
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
23
25
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
24
|
-
var CheckedIcon = function CheckedIcon(props) {
|
|
25
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("svg", _objectSpread(_objectSpread({}, props), {}, {
|
|
26
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
27
|
-
d: "M10 20c5.523 0 10-4.477 10-10S15.523 0 10 0 0 4.477 0 10s4.477 10 10 10Z",
|
|
28
|
-
fill: "#1DC1C7"
|
|
29
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
30
|
-
d: "m5.474 10.646 2.586 2.586 6.465-6.465",
|
|
31
|
-
fill: "#1DC1C7"
|
|
32
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
33
|
-
fillRule: "evenodd",
|
|
34
|
-
clipRule: "evenodd",
|
|
35
|
-
d: "M15.233 6.06a1 1 0 0 1 0 1.415L8.768 13.94a1 1 0 0 1-1.415 0l-2.586-2.586a1 1 0 1 1 1.415-1.415l1.878 1.88 5.758-5.759a1 1 0 0 1 1.415 0Z",
|
|
36
|
-
fill: "#fff"
|
|
37
|
-
})]
|
|
38
|
-
}));
|
|
39
|
-
};
|
|
40
|
-
CheckedIcon.defaultProps = {
|
|
41
|
-
width: "20",
|
|
42
|
-
height: "20",
|
|
43
|
-
fill: "none",
|
|
44
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
45
|
-
};
|
|
46
|
-
var UncheckedIcon = function UncheckedIcon(props) {
|
|
47
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", _objectSpread(_objectSpread({}, props), {}, {
|
|
48
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
49
|
-
d: "M19.5 10a9.5 9.5 0 0 1-9.5 9.5A9.5 9.5 0 0 1 .5 10 9.5 9.5 0 0 1 10 .5a9.5 9.5 0 0 1 9.5 9.5Z",
|
|
50
|
-
stroke: "#DDD"
|
|
51
|
-
})
|
|
52
|
-
}));
|
|
53
|
-
};
|
|
54
|
-
UncheckedIcon.defaultProps = {
|
|
55
|
-
width: "20",
|
|
56
|
-
height: "20",
|
|
57
|
-
fill: "none",
|
|
58
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
59
|
-
};
|
|
60
26
|
function CheckBox(_ref) {
|
|
61
27
|
let {
|
|
62
28
|
label,
|
|
@@ -78,7 +44,7 @@ function CheckBox(_ref) {
|
|
|
78
44
|
display: 'flex',
|
|
79
45
|
alignItems: 'center'
|
|
80
46
|
},
|
|
81
|
-
children: checked ? /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
47
|
+
children: checked ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkboxChecked.default, {}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkboxUnchecked.default, {})
|
|
82
48
|
})
|
|
83
49
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
84
50
|
className: "label",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/launcher-workflow",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.99",
|
|
4
4
|
"description": "Purchase components for Launcher UI",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -41,22 +41,22 @@
|
|
|
41
41
|
"react": ">=18.1.0"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@arcblock/did-connect": "^2.
|
|
45
|
-
"@arcblock/icons": "^2.
|
|
46
|
-
"@arcblock/license": "^2.
|
|
47
|
-
"@arcblock/react-hooks": "^2.
|
|
48
|
-
"@arcblock/ux": "^2.
|
|
49
|
-
"@blocklet/launcher-layout": "^2.
|
|
50
|
-
"@blocklet/launcher-util": "2.3.
|
|
51
|
-
"@blocklet/launcher-ux": "2.3.
|
|
44
|
+
"@arcblock/did-connect": "^2.12.12",
|
|
45
|
+
"@arcblock/icons": "^2.12.12",
|
|
46
|
+
"@arcblock/license": "^2.12.12",
|
|
47
|
+
"@arcblock/react-hooks": "^2.12.12",
|
|
48
|
+
"@arcblock/ux": "^2.12.12",
|
|
49
|
+
"@blocklet/launcher-layout": "^2.12.12",
|
|
50
|
+
"@blocklet/launcher-util": "2.3.99",
|
|
51
|
+
"@blocklet/launcher-ux": "2.3.99",
|
|
52
52
|
"@blocklet/payment": "^1.14.8",
|
|
53
|
-
"@blocklet/payment-react": "^1.18.
|
|
53
|
+
"@blocklet/payment-react": "^1.18.13",
|
|
54
54
|
"@emotion/react": "^11.14.0",
|
|
55
55
|
"@emotion/styled": "^11.14.0",
|
|
56
56
|
"@mui/icons-material": "^5.16.14",
|
|
57
57
|
"@mui/lab": "^5.0.0-alpha.175",
|
|
58
58
|
"@mui/material": "^5.16.14",
|
|
59
|
-
"@ocap/util": "^1.19.
|
|
59
|
+
"@ocap/util": "^1.19.15",
|
|
60
60
|
"@splidejs/react-splide": "^0.7.12",
|
|
61
61
|
"@splidejs/splide": "^4.1.4",
|
|
62
62
|
"@splidejs/splide-extension-grid": "^0.4.1",
|
|
@@ -105,5 +105,5 @@
|
|
|
105
105
|
"require": "./lib/locales/index.js"
|
|
106
106
|
}
|
|
107
107
|
},
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "710f7b75f53b0470f1d792322002f8e4196ea58b"
|
|
109
109
|
}
|