gasp-components 1.0.2 → 1.0.5

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