@fctc/sme-widget-ui 2.3.5 → 2.3.7

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 CHANGED
@@ -520,30 +520,26 @@ var import_jsx_runtime16 = require("react/jsx-runtime");
520
520
  var EyeIcon = () => /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
521
521
  "svg",
522
522
  {
523
- xmlns: "http://www.w3.org/2000/svg",
524
- width: "16",
525
- height: "16",
526
- viewBox: "0 0 16 16",
523
+ width: "20",
524
+ height: "21",
525
+ viewBox: "0 0 20 21",
527
526
  fill: "none",
527
+ xmlns: "http://www.w3.org/2000/svg",
528
528
  children: [
529
529
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
530
530
  "path",
531
531
  {
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"
532
+ d: "M2.72904 13.5776C2.02076 12.6574 1.66663 12.1974 1.66663 10.8312C1.66663 9.46507 2.02076 9.00499 2.72904 8.08483C4.14326 6.24752 6.51505 4.16455 9.99996 4.16455C13.4849 4.16455 15.8567 6.24752 17.2709 8.08483C17.9792 9.00499 18.3333 9.46507 18.3333 10.8312C18.3333 12.1974 17.9792 12.6574 17.2709 13.5776C15.8567 15.4149 13.4849 17.4979 9.99996 17.4979C6.51505 17.4979 4.14326 15.4149 2.72904 13.5776Z",
533
+ stroke: "#ABACAE",
534
+ strokeWidth: "1.5"
537
535
  }
538
536
  ),
539
537
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
540
538
  "path",
541
539
  {
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"
540
+ d: "M12.5 10.8311C12.5 12.2118 11.3807 13.3311 10 13.3311C8.61929 13.3311 7.5 12.2118 7.5 10.8311C7.5 9.45034 8.61929 8.33105 10 8.33105C11.3807 8.33105 12.5 9.45034 12.5 10.8311Z",
541
+ stroke: "#ABACAE",
542
+ strokeWidth: "1.5"
547
543
  }
548
544
  )
549
545
  ]
package/dist/icons.mjs CHANGED
@@ -453,30 +453,26 @@ import { jsx as jsx16, jsxs as jsxs6 } from "react/jsx-runtime";
453
453
  var EyeIcon = () => /* @__PURE__ */ jsxs6(
454
454
  "svg",
455
455
  {
456
- xmlns: "http://www.w3.org/2000/svg",
457
- width: "16",
458
- height: "16",
459
- viewBox: "0 0 16 16",
456
+ width: "20",
457
+ height: "21",
458
+ viewBox: "0 0 20 21",
460
459
  fill: "none",
460
+ xmlns: "http://www.w3.org/2000/svg",
461
461
  children: [
462
462
  /* @__PURE__ */ jsx16(
463
463
  "path",
464
464
  {
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"
465
+ d: "M2.72904 13.5776C2.02076 12.6574 1.66663 12.1974 1.66663 10.8312C1.66663 9.46507 2.02076 9.00499 2.72904 8.08483C4.14326 6.24752 6.51505 4.16455 9.99996 4.16455C13.4849 4.16455 15.8567 6.24752 17.2709 8.08483C17.9792 9.00499 18.3333 9.46507 18.3333 10.8312C18.3333 12.1974 17.9792 12.6574 17.2709 13.5776C15.8567 15.4149 13.4849 17.4979 9.99996 17.4979C6.51505 17.4979 4.14326 15.4149 2.72904 13.5776Z",
466
+ stroke: "#ABACAE",
467
+ strokeWidth: "1.5"
470
468
  }
471
469
  ),
472
470
  /* @__PURE__ */ jsx16(
473
471
  "path",
474
472
  {
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"
473
+ d: "M12.5 10.8311C12.5 12.2118 11.3807 13.3311 10 13.3311C8.61929 13.3311 7.5 12.2118 7.5 10.8311C7.5 9.45034 8.61929 8.33105 10 8.33105C11.3807 8.33105 12.5 9.45034 12.5 10.8311Z",
474
+ stroke: "#ABACAE",
475
+ strokeWidth: "1.5"
480
476
  }
481
477
  )
482
478
  ]
package/dist/index.js CHANGED
@@ -5763,30 +5763,26 @@ var import_jsx_runtime16 = require("react/jsx-runtime");
5763
5763
  var EyeIcon = () => /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
5764
5764
  "svg",
5765
5765
  {
5766
- xmlns: "http://www.w3.org/2000/svg",
5767
- width: "16",
5768
- height: "16",
5769
- viewBox: "0 0 16 16",
5766
+ width: "20",
5767
+ height: "21",
5768
+ viewBox: "0 0 20 21",
5770
5769
  fill: "none",
5770
+ xmlns: "http://www.w3.org/2000/svg",
5771
5771
  children: [
5772
5772
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
5773
5773
  "path",
5774
5774
  {
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"
5775
+ d: "M2.72904 13.5776C2.02076 12.6574 1.66663 12.1974 1.66663 10.8312C1.66663 9.46507 2.02076 9.00499 2.72904 8.08483C4.14326 6.24752 6.51505 4.16455 9.99996 4.16455C13.4849 4.16455 15.8567 6.24752 17.2709 8.08483C17.9792 9.00499 18.3333 9.46507 18.3333 10.8312C18.3333 12.1974 17.9792 12.6574 17.2709 13.5776C15.8567 15.4149 13.4849 17.4979 9.99996 17.4979C6.51505 17.4979 4.14326 15.4149 2.72904 13.5776Z",
5776
+ stroke: "#ABACAE",
5777
+ strokeWidth: "1.5"
5780
5778
  }
5781
5779
  ),
5782
5780
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
5783
5781
  "path",
5784
5782
  {
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"
5783
+ d: "M12.5 10.8311C12.5 12.2118 11.3807 13.3311 10 13.3311C8.61929 13.3311 7.5 12.2118 7.5 10.8311C7.5 9.45034 8.61929 8.33105 10 8.33105C11.3807 8.33105 12.5 9.45034 12.5 10.8311Z",
5784
+ stroke: "#ABACAE",
5785
+ strokeWidth: "1.5"
5790
5786
  }
5791
5787
  )
5792
5788
  ]
@@ -9990,7 +9986,16 @@ var vi_default = {
9990
9986
  "no-available": "Kh\xF4ng c\xF3 l\u1EF1a ch\u1ECDn n\xE0o",
9991
9987
  paid_amount: "S\u1ED1 ti\u1EC1n \u0111\xE3 \u0111\xF3ng",
9992
9988
  remanining_amount: "S\u1ED1 ti\u1EC1n c\xF2n l\u1EA1i",
9993
- only_image_accept: "Ch\u1EC9 \u0111\u01B0\u1EE3c upload file h\xECnh \u1EA3nh"
9989
+ only_image_accept: "Ch\u1EC9 \u0111\u01B0\u1EE3c upload file h\xECnh \u1EA3nh",
9990
+ "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)",
9991
+ "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)",
9992
+ "email-only": "Email kh\xF4ng h\u1EE3p l\u1EC7",
9993
+ "phone-only": "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i kh\xF4ng h\u1EE3p l\u1EC7",
9994
+ message: "M\u1EADt kh\u1EA9u ph\u1EA3i c\xF3 t\u1EEB {{min}} \u0111\u1EBFn {{max}} k\xFD t\u1EF1",
9995
+ "message-text-error": " kh\xF4ng \u0111\u01B0\u1EE3c v\u01B0\u1EE3t qu\xE1 {{max}} k\xFD t\u1EF1",
9996
+ upcase: ", {{count}} ch\u1EEF in hoa",
9997
+ digit: ", {{count}} s\u1ED1",
9998
+ special: ", {{count}} k\xFD t\u1EF1 \u0111\u1EB7c bi\u1EC7t"
9994
9999
  };
9995
10000
 
9996
10001
  // src/locales/en.json
@@ -10040,7 +10045,16 @@ var en_default = {
10040
10045
  "no-available": "No options available",
10041
10046
  paid_amount: "Amount Paid",
10042
10047
  remanining_amount: "Amount Remaining",
10043
- only_image_accept: "Only accept image"
10048
+ only_image_accept: "Only accept image",
10049
+ "text-only": "Only letters (no numbers or special characters)",
10050
+ "number-only": "Only enter numbers (no letters or special characters)",
10051
+ "email-only": "Invalid email address",
10052
+ "phone-only": "Invalid phone number",
10053
+ message: "Password must be between {{min}} and {{max}} characters",
10054
+ "message-text-error": " must not exceed {{max}} characters",
10055
+ upcase: ", {{count}} uppercase letter",
10056
+ digit: ", {{count}} digit",
10057
+ special: ", {{count}} special character"
10044
10058
  };
10045
10059
 
10046
10060
  // src/utils/i18n.ts
@@ -17535,9 +17549,9 @@ var SecureField = (props) => {
17535
17549
  onCopy: (e3) => {
17536
17550
  if (shouldMask) e3.preventDefault();
17537
17551
  },
17538
- className: `${!isCappedToken ? "w-full" : "w-[200px]"} min-h-[44px] ring-0 outline-0 p-3 text-sm font-normal leading-[1.5] resize-none overflow-hidden field-sizing-content
17539
- bg-[#f7f7f7] border border-[#f7f7f7] rounded-[10px]
17540
- ${readonly ? "!cursor-not-allowed text-[#5c5a5a]" : "!cursor-text"}`
17552
+ className: `${!isCappedToken ? "w-full" : "w-[200px]"} h-full ring-0 focus:ring-0 focus:!outline-none outline-0 px-3 py-[12px] text-sm font-normal gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden ${readonly ? "cursor-not-allowed border border-[rgba(66,66,66,0.12)] text-[#5c5a5a]" : "cursor-pointer border border-[rgba(66,66,66,0.12)] text-[#525866]"}
17553
+ ${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary !w-fit max-w-[200px]"}`}
17554
+ ${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}`
17541
17555
  }
17542
17556
  ),
17543
17557
  canToggle && !isCappedToken && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
package/dist/index.mjs CHANGED
@@ -5636,30 +5636,26 @@ import { jsx as jsx16, jsxs as jsxs6 } from "react/jsx-runtime";
5636
5636
  var EyeIcon = () => /* @__PURE__ */ jsxs6(
5637
5637
  "svg",
5638
5638
  {
5639
- xmlns: "http://www.w3.org/2000/svg",
5640
- width: "16",
5641
- height: "16",
5642
- viewBox: "0 0 16 16",
5639
+ width: "20",
5640
+ height: "21",
5641
+ viewBox: "0 0 20 21",
5643
5642
  fill: "none",
5643
+ xmlns: "http://www.w3.org/2000/svg",
5644
5644
  children: [
5645
5645
  /* @__PURE__ */ jsx16(
5646
5646
  "path",
5647
5647
  {
5648
- 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",
5649
- stroke: "#646566",
5650
- strokeWidth: "1.5",
5651
- strokeLinecap: "round",
5652
- strokeLinejoin: "round"
5648
+ d: "M2.72904 13.5776C2.02076 12.6574 1.66663 12.1974 1.66663 10.8312C1.66663 9.46507 2.02076 9.00499 2.72904 8.08483C4.14326 6.24752 6.51505 4.16455 9.99996 4.16455C13.4849 4.16455 15.8567 6.24752 17.2709 8.08483C17.9792 9.00499 18.3333 9.46507 18.3333 10.8312C18.3333 12.1974 17.9792 12.6574 17.2709 13.5776C15.8567 15.4149 13.4849 17.4979 9.99996 17.4979C6.51505 17.4979 4.14326 15.4149 2.72904 13.5776Z",
5649
+ stroke: "#ABACAE",
5650
+ strokeWidth: "1.5"
5653
5651
  }
5654
5652
  ),
5655
5653
  /* @__PURE__ */ jsx16(
5656
5654
  "path",
5657
5655
  {
5658
- 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",
5659
- stroke: "#646566",
5660
- strokeWidth: "1.5",
5661
- strokeLinecap: "round",
5662
- strokeLinejoin: "round"
5656
+ d: "M12.5 10.8311C12.5 12.2118 11.3807 13.3311 10 13.3311C8.61929 13.3311 7.5 12.2118 7.5 10.8311C7.5 9.45034 8.61929 8.33105 10 8.33105C11.3807 8.33105 12.5 9.45034 12.5 10.8311Z",
5657
+ stroke: "#ABACAE",
5658
+ strokeWidth: "1.5"
5663
5659
  }
5664
5660
  )
5665
5661
  ]
@@ -9863,7 +9859,16 @@ var vi_default = {
9863
9859
  "no-available": "Kh\xF4ng c\xF3 l\u1EF1a ch\u1ECDn n\xE0o",
9864
9860
  paid_amount: "S\u1ED1 ti\u1EC1n \u0111\xE3 \u0111\xF3ng",
9865
9861
  remanining_amount: "S\u1ED1 ti\u1EC1n c\xF2n l\u1EA1i",
9866
- only_image_accept: "Ch\u1EC9 \u0111\u01B0\u1EE3c upload file h\xECnh \u1EA3nh"
9862
+ only_image_accept: "Ch\u1EC9 \u0111\u01B0\u1EE3c upload file h\xECnh \u1EA3nh",
9863
+ "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)",
9864
+ "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)",
9865
+ "email-only": "Email kh\xF4ng h\u1EE3p l\u1EC7",
9866
+ "phone-only": "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i kh\xF4ng h\u1EE3p l\u1EC7",
9867
+ message: "M\u1EADt kh\u1EA9u ph\u1EA3i c\xF3 t\u1EEB {{min}} \u0111\u1EBFn {{max}} k\xFD t\u1EF1",
9868
+ "message-text-error": " kh\xF4ng \u0111\u01B0\u1EE3c v\u01B0\u1EE3t qu\xE1 {{max}} k\xFD t\u1EF1",
9869
+ upcase: ", {{count}} ch\u1EEF in hoa",
9870
+ digit: ", {{count}} s\u1ED1",
9871
+ special: ", {{count}} k\xFD t\u1EF1 \u0111\u1EB7c bi\u1EC7t"
9867
9872
  };
9868
9873
 
9869
9874
  // src/locales/en.json
@@ -9913,7 +9918,16 @@ var en_default = {
9913
9918
  "no-available": "No options available",
9914
9919
  paid_amount: "Amount Paid",
9915
9920
  remanining_amount: "Amount Remaining",
9916
- only_image_accept: "Only accept image"
9921
+ only_image_accept: "Only accept image",
9922
+ "text-only": "Only letters (no numbers or special characters)",
9923
+ "number-only": "Only enter numbers (no letters or special characters)",
9924
+ "email-only": "Invalid email address",
9925
+ "phone-only": "Invalid phone number",
9926
+ message: "Password must be between {{min}} and {{max}} characters",
9927
+ "message-text-error": " must not exceed {{max}} characters",
9928
+ upcase: ", {{count}} uppercase letter",
9929
+ digit: ", {{count}} digit",
9930
+ special: ", {{count}} special character"
9917
9931
  };
9918
9932
 
9919
9933
  // src/utils/i18n.ts
@@ -17408,9 +17422,9 @@ var SecureField = (props) => {
17408
17422
  onCopy: (e3) => {
17409
17423
  if (shouldMask) e3.preventDefault();
17410
17424
  },
17411
- className: `${!isCappedToken ? "w-full" : "w-[200px]"} min-h-[44px] ring-0 outline-0 p-3 text-sm font-normal leading-[1.5] resize-none overflow-hidden field-sizing-content
17412
- bg-[#f7f7f7] border border-[#f7f7f7] rounded-[10px]
17413
- ${readonly ? "!cursor-not-allowed text-[#5c5a5a]" : "!cursor-text"}`
17425
+ className: `${!isCappedToken ? "w-full" : "w-[200px]"} h-full ring-0 focus:ring-0 focus:!outline-none outline-0 px-3 py-[12px] text-sm font-normal gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden ${readonly ? "cursor-not-allowed border border-[rgba(66,66,66,0.12)] text-[#5c5a5a]" : "cursor-pointer border border-[rgba(66,66,66,0.12)] text-[#525866]"}
17426
+ ${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary !w-fit max-w-[200px]"}`}
17427
+ ${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}`
17414
17428
  }
17415
17429
  ),
17416
17430
  canToggle && !isCappedToken && /* @__PURE__ */ jsx80(
package/dist/utils.js CHANGED
@@ -6855,7 +6855,16 @@ var vi_default = {
6855
6855
  "no-available": "Kh\xF4ng c\xF3 l\u1EF1a ch\u1ECDn n\xE0o",
6856
6856
  paid_amount: "S\u1ED1 ti\u1EC1n \u0111\xE3 \u0111\xF3ng",
6857
6857
  remanining_amount: "S\u1ED1 ti\u1EC1n c\xF2n l\u1EA1i",
6858
- only_image_accept: "Ch\u1EC9 \u0111\u01B0\u1EE3c upload file h\xECnh \u1EA3nh"
6858
+ only_image_accept: "Ch\u1EC9 \u0111\u01B0\u1EE3c upload file h\xECnh \u1EA3nh",
6859
+ "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)",
6860
+ "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)",
6861
+ "email-only": "Email kh\xF4ng h\u1EE3p l\u1EC7",
6862
+ "phone-only": "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i kh\xF4ng h\u1EE3p l\u1EC7",
6863
+ message: "M\u1EADt kh\u1EA9u ph\u1EA3i c\xF3 t\u1EEB {{min}} \u0111\u1EBFn {{max}} k\xFD t\u1EF1",
6864
+ "message-text-error": " kh\xF4ng \u0111\u01B0\u1EE3c v\u01B0\u1EE3t qu\xE1 {{max}} k\xFD t\u1EF1",
6865
+ upcase: ", {{count}} ch\u1EEF in hoa",
6866
+ digit: ", {{count}} s\u1ED1",
6867
+ special: ", {{count}} k\xFD t\u1EF1 \u0111\u1EB7c bi\u1EC7t"
6859
6868
  };
6860
6869
 
6861
6870
  // src/locales/en.json
@@ -6905,7 +6914,16 @@ var en_default = {
6905
6914
  "no-available": "No options available",
6906
6915
  paid_amount: "Amount Paid",
6907
6916
  remanining_amount: "Amount Remaining",
6908
- only_image_accept: "Only accept image"
6917
+ only_image_accept: "Only accept image",
6918
+ "text-only": "Only letters (no numbers or special characters)",
6919
+ "number-only": "Only enter numbers (no letters or special characters)",
6920
+ "email-only": "Invalid email address",
6921
+ "phone-only": "Invalid phone number",
6922
+ message: "Password must be between {{min}} and {{max}} characters",
6923
+ "message-text-error": " must not exceed {{max}} characters",
6924
+ upcase: ", {{count}} uppercase letter",
6925
+ digit: ", {{count}} digit",
6926
+ special: ", {{count}} special character"
6909
6927
  };
6910
6928
 
6911
6929
  // src/utils/i18n.ts
package/dist/utils.mjs CHANGED
@@ -6832,7 +6832,16 @@ var vi_default = {
6832
6832
  "no-available": "Kh\xF4ng c\xF3 l\u1EF1a ch\u1ECDn n\xE0o",
6833
6833
  paid_amount: "S\u1ED1 ti\u1EC1n \u0111\xE3 \u0111\xF3ng",
6834
6834
  remanining_amount: "S\u1ED1 ti\u1EC1n c\xF2n l\u1EA1i",
6835
- only_image_accept: "Ch\u1EC9 \u0111\u01B0\u1EE3c upload file h\xECnh \u1EA3nh"
6835
+ only_image_accept: "Ch\u1EC9 \u0111\u01B0\u1EE3c upload file h\xECnh \u1EA3nh",
6836
+ "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)",
6837
+ "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)",
6838
+ "email-only": "Email kh\xF4ng h\u1EE3p l\u1EC7",
6839
+ "phone-only": "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i kh\xF4ng h\u1EE3p l\u1EC7",
6840
+ message: "M\u1EADt kh\u1EA9u ph\u1EA3i c\xF3 t\u1EEB {{min}} \u0111\u1EBFn {{max}} k\xFD t\u1EF1",
6841
+ "message-text-error": " kh\xF4ng \u0111\u01B0\u1EE3c v\u01B0\u1EE3t qu\xE1 {{max}} k\xFD t\u1EF1",
6842
+ upcase: ", {{count}} ch\u1EEF in hoa",
6843
+ digit: ", {{count}} s\u1ED1",
6844
+ special: ", {{count}} k\xFD t\u1EF1 \u0111\u1EB7c bi\u1EC7t"
6836
6845
  };
6837
6846
 
6838
6847
  // src/locales/en.json
@@ -6882,7 +6891,16 @@ var en_default = {
6882
6891
  "no-available": "No options available",
6883
6892
  paid_amount: "Amount Paid",
6884
6893
  remanining_amount: "Amount Remaining",
6885
- only_image_accept: "Only accept image"
6894
+ only_image_accept: "Only accept image",
6895
+ "text-only": "Only letters (no numbers or special characters)",
6896
+ "number-only": "Only enter numbers (no letters or special characters)",
6897
+ "email-only": "Invalid email address",
6898
+ "phone-only": "Invalid phone number",
6899
+ message: "Password must be between {{min}} and {{max}} characters",
6900
+ "message-text-error": " must not exceed {{max}} characters",
6901
+ upcase: ", {{count}} uppercase letter",
6902
+ digit: ", {{count}} digit",
6903
+ special: ", {{count}} special character"
6886
6904
  };
6887
6905
 
6888
6906
  // src/utils/i18n.ts
package/dist/widgets.js CHANGED
@@ -7779,7 +7779,16 @@ var vi_default = {
7779
7779
  "no-available": "Kh\xF4ng c\xF3 l\u1EF1a ch\u1ECDn n\xE0o",
7780
7780
  paid_amount: "S\u1ED1 ti\u1EC1n \u0111\xE3 \u0111\xF3ng",
7781
7781
  remanining_amount: "S\u1ED1 ti\u1EC1n c\xF2n l\u1EA1i",
7782
- only_image_accept: "Ch\u1EC9 \u0111\u01B0\u1EE3c upload file h\xECnh \u1EA3nh"
7782
+ only_image_accept: "Ch\u1EC9 \u0111\u01B0\u1EE3c upload file h\xECnh \u1EA3nh",
7783
+ "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)",
7784
+ "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)",
7785
+ "email-only": "Email kh\xF4ng h\u1EE3p l\u1EC7",
7786
+ "phone-only": "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i kh\xF4ng h\u1EE3p l\u1EC7",
7787
+ message: "M\u1EADt kh\u1EA9u ph\u1EA3i c\xF3 t\u1EEB {{min}} \u0111\u1EBFn {{max}} k\xFD t\u1EF1",
7788
+ "message-text-error": " kh\xF4ng \u0111\u01B0\u1EE3c v\u01B0\u1EE3t qu\xE1 {{max}} k\xFD t\u1EF1",
7789
+ upcase: ", {{count}} ch\u1EEF in hoa",
7790
+ digit: ", {{count}} s\u1ED1",
7791
+ special: ", {{count}} k\xFD t\u1EF1 \u0111\u1EB7c bi\u1EC7t"
7783
7792
  };
7784
7793
 
7785
7794
  // src/locales/en.json
@@ -7829,7 +7838,16 @@ var en_default = {
7829
7838
  "no-available": "No options available",
7830
7839
  paid_amount: "Amount Paid",
7831
7840
  remanining_amount: "Amount Remaining",
7832
- only_image_accept: "Only accept image"
7841
+ only_image_accept: "Only accept image",
7842
+ "text-only": "Only letters (no numbers or special characters)",
7843
+ "number-only": "Only enter numbers (no letters or special characters)",
7844
+ "email-only": "Invalid email address",
7845
+ "phone-only": "Invalid phone number",
7846
+ message: "Password must be between {{min}} and {{max}} characters",
7847
+ "message-text-error": " must not exceed {{max}} characters",
7848
+ upcase: ", {{count}} uppercase letter",
7849
+ digit: ", {{count}} digit",
7850
+ special: ", {{count}} special character"
7833
7851
  };
7834
7852
 
7835
7853
  // src/utils/i18n.ts
@@ -8805,30 +8823,26 @@ var import_jsx_runtime19 = require("react/jsx-runtime");
8805
8823
  var EyeIcon = () => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
8806
8824
  "svg",
8807
8825
  {
8808
- xmlns: "http://www.w3.org/2000/svg",
8809
- width: "16",
8810
- height: "16",
8811
- viewBox: "0 0 16 16",
8826
+ width: "20",
8827
+ height: "21",
8828
+ viewBox: "0 0 20 21",
8812
8829
  fill: "none",
8830
+ xmlns: "http://www.w3.org/2000/svg",
8813
8831
  children: [
8814
8832
  /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
8815
8833
  "path",
8816
8834
  {
8817
- 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",
8818
- stroke: "#646566",
8819
- strokeWidth: "1.5",
8820
- strokeLinecap: "round",
8821
- strokeLinejoin: "round"
8835
+ d: "M2.72904 13.5776C2.02076 12.6574 1.66663 12.1974 1.66663 10.8312C1.66663 9.46507 2.02076 9.00499 2.72904 8.08483C4.14326 6.24752 6.51505 4.16455 9.99996 4.16455C13.4849 4.16455 15.8567 6.24752 17.2709 8.08483C17.9792 9.00499 18.3333 9.46507 18.3333 10.8312C18.3333 12.1974 17.9792 12.6574 17.2709 13.5776C15.8567 15.4149 13.4849 17.4979 9.99996 17.4979C6.51505 17.4979 4.14326 15.4149 2.72904 13.5776Z",
8836
+ stroke: "#ABACAE",
8837
+ strokeWidth: "1.5"
8822
8838
  }
8823
8839
  ),
8824
8840
  /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
8825
8841
  "path",
8826
8842
  {
8827
- 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",
8828
- stroke: "#646566",
8829
- strokeWidth: "1.5",
8830
- strokeLinecap: "round",
8831
- strokeLinejoin: "round"
8843
+ d: "M12.5 10.8311C12.5 12.2118 11.3807 13.3311 10 13.3311C8.61929 13.3311 7.5 12.2118 7.5 10.8311C7.5 9.45034 8.61929 8.33105 10 8.33105C11.3807 8.33105 12.5 9.45034 12.5 10.8311Z",
8844
+ stroke: "#ABACAE",
8845
+ strokeWidth: "1.5"
8832
8846
  }
8833
8847
  )
8834
8848
  ]
@@ -16784,9 +16798,9 @@ var SecureField = (props) => {
16784
16798
  onCopy: (e3) => {
16785
16799
  if (shouldMask) e3.preventDefault();
16786
16800
  },
16787
- className: `${!isCappedToken ? "w-full" : "w-[200px]"} min-h-[44px] ring-0 outline-0 p-3 text-sm font-normal leading-[1.5] resize-none overflow-hidden field-sizing-content
16788
- bg-[#f7f7f7] border border-[#f7f7f7] rounded-[10px]
16789
- ${readonly ? "!cursor-not-allowed text-[#5c5a5a]" : "!cursor-text"}`
16801
+ className: `${!isCappedToken ? "w-full" : "w-[200px]"} h-full ring-0 focus:ring-0 focus:!outline-none outline-0 px-3 py-[12px] text-sm font-normal gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden ${readonly ? "cursor-not-allowed border border-[rgba(66,66,66,0.12)] text-[#5c5a5a]" : "cursor-pointer border border-[rgba(66,66,66,0.12)] text-[#525866]"}
16802
+ ${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary !w-fit max-w-[200px]"}`}
16803
+ ${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}`
16790
16804
  }
16791
16805
  ),
16792
16806
  canToggle && !isCappedToken && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
package/dist/widgets.mjs CHANGED
@@ -7716,7 +7716,16 @@ var vi_default = {
7716
7716
  "no-available": "Kh\xF4ng c\xF3 l\u1EF1a ch\u1ECDn n\xE0o",
7717
7717
  paid_amount: "S\u1ED1 ti\u1EC1n \u0111\xE3 \u0111\xF3ng",
7718
7718
  remanining_amount: "S\u1ED1 ti\u1EC1n c\xF2n l\u1EA1i",
7719
- only_image_accept: "Ch\u1EC9 \u0111\u01B0\u1EE3c upload file h\xECnh \u1EA3nh"
7719
+ only_image_accept: "Ch\u1EC9 \u0111\u01B0\u1EE3c upload file h\xECnh \u1EA3nh",
7720
+ "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)",
7721
+ "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)",
7722
+ "email-only": "Email kh\xF4ng h\u1EE3p l\u1EC7",
7723
+ "phone-only": "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i kh\xF4ng h\u1EE3p l\u1EC7",
7724
+ message: "M\u1EADt kh\u1EA9u ph\u1EA3i c\xF3 t\u1EEB {{min}} \u0111\u1EBFn {{max}} k\xFD t\u1EF1",
7725
+ "message-text-error": " kh\xF4ng \u0111\u01B0\u1EE3c v\u01B0\u1EE3t qu\xE1 {{max}} k\xFD t\u1EF1",
7726
+ upcase: ", {{count}} ch\u1EEF in hoa",
7727
+ digit: ", {{count}} s\u1ED1",
7728
+ special: ", {{count}} k\xFD t\u1EF1 \u0111\u1EB7c bi\u1EC7t"
7720
7729
  };
7721
7730
 
7722
7731
  // src/locales/en.json
@@ -7766,7 +7775,16 @@ var en_default = {
7766
7775
  "no-available": "No options available",
7767
7776
  paid_amount: "Amount Paid",
7768
7777
  remanining_amount: "Amount Remaining",
7769
- only_image_accept: "Only accept image"
7778
+ only_image_accept: "Only accept image",
7779
+ "text-only": "Only letters (no numbers or special characters)",
7780
+ "number-only": "Only enter numbers (no letters or special characters)",
7781
+ "email-only": "Invalid email address",
7782
+ "phone-only": "Invalid phone number",
7783
+ message: "Password must be between {{min}} and {{max}} characters",
7784
+ "message-text-error": " must not exceed {{max}} characters",
7785
+ upcase: ", {{count}} uppercase letter",
7786
+ digit: ", {{count}} digit",
7787
+ special: ", {{count}} special character"
7770
7788
  };
7771
7789
 
7772
7790
  // src/utils/i18n.ts
@@ -8742,30 +8760,26 @@ import { jsx as jsx19, jsxs as jsxs7 } from "react/jsx-runtime";
8742
8760
  var EyeIcon = () => /* @__PURE__ */ jsxs7(
8743
8761
  "svg",
8744
8762
  {
8745
- xmlns: "http://www.w3.org/2000/svg",
8746
- width: "16",
8747
- height: "16",
8748
- viewBox: "0 0 16 16",
8763
+ width: "20",
8764
+ height: "21",
8765
+ viewBox: "0 0 20 21",
8749
8766
  fill: "none",
8767
+ xmlns: "http://www.w3.org/2000/svg",
8750
8768
  children: [
8751
8769
  /* @__PURE__ */ jsx19(
8752
8770
  "path",
8753
8771
  {
8754
- 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",
8755
- stroke: "#646566",
8756
- strokeWidth: "1.5",
8757
- strokeLinecap: "round",
8758
- strokeLinejoin: "round"
8772
+ d: "M2.72904 13.5776C2.02076 12.6574 1.66663 12.1974 1.66663 10.8312C1.66663 9.46507 2.02076 9.00499 2.72904 8.08483C4.14326 6.24752 6.51505 4.16455 9.99996 4.16455C13.4849 4.16455 15.8567 6.24752 17.2709 8.08483C17.9792 9.00499 18.3333 9.46507 18.3333 10.8312C18.3333 12.1974 17.9792 12.6574 17.2709 13.5776C15.8567 15.4149 13.4849 17.4979 9.99996 17.4979C6.51505 17.4979 4.14326 15.4149 2.72904 13.5776Z",
8773
+ stroke: "#ABACAE",
8774
+ strokeWidth: "1.5"
8759
8775
  }
8760
8776
  ),
8761
8777
  /* @__PURE__ */ jsx19(
8762
8778
  "path",
8763
8779
  {
8764
- 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",
8765
- stroke: "#646566",
8766
- strokeWidth: "1.5",
8767
- strokeLinecap: "round",
8768
- strokeLinejoin: "round"
8780
+ d: "M12.5 10.8311C12.5 12.2118 11.3807 13.3311 10 13.3311C8.61929 13.3311 7.5 12.2118 7.5 10.8311C7.5 9.45034 8.61929 8.33105 10 8.33105C11.3807 8.33105 12.5 9.45034 12.5 10.8311Z",
8781
+ stroke: "#ABACAE",
8782
+ strokeWidth: "1.5"
8769
8783
  }
8770
8784
  )
8771
8785
  ]
@@ -16721,9 +16735,9 @@ var SecureField = (props) => {
16721
16735
  onCopy: (e3) => {
16722
16736
  if (shouldMask) e3.preventDefault();
16723
16737
  },
16724
- className: `${!isCappedToken ? "w-full" : "w-[200px]"} min-h-[44px] ring-0 outline-0 p-3 text-sm font-normal leading-[1.5] resize-none overflow-hidden field-sizing-content
16725
- bg-[#f7f7f7] border border-[#f7f7f7] rounded-[10px]
16726
- ${readonly ? "!cursor-not-allowed text-[#5c5a5a]" : "!cursor-text"}`
16738
+ className: `${!isCappedToken ? "w-full" : "w-[200px]"} h-full ring-0 focus:ring-0 focus:!outline-none outline-0 px-3 py-[12px] text-sm font-normal gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden ${readonly ? "cursor-not-allowed border border-[rgba(66,66,66,0.12)] text-[#5c5a5a]" : "cursor-pointer border border-[rgba(66,66,66,0.12)] text-[#525866]"}
16739
+ ${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary !w-fit max-w-[200px]"}`}
16740
+ ${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}`
16727
16741
  }
16728
16742
  ),
16729
16743
  canToggle && !isCappedToken && /* @__PURE__ */ jsx80(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/sme-widget-ui",
3
- "version": "2.3.5",
3
+ "version": "2.3.7",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",