@occmundial/occ-atomic 3.0.0-beta.57 → 3.0.0-beta.59

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,22 @@
1
+ # [3.0.0-beta.59](https://github.com/occmundial/occ-atomic/compare/v3.0.0-beta.58...v3.0.0-beta.59) (2024-09-10)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Remove margin bottom from slidedown wrapper ([7b90312](https://github.com/occmundial/occ-atomic/commit/7b90312aa7246e0e66f2f25a278f0bfa2e211106))
7
+ * Remove margin bottom from slidedown wrapper ([44e67ca](https://github.com/occmundial/occ-atomic/commit/44e67ca6b2e85f5d61cec6807e7edb0d55d7be2e))
8
+ * Remove margin bottom from slidedown wrapper ([47e3233](https://github.com/occmundial/occ-atomic/commit/47e323333ad15d01d629adc1dccbd2c79892411e))
9
+ * Remove margin bottom from slidedown wrapper ([b6ce89b](https://github.com/occmundial/occ-atomic/commit/b6ce89bcbd383dd038d2abe2635c4fd86adb396b))
10
+
11
+ # [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)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * Change id prev button ([540ee04](https://github.com/occmundial/occ-atomic/commit/540ee0452f6ee114325ed236d922b3c1b1869f19))
17
+ * Replace id value with id option ([f3348d8](https://github.com/occmundial/occ-atomic/commit/f3348d88c0565fbaee12562aea0a7346ff78bd7b))
18
+ * Replace id value with id option ([ba79747](https://github.com/occmundial/occ-atomic/commit/ba79747235d73ddb48228fc403d0b58ddea93a7d))
19
+
1
20
  # [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)
2
21
 
3
22
 
@@ -85,10 +85,8 @@ Object {
85
85
  },
86
86
  "display": "flex",
87
87
  "flexDirection": "column",
88
- "padding": Array [
89
- "40px",
90
- 0,
91
- ],
88
+ "paddingBottom": "40px",
89
+ "paddingTop": "40px",
92
90
  "rowGap": "24px",
93
91
  },
94
92
  "footerTransparent": Object {
@@ -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
 
@@ -137,7 +137,7 @@ function SlideDown(_ref) {
137
137
  }
138
138
  }, [prevExpanded, expanded]);
139
139
  return /*#__PURE__*/_react["default"].createElement("div", {
140
- className: "".concat(classes.wrapper).concat(divider ? " ".concat(classes.divider) : '')
140
+ className: divider ? classes.divider : ''
141
141
  }, /*#__PURE__*/_react["default"].createElement("div", _extends({
142
142
  className: "".concat(classes.button, " ").concat(textSize === 'lg' ? classes.largePadding : classes.normalPadding).concat(!noPadding ? " ".concat(classes.buttonPadding) : '').concat(disabled ? " ".concat(classes.disabled) : ''),
143
143
  role: "button"
@@ -65,9 +65,6 @@ Object {
65
65
  "text": Object {
66
66
  "cursor": "pointer",
67
67
  },
68
- "wrapper": Object {
69
- "marginBottom": "16px",
70
- },
71
68
  }
72
69
  `;
73
70
 
@@ -12,9 +12,6 @@ var _colors = _interopRequireDefault(require("../tokens/colors.json"));
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
13
 
14
14
  var _default = {
15
- wrapper: {
16
- marginBottom: _spacing["default"]['size-4']
17
- },
18
15
  button: {
19
16
  cursor: 'pointer'
20
17
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@occmundial/occ-atomic",
3
- "version": "3.0.0-beta.57",
3
+ "version": "3.0.0-beta.59",
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",