@occmundial/occ-atomic 3.0.0-beta.71 → 3.0.0-beta.72

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/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # [3.0.0-beta.72](https://github.com/occmundial/occ-atomic/compare/v3.0.0-beta.71...v3.0.0-beta.72) (2025-08-28)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Fix import to export tokens ([f472135](https://github.com/occmundial/occ-atomic/commit/f4721359396da2ada6c9906613c2745b873a6d14))
7
+
8
+
9
+ ### Features
10
+
11
+ * Added props size and classname to modal buttons ([1ca430d](https://github.com/occmundial/occ-atomic/commit/1ca430d482a5362b9dcff08636d11ed660eb3ab2))
12
+
1
13
  # [3.0.0-beta.71](https://github.com/occmundial/occ-atomic/compare/v3.0.0-beta.70...v3.0.0-beta.71) (2025-02-06)
2
14
 
3
15
 
@@ -207,7 +207,8 @@ var Modal = /*#__PURE__*/function (_React$Component) {
207
207
  className: "".concat(classes.footer).concat(footerBorder ? " ".concat(classes.footerBorder) : '')
208
208
  }, secBtn && /*#__PURE__*/_react["default"].createElement(_Button["default"], _extends({
209
209
  type: secBtn.type,
210
- size: "lg",
210
+ size: secBtn.size ? mainBtn.size : "lg",
211
+ className: mainBtn.className,
211
212
  theme: "ghostGrey",
212
213
  onClick: secBtn.onClick,
213
214
  href: secBtn.href,
@@ -219,7 +220,8 @@ var Modal = /*#__PURE__*/function (_React$Component) {
219
220
  testId: "".concat(testId, "__button-secondary")
220
221
  }), secBtn.text), /*#__PURE__*/_react["default"].createElement(_Button["default"], _extends({
221
222
  type: mainBtn.type,
222
- size: "lg",
223
+ size: mainBtn.size ? mainBtn.size : "lg",
224
+ className: mainBtn.className,
223
225
  onClick: mainBtn.onClick,
224
226
  href: mainBtn.href,
225
227
  target: mainBtn.target,
@@ -262,6 +264,9 @@ Modal.propTypes = {
262
264
 
263
265
  /** Object with props for the main button. It will render a Button with the main theme. */
264
266
  mainBtn: _propTypes["default"].shape({
267
+ className: _propTypes["default"].string,
268
+ type: _propTypes["default"].oneOf(['button', 'submit', 'reset']),
269
+ size: _propTypes["default"].oneOf(['sm', 'md', 'lg', 'xl']),
265
270
  text: _propTypes["default"].string,
266
271
  onClick: _propTypes["default"].func,
267
272
  href: _propTypes["default"].string,
@@ -272,6 +277,9 @@ Modal.propTypes = {
272
277
 
273
278
  /** Object with props for the secondary button. It will render a Button with the ghostGrey theme. (NOTE: If you don't send a mainBtn object the secBtn will not work) */
274
279
  secBtn: _propTypes["default"].shape({
280
+ className: _propTypes["default"].string,
281
+ type: _propTypes["default"].oneOf(['button', 'submit', 'reset']),
282
+ size: _propTypes["default"].oneOf(['sm', 'md', 'lg', 'xl']),
275
283
  text: _propTypes["default"].string,
276
284
  onClick: _propTypes["default"].func,
277
285
  href: _propTypes["default"].string,
package/build/index.js CHANGED
@@ -1,7 +1,5 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
-
5
3
  var _Container = _interopRequireDefault(require("./Container"));
6
4
 
7
5
  var _Row = _interopRequireDefault(require("./Row"));
@@ -134,14 +132,10 @@ var _WindowSize = _interopRequireDefault(require("./WindowSize"));
134
132
 
135
133
  var _Provider = _interopRequireDefault(require("./Provider"));
136
134
 
137
- var tokens = _interopRequireWildcard(require("./tokens"));
135
+ var _tokens = _interopRequireDefault(require("./tokens"));
138
136
 
139
137
  var _module$exports;
140
138
 
141
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
142
-
143
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
144
-
145
139
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
146
140
 
147
141
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -202,7 +196,7 @@ module.exports = (_module$exports = {
202
196
  shadows: _shadows["default"],
203
197
  spacing: _spacing["default"],
204
198
  WindowSize: _WindowSize["default"],
205
- tokens: tokens,
199
+ tokens: _tokens["default"],
206
200
  AtomicProvider: _Provider["default"],
207
201
  Fab: _Fab["default"],
208
202
  Tabs: _Tabs["default"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@occmundial/occ-atomic",
3
- "version": "3.0.0-beta.71",
3
+ "version": "3.0.0-beta.72",
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",