@jobber/components 3.0.3-pre.2 → 3.0.3

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
@@ -8,6 +8,17 @@ menu: Changelog
8
8
  All notable changes to this project will be documented in this file.
9
9
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
10
10
 
11
+ ## [3.0.3](https://github.com/GetJobber/atlantis/compare/@jobber/components@3.0.2...@jobber/components@3.0.3) (2023-02-13)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * **components:** Remove default value for prop size in ConfirmationModal ([#1022](https://github.com/GetJobber/atlantis/issues/1022)) ([33fccb9](https://github.com/GetJobber/atlantis/commit/33fccb9aa673645273ae3f067d3ac7e5082913b6))
17
+
18
+
19
+
20
+
21
+
11
22
  ## [3.0.2](https://github.com/GetJobber/atlantis/compare/@jobber/components@3.0.1...@jobber/components@3.0.2) (2023-02-10)
12
23
 
13
24
  **Note:** Version bump only for package @jobber/components
@@ -529,7 +529,7 @@ function Chips(props) {
529
529
  function Chip(props) {
530
530
  // Throw error when <Chip /> gets used outside of the <Chips />
531
531
  jobberHooks.useAssert(true, "`<Chip>` component can only be used inside `<Chips>`");
532
- return React__default["default"].createElement("div", null);
532
+ return React__default["default"].createElement(React__default["default"].Fragment, null);
533
533
  }
534
534
 
535
535
  exports.Chip = Chip;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var ConfirmationModal = require('../ConfirmationModal-778e6512.js');
5
+ var ConfirmationModal = require('../ConfirmationModal-c9dc96c6.js');
6
6
  require('../tslib.es6-5b50eb8e.js');
7
7
  require('react');
8
8
  require('@jobber/hooks');
@@ -28,8 +28,8 @@ function confirmationModalReducer(state, action) {
28
28
  }
29
29
  }
30
30
  var ConfirmationModal = React.forwardRef(function ConfirmationModalInternal(_a, ref) {
31
- var title = _a.title, message = _a.message, _b = _a.open, open = _b === void 0 ? false : _b, _c = _a.confirmLabel, confirmLabel = _c === void 0 ? "Confirm" : _c, _d = _a.cancelLabel, cancelLabel = _d === void 0 ? "Cancel" : _d, onConfirm = _a.onConfirm, onCancel = _a.onCancel, onRequestClose = _a.onRequestClose, _e = _a.variation, variation = _e === void 0 ? "work" : _e, _f = _a.size, size = _f === void 0 ? "small" : _f, children = _a.children;
32
- var _g = tslib_es6.__read(React.useReducer(confirmationModalReducer, {
31
+ var title = _a.title, message = _a.message, _b = _a.open, open = _b === void 0 ? false : _b, _c = _a.confirmLabel, confirmLabel = _c === void 0 ? "Confirm" : _c, _d = _a.cancelLabel, cancelLabel = _d === void 0 ? "Cancel" : _d, onConfirm = _a.onConfirm, onCancel = _a.onCancel, onRequestClose = _a.onRequestClose, _e = _a.variation, variation = _e === void 0 ? "work" : _e, size = _a.size, children = _a.children;
32
+ var _f = tslib_es6.__read(React.useReducer(confirmationModalReducer, {
33
33
  title: title,
34
34
  message: message,
35
35
  open: false,
@@ -37,7 +37,7 @@ var ConfirmationModal = React.forwardRef(function ConfirmationModalInternal(_a,
37
37
  cancelLabel: cancelLabel,
38
38
  onConfirm: onConfirm,
39
39
  onCancel: onCancel,
40
- }), 2), state = _g[0], dispatch = _g[1];
40
+ }), 2), state = _f[0], dispatch = _f[1];
41
41
  // Expose a `show` method through this component's ref.
42
42
  React.useImperativeHandle(ref, function () { return ({
43
43
  show: function (_a) {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var FormatFile = require('../FormatFile-62edfcd4.js');
5
+ var FormatFile = require('../FormatFile-8d3b95d6.js');
6
6
  require('react');
7
7
  require('classnames');
8
8
  require('filesize');
@@ -13,7 +13,7 @@ require('react-router-dom');
13
13
  require('../Icon-d5ad1a6d.js');
14
14
  require('@jobber/design');
15
15
  require('../Typography-fbe0ed6e.js');
16
- require('../ConfirmationModal-778e6512.js');
16
+ require('../ConfirmationModal-c9dc96c6.js');
17
17
  require('@jobber/hooks');
18
18
  require('../Modal-eb97d4c3.js');
19
19
  require('react-dom');
@@ -6,7 +6,7 @@ var getHumanReadableFileSize = require('filesize');
6
6
  var styleInject_es = require('./style-inject.es-dcee06b6.js');
7
7
  var tslib_es6 = require('./tslib.es6-5b50eb8e.js');
8
8
  var Button = require('./Button-cd30df0f.js');
9
- var ConfirmationModal = require('./ConfirmationModal-778e6512.js');
9
+ var ConfirmationModal = require('./ConfirmationModal-c9dc96c6.js');
10
10
  var Icon = require('./Icon-d5ad1a6d.js');
11
11
  var Typography = require('./Typography-fbe0ed6e.js');
12
12
  var Text = require('./Text-e012fb46.js');
@@ -7,12 +7,12 @@ var React = require('react');
7
7
  var classnames = require('classnames');
8
8
  var styleInject_es = require('../style-inject.es-dcee06b6.js');
9
9
  var LightBox = require('../LightBox-6aea2128.js');
10
- var FormatFile = require('../FormatFile-62edfcd4.js');
10
+ var FormatFile = require('../FormatFile-8d3b95d6.js');
11
11
  var Button = require('../Button-cd30df0f.js');
12
12
  require('react-image-lightbox');
13
13
  require('react-image-lightbox/style.css');
14
14
  require('filesize');
15
- require('../ConfirmationModal-778e6512.js');
15
+ require('../ConfirmationModal-c9dc96c6.js');
16
16
  require('@jobber/hooks');
17
17
  require('../Modal-eb97d4c3.js');
18
18
  require('react-dom');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components",
3
- "version": "3.0.3-pre.2+a045d54b",
3
+ "version": "3.0.3",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -18,7 +18,7 @@
18
18
  "dist/*"
19
19
  ],
20
20
  "dependencies": {
21
- "@jobber/design": "^0.28.3-pre.2+a045d54b",
21
+ "@jobber/design": "^0.28.2",
22
22
  "@jobber/formatters": "^0.2.0",
23
23
  "@jobber/hooks": "^1.12.1",
24
24
  "@popperjs/core": "^2.0.6",
@@ -86,5 +86,5 @@
86
86
  "> 1%",
87
87
  "IE 10"
88
88
  ],
89
- "gitHead": "a045d54b3697c071d721d0bbbcfc306810ca642c"
89
+ "gitHead": "8bddb1c26b0df41ea5f5a756ae1c8ba332f01de7"
90
90
  }