@cashub/ui 0.35.2 → 0.37.0
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
|
@@ -52,7 +52,8 @@ const Table = _ref => {
|
|
|
52
52
|
translation,
|
|
53
53
|
beforeCreateRow,
|
|
54
54
|
popoverContainer,
|
|
55
|
-
centerFooter = false
|
|
55
|
+
centerFooter = false,
|
|
56
|
+
showPager = true
|
|
56
57
|
} = _ref;
|
|
57
58
|
const tableRef = (0, _react.useRef)(null);
|
|
58
59
|
const {
|
|
@@ -269,7 +270,7 @@ const Table = _ref => {
|
|
|
269
270
|
center: centerFooter,
|
|
270
271
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_TableFooterInfo.default, {
|
|
271
272
|
children: texts.info.replace('_START_', start).replace('_END_', end).replace('_TOTAL_', total)
|
|
272
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_TableFooterPager.default, {
|
|
273
|
+
}), showPager && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_TableFooterPager.default, {
|
|
273
274
|
center: centerFooter,
|
|
274
275
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Paginate.default, {
|
|
275
276
|
currentPage: currentPage,
|
package/tagify/TagifyStyle.js
CHANGED
|
@@ -10,5 +10,5 @@ var _templateObject;
|
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
11
|
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
12
12
|
// integrate tagify component
|
|
13
|
-
const TagifyStyle = (0, _styledComponents.createGlobalStyle)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .tagify__dropdown {\n &__wrapper {\n max-height: 320px;\n border: 1px solid var(--border-color);\n color: var(--font-on-background);\n background: var(--color-background1);\n box-shadow: var(--box-shadow);\n border-radius: var(--border-radius);\n padding: var(--spacing-s) 0;\n overflow-y: auto;\n overflow-x: visible;\n\n ", "\n }\n\n &__item {\n max-width: 100%;\n word-break: break-all;\n padding: 12px var(--spacing-s);\n background: var(--color-background1);\n transition: 0.3s;\n\n &:hover {\n background: var(--color-hover);\n }\n }\n }\n"])), _scrollbar.default);
|
|
13
|
+
const TagifyStyle = (0, _styledComponents.createGlobalStyle)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .tagify__dropdown {\n &__wrapper {\n max-height: 320px;\n border: 1px solid var(--border-color);\n color: var(--font-on-background);\n background: var(--color-background1);\n box-shadow: var(--box-shadow);\n border-radius: var(--border-radius);\n padding: var(--spacing-s) 0;\n overflow-y: auto;\n overflow-x: visible;\n\n ", "\n }\n\n &__item {\n max-width: 100%;\n word-break: break-all;\n padding: 12px var(--spacing-s);\n background: var(--color-background1);\n transition: 0.3s;\n\n &:hover {\n background: var(--color-hover);\n }\n }\n\n hr {\n border: none;\n border-top: 1px solid var(--border-color);\n margin: var(--spacing-s) 0;\n }\n }\n"])), _scrollbar.default);
|
|
14
14
|
var _default = exports.default = TagifyStyle;
|
package/tagify/index.js
CHANGED
|
@@ -15,6 +15,13 @@ Object.defineProperty(exports, "Tags", {
|
|
|
15
15
|
return _Tags.default;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
+
Object.defineProperty(exports, "getCreateButtonTemplate", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _getCreateButtonTemplate.default;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
18
24
|
var _Tags = _interopRequireDefault(require("./Tags"));
|
|
19
25
|
var _TagifyStyle = _interopRequireDefault(require("./TagifyStyle"));
|
|
26
|
+
var _getCreateButtonTemplate = _interopRequireDefault(require("./templates/getCreateButtonTemplate"));
|
|
20
27
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
const getCreateButtonTemplate = function (label) {
|
|
8
|
+
let props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
9
|
+
const attrString = Object.entries(props).map(_ref => {
|
|
10
|
+
let [key, val] = _ref;
|
|
11
|
+
return "".concat(key, "=\"").concat(val, "\"");
|
|
12
|
+
}).join(' ');
|
|
13
|
+
return "\n <div ".concat(attrString, " tabindex=\"0\" role=\"option\" data-value=\"__create__\">\n ").concat(label, "\n </div>");
|
|
14
|
+
};
|
|
15
|
+
var _default = exports.default = getCreateButtonTemplate;
|