gdx-ui 1.12.5 → 1.12.6
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/components/box/Box.js
CHANGED
|
@@ -105,8 +105,7 @@ var BoxToolbar = exports.BoxToolbar = function BoxToolbar(_ref4) {
|
|
|
105
105
|
borderBottom = _ref4$borderBottom === void 0 ? false : _ref4$borderBottom;
|
|
106
106
|
var _useContext3 = (0, _react.useContext)(BoxContext),
|
|
107
107
|
settings = _useContext3.settings;
|
|
108
|
-
var open = settings.open
|
|
109
|
-
isLoading = settings.isLoading;
|
|
108
|
+
var open = settings.open;
|
|
110
109
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
111
110
|
className: "box-toolbar \n ".concat(spacing ? 'content' : '', "\n ").concat(open ? '' : 'hidden', "\n ").concat(borderTop ? 'border-top' : '', "\n ").concat(borderBottom ? 'border-bottom' : '', "\n ")
|
|
112
111
|
}, children);
|
|
@@ -7,7 +7,7 @@ exports.IconButton = void 0;
|
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _reactFontawesome = require("@fortawesome/react-fontawesome");
|
|
10
|
-
var _excluded = ["icon", "className", "bg", "size", "color"];
|
|
10
|
+
var _excluded = ["icon", "type", "className", "bg", "size", "color"];
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12
12
|
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); }
|
|
13
13
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
@@ -19,6 +19,8 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
19
19
|
*/
|
|
20
20
|
var IconButton = exports.IconButton = function IconButton(_ref) {
|
|
21
21
|
var icon = _ref.icon,
|
|
22
|
+
_ref$type = _ref.type,
|
|
23
|
+
type = _ref$type === void 0 ? 'button' : _ref$type,
|
|
22
24
|
_ref$className = _ref.className,
|
|
23
25
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
24
26
|
_ref$bg = _ref.bg,
|
|
@@ -29,6 +31,7 @@ var IconButton = exports.IconButton = function IconButton(_ref) {
|
|
|
29
31
|
color = _ref$color === void 0 ? 'default' : _ref$color,
|
|
30
32
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
31
33
|
return /*#__PURE__*/_react["default"].createElement("button", _extends({
|
|
34
|
+
type: type,
|
|
32
35
|
className: "btn-circle btn-circle-bg-".concat(bg, " btn-circle-size-").concat(size, " ").concat(className)
|
|
33
36
|
}, props), /*#__PURE__*/_react["default"].createElement(_reactFontawesome.FontAwesomeIcon, {
|
|
34
37
|
className: "".concat(color ? "".concat(color, "-color") : ''),
|
|
@@ -37,6 +40,8 @@ var IconButton = exports.IconButton = function IconButton(_ref) {
|
|
|
37
40
|
};
|
|
38
41
|
IconButton.propTypes = {
|
|
39
42
|
icon: _propTypes["default"].any,
|
|
43
|
+
type: _propTypes["default"].string,
|
|
44
|
+
className: _propTypes["default"].string,
|
|
40
45
|
bg: _propTypes["default"].oneOf(['clear', 'solid']),
|
|
41
46
|
color: _propTypes["default"].oneOf(['default', 'invert', 'primary', 'alert', 'success']),
|
|
42
47
|
size: _propTypes["default"].oneOf(['default', 'small', 'large'])
|
|
@@ -130,7 +130,7 @@ var Pagination = exports.Pagination = function Pagination(_ref) {
|
|
|
130
130
|
icon: _freeSolidSvgIcons.faAngleRight
|
|
131
131
|
})))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
132
132
|
className: "pagination-note gray center"
|
|
133
|
-
}, "Mostrando ", recordsDisplayed, " de ", totalRecords, " registros. ", pages, "
|
|
133
|
+
}, "Mostrando ", recordsDisplayed < totalRecords ? recordsDisplayed : totalRecords, " de ", totalRecords, " registros. P\xE1g. ", page, " de ", pages, " ", pages > 1 ? 'páginas' : 'página', "."));
|
|
134
134
|
};
|
|
135
135
|
Pagination.propTypes = {
|
|
136
136
|
page: _propTypes["default"].number,
|