@invoicebox/ui 0.1.0-alpha.132 → 0.1.0-alpha.134
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/dist/index.d.ts +1 -1
- package/dist/index.js +6 -6
- package/dist/validate/index.d.ts +1 -3
- package/dist/validate/index.js +3 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -51,4 +51,4 @@ export { useInputFocus } from './hooks/useInputFocus';
|
|
|
51
51
|
export { useUnupdatableHandler } from './hooks/useUnupdatableHandler';
|
|
52
52
|
export { breakpoints } from './breakpoints';
|
|
53
53
|
export { useMobile, useTablet, useLargeTablet, useMiniLaptop } from './hooks/useMedia';
|
|
54
|
-
export {
|
|
54
|
+
export { Validate } from './validate';
|
package/dist/index.js
CHANGED
|
@@ -195,6 +195,12 @@ Object.defineProperty(exports, "Typography", {
|
|
|
195
195
|
return _Typography.Typography;
|
|
196
196
|
}
|
|
197
197
|
});
|
|
198
|
+
Object.defineProperty(exports, "Validate", {
|
|
199
|
+
enumerable: true,
|
|
200
|
+
get: function get() {
|
|
201
|
+
return _validate.Validate;
|
|
202
|
+
}
|
|
203
|
+
});
|
|
198
204
|
Object.defineProperty(exports, "WarningIcon", {
|
|
199
205
|
enumerable: true,
|
|
200
206
|
get: function get() {
|
|
@@ -267,12 +273,6 @@ Object.defineProperty(exports, "useUnupdatableHandler", {
|
|
|
267
273
|
return _useUnupdatableHandler.useUnupdatableHandler;
|
|
268
274
|
}
|
|
269
275
|
});
|
|
270
|
-
Object.defineProperty(exports, "validate", {
|
|
271
|
-
enumerable: true,
|
|
272
|
-
get: function get() {
|
|
273
|
-
return _validate.validate;
|
|
274
|
-
}
|
|
275
|
-
});
|
|
276
276
|
var _Skeleton = require("./components/common/Skeleton");
|
|
277
277
|
var _InvoiceboxLoader = require("./components/common/InvoiceboxLoader");
|
|
278
278
|
var _Typography = require("./components/common/Typography");
|
package/dist/validate/index.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import * as yup from 'yup';
|
|
2
|
-
declare class Validate {
|
|
2
|
+
export declare class Validate {
|
|
3
3
|
static vatNumber(value: string, path: string, countryId: string, createError: (params?: yup.CreateErrorOptions) => yup.ValidationError): true | yup.ValidationError;
|
|
4
4
|
static taxRegistrationReasonCode(value: string, path: string, createError: (params?: yup.CreateErrorOptions) => yup.ValidationError): true | yup.ValidationError;
|
|
5
5
|
}
|
|
6
|
-
export declare const validate: Validate;
|
|
7
|
-
export {};
|
package/dist/validate/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.Validate = void 0;
|
|
7
7
|
var _vatNumberValidateHelpers = require("./utils/vatNumberValidateHelpers");
|
|
8
8
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
9
9
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
@@ -11,7 +11,7 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
|
|
|
11
11
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
12
12
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
13
13
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
14
|
-
var Validate = /*#__PURE__*/function () {
|
|
14
|
+
var Validate = exports.Validate = /*#__PURE__*/function () {
|
|
15
15
|
function Validate() {
|
|
16
16
|
_classCallCheck(this, Validate);
|
|
17
17
|
}
|
|
@@ -76,5 +76,4 @@ var Validate = /*#__PURE__*/function () {
|
|
|
76
76
|
return true;
|
|
77
77
|
}
|
|
78
78
|
}]);
|
|
79
|
-
}();
|
|
80
|
-
var validate = exports.validate = new Validate();
|
|
79
|
+
}();
|