@jobber/components 3.0.3-pre.1 → 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,17 +8,12 @@ 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-pre.1](https://github.com/GetJobber/atlantis/compare/@jobber/components@3.0.3-pre.0...@jobber/components@3.0.3-pre.1) (2023-02-10)
12
-
13
- **Note:** Version bump only for package @jobber/components
14
-
15
-
11
+ ## [3.0.3](https://github.com/GetJobber/atlantis/compare/@jobber/components@3.0.2...@jobber/components@3.0.3) (2023-02-13)
16
12
 
17
13
 
14
+ ### Bug Fixes
18
15
 
19
- ## [3.0.3-pre.0](https://github.com/GetJobber/atlantis/compare/@jobber/components@3.0.2...@jobber/components@3.0.3-pre.0) (2023-02-10)
20
-
21
- **Note:** Version bump only for package @jobber/components
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))
22
17
 
23
18
 
24
19
 
@@ -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.1",
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.1",
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",
@@ -27,8 +27,7 @@
27
27
  "@types/color": "^3.0.1",
28
28
  "@types/lodash": "^4.14.136",
29
29
  "@types/react-datepicker": "^4.8.0",
30
- "@types/react-router": "5.1.7",
31
- "@types/react-router-dom": "5.1.5",
30
+ "@types/react-router-dom": "^5.1.5",
32
31
  "@types/uuid": "^8.3.3",
33
32
  "@use-it/event-listener": "^0.1.3",
34
33
  "axios": "^0.21.2",
@@ -44,7 +43,7 @@
44
43
  "react-image-lightbox": "^5.1.1",
45
44
  "react-markdown": "^8.0.3",
46
45
  "react-popper": "^2.2.5",
47
- "react-router-dom": "~5.2.0",
46
+ "react-router-dom": "^5.2.0",
48
47
  "time-input-polyfill": "^1.0.7",
49
48
  "ts-xor": "^1.0.8",
50
49
  "uuid": "^8.3.2"
@@ -87,5 +86,5 @@
87
86
  "> 1%",
88
87
  "IE 10"
89
88
  ],
90
- "gitHead": "6ae8322cf73b376c0be4d64baca6fa3307a4ff29"
89
+ "gitHead": "8bddb1c26b0df41ea5f5a756ae1c8ba332f01de7"
91
90
  }