@cashub/ui 0.11.0 → 0.11.2
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/package.json
CHANGED
package/table/Table.js
CHANGED
|
@@ -69,7 +69,9 @@ var Table = function Table(_ref) {
|
|
|
69
69
|
onRowClick = _ref.onRowClick,
|
|
70
70
|
backgroundReverse = _ref.backgroundReverse,
|
|
71
71
|
translation = _ref.translation,
|
|
72
|
-
beforeCreateRow = _ref.beforeCreateRow
|
|
72
|
+
beforeCreateRow = _ref.beforeCreateRow,
|
|
73
|
+
_ref$centerFooter = _ref.centerFooter,
|
|
74
|
+
centerFooter = _ref$centerFooter === void 0 ? false : _ref$centerFooter;
|
|
73
75
|
var tableRef = (0, _react.useRef)(null);
|
|
74
76
|
|
|
75
77
|
var _useCalculateDataRang = (0, _hooks.useCalculateDataRange)(currentPage, limit, total),
|
|
@@ -239,9 +241,11 @@ var Table = function Table(_ref) {
|
|
|
239
241
|
children: tableRows || generateEmptyMessage()
|
|
240
242
|
})]
|
|
241
243
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_TableFooter.default, {
|
|
244
|
+
center: centerFooter,
|
|
242
245
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_TableFooterInfo.default, {
|
|
243
246
|
children: texts.info.replace('_START_', start).replace('_END_', end).replace('_TOTAL_', total)
|
|
244
247
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_TableFooterPager.default, {
|
|
248
|
+
center: centerFooter,
|
|
245
249
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Paginate.default, {
|
|
246
250
|
currentPage: currentPage,
|
|
247
251
|
totalCount: total,
|
|
@@ -13,7 +13,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
13
13
|
|
|
14
14
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
15
15
|
|
|
16
|
-
var TableFooter = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"])))
|
|
16
|
+
var TableFooter = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n ", "\n"])), function (_ref) {
|
|
17
|
+
var center = _ref.center;
|
|
18
|
+
return center && "\n flex-direction: column;\n justify-content: center;\n ";
|
|
19
|
+
});
|
|
17
20
|
|
|
18
21
|
var _default = TableFooter;
|
|
19
22
|
exports.default = _default;
|
|
@@ -13,7 +13,15 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
13
13
|
|
|
14
14
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
15
15
|
|
|
16
|
-
var TableFooterPager = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n\n
|
|
16
|
+
var TableFooterPager = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n\n ", "\n"])), function (_ref) {
|
|
17
|
+
var center = _ref.center;
|
|
18
|
+
|
|
19
|
+
if (center) {
|
|
20
|
+
return "\n flex-wrap: wrap;\n justify-content: center;\n\n > * {\n margin-top: var(--spacing-xs);\n }\n ";
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
return "\n > :last-child {\n margin-left: var(--spacing-xs);\n }\n ";
|
|
24
|
+
});
|
|
17
25
|
|
|
18
26
|
var _default = TableFooterPager;
|
|
19
27
|
exports.default = _default;
|
package/toast/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@import 'react-toastify/dist/ReactToastify.css';
|
|
1
|
+
@import 'react-toastify/dist/ReactToastify.css';
|