@occmundial/occ-atomic 3.0.0-beta.56 → 3.0.0-beta.58

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ # [3.0.0-beta.58](https://github.com/occmundial/occ-atomic/compare/v3.0.0-beta.57...v3.0.0-beta.58) (2024-09-06)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Change id prev button ([540ee04](https://github.com/occmundial/occ-atomic/commit/540ee0452f6ee114325ed236d922b3c1b1869f19))
7
+ * Replace id value with id option ([f3348d8](https://github.com/occmundial/occ-atomic/commit/f3348d88c0565fbaee12562aea0a7346ff78bd7b))
8
+ * Replace id value with id option ([ba79747](https://github.com/occmundial/occ-atomic/commit/ba79747235d73ddb48228fc403d0b58ddea93a7d))
9
+
10
+ # [3.0.0-beta.57](https://github.com/occmundial/occ-atomic/compare/v3.0.0-beta.56...v3.0.0-beta.57) (2024-09-04)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * Set only padding vertical for footer container ([5a593ab](https://github.com/occmundial/occ-atomic/commit/5a593ab8f785ef3f5c04c5718d925227d17df39d))
16
+
1
17
  # [3.0.0-beta.56](https://github.com/occmundial/occ-atomic/compare/v3.0.0-beta.55...v3.0.0-beta.56) (2024-09-04)
2
18
 
3
19
 
@@ -38,7 +38,8 @@ var _default = {
38
38
  footerContainer: (_footerContainer = {
39
39
  display: 'flex',
40
40
  flexDirection: 'column',
41
- padding: [_spacing["default"]['size-7'], 0],
41
+ paddingTop: _spacing["default"]['size-7'],
42
+ paddingBottom: _spacing["default"]['size-7'],
42
43
  rowGap: _spacing["default"]['size-5']
43
44
  }, _defineProperty(_footerContainer, "@media (min-width: ".concat(_grid["default"].xs, "px)"), {
44
45
  rowGap: _spacing["default"]['size-7']
@@ -150,7 +150,8 @@ var OrderBy = /*#__PURE__*/function (_React$Component) {
150
150
  key: option.value,
151
151
  onClick: function onClick() {
152
152
  _this2.onChange(option.value);
153
- }
153
+ },
154
+ id: option.id || ''
154
155
  }, /*#__PURE__*/_react["default"].createElement(_Text["default"], {
155
156
  className: option.value === selected ? classes.link : '',
156
157
  value: option.value
@@ -16,12 +16,14 @@ var Page = function Page(_ref) {
16
16
  onClick = _ref.onClick,
17
17
  selected = _ref.selected,
18
18
  page = _ref.page,
19
- disabled = _ref.disabled;
19
+ disabled = _ref.disabled,
20
+ id = _ref.id;
20
21
  return /*#__PURE__*/_react["default"].createElement("button", {
21
22
  className: "".concat(classes.page).concat(selected ? " ".concat(classes.active) : '').concat(disabled ? " ".concat(classes.disabled) : '').concat(!onClick ? " ".concat(classes["static"]) : ''),
22
23
  disabled: disabled,
23
24
  tabIndex: onClick ? 0 : -1,
24
- onClick: onClick
25
+ onClick: onClick,
26
+ id: id ? "".concat(id).concat(page) : undefined
25
27
  }, page);
26
28
  };
27
29
 
@@ -40,7 +40,8 @@ function Pager(_ref) {
40
40
  breakSymbol = _ref$breakSymbol === void 0 ? '...' : _ref$breakSymbol,
41
41
  hideNumbers = _ref.hideNumbers,
42
42
  disabled = _ref.disabled,
43
- className = _ref.className;
43
+ className = _ref.className,
44
+ id = _ref.id;
44
45
  var handlePageSelected = (0, _react.useCallback)(function (newPage) {
45
46
  if (currentPage === newPage) return;
46
47
  if (onPageChange) onPageChange(newPage);
@@ -132,7 +133,8 @@ function Pager(_ref) {
132
133
  theme: "secondary",
133
134
  onClick: handlePrevPage,
134
135
  icon: "arrow-left",
135
- size: !previousLabel ? 'lg' : 'sm'
136
+ size: !previousLabel ? 'lg' : 'sm',
137
+ id: id ? "".concat(id, "Previo") : undefined
136
138
  }, previousLabel), !hideNumbers && getPagination().map(function (_ref2) {
137
139
  var key = _ref2.key,
138
140
  type = _ref2.type,
@@ -146,14 +148,16 @@ function Pager(_ref) {
146
148
  },
147
149
  selected: selected,
148
150
  page: Number(key),
149
- disabled: disabled
151
+ disabled: disabled,
152
+ id: id
150
153
  });
151
154
  }
152
155
 
153
156
  return /*#__PURE__*/_react["default"].createElement(_Page["default"], {
154
157
  key: key,
155
158
  page: breakSymbol,
156
- disabled: disabled
159
+ disabled: disabled,
160
+ id: id
157
161
  });
158
162
  }), /*#__PURE__*/_react["default"].createElement(_Button["default"], {
159
163
  className: classes.next,
@@ -161,7 +165,8 @@ function Pager(_ref) {
161
165
  theme: "secondary",
162
166
  onClick: handleNextPage,
163
167
  iconRight: "arrow-right",
164
- size: !nextLabel ? 'lg' : 'sm'
168
+ size: !nextLabel ? 'lg' : 'sm',
169
+ id: id ? "".concat(id, "Siguiente") : undefined
165
170
  }, nextLabel));
166
171
  }
167
172
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@occmundial/occ-atomic",
3
- "version": "3.0.0-beta.56",
3
+ "version": "3.0.0-beta.58",
4
4
  "description": "Collection of shareable styled React components for OCC applications.",
5
5
  "homepage": "http://occmundial.github.io/occ-atomic",
6
6
  "main": "build/index.js",