@fctc/sme-widget-ui 2.3.4 → 2.3.6
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/icons.js +14 -10
- package/dist/icons.mjs +14 -10
- package/dist/index.js +42 -75
- package/dist/index.mjs +136 -169
- package/dist/utils.js +20 -2
- package/dist/utils.mjs +20 -2
- package/dist/widgets.js +42 -75
- package/dist/widgets.mjs +136 -169
- package/package.json +1 -1
package/dist/icons.js
CHANGED
|
@@ -520,26 +520,30 @@ var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
|
520
520
|
var EyeIcon = () => /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
521
521
|
"svg",
|
|
522
522
|
{
|
|
523
|
-
width: "20",
|
|
524
|
-
height: "21",
|
|
525
|
-
viewBox: "0 0 20 21",
|
|
526
|
-
fill: "none",
|
|
527
523
|
xmlns: "http://www.w3.org/2000/svg",
|
|
524
|
+
width: "16",
|
|
525
|
+
height: "16",
|
|
526
|
+
viewBox: "0 0 16 16",
|
|
527
|
+
fill: "none",
|
|
528
528
|
children: [
|
|
529
529
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
530
530
|
"path",
|
|
531
531
|
{
|
|
532
|
-
d: "
|
|
533
|
-
stroke: "#
|
|
534
|
-
strokeWidth: "1.5"
|
|
532
|
+
d: "M10.3866 7.99995C10.3866 9.31995 9.31995 10.3866 7.99995 10.3866C6.67995 10.3866 5.61328 9.31995 5.61328 7.99995C5.61328 6.67995 6.67995 5.61328 7.99995 5.61328C9.31995 5.61328 10.3866 6.67995 10.3866 7.99995Z",
|
|
533
|
+
stroke: "#646566",
|
|
534
|
+
strokeWidth: "1.5",
|
|
535
|
+
strokeLinecap: "round",
|
|
536
|
+
strokeLinejoin: "round"
|
|
535
537
|
}
|
|
536
538
|
),
|
|
537
539
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
538
540
|
"path",
|
|
539
541
|
{
|
|
540
|
-
d: "
|
|
541
|
-
stroke: "#
|
|
542
|
-
strokeWidth: "1.5"
|
|
542
|
+
d: "M7.9999 13.5138C10.3532 13.5138 12.5466 12.1271 14.0732 9.72714C14.6732 8.78714 14.6732 7.20714 14.0732 6.26714C12.5466 3.86714 10.3532 2.48047 7.9999 2.48047C5.64656 2.48047 3.45323 3.86714 1.92656 6.26714C1.32656 7.20714 1.32656 8.78714 1.92656 9.72714C3.45323 12.1271 5.64656 13.5138 7.9999 13.5138Z",
|
|
543
|
+
stroke: "#646566",
|
|
544
|
+
strokeWidth: "1.5",
|
|
545
|
+
strokeLinecap: "round",
|
|
546
|
+
strokeLinejoin: "round"
|
|
543
547
|
}
|
|
544
548
|
)
|
|
545
549
|
]
|
package/dist/icons.mjs
CHANGED
|
@@ -453,26 +453,30 @@ import { jsx as jsx16, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
|
453
453
|
var EyeIcon = () => /* @__PURE__ */ jsxs6(
|
|
454
454
|
"svg",
|
|
455
455
|
{
|
|
456
|
-
width: "20",
|
|
457
|
-
height: "21",
|
|
458
|
-
viewBox: "0 0 20 21",
|
|
459
|
-
fill: "none",
|
|
460
456
|
xmlns: "http://www.w3.org/2000/svg",
|
|
457
|
+
width: "16",
|
|
458
|
+
height: "16",
|
|
459
|
+
viewBox: "0 0 16 16",
|
|
460
|
+
fill: "none",
|
|
461
461
|
children: [
|
|
462
462
|
/* @__PURE__ */ jsx16(
|
|
463
463
|
"path",
|
|
464
464
|
{
|
|
465
|
-
d: "
|
|
466
|
-
stroke: "#
|
|
467
|
-
strokeWidth: "1.5"
|
|
465
|
+
d: "M10.3866 7.99995C10.3866 9.31995 9.31995 10.3866 7.99995 10.3866C6.67995 10.3866 5.61328 9.31995 5.61328 7.99995C5.61328 6.67995 6.67995 5.61328 7.99995 5.61328C9.31995 5.61328 10.3866 6.67995 10.3866 7.99995Z",
|
|
466
|
+
stroke: "#646566",
|
|
467
|
+
strokeWidth: "1.5",
|
|
468
|
+
strokeLinecap: "round",
|
|
469
|
+
strokeLinejoin: "round"
|
|
468
470
|
}
|
|
469
471
|
),
|
|
470
472
|
/* @__PURE__ */ jsx16(
|
|
471
473
|
"path",
|
|
472
474
|
{
|
|
473
|
-
d: "
|
|
474
|
-
stroke: "#
|
|
475
|
-
strokeWidth: "1.5"
|
|
475
|
+
d: "M7.9999 13.5138C10.3532 13.5138 12.5466 12.1271 14.0732 9.72714C14.6732 8.78714 14.6732 7.20714 14.0732 6.26714C12.5466 3.86714 10.3532 2.48047 7.9999 2.48047C5.64656 2.48047 3.45323 3.86714 1.92656 6.26714C1.32656 7.20714 1.32656 8.78714 1.92656 9.72714C3.45323 12.1271 5.64656 13.5138 7.9999 13.5138Z",
|
|
476
|
+
stroke: "#646566",
|
|
477
|
+
strokeWidth: "1.5",
|
|
478
|
+
strokeLinecap: "round",
|
|
479
|
+
strokeLinejoin: "round"
|
|
476
480
|
}
|
|
477
481
|
)
|
|
478
482
|
]
|
package/dist/index.js
CHANGED
|
@@ -5763,26 +5763,30 @@ var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
|
5763
5763
|
var EyeIcon = () => /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
5764
5764
|
"svg",
|
|
5765
5765
|
{
|
|
5766
|
-
width: "20",
|
|
5767
|
-
height: "21",
|
|
5768
|
-
viewBox: "0 0 20 21",
|
|
5769
|
-
fill: "none",
|
|
5770
5766
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5767
|
+
width: "16",
|
|
5768
|
+
height: "16",
|
|
5769
|
+
viewBox: "0 0 16 16",
|
|
5770
|
+
fill: "none",
|
|
5771
5771
|
children: [
|
|
5772
5772
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
5773
5773
|
"path",
|
|
5774
5774
|
{
|
|
5775
|
-
d: "
|
|
5776
|
-
stroke: "#
|
|
5777
|
-
strokeWidth: "1.5"
|
|
5775
|
+
d: "M10.3866 7.99995C10.3866 9.31995 9.31995 10.3866 7.99995 10.3866C6.67995 10.3866 5.61328 9.31995 5.61328 7.99995C5.61328 6.67995 6.67995 5.61328 7.99995 5.61328C9.31995 5.61328 10.3866 6.67995 10.3866 7.99995Z",
|
|
5776
|
+
stroke: "#646566",
|
|
5777
|
+
strokeWidth: "1.5",
|
|
5778
|
+
strokeLinecap: "round",
|
|
5779
|
+
strokeLinejoin: "round"
|
|
5778
5780
|
}
|
|
5779
5781
|
),
|
|
5780
5782
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
5781
5783
|
"path",
|
|
5782
5784
|
{
|
|
5783
|
-
d: "
|
|
5784
|
-
stroke: "#
|
|
5785
|
-
strokeWidth: "1.5"
|
|
5785
|
+
d: "M7.9999 13.5138C10.3532 13.5138 12.5466 12.1271 14.0732 9.72714C14.6732 8.78714 14.6732 7.20714 14.0732 6.26714C12.5466 3.86714 10.3532 2.48047 7.9999 2.48047C5.64656 2.48047 3.45323 3.86714 1.92656 6.26714C1.32656 7.20714 1.32656 8.78714 1.92656 9.72714C3.45323 12.1271 5.64656 13.5138 7.9999 13.5138Z",
|
|
5786
|
+
stroke: "#646566",
|
|
5787
|
+
strokeWidth: "1.5",
|
|
5788
|
+
strokeLinecap: "round",
|
|
5789
|
+
strokeLinejoin: "round"
|
|
5786
5790
|
}
|
|
5787
5791
|
)
|
|
5788
5792
|
]
|
|
@@ -9986,7 +9990,16 @@ var vi_default = {
|
|
|
9986
9990
|
"no-available": "Kh\xF4ng c\xF3 l\u1EF1a ch\u1ECDn n\xE0o",
|
|
9987
9991
|
paid_amount: "S\u1ED1 ti\u1EC1n \u0111\xE3 \u0111\xF3ng",
|
|
9988
9992
|
remanining_amount: "S\u1ED1 ti\u1EC1n c\xF2n l\u1EA1i",
|
|
9989
|
-
only_image_accept: "Ch\u1EC9 \u0111\u01B0\u1EE3c upload file h\xECnh \u1EA3nh"
|
|
9993
|
+
only_image_accept: "Ch\u1EC9 \u0111\u01B0\u1EE3c upload file h\xECnh \u1EA3nh",
|
|
9994
|
+
"text-only": "Ch\u1EC9 \u0111\u01B0\u1EE3c nh\u1EADp ch\u1EEF (kh\xF4ng ch\u1EE9a s\u1ED1 v\xE0 k\xFD t\u1EF1 \u0111\u1EB7c bi\u1EC7t)",
|
|
9995
|
+
"number-only": "Ch\u1EC9 \u0111\u01B0\u1EE3c nh\u1EADp s\u1ED1 (kh\xF4ng ch\u1EE9a ch\u1EEF v\xE0 k\xFD t\u1EF1 \u0111\u1EB7c bi\u1EC7t)",
|
|
9996
|
+
"email-only": "Email kh\xF4ng h\u1EE3p l\u1EC7",
|
|
9997
|
+
"phone-only": "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i kh\xF4ng h\u1EE3p l\u1EC7",
|
|
9998
|
+
message: "M\u1EADt kh\u1EA9u ph\u1EA3i c\xF3 t\u1EEB {{min}} \u0111\u1EBFn {{max}} k\xFD t\u1EF1",
|
|
9999
|
+
"message-text-error": " kh\xF4ng \u0111\u01B0\u1EE3c v\u01B0\u1EE3t qu\xE1 {{max}} k\xFD t\u1EF1",
|
|
10000
|
+
upcase: ", {{count}} ch\u1EEF in hoa",
|
|
10001
|
+
digit: ", {{count}} s\u1ED1",
|
|
10002
|
+
special: ", {{count}} k\xFD t\u1EF1 \u0111\u1EB7c bi\u1EC7t"
|
|
9990
10003
|
};
|
|
9991
10004
|
|
|
9992
10005
|
// src/locales/en.json
|
|
@@ -10036,7 +10049,16 @@ var en_default = {
|
|
|
10036
10049
|
"no-available": "No options available",
|
|
10037
10050
|
paid_amount: "Amount Paid",
|
|
10038
10051
|
remanining_amount: "Amount Remaining",
|
|
10039
|
-
only_image_accept: "Only accept image"
|
|
10052
|
+
only_image_accept: "Only accept image",
|
|
10053
|
+
"text-only": "Only letters (no numbers or special characters)",
|
|
10054
|
+
"number-only": "Only enter numbers (no letters or special characters)",
|
|
10055
|
+
"email-only": "Invalid email address",
|
|
10056
|
+
"phone-only": "Invalid phone number",
|
|
10057
|
+
message: "Password must be between {{min}} and {{max}} characters",
|
|
10058
|
+
"message-text-error": " must not exceed {{max}} characters",
|
|
10059
|
+
upcase: ", {{count}} uppercase letter",
|
|
10060
|
+
digit: ", {{count}} digit",
|
|
10061
|
+
special: ", {{count}} special character"
|
|
10040
10062
|
};
|
|
10041
10063
|
|
|
10042
10064
|
// src/utils/i18n.ts
|
|
@@ -17370,7 +17392,7 @@ var import_react41 = require("react");
|
|
|
17370
17392
|
// src/icons/eye-hidden-icon.tsx
|
|
17371
17393
|
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
17372
17394
|
var EyeHiddenIcon = () => {
|
|
17373
|
-
return /* @__PURE__ */ (0, import_jsx_runtime79.
|
|
17395
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
17374
17396
|
"svg",
|
|
17375
17397
|
{
|
|
17376
17398
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -17378,68 +17400,13 @@ var EyeHiddenIcon = () => {
|
|
|
17378
17400
|
height: "16",
|
|
17379
17401
|
viewBox: "0 0 16 16",
|
|
17380
17402
|
fill: "none",
|
|
17381
|
-
children:
|
|
17382
|
-
|
|
17383
|
-
|
|
17384
|
-
|
|
17385
|
-
|
|
17386
|
-
|
|
17387
|
-
|
|
17388
|
-
strokeLinecap: "round",
|
|
17389
|
-
strokeLinejoin: "round"
|
|
17390
|
-
}
|
|
17391
|
-
),
|
|
17392
|
-
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
17393
|
-
"path",
|
|
17394
|
-
{
|
|
17395
|
-
d: "M11.8799 3.8473C10.7132 2.9673 9.3799 2.4873 7.9999 2.4873C5.64656 2.4873 3.45323 3.87397 1.92656 6.27397C1.32656 7.21397 1.32656 8.79397 1.92656 9.73397C2.45323 10.5606 3.06656 11.274 3.73323 11.8473",
|
|
17396
|
-
stroke: "#576071",
|
|
17397
|
-
strokeWidth: "1.5",
|
|
17398
|
-
strokeLinecap: "round",
|
|
17399
|
-
strokeLinejoin: "round"
|
|
17400
|
-
}
|
|
17401
|
-
),
|
|
17402
|
-
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
17403
|
-
"path",
|
|
17404
|
-
{
|
|
17405
|
-
d: "M5.61328 13.0195C6.37328 13.3395 7.17995 13.5128 7.99995 13.5128C10.3533 13.5128 12.5466 12.1261 14.0733 9.72613C14.6733 8.78613 14.6733 7.20613 14.0733 6.26613C13.8533 5.91947 13.6133 5.5928 13.3666 5.28613",
|
|
17406
|
-
stroke: "#576071",
|
|
17407
|
-
strokeWidth: "1.5",
|
|
17408
|
-
strokeLinecap: "round",
|
|
17409
|
-
strokeLinejoin: "round"
|
|
17410
|
-
}
|
|
17411
|
-
),
|
|
17412
|
-
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
17413
|
-
"path",
|
|
17414
|
-
{
|
|
17415
|
-
d: "M10.3409 8.4668C10.1676 9.4068 9.40094 10.1735 8.46094 10.3468",
|
|
17416
|
-
stroke: "#576071",
|
|
17417
|
-
strokeWidth: "1.5",
|
|
17418
|
-
strokeLinecap: "round",
|
|
17419
|
-
strokeLinejoin: "round"
|
|
17420
|
-
}
|
|
17421
|
-
),
|
|
17422
|
-
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
17423
|
-
"path",
|
|
17424
|
-
{
|
|
17425
|
-
d: "M6.31203 9.68652L1.33203 14.6665",
|
|
17426
|
-
stroke: "#576071",
|
|
17427
|
-
strokeWidth: "1.5",
|
|
17428
|
-
strokeLinecap: "round",
|
|
17429
|
-
strokeLinejoin: "round"
|
|
17430
|
-
}
|
|
17431
|
-
),
|
|
17432
|
-
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
17433
|
-
"path",
|
|
17434
|
-
{
|
|
17435
|
-
d: "M14.6675 1.33301L9.6875 6.31301",
|
|
17436
|
-
stroke: "#576071",
|
|
17437
|
-
strokeWidth: "1.5",
|
|
17438
|
-
strokeLinecap: "round",
|
|
17439
|
-
strokeLinejoin: "round"
|
|
17440
|
-
}
|
|
17441
|
-
)
|
|
17442
|
-
]
|
|
17403
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
17404
|
+
"path",
|
|
17405
|
+
{
|
|
17406
|
+
d: "M2.02273 4.37106C1.85957 3.99034 1.41866 3.81398 1.03793 3.97715C0.657212 4.14031 0.480849 4.58122 0.644015 4.96194L1.33337 4.6665L2.02273 4.37106ZM10.3915 8.88564L10.1168 8.18775L10.1168 8.18775L10.3915 8.88564ZM6.23722 9.29468C6.46313 8.94749 6.36481 8.48291 6.01762 8.257C5.67043 8.03109 5.20585 8.12941 4.97994 8.4766L5.60858 8.88564L6.23722 9.29468ZM4.03807 9.92413C3.81216 10.2713 3.91048 10.7359 4.25767 10.9618C4.60486 11.1877 5.06944 11.0894 5.29535 10.7422L4.66671 10.3332L4.03807 9.92413ZM15.3561 4.96194C15.5192 4.58122 15.3429 4.14031 14.9621 3.97715C14.5814 3.81398 14.1405 3.99034 13.9773 4.37106L14.6667 4.6665L15.3561 4.96194ZM12.6667 7.41906L12.1534 6.87221H12.1534L12.6667 7.41906ZM13.1364 8.94939C13.4293 9.24229 13.9041 9.24229 14.197 8.94939C14.4899 8.6565 14.4899 8.18163 14.197 7.88873L13.6667 8.41906L13.1364 8.94939ZM7.25004 10.9998C7.25004 11.4141 7.58583 11.7498 8.00004 11.7498C8.41425 11.7498 8.75004 11.4141 8.75004 10.9998H8.00004H7.25004ZM10.7047 10.7422C10.9306 11.0894 11.3952 11.1877 11.7424 10.9618C12.0896 10.7359 12.1879 10.2713 11.962 9.92413L11.3334 10.3332L10.7047 10.7422ZM3.8637 7.94939C4.1566 7.6565 4.1566 7.18163 3.8637 6.88873C3.57081 6.59584 3.09594 6.59584 2.80304 6.88873L3.33337 7.41906L3.8637 7.94939ZM1.80304 7.88873C1.51015 8.18163 1.51015 8.6565 1.80304 8.94939C2.09594 9.24229 2.57081 9.24229 2.8637 8.94939L2.33337 8.41906L1.80304 7.88873ZM8.00004 9.33317V8.58317C5.94282 8.58317 4.46137 7.56111 3.4663 6.4895C2.96899 5.95393 2.60371 5.41601 2.36326 5.01206C2.24346 4.81079 2.15582 4.64476 2.09925 4.53161C2.07099 4.4751 2.05057 4.43196 2.03785 4.40441C2.03149 4.39065 2.02706 4.3808 2.02455 4.37514C2.02329 4.37231 2.02251 4.37054 2.02221 4.36984C2.02206 4.3695 2.02203 4.36942 2.02211 4.36963C2.02216 4.36973 2.02223 4.3699 2.02233 4.37014C2.02239 4.37026 2.02249 4.37049 2.02251 4.37055C2.02262 4.3708 2.02273 4.37106 1.33337 4.6665C0.644015 4.96194 0.644145 4.96225 0.644283 4.96257C0.644339 4.9627 0.644484 4.96304 0.644597 4.9633C0.644822 4.96382 0.645079 4.96442 0.645367 4.96508C0.645943 4.96641 0.646645 4.96803 0.647473 4.96993C0.64913 4.97372 0.651291 4.97864 0.65396 4.98464C0.659298 4.99664 0.666671 5.013 0.6761 5.03341C0.694953 5.07423 0.722061 5.13135 0.757606 5.20243C0.828639 5.3445 0.933705 5.54305 1.07432 5.77928C1.35471 6.25033 1.78109 6.87907 2.36711 7.51018C3.53871 8.7719 5.3906 10.0832 8.00004 10.0832V9.33317ZM10.3915 8.88564L10.1168 8.18775C9.49772 8.43143 8.7951 8.58317 8.00004 8.58317V9.33317V10.0832C8.9916 10.0832 9.88017 9.89291 10.6662 9.58352L10.3915 8.88564ZM5.60858 8.88564L4.97994 8.4766L4.03807 9.92413L4.66671 10.3332L5.29535 10.7422L6.23722 9.29468L5.60858 8.88564ZM14.6667 4.6665C13.9773 4.37106 13.9774 4.37091 13.9775 4.37076C13.9775 4.37072 13.9776 4.37058 13.9776 4.37049C13.9777 4.37032 13.9777 4.37018 13.9778 4.37005C13.9779 4.3698 13.978 4.36964 13.978 4.36957C13.9781 4.36941 13.978 4.36961 13.9777 4.37014C13.9773 4.37121 13.9762 4.37363 13.9745 4.37736C13.9712 4.38483 13.9655 4.39752 13.9573 4.41503C13.941 4.45007 13.915 4.50434 13.8791 4.5747C13.8072 4.71559 13.6963 4.91998 13.5448 5.1631C13.2405 5.65149 12.7799 6.28423 12.1534 6.87221L12.6667 7.41906L13.18 7.96591C13.9259 7.26575 14.4653 6.52221 14.8179 5.95636C14.9949 5.67235 15.1266 5.43013 15.2153 5.25619C15.2597 5.16913 15.2935 5.09893 15.3168 5.04886C15.3285 5.02381 15.3376 5.00378 15.3441 4.98916C15.3474 4.98186 15.35 4.9759 15.352 4.97135C15.353 4.96907 15.3538 4.96714 15.3545 4.96557C15.3548 4.96479 15.3551 4.96409 15.3554 4.96349C15.3555 4.96319 15.3557 4.96291 15.3558 4.96265C15.3558 4.96252 15.3559 4.96234 15.3559 4.96228C15.356 4.96211 15.3561 4.96194 14.6667 4.6665ZM12.6667 7.41906L12.1534 6.87221C11.5987 7.39287 10.9224 7.87068 10.1168 8.18775L10.3915 8.88564L10.6662 9.58352C11.684 9.18292 12.5176 8.58764 13.18 7.96591L12.6667 7.41906ZM12.6667 7.41906L12.1364 7.94939L13.1364 8.94939L13.6667 8.41906L14.197 7.88873L13.197 6.88873L12.6667 7.41906ZM8.00004 9.33317H7.25004V10.9998H8.00004H8.75004V9.33317H8.00004ZM10.3915 8.88564L9.76286 9.29468L10.7047 10.7422L11.3334 10.3332L11.962 9.92413L11.0201 8.4766L10.3915 8.88564ZM3.33337 7.41906L2.80304 6.88873L1.80304 7.88873L2.33337 8.41906L2.8637 8.94939L3.8637 7.94939L3.33337 7.41906Z",
|
|
17407
|
+
fill: "#646566"
|
|
17408
|
+
}
|
|
17409
|
+
)
|
|
17443
17410
|
}
|
|
17444
17411
|
);
|
|
17445
17412
|
};
|