@techlabi/kycrazy-ui-kit 0.34.0 → 0.35.0

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,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.35.0
4
+
5
+ ### Fixes
6
+
7
+ - fix phone validation and custom select issues
8
+
3
9
  ## 0.34.0
4
10
 
5
11
  ### Fixes
@@ -0,0 +1,53 @@
1
+ function u(e, n) {
2
+ for (var r = 0; r < n.length; r++) {
3
+ const a = n[r];
4
+ if (typeof a != "string" && !Array.isArray(a)) {
5
+ for (const t in a)
6
+ if (t !== "default" && !(t in e)) {
7
+ const o = Object.getOwnPropertyDescriptor(a, t);
8
+ o && Object.defineProperty(e, t, o.get ? o : {
9
+ enumerable: !0,
10
+ get: () => a[t]
11
+ });
12
+ }
13
+ }
14
+ }
15
+ return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }));
16
+ }
17
+ var c = {};
18
+ c.createCanvas = function(e, n) {
19
+ return Object.assign(document.createElement("canvas"), { width: e, height: n });
20
+ };
21
+ c.createImageData = function(e, n, r) {
22
+ switch (arguments.length) {
23
+ case 0:
24
+ return new ImageData();
25
+ case 1:
26
+ return new ImageData(e);
27
+ case 2:
28
+ return new ImageData(e, n);
29
+ default:
30
+ return new ImageData(e, n, r);
31
+ }
32
+ };
33
+ var i = c.loadImage = function(e, n) {
34
+ return new Promise(function(r, a) {
35
+ const t = Object.assign(document.createElement("img"), n);
36
+ function o() {
37
+ t.onload = null, t.onerror = null;
38
+ }
39
+ t.onload = function() {
40
+ o(), r(t);
41
+ }, t.onerror = function() {
42
+ o(), a(new Error('Failed to load the image "' + e + '"'));
43
+ }, t.src = e;
44
+ });
45
+ };
46
+ const s = /* @__PURE__ */ u({
47
+ __proto__: null,
48
+ default: c,
49
+ loadImage: i
50
+ }, [c]);
51
+ export {
52
+ s as b
53
+ };