@cashub/ui 0.24.2 → 0.24.3

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.
@@ -15,7 +15,7 @@ var _ButtonGroup = _interopRequireDefault(require("../button/ButtonGroup"));
15
15
  var _Button = _interopRequireDefault(require("../button/Button"));
16
16
  var _ModalBackdrop = _interopRequireDefault(require("../backdrop/ModalBackdrop"));
17
17
  var _jsxRuntime = require("react/jsx-runtime");
18
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
18
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
19
19
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20
20
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
21
21
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -44,6 +44,7 @@ const ModalContent = _ref2 => {
44
44
  type,
45
45
  title,
46
46
  text,
47
+ list,
47
48
  confirmButtonText,
48
49
  cancelButtonText,
49
50
  showCancelButton,
@@ -85,6 +86,12 @@ const ModalContent = _ref2 => {
85
86
  children: title
86
87
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(Message, {
87
88
  children: text
89
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(Detail, {
90
+ children: list.length > 0 && list.map(item => {
91
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("li", {
92
+ children: [item.name, ", ", item.text, ",", item.version]
93
+ });
94
+ })
88
95
  })]
89
96
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ButtonGroup.default, {
90
97
  alignRight: true,
@@ -119,4 +126,5 @@ const Body = _styledComponents.default.div(_templateObject3 || (_templateObject3
119
126
  });
120
127
  const Title = _styledComponents.default.h2(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n font-size: var(--font-body1);\n font-weight: var(--font-bold);\n margin-bottom: var(--spacing-s);\n"])));
121
128
  const Message = _styledComponents.default.p(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n font-size: var(--font-body1);\n"])));
129
+ const Detail = _styledComponents.default.ul(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n margin-top: 30px;\n color: var(--font-on-background);\n"])));
122
130
  var _default = exports.default = StateModal;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cashub/ui",
3
- "version": "0.24.2",
3
+ "version": "0.24.3",
4
4
  "private": false,
5
5
  "author": "CasHUB Team",
6
6
  "description": "CasHUB UI components library",