gasp-components 1.0.7 → 1.0.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.
Files changed (31) hide show
  1. package/dist/assets/index.css +1 -0
  2. package/dist/assets/main.css +1 -0
  3. package/dist/components/ag-grid-table/index.js +5551 -5550
  4. package/dist/components/button/index.js +23 -34
  5. package/dist/components/checklist/checklist-item.js +11 -16
  6. package/dist/components/checklist/index.js +7 -13
  7. package/dist/components/date-picker/index.js +2 -9
  8. package/dist/components/dragger/index.js +64 -91
  9. package/dist/components/dropdown/index.js +12 -40
  10. package/dist/components/form/index.js +18 -45
  11. package/dist/components/form-item/index.js +23 -50
  12. package/dist/components/input/index.js +11 -32
  13. package/dist/components/modal/index.js +27 -52
  14. package/dist/components/password-input/index.js +8 -29
  15. package/dist/components/progress/index.js +22 -53
  16. package/dist/components/progress-circle/index.js +12 -32
  17. package/dist/components/radio-button/index.js +13 -40
  18. package/dist/components/radio-button-group/index.js +23 -52
  19. package/dist/components/result-popup/index.js +21 -59
  20. package/dist/components/select/index.js +12 -40
  21. package/dist/components/side-menu/index.js +3 -35
  22. package/dist/components/side-menu/menu-item.js +2 -29
  23. package/dist/components/table/index.js +2 -17
  24. package/dist/components/tabs/index.js +28 -58
  25. package/dist/components/tabs/tab.js +30 -57
  26. package/dist/components/tag/index.js +2 -6
  27. package/dist/components/timeline-horizontal/index.js +19 -46
  28. package/dist/components/upload/index.js +52 -79
  29. package/dist/main.js +193 -255
  30. package/package.json +3 -2
  31. package/dist/assets/style.css +0 -1
package/dist/main.js CHANGED
@@ -1,154 +1,92 @@
1
+ import "./assets/main.css";
1
2
  import { jsx as L } from "react/jsx-runtime";
2
3
  import "./index-s3u4YBl4.js";
3
- import { AgGridTable as zt } from "./components/ag-grid-table/index.js";
4
- import { Button as Yt } from "./components/button/index.js";
5
- import { CheckList as Ht } from "./components/checklist/index.js";
6
- import { DatePicker as Qt } from "./components/date-picker/index.js";
7
- import { Dragger as re } from "./components/dragger/index.js";
8
- import { Dropdown as ee } from "./components/dropdown/index.js";
9
- import { Form as ae } from "./components/form/index.js";
10
- import { FormItem as ie } from "./components/form-item/index.js";
11
- import { Input as me } from "./components/input/index.js";
12
- import { Modal as fe } from "./components/modal/index.js";
13
- import { PasswordInput as ce } from "./components/password-input/index.js";
14
- import { Progress as de } from "./components/progress/index.js";
15
- import { ProgressCircle as ve } from "./components/progress-circle/index.js";
16
- import { RadioButton as Ee } from "./components/radio-button/index.js";
17
- import { RadioButtonGroup as Fe } from "./components/radio-button-group/index.js";
18
- import { ResultPopup as Ie } from "./components/result-popup/index.js";
19
- import { Select as he } from "./components/select/index.js";
20
- import { S as xe } from "./index-BFgxz47K.js";
21
- import { Steps as Oe } from "./components/steps/index.js";
22
- import { Table as Me } from "./components/table/index.js";
23
- import { Tabs as Le } from "./components/tabs/index.js";
24
- import { Tag as Ce } from "./components/tag/index.js";
25
- import { TimelineHorizontal as je } from "./components/timeline-horizontal/index.js";
26
- import { Upload as Be } from "./components/upload/index.js";
27
- import { libTheme as Ge } from "./theme.js";
28
- import { i as q, T as W, b as s, M as z, d as P, I as X, e as c, f as E, g as w, h as I, E as S, j as Y, D as K, k as H, l as N, _ as J, m as Z, n as Q, o as V, p as rr, q as tr, s as er, r as or, P as ar, t as nr } from "./createFormattedComponent-FcpICAm8.js";
4
+ import { AgGridTable as Br } from "./components/ag-grid-table/index.js";
5
+ import { Button as Gr } from "./components/button/index.js";
6
+ import { CheckList as $r } from "./components/checklist/index.js";
7
+ import { DatePicker as qr } from "./components/date-picker/index.js";
8
+ import { Dragger as zr } from "./components/dragger/index.js";
9
+ import { Dropdown as Yr } from "./components/dropdown/index.js";
10
+ import { Form as Hr } from "./components/form/index.js";
11
+ import { FormItem as Qr } from "./components/form-item/index.js";
12
+ import { Input as rt } from "./components/input/index.js";
13
+ import { Modal as et } from "./components/modal/index.js";
14
+ import { PasswordInput as ot } from "./components/password-input/index.js";
15
+ import { Progress as it } from "./components/progress/index.js";
16
+ import { ProgressCircle as st } from "./components/progress-circle/index.js";
17
+ import { RadioButton as ft } from "./components/radio-button/index.js";
18
+ import { RadioButtonGroup as ct } from "./components/radio-button-group/index.js";
19
+ import { ResultPopup as gt } from "./components/result-popup/index.js";
20
+ import { Select as pt } from "./components/select/index.js";
21
+ import { S as Et } from "./index-BFgxz47K.js";
22
+ import { Steps as Ft } from "./components/steps/index.js";
23
+ import { Table as It } from "./components/table/index.js";
24
+ import { Tabs as ht } from "./components/tabs/index.js";
25
+ import { Tag as xt } from "./components/tag/index.js";
26
+ import { TimelineHorizontal as Ot } from "./components/timeline-horizontal/index.js";
27
+ import { Upload as Mt } from "./components/upload/index.js";
28
+ import { libTheme as Lt } from "./theme.js";
29
+ import { i as q, T as W, b as m, M as z, d as P, I as X, e as c, f as E, g as w, h as I, E as S, j as Y, D as K, k as H, l as N, _ as J, m as Z, n as Q, o as V, p as rr, q as tr, s as er, r as ar, P as or, t as nr } from "./createFormattedComponent-FcpICAm8.js";
29
30
  import * as D from "react";
30
31
  import { A as ir } from "./index-1KQbTQJ2.js";
31
- import "./index-NQd_zMf0.js";
32
- import "./index-vtDVJV8q.js";
33
- import "./button-LN5ZDad8.js";
34
- import "./omit-ylWA0ZLZ.js";
35
- import "./index-ZT64Ec6u.js";
36
- import "./isVisible-Qi9l15Ty.js";
37
- import "./reactNode-R20zZQk1.js";
38
- import "./asyncToGenerator-t4sKr8R4.js";
39
- import "./Compact-fdEKV_mF.js";
40
- import "./LoadingOutlined-6Ipqn0og.js";
41
- import "./compact-item-jjuVmDBH.js";
42
- import "./components/checklist/checklist-item.js";
43
- import "./icons/check-icon/index.js";
44
- import "./index-ELHBhuK9.js";
45
- import "./PurePanel-hLGnXbul.js";
46
- import "./useMergedState-qUafLuUa.js";
47
- import "./CloseCircleFilled-bIgIULWb.js";
48
- import "./KeyCode-qFRXB1-n.js";
49
- import "./index-L-MzVDcK.js";
50
- import "./motion-0ToOu81j.js";
51
- import "./index--6VfGMUo.js";
52
- import "./pickAttrs-zaQzRTqh.js";
53
- import "./useVariants-s0IcneBD.js";
54
- import "./context-h3WSVDPz.js";
55
- import "./index-GgkQrebz.js";
56
- import "./slide-mFXPRHku.js";
57
- import "./roundedArrow-p1Pmd9av.js";
58
- import "./useCSSVarCls-GwZT_WiF.js";
59
- import "./useLocale-eThlLZJw.js";
60
- import "./icons/file-icon/index.js";
61
- import "./icons/upload-icon/index.js";
62
- import "./UploadOutlined-D8jfLEgv.js";
63
- import "./index-0mpuHoS5.js";
64
- import "./CheckOutlined-EgxCAgj_.js";
65
- import "./styleChecker-pZ3k2IiY.js";
66
- import "./index-5Uo03BMk.js";
67
- import "./motion-NQme0FJ_.js";
68
- import "./zoom-Ps8y0jNW.js";
69
- import "./colors-opGg9oSz.js";
70
- import "./TextArea-n3dknzTq.js";
71
- import "./index-DVS_nWxv.js";
72
- import "./Overflow-JFdXKgCr.js";
73
- import "./collapse-ilv4Tji1.js";
74
- import "./index-D3LMPWyJ.js";
75
- import "./row-sPFiFm0C.js";
76
- import "./responsiveObserver-V1_1G14X.js";
77
- import "./CheckCircleFilled-xt-0R96Z.js";
78
- import "./ExclamationCircleFilled-XzDBEGmA.js";
79
- import "./index-M3WnMjiA.js";
80
- import "./SearchOutlined-rJTFGXUi.js";
81
- import "./icons/close-outlined-icon/index.js";
82
- import "./index-k04G4nlS.js";
83
- import "./CloseOutlined-Q3kC3EZS.js";
84
- import "./useClosable-4G12n4Bp.js";
85
- import "./progress-a1_pwKVT.js";
86
- import "./components/radio-button-group/context.js";
87
- import "./icons/success-icon/index.js";
88
- import "./icons/failed-icon/index.js";
89
- import "./index-aawDqn9q.js";
90
- import "./icons/dashboard-icon/index.js";
91
- import "./index-Fn8q8B3V.js";
92
- import "./components/tabs/tab.js";
93
- import "./components/tabs/context.js";
94
- function b(r, o) {
32
+ function b(r, a) {
95
33
  return Object.keys(r).reduce(function(e, t) {
96
- return e[t] = s({ timeZone: o }, r[t]), e;
34
+ return e[t] = m({ timeZone: a }, r[t]), e;
97
35
  }, {});
98
36
  }
99
- function C(r, o) {
100
- var e = Object.keys(s(s({}, r), o));
37
+ function C(r, a) {
38
+ var e = Object.keys(m(m({}, r), a));
101
39
  return e.reduce(function(t, n) {
102
- return t[n] = s(s({}, r[n] || {}), o[n] || {}), t;
40
+ return t[n] = m(m({}, r[n] || {}), a[n] || {}), t;
103
41
  }, {});
104
42
  }
105
- function A(r, o) {
106
- if (!o)
43
+ function A(r, a) {
44
+ if (!a)
107
45
  return r;
108
46
  var e = X.formats;
109
- return s(s(s({}, e), r), { date: C(b(e.date, o), b(r.date || {}, o)), time: C(b(e.time, o), b(r.time || {}, o)) });
47
+ return m(m(m({}, e), r), { date: C(b(e.date, a), b(r.date || {}, a)), time: C(b(e.time, a), b(r.time || {}, a)) });
110
48
  }
111
- var O = function(r, o, e, t, n) {
112
- var a = r.locale, i = r.formats, l = r.messages, m = r.defaultLocale, p = r.defaultFormats, f = r.fallbackOnEmptyString, g = r.onError, y = r.timeZone, M = r.defaultRichTextElements;
49
+ var O = function(r, a, e, t, n) {
50
+ var o = r.locale, i = r.formats, l = r.messages, s = r.defaultLocale, d = r.defaultFormats, f = r.fallbackOnEmptyString, v = r.onError, y = r.timeZone, M = r.defaultRichTextElements;
113
51
  e === void 0 && (e = { id: "" });
114
- var R = e.id, d = e.defaultMessage;
52
+ var R = e.id, g = e.defaultMessage;
115
53
  q(!!R, "[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");
116
- var v = String(R), u = (
54
+ var p = String(R), u = (
117
55
  // In case messages is Object.create(null)
118
56
  // e.g import('foo.json') from webpack)
119
57
  // See https://github.com/formatjs/formatjs/issues/1914
120
- l && Object.prototype.hasOwnProperty.call(l, v) && l[v]
58
+ l && Object.prototype.hasOwnProperty.call(l, p) && l[p]
121
59
  );
122
60
  if (Array.isArray(u) && u.length === 1 && u[0].type === W.literal)
123
61
  return u[0].value;
124
62
  if (!t && u && typeof u == "string" && !M)
125
63
  return u.replace(/'\{(.*?)\}'/gi, "{$1}");
126
- if (t = s(s({}, M), t || {}), i = A(i, y), p = A(p, y), !u) {
64
+ if (t = m(m({}, M), t || {}), i = A(i, y), d = A(d, y), !u) {
127
65
  if (f === !1 && u === "")
128
66
  return u;
129
- if ((!d || a && a.toLowerCase() !== m.toLowerCase()) && g(new z(e, a)), d)
67
+ if ((!g || o && o.toLowerCase() !== s.toLowerCase()) && v(new z(e, o)), g)
130
68
  try {
131
- var T = o.getMessageFormat(d, m, p, n);
69
+ var T = a.getMessageFormat(g, s, d, n);
132
70
  return T.format(t);
133
71
  } catch (F) {
134
- return g(new P('Error formatting default message for: "'.concat(v, '", rendering default message verbatim'), a, e, F)), typeof d == "string" ? d : v;
72
+ return v(new P('Error formatting default message for: "'.concat(p, '", rendering default message verbatim'), o, e, F)), typeof g == "string" ? g : p;
135
73
  }
136
- return v;
74
+ return p;
137
75
  }
138
76
  try {
139
- var T = o.getMessageFormat(u, a, i, s({ formatters: o }, n || {}));
77
+ var T = a.getMessageFormat(u, o, i, m({ formatters: a }, n || {}));
140
78
  return T.format(t);
141
79
  } catch (F) {
142
- g(new P('Error formatting message: "'.concat(v, '", using ').concat(d ? "default message" : "id", " as fallback."), a, e, F));
80
+ v(new P('Error formatting message: "'.concat(p, '", using ').concat(g ? "default message" : "id", " as fallback."), o, e, F));
143
81
  }
144
- if (d)
82
+ if (g)
145
83
  try {
146
- var T = o.getMessageFormat(d, m, p, n);
84
+ var T = a.getMessageFormat(g, s, d, n);
147
85
  return T.format(t);
148
86
  } catch (F) {
149
- g(new P('Error formatting the default message for: "'.concat(v, '", rendering message verbatim'), a, e, F));
87
+ v(new P('Error formatting the default message for: "'.concat(p, '", rendering message verbatim'), o, e, F));
150
88
  }
151
- return typeof u == "string" ? u : typeof d == "string" ? d : v;
89
+ return typeof u == "string" ? u : typeof g == "string" ? g : p;
152
90
  }, G = [
153
91
  "formatMatcher",
154
92
  "timeZone",
@@ -170,64 +108,64 @@ var O = function(r, o, e, t, n) {
170
108
  "numberingSystem",
171
109
  "fractionalSecondDigits"
172
110
  ];
173
- function h(r, o, e, t) {
174
- var n = r.locale, a = r.formats, i = r.onError, l = r.timeZone;
111
+ function h(r, a, e, t) {
112
+ var n = r.locale, o = r.formats, i = r.onError, l = r.timeZone;
175
113
  t === void 0 && (t = {});
176
- var m = t.format, p = s(s({}, l && { timeZone: l }), m && w(a, o, m, i)), f = E(t, G, p);
177
- return o === "time" && !f.hour && !f.minute && !f.second && !f.timeStyle && !f.dateStyle && (f = s(s({}, f), { hour: "numeric", minute: "numeric" })), e(n, f);
114
+ var s = t.format, d = m(m({}, l && { timeZone: l }), s && w(o, a, s, i)), f = E(t, G, d);
115
+ return a === "time" && !f.hour && !f.minute && !f.second && !f.timeStyle && !f.dateStyle && (f = m(m({}, f), { hour: "numeric", minute: "numeric" })), e(n, f);
178
116
  }
179
- function lr(r, o) {
117
+ function lr(r, a) {
180
118
  for (var e = [], t = 2; t < arguments.length; t++)
181
119
  e[t - 2] = arguments[t];
182
- var n = e[0], a = e[1], i = a === void 0 ? {} : a, l = typeof n == "string" ? new Date(n || 0) : n;
120
+ var n = e[0], o = e[1], i = o === void 0 ? {} : o, l = typeof n == "string" ? new Date(n || 0) : n;
183
121
  try {
184
- return h(r, "date", o, i).format(l);
185
- } catch (m) {
186
- r.onError(new c("Error formatting date.", r.locale, m));
122
+ return h(r, "date", a, i).format(l);
123
+ } catch (s) {
124
+ r.onError(new c("Error formatting date.", r.locale, s));
187
125
  }
188
126
  return String(l);
189
127
  }
190
- function mr(r, o) {
128
+ function sr(r, a) {
191
129
  for (var e = [], t = 2; t < arguments.length; t++)
192
130
  e[t - 2] = arguments[t];
193
- var n = e[0], a = e[1], i = a === void 0 ? {} : a, l = typeof n == "string" ? new Date(n || 0) : n;
131
+ var n = e[0], o = e[1], i = o === void 0 ? {} : o, l = typeof n == "string" ? new Date(n || 0) : n;
194
132
  try {
195
- return h(r, "time", o, i).format(l);
196
- } catch (m) {
197
- r.onError(new c("Error formatting time.", r.locale, m));
133
+ return h(r, "time", a, i).format(l);
134
+ } catch (s) {
135
+ r.onError(new c("Error formatting time.", r.locale, s));
198
136
  }
199
137
  return String(l);
200
138
  }
201
- function sr(r, o) {
139
+ function mr(r, a) {
202
140
  for (var e = [], t = 2; t < arguments.length; t++)
203
141
  e[t - 2] = arguments[t];
204
- var n = e[0], a = e[1], i = e[2], l = i === void 0 ? {} : i, m = r.timeZone, p = r.locale, f = r.onError, g = E(l, G, m ? { timeZone: m } : {});
142
+ var n = e[0], o = e[1], i = e[2], l = i === void 0 ? {} : i, s = r.timeZone, d = r.locale, f = r.onError, v = E(l, G, s ? { timeZone: s } : {});
205
143
  try {
206
- return o(p, g).formatRange(n, a);
144
+ return a(d, v).formatRange(n, o);
207
145
  } catch (y) {
208
146
  f(new c("Error formatting date time range.", r.locale, y));
209
147
  }
210
148
  return String(n);
211
149
  }
212
- function fr(r, o) {
150
+ function fr(r, a) {
213
151
  for (var e = [], t = 2; t < arguments.length; t++)
214
152
  e[t - 2] = arguments[t];
215
- var n = e[0], a = e[1], i = a === void 0 ? {} : a, l = typeof n == "string" ? new Date(n || 0) : n;
153
+ var n = e[0], o = e[1], i = o === void 0 ? {} : o, l = typeof n == "string" ? new Date(n || 0) : n;
216
154
  try {
217
- return h(r, "date", o, i).formatToParts(l);
218
- } catch (m) {
219
- r.onError(new c("Error formatting date.", r.locale, m));
155
+ return h(r, "date", a, i).formatToParts(l);
156
+ } catch (s) {
157
+ r.onError(new c("Error formatting date.", r.locale, s));
220
158
  }
221
159
  return [];
222
160
  }
223
- function ur(r, o) {
161
+ function ur(r, a) {
224
162
  for (var e = [], t = 2; t < arguments.length; t++)
225
163
  e[t - 2] = arguments[t];
226
- var n = e[0], a = e[1], i = a === void 0 ? {} : a, l = typeof n == "string" ? new Date(n || 0) : n;
164
+ var n = e[0], o = e[1], i = o === void 0 ? {} : o, l = typeof n == "string" ? new Date(n || 0) : n;
227
165
  try {
228
- return h(r, "time", o, i).formatToParts(l);
229
- } catch (m) {
230
- r.onError(new c("Error formatting time.", r.locale, m));
166
+ return h(r, "time", a, i).formatToParts(l);
167
+ } catch (s) {
168
+ r.onError(new c("Error formatting time.", r.locale, s));
231
169
  }
232
170
  return [];
233
171
  }
@@ -237,86 +175,86 @@ var cr = [
237
175
  "fallback",
238
176
  "languageDisplay"
239
177
  ];
240
- function pr(r, o, e, t) {
241
- var n = r.locale, a = r.onError, i = Intl.DisplayNames;
242
- i || a(new I(`Intl.DisplayNames is not available in this environment.
178
+ function dr(r, a, e, t) {
179
+ var n = r.locale, o = r.onError, i = Intl.DisplayNames;
180
+ i || o(new I(`Intl.DisplayNames is not available in this environment.
243
181
  Try polyfilling it using "@formatjs/intl-displaynames"
244
182
  `, S.MISSING_INTL_API));
245
183
  var l = E(t, cr);
246
184
  try {
247
- return o(n, l).of(e);
248
- } catch (m) {
249
- a(new c("Error formatting display name.", n, m));
185
+ return a(n, l).of(e);
186
+ } catch (s) {
187
+ o(new c("Error formatting display name.", n, s));
250
188
  }
251
189
  }
252
- var dr = [
190
+ var gr = [
253
191
  "type",
254
192
  "style"
255
193
  ], j = Date.now();
256
- function gr(r) {
194
+ function vr(r) {
257
195
  return "".concat(j, "_").concat(r, "_").concat(j);
258
196
  }
259
- function vr(r, o, e, t) {
197
+ function pr(r, a, e, t) {
260
198
  t === void 0 && (t = {});
261
- var n = U(r, o, e, t).reduce(function(a, i) {
199
+ var n = U(r, a, e, t).reduce(function(o, i) {
262
200
  var l = i.value;
263
- return typeof l != "string" ? a.push(l) : typeof a[a.length - 1] == "string" ? a[a.length - 1] += l : a.push(l), a;
201
+ return typeof l != "string" ? o.push(l) : typeof o[o.length - 1] == "string" ? o[o.length - 1] += l : o.push(l), o;
264
202
  }, []);
265
203
  return n.length === 1 ? n[0] : n.length === 0 ? "" : n;
266
204
  }
267
- function U(r, o, e, t) {
268
- var n = r.locale, a = r.onError;
205
+ function U(r, a, e, t) {
206
+ var n = r.locale, o = r.onError;
269
207
  t === void 0 && (t = {});
270
208
  var i = Intl.ListFormat;
271
- i || a(new I(`Intl.ListFormat is not available in this environment.
209
+ i || o(new I(`Intl.ListFormat is not available in this environment.
272
210
  Try polyfilling it using "@formatjs/intl-listformat"
273
211
  `, S.MISSING_INTL_API));
274
- var l = E(t, dr);
212
+ var l = E(t, gr);
275
213
  try {
276
- var m = {}, p = e.map(function(f, g) {
214
+ var s = {}, d = e.map(function(f, v) {
277
215
  if (typeof f == "object") {
278
- var y = gr(g);
279
- return m[y] = f, y;
216
+ var y = vr(v);
217
+ return s[y] = f, y;
280
218
  }
281
219
  return String(f);
282
220
  });
283
- return o(n, l).formatToParts(p).map(function(f) {
284
- return f.type === "literal" ? f : s(s({}, f), { value: m[f.value] || f.value });
221
+ return a(n, l).formatToParts(d).map(function(f) {
222
+ return f.type === "literal" ? f : m(m({}, f), { value: s[f.value] || f.value });
285
223
  });
286
224
  } catch (f) {
287
- a(new c("Error formatting list.", n, f));
225
+ o(new c("Error formatting list.", n, f));
288
226
  }
289
227
  return e;
290
228
  }
291
229
  var yr = ["type"];
292
- function Er(r, o, e, t) {
293
- var n = r.locale, a = r.onError;
294
- t === void 0 && (t = {}), Intl.PluralRules || a(new I(`Intl.PluralRules is not available in this environment.
230
+ function Er(r, a, e, t) {
231
+ var n = r.locale, o = r.onError;
232
+ t === void 0 && (t = {}), Intl.PluralRules || o(new I(`Intl.PluralRules is not available in this environment.
295
233
  Try polyfilling it using "@formatjs/intl-pluralrules"
296
234
  `, S.MISSING_INTL_API));
297
235
  var i = E(t, yr);
298
236
  try {
299
- return o(n, i).select(e);
237
+ return a(n, i).select(e);
300
238
  } catch (l) {
301
- a(new c("Error formatting plural.", n, l));
239
+ o(new c("Error formatting plural.", n, l));
302
240
  }
303
241
  return "other";
304
242
  }
305
243
  var Tr = ["numeric", "style"];
306
- function Fr(r, o, e) {
307
- var t = r.locale, n = r.formats, a = r.onError;
244
+ function Fr(r, a, e) {
245
+ var t = r.locale, n = r.formats, o = r.onError;
308
246
  e === void 0 && (e = {});
309
- var i = e.format, l = !!i && w(n, "relative", i, a) || {}, m = E(e, Tr, l);
310
- return o(t, m);
247
+ var i = e.format, l = !!i && w(n, "relative", i, o) || {}, s = E(e, Tr, l);
248
+ return a(t, s);
311
249
  }
312
- function br(r, o, e, t, n) {
250
+ function br(r, a, e, t, n) {
313
251
  n === void 0 && (n = {}), t || (t = "second");
314
- var a = Intl.RelativeTimeFormat;
315
- a || r.onError(new I(`Intl.RelativeTimeFormat is not available in this environment.
252
+ var o = Intl.RelativeTimeFormat;
253
+ o || r.onError(new I(`Intl.RelativeTimeFormat is not available in this environment.
316
254
  Try polyfilling it using "@formatjs/intl-relativetimeformat"
317
255
  `, S.MISSING_INTL_API));
318
256
  try {
319
- return Fr(r, o, n).format(e, t);
257
+ return Fr(r, a, n).format(e, t);
320
258
  } catch (i) {
321
259
  r.onError(new c("Error formatting relative time.", r.locale, i));
322
260
  }
@@ -344,98 +282,98 @@ var Ir = [
344
282
  "unitDisplay",
345
283
  "numberingSystem"
346
284
  ];
347
- function $(r, o, e) {
348
- var t = r.locale, n = r.formats, a = r.onError;
285
+ function $(r, a, e) {
286
+ var t = r.locale, n = r.formats, o = r.onError;
349
287
  e === void 0 && (e = {});
350
- var i = e.format, l = i && w(n, "number", i, a) || {}, m = E(e, Ir, l);
351
- return o(t, m);
288
+ var i = e.format, l = i && w(n, "number", i, o) || {}, s = E(e, Ir, l);
289
+ return a(t, s);
352
290
  }
353
- function Sr(r, o, e, t) {
291
+ function Sr(r, a, e, t) {
354
292
  t === void 0 && (t = {});
355
293
  try {
356
- return $(r, o, t).format(e);
294
+ return $(r, a, t).format(e);
357
295
  } catch (n) {
358
296
  r.onError(new c("Error formatting number.", r.locale, n));
359
297
  }
360
298
  return String(e);
361
299
  }
362
- function hr(r, o, e, t) {
300
+ function hr(r, a, e, t) {
363
301
  t === void 0 && (t = {});
364
302
  try {
365
- return $(r, o, t).formatToParts(e);
303
+ return $(r, a, t).formatToParts(e);
366
304
  } catch (n) {
367
305
  r.onError(new c("Error formatting number.", r.locale, n));
368
306
  }
369
307
  return [];
370
308
  }
371
309
  function Pr(r) {
372
- var o = r ? r[Object.keys(r)[0]] : void 0;
373
- return typeof o == "string";
310
+ var a = r ? r[Object.keys(r)[0]] : void 0;
311
+ return typeof a == "string";
374
312
  }
375
313
  function xr(r) {
376
314
  r.onWarn && r.defaultRichTextElements && Pr(r.messages || {}) && r.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
377
315
  Please consider using "@formatjs/cli" to pre-compile your messages for performance.
378
316
  For more details see https://formatjs.io/docs/getting-started/message-distribution`);
379
317
  }
380
- function Dr(r, o) {
381
- var e = Y(o), t = s(s({}, K), r), n = t.locale, a = t.defaultLocale, i = t.onError;
382
- return n ? !Intl.NumberFormat.supportedLocalesOf(n).length && i ? i(new N('Missing locale data for locale: "'.concat(n, '" in Intl.NumberFormat. Using default locale: "').concat(a, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : !Intl.DateTimeFormat.supportedLocalesOf(n).length && i && i(new N('Missing locale data for locale: "'.concat(n, '" in Intl.DateTimeFormat. Using default locale: "').concat(a, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : (i && i(new H('"locale" was not configured, using "'.concat(a, '" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))), t.locale = t.defaultLocale || "en"), xr(t), s(s({}, t), {
318
+ function Dr(r, a) {
319
+ var e = Y(a), t = m(m({}, K), r), n = t.locale, o = t.defaultLocale, i = t.onError;
320
+ return n ? !Intl.NumberFormat.supportedLocalesOf(n).length && i ? i(new N('Missing locale data for locale: "'.concat(n, '" in Intl.NumberFormat. Using default locale: "').concat(o, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : !Intl.DateTimeFormat.supportedLocalesOf(n).length && i && i(new N('Missing locale data for locale: "'.concat(n, '" in Intl.DateTimeFormat. Using default locale: "').concat(o, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : (i && i(new H('"locale" was not configured, using "'.concat(o, '" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))), t.locale = t.defaultLocale || "en"), xr(t), m(m({}, t), {
383
321
  formatters: e,
384
322
  formatNumber: Sr.bind(null, t, e.getNumberFormat),
385
323
  formatNumberToParts: hr.bind(null, t, e.getNumberFormat),
386
324
  formatRelativeTime: br.bind(null, t, e.getRelativeTimeFormat),
387
325
  formatDate: lr.bind(null, t, e.getDateTimeFormat),
388
326
  formatDateToParts: fr.bind(null, t, e.getDateTimeFormat),
389
- formatTime: mr.bind(null, t, e.getDateTimeFormat),
390
- formatDateTimeRange: sr.bind(null, t, e.getDateTimeFormat),
327
+ formatTime: sr.bind(null, t, e.getDateTimeFormat),
328
+ formatDateTimeRange: mr.bind(null, t, e.getDateTimeFormat),
391
329
  formatTimeToParts: ur.bind(null, t, e.getDateTimeFormat),
392
330
  formatPlural: Er.bind(null, t, e.getPluralRules),
393
331
  // @ts-expect-error TODO: will get to this later
394
332
  formatMessage: O.bind(null, t, e),
395
333
  // @ts-expect-error TODO: will get to this later
396
334
  $t: O.bind(null, t, e),
397
- formatList: vr.bind(null, t, e.getListFormat),
335
+ formatList: pr.bind(null, t, e.getListFormat),
398
336
  formatListToParts: U.bind(null, t, e.getListFormat),
399
- formatDisplayName: pr.bind(null, t, e.getDisplayNames)
337
+ formatDisplayName: dr.bind(null, t, e.getDisplayNames)
400
338
  });
401
339
  }
402
340
  function _(r) {
403
- return r && Object.keys(r).reduce(function(o, e) {
341
+ return r && Object.keys(r).reduce(function(a, e) {
404
342
  var t = r[e];
405
- return o[e] = Q(t) ? V(t) : t, o;
343
+ return a[e] = Q(t) ? V(t) : t, a;
406
344
  }, {});
407
345
  }
408
- var k = function(r, o, e, t) {
409
- for (var n = [], a = 4; a < arguments.length; a++)
410
- n[a - 4] = arguments[a];
346
+ var k = function(r, a, e, t) {
347
+ for (var n = [], o = 4; o < arguments.length; o++)
348
+ n[o - 4] = arguments[o];
411
349
  var i = _(t), l = O.apply(void 0, rr([
412
350
  r,
413
- o,
351
+ a,
414
352
  e,
415
353
  i
416
354
  ], n, !1));
417
355
  return Array.isArray(l) ? D.Children.toArray(l) : l;
418
- }, B = function(r, o) {
419
- var e = r.defaultRichTextElements, t = J(r, ["defaultRichTextElements"]), n = _(e), a = Dr(s(s(s({}, Z), t), { defaultRichTextElements: n }), o), i = {
420
- locale: a.locale,
421
- timeZone: a.timeZone,
422
- fallbackOnEmptyString: a.fallbackOnEmptyString,
423
- formats: a.formats,
424
- defaultLocale: a.defaultLocale,
425
- defaultFormats: a.defaultFormats,
426
- messages: a.messages,
427
- onError: a.onError,
356
+ }, B = function(r, a) {
357
+ var e = r.defaultRichTextElements, t = J(r, ["defaultRichTextElements"]), n = _(e), o = Dr(m(m(m({}, Z), t), { defaultRichTextElements: n }), a), i = {
358
+ locale: o.locale,
359
+ timeZone: o.timeZone,
360
+ fallbackOnEmptyString: o.fallbackOnEmptyString,
361
+ formats: o.formats,
362
+ defaultLocale: o.defaultLocale,
363
+ defaultFormats: o.defaultFormats,
364
+ messages: o.messages,
365
+ onError: o.onError,
428
366
  defaultRichTextElements: n
429
367
  };
430
- return s(s({}, a), {
368
+ return m(m({}, o), {
431
369
  formatMessage: k.bind(
432
370
  null,
433
371
  i,
434
372
  // @ts-expect-error fix this
435
- a.formatters
373
+ o.formatters
436
374
  ),
437
375
  // @ts-expect-error fix this
438
- $t: k.bind(null, i, a.formatters)
376
+ $t: k.bind(null, i, o.formatters)
439
377
  });
440
378
  };
441
379
  function x(r) {
@@ -457,8 +395,8 @@ function x(r) {
457
395
  var Or = (
458
396
  /** @class */
459
397
  function(r) {
460
- tr(o, r);
461
- function o() {
398
+ tr(a, r);
399
+ function a() {
462
400
  var e = r !== null && r.apply(this, arguments) || this;
463
401
  return e.cache = nr(), e.state = {
464
402
  cache: e.cache,
@@ -466,29 +404,29 @@ var Or = (
466
404
  prevConfig: x(e.props)
467
405
  }, e;
468
406
  }
469
- return o.getDerivedStateFromProps = function(e, t) {
470
- var n = t.prevConfig, a = t.cache, i = x(e);
407
+ return a.getDerivedStateFromProps = function(e, t) {
408
+ var n = t.prevConfig, o = t.cache, i = x(e);
471
409
  return er(n, i) ? null : {
472
- intl: B(i, a),
410
+ intl: B(i, o),
473
411
  prevConfig: i
474
412
  };
475
- }, o.prototype.render = function() {
476
- return or(this.state.intl), D.createElement(ar, { value: this.state.intl }, this.props.children);
477
- }, o.displayName = "IntlProvider", o.defaultProps = Z, o;
413
+ }, a.prototype.render = function() {
414
+ return ar(this.state.intl), D.createElement(or, { value: this.state.intl }, this.props.children);
415
+ }, a.displayName = "IntlProvider", a.defaultProps = Z, a;
478
416
  }(D.PureComponent)
479
417
  );
480
- const wr = Or, _t = ({
418
+ const wr = Or, Ar = ({
481
419
  locale: r,
482
- theme: o,
420
+ theme: a,
483
421
  ...e
484
422
  }) => {
485
- var t, n, a, i, l;
423
+ var t, n, o, i, l;
486
424
  return /* @__PURE__ */ L(wr, { locale: (r == null ? void 0 : r.locale) || "en", children: /* @__PURE__ */ L(
487
425
  ir,
488
426
  {
489
427
  ...e,
490
428
  theme: {
491
- ...o,
429
+ ...a,
492
430
  token: {
493
431
  fontFamily: "Inter, Noto Sans Arabic, sans-serif",
494
432
  borderRadius: 8,
@@ -506,34 +444,34 @@ const wr = Or, _t = ({
506
444
  fontSizeSM: 14,
507
445
  fontSizeLG: 16,
508
446
  fontSizeXL: 18,
509
- ...o == null ? void 0 : o.token
447
+ ...a == null ? void 0 : a.token
510
448
  },
511
449
  components: {
512
- ...o == null ? void 0 : o.components,
450
+ ...a == null ? void 0 : a.components,
513
451
  Progress: {
514
452
  defaultColor: "#1B7DC7",
515
453
  remainingColor: "#E2E8F0",
516
454
  lineBorderRadius: 50,
517
- ...(t = o == null ? void 0 : o.components) == null ? void 0 : t.Progress
455
+ ...(t = a == null ? void 0 : a.components) == null ? void 0 : t.Progress
518
456
  },
519
457
  Input: {
520
458
  colorBorder: "#E2E8F0",
521
459
  colorText: "#94A3B8",
522
- ...(n = o == null ? void 0 : o.components) == null ? void 0 : n.Input
460
+ ...(n = a == null ? void 0 : a.components) == null ? void 0 : n.Input
523
461
  },
524
462
  Select: {
525
463
  colorText: "#94A3B8",
526
- ...(a = o == null ? void 0 : o.components) == null ? void 0 : a.Select
464
+ ...(o = a == null ? void 0 : a.components) == null ? void 0 : o.Select
527
465
  },
528
466
  DatePicker: {
529
467
  colorText: "#94A3B8",
530
- ...(i = o == null ? void 0 : o.components) == null ? void 0 : i.DatePicker
468
+ ...(i = a == null ? void 0 : a.components) == null ? void 0 : i.DatePicker
531
469
  },
532
470
  Modal: {
533
471
  titleColor: "#0F172A",
534
472
  headerBg: "#fff",
535
473
  contentBg: "#fff",
536
- ...(l = o == null ? void 0 : o.components) == null ? void 0 : l.Modal
474
+ ...(l = a == null ? void 0 : a.components) == null ? void 0 : l.Modal
537
475
  }
538
476
  }
539
477
  },
@@ -542,30 +480,30 @@ const wr = Or, _t = ({
542
480
  ) });
543
481
  };
544
482
  export {
545
- zt as AgGridTable,
546
- Yt as Button,
547
- Ht as CheckList,
548
- _t as ConfigProvider,
549
- Qt as DatePicker,
550
- re as Dragger,
551
- ee as Dropdown,
552
- ae as Form,
553
- ie as FormItem,
554
- me as Input,
555
- fe as Modal,
556
- ce as PasswordInput,
557
- de as Progress,
558
- ve as ProgressCircle,
559
- Ee as RadioButton,
560
- Fe as RadioButtonGroup,
561
- Ie as ResultPopup,
562
- he as Select,
563
- xe as SideMenu,
564
- Oe as Steps,
565
- Me as Table,
566
- Le as Tabs,
567
- Ce as Tag,
568
- je as TimelineHorizontal,
569
- Be as Upload,
570
- Ge as theme
483
+ Br as AgGridTable,
484
+ Gr as Button,
485
+ $r as CheckList,
486
+ Ar as ConfigProvider,
487
+ qr as DatePicker,
488
+ zr as Dragger,
489
+ Yr as Dropdown,
490
+ Hr as Form,
491
+ Qr as FormItem,
492
+ rt as Input,
493
+ et as Modal,
494
+ ot as PasswordInput,
495
+ it as Progress,
496
+ st as ProgressCircle,
497
+ ft as RadioButton,
498
+ ct as RadioButtonGroup,
499
+ gt as ResultPopup,
500
+ pt as Select,
501
+ Et as SideMenu,
502
+ Ft as Steps,
503
+ It as Table,
504
+ ht as Tabs,
505
+ xt as Tag,
506
+ Ot as TimelineHorizontal,
507
+ Mt as Upload,
508
+ Lt as theme
571
509
  };