ab-ui-library 1.42.7 → 1.42.8
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/components/DatePicker/RangeDatePicker.js +1 -0
- package/components/DatePicker/SimpleDatePicker.js +1 -0
- package/components/DatePicker/TimePicker.js +1 -0
- package/components/DatePicker/hooks.js +3 -335
- package/components/DatePicker/index.js +1 -0
- package/components/FormContainer/FormContainer.js +44 -10
- package/components/FormContainer/index.js +2 -1
- package/index-c044b88c.js +334 -0
- package/index.js +2 -1
- package/package.json +1 -2
|
@@ -43,6 +43,7 @@ import '../SVGIcons/IconEyeOff.js';
|
|
|
43
43
|
import '../SVGIcons/IconEyeOn.js';
|
|
44
44
|
import '../Divider/Divider.js';
|
|
45
45
|
import '../Tooltip/Tooltip.js';
|
|
46
|
+
import '../../index-c044b88c.js';
|
|
46
47
|
|
|
47
48
|
var _excluded = ["value", "currentDates", "setFieldValue", "name", "changeHandler", "dataId", "format", "maxDate", "minDate", "locale", "dayjsLocale", "disabled", "placeholderText", "label", "hasError", "required"];
|
|
48
49
|
var RangeDatePicker = /*#__PURE__*/forwardRef(function (props) {
|
|
@@ -82,6 +82,7 @@ import '../SVGIcons/IconCaretDownFilled.js';
|
|
|
82
82
|
import '../SVGIcons/IconCaretUpFilled.js';
|
|
83
83
|
import '../../hooks/useGetHasBottomSpace.js';
|
|
84
84
|
import '../../hooks/useChangePositionsOnScroll.js';
|
|
85
|
+
import '../../index-c044b88c.js';
|
|
85
86
|
|
|
86
87
|
var _excluded = ["value", "currentDate", "setFieldValue", "name", "label", "size", "locale", "changeHandler", "format", "dayjsLocale", "required", "dataId", "hasError", "placeholderText", "months", "minDate", "maxDate", "dataIdPrefix", "helperText"];
|
|
87
88
|
var SimpleDatePicker = function SimpleDatePicker(props) {
|
|
@@ -42,6 +42,7 @@ import '../SVGIcons/IconEyeOff.js';
|
|
|
42
42
|
import '../SVGIcons/IconEyeOn.js';
|
|
43
43
|
import '../Divider/Divider.js';
|
|
44
44
|
import '../Tooltip/Tooltip.js';
|
|
45
|
+
import '../../index-c044b88c.js';
|
|
45
46
|
|
|
46
47
|
var _excluded = ["value", "currentTime", "name", "setFieldValue", "label", "size", "dataId", "changeHandler", "required", "format", "locale", "dayjsLocale", "placeholderText", "hasError"];
|
|
47
48
|
var TimePicker = function TimePicker(props) {
|
|
@@ -1,344 +1,12 @@
|
|
|
1
|
+
import { _ as _asyncToGenerator, r as regenerator } from '../../index-c044b88c.js';
|
|
1
2
|
import { _ as _slicedToArray } from '../../slicedToArray-e10dcad6.js';
|
|
2
3
|
import { useState, useEffect } from 'react';
|
|
3
4
|
import { registerLocale } from 'react-datepicker';
|
|
4
5
|
import dayjs, { locale as locale$3 } from 'dayjs';
|
|
5
|
-
import { _ as _typeof
|
|
6
|
-
|
|
7
|
-
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
8
|
-
try {
|
|
9
|
-
var i = n[a](c),
|
|
10
|
-
u = i.value;
|
|
11
|
-
} catch (n) {
|
|
12
|
-
return void e(n);
|
|
13
|
-
}
|
|
14
|
-
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
15
|
-
}
|
|
16
|
-
function _asyncToGenerator(n) {
|
|
17
|
-
return function () {
|
|
18
|
-
var t = this,
|
|
19
|
-
e = arguments;
|
|
20
|
-
return new Promise(function (r, o) {
|
|
21
|
-
var a = n.apply(t, e);
|
|
22
|
-
function _next(n) {
|
|
23
|
-
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
24
|
-
}
|
|
25
|
-
function _throw(n) {
|
|
26
|
-
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
27
|
-
}
|
|
28
|
-
_next(void 0);
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
}
|
|
6
|
+
import { _ as _typeof } from '../../typeof-5f3abdcb.js';
|
|
32
7
|
|
|
33
8
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
34
9
|
|
|
35
|
-
var regeneratorRuntime$1 = {exports: {}};
|
|
36
|
-
|
|
37
|
-
var _typeof = {exports: {}};
|
|
38
|
-
|
|
39
|
-
(function (module) {
|
|
40
|
-
function _typeof(o) {
|
|
41
|
-
"@babel/helpers - typeof";
|
|
42
|
-
|
|
43
|
-
return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
44
|
-
return typeof o;
|
|
45
|
-
} : function (o) {
|
|
46
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
47
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
|
|
48
|
-
}
|
|
49
|
-
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
50
|
-
} (_typeof));
|
|
51
|
-
|
|
52
|
-
(function (module) {
|
|
53
|
-
var _typeof$1 = _typeof.exports["default"];
|
|
54
|
-
function _regeneratorRuntime() {
|
|
55
|
-
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
|
56
|
-
return r;
|
|
57
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
58
|
-
var t,
|
|
59
|
-
r = {},
|
|
60
|
-
e = Object.prototype,
|
|
61
|
-
n = e.hasOwnProperty,
|
|
62
|
-
o = "function" == typeof Symbol ? Symbol : {},
|
|
63
|
-
i = o.iterator || "@@iterator",
|
|
64
|
-
a = o.asyncIterator || "@@asyncIterator",
|
|
65
|
-
u = o.toStringTag || "@@toStringTag";
|
|
66
|
-
function c(t, r, e, n) {
|
|
67
|
-
return Object.defineProperty(t, r, {
|
|
68
|
-
value: e,
|
|
69
|
-
enumerable: !n,
|
|
70
|
-
configurable: !n,
|
|
71
|
-
writable: !n
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
try {
|
|
75
|
-
c({}, "");
|
|
76
|
-
} catch (t) {
|
|
77
|
-
c = function c(t, r, e) {
|
|
78
|
-
return t[r] = e;
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
function h(r, e, n, o) {
|
|
82
|
-
var i = e && e.prototype instanceof Generator ? e : Generator,
|
|
83
|
-
a = Object.create(i.prototype);
|
|
84
|
-
return c(a, "_invoke", function (r, e, n) {
|
|
85
|
-
var o = 1;
|
|
86
|
-
return function (i, a) {
|
|
87
|
-
if (3 === o) throw Error("Generator is already running");
|
|
88
|
-
if (4 === o) {
|
|
89
|
-
if ("throw" === i) throw a;
|
|
90
|
-
return {
|
|
91
|
-
value: t,
|
|
92
|
-
done: !0
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
for (n.method = i, n.arg = a;;) {
|
|
96
|
-
var u = n.delegate;
|
|
97
|
-
if (u) {
|
|
98
|
-
var c = d(u, n);
|
|
99
|
-
if (c) {
|
|
100
|
-
if (c === f) continue;
|
|
101
|
-
return c;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
105
|
-
if (1 === o) throw o = 4, n.arg;
|
|
106
|
-
n.dispatchException(n.arg);
|
|
107
|
-
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
108
|
-
o = 3;
|
|
109
|
-
var h = s(r, e, n);
|
|
110
|
-
if ("normal" === h.type) {
|
|
111
|
-
if (o = n.done ? 4 : 2, h.arg === f) continue;
|
|
112
|
-
return {
|
|
113
|
-
value: h.arg,
|
|
114
|
-
done: n.done
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
"throw" === h.type && (o = 4, n.method = "throw", n.arg = h.arg);
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
}(r, n, new Context(o || [])), !0), a;
|
|
121
|
-
}
|
|
122
|
-
function s(t, r, e) {
|
|
123
|
-
try {
|
|
124
|
-
return {
|
|
125
|
-
type: "normal",
|
|
126
|
-
arg: t.call(r, e)
|
|
127
|
-
};
|
|
128
|
-
} catch (t) {
|
|
129
|
-
return {
|
|
130
|
-
type: "throw",
|
|
131
|
-
arg: t
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
r.wrap = h;
|
|
136
|
-
var f = {};
|
|
137
|
-
function Generator() {}
|
|
138
|
-
function GeneratorFunction() {}
|
|
139
|
-
function GeneratorFunctionPrototype() {}
|
|
140
|
-
var l = {};
|
|
141
|
-
c(l, i, function () {
|
|
142
|
-
return this;
|
|
143
|
-
});
|
|
144
|
-
var p = Object.getPrototypeOf,
|
|
145
|
-
y = p && p(p(x([])));
|
|
146
|
-
y && y !== e && n.call(y, i) && (l = y);
|
|
147
|
-
var v = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(l);
|
|
148
|
-
function g(t) {
|
|
149
|
-
["next", "throw", "return"].forEach(function (r) {
|
|
150
|
-
c(t, r, function (t) {
|
|
151
|
-
return this._invoke(r, t);
|
|
152
|
-
});
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
function AsyncIterator(t, r) {
|
|
156
|
-
function e(o, i, a, u) {
|
|
157
|
-
var c = s(t[o], t, i);
|
|
158
|
-
if ("throw" !== c.type) {
|
|
159
|
-
var h = c.arg,
|
|
160
|
-
f = h.value;
|
|
161
|
-
return f && "object" == _typeof$1(f) && n.call(f, "__await") ? r.resolve(f.__await).then(function (t) {
|
|
162
|
-
e("next", t, a, u);
|
|
163
|
-
}, function (t) {
|
|
164
|
-
e("throw", t, a, u);
|
|
165
|
-
}) : r.resolve(f).then(function (t) {
|
|
166
|
-
h.value = t, a(h);
|
|
167
|
-
}, function (t) {
|
|
168
|
-
return e("throw", t, a, u);
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
u(c.arg);
|
|
172
|
-
}
|
|
173
|
-
var o;
|
|
174
|
-
c(this, "_invoke", function (t, n) {
|
|
175
|
-
function i() {
|
|
176
|
-
return new r(function (r, o) {
|
|
177
|
-
e(t, n, r, o);
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
return o = o ? o.then(i, i) : i();
|
|
181
|
-
}, !0);
|
|
182
|
-
}
|
|
183
|
-
function d(r, e) {
|
|
184
|
-
var n = e.method,
|
|
185
|
-
o = r.i[n];
|
|
186
|
-
if (o === t) return e.delegate = null, "throw" === n && r.i["return"] && (e.method = "return", e.arg = t, d(r, e), "throw" === e.method) || "return" !== n && (e.method = "throw", e.arg = new TypeError("The iterator does not provide a '" + n + "' method")), f;
|
|
187
|
-
var i = s(o, r.i, e.arg);
|
|
188
|
-
if ("throw" === i.type) return e.method = "throw", e.arg = i.arg, e.delegate = null, f;
|
|
189
|
-
var a = i.arg;
|
|
190
|
-
return a ? a.done ? (e[r.r] = a.value, e.next = r.n, "return" !== e.method && (e.method = "next", e.arg = t), e.delegate = null, f) : a : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, f);
|
|
191
|
-
}
|
|
192
|
-
function w(t) {
|
|
193
|
-
this.tryEntries.push(t);
|
|
194
|
-
}
|
|
195
|
-
function m(r) {
|
|
196
|
-
var e = r[4] || {};
|
|
197
|
-
e.type = "normal", e.arg = t, r[4] = e;
|
|
198
|
-
}
|
|
199
|
-
function Context(t) {
|
|
200
|
-
this.tryEntries = [[-1]], t.forEach(w, this), this.reset(!0);
|
|
201
|
-
}
|
|
202
|
-
function x(r) {
|
|
203
|
-
if (null != r) {
|
|
204
|
-
var e = r[i];
|
|
205
|
-
if (e) return e.call(r);
|
|
206
|
-
if ("function" == typeof r.next) return r;
|
|
207
|
-
if (!isNaN(r.length)) {
|
|
208
|
-
var o = -1,
|
|
209
|
-
a = function e() {
|
|
210
|
-
for (; ++o < r.length;) if (n.call(r, o)) return e.value = r[o], e.done = !1, e;
|
|
211
|
-
return e.value = t, e.done = !0, e;
|
|
212
|
-
};
|
|
213
|
-
return a.next = a;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
throw new TypeError(_typeof$1(r) + " is not iterable");
|
|
217
|
-
}
|
|
218
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, "constructor", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = c(GeneratorFunctionPrototype, u, "GeneratorFunction"), r.isGeneratorFunction = function (t) {
|
|
219
|
-
var r = "function" == typeof t && t.constructor;
|
|
220
|
-
return !!r && (r === GeneratorFunction || "GeneratorFunction" === (r.displayName || r.name));
|
|
221
|
-
}, r.mark = function (t) {
|
|
222
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, c(t, u, "GeneratorFunction")), t.prototype = Object.create(v), t;
|
|
223
|
-
}, r.awrap = function (t) {
|
|
224
|
-
return {
|
|
225
|
-
__await: t
|
|
226
|
-
};
|
|
227
|
-
}, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function () {
|
|
228
|
-
return this;
|
|
229
|
-
}), r.AsyncIterator = AsyncIterator, r.async = function (t, e, n, o, i) {
|
|
230
|
-
void 0 === i && (i = Promise);
|
|
231
|
-
var a = new AsyncIterator(h(t, e, n, o), i);
|
|
232
|
-
return r.isGeneratorFunction(e) ? a : a.next().then(function (t) {
|
|
233
|
-
return t.done ? t.value : a.next();
|
|
234
|
-
});
|
|
235
|
-
}, g(v), c(v, u, "Generator"), c(v, i, function () {
|
|
236
|
-
return this;
|
|
237
|
-
}), c(v, "toString", function () {
|
|
238
|
-
return "[object Generator]";
|
|
239
|
-
}), r.keys = function (t) {
|
|
240
|
-
var r = Object(t),
|
|
241
|
-
e = [];
|
|
242
|
-
for (var n in r) e.unshift(n);
|
|
243
|
-
return function t() {
|
|
244
|
-
for (; e.length;) if ((n = e.pop()) in r) return t.value = n, t.done = !1, t;
|
|
245
|
-
return t.done = !0, t;
|
|
246
|
-
};
|
|
247
|
-
}, r.values = x, Context.prototype = {
|
|
248
|
-
constructor: Context,
|
|
249
|
-
reset: function reset(r) {
|
|
250
|
-
if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(m), !r) for (var e in this) "t" === e.charAt(0) && n.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = t);
|
|
251
|
-
},
|
|
252
|
-
stop: function stop() {
|
|
253
|
-
this.done = !0;
|
|
254
|
-
var t = this.tryEntries[0][4];
|
|
255
|
-
if ("throw" === t.type) throw t.arg;
|
|
256
|
-
return this.rval;
|
|
257
|
-
},
|
|
258
|
-
dispatchException: function dispatchException(r) {
|
|
259
|
-
if (this.done) throw r;
|
|
260
|
-
var e = this;
|
|
261
|
-
function n(t) {
|
|
262
|
-
a.type = "throw", a.arg = r, e.next = t;
|
|
263
|
-
}
|
|
264
|
-
for (var o = e.tryEntries.length - 1; o >= 0; --o) {
|
|
265
|
-
var i = this.tryEntries[o],
|
|
266
|
-
a = i[4],
|
|
267
|
-
u = this.prev,
|
|
268
|
-
c = i[1],
|
|
269
|
-
h = i[2];
|
|
270
|
-
if (-1 === i[0]) return n("end"), !1;
|
|
271
|
-
if (!c && !h) throw Error("try statement without catch or finally");
|
|
272
|
-
if (null != i[0] && i[0] <= u) {
|
|
273
|
-
if (u < c) return this.method = "next", this.arg = t, n(c), !0;
|
|
274
|
-
if (u < h) return n(h), !1;
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
},
|
|
278
|
-
abrupt: function abrupt(t, r) {
|
|
279
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
280
|
-
var n = this.tryEntries[e];
|
|
281
|
-
if (n[0] > -1 && n[0] <= this.prev && this.prev < n[2]) {
|
|
282
|
-
var o = n;
|
|
283
|
-
break;
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
o && ("break" === t || "continue" === t) && o[0] <= r && r <= o[2] && (o = null);
|
|
287
|
-
var i = o ? o[4] : {};
|
|
288
|
-
return i.type = t, i.arg = r, o ? (this.method = "next", this.next = o[2], f) : this.complete(i);
|
|
289
|
-
},
|
|
290
|
-
complete: function complete(t, r) {
|
|
291
|
-
if ("throw" === t.type) throw t.arg;
|
|
292
|
-
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && r && (this.next = r), f;
|
|
293
|
-
},
|
|
294
|
-
finish: function finish(t) {
|
|
295
|
-
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
296
|
-
var e = this.tryEntries[r];
|
|
297
|
-
if (e[2] === t) return this.complete(e[4], e[3]), m(e), f;
|
|
298
|
-
}
|
|
299
|
-
},
|
|
300
|
-
"catch": function _catch(t) {
|
|
301
|
-
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
302
|
-
var e = this.tryEntries[r];
|
|
303
|
-
if (e[0] === t) {
|
|
304
|
-
var n = e[4];
|
|
305
|
-
if ("throw" === n.type) {
|
|
306
|
-
var o = n.arg;
|
|
307
|
-
m(e);
|
|
308
|
-
}
|
|
309
|
-
return o;
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
throw Error("illegal catch attempt");
|
|
313
|
-
},
|
|
314
|
-
delegateYield: function delegateYield(r, e, n) {
|
|
315
|
-
return this.delegate = {
|
|
316
|
-
i: x(r),
|
|
317
|
-
r: e,
|
|
318
|
-
n: n
|
|
319
|
-
}, "next" === this.method && (this.arg = t), f;
|
|
320
|
-
}
|
|
321
|
-
}, r;
|
|
322
|
-
}
|
|
323
|
-
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
324
|
-
} (regeneratorRuntime$1));
|
|
325
|
-
|
|
326
|
-
// TODO(Babel 8): Remove this file.
|
|
327
|
-
|
|
328
|
-
var runtime = regeneratorRuntime$1.exports();
|
|
329
|
-
var regenerator = runtime;
|
|
330
|
-
|
|
331
|
-
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
|
332
|
-
try {
|
|
333
|
-
regeneratorRuntime = runtime;
|
|
334
|
-
} catch (accidentalStrictMode) {
|
|
335
|
-
if (typeof globalThis === "object") {
|
|
336
|
-
globalThis.regeneratorRuntime = runtime;
|
|
337
|
-
} else {
|
|
338
|
-
Function("r", "regeneratorRuntime = r")(runtime);
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
|
|
342
10
|
var formatDistanceLocale$2 = {
|
|
343
11
|
lessThanXSeconds: {
|
|
344
12
|
one: 'ավելի քիչ քան 1 վայրկյան',
|
|
@@ -1493,7 +1161,7 @@ function toDate(argument) {
|
|
|
1493
1161
|
var argStr = Object.prototype.toString.call(argument);
|
|
1494
1162
|
|
|
1495
1163
|
// Clone the date
|
|
1496
|
-
if (argument instanceof Date || _typeof
|
|
1164
|
+
if (argument instanceof Date || _typeof(argument) === 'object' && argStr === '[object Date]') {
|
|
1497
1165
|
// Prevent the date to lose the milliseconds when passed to new Date() in IE10
|
|
1498
1166
|
return new Date(argument.getTime());
|
|
1499
1167
|
} else if (typeof argument === 'number' || argStr === '[object Number]') {
|
|
@@ -44,6 +44,7 @@ import '../SVGIcons/IconEyeOn.js';
|
|
|
44
44
|
import '../Divider/Divider.js';
|
|
45
45
|
import '../Tooltip/Tooltip.js';
|
|
46
46
|
import './hooks.js';
|
|
47
|
+
import '../../index-c044b88c.js';
|
|
47
48
|
import '../SVGIcons/IconClock.js';
|
|
48
49
|
import './CustomHeader/CustomHeader.js';
|
|
49
50
|
import 'react-dom';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { _ as _extends } from '../../extends-74a403b8.js';
|
|
2
|
+
import { _ as _asyncToGenerator, r as regenerator } from '../../index-c044b88c.js';
|
|
2
3
|
import React from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import { validateFieldsNatively, toNestError } from '@hookform/resolvers';
|
|
4
|
+
import { useForm } from 'react-hook-form';
|
|
5
5
|
import classNames from 'classnames';
|
|
6
6
|
import { FormContext } from '../../context/types.js';
|
|
7
7
|
import { Button } from '../Button/Button.js';
|
|
8
|
+
import * as yup from 'yup';
|
|
8
9
|
import '../../utils/helpers.js';
|
|
9
10
|
import 'dayjs';
|
|
10
11
|
import '../../defineProperty-41a50022.js';
|
|
@@ -33,8 +34,6 @@ import '../../helperComponents/IconDynamicComponent/constants.js';
|
|
|
33
34
|
import 'react-syntax-highlighter';
|
|
34
35
|
import '../Button/consts.js';
|
|
35
36
|
|
|
36
|
-
var o=function(o,n,a){return void 0===n&&(n={}),void 0===a&&(a={}),function(s,i,c){try{return Promise.resolve(function(t,r){try{var u=(n.context&&"development"===process.env.NODE_ENV&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(o["sync"===a.mode?"validateSync":"validate"](s,Object.assign({abortEarly:!1},n,{context:i}))).then(function(t){return c.shouldUseNativeValidation&&validateFieldsNatively({},c),{values:a.rawValues?s:t,errors:{}}}));}catch(e){return r(e)}return u&&u.then?u.then(void 0,r):u}(0,function(e){if(!e.inner)throw e;return {values:{},errors:toNestError((o=e,n=!c.shouldUseNativeValidation&&"all"===c.criteriaMode,(o.inner||[]).reduce(function(e,t){if(e[t.path]||(e[t.path]={message:t.message,type:t.type}),n){var o=e[t.path].types,a=o&&o[t.type];e[t.path]=appendErrors(t.path,n,e,t.type,a?[].concat(a,t.message):t.message);}return e},{})),c)};var o,n;}))}catch(e){return Promise.reject(e)}}};
|
|
37
|
-
|
|
38
37
|
var FormContainer = function FormContainer(props) {
|
|
39
38
|
var children = props.children,
|
|
40
39
|
_props$className = props.className,
|
|
@@ -52,7 +51,6 @@ var FormContainer = function FormContainer(props) {
|
|
|
52
51
|
onSubmit = props.onSubmit;
|
|
53
52
|
var _useForm = useForm({
|
|
54
53
|
mode: mode,
|
|
55
|
-
resolver: o(validationScheme),
|
|
56
54
|
context: validationContext,
|
|
57
55
|
defaultValues: initialValues,
|
|
58
56
|
shouldFocusError: shouldFocusError,
|
|
@@ -76,11 +74,47 @@ var FormContainer = function FormContainer(props) {
|
|
|
76
74
|
isSubmitted = formState.isSubmitted,
|
|
77
75
|
isSubmitting = formState.isSubmitting,
|
|
78
76
|
dirtyFields = formState.dirtyFields;
|
|
79
|
-
var customSubmit = function
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
77
|
+
var customSubmit = /*#__PURE__*/function () {
|
|
78
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/regenerator.mark(function _callee(data) {
|
|
79
|
+
return regenerator.wrap(function _callee$(_context) {
|
|
80
|
+
while (1) switch (_context.prev = _context.next) {
|
|
81
|
+
case 0:
|
|
82
|
+
_context.prev = 0;
|
|
83
|
+
if (!validationScheme) {
|
|
84
|
+
_context.next = 4;
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
_context.next = 4;
|
|
88
|
+
return validationScheme.validate(data, {
|
|
89
|
+
abortEarly: false
|
|
90
|
+
});
|
|
91
|
+
case 4:
|
|
92
|
+
if (onSubmit) {
|
|
93
|
+
onSubmit(data, formState, dirtyFields);
|
|
94
|
+
}
|
|
95
|
+
_context.next = 10;
|
|
96
|
+
break;
|
|
97
|
+
case 7:
|
|
98
|
+
_context.prev = 7;
|
|
99
|
+
_context.t0 = _context["catch"](0);
|
|
100
|
+
if (_context.t0 instanceof yup.ValidationError) {
|
|
101
|
+
_context.t0.inner.forEach(function (err) {
|
|
102
|
+
setError(err.path, {
|
|
103
|
+
type: 'manual',
|
|
104
|
+
message: err.message
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
case 10:
|
|
109
|
+
case "end":
|
|
110
|
+
return _context.stop();
|
|
111
|
+
}
|
|
112
|
+
}, _callee, null, [[0, 7]]);
|
|
113
|
+
}));
|
|
114
|
+
return function customSubmit(_x) {
|
|
115
|
+
return _ref.apply(this, arguments);
|
|
116
|
+
};
|
|
117
|
+
}();
|
|
84
118
|
return /*#__PURE__*/React.createElement("form", {
|
|
85
119
|
onSubmit: handleSubmit(customSubmit),
|
|
86
120
|
id: formId,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { FormContainer } from './FormContainer.js';
|
|
2
2
|
import '../../extends-74a403b8.js';
|
|
3
|
+
import '../../index-c044b88c.js';
|
|
3
4
|
import 'react';
|
|
4
5
|
import 'react-hook-form';
|
|
5
|
-
import '@hookform/resolvers';
|
|
6
6
|
import 'classnames';
|
|
7
7
|
import '../../context/types.js';
|
|
8
8
|
import '../../utils/helpers.js';
|
|
@@ -33,3 +33,4 @@ import '../../helperComponents/IconDynamicComponent/IconDynamicComponent.js';
|
|
|
33
33
|
import '../../helperComponents/IconDynamicComponent/constants.js';
|
|
34
34
|
import 'react-syntax-highlighter';
|
|
35
35
|
import '../Button/consts.js';
|
|
36
|
+
import 'yup';
|
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
2
|
+
try {
|
|
3
|
+
var i = n[a](c),
|
|
4
|
+
u = i.value;
|
|
5
|
+
} catch (n) {
|
|
6
|
+
return void e(n);
|
|
7
|
+
}
|
|
8
|
+
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
9
|
+
}
|
|
10
|
+
function _asyncToGenerator(n) {
|
|
11
|
+
return function () {
|
|
12
|
+
var t = this,
|
|
13
|
+
e = arguments;
|
|
14
|
+
return new Promise(function (r, o) {
|
|
15
|
+
var a = n.apply(t, e);
|
|
16
|
+
function _next(n) {
|
|
17
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
18
|
+
}
|
|
19
|
+
function _throw(n) {
|
|
20
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
21
|
+
}
|
|
22
|
+
_next(void 0);
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var regeneratorRuntime$1 = {exports: {}};
|
|
28
|
+
|
|
29
|
+
var _typeof = {exports: {}};
|
|
30
|
+
|
|
31
|
+
(function (module) {
|
|
32
|
+
function _typeof(o) {
|
|
33
|
+
"@babel/helpers - typeof";
|
|
34
|
+
|
|
35
|
+
return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
36
|
+
return typeof o;
|
|
37
|
+
} : function (o) {
|
|
38
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
39
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
|
|
40
|
+
}
|
|
41
|
+
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
42
|
+
} (_typeof));
|
|
43
|
+
|
|
44
|
+
(function (module) {
|
|
45
|
+
var _typeof$1 = _typeof.exports["default"];
|
|
46
|
+
function _regeneratorRuntime() {
|
|
47
|
+
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
|
48
|
+
return r;
|
|
49
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
50
|
+
var t,
|
|
51
|
+
r = {},
|
|
52
|
+
e = Object.prototype,
|
|
53
|
+
n = e.hasOwnProperty,
|
|
54
|
+
o = "function" == typeof Symbol ? Symbol : {},
|
|
55
|
+
i = o.iterator || "@@iterator",
|
|
56
|
+
a = o.asyncIterator || "@@asyncIterator",
|
|
57
|
+
u = o.toStringTag || "@@toStringTag";
|
|
58
|
+
function c(t, r, e, n) {
|
|
59
|
+
return Object.defineProperty(t, r, {
|
|
60
|
+
value: e,
|
|
61
|
+
enumerable: !n,
|
|
62
|
+
configurable: !n,
|
|
63
|
+
writable: !n
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
try {
|
|
67
|
+
c({}, "");
|
|
68
|
+
} catch (t) {
|
|
69
|
+
c = function c(t, r, e) {
|
|
70
|
+
return t[r] = e;
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
function h(r, e, n, o) {
|
|
74
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
|
75
|
+
a = Object.create(i.prototype);
|
|
76
|
+
return c(a, "_invoke", function (r, e, n) {
|
|
77
|
+
var o = 1;
|
|
78
|
+
return function (i, a) {
|
|
79
|
+
if (3 === o) throw Error("Generator is already running");
|
|
80
|
+
if (4 === o) {
|
|
81
|
+
if ("throw" === i) throw a;
|
|
82
|
+
return {
|
|
83
|
+
value: t,
|
|
84
|
+
done: !0
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
for (n.method = i, n.arg = a;;) {
|
|
88
|
+
var u = n.delegate;
|
|
89
|
+
if (u) {
|
|
90
|
+
var c = d(u, n);
|
|
91
|
+
if (c) {
|
|
92
|
+
if (c === f) continue;
|
|
93
|
+
return c;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
97
|
+
if (1 === o) throw o = 4, n.arg;
|
|
98
|
+
n.dispatchException(n.arg);
|
|
99
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
100
|
+
o = 3;
|
|
101
|
+
var h = s(r, e, n);
|
|
102
|
+
if ("normal" === h.type) {
|
|
103
|
+
if (o = n.done ? 4 : 2, h.arg === f) continue;
|
|
104
|
+
return {
|
|
105
|
+
value: h.arg,
|
|
106
|
+
done: n.done
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
"throw" === h.type && (o = 4, n.method = "throw", n.arg = h.arg);
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
}(r, n, new Context(o || [])), !0), a;
|
|
113
|
+
}
|
|
114
|
+
function s(t, r, e) {
|
|
115
|
+
try {
|
|
116
|
+
return {
|
|
117
|
+
type: "normal",
|
|
118
|
+
arg: t.call(r, e)
|
|
119
|
+
};
|
|
120
|
+
} catch (t) {
|
|
121
|
+
return {
|
|
122
|
+
type: "throw",
|
|
123
|
+
arg: t
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
r.wrap = h;
|
|
128
|
+
var f = {};
|
|
129
|
+
function Generator() {}
|
|
130
|
+
function GeneratorFunction() {}
|
|
131
|
+
function GeneratorFunctionPrototype() {}
|
|
132
|
+
var l = {};
|
|
133
|
+
c(l, i, function () {
|
|
134
|
+
return this;
|
|
135
|
+
});
|
|
136
|
+
var p = Object.getPrototypeOf,
|
|
137
|
+
y = p && p(p(x([])));
|
|
138
|
+
y && y !== e && n.call(y, i) && (l = y);
|
|
139
|
+
var v = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(l);
|
|
140
|
+
function g(t) {
|
|
141
|
+
["next", "throw", "return"].forEach(function (r) {
|
|
142
|
+
c(t, r, function (t) {
|
|
143
|
+
return this._invoke(r, t);
|
|
144
|
+
});
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
function AsyncIterator(t, r) {
|
|
148
|
+
function e(o, i, a, u) {
|
|
149
|
+
var c = s(t[o], t, i);
|
|
150
|
+
if ("throw" !== c.type) {
|
|
151
|
+
var h = c.arg,
|
|
152
|
+
f = h.value;
|
|
153
|
+
return f && "object" == _typeof$1(f) && n.call(f, "__await") ? r.resolve(f.__await).then(function (t) {
|
|
154
|
+
e("next", t, a, u);
|
|
155
|
+
}, function (t) {
|
|
156
|
+
e("throw", t, a, u);
|
|
157
|
+
}) : r.resolve(f).then(function (t) {
|
|
158
|
+
h.value = t, a(h);
|
|
159
|
+
}, function (t) {
|
|
160
|
+
return e("throw", t, a, u);
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
u(c.arg);
|
|
164
|
+
}
|
|
165
|
+
var o;
|
|
166
|
+
c(this, "_invoke", function (t, n) {
|
|
167
|
+
function i() {
|
|
168
|
+
return new r(function (r, o) {
|
|
169
|
+
e(t, n, r, o);
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
return o = o ? o.then(i, i) : i();
|
|
173
|
+
}, !0);
|
|
174
|
+
}
|
|
175
|
+
function d(r, e) {
|
|
176
|
+
var n = e.method,
|
|
177
|
+
o = r.i[n];
|
|
178
|
+
if (o === t) return e.delegate = null, "throw" === n && r.i["return"] && (e.method = "return", e.arg = t, d(r, e), "throw" === e.method) || "return" !== n && (e.method = "throw", e.arg = new TypeError("The iterator does not provide a '" + n + "' method")), f;
|
|
179
|
+
var i = s(o, r.i, e.arg);
|
|
180
|
+
if ("throw" === i.type) return e.method = "throw", e.arg = i.arg, e.delegate = null, f;
|
|
181
|
+
var a = i.arg;
|
|
182
|
+
return a ? a.done ? (e[r.r] = a.value, e.next = r.n, "return" !== e.method && (e.method = "next", e.arg = t), e.delegate = null, f) : a : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, f);
|
|
183
|
+
}
|
|
184
|
+
function w(t) {
|
|
185
|
+
this.tryEntries.push(t);
|
|
186
|
+
}
|
|
187
|
+
function m(r) {
|
|
188
|
+
var e = r[4] || {};
|
|
189
|
+
e.type = "normal", e.arg = t, r[4] = e;
|
|
190
|
+
}
|
|
191
|
+
function Context(t) {
|
|
192
|
+
this.tryEntries = [[-1]], t.forEach(w, this), this.reset(!0);
|
|
193
|
+
}
|
|
194
|
+
function x(r) {
|
|
195
|
+
if (null != r) {
|
|
196
|
+
var e = r[i];
|
|
197
|
+
if (e) return e.call(r);
|
|
198
|
+
if ("function" == typeof r.next) return r;
|
|
199
|
+
if (!isNaN(r.length)) {
|
|
200
|
+
var o = -1,
|
|
201
|
+
a = function e() {
|
|
202
|
+
for (; ++o < r.length;) if (n.call(r, o)) return e.value = r[o], e.done = !1, e;
|
|
203
|
+
return e.value = t, e.done = !0, e;
|
|
204
|
+
};
|
|
205
|
+
return a.next = a;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
throw new TypeError(_typeof$1(r) + " is not iterable");
|
|
209
|
+
}
|
|
210
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, "constructor", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = c(GeneratorFunctionPrototype, u, "GeneratorFunction"), r.isGeneratorFunction = function (t) {
|
|
211
|
+
var r = "function" == typeof t && t.constructor;
|
|
212
|
+
return !!r && (r === GeneratorFunction || "GeneratorFunction" === (r.displayName || r.name));
|
|
213
|
+
}, r.mark = function (t) {
|
|
214
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, c(t, u, "GeneratorFunction")), t.prototype = Object.create(v), t;
|
|
215
|
+
}, r.awrap = function (t) {
|
|
216
|
+
return {
|
|
217
|
+
__await: t
|
|
218
|
+
};
|
|
219
|
+
}, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function () {
|
|
220
|
+
return this;
|
|
221
|
+
}), r.AsyncIterator = AsyncIterator, r.async = function (t, e, n, o, i) {
|
|
222
|
+
void 0 === i && (i = Promise);
|
|
223
|
+
var a = new AsyncIterator(h(t, e, n, o), i);
|
|
224
|
+
return r.isGeneratorFunction(e) ? a : a.next().then(function (t) {
|
|
225
|
+
return t.done ? t.value : a.next();
|
|
226
|
+
});
|
|
227
|
+
}, g(v), c(v, u, "Generator"), c(v, i, function () {
|
|
228
|
+
return this;
|
|
229
|
+
}), c(v, "toString", function () {
|
|
230
|
+
return "[object Generator]";
|
|
231
|
+
}), r.keys = function (t) {
|
|
232
|
+
var r = Object(t),
|
|
233
|
+
e = [];
|
|
234
|
+
for (var n in r) e.unshift(n);
|
|
235
|
+
return function t() {
|
|
236
|
+
for (; e.length;) if ((n = e.pop()) in r) return t.value = n, t.done = !1, t;
|
|
237
|
+
return t.done = !0, t;
|
|
238
|
+
};
|
|
239
|
+
}, r.values = x, Context.prototype = {
|
|
240
|
+
constructor: Context,
|
|
241
|
+
reset: function reset(r) {
|
|
242
|
+
if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(m), !r) for (var e in this) "t" === e.charAt(0) && n.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = t);
|
|
243
|
+
},
|
|
244
|
+
stop: function stop() {
|
|
245
|
+
this.done = !0;
|
|
246
|
+
var t = this.tryEntries[0][4];
|
|
247
|
+
if ("throw" === t.type) throw t.arg;
|
|
248
|
+
return this.rval;
|
|
249
|
+
},
|
|
250
|
+
dispatchException: function dispatchException(r) {
|
|
251
|
+
if (this.done) throw r;
|
|
252
|
+
var e = this;
|
|
253
|
+
function n(t) {
|
|
254
|
+
a.type = "throw", a.arg = r, e.next = t;
|
|
255
|
+
}
|
|
256
|
+
for (var o = e.tryEntries.length - 1; o >= 0; --o) {
|
|
257
|
+
var i = this.tryEntries[o],
|
|
258
|
+
a = i[4],
|
|
259
|
+
u = this.prev,
|
|
260
|
+
c = i[1],
|
|
261
|
+
h = i[2];
|
|
262
|
+
if (-1 === i[0]) return n("end"), !1;
|
|
263
|
+
if (!c && !h) throw Error("try statement without catch or finally");
|
|
264
|
+
if (null != i[0] && i[0] <= u) {
|
|
265
|
+
if (u < c) return this.method = "next", this.arg = t, n(c), !0;
|
|
266
|
+
if (u < h) return n(h), !1;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
abrupt: function abrupt(t, r) {
|
|
271
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
272
|
+
var n = this.tryEntries[e];
|
|
273
|
+
if (n[0] > -1 && n[0] <= this.prev && this.prev < n[2]) {
|
|
274
|
+
var o = n;
|
|
275
|
+
break;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
o && ("break" === t || "continue" === t) && o[0] <= r && r <= o[2] && (o = null);
|
|
279
|
+
var i = o ? o[4] : {};
|
|
280
|
+
return i.type = t, i.arg = r, o ? (this.method = "next", this.next = o[2], f) : this.complete(i);
|
|
281
|
+
},
|
|
282
|
+
complete: function complete(t, r) {
|
|
283
|
+
if ("throw" === t.type) throw t.arg;
|
|
284
|
+
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && r && (this.next = r), f;
|
|
285
|
+
},
|
|
286
|
+
finish: function finish(t) {
|
|
287
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
288
|
+
var e = this.tryEntries[r];
|
|
289
|
+
if (e[2] === t) return this.complete(e[4], e[3]), m(e), f;
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
"catch": function _catch(t) {
|
|
293
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
294
|
+
var e = this.tryEntries[r];
|
|
295
|
+
if (e[0] === t) {
|
|
296
|
+
var n = e[4];
|
|
297
|
+
if ("throw" === n.type) {
|
|
298
|
+
var o = n.arg;
|
|
299
|
+
m(e);
|
|
300
|
+
}
|
|
301
|
+
return o;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
throw Error("illegal catch attempt");
|
|
305
|
+
},
|
|
306
|
+
delegateYield: function delegateYield(r, e, n) {
|
|
307
|
+
return this.delegate = {
|
|
308
|
+
i: x(r),
|
|
309
|
+
r: e,
|
|
310
|
+
n: n
|
|
311
|
+
}, "next" === this.method && (this.arg = t), f;
|
|
312
|
+
}
|
|
313
|
+
}, r;
|
|
314
|
+
}
|
|
315
|
+
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
316
|
+
} (regeneratorRuntime$1));
|
|
317
|
+
|
|
318
|
+
// TODO(Babel 8): Remove this file.
|
|
319
|
+
|
|
320
|
+
var runtime = regeneratorRuntime$1.exports();
|
|
321
|
+
var regenerator = runtime;
|
|
322
|
+
|
|
323
|
+
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
|
324
|
+
try {
|
|
325
|
+
regeneratorRuntime = runtime;
|
|
326
|
+
} catch (accidentalStrictMode) {
|
|
327
|
+
if (typeof globalThis === "object") {
|
|
328
|
+
globalThis.regeneratorRuntime = runtime;
|
|
329
|
+
} else {
|
|
330
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
export { _asyncToGenerator as _, regenerator as r };
|
package/index.js
CHANGED
|
@@ -539,11 +539,12 @@ import './components/CardSelect/components/CardDescription.js';
|
|
|
539
539
|
import './components/CardSelect/components/CardAdditionalInfo.js';
|
|
540
540
|
import 'react-datepicker';
|
|
541
541
|
import './components/DatePicker/hooks.js';
|
|
542
|
+
import './index-c044b88c.js';
|
|
542
543
|
import './components/DatePicker/CustomHeader/CustomHeader.js';
|
|
543
544
|
import './components/Select/SharedComponents/ButtonSelectWrapper/ButtonSelectWrapper.js';
|
|
544
545
|
import './components/Select/SharedComponents/ButtonSelectWrapper/Button/Button.js';
|
|
545
546
|
import './components/DatePicker/types.js';
|
|
546
|
-
import '
|
|
547
|
+
import 'yup';
|
|
547
548
|
import '@hookform/error-message';
|
|
548
549
|
import './components/FramedIcon/consts.js';
|
|
549
550
|
import './hooks/useHideBodyScroll.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ab-ui-library",
|
|
3
|
-
"version": "1.42.
|
|
3
|
+
"version": "1.42.8",
|
|
4
4
|
"description": "UI library for AM",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
"@dnd-kit/core": "^6.3.1",
|
|
20
20
|
"@dnd-kit/sortable": "^10.0.0",
|
|
21
21
|
"@hookform/error-message": "^2.0.1",
|
|
22
|
-
"@hookform/resolvers": "^2.9.11",
|
|
23
22
|
"@tanstack/react-table": "^8.21.2",
|
|
24
23
|
"classnames": "^2.3.2",
|
|
25
24
|
"dayjs": "^1.11.10",
|