gasp-components 1.0.9 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/UploadOutlined-9WKjHsqa.js +878 -0
- package/dist/components/ag-grid-table/index.js +57877 -38314
- package/dist/components/button/index.js +18 -18
- package/dist/components/checklist/checklist-item.js +3 -3
- package/dist/components/checklist/index.js +5 -5
- package/dist/components/date-picker/index.js +9 -5022
- package/dist/components/dragger/index.js +28 -28
- package/dist/components/dropdown/index.js +10 -11
- package/dist/components/form/index.js +8 -9
- package/dist/components/form-item/index.js +10 -10
- package/dist/components/input/index.js +8 -8
- package/dist/components/modal/index.js +18 -20
- package/dist/components/password-input/index.js +2 -2
- package/dist/components/progress/index.js +16 -18
- package/dist/components/progress-circle/index.js +3 -3
- package/dist/components/radio-button/index.js +8 -8
- package/dist/components/result-popup/index.js +13 -14
- package/dist/components/select/index.js +1 -1
- package/dist/components/side-menu/index.js +2 -2
- package/dist/components/side-menu/menu-item.js +4 -6
- package/dist/components/steps/index.js +9 -9
- package/dist/components/table/index.js +16 -9298
- package/dist/components/tabs/index.js +10 -10
- package/dist/components/tabs/tab.js +7 -8
- package/dist/components/tag/index.js +9 -258
- package/dist/components/timeline-horizontal/index.js +7 -7
- package/dist/components/upload/index.js +62 -77
- package/dist/index-WlPrqxgY.js +87 -0
- package/dist/main.js +69 -457
- package/package.json +4 -3
- package/dist/CheckCircleFilled-xt-0R96Z.js +0 -16
- package/dist/CheckOutlined-EgxCAgj_.js +0 -16
- package/dist/CloseCircleFilled-bIgIULWb.js +0 -16
- package/dist/CloseOutlined-Q3kC3EZS.js +0 -16
- package/dist/Compact-fdEKV_mF.js +0 -180
- package/dist/ExclamationCircleFilled-XzDBEGmA.js +0 -16
- package/dist/KeyCode-qFRXB1-n.js +0 -517
- package/dist/LoadingOutlined-6Ipqn0og.js +0 -16
- package/dist/Overflow-JFdXKgCr.js +0 -231
- package/dist/PurePanel-hLGnXbul.js +0 -60
- package/dist/SearchOutlined-rJTFGXUi.js +0 -16
- package/dist/TextArea-n3dknzTq.js +0 -716
- package/dist/UploadOutlined-D8jfLEgv.js +0 -27
- package/dist/asyncToGenerator-t4sKr8R4.js +0 -340
- package/dist/button-LN5ZDad8.js +0 -819
- package/dist/collapse-ilv4Tji1.js +0 -20
- package/dist/colors-opGg9oSz.js +0 -25
- package/dist/compact-item-jjuVmDBH.js +0 -61
- package/dist/context-h3WSVDPz.js +0 -2087
- package/dist/createFormattedComponent-FcpICAm8.js +0 -3260
- package/dist/index--6VfGMUo.js +0 -402
- package/dist/index-0mpuHoS5.js +0 -996
- package/dist/index-1KQbTQJ2.js +0 -4405
- package/dist/index-5Uo03BMk.js +0 -681
- package/dist/index-BFgxz47K.js +0 -89
- package/dist/index-D3LMPWyJ.js +0 -1437
- package/dist/index-DVS_nWxv.js +0 -3026
- package/dist/index-ELHBhuK9.js +0 -100
- package/dist/index-Fn8q8B3V.js +0 -107
- package/dist/index-GgkQrebz.js +0 -950
- package/dist/index-L-MzVDcK.js +0 -616
- package/dist/index-M3WnMjiA.js +0 -230
- package/dist/index-NQd_zMf0.js +0 -69
- package/dist/index-ZT64Ec6u.js +0 -267
- package/dist/index-aawDqn9q.js +0 -3337
- package/dist/index-k04G4nlS.js +0 -1416
- package/dist/index-s3u4YBl4.js +0 -8
- package/dist/index-vtDVJV8q.js +0 -19571
- package/dist/isVisible-Qi9l15Ty.js +0 -232
- package/dist/motion-0ToOu81j.js +0 -226
- package/dist/motion-NQme0FJ_.js +0 -32
- package/dist/omit-ylWA0ZLZ.js +0 -10
- package/dist/pickAttrs-zaQzRTqh.js +0 -42
- package/dist/progress-a1_pwKVT.js +0 -722
- package/dist/reactNode-R20zZQk1.js +0 -18
- package/dist/responsiveObserver-V1_1G14X.js +0 -71
- package/dist/roundedArrow-p1Pmd9av.js +0 -64
- package/dist/row-sPFiFm0C.js +0 -230
- package/dist/slide-mFXPRHku.js +0 -265
- package/dist/styleChecker-pZ3k2IiY.js +0 -37
- package/dist/useCSSVarCls-GwZT_WiF.js +0 -9
- package/dist/useClosable-4G12n4Bp.js +0 -15
- package/dist/useLocale-eThlLZJw.js +0 -16
- package/dist/useMergedState-qUafLuUa.js +0 -23
- package/dist/useVariants-s0IcneBD.js +0 -25
- package/dist/zoom-Ps8y0jNW.js +0 -174
package/dist/main.js
CHANGED
|
@@ -1,432 +1,44 @@
|
|
|
1
1
|
import "./assets/main.css";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import "
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
|
|
31
|
-
import { A as ir } from "./index-1KQbTQJ2.js";
|
|
32
|
-
function b(r, a) {
|
|
33
|
-
return Object.keys(r).reduce(function(e, t) {
|
|
34
|
-
return e[t] = m({ timeZone: a }, r[t]), e;
|
|
35
|
-
}, {});
|
|
36
|
-
}
|
|
37
|
-
function C(r, a) {
|
|
38
|
-
var e = Object.keys(m(m({}, r), a));
|
|
39
|
-
return e.reduce(function(t, n) {
|
|
40
|
-
return t[n] = m(m({}, r[n] || {}), a[n] || {}), t;
|
|
41
|
-
}, {});
|
|
42
|
-
}
|
|
43
|
-
function A(r, a) {
|
|
44
|
-
if (!a)
|
|
45
|
-
return r;
|
|
46
|
-
var e = X.formats;
|
|
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)) });
|
|
48
|
-
}
|
|
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;
|
|
51
|
-
e === void 0 && (e = { id: "" });
|
|
52
|
-
var R = e.id, g = e.defaultMessage;
|
|
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");
|
|
54
|
-
var p = String(R), u = (
|
|
55
|
-
// In case messages is Object.create(null)
|
|
56
|
-
// e.g import('foo.json') from webpack)
|
|
57
|
-
// See https://github.com/formatjs/formatjs/issues/1914
|
|
58
|
-
l && Object.prototype.hasOwnProperty.call(l, p) && l[p]
|
|
59
|
-
);
|
|
60
|
-
if (Array.isArray(u) && u.length === 1 && u[0].type === W.literal)
|
|
61
|
-
return u[0].value;
|
|
62
|
-
if (!t && u && typeof u == "string" && !M)
|
|
63
|
-
return u.replace(/'\{(.*?)\}'/gi, "{$1}");
|
|
64
|
-
if (t = m(m({}, M), t || {}), i = A(i, y), d = A(d, y), !u) {
|
|
65
|
-
if (f === !1 && u === "")
|
|
66
|
-
return u;
|
|
67
|
-
if ((!g || o && o.toLowerCase() !== s.toLowerCase()) && v(new z(e, o)), g)
|
|
68
|
-
try {
|
|
69
|
-
var T = a.getMessageFormat(g, s, d, n);
|
|
70
|
-
return T.format(t);
|
|
71
|
-
} catch (F) {
|
|
72
|
-
return v(new P('Error formatting default message for: "'.concat(p, '", rendering default message verbatim'), o, e, F)), typeof g == "string" ? g : p;
|
|
73
|
-
}
|
|
74
|
-
return p;
|
|
75
|
-
}
|
|
76
|
-
try {
|
|
77
|
-
var T = a.getMessageFormat(u, o, i, m({ formatters: a }, n || {}));
|
|
78
|
-
return T.format(t);
|
|
79
|
-
} catch (F) {
|
|
80
|
-
v(new P('Error formatting message: "'.concat(p, '", using ').concat(g ? "default message" : "id", " as fallback."), o, e, F));
|
|
81
|
-
}
|
|
82
|
-
if (g)
|
|
83
|
-
try {
|
|
84
|
-
var T = a.getMessageFormat(g, s, d, n);
|
|
85
|
-
return T.format(t);
|
|
86
|
-
} catch (F) {
|
|
87
|
-
v(new P('Error formatting the default message for: "'.concat(p, '", rendering message verbatim'), o, e, F));
|
|
88
|
-
}
|
|
89
|
-
return typeof u == "string" ? u : typeof g == "string" ? g : p;
|
|
90
|
-
}, G = [
|
|
91
|
-
"formatMatcher",
|
|
92
|
-
"timeZone",
|
|
93
|
-
"hour12",
|
|
94
|
-
"weekday",
|
|
95
|
-
"era",
|
|
96
|
-
"year",
|
|
97
|
-
"month",
|
|
98
|
-
"day",
|
|
99
|
-
"hour",
|
|
100
|
-
"minute",
|
|
101
|
-
"second",
|
|
102
|
-
"timeZoneName",
|
|
103
|
-
"hourCycle",
|
|
104
|
-
"dateStyle",
|
|
105
|
-
"timeStyle",
|
|
106
|
-
"calendar",
|
|
107
|
-
// 'dayPeriod',
|
|
108
|
-
"numberingSystem",
|
|
109
|
-
"fractionalSecondDigits"
|
|
110
|
-
];
|
|
111
|
-
function h(r, a, e, t) {
|
|
112
|
-
var n = r.locale, o = r.formats, i = r.onError, l = r.timeZone;
|
|
113
|
-
t === void 0 && (t = {});
|
|
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);
|
|
116
|
-
}
|
|
117
|
-
function lr(r, a) {
|
|
118
|
-
for (var e = [], t = 2; t < arguments.length; t++)
|
|
119
|
-
e[t - 2] = arguments[t];
|
|
120
|
-
var n = e[0], o = e[1], i = o === void 0 ? {} : o, l = typeof n == "string" ? new Date(n || 0) : n;
|
|
121
|
-
try {
|
|
122
|
-
return h(r, "date", a, i).format(l);
|
|
123
|
-
} catch (s) {
|
|
124
|
-
r.onError(new c("Error formatting date.", r.locale, s));
|
|
125
|
-
}
|
|
126
|
-
return String(l);
|
|
127
|
-
}
|
|
128
|
-
function sr(r, a) {
|
|
129
|
-
for (var e = [], t = 2; t < arguments.length; t++)
|
|
130
|
-
e[t - 2] = arguments[t];
|
|
131
|
-
var n = e[0], o = e[1], i = o === void 0 ? {} : o, l = typeof n == "string" ? new Date(n || 0) : n;
|
|
132
|
-
try {
|
|
133
|
-
return h(r, "time", a, i).format(l);
|
|
134
|
-
} catch (s) {
|
|
135
|
-
r.onError(new c("Error formatting time.", r.locale, s));
|
|
136
|
-
}
|
|
137
|
-
return String(l);
|
|
138
|
-
}
|
|
139
|
-
function mr(r, a) {
|
|
140
|
-
for (var e = [], t = 2; t < arguments.length; t++)
|
|
141
|
-
e[t - 2] = arguments[t];
|
|
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 } : {});
|
|
143
|
-
try {
|
|
144
|
-
return a(d, v).formatRange(n, o);
|
|
145
|
-
} catch (y) {
|
|
146
|
-
f(new c("Error formatting date time range.", r.locale, y));
|
|
147
|
-
}
|
|
148
|
-
return String(n);
|
|
149
|
-
}
|
|
150
|
-
function fr(r, a) {
|
|
151
|
-
for (var e = [], t = 2; t < arguments.length; t++)
|
|
152
|
-
e[t - 2] = arguments[t];
|
|
153
|
-
var n = e[0], o = e[1], i = o === void 0 ? {} : o, l = typeof n == "string" ? new Date(n || 0) : n;
|
|
154
|
-
try {
|
|
155
|
-
return h(r, "date", a, i).formatToParts(l);
|
|
156
|
-
} catch (s) {
|
|
157
|
-
r.onError(new c("Error formatting date.", r.locale, s));
|
|
158
|
-
}
|
|
159
|
-
return [];
|
|
160
|
-
}
|
|
161
|
-
function ur(r, a) {
|
|
162
|
-
for (var e = [], t = 2; t < arguments.length; t++)
|
|
163
|
-
e[t - 2] = arguments[t];
|
|
164
|
-
var n = e[0], o = e[1], i = o === void 0 ? {} : o, l = typeof n == "string" ? new Date(n || 0) : n;
|
|
165
|
-
try {
|
|
166
|
-
return h(r, "time", a, i).formatToParts(l);
|
|
167
|
-
} catch (s) {
|
|
168
|
-
r.onError(new c("Error formatting time.", r.locale, s));
|
|
169
|
-
}
|
|
170
|
-
return [];
|
|
171
|
-
}
|
|
172
|
-
var cr = [
|
|
173
|
-
"style",
|
|
174
|
-
"type",
|
|
175
|
-
"fallback",
|
|
176
|
-
"languageDisplay"
|
|
177
|
-
];
|
|
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.
|
|
181
|
-
Try polyfilling it using "@formatjs/intl-displaynames"
|
|
182
|
-
`, S.MISSING_INTL_API));
|
|
183
|
-
var l = E(t, cr);
|
|
184
|
-
try {
|
|
185
|
-
return a(n, l).of(e);
|
|
186
|
-
} catch (s) {
|
|
187
|
-
o(new c("Error formatting display name.", n, s));
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
var gr = [
|
|
191
|
-
"type",
|
|
192
|
-
"style"
|
|
193
|
-
], j = Date.now();
|
|
194
|
-
function vr(r) {
|
|
195
|
-
return "".concat(j, "_").concat(r, "_").concat(j);
|
|
196
|
-
}
|
|
197
|
-
function pr(r, a, e, t) {
|
|
198
|
-
t === void 0 && (t = {});
|
|
199
|
-
var n = U(r, a, e, t).reduce(function(o, i) {
|
|
200
|
-
var l = i.value;
|
|
201
|
-
return typeof l != "string" ? o.push(l) : typeof o[o.length - 1] == "string" ? o[o.length - 1] += l : o.push(l), o;
|
|
202
|
-
}, []);
|
|
203
|
-
return n.length === 1 ? n[0] : n.length === 0 ? "" : n;
|
|
204
|
-
}
|
|
205
|
-
function U(r, a, e, t) {
|
|
206
|
-
var n = r.locale, o = r.onError;
|
|
207
|
-
t === void 0 && (t = {});
|
|
208
|
-
var i = Intl.ListFormat;
|
|
209
|
-
i || o(new I(`Intl.ListFormat is not available in this environment.
|
|
210
|
-
Try polyfilling it using "@formatjs/intl-listformat"
|
|
211
|
-
`, S.MISSING_INTL_API));
|
|
212
|
-
var l = E(t, gr);
|
|
213
|
-
try {
|
|
214
|
-
var s = {}, d = e.map(function(f, v) {
|
|
215
|
-
if (typeof f == "object") {
|
|
216
|
-
var y = vr(v);
|
|
217
|
-
return s[y] = f, y;
|
|
218
|
-
}
|
|
219
|
-
return String(f);
|
|
220
|
-
});
|
|
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 });
|
|
223
|
-
});
|
|
224
|
-
} catch (f) {
|
|
225
|
-
o(new c("Error formatting list.", n, f));
|
|
226
|
-
}
|
|
227
|
-
return e;
|
|
228
|
-
}
|
|
229
|
-
var yr = ["type"];
|
|
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.
|
|
233
|
-
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
234
|
-
`, S.MISSING_INTL_API));
|
|
235
|
-
var i = E(t, yr);
|
|
236
|
-
try {
|
|
237
|
-
return a(n, i).select(e);
|
|
238
|
-
} catch (l) {
|
|
239
|
-
o(new c("Error formatting plural.", n, l));
|
|
240
|
-
}
|
|
241
|
-
return "other";
|
|
242
|
-
}
|
|
243
|
-
var Tr = ["numeric", "style"];
|
|
244
|
-
function Fr(r, a, e) {
|
|
245
|
-
var t = r.locale, n = r.formats, o = r.onError;
|
|
246
|
-
e === void 0 && (e = {});
|
|
247
|
-
var i = e.format, l = !!i && w(n, "relative", i, o) || {}, s = E(e, Tr, l);
|
|
248
|
-
return a(t, s);
|
|
249
|
-
}
|
|
250
|
-
function br(r, a, e, t, n) {
|
|
251
|
-
n === void 0 && (n = {}), t || (t = "second");
|
|
252
|
-
var o = Intl.RelativeTimeFormat;
|
|
253
|
-
o || r.onError(new I(`Intl.RelativeTimeFormat is not available in this environment.
|
|
254
|
-
Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
|
255
|
-
`, S.MISSING_INTL_API));
|
|
256
|
-
try {
|
|
257
|
-
return Fr(r, a, n).format(e, t);
|
|
258
|
-
} catch (i) {
|
|
259
|
-
r.onError(new c("Error formatting relative time.", r.locale, i));
|
|
260
|
-
}
|
|
261
|
-
return String(e);
|
|
262
|
-
}
|
|
263
|
-
var Ir = [
|
|
264
|
-
"style",
|
|
265
|
-
"currency",
|
|
266
|
-
"currencyDisplay",
|
|
267
|
-
"unit",
|
|
268
|
-
"unitDisplay",
|
|
269
|
-
"useGrouping",
|
|
270
|
-
"minimumIntegerDigits",
|
|
271
|
-
"minimumFractionDigits",
|
|
272
|
-
"maximumFractionDigits",
|
|
273
|
-
"minimumSignificantDigits",
|
|
274
|
-
"maximumSignificantDigits",
|
|
275
|
-
// ES2020 NumberFormat
|
|
276
|
-
"compactDisplay",
|
|
277
|
-
"currencyDisplay",
|
|
278
|
-
"currencySign",
|
|
279
|
-
"notation",
|
|
280
|
-
"signDisplay",
|
|
281
|
-
"unit",
|
|
282
|
-
"unitDisplay",
|
|
283
|
-
"numberingSystem"
|
|
284
|
-
];
|
|
285
|
-
function $(r, a, e) {
|
|
286
|
-
var t = r.locale, n = r.formats, o = r.onError;
|
|
287
|
-
e === void 0 && (e = {});
|
|
288
|
-
var i = e.format, l = i && w(n, "number", i, o) || {}, s = E(e, Ir, l);
|
|
289
|
-
return a(t, s);
|
|
290
|
-
}
|
|
291
|
-
function Sr(r, a, e, t) {
|
|
292
|
-
t === void 0 && (t = {});
|
|
293
|
-
try {
|
|
294
|
-
return $(r, a, t).format(e);
|
|
295
|
-
} catch (n) {
|
|
296
|
-
r.onError(new c("Error formatting number.", r.locale, n));
|
|
297
|
-
}
|
|
298
|
-
return String(e);
|
|
299
|
-
}
|
|
300
|
-
function hr(r, a, e, t) {
|
|
301
|
-
t === void 0 && (t = {});
|
|
302
|
-
try {
|
|
303
|
-
return $(r, a, t).formatToParts(e);
|
|
304
|
-
} catch (n) {
|
|
305
|
-
r.onError(new c("Error formatting number.", r.locale, n));
|
|
306
|
-
}
|
|
307
|
-
return [];
|
|
308
|
-
}
|
|
309
|
-
function Pr(r) {
|
|
310
|
-
var a = r ? r[Object.keys(r)[0]] : void 0;
|
|
311
|
-
return typeof a == "string";
|
|
312
|
-
}
|
|
313
|
-
function xr(r) {
|
|
314
|
-
r.onWarn && r.defaultRichTextElements && Pr(r.messages || {}) && r.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
|
|
315
|
-
Please consider using "@formatjs/cli" to pre-compile your messages for performance.
|
|
316
|
-
For more details see https://formatjs.io/docs/getting-started/message-distribution`);
|
|
317
|
-
}
|
|
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), {
|
|
321
|
-
formatters: e,
|
|
322
|
-
formatNumber: Sr.bind(null, t, e.getNumberFormat),
|
|
323
|
-
formatNumberToParts: hr.bind(null, t, e.getNumberFormat),
|
|
324
|
-
formatRelativeTime: br.bind(null, t, e.getRelativeTimeFormat),
|
|
325
|
-
formatDate: lr.bind(null, t, e.getDateTimeFormat),
|
|
326
|
-
formatDateToParts: fr.bind(null, t, e.getDateTimeFormat),
|
|
327
|
-
formatTime: sr.bind(null, t, e.getDateTimeFormat),
|
|
328
|
-
formatDateTimeRange: mr.bind(null, t, e.getDateTimeFormat),
|
|
329
|
-
formatTimeToParts: ur.bind(null, t, e.getDateTimeFormat),
|
|
330
|
-
formatPlural: Er.bind(null, t, e.getPluralRules),
|
|
331
|
-
// @ts-expect-error TODO: will get to this later
|
|
332
|
-
formatMessage: O.bind(null, t, e),
|
|
333
|
-
// @ts-expect-error TODO: will get to this later
|
|
334
|
-
$t: O.bind(null, t, e),
|
|
335
|
-
formatList: pr.bind(null, t, e.getListFormat),
|
|
336
|
-
formatListToParts: U.bind(null, t, e.getListFormat),
|
|
337
|
-
formatDisplayName: dr.bind(null, t, e.getDisplayNames)
|
|
338
|
-
});
|
|
339
|
-
}
|
|
340
|
-
function _(r) {
|
|
341
|
-
return r && Object.keys(r).reduce(function(a, e) {
|
|
342
|
-
var t = r[e];
|
|
343
|
-
return a[e] = Q(t) ? V(t) : t, a;
|
|
344
|
-
}, {});
|
|
345
|
-
}
|
|
346
|
-
var k = function(r, a, e, t) {
|
|
347
|
-
for (var n = [], o = 4; o < arguments.length; o++)
|
|
348
|
-
n[o - 4] = arguments[o];
|
|
349
|
-
var i = _(t), l = O.apply(void 0, rr([
|
|
350
|
-
r,
|
|
351
|
-
a,
|
|
352
|
-
e,
|
|
353
|
-
i
|
|
354
|
-
], n, !1));
|
|
355
|
-
return Array.isArray(l) ? D.Children.toArray(l) : l;
|
|
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,
|
|
366
|
-
defaultRichTextElements: n
|
|
367
|
-
};
|
|
368
|
-
return m(m({}, o), {
|
|
369
|
-
formatMessage: k.bind(
|
|
370
|
-
null,
|
|
371
|
-
i,
|
|
372
|
-
// @ts-expect-error fix this
|
|
373
|
-
o.formatters
|
|
374
|
-
),
|
|
375
|
-
// @ts-expect-error fix this
|
|
376
|
-
$t: k.bind(null, i, o.formatters)
|
|
377
|
-
});
|
|
378
|
-
};
|
|
379
|
-
function x(r) {
|
|
380
|
-
return {
|
|
381
|
-
locale: r.locale,
|
|
382
|
-
timeZone: r.timeZone,
|
|
383
|
-
fallbackOnEmptyString: r.fallbackOnEmptyString,
|
|
384
|
-
formats: r.formats,
|
|
385
|
-
textComponent: r.textComponent,
|
|
386
|
-
messages: r.messages,
|
|
387
|
-
defaultLocale: r.defaultLocale,
|
|
388
|
-
defaultFormats: r.defaultFormats,
|
|
389
|
-
onError: r.onError,
|
|
390
|
-
onWarn: r.onWarn,
|
|
391
|
-
wrapRichTextChunksInFragment: r.wrapRichTextChunksInFragment,
|
|
392
|
-
defaultRichTextElements: r.defaultRichTextElements
|
|
393
|
-
};
|
|
394
|
-
}
|
|
395
|
-
var Or = (
|
|
396
|
-
/** @class */
|
|
397
|
-
function(r) {
|
|
398
|
-
tr(a, r);
|
|
399
|
-
function a() {
|
|
400
|
-
var e = r !== null && r.apply(this, arguments) || this;
|
|
401
|
-
return e.cache = nr(), e.state = {
|
|
402
|
-
cache: e.cache,
|
|
403
|
-
intl: B(x(e.props), e.cache),
|
|
404
|
-
prevConfig: x(e.props)
|
|
405
|
-
}, e;
|
|
406
|
-
}
|
|
407
|
-
return a.getDerivedStateFromProps = function(e, t) {
|
|
408
|
-
var n = t.prevConfig, o = t.cache, i = x(e);
|
|
409
|
-
return er(n, i) ? null : {
|
|
410
|
-
intl: B(i, o),
|
|
411
|
-
prevConfig: i
|
|
412
|
-
};
|
|
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;
|
|
416
|
-
}(D.PureComponent)
|
|
417
|
-
);
|
|
418
|
-
const wr = Or, Ar = ({
|
|
2
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
3
|
+
import { IntlProvider as l } from "react-intl";
|
|
4
|
+
import { ConfigProvider as x } from "antd";
|
|
5
|
+
import { AgGridTable as m } from "./components/ag-grid-table/index.js";
|
|
6
|
+
import { Button as S } from "./components/button/index.js";
|
|
7
|
+
import { CheckList as D } from "./components/checklist/index.js";
|
|
8
|
+
import { DatePicker as T } from "./components/date-picker/index.js";
|
|
9
|
+
import { Dragger as I } from "./components/dragger/index.js";
|
|
10
|
+
import { Dropdown as k } from "./components/dropdown/index.js";
|
|
11
|
+
import { Form as M } from "./components/form/index.js";
|
|
12
|
+
import { FormItem as v } from "./components/form-item/index.js";
|
|
13
|
+
import { Input as L } from "./components/input/index.js";
|
|
14
|
+
import { Modal as y } from "./components/modal/index.js";
|
|
15
|
+
import { PasswordInput as j } from "./components/password-input/index.js";
|
|
16
|
+
import { Progress as N } from "./components/progress/index.js";
|
|
17
|
+
import { ProgressCircle as X } from "./components/progress-circle/index.js";
|
|
18
|
+
import { RadioButton as q } from "./components/radio-button/index.js";
|
|
19
|
+
import { RadioButtonGroup as K } from "./components/radio-button-group/index.js";
|
|
20
|
+
import { ResultPopup as Q } from "./components/result-popup/index.js";
|
|
21
|
+
import { Select as Y } from "./components/select/index.js";
|
|
22
|
+
import { S as _ } from "./index-WlPrqxgY.js";
|
|
23
|
+
import { Steps as oo } from "./components/steps/index.js";
|
|
24
|
+
import { Table as no } from "./components/table/index.js";
|
|
25
|
+
import { Tabs as to } from "./components/tabs/index.js";
|
|
26
|
+
import { Tag as io } from "./components/tag/index.js";
|
|
27
|
+
import { TimelineHorizontal as co } from "./components/timeline-horizontal/index.js";
|
|
28
|
+
import { Upload as xo } from "./components/upload/index.js";
|
|
29
|
+
import { libTheme as eo } from "./theme.js";
|
|
30
|
+
const g = ({
|
|
419
31
|
locale: r,
|
|
420
|
-
theme:
|
|
421
|
-
...
|
|
32
|
+
theme: o,
|
|
33
|
+
...c
|
|
422
34
|
}) => {
|
|
423
|
-
var
|
|
424
|
-
return /* @__PURE__ */
|
|
425
|
-
|
|
35
|
+
var n, p, t, f, i;
|
|
36
|
+
return /* @__PURE__ */ s(l, { locale: (r == null ? void 0 : r.locale) || "en", children: /* @__PURE__ */ s(
|
|
37
|
+
x,
|
|
426
38
|
{
|
|
427
|
-
...
|
|
39
|
+
...c,
|
|
428
40
|
theme: {
|
|
429
|
-
...
|
|
41
|
+
...o,
|
|
430
42
|
token: {
|
|
431
43
|
fontFamily: "Inter, Noto Sans Arabic, sans-serif",
|
|
432
44
|
borderRadius: 8,
|
|
@@ -444,34 +56,34 @@ const wr = Or, Ar = ({
|
|
|
444
56
|
fontSizeSM: 14,
|
|
445
57
|
fontSizeLG: 16,
|
|
446
58
|
fontSizeXL: 18,
|
|
447
|
-
...
|
|
59
|
+
...o == null ? void 0 : o.token
|
|
448
60
|
},
|
|
449
61
|
components: {
|
|
450
|
-
...
|
|
62
|
+
...o == null ? void 0 : o.components,
|
|
451
63
|
Progress: {
|
|
452
64
|
defaultColor: "#1B7DC7",
|
|
453
65
|
remainingColor: "#E2E8F0",
|
|
454
66
|
lineBorderRadius: 50,
|
|
455
|
-
...(
|
|
67
|
+
...(n = o == null ? void 0 : o.components) == null ? void 0 : n.Progress
|
|
456
68
|
},
|
|
457
69
|
Input: {
|
|
458
70
|
colorBorder: "#E2E8F0",
|
|
459
71
|
colorText: "#94A3B8",
|
|
460
|
-
...(
|
|
72
|
+
...(p = o == null ? void 0 : o.components) == null ? void 0 : p.Input
|
|
461
73
|
},
|
|
462
74
|
Select: {
|
|
463
75
|
colorText: "#94A3B8",
|
|
464
|
-
...(
|
|
76
|
+
...(t = o == null ? void 0 : o.components) == null ? void 0 : t.Select
|
|
465
77
|
},
|
|
466
78
|
DatePicker: {
|
|
467
79
|
colorText: "#94A3B8",
|
|
468
|
-
...(
|
|
80
|
+
...(f = o == null ? void 0 : o.components) == null ? void 0 : f.DatePicker
|
|
469
81
|
},
|
|
470
82
|
Modal: {
|
|
471
83
|
titleColor: "#0F172A",
|
|
472
84
|
headerBg: "#fff",
|
|
473
85
|
contentBg: "#fff",
|
|
474
|
-
...(
|
|
86
|
+
...(i = o == null ? void 0 : o.components) == null ? void 0 : i.Modal
|
|
475
87
|
}
|
|
476
88
|
}
|
|
477
89
|
},
|
|
@@ -480,30 +92,30 @@ const wr = Or, Ar = ({
|
|
|
480
92
|
) });
|
|
481
93
|
};
|
|
482
94
|
export {
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
95
|
+
m as AgGridTable,
|
|
96
|
+
S as Button,
|
|
97
|
+
D as CheckList,
|
|
98
|
+
g as ConfigProvider,
|
|
99
|
+
T as DatePicker,
|
|
100
|
+
I as Dragger,
|
|
101
|
+
k as Dropdown,
|
|
102
|
+
M as Form,
|
|
103
|
+
v as FormItem,
|
|
104
|
+
L as Input,
|
|
105
|
+
y as Modal,
|
|
106
|
+
j as PasswordInput,
|
|
107
|
+
N as Progress,
|
|
108
|
+
X as ProgressCircle,
|
|
109
|
+
q as RadioButton,
|
|
110
|
+
K as RadioButtonGroup,
|
|
111
|
+
Q as ResultPopup,
|
|
112
|
+
Y as Select,
|
|
113
|
+
_ as SideMenu,
|
|
114
|
+
oo as Steps,
|
|
115
|
+
no as Table,
|
|
116
|
+
to as Tabs,
|
|
117
|
+
io as Tag,
|
|
118
|
+
co as TimelineHorizontal,
|
|
119
|
+
xo as Upload,
|
|
120
|
+
eo as theme
|
|
509
121
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gasp-components",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.11",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"build-storybook": "storybook build"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
|
+
"antd": "^5.13.1",
|
|
16
17
|
"classnames": "^2.5.1",
|
|
17
18
|
"react": "^18.2.0",
|
|
18
19
|
"react-dom": "^18.2.0",
|
|
@@ -37,6 +38,7 @@
|
|
|
37
38
|
"@typescript-eslint/eslint-plugin": "^6.14.0",
|
|
38
39
|
"@typescript-eslint/parser": "^6.14.0",
|
|
39
40
|
"@vitejs/plugin-react": "^4.2.1",
|
|
41
|
+
"antd": "^5.13.1",
|
|
40
42
|
"autoprefixer": "^10.4.16",
|
|
41
43
|
"classnames": "^2.5.1",
|
|
42
44
|
"eslint": "^8.55.0",
|
|
@@ -68,7 +70,6 @@
|
|
|
68
70
|
"@ag-grid-enterprise/server-side-row-model": "^31.0.2",
|
|
69
71
|
"@ag-grid-enterprise/set-filter": "^31.0.2",
|
|
70
72
|
"ag-grid-community": "^31.0.2",
|
|
71
|
-
"ag-grid-react": "^31.0.2"
|
|
72
|
-
"antd": "^5.13.1"
|
|
73
|
+
"ag-grid-react": "^31.0.2"
|
|
73
74
|
}
|
|
74
75
|
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { e as i } from "./index-1KQbTQJ2.js";
|
|
2
|
-
import * as e from "react";
|
|
3
|
-
import { A as t } from "./isVisible-Qi9l15Ty.js";
|
|
4
|
-
var a = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z" } }] }, name: "check-circle", theme: "filled" };
|
|
5
|
-
const o = a;
|
|
6
|
-
var c = function(l, r) {
|
|
7
|
-
return /* @__PURE__ */ e.createElement(t, i({}, l, {
|
|
8
|
-
ref: r,
|
|
9
|
-
icon: o
|
|
10
|
-
}));
|
|
11
|
-
};
|
|
12
|
-
process.env.NODE_ENV !== "production" && (c.displayName = "CheckCircleFilled");
|
|
13
|
-
const C = /* @__PURE__ */ e.forwardRef(c);
|
|
14
|
-
export {
|
|
15
|
-
C
|
|
16
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { e as a } from "./index-1KQbTQJ2.js";
|
|
2
|
-
import * as e from "react";
|
|
3
|
-
import { A as o } from "./isVisible-Qi9l15Ty.js";
|
|
4
|
-
var r = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" } }] }, name: "check", theme: "outlined" };
|
|
5
|
-
const i = r;
|
|
6
|
-
var t = function(c, n) {
|
|
7
|
-
return /* @__PURE__ */ e.createElement(o, a({}, c, {
|
|
8
|
-
ref: n,
|
|
9
|
-
icon: i
|
|
10
|
-
}));
|
|
11
|
-
};
|
|
12
|
-
process.env.NODE_ENV !== "production" && (t.displayName = "CheckOutlined");
|
|
13
|
-
const h = /* @__PURE__ */ e.forwardRef(t);
|
|
14
|
-
export {
|
|
15
|
-
h as C
|
|
16
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { e as r } from "./index-1KQbTQJ2.js";
|
|
2
|
-
import * as e from "react";
|
|
3
|
-
import { A as o } from "./isVisible-Qi9l15Ty.js";
|
|
4
|
-
var i = { icon: { tag: "svg", attrs: { "fill-rule": "evenodd", viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" } }] }, name: "close-circle", theme: "filled" };
|
|
5
|
-
const s = i;
|
|
6
|
-
var l = function(c, a) {
|
|
7
|
-
return /* @__PURE__ */ e.createElement(o, r({}, c, {
|
|
8
|
-
ref: a,
|
|
9
|
-
icon: s
|
|
10
|
-
}));
|
|
11
|
-
};
|
|
12
|
-
process.env.NODE_ENV !== "production" && (l.displayName = "CloseCircleFilled");
|
|
13
|
-
const C = /* @__PURE__ */ e.forwardRef(l);
|
|
14
|
-
export {
|
|
15
|
-
C
|
|
16
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { e as o } from "./index-1KQbTQJ2.js";
|
|
2
|
-
import * as e from "react";
|
|
3
|
-
import { A as a } from "./isVisible-Qi9l15Ty.js";
|
|
4
|
-
var n = { icon: { tag: "svg", attrs: { "fill-rule": "evenodd", viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" } }] }, name: "close", theme: "outlined" };
|
|
5
|
-
const s = n;
|
|
6
|
-
var l = function(c, t) {
|
|
7
|
-
return /* @__PURE__ */ e.createElement(a, o({}, c, {
|
|
8
|
-
ref: t,
|
|
9
|
-
icon: s
|
|
10
|
-
}));
|
|
11
|
-
};
|
|
12
|
-
process.env.NODE_ENV !== "production" && (l.displayName = "CloseOutlined");
|
|
13
|
-
const u = /* @__PURE__ */ e.forwardRef(l);
|
|
14
|
-
export {
|
|
15
|
-
u as C
|
|
16
|
-
};
|