@fctc/sme-widget-ui 2.3.6 → 2.3.8

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
  ]
@@ -17149,14 +17145,19 @@ var typeStyles = {
17149
17145
  border: "1px solid #F6B51E"
17150
17146
  },
17151
17147
  default: {
17152
- backgroundColor: "#dee2e6",
17153
- color: "#000",
17154
- border: "1px solid #000"
17148
+ backgroundColor: "#FFFFFF",
17149
+ color: "#666",
17150
+ border: "1px solid #AEAEAE"
17155
17151
  },
17156
17152
  light: {
17157
17153
  backgroundColor: "#fff",
17158
17154
  color: "#1f2937",
17159
17155
  border: "1px solid #1f2937"
17156
+ },
17157
+ purpled: {
17158
+ backgroundColor: "#DCD5FF",
17159
+ color: "#5946F9",
17160
+ border: "1px solid #5946F9"
17160
17161
  }
17161
17162
  };
17162
17163
  var baseStyle = {
@@ -17171,16 +17172,19 @@ var baseStyle = {
17171
17172
  height: "fit-content"
17172
17173
  };
17173
17174
  var ButtonBadgeField = (props) => {
17174
- const { defaultValue, selection, value, formValues, domainHelper, type } = props;
17175
+ const { defaultValue, selection, value, formValues, domainHelper, type, class: classField } = props;
17175
17176
  const decorationSuccess = props["decoration-success"] && domainHelper.checkDomain(formValues, props["decoration-success"]);
17176
17177
  const decorationInfo = props["decoration-info"] && domainHelper.checkDomain(formValues, props["decoration-info"]);
17177
17178
  const decorationDanger = props["decoration-danger"] && domainHelper.checkDomain(formValues, props["decoration-danger"]);
17178
17179
  const decorationWarning = props["decoration-warning"] && domainHelper.checkDomain(formValues, props["decoration-warning"]);
17180
+ const decorationPurpled = props["decoration-purpled"] && domainHelper.checkDomain(formValues, props["decoration-purpled"]);
17181
+ const decorationOrange = props["decoration-oranged"] && domainHelper.checkDomain(formValues, props["decoration-oranged"]);
17179
17182
  const getType = () => {
17180
17183
  if (decorationInfo) return typeStyles["info"];
17181
17184
  if (decorationSuccess) return typeStyles["success"];
17182
17185
  if (decorationDanger) return typeStyles["danger"];
17183
- if (decorationWarning) return typeStyles["warning"];
17186
+ if (decorationWarning || decorationOrange) return typeStyles["warning"];
17187
+ if (decorationPurpled) return typeStyles["purpled"];
17184
17188
  return typeStyles["default"];
17185
17189
  };
17186
17190
  const getLabel = (value2) => {
@@ -17553,9 +17557,9 @@ var SecureField = (props) => {
17553
17557
  onCopy: (e3) => {
17554
17558
  if (shouldMask) e3.preventDefault();
17555
17559
  },
17556
- 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
17557
- bg-[#f7f7f7] border border-[#f7f7f7] rounded-[10px]
17558
- ${readonly ? "!cursor-not-allowed text-[#5c5a5a]" : "!cursor-text"}`
17560
+ 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]"}
17561
+ ${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary !w-fit max-w-[200px]"}`}
17562
+ ${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}`
17559
17563
  }
17560
17564
  ),
17561
17565
  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
  ]
@@ -17022,14 +17018,19 @@ var typeStyles = {
17022
17018
  border: "1px solid #F6B51E"
17023
17019
  },
17024
17020
  default: {
17025
- backgroundColor: "#dee2e6",
17026
- color: "#000",
17027
- border: "1px solid #000"
17021
+ backgroundColor: "#FFFFFF",
17022
+ color: "#666",
17023
+ border: "1px solid #AEAEAE"
17028
17024
  },
17029
17025
  light: {
17030
17026
  backgroundColor: "#fff",
17031
17027
  color: "#1f2937",
17032
17028
  border: "1px solid #1f2937"
17029
+ },
17030
+ purpled: {
17031
+ backgroundColor: "#DCD5FF",
17032
+ color: "#5946F9",
17033
+ border: "1px solid #5946F9"
17033
17034
  }
17034
17035
  };
17035
17036
  var baseStyle = {
@@ -17044,16 +17045,19 @@ var baseStyle = {
17044
17045
  height: "fit-content"
17045
17046
  };
17046
17047
  var ButtonBadgeField = (props) => {
17047
- const { defaultValue, selection, value, formValues, domainHelper, type } = props;
17048
+ const { defaultValue, selection, value, formValues, domainHelper, type, class: classField } = props;
17048
17049
  const decorationSuccess = props["decoration-success"] && domainHelper.checkDomain(formValues, props["decoration-success"]);
17049
17050
  const decorationInfo = props["decoration-info"] && domainHelper.checkDomain(formValues, props["decoration-info"]);
17050
17051
  const decorationDanger = props["decoration-danger"] && domainHelper.checkDomain(formValues, props["decoration-danger"]);
17051
17052
  const decorationWarning = props["decoration-warning"] && domainHelper.checkDomain(formValues, props["decoration-warning"]);
17053
+ const decorationPurpled = props["decoration-purpled"] && domainHelper.checkDomain(formValues, props["decoration-purpled"]);
17054
+ const decorationOrange = props["decoration-oranged"] && domainHelper.checkDomain(formValues, props["decoration-oranged"]);
17052
17055
  const getType = () => {
17053
17056
  if (decorationInfo) return typeStyles["info"];
17054
17057
  if (decorationSuccess) return typeStyles["success"];
17055
17058
  if (decorationDanger) return typeStyles["danger"];
17056
- if (decorationWarning) return typeStyles["warning"];
17059
+ if (decorationWarning || decorationOrange) return typeStyles["warning"];
17060
+ if (decorationPurpled) return typeStyles["purpled"];
17057
17061
  return typeStyles["default"];
17058
17062
  };
17059
17063
  const getLabel = (value2) => {
@@ -17426,9 +17430,9 @@ var SecureField = (props) => {
17426
17430
  onCopy: (e3) => {
17427
17431
  if (shouldMask) e3.preventDefault();
17428
17432
  },
17429
- 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
17430
- bg-[#f7f7f7] border border-[#f7f7f7] rounded-[10px]
17431
- ${readonly ? "!cursor-not-allowed text-[#5c5a5a]" : "!cursor-text"}`
17433
+ 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]"}
17434
+ ${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary !w-fit max-w-[200px]"}`}
17435
+ ${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}`
17432
17436
  }
17433
17437
  ),
17434
17438
  canToggle && !isCappedToken && /* @__PURE__ */ jsx80(
@@ -177,7 +177,10 @@ interface IButtonBadgeProps extends IInputFieldProps {
177
177
  'decoration-info'?: any;
178
178
  'decoration-danger'?: any;
179
179
  'decoration-warning'?: any;
180
+ 'decoration-purpled'?: any;
181
+ 'decoration-oranged'?: any;
180
182
  domainHelper?: any;
183
+ class?: string;
181
184
  }
182
185
 
183
186
  declare const ButtonBadgeField: (props: IButtonBadgeProps) => JSX.Element | null;
package/dist/widgets.d.ts CHANGED
@@ -177,7 +177,10 @@ interface IButtonBadgeProps extends IInputFieldProps {
177
177
  'decoration-info'?: any;
178
178
  'decoration-danger'?: any;
179
179
  'decoration-warning'?: any;
180
+ 'decoration-purpled'?: any;
181
+ 'decoration-oranged'?: any;
180
182
  domainHelper?: any;
183
+ class?: string;
181
184
  }
182
185
 
183
186
  declare const ButtonBadgeField: (props: IButtonBadgeProps) => JSX.Element | null;
package/dist/widgets.js CHANGED
@@ -8823,30 +8823,26 @@ var import_jsx_runtime19 = require("react/jsx-runtime");
8823
8823
  var EyeIcon = () => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
8824
8824
  "svg",
8825
8825
  {
8826
- xmlns: "http://www.w3.org/2000/svg",
8827
- width: "16",
8828
- height: "16",
8829
- viewBox: "0 0 16 16",
8826
+ width: "20",
8827
+ height: "21",
8828
+ viewBox: "0 0 20 21",
8830
8829
  fill: "none",
8830
+ xmlns: "http://www.w3.org/2000/svg",
8831
8831
  children: [
8832
8832
  /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
8833
8833
  "path",
8834
8834
  {
8835
- 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",
8836
- stroke: "#646566",
8837
- strokeWidth: "1.5",
8838
- strokeLinecap: "round",
8839
- 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"
8840
8838
  }
8841
8839
  ),
8842
8840
  /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
8843
8841
  "path",
8844
8842
  {
8845
- 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",
8846
- stroke: "#646566",
8847
- strokeWidth: "1.5",
8848
- strokeLinecap: "round",
8849
- 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"
8850
8846
  }
8851
8847
  )
8852
8848
  ]
@@ -16398,14 +16394,19 @@ var typeStyles = {
16398
16394
  border: "1px solid #F6B51E"
16399
16395
  },
16400
16396
  default: {
16401
- backgroundColor: "#dee2e6",
16402
- color: "#000",
16403
- border: "1px solid #000"
16397
+ backgroundColor: "#FFFFFF",
16398
+ color: "#666",
16399
+ border: "1px solid #AEAEAE"
16404
16400
  },
16405
16401
  light: {
16406
16402
  backgroundColor: "#fff",
16407
16403
  color: "#1f2937",
16408
16404
  border: "1px solid #1f2937"
16405
+ },
16406
+ purpled: {
16407
+ backgroundColor: "#DCD5FF",
16408
+ color: "#5946F9",
16409
+ border: "1px solid #5946F9"
16409
16410
  }
16410
16411
  };
16411
16412
  var baseStyle = {
@@ -16420,16 +16421,19 @@ var baseStyle = {
16420
16421
  height: "fit-content"
16421
16422
  };
16422
16423
  var ButtonBadgeField = (props) => {
16423
- const { defaultValue, selection, value, formValues, domainHelper, type } = props;
16424
+ const { defaultValue, selection, value, formValues, domainHelper, type, class: classField } = props;
16424
16425
  const decorationSuccess = props["decoration-success"] && domainHelper.checkDomain(formValues, props["decoration-success"]);
16425
16426
  const decorationInfo = props["decoration-info"] && domainHelper.checkDomain(formValues, props["decoration-info"]);
16426
16427
  const decorationDanger = props["decoration-danger"] && domainHelper.checkDomain(formValues, props["decoration-danger"]);
16427
16428
  const decorationWarning = props["decoration-warning"] && domainHelper.checkDomain(formValues, props["decoration-warning"]);
16429
+ const decorationPurpled = props["decoration-purpled"] && domainHelper.checkDomain(formValues, props["decoration-purpled"]);
16430
+ const decorationOrange = props["decoration-oranged"] && domainHelper.checkDomain(formValues, props["decoration-oranged"]);
16428
16431
  const getType = () => {
16429
16432
  if (decorationInfo) return typeStyles["info"];
16430
16433
  if (decorationSuccess) return typeStyles["success"];
16431
16434
  if (decorationDanger) return typeStyles["danger"];
16432
- if (decorationWarning) return typeStyles["warning"];
16435
+ if (decorationWarning || decorationOrange) return typeStyles["warning"];
16436
+ if (decorationPurpled) return typeStyles["purpled"];
16433
16437
  return typeStyles["default"];
16434
16438
  };
16435
16439
  const getLabel = (value2) => {
@@ -16802,9 +16806,9 @@ var SecureField = (props) => {
16802
16806
  onCopy: (e3) => {
16803
16807
  if (shouldMask) e3.preventDefault();
16804
16808
  },
16805
- 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
16806
- bg-[#f7f7f7] border border-[#f7f7f7] rounded-[10px]
16807
- ${readonly ? "!cursor-not-allowed text-[#5c5a5a]" : "!cursor-text"}`
16809
+ 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]"}
16810
+ ${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary !w-fit max-w-[200px]"}`}
16811
+ ${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}`
16808
16812
  }
16809
16813
  ),
16810
16814
  canToggle && !isCappedToken && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
package/dist/widgets.mjs CHANGED
@@ -8760,30 +8760,26 @@ import { jsx as jsx19, jsxs as jsxs7 } from "react/jsx-runtime";
8760
8760
  var EyeIcon = () => /* @__PURE__ */ jsxs7(
8761
8761
  "svg",
8762
8762
  {
8763
- xmlns: "http://www.w3.org/2000/svg",
8764
- width: "16",
8765
- height: "16",
8766
- viewBox: "0 0 16 16",
8763
+ width: "20",
8764
+ height: "21",
8765
+ viewBox: "0 0 20 21",
8767
8766
  fill: "none",
8767
+ xmlns: "http://www.w3.org/2000/svg",
8768
8768
  children: [
8769
8769
  /* @__PURE__ */ jsx19(
8770
8770
  "path",
8771
8771
  {
8772
- 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",
8773
- stroke: "#646566",
8774
- strokeWidth: "1.5",
8775
- strokeLinecap: "round",
8776
- 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"
8777
8775
  }
8778
8776
  ),
8779
8777
  /* @__PURE__ */ jsx19(
8780
8778
  "path",
8781
8779
  {
8782
- 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",
8783
- stroke: "#646566",
8784
- strokeWidth: "1.5",
8785
- strokeLinecap: "round",
8786
- 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"
8787
8783
  }
8788
8784
  )
8789
8785
  ]
@@ -16335,14 +16331,19 @@ var typeStyles = {
16335
16331
  border: "1px solid #F6B51E"
16336
16332
  },
16337
16333
  default: {
16338
- backgroundColor: "#dee2e6",
16339
- color: "#000",
16340
- border: "1px solid #000"
16334
+ backgroundColor: "#FFFFFF",
16335
+ color: "#666",
16336
+ border: "1px solid #AEAEAE"
16341
16337
  },
16342
16338
  light: {
16343
16339
  backgroundColor: "#fff",
16344
16340
  color: "#1f2937",
16345
16341
  border: "1px solid #1f2937"
16342
+ },
16343
+ purpled: {
16344
+ backgroundColor: "#DCD5FF",
16345
+ color: "#5946F9",
16346
+ border: "1px solid #5946F9"
16346
16347
  }
16347
16348
  };
16348
16349
  var baseStyle = {
@@ -16357,16 +16358,19 @@ var baseStyle = {
16357
16358
  height: "fit-content"
16358
16359
  };
16359
16360
  var ButtonBadgeField = (props) => {
16360
- const { defaultValue, selection, value, formValues, domainHelper, type } = props;
16361
+ const { defaultValue, selection, value, formValues, domainHelper, type, class: classField } = props;
16361
16362
  const decorationSuccess = props["decoration-success"] && domainHelper.checkDomain(formValues, props["decoration-success"]);
16362
16363
  const decorationInfo = props["decoration-info"] && domainHelper.checkDomain(formValues, props["decoration-info"]);
16363
16364
  const decorationDanger = props["decoration-danger"] && domainHelper.checkDomain(formValues, props["decoration-danger"]);
16364
16365
  const decorationWarning = props["decoration-warning"] && domainHelper.checkDomain(formValues, props["decoration-warning"]);
16366
+ const decorationPurpled = props["decoration-purpled"] && domainHelper.checkDomain(formValues, props["decoration-purpled"]);
16367
+ const decorationOrange = props["decoration-oranged"] && domainHelper.checkDomain(formValues, props["decoration-oranged"]);
16365
16368
  const getType = () => {
16366
16369
  if (decorationInfo) return typeStyles["info"];
16367
16370
  if (decorationSuccess) return typeStyles["success"];
16368
16371
  if (decorationDanger) return typeStyles["danger"];
16369
- if (decorationWarning) return typeStyles["warning"];
16372
+ if (decorationWarning || decorationOrange) return typeStyles["warning"];
16373
+ if (decorationPurpled) return typeStyles["purpled"];
16370
16374
  return typeStyles["default"];
16371
16375
  };
16372
16376
  const getLabel = (value2) => {
@@ -16739,9 +16743,9 @@ var SecureField = (props) => {
16739
16743
  onCopy: (e3) => {
16740
16744
  if (shouldMask) e3.preventDefault();
16741
16745
  },
16742
- 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
16743
- bg-[#f7f7f7] border border-[#f7f7f7] rounded-[10px]
16744
- ${readonly ? "!cursor-not-allowed text-[#5c5a5a]" : "!cursor-text"}`
16746
+ 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]"}
16747
+ ${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary !w-fit max-w-[200px]"}`}
16748
+ ${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}`
16745
16749
  }
16746
16750
  ),
16747
16751
  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.6",
3
+ "version": "2.3.8",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",