reykit 1.0.180 → 1.0.181
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/index.js +60 -53
- package/dist/src/component/Text.d.ts +8 -0
- package/dist/src/component/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -49870,7 +49870,13 @@ function ck({
|
|
|
49870
49870
|
function YA(a) {
|
|
49871
49871
|
return uj(a) ? a : a instanceof Date ? a.toLocaleString() : a == null ? "" : typeof a == "object" ? JSON.stringify(a) : String(a);
|
|
49872
49872
|
}
|
|
49873
|
-
function fk({
|
|
49873
|
+
function fk(a, i) {
|
|
49874
|
+
return /* @__PURE__ */ E.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
49875
|
+
/* @__PURE__ */ E.jsx("div", { className: "size-4 hidden min-[400px]:inline", children: a }),
|
|
49876
|
+
/* @__PURE__ */ E.jsx("span", { className: "whitespace-nowrap", children: i })
|
|
49877
|
+
] });
|
|
49878
|
+
}
|
|
49879
|
+
function dk({
|
|
49874
49880
|
openIcon: a,
|
|
49875
49881
|
closeIcon: i,
|
|
49876
49882
|
tooltip: u,
|
|
@@ -49923,12 +49929,13 @@ function fk({
|
|
|
49923
49929
|
/* @__PURE__ */ E.jsx(Pw, { side: d, children: u })
|
|
49924
49930
|
] }) : D;
|
|
49925
49931
|
}
|
|
49926
|
-
const
|
|
49932
|
+
const pk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
49927
49933
|
__proto__: null,
|
|
49928
49934
|
Breadcrumb: WI,
|
|
49929
49935
|
CycleButton: ek,
|
|
49930
49936
|
Form: tk,
|
|
49931
|
-
|
|
49937
|
+
IconText: fk,
|
|
49938
|
+
IconToggle: dk,
|
|
49932
49939
|
Loading: nk,
|
|
49933
49940
|
Notice: ok,
|
|
49934
49941
|
Table: rk,
|
|
@@ -50210,10 +50217,10 @@ const jg = {
|
|
|
50210
50217
|
appId: null,
|
|
50211
50218
|
onError: null
|
|
50212
50219
|
};
|
|
50213
|
-
function
|
|
50220
|
+
function mk(a, i = null) {
|
|
50214
50221
|
jg.appId = a, jg.onError = i;
|
|
50215
50222
|
}
|
|
50216
|
-
function
|
|
50223
|
+
function hk(a, ...i) {
|
|
50217
50224
|
if (jg.appId === null) throw new Error('not configured with function "initAliGraphCaptcha"');
|
|
50218
50225
|
const u = {
|
|
50219
50226
|
captchaId: jg.appId,
|
|
@@ -50230,15 +50237,15 @@ function mk(a, ...i) {
|
|
|
50230
50237
|
}
|
|
50231
50238
|
);
|
|
50232
50239
|
}
|
|
50233
|
-
const
|
|
50240
|
+
const gk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
50234
50241
|
__proto__: null,
|
|
50235
|
-
initAliGraphCaptcha:
|
|
50236
|
-
verifyAliGraphCaptcha:
|
|
50242
|
+
initAliGraphCaptcha: mk,
|
|
50243
|
+
verifyAliGraphCaptcha: hk
|
|
50237
50244
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
50238
|
-
function
|
|
50245
|
+
function vk() {
|
|
50239
50246
|
document.documentElement.classList.add("debug");
|
|
50240
50247
|
}
|
|
50241
|
-
function
|
|
50248
|
+
function yk(a) {
|
|
50242
50249
|
try {
|
|
50243
50250
|
const i = new URL(a);
|
|
50244
50251
|
return i.protocol === "http:" || i.protocol === "https:";
|
|
@@ -50246,12 +50253,12 @@ function vk(a) {
|
|
|
50246
50253
|
return !1;
|
|
50247
50254
|
}
|
|
50248
50255
|
}
|
|
50249
|
-
const
|
|
50256
|
+
const bk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
50250
50257
|
__proto__: null,
|
|
50251
|
-
debugCss:
|
|
50252
|
-
isUrl:
|
|
50258
|
+
debugCss: vk,
|
|
50259
|
+
isUrl: yk
|
|
50253
50260
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
50254
|
-
class
|
|
50261
|
+
class xk {
|
|
50255
50262
|
/**
|
|
50256
50263
|
* Build instance.
|
|
50257
50264
|
*
|
|
@@ -50352,9 +50359,9 @@ function D4(a, i) {
|
|
|
50352
50359
|
const u = a instanceof Blob ? window.URL.createObjectURL(a) : a, d = document.createElement("a");
|
|
50353
50360
|
d.download = i, d.href = u, d.style.display = "none", document.body.appendChild(d), d.click(), d.remove(), a instanceof Blob && URL.revokeObjectURL(u);
|
|
50354
50361
|
}
|
|
50355
|
-
const
|
|
50362
|
+
const Sk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
50356
50363
|
__proto__: null,
|
|
50357
|
-
Storager:
|
|
50364
|
+
Storager: xk,
|
|
50358
50365
|
downloadFile: D4,
|
|
50359
50366
|
openFile: A4
|
|
50360
50367
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -50362,15 +50369,15 @@ async function fR(a, i) {
|
|
|
50362
50369
|
const u = i && i.width, d = (i && i.margin) ?? 0;
|
|
50363
50370
|
return await Vj.toDataURL(a, { width: u, margin: d });
|
|
50364
50371
|
}
|
|
50365
|
-
async function
|
|
50372
|
+
async function Ek(a, i) {
|
|
50366
50373
|
const u = await fR(a, i), m = await (await fetch(u)).blob();
|
|
50367
50374
|
return A4(m), u;
|
|
50368
50375
|
}
|
|
50369
|
-
async function
|
|
50376
|
+
async function Rk(a, i) {
|
|
50370
50377
|
const u = await fR(a, i), d = (i && i.fileName) ?? "qrcode.png", g = await (await fetch(u)).blob();
|
|
50371
50378
|
return D4(g, d), u;
|
|
50372
50379
|
}
|
|
50373
|
-
async function
|
|
50380
|
+
async function Tk(a, i, u) {
|
|
50374
50381
|
const d = await fR(a, u);
|
|
50375
50382
|
if (typeof i == "string") {
|
|
50376
50383
|
const m = document.getElementById(i);
|
|
@@ -50379,14 +50386,14 @@ async function Rk(a, i, u) {
|
|
|
50379
50386
|
}
|
|
50380
50387
|
return i.setAttribute("src", d), d;
|
|
50381
50388
|
}
|
|
50382
|
-
const
|
|
50389
|
+
const Ck = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
50383
50390
|
__proto__: null,
|
|
50384
|
-
downloadQrcode:
|
|
50391
|
+
downloadQrcode: Rk,
|
|
50385
50392
|
getQrcode: fR,
|
|
50386
|
-
openQrcode:
|
|
50387
|
-
setQrcode:
|
|
50393
|
+
openQrcode: Ek,
|
|
50394
|
+
setQrcode: Tk
|
|
50388
50395
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
50389
|
-
async function
|
|
50396
|
+
async function Ok(a, i) {
|
|
50390
50397
|
let {
|
|
50391
50398
|
params: u,
|
|
50392
50399
|
body: d,
|
|
@@ -50421,50 +50428,50 @@ async function Ck(a, i) {
|
|
|
50421
50428
|
}
|
|
50422
50429
|
return C;
|
|
50423
50430
|
}
|
|
50424
|
-
const
|
|
50431
|
+
const wk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
50425
50432
|
__proto__: null,
|
|
50426
|
-
request:
|
|
50427
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
50433
|
+
request: Ok
|
|
50434
|
+
}, Symbol.toStringTag, { value: "Module" })), Nk = /^((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/, Mk = /^https?:\/\/[^\s/$.?#].[^\s]*$/, Ak = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$/, Dk = /^1[3-9]\d{9}$/, zk = /^[\u4e00-\u9fa5]+$/, _k = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
50428
50435
|
__proto__: null,
|
|
50429
|
-
PATTERN_CN:
|
|
50430
|
-
PATTERN_EMAIL:
|
|
50431
|
-
PATTERN_IP:
|
|
50432
|
-
PATTERN_PHONE:
|
|
50433
|
-
PATTERN_URL:
|
|
50436
|
+
PATTERN_CN: zk,
|
|
50437
|
+
PATTERN_EMAIL: Ak,
|
|
50438
|
+
PATTERN_IP: Nk,
|
|
50439
|
+
PATTERN_PHONE: Dk,
|
|
50440
|
+
PATTERN_URL: Mk
|
|
50434
50441
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
50435
|
-
function
|
|
50442
|
+
function jk() {
|
|
50436
50443
|
const a = /* @__PURE__ */ new Date();
|
|
50437
50444
|
return a.getFullYear() + "-" + String(a.getMonth() + 1).padStart(2, "0") + "-" + String(a.getDate()).padStart(2, "0") + "T" + String(a.getHours()).padStart(2, "0") + ":" + String(a.getMinutes()).padStart(2, "0");
|
|
50438
50445
|
}
|
|
50439
|
-
const
|
|
50446
|
+
const Uk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
50440
50447
|
__proto__: null,
|
|
50441
|
-
datetimeLocal:
|
|
50442
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
50443
|
-
component:
|
|
50448
|
+
datetimeLocal: jk
|
|
50449
|
+
}, Symbol.toStringTag, { value: "Module" })), Jk = {
|
|
50450
|
+
component: pk,
|
|
50444
50451
|
ui: O4,
|
|
50445
|
-
captcha:
|
|
50446
|
-
base:
|
|
50452
|
+
captcha: gk,
|
|
50453
|
+
base: bk,
|
|
50447
50454
|
data: ik,
|
|
50448
|
-
image:
|
|
50449
|
-
net:
|
|
50450
|
-
re:
|
|
50455
|
+
image: Ck,
|
|
50456
|
+
net: wk,
|
|
50457
|
+
re: _k,
|
|
50451
50458
|
react: Qj,
|
|
50452
|
-
time:
|
|
50459
|
+
time: Uk,
|
|
50453
50460
|
twc: O6,
|
|
50454
|
-
window:
|
|
50461
|
+
window: Sk
|
|
50455
50462
|
};
|
|
50456
50463
|
export {
|
|
50457
|
-
|
|
50458
|
-
|
|
50459
|
-
|
|
50464
|
+
bk as base,
|
|
50465
|
+
gk as captcha,
|
|
50466
|
+
pk as component,
|
|
50460
50467
|
ik as data,
|
|
50461
|
-
|
|
50462
|
-
|
|
50463
|
-
|
|
50464
|
-
|
|
50468
|
+
Jk as default,
|
|
50469
|
+
Ck as image,
|
|
50470
|
+
wk as net,
|
|
50471
|
+
_k as re,
|
|
50465
50472
|
Qj as react,
|
|
50466
|
-
|
|
50473
|
+
Uk as time,
|
|
50467
50474
|
O6 as twc,
|
|
50468
50475
|
O4 as ui,
|
|
50469
|
-
|
|
50476
|
+
Sk as window
|
|
50470
50477
|
};
|
|
@@ -13,4 +13,5 @@ export { Form } from './Form';
|
|
|
13
13
|
export { Loading, useLoading } from './Loading';
|
|
14
14
|
export { Notice, notice } from './Notice';
|
|
15
15
|
export { type HeaderOption, type SearchOption, type ButtonOption, type OptionName, type RowOption, type SelectRowsOption, Table } from './Table';
|
|
16
|
+
export { IconText } from './Text';
|
|
16
17
|
export { IconToggle } from './Toggle';
|