@emeraldemperaur/vector-sigma 1.4.28 → 1.4.30

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.
Files changed (31) hide show
  1. package/lib/index.cjs +569 -227
  2. package/lib/index.esm.js +570 -228
  3. package/lib/types/components/avatar/avatar.d.ts +7 -1
  4. package/lib/types/components/checkbox/checkbox.d.ts +7 -1
  5. package/lib/types/components/conditional/conditional.d.ts +7 -1
  6. package/lib/types/components/datepicker/datepicker.d.ts +7 -1
  7. package/lib/types/components/daterangepicker/daterangepicker.d.ts +7 -1
  8. package/lib/types/components/datetimepicker/datetimepicker.d.ts +7 -1
  9. package/lib/types/components/dropdown/dropdown.d.ts +7 -1
  10. package/lib/types/components/file/file.d.ts +7 -1
  11. package/lib/types/components/file/filemultiple.d.ts +7 -1
  12. package/lib/types/components/input/input.d.ts +11 -5
  13. package/lib/types/components/input/passwordInput.d.ts +1 -1
  14. package/lib/types/components/input/phoneInput.d.ts +1 -1
  15. package/lib/types/components/input/uuidInput.d.ts +69 -1
  16. package/lib/types/components/input/xCreditCardInput.d.ts +1 -1
  17. package/lib/types/components/inputcurrency/inputcurrency.d.ts +7 -1
  18. package/lib/types/components/inputcurrency/stockInput.d.ts +7 -1
  19. package/lib/types/components/radio/radio.d.ts +7 -1
  20. package/lib/types/components/select/select.d.ts +7 -1
  21. package/lib/types/components/selectmultiple/selectmultiple.d.ts +7 -1
  22. package/lib/types/components/slider/range.d.ts +7 -1
  23. package/lib/types/components/slider/slider.d.ts +7 -1
  24. package/lib/types/components/toggle/toggle.d.ts +57 -51
  25. package/lib/types/layouts/codex/codexcontrols.d.ts +6 -1
  26. package/lib/types/teletraan1.d.ts +47 -3
  27. package/lib/types/utils/architect.d.ts +66 -58
  28. package/lib/types/utils/artificer.d.ts +2 -0
  29. package/lib/types/utils/vinci.d.ts +2 -2
  30. package/lib/types/utils/voltron.d.ts +54 -0
  31. package/package.json +1 -1
package/lib/index.cjs CHANGED
@@ -11109,6 +11109,28 @@ var EyeOpenIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
11109
11109
  }));
11110
11110
  });
11111
11111
 
11112
+ var _excluded$27 = ["color"];
11113
+ var FaceIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
11114
+ var _ref$color = _ref.color,
11115
+ color = _ref$color === void 0 ? 'currentColor' : _ref$color,
11116
+ props = _objectWithoutPropertiesLoose$7(_ref, _excluded$27);
11117
+
11118
+ return React.createElement("svg", Object.assign({
11119
+ width: "15",
11120
+ height: "15",
11121
+ viewBox: "0 0 15 15",
11122
+ fill: "none",
11123
+ xmlns: "http://www.w3.org/2000/svg"
11124
+ }, props, {
11125
+ ref: forwardedRef
11126
+ }), React.createElement("path", {
11127
+ d: "M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82708 7.49972C1.82708 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82708 10.6327 1.82708 7.49972ZM5.03747 9.21395C4.87949 8.98746 4.56782 8.93193 4.34133 9.08991C4.11484 9.24789 4.05931 9.55956 4.21729 9.78605C4.93926 10.8211 6.14033 11.5 7.50004 11.5C8.85974 11.5 10.0608 10.8211 10.7828 9.78605C10.9408 9.55956 10.8852 9.24789 10.6587 9.08991C10.4323 8.93193 10.1206 8.98746 9.9626 9.21395C9.41963 9.99238 8.51907 10.5 7.50004 10.5C6.481 10.5 5.58044 9.99238 5.03747 9.21395ZM5.37503 6.84998C5.85828 6.84998 6.25003 6.45815 6.25003 5.97498C6.25003 5.4918 5.85828 5.09998 5.37503 5.09998C4.89179 5.09998 4.50003 5.4918 4.50003 5.97498C4.50003 6.45815 4.89179 6.84998 5.37503 6.84998ZM10.5 5.97498C10.5 6.45815 10.1083 6.84998 9.62503 6.84998C9.14179 6.84998 8.75003 6.45815 8.75003 5.97498C8.75003 5.4918 9.14179 5.09998 9.62503 5.09998C10.1083 5.09998 10.5 5.4918 10.5 5.97498Z",
11128
+ fill: color,
11129
+ fillRule: "evenodd",
11130
+ clipRule: "evenodd"
11131
+ }));
11132
+ });
11133
+
11112
11134
  var _excluded$29 = ["color"];
11113
11135
  var FileIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
11114
11136
  var _ref$color = _ref.color,
@@ -11153,6 +11175,26 @@ var FileTextIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
11153
11175
  }));
11154
11176
  });
11155
11177
 
11178
+ var _excluded$2e = ["color"];
11179
+ var FontFamilyIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
11180
+ var _ref$color = _ref.color,
11181
+ color = _ref$color === void 0 ? 'currentColor' : _ref$color,
11182
+ props = _objectWithoutPropertiesLoose$7(_ref, _excluded$2e);
11183
+
11184
+ return React.createElement("svg", Object.assign({
11185
+ width: "15",
11186
+ height: "15",
11187
+ viewBox: "0 0 15 15",
11188
+ fill: "none",
11189
+ xmlns: "http://www.w3.org/2000/svg"
11190
+ }, props, {
11191
+ ref: forwardedRef
11192
+ }), React.createElement("path", {
11193
+ d: "M2.5 4.5C2.5 3.09886 3.59886 2 5 2H12.499C12.7752 2 13 2.22386 13 2.5C13 2.77614 12.7761 3 12.5 3H8.69244L8.40509 3.85458C8.18869 4.49752 7.89401 5.37197 7.58091 6.29794C7.50259 6.52956 7.42308 6.76453 7.34332 7H8.5C8.77614 7 9 7.22386 9 7.5C9 7.77614 8.77614 8 8.5 8H7.00407C6.56724 9.28543 6.16435 10.4613 5.95799 11.0386C5.63627 11.9386 5.20712 12.4857 4.66741 12.7778C4.16335 13.0507 3.64154 13.0503 3.28378 13.05L3.25 13.05C2.94624 13.05 2.7 12.8037 2.7 12.5C2.7 12.1962 2.94624 11.95 3.25 11.95C3.64182 11.95 3.9035 11.9405 4.14374 11.8105C4.36443 11.691 4.65532 11.4148 4.92217 10.6683C5.10695 10.1514 5.45375 9.14134 5.8422 8H4.5C4.22386 8 4 7.77614 4 7.5C4 7.22386 4.22386 7 4.5 7H6.18187C6.30127 6.64785 6.42132 6.29323 6.53887 5.94559C6.85175 5.02025 7.14627 4.14631 7.36256 3.50368L7.53192 3H5C4.15114 3 3.5 3.65114 3.5 4.5C3.5 4.77614 3.27614 5 3 5C2.72386 5 2.5 4.77614 2.5 4.5Z",
11194
+ fill: color
11195
+ }));
11196
+ });
11197
+
11156
11198
  var _excluded$2h = ["color"];
11157
11199
  var FontSizeIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
11158
11200
  var _ref$color = _ref.color,
@@ -11630,6 +11672,28 @@ var LockOpen2Icon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef)
11630
11672
  }));
11631
11673
  });
11632
11674
 
11675
+ var _excluded$31 = ["color"];
11676
+ var LoopIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
11677
+ var _ref$color = _ref.color,
11678
+ color = _ref$color === void 0 ? 'currentColor' : _ref$color,
11679
+ props = _objectWithoutPropertiesLoose$7(_ref, _excluded$31);
11680
+
11681
+ return React.createElement("svg", Object.assign({
11682
+ width: "15",
11683
+ height: "15",
11684
+ viewBox: "0 0 15 15",
11685
+ fill: "none",
11686
+ xmlns: "http://www.w3.org/2000/svg"
11687
+ }, props, {
11688
+ ref: forwardedRef
11689
+ }), React.createElement("path", {
11690
+ d: "M3.35355 1.85355C3.54882 1.65829 3.54882 1.34171 3.35355 1.14645C3.15829 0.951184 2.84171 0.951184 2.64645 1.14645L0.646447 3.14645C0.451184 3.34171 0.451184 3.65829 0.646447 3.85355L2.64645 5.85355C2.84171 6.04882 3.15829 6.04882 3.35355 5.85355C3.54882 5.65829 3.54882 5.34171 3.35355 5.14645L2.20711 4H9.5C11.433 4 13 5.567 13 7.5C13 7.77614 13.2239 8 13.5 8C13.7761 8 14 7.77614 14 7.5C14 5.01472 11.9853 3 9.5 3H2.20711L3.35355 1.85355ZM2 7.5C2 7.22386 1.77614 7 1.5 7C1.22386 7 1 7.22386 1 7.5C1 9.98528 3.01472 12 5.5 12H12.7929L11.6464 13.1464C11.4512 13.3417 11.4512 13.6583 11.6464 13.8536C11.8417 14.0488 12.1583 14.0488 12.3536 13.8536L14.3536 11.8536C14.5488 11.6583 14.5488 11.3417 14.3536 11.1464L12.3536 9.14645C12.1583 8.95118 11.8417 8.95118 11.6464 9.14645C11.4512 9.34171 11.4512 9.65829 11.6464 9.85355L12.7929 11H5.5C3.567 11 2 9.433 2 7.5Z",
11691
+ fill: color,
11692
+ fillRule: "evenodd",
11693
+ clipRule: "evenodd"
11694
+ }));
11695
+ });
11696
+
11633
11697
  var _excluded$33 = ["color"];
11634
11698
  var MagnifyingGlassIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
11635
11699
  var _ref$color = _ref.color,
@@ -11696,6 +11760,28 @@ var MinusCircledIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRe
11696
11760
  }));
11697
11761
  });
11698
11762
 
11763
+ var _excluded$39 = ["color"];
11764
+ var MixIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
11765
+ var _ref$color = _ref.color,
11766
+ color = _ref$color === void 0 ? 'currentColor' : _ref$color,
11767
+ props = _objectWithoutPropertiesLoose$7(_ref, _excluded$39);
11768
+
11769
+ return React.createElement("svg", Object.assign({
11770
+ width: "15",
11771
+ height: "15",
11772
+ viewBox: "0 0 15 15",
11773
+ fill: "none",
11774
+ xmlns: "http://www.w3.org/2000/svg"
11775
+ }, props, {
11776
+ ref: forwardedRef
11777
+ }), React.createElement("path", {
11778
+ d: "M2.14921 3.99996C2.14921 2.97778 2.97784 2.14915 4.00002 2.14915C5.02219 2.14915 5.85083 2.97778 5.85083 3.99996C5.85083 5.02213 5.02219 5.85077 4.00002 5.85077C2.97784 5.85077 2.14921 5.02213 2.14921 3.99996ZM4.00002 1.24915C2.48079 1.24915 1.24921 2.48073 1.24921 3.99996C1.24921 5.51919 2.48079 6.75077 4.00002 6.75077C5.51925 6.75077 6.75083 5.51919 6.75083 3.99996C6.75083 2.48073 5.51925 1.24915 4.00002 1.24915ZM5.82034 11.0001L2.49998 12.8369V9.16331L5.82034 11.0001ZM2.63883 8.21159C2.17228 7.9535 1.59998 8.29093 1.59998 8.82411V13.1761C1.59998 13.7093 2.17228 14.0467 2.63883 13.7886L6.57235 11.6126C7.05389 11.3462 7.05389 10.654 6.57235 10.3876L2.63883 8.21159ZM8.30001 9.00003C8.30001 8.61343 8.61341 8.30003 9.00001 8.30003H13C13.3866 8.30003 13.7 8.61343 13.7 9.00003V13C13.7 13.3866 13.3866 13.7 13 13.7H9.00001C8.61341 13.7 8.30001 13.3866 8.30001 13V9.00003ZM9.20001 9.20003V12.8H12.8V9.20003H9.20001ZM13.4432 2.19311C13.6189 2.01737 13.6189 1.73245 13.4432 1.55671C13.2675 1.38098 12.9826 1.38098 12.8068 1.55671L11 3.36353L9.19321 1.55674C9.01748 1.381 8.73255 1.381 8.55682 1.55674C8.38108 1.73247 8.38108 2.0174 8.55682 2.19313L10.3636 3.99992L8.55682 5.80671C8.38108 5.98245 8.38108 6.26737 8.55682 6.44311C8.73255 6.61885 9.01748 6.61885 9.19321 6.44311L11 4.63632L12.8068 6.44314C12.9826 6.61887 13.2675 6.61887 13.4432 6.44314C13.6189 6.2674 13.6189 5.98247 13.4432 5.80674L11.6364 3.99992L13.4432 2.19311Z",
11779
+ fill: color,
11780
+ fillRule: "evenodd",
11781
+ clipRule: "evenodd"
11782
+ }));
11783
+ });
11784
+
11699
11785
  var _excluded$3a = ["color"];
11700
11786
  var MixerHorizontalIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
11701
11787
  var _ref$color = _ref.color,
@@ -12070,6 +12156,28 @@ var Share1Icon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
12070
12156
  }));
12071
12157
  });
12072
12158
 
12159
+ var _excluded$3X = ["color"];
12160
+ var ShuffleIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
12161
+ var _ref$color = _ref.color,
12162
+ color = _ref$color === void 0 ? 'currentColor' : _ref$color,
12163
+ props = _objectWithoutPropertiesLoose$7(_ref, _excluded$3X);
12164
+
12165
+ return React.createElement("svg", Object.assign({
12166
+ width: "15",
12167
+ height: "15",
12168
+ viewBox: "0 0 15 15",
12169
+ fill: "none",
12170
+ xmlns: "http://www.w3.org/2000/svg"
12171
+ }, props, {
12172
+ ref: forwardedRef
12173
+ }), React.createElement("path", {
12174
+ d: "M12.3536 1.14645C12.1583 0.951184 11.8417 0.951184 11.6464 1.14645C11.4512 1.34171 11.4512 1.65829 11.6464 1.85355L12.7929 3H12C10.7037 3 9.71111 3.58423 8.87248 4.38931C8.20065 5.03427 7.59349 5.85684 6.99461 6.6682C6.86287 6.84668 6.73154 7.02462 6.6 7.2C5.10874 9.18835 3.49037 11 0.5 11C0.223858 11 0 11.2239 0 11.5C0 11.7761 0.223858 12 0.5 12C4.00963 12 5.89126 9.81165 7.4 7.8C7.54367 7.60845 7.6832 7.41962 7.81996 7.23454L7.82005 7.23443L7.82006 7.23441C8.41674 6.42695 8.96069 5.69085 9.56502 5.11069C10.2889 4.41577 11.0463 4 12 4H12.7929L11.6464 5.14645C11.4512 5.34171 11.4512 5.65829 11.6464 5.85355C11.8417 6.04882 12.1583 6.04882 12.3536 5.85355L14.3536 3.85355C14.5488 3.65829 14.5488 3.34171 14.3536 3.14645L12.3536 1.14645ZM0.5 3C3.35278 3 5.12992 4.44588 6.50548 6.06746L6.3762 6.24266C6.2483 6.4161 6.12293 6.58609 6 6.75C5.96397 6.79804 5.92798 6.84581 5.892 6.89331C4.57348 5.29306 3.02637 4 0.5 4C0.223858 4 0 3.77614 0 3.5C0 3.22386 0.223858 3 0.5 3ZM8.87248 10.6107C8.37284 10.131 7.90897 9.55314 7.45767 8.95468C7.64688 8.71693 7.82704 8.48061 8 8.25L8.08987 8.12987C8.58412 8.79402 9.05288 9.39766 9.56502 9.88931C10.2889 10.5842 11.0463 11 12 11H12.7929L11.6464 9.85355C11.4512 9.65829 11.4512 9.34171 11.6464 9.14645C11.8417 8.95118 12.1583 8.95118 12.3536 9.14645L14.3536 11.1464C14.5488 11.3417 14.5488 11.6583 14.3536 11.8536L12.3536 13.8536C12.1583 14.0488 11.8417 14.0488 11.6464 13.8536C11.4512 13.6583 11.4512 13.3417 11.6464 13.1464L12.7929 12H12C10.7037 12 9.71111 11.4158 8.87248 10.6107Z",
12175
+ fill: color,
12176
+ fillRule: "evenodd",
12177
+ clipRule: "evenodd"
12178
+ }));
12179
+ });
12180
+
12073
12181
  var _excluded$3$ = ["color"];
12074
12182
  var SliderIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
12075
12183
  var _ref$color = _ref.color,
@@ -12354,6 +12462,28 @@ var UploadIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
12354
12462
  }));
12355
12463
  });
12356
12464
 
12465
+ var _excluded$4S = ["color"];
12466
+ var VideoIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
12467
+ var _ref$color = _ref.color,
12468
+ color = _ref$color === void 0 ? 'currentColor' : _ref$color,
12469
+ props = _objectWithoutPropertiesLoose$7(_ref, _excluded$4S);
12470
+
12471
+ return React.createElement("svg", Object.assign({
12472
+ width: "15",
12473
+ height: "15",
12474
+ viewBox: "0 0 15 15",
12475
+ fill: "none",
12476
+ xmlns: "http://www.w3.org/2000/svg"
12477
+ }, props, {
12478
+ ref: forwardedRef
12479
+ }), React.createElement("path", {
12480
+ d: "M4.76447 3.12199C5.63151 3.04859 6.56082 3 7.5 3C8.43918 3 9.36849 3.04859 10.2355 3.12199C11.2796 3.21037 11.9553 3.27008 12.472 3.39203C12.9425 3.50304 13.2048 3.64976 13.4306 3.88086C13.4553 3.90618 13.4902 3.94414 13.5133 3.97092C13.7126 4.20149 13.8435 4.4887 13.918 5.03283C13.9978 5.6156 14 6.37644 14 7.52493C14 8.66026 13.9978 9.41019 13.9181 9.98538C13.8439 10.5206 13.7137 10.8061 13.5125 11.0387C13.4896 11.0651 13.4541 11.1038 13.4296 11.1287C13.2009 11.3625 12.9406 11.5076 12.4818 11.6164C11.9752 11.7365 11.3143 11.7942 10.2878 11.8797C9.41948 11.9521 8.47566 12 7.5 12C6.52434 12 5.58052 11.9521 4.7122 11.8797C3.68572 11.7942 3.02477 11.7365 2.51816 11.6164C2.05936 11.5076 1.7991 11.3625 1.57037 11.1287C1.54593 11.1038 1.51035 11.0651 1.48748 11.0387C1.28628 10.8061 1.15612 10.5206 1.08193 9.98538C1.00221 9.41019 1 8.66026 1 7.52493C1 6.37644 1.00216 5.6156 1.082 5.03283C1.15654 4.4887 1.28744 4.20149 1.48666 3.97092C1.5098 3.94414 1.54468 3.90618 1.56942 3.88086C1.7952 3.64976 2.05752 3.50304 2.52796 3.39203C3.04473 3.27008 3.7204 3.21037 4.76447 3.12199ZM0 7.52493C0 5.28296 0 4.16198 0.729985 3.31713C0.766457 3.27491 0.815139 3.22194 0.854123 3.18204C1.63439 2.38339 2.64963 2.29744 4.68012 2.12555C5.56923 2.05028 6.52724 2 7.5 2C8.47276 2 9.43077 2.05028 10.3199 2.12555C12.3504 2.29744 13.3656 2.38339 14.1459 3.18204C14.1849 3.22194 14.2335 3.27491 14.27 3.31713C15 4.16198 15 5.28296 15 7.52493C15 9.74012 15 10.8477 14.2688 11.6929C14.2326 11.7348 14.1832 11.7885 14.1444 11.8281C13.3629 12.6269 12.3655 12.71 10.3709 12.8763C9.47971 12.9505 8.50782 13 7.5 13C6.49218 13 5.52028 12.9505 4.62915 12.8763C2.63446 12.71 1.63712 12.6269 0.855558 11.8281C0.816844 11.7885 0.767442 11.7348 0.731221 11.6929C0 10.8477 0 9.74012 0 7.52493ZM5.25 5.38264C5.25 5.20225 5.43522 5.08124 5.60041 5.15369L10.428 7.27105C10.6274 7.35853 10.6274 7.64147 10.428 7.72895L5.60041 9.84631C5.43522 9.91876 5.25 9.79775 5.25 9.61736V5.38264Z",
12481
+ fill: color,
12482
+ fillRule: "evenodd",
12483
+ clipRule: "evenodd"
12484
+ }));
12485
+ });
12486
+
12357
12487
  var _excluded$4Y = ["color"];
12358
12488
  var ZoomInIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
12359
12489
  var _ref$color = _ref.color,
@@ -12507,6 +12637,7 @@ const iconMap = {
12507
12637
  zoomout: ZoomOutIcon,
12508
12638
  mixerhorizontal: MixerHorizontalIcon,
12509
12639
  mixervertical: MixerVerticalIcon,
12640
+ mix: MixIcon,
12510
12641
  archive: ArchiveIcon,
12511
12642
  crumpledpaper: CrumpledPaperIcon,
12512
12643
  stopwatch: StopwatchIcon,
@@ -12518,7 +12649,12 @@ const iconMap = {
12518
12649
  mobile: MobileIcon,
12519
12650
  enterfullscreen: EnterFullScreenIcon,
12520
12651
  exitfullscreen: ExitFullScreenIcon,
12521
- copy: CopyIcon
12652
+ copy: CopyIcon,
12653
+ face: FaceIcon,
12654
+ fontfamily: FontFamilyIcon,
12655
+ video: VideoIcon,
12656
+ shuffle: ShuffleIcon,
12657
+ loop: LoopIcon
12522
12658
  };
12523
12659
  const Icon = (_a) => {
12524
12660
  var { name } = _a, props = __rest$1(_a, ["name"]);
@@ -12596,22 +12732,30 @@ const getStyles$1 = (inputtype, shape, hasError) => {
12596
12732
  return Object.assign(Object.assign(Object.assign({}, base), { borderRadius }), designStyles);
12597
12733
  };
12598
12734
  const AvatarInput = (_a) => {
12599
- var { inputtype = 'avatar-outline', alias, readOnly, width, inputLabel, shape = 'circle', size = 120, newRow, isHinted, hintText, hintUrl, errorText, style, className, accept = 'image/*' } = _a; __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "inputLabel", "shape", "size", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "style", "className", "accept"]);
12600
- const [field, meta, helpers] = formik.useField(alias);
12601
- const { setTouched } = formik.useFormikContext();
12735
+ var { inputtype = 'avatar-outline', alias, readOnly, width, inputLabel, shape = 'circle', size = 120, newRow, isHinted, hintText, hintUrl, errorText, style, className, accept = 'image/*', formikContext } = _a; __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "inputLabel", "shape", "size", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "style", "className", "accept", "formikContext"]);
12736
+ const defaultFormikContext = formik.useFormikContext();
12737
+ const activeContext = formikContext || defaultFormikContext;
12738
+ if (!activeContext) {
12739
+ console.error(`AvatarInput '${alias}' must be used within a Formik provider or receive a formikContext prop.`);
12740
+ return null;
12741
+ }
12742
+ const { values, touched, errors, setFieldValue, setFieldTouched } = activeContext;
12743
+ const fieldValue = formik.getIn(values, alias);
12744
+ const fieldTouched = formik.getIn(touched, alias);
12745
+ const fieldError = formik.getIn(errors, alias);
12602
12746
  const inputRef = React.useRef(null);
12603
12747
  const [previewUrl, setPreviewUrl] = React.useState(null);
12604
12748
  const inputId = `${alias}FormInput` || crypto.randomUUID();
12605
12749
  const errorId = `${alias}-error`;
12606
- const hasError = meta.touched && meta.error;
12750
+ const hasError = Boolean(fieldTouched && fieldError);
12607
12751
  React.useEffect(() => {
12608
12752
  let objectUrl = null;
12609
- if (field.value instanceof File) {
12610
- objectUrl = URL.createObjectURL(field.value);
12753
+ if (fieldValue instanceof File) {
12754
+ objectUrl = URL.createObjectURL(fieldValue);
12611
12755
  setPreviewUrl(objectUrl);
12612
12756
  }
12613
- else if (typeof field.value === 'string' && field.value) {
12614
- setPreviewUrl(field.value);
12757
+ else if (typeof fieldValue === 'string' && fieldValue) {
12758
+ setPreviewUrl(fieldValue);
12615
12759
  }
12616
12760
  else {
12617
12761
  setPreviewUrl(null);
@@ -12621,20 +12765,20 @@ const AvatarInput = (_a) => {
12621
12765
  URL.revokeObjectURL(objectUrl);
12622
12766
  }
12623
12767
  };
12624
- }, [field.value]);
12768
+ }, [fieldValue]);
12625
12769
  const handleFileChange = (e) => {
12626
12770
  var _a;
12627
12771
  const file = (_a = e.currentTarget.files) === null || _a === void 0 ? void 0 : _a[0];
12628
12772
  if (file) {
12629
- helpers.setValue(file);
12773
+ setFieldValue(alias, file);
12630
12774
  }
12631
- setTouched({ [alias]: true });
12775
+ setFieldTouched(alias, true, false);
12632
12776
  if (inputRef.current)
12633
12777
  inputRef.current.value = '';
12634
12778
  };
12635
12779
  const handleRemove = (e) => {
12636
12780
  e.stopPropagation();
12637
- helpers.setValue(null);
12781
+ setFieldValue(alias, null);
12638
12782
  };
12639
12783
  const containerStyles = getStyles$1(inputtype, shape, !!hasError);
12640
12784
  const iconColor = inputtype === 'avatar-neumorphic' ? '#555' : 'var(--gray-10)';
@@ -12748,7 +12892,7 @@ const InputOptionsPlaceholder = {
12748
12892
  tag: "",
12749
12893
  score: 0,
12750
12894
  note: "",
12751
- optionurl: ""
12895
+ optionUrl: ""
12752
12896
  };
12753
12897
 
12754
12898
  const ButtonInput = (_a) => {
@@ -12846,11 +12990,19 @@ const ButtonInput = (_a) => {
12846
12990
  };
12847
12991
 
12848
12992
  const CheckboxGroupInput = (_a) => {
12849
- var { inputtype = 'checkbox-outline', alias, readOnly, width, inputLabel, style, inputOptions, newRow, isHinted, hintText, hintUrl, errorText, direction = 'row', columns, className } = _a; __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "inputLabel", "style", "inputOptions", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "direction", "columns", "className"]);
12850
- const { setFieldValue, setFieldTouched } = formik.useFormikContext();
12851
- const [field, meta] = formik.useField(alias);
12852
- const currentValues = (Array.isArray(field.value) ? field.value : []);
12853
- const hasError = Boolean(meta.touched && meta.error);
12993
+ var { inputtype = 'checkbox-outline', alias, readOnly, width, inputLabel, style, inputOptions, newRow, isHinted, hintText, hintUrl, errorText, direction = 'row', columns, className, formikContext } = _a; __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "inputLabel", "style", "inputOptions", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "direction", "columns", "className", "formikContext"]);
12994
+ const defaultFormikContext = formik.useFormikContext();
12995
+ const activeContext = formikContext || defaultFormikContext;
12996
+ if (!activeContext) {
12997
+ console.error(`CheckboxGroupInput '${alias}' must be used within a Formik provider or receive a formikContext prop.`);
12998
+ return null;
12999
+ }
13000
+ const { values, touched, errors, setFieldValue, setFieldTouched } = activeContext;
13001
+ const fieldValue = formik.getIn(values, alias);
13002
+ const fieldTouched = formik.getIn(touched, alias);
13003
+ const fieldError = formik.getIn(errors, alias);
13004
+ const currentValues = (Array.isArray(fieldValue) ? fieldValue : []);
13005
+ const hasError = Boolean(fieldTouched && fieldError);
12854
13006
  const containerRef = React.useRef(null);
12855
13007
  const [neuVars, setNeuVars] = React.useState({});
12856
13008
  const inputId = `${alias}FormInput` || crypto.randomUUID();
@@ -12900,13 +13052,13 @@ const CheckboxGroupInput = (_a) => {
12900
13052
  ` } })),
12901
13053
  React.createElement(o$6, { columns: columns || (direction === 'row' ? 'repeat(auto-fit, minmax(100px, 1fr))' : '1'), gap: "3", style: neuVars }, inputOptions.map((inputoption) => {
12902
13054
  const isChecked = currentValues.some(val => String(val) === String(inputoption.optionvalue));
12903
- return (React.createElement(p$d, { as: "label", key: inputoption.optionvalue || crypto.randomUUID(), size: "2", style: {
13055
+ return (React.createElement(p$d, { as: "label", key: String(inputoption.optionvalue) || crypto.randomUUID(), size: "2", style: {
12904
13056
  display: 'flex',
12905
13057
  alignItems: 'center',
12906
13058
  gap: '8px',
12907
13059
  cursor: 'pointer'
12908
13060
  } },
12909
- React.createElement(c$2, { name: alias, id: `${alias}FormInput${inputoption.optionid}`, "aria-describedby": `${alias}InputLabel${inputoption.optionid}`, disabled: readOnly, value: inputoption.optionvalue, checked: isChecked, onCheckedChange: (checked) => handleCheckedChange(checked, inputoption.optionvalue), variant: inputtype === 'checkbox-outline' ? 'soft' : 'surface', className: inputtype === 'checkbox-neumorphic' ? 'neu-checkbox' : '', style: Object.assign({}, (inputtype === 'checkbox-outline' ? {
13061
+ React.createElement(c$2, { name: alias, id: `${alias}FormInput${inputoption.optionid}`, "aria-describedby": `${alias}InputLabel${inputoption.optionid}`, disabled: readOnly, value: String(inputoption.optionvalue), checked: isChecked, onCheckedChange: (checked) => handleCheckedChange(checked, String(inputoption.optionvalue)), variant: inputtype === 'checkbox-outline' ? 'soft' : 'surface', className: inputtype === 'checkbox-neumorphic' ? 'neu-checkbox' : '', style: Object.assign({}, (inputtype === 'checkbox-outline' ? {
12910
13062
  border: isChecked ? '2px solid var(--accent-9)' : '2px solid var(--gray-8)',
12911
13063
  backgroundColor: 'transparent'
12912
13064
  } : {})) }),
@@ -12953,33 +13105,41 @@ const getDesignStyles = (inputtype, isOpen) => {
12953
13105
  return Object.assign(Object.assign({}, base), { backgroundColor: 'transparent', border: '1px solid var(--gray-6)', borderLeft: isOpen ? '4px solid var(--accent-9)' : '1px solid var(--gray-6)' });
12954
13106
  };
12955
13107
  const ConditionalTrigger = (_a) => {
12956
- var { alias, readOnly, width, placeholder = '', inputLabel, inputtype = 'conditionaltoggle-outline', triggerValue = true, inputOptions = [], children, newRow, isHinted, hintText, hintUrl, errorText, style, className } = _a; __rest$1(_a, ["alias", "readOnly", "width", "placeholder", "inputLabel", "inputtype", "triggerValue", "inputOptions", "children", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "style", "className"]);
12957
- const [field, meta, helpers] = formik.useField(alias);
12958
- const { setTouched } = formik.useFormikContext();
13108
+ var { alias, readOnly, width, placeholder = '', inputLabel, inputtype = 'conditionaltoggle-outline', triggerValue = true, inputOptions = [], children, newRow, isHinted, hintText, hintUrl, errorText, style, className, formikContext } = _a; __rest$1(_a, ["alias", "readOnly", "width", "placeholder", "inputLabel", "inputtype", "triggerValue", "inputOptions", "children", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "style", "className", "formikContext"]);
13109
+ const defaultFormikContext = formik.useFormikContext();
13110
+ const activeContext = formikContext || defaultFormikContext;
13111
+ if (!activeContext) {
13112
+ console.error(`ConditionalTrigger '${alias}' must be used within a Formik provider or receive a formikContext prop.`);
13113
+ return null;
13114
+ }
13115
+ const { values, touched, errors, setFieldValue, setFieldTouched } = activeContext;
13116
+ const fieldValue = formik.getIn(values, alias);
13117
+ const fieldTouched = formik.getIn(touched, alias);
13118
+ const fieldError = formik.getIn(errors, alias);
12959
13119
  const inputId = `${alias}FormInput` || crypto.randomUUID();
12960
13120
  const errorId = `${alias}-error`;
12961
13121
  // Trigger (Equality) Logic :: If current Field value === trigger value
12962
- const isOpen = field.value === triggerValue;
13122
+ const isOpen = fieldValue === triggerValue;
12963
13123
  const handleChange = (val) => {
12964
- helpers.setValue(val);
12965
- setTouched({ [alias]: true });
13124
+ setFieldValue(alias, val);
13125
+ setFieldTouched(alias, true, false);
12966
13126
  };
12967
13127
  const isNeumorphic = inputtype.includes('neumorphic');
12968
- const hasError = meta.touched && meta.error;
13128
+ const hasError = Boolean(fieldTouched && fieldError);
12969
13129
  const renderTrigger = () => {
12970
13130
  switch (true) {
12971
13131
  case inputtype.includes('conditionalcheckbox'):
12972
13132
  return (React.createElement(p$5, { align: "center", gap: "2", style: { cursor: 'pointer' } },
12973
- React.createElement(c$2, { name: alias, disabled: readOnly, checked: field.value === true, onCheckedChange: (checked) => handleChange(!!checked), id: inputId })));
13133
+ React.createElement(c$2, { name: alias, disabled: readOnly, checked: fieldValue === true, onCheckedChange: (checked) => handleChange(!!checked), id: inputId })));
12974
13134
  case inputtype.includes('conditionalselect'):
12975
13135
  return (React.createElement(p$5, { direction: "column", gap: "1", style: { width: '100%' } },
12976
- React.createElement(C$1, { name: alias, disabled: readOnly, value: field.value, defaultValue: placeholder || "", onValueChange: handleChange },
13136
+ React.createElement(C$1, { name: alias, disabled: readOnly, value: fieldValue, defaultValue: placeholder || "", onValueChange: handleChange },
12977
13137
  React.createElement(u$1, { id: inputId, variant: isNeumorphic ? 'soft' : 'surface', style: { width: '100%' } }),
12978
- React.createElement(g, null, inputOptions.map((inputoption) => (React.createElement(v, { key: inputoption.optionvalue || crypto.randomUUID(), value: inputoption.optionvalue }, inputoption.text)))))));
13138
+ React.createElement(g, null, inputOptions.map((inputoption) => (React.createElement(v, { key: String(inputoption.optionvalue) || crypto.randomUUID(), value: String(inputoption.optionvalue) }, inputoption.text)))))));
12979
13139
  case inputtype.includes('conditionaltoggle'):
12980
13140
  default:
12981
13141
  return (React.createElement(p$5, { justify: "between", align: "center", style: { width: '100%' } },
12982
- React.createElement(i$1, { id: inputId, name: alias, disabled: readOnly, checked: field.value === true, onCheckedChange: (checked) => handleChange(!!checked), variant: isNeumorphic ? 'soft' : 'surface' })));
13142
+ React.createElement(i$1, { id: inputId, name: alias, disabled: readOnly, checked: fieldValue === true, onCheckedChange: (checked) => handleChange(!!checked), variant: isNeumorphic ? 'soft' : 'surface' })));
12983
13143
  }
12984
13144
  };
12985
13145
  const containerStyle = getDesignStyles(inputtype, isOpen);
@@ -13002,7 +13162,7 @@ const ConditionalTrigger = (_a) => {
13002
13162
  React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
13003
13163
  hasError ?
13004
13164
  React.createElement(React.Fragment, null,
13005
- React.createElement("p", { id: errorId, className: 'core-input-label-error' }, typeof meta.error === 'string' ? React.createElement(React.Fragment, null, errorText || "Required field")
13165
+ React.createElement("p", { id: errorId, className: 'core-input-label-error' }, typeof fieldError === 'string' ? React.createElement(React.Fragment, null, errorText || "Required field")
13006
13166
  : 'Invalid file selection')) : null))));
13007
13167
  };
13008
13168
 
@@ -26637,11 +26797,19 @@ var PRESELECT_CHANGE_VIA_NAVIGATE = "navigate";
26637
26797
  var css_248z = "@charset \"UTF-8\";.react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view--down-arrow,.react-datepicker__navigation-icon:before,.react-datepicker__year-read-view--down-arrow{border-color:#ccc;border-style:solid;border-width:3px 3px 0 0;content:\"\";display:block;height:9px;position:absolute;top:6px;width:9px}.react-datepicker__sr-only{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.react-datepicker-wrapper{border:0;display:inline-block;padding:0}.react-datepicker{background-color:#fff;border:1px solid #aeaeae;border-radius:.3rem;color:#000;display:inline-block;font-family:Helvetica Neue,helvetica,arial,sans-serif;font-size:.8rem;line-height:normal;position:relative}.react-datepicker--time-only .react-datepicker__time-container{border-left:0}.react-datepicker--time-only .react-datepicker__time,.react-datepicker--time-only .react-datepicker__time-box{border-bottom-left-radius:.375em;border-bottom-right-radius:.375em}.react-datepicker-popper{line-height:0;z-index:1}.react-datepicker-popper .react-datepicker__triangle{stroke:#aeaeae}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle{fill:#f0f0f0;color:#f0f0f0}.react-datepicker-popper--header-bottom[data-placement^=bottom] .react-datepicker__triangle,.react-datepicker-popper--header-middle[data-placement^=bottom] .react-datepicker__triangle,.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle{fill:#fff;color:#fff}.react-datepicker-popper--header-bottom[data-placement^=top] .react-datepicker__triangle{fill:#f0f0f0;color:#f0f0f0}.react-datepicker__header{background-color:#f0f0f0;border-bottom:1px solid #aeaeae;border-top-left-radius:.3rem;padding:8px 0;position:relative;text-align:center}.react-datepicker__header--time{padding-bottom:8px;padding-left:5px;padding-right:5px}.react-datepicker__header--time:not(.react-datepicker__header--time--only){border-top-left-radius:0}.react-datepicker__header:not(.react-datepicker__header--has-time-select,.react-datepicker__header--middle,.react-datepicker__header--bottom){border-top-right-radius:.3rem}.react-datepicker__header--middle{border-radius:0;border-top:1px solid #aeaeae;margin-top:4px}.react-datepicker__header--bottom{border-bottom:none;border-radius:0 0 .3rem .3rem;border-top:1px solid #aeaeae}.react-datepicker__header-wrapper{position:relative}.react-datepicker__header-wrapper .react-datepicker__navigation--next--with-time:not(.react-datepicker__navigation--next--with-today-button){right:2px}.react-datepicker__month-dropdown-container--scroll,.react-datepicker__month-dropdown-container--select,.react-datepicker__month-year-dropdown-container--scroll,.react-datepicker__month-year-dropdown-container--select,.react-datepicker__year-dropdown-container--scroll,.react-datepicker__year-dropdown-container--select{display:inline-block;margin:0 15px}.react-datepicker__month-select,.react-datepicker__month-year-select,.react-datepicker__year-select{background-color:transparent;border:1px solid #aeaeae;border-radius:.3rem;color:inherit;cursor:pointer;font-family:inherit;font-size:inherit;margin-top:5px;padding:2px 5px}.react-datepicker__month-select:focus-visible,.react-datepicker__month-year-select:focus-visible,.react-datepicker__year-select:focus-visible{outline:1px auto}.react-datepicker-time__header,.react-datepicker-year-header,.react-datepicker__current-month{color:#000;font-size:.944rem;font-weight:700;margin-top:0}h2.react-datepicker__current-month{margin:0;padding:0}.react-datepicker-time__header{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.react-datepicker__navigation{align-items:center;background:none;border:none;cursor:pointer;display:flex;height:32px;justify-content:center;overflow:hidden;padding:0;position:absolute;text-align:center;text-indent:-999em;top:2px;width:32px;z-index:1}.react-datepicker__navigation--previous{left:2px}.react-datepicker__navigation--next{right:2px}.react-datepicker__navigation--next--with-time:not(.react-datepicker__navigation--next--with-today-button){right:85px}.react-datepicker__navigation--years{display:block;margin-left:auto;margin-right:auto;position:relative;top:0}.react-datepicker__navigation--years-previous{top:4px}.react-datepicker__navigation--years-upcoming{top:-4px}.react-datepicker__navigation:hover :before{border-color:#a6a6a6}.react-datepicker__navigation-icon{font-size:20px;position:relative;top:-1px;width:0}.react-datepicker__navigation-icon--next{left:-2px}.react-datepicker__navigation-icon--next:before{left:-7px;transform:rotate(45deg)}.react-datepicker__navigation-icon--previous{right:-2px}.react-datepicker__navigation-icon--previous:before{right:-7px;transform:rotate(225deg)}.react-datepicker__month-container{float:left}.react-datepicker__year{margin:.5em;text-align:center}.react-datepicker__year-wrapper{display:flex;flex-wrap:wrap;max-width:180px}.react-datepicker__year .react-datepicker__year-text{display:inline-block;margin:2px;width:5em}.react-datepicker__month{margin:.5em;text-align:center}.react-datepicker__month .react-datepicker__month-text,.react-datepicker__month .react-datepicker__quarter-text{display:inline-block;margin:2px;width:5em}.react-datepicker__input-time-container{clear:both;float:left;margin:5px 0 10px 15px;text-align:left;width:100%}.react-datepicker__input-time-container .react-datepicker-time__caption,.react-datepicker__input-time-container .react-datepicker-time__input-container{display:inline-block}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input{display:inline-block;margin-left:10px}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input{width:auto}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-inner-spin-button,.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]{-moz-appearance:textfield}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__delimiter{display:inline-block;margin-left:5px}.react-datepicker__time-container{border-left:1px solid #aeaeae;float:right;width:85px}.react-datepicker__time-container--with-today-button{border:1px solid #aeaeae;border-radius:.375em;display:inline;position:absolute;right:-87px;top:0}.react-datepicker__time-container .react-datepicker__time{background:#fff;border-bottom-right-radius:.375em;position:relative}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box{border-bottom-right-radius:.375em;margin:0 auto;overflow-x:hidden;text-align:center;width:85px}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list{box-sizing:content-box;height:calc(195px + 1.0625em);list-style:none;margin:0;overflow-y:scroll;padding-left:0;padding-right:0;width:100%}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item{height:30px;padding:5px 10px;white-space:nowrap}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item:hover{background-color:#f0f0f0;cursor:pointer}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected{background-color:#216ba5;color:#fff;font-weight:700}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected:hover{background-color:#216ba5}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled{color:#ccc}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled:hover{background-color:transparent;cursor:default}.react-datepicker__week-number{color:#ccc;display:inline-block;line-height:2.125em;margin:.208em;text-align:center;width:2.125em}.react-datepicker__week-number.react-datepicker__week-number--clickable{cursor:pointer}.react-datepicker__week-number.react-datepicker__week-number--clickable:not(.react-datepicker__week-number--selected):hover{background-color:#f0f0f0;border-radius:.3rem}.react-datepicker__week-number--selected{background-color:#216ba5;border-radius:.3rem;color:#fff}.react-datepicker__week-number--selected:hover{background-color:#1d5d90}.react-datepicker__day-names{margin-bottom:-8px;text-align:center;white-space:nowrap}.react-datepicker__week{white-space:nowrap}.react-datepicker__day,.react-datepicker__day-name,.react-datepicker__time-name{color:#000;display:inline-block;line-height:2.125em;margin:.208em;text-align:center;width:2.125em}.react-datepicker__day--disabled,.react-datepicker__day-name--disabled,.react-datepicker__time-name--disabled{color:#ccc;cursor:default}.react-datepicker__day,.react-datepicker__month-text,.react-datepicker__quarter-text,.react-datepicker__year-text{cursor:pointer}.react-datepicker__day:not([aria-disabled=true]):hover,.react-datepicker__month-text:not([aria-disabled=true]):hover,.react-datepicker__quarter-text:not([aria-disabled=true]):hover,.react-datepicker__year-text:not([aria-disabled=true]):hover{background-color:#f0f0f0;border-radius:.3rem}.react-datepicker__day--today,.react-datepicker__month-text--today,.react-datepicker__quarter-text--today,.react-datepicker__year-text--today{font-weight:700}.react-datepicker__day--highlighted,.react-datepicker__month-text--highlighted,.react-datepicker__quarter-text--highlighted,.react-datepicker__year-text--highlighted{background-color:#3dcc4a;border-radius:.3rem;color:#fff}.react-datepicker__day--highlighted:not([aria-disabled=true]):hover,.react-datepicker__month-text--highlighted:not([aria-disabled=true]):hover,.react-datepicker__quarter-text--highlighted:not([aria-disabled=true]):hover,.react-datepicker__year-text--highlighted:not([aria-disabled=true]):hover{background-color:#32be3f}.react-datepicker__day--highlighted-custom-1,.react-datepicker__month-text--highlighted-custom-1,.react-datepicker__quarter-text--highlighted-custom-1,.react-datepicker__year-text--highlighted-custom-1{color:#f0f}.react-datepicker__day--highlighted-custom-2,.react-datepicker__month-text--highlighted-custom-2,.react-datepicker__quarter-text--highlighted-custom-2,.react-datepicker__year-text--highlighted-custom-2{color:green}.react-datepicker__day--holidays,.react-datepicker__month-text--holidays,.react-datepicker__quarter-text--holidays,.react-datepicker__year-text--holidays{background-color:#ff6803;border-radius:.3rem;color:#fff;position:relative}.react-datepicker__day--holidays .overlay,.react-datepicker__month-text--holidays .overlay,.react-datepicker__quarter-text--holidays .overlay,.react-datepicker__year-text--holidays .overlay{background-color:#333;border-radius:4px;bottom:100%;color:#fff;left:50%;opacity:0;padding:4px;position:absolute;transform:translateX(-50%);transition:visibility 0s,opacity .3s ease-in-out;visibility:hidden;white-space:nowrap}.react-datepicker__day--holidays:not([aria-disabled=true]):hover,.react-datepicker__month-text--holidays:not([aria-disabled=true]):hover,.react-datepicker__quarter-text--holidays:not([aria-disabled=true]):hover,.react-datepicker__year-text--holidays:not([aria-disabled=true]):hover{background-color:#cf5300}.react-datepicker__day--holidays:hover .overlay,.react-datepicker__month-text--holidays:hover .overlay,.react-datepicker__quarter-text--holidays:hover .overlay,.react-datepicker__year-text--holidays:hover .overlay{opacity:1;visibility:visible}.react-datepicker__day--in-range,.react-datepicker__day--in-selecting-range,.react-datepicker__day--selected,.react-datepicker__month-text--in-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__month-text--selected,.react-datepicker__quarter-text--in-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__quarter-text--selected,.react-datepicker__year-text--in-range,.react-datepicker__year-text--in-selecting-range,.react-datepicker__year-text--selected{background-color:#216ba5;border-radius:.3rem;color:#fff}.react-datepicker__day--in-range:not([aria-disabled=true]):hover,.react-datepicker__day--in-selecting-range:not([aria-disabled=true]):hover,.react-datepicker__day--selected:not([aria-disabled=true]):hover,.react-datepicker__month-text--in-range:not([aria-disabled=true]):hover,.react-datepicker__month-text--in-selecting-range:not([aria-disabled=true]):hover,.react-datepicker__month-text--selected:not([aria-disabled=true]):hover,.react-datepicker__quarter-text--in-range:not([aria-disabled=true]):hover,.react-datepicker__quarter-text--in-selecting-range:not([aria-disabled=true]):hover,.react-datepicker__quarter-text--selected:not([aria-disabled=true]):hover,.react-datepicker__year-text--in-range:not([aria-disabled=true]):hover,.react-datepicker__year-text--in-selecting-range:not([aria-disabled=true]):hover,.react-datepicker__year-text--selected:not([aria-disabled=true]):hover{background-color:#1d5d90}.react-datepicker__day--keyboard-selected,.react-datepicker__month-text--keyboard-selected,.react-datepicker__quarter-text--keyboard-selected,.react-datepicker__year-text--keyboard-selected{background-color:#bad9f1;border-radius:.3rem;color:#000}.react-datepicker__day--keyboard-selected:not([aria-disabled=true]):hover,.react-datepicker__month-text--keyboard-selected:not([aria-disabled=true]):hover,.react-datepicker__quarter-text--keyboard-selected:not([aria-disabled=true]):hover,.react-datepicker__year-text--keyboard-selected:not([aria-disabled=true]):hover{background-color:#1d5d90;color:#fff}.react-datepicker__day--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__month-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__quarter-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__year-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range){background-color:rgba(33,107,165,.5)}.react-datepicker__month--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range){background-color:#f0f0f0;color:#000}.react-datepicker__day--disabled,.react-datepicker__month-text--disabled,.react-datepicker__quarter-text--disabled,.react-datepicker__year-text--disabled{color:#ccc;cursor:default}.react-datepicker__day--disabled .overlay,.react-datepicker__month-text--disabled .overlay,.react-datepicker__quarter-text--disabled .overlay,.react-datepicker__year-text--disabled .overlay{background-color:#333;border-radius:4px;bottom:70%;color:#fff;left:50%;opacity:0;padding:4px;position:absolute;transform:translateX(-50%);transition:visibility 0s,opacity .3s ease-in-out;visibility:hidden;white-space:nowrap}.react-datepicker__input-container{display:inline-block;position:relative;width:100%}.react-datepicker__input-container .react-datepicker__calendar-icon{box-sizing:content-box;padding:.625em;position:absolute}.react-datepicker__view-calendar-icon input{padding:6px 10px 5px 25px}.react-datepicker__month-read-view,.react-datepicker__month-year-read-view,.react-datepicker__year-read-view{border:1px solid transparent;border-radius:.3rem;position:relative}.react-datepicker__month-read-view:hover,.react-datepicker__month-year-read-view:hover,.react-datepicker__year-read-view:hover{cursor:pointer}.react-datepicker__month-read-view:hover .react-datepicker__month-read-view--down-arrow,.react-datepicker__month-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__month-year-read-view:hover .react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__year-read-view:hover .react-datepicker__month-read-view--down-arrow,.react-datepicker__year-read-view:hover .react-datepicker__year-read-view--down-arrow{border-top-color:#b3b3b3}.react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view--down-arrow,.react-datepicker__year-read-view--down-arrow{right:-16px;top:0;transform:rotate(135deg)}.react-datepicker__month-dropdown,.react-datepicker__month-year-dropdown,.react-datepicker__year-dropdown{background-color:#f0f0f0;border:1px solid #aeaeae;border-radius:.3rem;left:25%;position:absolute;text-align:center;top:30px;width:50%;z-index:1}.react-datepicker__month-dropdown:hover,.react-datepicker__month-year-dropdown:hover,.react-datepicker__year-dropdown:hover{cursor:pointer}.react-datepicker__month-dropdown--scrollable,.react-datepicker__month-year-dropdown--scrollable,.react-datepicker__year-dropdown--scrollable{height:150px;overflow-y:scroll}.react-datepicker__month-option,.react-datepicker__month-year-option,.react-datepicker__year-option{display:block;line-height:20px;margin-left:auto;margin-right:auto;width:100%}.react-datepicker__month-option:first-of-type,.react-datepicker__month-year-option:first-of-type,.react-datepicker__year-option:first-of-type{border-top-left-radius:.3rem;border-top-right-radius:.3rem}.react-datepicker__month-option:last-of-type,.react-datepicker__month-year-option:last-of-type,.react-datepicker__year-option:last-of-type{border-bottom-left-radius:.3rem;border-bottom-right-radius:.3rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.react-datepicker__month-option:hover,.react-datepicker__month-year-option:hover,.react-datepicker__year-option:hover{background-color:#ccc}.react-datepicker__month-option:hover .react-datepicker__navigation--years-upcoming,.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-upcoming,.react-datepicker__year-option:hover .react-datepicker__navigation--years-upcoming{border-bottom-color:#b3b3b3}.react-datepicker__month-option:hover .react-datepicker__navigation--years-previous,.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-previous,.react-datepicker__year-option:hover .react-datepicker__navigation--years-previous{border-top-color:#b3b3b3}.react-datepicker__month-option--selected,.react-datepicker__month-year-option--selected,.react-datepicker__year-option--selected{left:15px;position:absolute}.react-datepicker__close-icon{background-color:transparent;border:0;cursor:pointer;display:table-cell;height:100%;outline:0;padding:0 6px 0 0;position:absolute;right:0;top:0;vertical-align:middle}.react-datepicker__close-icon:after{background-color:#216ba5;border-radius:50%;color:#fff;content:\"×\";cursor:pointer;display:table-cell;font-size:12px;height:16px;line-height:1;padding:2px;text-align:center;vertical-align:middle;width:16px}.react-datepicker__close-icon--disabled{cursor:default}.react-datepicker__close-icon--disabled:after{background-color:#ccc;cursor:default}.react-datepicker__today-button{background:#f0f0f0;border-top:1px solid #aeaeae;clear:left;cursor:pointer;font-weight:700;padding:5px 0;text-align:center}.react-datepicker__portal{align-items:center;background-color:rgba(0,0,0,.8);display:flex;height:100vh;justify-content:center;left:0;position:fixed;top:0;width:100vw;z-index:2147483647}.react-datepicker__children-container{height:auto;margin:.5em;padding-left:.25em;padding-right:.25em;width:17.25em}.react-datepicker__aria-live{border:0;clip-path:circle(0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.react-datepicker__calendar-icon{height:1em;vertical-align:-.125em;width:1em}.react-datepicker-popper-offset{margin-top:-.7em}";
26638
26798
  styleInject(css_248z);
26639
26799
 
26640
- const DatePicker = ({ alias, inputLabel, inputtype = 'datepicker-outline', width = 12, newRow, placeholder = "Select date", isHinted, hintText, hintUrl, errorText, readOnly, className }) => {
26641
- const { setFieldValue, setFieldTouched } = formik.useFormikContext();
26642
- const [field, meta] = formik.useField(alias);
26800
+ const DatePicker = ({ alias, inputLabel, inputtype = 'datepicker-outline', width = 12, newRow, placeholder = "Select date", isHinted, hintText, hintUrl, errorText, readOnly, className, formikContext }) => {
26801
+ const defaultFormikContext = formik.useFormikContext();
26802
+ const activeContext = formikContext || defaultFormikContext;
26803
+ if (!activeContext) {
26804
+ console.error(`DatePicker '${alias}' must be used within a Formik provider or receive a formikContext prop.`);
26805
+ return null;
26806
+ }
26807
+ const { values, touched, errors, setFieldValue, setFieldTouched } = activeContext;
26808
+ const fieldValue = formik.getIn(values, alias);
26809
+ const fieldTouched = formik.getIn(touched, alias);
26810
+ const fieldError = formik.getIn(errors, alias);
26643
26811
  const inputId = `${alias}FormInput` || crypto.randomUUID();
26644
- const hasError = Boolean(meta.touched && meta.error);
26812
+ const hasError = Boolean(fieldTouched && fieldError);
26645
26813
  const containerRef = React.useRef(null);
26646
26814
  const [neuVars, setNeuVars] = React.useState({});
26647
26815
  React.useEffect(() => {
@@ -26707,9 +26875,9 @@ const DatePicker = ({ alias, inputLabel, inputtype = 'datepicker-outline', width
26707
26875
  .react-datepicker__day--selected { box-shadow: inset 2px 2px 5px var(--neu-shadow-dark), inset -2px -2px 5px var(--neu-shadow-light); color: var(--accent) !important; background: var(--neu-bg) !important; }
26708
26876
  ` : ''}
26709
26877
  `),
26710
- React.createElement(DatePicker$1, { id: `${alias}DatePicker`, selected: (field.value && new Date(field.value)) || null, onChange: (val) => {
26878
+ React.createElement(DatePicker$1, { id: `${alias}DatePicker`, selected: (fieldValue && new Date(fieldValue)) || null, onChange: (val) => {
26711
26879
  setFieldValue(alias, val);
26712
- setFieldTouched(alias, true);
26880
+ setFieldTouched(alias, true, false);
26713
26881
  }, disabled: readOnly, placeholderText: placeholder, dateFormat: "MMM d, yyyy", customInput: React.createElement(u, { id: inputId, variant: "surface", style: getInputStyles() },
26714
26882
  React.createElement(c, null,
26715
26883
  React.createElement(Icon, { name: "calendar", height: "16", width: "16", style: { color: 'var(--gray-10)' } }))) }),
@@ -26718,16 +26886,24 @@ const DatePicker = ({ alias, inputLabel, inputtype = 'datepicker-outline', width
26718
26886
  isHinted && (React.createElement(e, { content: hintText || "No hint", align: "start" },
26719
26887
  React.createElement("a", { href: hintUrl || "#", target: "_blank", rel: "noopener noreferrer", style: { marginLeft: 6 } },
26720
26888
  React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
26721
- hasError && React.createElement(p$d, { size: "1", color: "red", style: { display: 'block' } }, errorText || meta.error)))));
26889
+ hasError && React.createElement(p$d, { size: "1", color: "red", style: { display: 'block' } }, errorText || fieldError)))));
26722
26890
  };
26723
26891
 
26724
- const DateRangePicker = ({ alias, inputLabel, inputtype = 'daterangepicker-outline', width = 12, newRow, placeholder = "Select date range", isHinted, hintText, hintUrl, errorText, readOnly, className }) => {
26725
- const { setFieldValue, setFieldTouched } = formik.useFormikContext();
26726
- const [field, meta] = formik.useField(alias);
26727
- const hasError = Boolean(meta.touched && meta.error);
26892
+ const DateRangePicker = ({ alias, inputLabel, inputtype = 'daterangepicker-outline', width = 12, newRow, placeholder = "Select date range", isHinted, hintText, hintUrl, errorText, readOnly, className, formikContext }) => {
26893
+ const defaultFormikContext = formik.useFormikContext();
26894
+ const activeContext = formikContext || defaultFormikContext;
26895
+ if (!activeContext) {
26896
+ console.error(`DateRangePicker '${alias}' must be used within a Formik provider or receive a formikContext prop.`);
26897
+ return null;
26898
+ }
26899
+ const { values, touched, errors, setFieldValue, setFieldTouched } = activeContext;
26900
+ const fieldValue = formik.getIn(values, alias);
26901
+ const fieldTouched = formik.getIn(touched, alias);
26902
+ const fieldError = formik.getIn(errors, alias);
26903
+ const hasError = Boolean(fieldTouched && fieldError);
26728
26904
  const inputId = `${alias}FormInput` || crypto.randomUUID();
26729
26905
  const getDates = () => {
26730
- const val = field.value;
26906
+ const val = fieldValue;
26731
26907
  if (!val)
26732
26908
  return [null, null];
26733
26909
  if (typeof val === 'object' && 'from' in val) {
@@ -26835,7 +27011,7 @@ const DateRangePicker = ({ alias, inputLabel, inputtype = 'daterangepicker-outli
26835
27011
  const [start, end] = dates;
26836
27012
  setFieldValue(alias, { from: start, to: end });
26837
27013
  if (start && end) {
26838
- setFieldTouched(alias, true);
27014
+ setFieldTouched(alias, true, false);
26839
27015
  }
26840
27016
  }, disabled: readOnly, placeholderText: placeholder, dateFormat: "MMM d, yyyy", customInput: React.createElement(u, { id: inputId, variant: "surface", style: getInputStyles() },
26841
27017
  React.createElement(c, null,
@@ -26845,14 +27021,22 @@ const DateRangePicker = ({ alias, inputLabel, inputtype = 'daterangepicker-outli
26845
27021
  isHinted && (React.createElement(e, { content: hintText || "No hint", align: "start" },
26846
27022
  React.createElement("a", { href: hintUrl || "#", target: "_blank", rel: "noopener noreferrer", style: { marginLeft: 6 } },
26847
27023
  React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
26848
- hasError && (React.createElement(p$d, { size: "1", color: "red", style: { display: 'block' } }, errorText || (typeof meta.error === 'string' ? meta.error : "Required field")))))));
27024
+ hasError && (React.createElement(p$d, { size: "1", color: "red", style: { display: 'block' } }, errorText || (typeof fieldError === 'string' ? fieldError : "Required field")))))));
26849
27025
  };
26850
27026
 
26851
- const DateTimePicker = ({ alias, inputLabel, inputtype = 'datetimepicker-outline', width = 12, newRow, placeholder = "Select date & time", isHinted, hintText, hintUrl, errorText, readOnly, className }) => {
26852
- const { setFieldValue, setFieldTouched } = formik.useFormikContext();
26853
- const [field, meta] = formik.useField(alias);
27027
+ const DateTimePicker = ({ alias, inputLabel, inputtype = 'datetimepicker-outline', width = 12, newRow, placeholder = "Select date & time", isHinted, hintText, hintUrl, errorText, readOnly, className, formikContext }) => {
27028
+ const defaultFormikContext = formik.useFormikContext();
27029
+ const activeContext = formikContext || defaultFormikContext;
27030
+ if (!activeContext) {
27031
+ console.error(`DateTimePicker '${alias}' must be used within a Formik provider or receive a formikContext prop.`);
27032
+ return null;
27033
+ }
27034
+ const { values, touched, errors, setFieldValue, setFieldTouched } = activeContext;
27035
+ const fieldValue = formik.getIn(values, alias);
27036
+ const fieldTouched = formik.getIn(touched, alias);
27037
+ const fieldError = formik.getIn(errors, alias);
26854
27038
  const inputId = `${alias}FormInput` || crypto.randomUUID();
26855
- const hasError = Boolean(meta.touched && meta.error);
27039
+ const hasError = Boolean(fieldTouched && fieldError);
26856
27040
  const containerRef = React.useRef(null);
26857
27041
  const [neuVars, setNeuVars] = React.useState({});
26858
27042
  React.useEffect(() => {
@@ -26957,9 +27141,9 @@ const DateTimePicker = ({ alias, inputLabel, inputtype = 'datetimepicker-outline
26957
27141
  .react-datepicker__day--selected, .react-datepicker__time-list-item--selected { box-shadow: inset 2px 2px 5px var(--neu-shadow-dark), inset -2px -2px 5px var(--neu-shadow-light); color: var(--accent) !important; background: var(--neu-bg) !important; }
26958
27142
  ` : ''}
26959
27143
  `),
26960
- React.createElement(DatePicker$1, { id: `${alias}DatePicker`, selected: (field.value && new Date(field.value)) || null, onChange: (val) => {
27144
+ React.createElement(DatePicker$1, { id: `${alias}DatePicker`, selected: (fieldValue && new Date(fieldValue)) || null, onChange: (val) => {
26961
27145
  setFieldValue(alias, val);
26962
- setFieldTouched(alias, true);
27146
+ setFieldTouched(alias, true, false);
26963
27147
  }, showTimeSelect: true, timeFormat: "HH:mm", timeIntervals: 15, dateFormat: "MMM d, yyyy h:mm aa", disabled: readOnly, placeholderText: placeholder, customInput: React.createElement(u, { id: inputId, variant: "surface", style: getInputStyles() },
26964
27148
  React.createElement(c, null,
26965
27149
  React.createElement(Icon, { name: "clock", height: "16", width: "16", style: { color: 'var(--gray-10)' } }))) }),
@@ -26968,16 +27152,24 @@ const DateTimePicker = ({ alias, inputLabel, inputtype = 'datetimepicker-outline
26968
27152
  isHinted && (React.createElement(e, { content: hintText || "No hint", align: "start" },
26969
27153
  React.createElement("a", { href: hintUrl || "#", target: "_blank", rel: "noopener noreferrer", style: { marginLeft: 6 } },
26970
27154
  React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
26971
- hasError && (React.createElement(p$d, { size: "1", color: "red", style: { display: 'block' } }, errorText || meta.error))))));
27155
+ hasError && (React.createElement(p$d, { size: "1", color: "red", style: { display: 'block' } }, errorText || (typeof fieldError === 'string' ? fieldError : "Required field")))))));
26972
27156
  };
26973
27157
 
26974
27158
  const Dropdown = (_a) => {
26975
- var { inputtype = 'dropdown-outline', alias, readOnly, width, inputLabel, placeholder, inputOptions, style, newRow, isHinted, hintText, hintUrl, errorText, className } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "inputLabel", "placeholder", "inputOptions", "style", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "className"]);
27159
+ var { inputtype = 'dropdown-outline', alias, readOnly, width, inputLabel, placeholder, inputOptions, style, newRow, isHinted, hintText, hintUrl, errorText, className, formikContext } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "inputLabel", "placeholder", "inputOptions", "style", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "className", "formikContext"]);
27160
+ const defaultFormikContext = formik.useFormikContext();
27161
+ const activeContext = formikContext || defaultFormikContext;
27162
+ if (!activeContext) {
27163
+ console.error(`Dropdown '${alias}' must be used within a Formik provider or receive a formikContext prop.`);
27164
+ return null;
27165
+ }
27166
+ const { values, touched, errors, setFieldValue, setFieldTouched } = activeContext;
27167
+ const fieldValue = formik.getIn(values, alias);
27168
+ const fieldTouched = formik.getIn(touched, alias);
27169
+ const fieldError = formik.getIn(errors, alias);
27170
+ const hasError = Boolean(fieldTouched && fieldError);
26976
27171
  const triggerRef = React.useRef(null);
26977
27172
  const [neuVars, setNeuVars] = React.useState({});
26978
- const { setFieldValue, setFieldTouched } = formik.useFormikContext();
26979
- const [field, meta] = formik.useField(alias);
26980
- const hasError = Boolean(meta.touched && meta.error);
26981
27173
  const inputId = `${alias}FormInput` || crypto.randomUUID();
26982
27174
  const errorId = `${alias}-error`;
26983
27175
  React.useEffect(() => {
@@ -27059,15 +27251,15 @@ const Dropdown = (_a) => {
27059
27251
  cursor: pointer;
27060
27252
  }
27061
27253
  ` } })),
27062
- React.createElement(C$1, { name: alias, disabled: readOnly, value: field.value || "", onValueChange: (val) => {
27254
+ React.createElement(C$1, { name: alias, disabled: readOnly, value: fieldValue || "", onValueChange: (val) => {
27063
27255
  const finalVal = val === "__RESET__" ? "" : val;
27064
27256
  setFieldValue(alias, finalVal);
27065
- setTimeout(() => setFieldTouched(alias, true), 0);
27257
+ setTimeout(() => setFieldTouched(alias, true, false), 0);
27066
27258
  if (props.onValueChange)
27067
27259
  props.onValueChange(finalVal);
27068
27260
  }, onOpenChange: (isOpen) => {
27069
27261
  if (!isOpen) {
27070
- setFieldTouched(alias, true);
27262
+ setFieldTouched(alias, true, false);
27071
27263
  }
27072
27264
  } },
27073
27265
  React.createElement(u$1, Object.assign({ id: `${alias}FormInput`, ref: triggerRef, variant: "ghost", placeholder: placeholder || "Select an option", className: `${inputtype === 'dropdown-neumorphic' ? 'neu-select-trigger' : ''} ${className || ''}`, style: Object.assign(Object.assign({}, activeTriggerStyle), style) }, props)),
@@ -27075,10 +27267,10 @@ const Dropdown = (_a) => {
27075
27267
  React.createElement(v, { value: "__RESET__", className: inputtype === 'dropdown-neumorphic' ? 'neu-select-item' : '', style: { color: 'var(--gray-10)', fontStyle: 'italic' } }, placeholder || "Select an option"),
27076
27268
  React.createElement(o$2, { size: "4", style: { margin: '4px 0', opacity: 0.5 } }),
27077
27269
  inputOptions.map((inputoption) => (React.createElement(React.Fragment, { key: inputoption.optionid || crypto.randomUUID() }, inputoption.optionurl ?
27078
- React.createElement(v, { id: String(inputoption.optionid) || '', value: inputoption.optionvalue, className: inputtype === 'dropdown-neumorphic' ? 'neu-select-item' : '' },
27270
+ React.createElement(v, { id: String(inputoption.optionid) || '', value: String(inputoption.optionvalue), className: inputtype === 'dropdown-neumorphic' ? 'neu-select-item' : '' },
27079
27271
  React.createElement("a", { onClick: (e) => { e.stopPropagation(); openLink(inputoption.optionurl || "#"); }, style: { textDecoration: 'none', color: 'inherit' } }, inputoption.text))
27080
27272
  :
27081
- React.createElement(v, { id: String(inputoption.optionid) || '', value: inputoption.optionvalue, className: inputtype === 'dropdown-neumorphic' ? 'neu-select-item' : '' }, inputoption.text)))))),
27273
+ React.createElement(v, { id: String(inputoption.optionid) || '', value: String(inputoption.optionvalue), className: inputtype === 'dropdown-neumorphic' ? 'neu-select-item' : '' }, inputoption.text)))))),
27082
27274
  React.createElement("div", null,
27083
27275
  React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: inputId }, inputLabel),
27084
27276
  "\u00A0",
@@ -27089,7 +27281,7 @@ const Dropdown = (_a) => {
27089
27281
  React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
27090
27282
  hasError ?
27091
27283
  React.createElement(React.Fragment, null,
27092
- React.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || meta.error || "Required field")) : null)))));
27284
+ React.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || (typeof fieldError === 'string' ? fieldError : "Required field"))) : null)))));
27093
27285
  };
27094
27286
 
27095
27287
  const getFileIcon$1 = (type, name) => {
@@ -27107,11 +27299,19 @@ const getFileIcon$1 = (type, name) => {
27107
27299
  };
27108
27300
  const File$1 = (_a) => {
27109
27301
  var _b;
27110
- var { inputtype = 'fileinput-outline', alias, readOnly, width, inputLabel, newRow, isHinted, hintText, hintUrl, errorText, preview = false, className, style } = _a; __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "inputLabel", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "preview", "className", "style"]);
27111
- const { setFieldValue, setFieldTouched } = formik.useFormikContext();
27112
- const [field, meta] = formik.useField(alias);
27113
- const selectedFile = field.value;
27114
- const hasError = Boolean(meta.touched && meta.error);
27302
+ var { inputtype = 'fileinput-outline', alias, readOnly, width, inputLabel, newRow, isHinted, hintText, hintUrl, errorText, preview = false, className, style, formikContext } = _a; __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "inputLabel", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "preview", "className", "style", "formikContext"]);
27303
+ const defaultFormikContext = formik.useFormikContext();
27304
+ const activeContext = formikContext || defaultFormikContext;
27305
+ if (!activeContext) {
27306
+ console.error(`File '${alias}' must be used within a Formik provider or receive a formikContext prop.`);
27307
+ return null;
27308
+ }
27309
+ const { values, touched, errors, setFieldValue, setFieldTouched } = activeContext;
27310
+ const fieldValue = formik.getIn(values, alias);
27311
+ const fieldTouched = formik.getIn(touched, alias);
27312
+ const fieldError = formik.getIn(errors, alias);
27313
+ const selectedFile = fieldValue;
27314
+ const hasError = Boolean(fieldTouched && fieldError);
27115
27315
  const inputRef = React.useRef(null);
27116
27316
  const containerRef = React.useRef(null);
27117
27317
  const [previewUrl, setPreviewUrl] = React.useState(null);
@@ -27123,7 +27323,7 @@ const File$1 = (_a) => {
27123
27323
  const file = (_a = event.currentTarget.files) === null || _a === void 0 ? void 0 : _a[0];
27124
27324
  if (file) {
27125
27325
  setFieldValue(alias, file);
27126
- setFieldTouched(alias, true);
27326
+ setFieldTouched(alias, true, false);
27127
27327
  }
27128
27328
  };
27129
27329
  const handleClear = (e) => {
@@ -27187,14 +27387,14 @@ const File$1 = (_a) => {
27187
27387
  if (inputtype === 'fileinput-outline')
27188
27388
  e.currentTarget.style.borderColor = hasError ? 'var(--red-9)' : 'var(--gray-8)';
27189
27389
  } }, !selectedFile ? (
27190
- // --- EMPTY STATE ---
27390
+ // --- EMPTY STATE RENDER ---
27191
27391
  React.createElement(p$5, { align: "center", gap: "3", style: { width: '100%', color: 'var(--gray-10)' } },
27192
27392
  React.createElement(p$8, { style: { padding: 8, borderRadius: '50%', backgroundColor: 'var(--gray-3)' } },
27193
27393
  React.createElement(Icon, { name: 'upload', width: "18", height: "18" })),
27194
27394
  React.createElement(p$5, { direction: "column" },
27195
27395
  React.createElement(p$d, { size: "2", weight: "bold", color: "gray" }, "Upload File"),
27196
27396
  React.createElement(p$d, { size: "1", color: "gray" }, "Supports PDF, Images, Excel, JSON...")))) : (
27197
- // --- SELECTED STATE ---
27397
+ // --- SELECTED STATE RENDER ---
27198
27398
  React.createElement(p$5, { align: "center", gap: "4", style: { width: '100%' } },
27199
27399
  preview && previewUrl ? (React.createElement(i$9, { ratio: 1, style: { width: 48, height: 48, borderRadius: 6, overflow: 'hidden', flexShrink: 0 } },
27200
27400
  React.createElement("img", { src: previewUrl, alt: "Preview", style: { width: '100%', height: '100%', objectFit: 'cover' } }))) : (React.createElement(p$8, { style: {
@@ -27220,7 +27420,7 @@ const File$1 = (_a) => {
27220
27420
  React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
27221
27421
  hasError ?
27222
27422
  React.createElement(React.Fragment, null,
27223
- React.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || "Required field")) : null))));
27423
+ React.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || (typeof fieldError === 'string' ? fieldError : "Required field"))) : null))));
27224
27424
  };
27225
27425
 
27226
27426
  const getFileIcon = (fileOrUrl) => {
@@ -27266,14 +27466,23 @@ const styles = {
27266
27466
  }
27267
27467
  };
27268
27468
  const FileMultiple = (_a) => {
27269
- var { inputtype = 'filemultiple-outline', alias, readOnly, width, inputLabel, placeholder = '', newRow, isHinted, hintText, hintUrl, errorText, preview = true, className, style } = _a; __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "inputLabel", "placeholder", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "preview", "className", "style"]);
27270
- const [field, meta] = formik.useField(alias);
27271
- const { setFieldValue, setFieldTouched } = formik.useFormikContext();
27469
+ var { inputtype = 'filemultiple-outline', alias, readOnly, width, inputLabel, placeholder = '', newRow, isHinted, hintText, hintUrl, errorText, preview = true, className, style, formikContext } = _a; __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "inputLabel", "placeholder", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "preview", "className", "style", "formikContext"]);
27470
+ const defaultFormikContext = formik.useFormikContext();
27471
+ const activeContext = formikContext || defaultFormikContext;
27472
+ if (!activeContext) {
27473
+ console.error(`FileMultiple '${alias}' must be used within a Formik provider or receive a formikContext prop.`);
27474
+ return null;
27475
+ }
27476
+ const { values, touched, errors, setFieldValue, setFieldTouched } = activeContext;
27477
+ const fieldValue = formik.getIn(values, alias);
27478
+ const fieldTouched = formik.getIn(touched, alias);
27479
+ const fieldError = formik.getIn(errors, alias);
27272
27480
  const inputRef = React.useRef(null);
27273
27481
  const [objectUrls, setObjectUrls] = React.useState({});
27274
27482
  const inputId = `${alias}FormInput`;
27275
27483
  const errorId = `${alias}-error`;
27276
- const currentFiles = Array.isArray(field.value) ? field.value : [];
27484
+ const currentFiles = Array.isArray(fieldValue) ? fieldValue : [];
27485
+ const hasError = Boolean(fieldTouched && fieldError);
27277
27486
  React.useEffect(() => {
27278
27487
  if (!preview)
27279
27488
  return;
@@ -27298,7 +27507,7 @@ const FileMultiple = (_a) => {
27298
27507
  if (e.target.files && e.target.files.length > 0) {
27299
27508
  const newFiles = Array.from(e.target.files);
27300
27509
  setFieldValue(alias, [...currentFiles, ...newFiles]);
27301
- setFieldTouched(alias, true);
27510
+ setFieldTouched(alias, true, false);
27302
27511
  }
27303
27512
  if (inputRef.current)
27304
27513
  inputRef.current.value = '';
@@ -27312,7 +27521,6 @@ const FileMultiple = (_a) => {
27312
27521
  }
27313
27522
  };
27314
27523
  const isNeumorphic = inputtype === 'filemultiple-neumorphic';
27315
- const hasError = Boolean(meta.touched && meta.error);
27316
27524
  return (React.createElement(Column, { span: width, newLine: newRow },
27317
27525
  React.createElement(p$5, { direction: "column", gap: "2", className: className, style: Object.assign({ width: '100%' }, style) },
27318
27526
  React.createElement(p$8, { onClick: () => { var _a; return !readOnly && ((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.click()); }, p: "4", style: Object.assign(Object.assign({}, styles[inputtype]), { cursor: readOnly ? 'default' : 'pointer', transition: 'all 0.2s', borderColor: hasError ? 'var(--red-9)' : (styles[inputtype].borderBottom ? 'var(--accent-9)' : 'var(--gray-a8)'), position: 'relative', opacity: readOnly ? 0.7 : 1 }) },
@@ -27374,7 +27582,7 @@ const FileMultiple = (_a) => {
27374
27582
  isHinted && (React.createElement(e, { content: hintText || "No hint available" },
27375
27583
  React.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
27376
27584
  React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray', marginLeft: 4 } })))),
27377
- hasError && (React.createElement(p$d, { id: errorId, size: "1", color: "red", style: { display: 'block', marginTop: 2 } }, typeof meta.error === 'string' ? (errorText || meta.error) : 'Invalid file selection'))))));
27585
+ hasError && (React.createElement(p$d, { id: errorId, size: "1", color: "red", style: { display: 'block', marginTop: 2 } }, typeof fieldError === 'string' ? (errorText || fieldError) : 'Invalid file selection'))))));
27378
27586
  };
27379
27587
 
27380
27588
  var _excluded$6 = ["title"],
@@ -34693,9 +34901,24 @@ const ImageOutput = ({ id, src, alt = "Image", design = 'outline', layout = 'nor
34693
34901
  };
34694
34902
 
34695
34903
  const Input$2 = (_a) => {
34696
- var { alias, inputtype = "text", width, inputLabel, readOnly = false, placeholder = '', newRow, isHinted, hintText, hintUrl, errorText, className, size = "2", style, inputvariant = 'input-outline', icon } = _a, props = __rest$1(_a, ["alias", "inputtype", "width", "inputLabel", "readOnly", "placeholder", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "className", "size", "style", "inputvariant", "icon"]);
34697
- const [inputField, meta] = formik.useField(alias);
34698
- const hasError = Boolean(meta.touched && meta.error);
34904
+ var { alias, inputtype = "text", width, inputLabel, readOnly = false, placeholder = '', newRow, isHinted, hintText, hintUrl, errorText, className, size = "2", style, inputvariant = 'input-outline', icon, formikContext } = _a, props = __rest$1(_a, ["alias", "inputtype", "width", "inputLabel", "readOnly", "placeholder", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "className", "size", "style", "inputvariant", "icon", "formikContext"]);
34905
+ const defaultFormikContext = formik.useFormikContext();
34906
+ const activeContext = formikContext || defaultFormikContext;
34907
+ if (!activeContext) {
34908
+ console.error(`Input '${alias}' must be used within a Formik provider or receive a formikContext prop.`);
34909
+ return null;
34910
+ }
34911
+ const { values, touched, errors, handleChange, handleBlur } = activeContext;
34912
+ const fieldValue = formik.getIn(values, alias);
34913
+ const fieldTouched = formik.getIn(touched, alias);
34914
+ const fieldError = formik.getIn(errors, alias);
34915
+ const inputField = {
34916
+ name: alias,
34917
+ value: fieldValue !== undefined && fieldValue !== null ? fieldValue : '',
34918
+ onChange: handleChange,
34919
+ onBlur: handleBlur,
34920
+ };
34921
+ const hasError = Boolean(fieldTouched && fieldError);
34699
34922
  const variantClass = inputvariant !== 'input-outline' ? `input-${inputvariant}` : '';
34700
34923
  const errorId = `${alias}-error`;
34701
34924
  return (React.createElement(Column, { span: width, newLine: newRow },
@@ -34705,21 +34928,36 @@ const Input$2 = (_a) => {
34705
34928
  inputLabel && (React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: `${alias}FormInput` }, inputLabel)),
34706
34929
  isHinted && (React.createElement(e, { content: hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
34707
34930
  React.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer", style: { marginLeft: 4 } },
34708
- React.createElement(QuestionMarkCircledIcon, { height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
34709
- hasError && (React.createElement(p$d, { id: errorId, size: "1", color: "red", className: 'core-input-label-error', style: { display: 'block', marginTop: 2 } }, errorText || meta.error || `Required field`))))));
34931
+ React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
34932
+ hasError && (React.createElement(p$d, { id: errorId, size: "1", color: "red", className: 'core-input-label-error', style: { display: 'block', marginTop: 2 } }, errorText || (typeof fieldError === 'string' ? fieldError : `Required field`)))))));
34710
34933
  };
34711
34934
 
34712
34935
  const PasswordInput = (_a) => {
34713
- var { alias, inputLabel, width, readOnly = false, placeholder = '', newRow, isHinted, hintText, hintUrl, errorText, inputvariant = 'input-outline', size = "2", className } = _a, props = __rest$1(_a, ["alias", "inputLabel", "width", "readOnly", "placeholder", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "inputvariant", "size", "className"]);
34936
+ var { alias, inputLabel, width, readOnly = false, placeholder = '', newRow, isHinted, hintText, hintUrl, errorText, inputvariant = 'input-outline', size = "2", className, formikContext } = _a, props = __rest$1(_a, ["alias", "inputLabel", "width", "readOnly", "placeholder", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "inputvariant", "size", "className", "formikContext"]);
34714
34937
  const [showPassword, setShowPassword] = React.useState(false);
34715
34938
  const toggleVisibility = () => setShowPassword(!showPassword);
34716
- const [field, meta] = formik.useField(alias);
34717
- const hasError = Boolean(meta.touched && meta.error);
34939
+ const defaultFormikContext = formik.useFormikContext();
34940
+ const activeContext = formikContext || defaultFormikContext;
34941
+ if (!activeContext) {
34942
+ console.error(`PasswordInput '${alias}' must be used within a Formik provider or receive a formikContext prop.`);
34943
+ return null;
34944
+ }
34945
+ const { values, touched, errors, handleChange, handleBlur } = activeContext;
34946
+ const fieldValue = formik.getIn(values, alias);
34947
+ const fieldTouched = formik.getIn(touched, alias);
34948
+ const fieldError = formik.getIn(errors, alias);
34949
+ const inputField = {
34950
+ name: alias,
34951
+ value: fieldValue !== undefined && fieldValue !== null ? fieldValue : '',
34952
+ onChange: handleChange,
34953
+ onBlur: handleBlur,
34954
+ };
34955
+ const hasError = Boolean(fieldTouched && fieldError);
34718
34956
  const variantClass = inputvariant !== 'input-outline' ? `input-${inputvariant}` : '';
34719
34957
  const errorId = `${alias}-error`;
34720
34958
  return (React.createElement(Column, { span: width, newLine: newRow },
34721
34959
  React.createElement(p$5, { direction: "column", gap: "2", style: { width: '100%' } },
34722
- React.createElement(u, Object.assign({ size: size, type: showPassword ? "text" : "password", id: `${alias}FormInput`, readOnly: readOnly, "aria-describedby": `${alias}InputLabel`, placeholder: placeholder, color: hasError ? "red" : undefined, className: `${variantClass} ${className || ''}` }, field, props, { name: alias }),
34960
+ React.createElement(u, Object.assign({ size: size, type: showPassword ? "text" : "password", id: `${alias}FormInput`, readOnly: readOnly, "aria-describedby": `${alias}InputLabel`, placeholder: placeholder, color: hasError ? "red" : undefined, className: `${variantClass} ${className || ''}` }, inputField, props),
34723
34961
  React.createElement(c, null,
34724
34962
  React.createElement(Icon, { name: "lockclosed", height: "16", width: "16", style: { color: 'var(--gray-10)' } })),
34725
34963
  React.createElement(c, null,
@@ -34729,8 +34967,8 @@ const PasswordInput = (_a) => {
34729
34967
  inputLabel && (React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: `${alias}FormInput` }, inputLabel)),
34730
34968
  isHinted && (React.createElement(e, { content: hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
34731
34969
  React.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer", style: { marginLeft: 4 } },
34732
- React.createElement(QuestionMarkCircledIcon, { height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
34733
- hasError && (React.createElement(p$d, { id: errorId, size: "1", color: "red", className: 'core-input-label-error', style: { display: 'block', marginTop: 2 } }, errorText || meta.error || `Required field`))))));
34970
+ React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
34971
+ hasError && (React.createElement(p$d, { id: errorId, size: "1", color: "red", className: 'core-input-label-error', style: { display: 'block', marginTop: 2 } }, errorText || (typeof fieldError === 'string' ? fieldError : `Required field`)))))));
34734
34972
  };
34735
34973
 
34736
34974
  // This file is a workaround for a bug in web browsers' "native"
@@ -42272,10 +42510,18 @@ var en = {
42272
42510
  };
42273
42511
 
42274
42512
  const PhoneInput = (_a) => {
42275
- var { alias, inputLabel, width, placeholder = "Phone Number", newRow, isHinted, hintText, hintUrl, errorText, readOnly, inputvariant = 'input-outline', size = "2", className } = _a, props = __rest$1(_a, ["alias", "inputLabel", "width", "placeholder", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "readOnly", "inputvariant", "size", "className"]);
42276
- const { setFieldValue, setFieldTouched } = formik.useFormikContext();
42277
- const [field, meta] = formik.useField(alias);
42278
- const hasError = Boolean(meta.touched && meta.error);
42513
+ var { alias, inputLabel, width, placeholder = "Phone Number", newRow, isHinted, hintText, hintUrl, errorText, readOnly, inputvariant = 'input-outline', size = "2", className, formikContext } = _a, props = __rest$1(_a, ["alias", "inputLabel", "width", "placeholder", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "readOnly", "inputvariant", "size", "className", "formikContext"]);
42514
+ const defaultFormikContext = formik.useFormikContext();
42515
+ const activeContext = formikContext || defaultFormikContext;
42516
+ if (!activeContext) {
42517
+ console.error(`PhoneInput '${alias}' must be used within a Formik provider or receive a formikContext prop.`);
42518
+ return null;
42519
+ }
42520
+ const { values, touched, errors, setFieldValue, setFieldTouched } = activeContext;
42521
+ const fieldValue = formik.getIn(values, alias);
42522
+ const fieldTouched = formik.getIn(touched, alias);
42523
+ const fieldError = formik.getIn(errors, alias);
42524
+ const hasError = Boolean(fieldTouched && fieldError);
42279
42525
  const [country, setCountry] = React.useState('US');
42280
42526
  const variantClass = inputvariant !== 'input-outline' ? `input-${inputvariant}` : '';
42281
42527
  const errorId = `${alias}-error`;
@@ -42307,7 +42553,7 @@ const PhoneInput = (_a) => {
42307
42553
  "(+",
42308
42554
  getCountryCallingCode(c),
42309
42555
  ")")))))))),
42310
- React.createElement(Input, { country: country, name: alias, international: true, withCountryCallingCode: false, value: field.value || '', onChange: (val) => setFieldValue(alias, val || ''), onBlur: () => setFieldTouched(alias, true), readOnly: readOnly, placeholder: placeholder, id: `${alias}FormInput`, "aria-describedby": `${alias}InputLabel`, style: {
42556
+ React.createElement(Input, { country: country, name: alias, international: true, withCountryCallingCode: false, value: fieldValue || '', onChange: (val) => setFieldValue(alias, val || ''), onBlur: () => setFieldTouched(alias, true, false), readOnly: readOnly, placeholder: placeholder, id: `${alias}FormInput`, "aria-describedby": `${alias}InputLabel`, style: {
42311
42557
  flex: 1,
42312
42558
  border: 'none',
42313
42559
  outline: 'none',
@@ -42320,11 +42566,11 @@ const PhoneInput = (_a) => {
42320
42566
  width: '100%'
42321
42567
  } })),
42322
42568
  React.createElement("div", { style: { marginTop: 4, display: 'flex', alignItems: 'center', gap: 6 } },
42323
- React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: `${alias}FormInput` }, inputLabel),
42569
+ inputLabel && (React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: `${alias}FormInput` }, inputLabel)),
42324
42570
  isHinted && (React.createElement(e, { content: hintText || "No hint available" },
42325
42571
  React.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer", style: { display: 'flex' } },
42326
- React.createElement(QuestionMarkCircledIcon, { height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
42327
- hasError && (React.createElement(p$d, { id: errorId, size: "1", color: "red", className: 'core-input-label-error' }, errorText || meta.error || `Required field`))))));
42572
+ React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
42573
+ hasError && (React.createElement(p$d, { id: errorId, size: "1", color: "red", className: 'core-input-label-error' }, errorText || (typeof fieldError === 'string' ? fieldError : `Required field`)))))));
42328
42574
  };
42329
42575
 
42330
42576
  const safeParseUuidFormat = (typeString) => {
@@ -42339,10 +42585,18 @@ const safeParseUuidFormat = (typeString) => {
42339
42585
  }
42340
42586
  };
42341
42587
  const UUIDInput = (_a) => {
42342
- var { alias, type = "uuid-4-4-4-4", inputLabel, width, delimiter = "-", format = [4, 4, 4, 4], placeholder = 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX', newRow, isHinted, hintText, hintUrl, errorText, readOnly = false, inputVariant = 'uuid-outline', size = "2", className } = _a, props = __rest$1(_a, ["alias", "type", "inputLabel", "width", "delimiter", "format", "placeholder", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "readOnly", "inputVariant", "size", "className"]);
42343
- const { setFieldValue, setFieldTouched } = formik.useFormikContext();
42344
- const [field, meta] = formik.useField(alias);
42345
- const hasError = Boolean(meta.touched && meta.error);
42588
+ var { alias, type = "uuid-4-4-4-4", inputLabel, width, delimiter = "-", format = [4, 4, 4, 4], placeholder = 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX', newRow, isHinted, hintText, hintUrl, errorText, readOnly = false, inputVariant = 'uuid-outline', size = "2", className, formikContext } = _a, props = __rest$1(_a, ["alias", "type", "inputLabel", "width", "delimiter", "format", "placeholder", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "readOnly", "inputVariant", "size", "className", "formikContext"]);
42589
+ const defaultFormikContext = formik.useFormikContext();
42590
+ const activeContext = formikContext || defaultFormikContext;
42591
+ if (!activeContext) {
42592
+ console.error(`UUIDInput '${alias}' must be used within a Formik provider or receive a formikContext prop.`);
42593
+ return null;
42594
+ }
42595
+ const { values, touched, errors, setFieldValue, setFieldTouched } = activeContext;
42596
+ const fieldValue = formik.getIn(values, alias);
42597
+ const fieldTouched = formik.getIn(touched, alias);
42598
+ const fieldError = formik.getIn(errors, alias);
42599
+ const hasError = Boolean(fieldTouched && fieldError);
42346
42600
  const [copied, setCopied] = React.useState(false);
42347
42601
  const [uuidNumber, setUUIDNumber] = React.useState("");
42348
42602
  const errorId = `${alias}-error`;
@@ -42371,11 +42625,11 @@ const UUIDInput = (_a) => {
42371
42625
  const val = e.target.value;
42372
42626
  const formatted = formatUUID(val);
42373
42627
  setUUIDNumber(formatted);
42374
- setFieldValue(alias, uuidNumber);
42628
+ setFieldValue(alias, formatted);
42375
42629
  };
42376
42630
  const handleCopy = () => {
42377
- if (field.value) {
42378
- navigator.clipboard.writeText(field.value);
42631
+ if (fieldValue) {
42632
+ navigator.clipboard.writeText(fieldValue);
42379
42633
  setCopied(true);
42380
42634
  setTimeout(() => setCopied(false), 2000);
42381
42635
  }
@@ -42384,7 +42638,7 @@ const UUIDInput = (_a) => {
42384
42638
  return (React.createElement(Column, { span: width, newLine: newRow },
42385
42639
  React.createElement(p$5, { direction: "column", gap: "2", style: { width: '100%' } },
42386
42640
  React.createElement(u, Object.assign({ size: size, name: `${alias}UUIDFormInput`, variant: "surface", color: hasError ? 'red' : undefined, className: `${variantClass} ${className || ''}` }, props),
42387
- React.createElement("input", { id: `${alias}FormInput`, name: alias, "aria-describedby": `${alias}InputLabel`, value: field.value || '', onChange: handleChange, onBlur: () => setFieldTouched(alias, true), maxLength: maxTotalLength, readOnly: readOnly, placeholder: placeholder, autoComplete: "off", spellCheck: false, style: {
42641
+ React.createElement("input", { id: `${alias}FormInput`, name: alias, "aria-describedby": `${alias}InputLabel`, value: fieldValue || '', onChange: handleChange, onBlur: () => setFieldTouched(alias, true, false), maxLength: maxTotalLength, readOnly: readOnly, placeholder: placeholder, autoComplete: "off", spellCheck: false, style: {
42388
42642
  flex: 1,
42389
42643
  border: 'none',
42390
42644
  outline: 'none',
@@ -42399,13 +42653,13 @@ const UUIDInput = (_a) => {
42399
42653
  } }),
42400
42654
  React.createElement(c, null,
42401
42655
  React.createElement(e, { content: copied ? "Copied!" : "Copy to clipboard" },
42402
- React.createElement(o$5, { size: "1", variant: "ghost", color: copied ? "green" : "gray", onClick: handleCopy, type: "button", disabled: !field.value, style: { margin: 0 } }, copied ? React.createElement(CheckIcon, null) : React.createElement(CopyIcon, null))))),
42656
+ React.createElement(o$5, { size: "1", variant: "ghost", color: copied ? "green" : "gray", onClick: handleCopy, type: "button", disabled: !fieldValue, style: { margin: 0 } }, copied ? React.createElement(CheckIcon, null) : React.createElement(CopyIcon, null))))),
42403
42657
  React.createElement("div", null,
42404
42658
  inputLabel && (React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: `${alias}FormInput` }, inputLabel)),
42405
42659
  isHinted && (React.createElement(e, { content: hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
42406
42660
  React.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
42407
42661
  React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray', marginLeft: 4 } })))),
42408
- hasError && (React.createElement(p$d, { id: errorId, size: "1", color: "red", style: { display: 'block', marginTop: 2 } }, errorText || meta.error || "Required field"))))));
42662
+ hasError && (React.createElement(p$d, { id: errorId, size: "1", color: "red", style: { display: 'block', marginTop: 2 } }, errorText || (typeof fieldError === 'string' ? fieldError : "Required field")))))));
42409
42663
  };
42410
42664
 
42411
42665
  var FaCcVisa = {};
@@ -47612,11 +47866,19 @@ const IMaskInput = React.forwardRef(IMaskInputFn);
47612
47866
 
47613
47867
  const CreditCardInput = (_a) => {
47614
47868
  var _b;
47615
- var { alias, inputLabel, width, placeholder, newRow, isHinted, hintText, hintUrl, errorText, readOnly = false, inputvariant = 'input-outline', className } = _a; __rest$1(_a, ["alias", "inputLabel", "width", "placeholder", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "readOnly", "inputvariant", "className"]);
47616
- const { setFieldValue, setFieldTouched } = formik.useFormikContext();
47617
- const [field, meta] = formik.useField(alias);
47618
- const hasError = Boolean(meta.touched && meta.error);
47619
- const cardInfo = cardValidator.number(field.value);
47869
+ var { alias, inputLabel, width, placeholder, newRow, isHinted, hintText, hintUrl, errorText, readOnly = false, inputvariant = 'input-outline', className, formikContext } = _a; __rest$1(_a, ["alias", "inputLabel", "width", "placeholder", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "readOnly", "inputvariant", "className", "formikContext"]);
47870
+ const defaultFormikContext = formik.useFormikContext();
47871
+ const activeContext = formikContext || defaultFormikContext;
47872
+ if (!activeContext) {
47873
+ console.error(`CreditCardInput '${alias}' must be used within a Formik provider or receive a formikContext prop.`);
47874
+ return null;
47875
+ }
47876
+ const { values, touched, errors, setFieldValue, setFieldTouched } = activeContext;
47877
+ const fieldValue = formik.getIn(values, alias);
47878
+ const fieldTouched = formik.getIn(touched, alias);
47879
+ const fieldError = formik.getIn(errors, alias);
47880
+ const hasError = Boolean(fieldTouched && fieldError);
47881
+ const cardInfo = cardValidator.number(fieldValue);
47620
47882
  const cardType = (_b = cardInfo.card) === null || _b === void 0 ? void 0 : _b.type;
47621
47883
  const maskPattern = cardType === 'american-express' ? '0000 000000 00000' : '0000 0000 0000 0000';
47622
47884
  const errorId = `${alias}-error`;
@@ -47642,7 +47904,7 @@ const CreditCardInput = (_a) => {
47642
47904
  paddingRight: '12px',
47643
47905
  cursor: 'text'
47644
47906
  } },
47645
- React.createElement(IMaskInput, { id: `${alias}FormInput`, name: alias, "aria-describedby": `${alias}InputLabel`, mask: maskPattern, readOnly: readOnly, value: field.value, unmask: true, onAccept: (val) => setFieldValue(alias, val), onBlur: () => setFieldTouched(alias, true), placeholder: placeholder || '0000 0000 0000 0000', inputMode: "numeric", autoComplete: "cc-number", style: {
47907
+ React.createElement(IMaskInput, { id: `${alias}FormInput`, name: alias, "aria-describedby": `${alias}InputLabel`, mask: maskPattern, readOnly: readOnly, value: fieldValue || '', unmask: true, onAccept: (val) => setFieldValue(alias, val), onBlur: () => setFieldTouched(alias, true, false), placeholder: placeholder || '0000 0000 0000 0000', inputMode: "numeric", autoComplete: "cc-number", style: {
47646
47908
  flex: 1,
47647
47909
  border: 'none',
47648
47910
  outline: 'none',
@@ -47656,12 +47918,12 @@ const CreditCardInput = (_a) => {
47656
47918
  } }),
47657
47919
  React.createElement("div", { style: { display: 'flex', alignItems: 'center' } }, getCardIcon())),
47658
47920
  React.createElement("div", { style: { marginTop: 4, display: 'flex', alignItems: 'center', gap: 6 } },
47659
- React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: `${alias}FormInput` }, inputLabel),
47921
+ inputLabel && (React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: `${alias}FormInput` }, inputLabel)),
47660
47922
  "\u00A0",
47661
- isHinted && (React.createElement(e, { content: hintText || "No hint available" },
47923
+ isHinted && (React.createElement(e, { content: hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
47662
47924
  React.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer", style: { display: 'flex' } },
47663
47925
  React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
47664
- hasError && (React.createElement(p$d, { id: errorId, size: "1", color: "red", className: 'core-input-label-error' }, errorText || `Required field`))))));
47926
+ hasError && (React.createElement(p$d, { id: errorId, size: "1", color: "red", className: 'core-input-label-error' }, errorText || (typeof fieldError === 'string' ? fieldError : `Required field`)))))));
47665
47927
  };
47666
47928
 
47667
47929
  const CURRENCIES = {
@@ -47733,21 +47995,29 @@ const CURRENCIES = {
47733
47995
  };
47734
47996
 
47735
47997
  const CurrencyInput = (_a) => {
47736
- var { alias, inputtype = "currency", inputLabel, width, defaultvalue = "USD", placeholder, newRow, isHinted, hintText, hintUrl, errorText, readOnly = false, inputvariant = 'input-outline', className } = _a; __rest$1(_a, ["alias", "inputtype", "inputLabel", "width", "defaultvalue", "placeholder", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "readOnly", "inputvariant", "className"]);
47737
- const { setFieldValue, setFieldTouched } = formik.useFormikContext();
47738
- const [amountField, amountMeta] = formik.useField(alias);
47998
+ var { alias, inputtype = "currency", inputLabel, width, defaultvalue = "USD", placeholder, newRow, isHinted, hintText, hintUrl, errorText, readOnly = false, inputvariant = 'input-outline', className, formikContext } = _a; __rest$1(_a, ["alias", "inputtype", "inputLabel", "width", "defaultvalue", "placeholder", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "readOnly", "inputvariant", "className", "formikContext"]);
47999
+ const defaultFormikContext = formik.useFormikContext();
48000
+ const activeContext = formikContext || defaultFormikContext;
48001
+ if (!activeContext) {
48002
+ console.error(`CurrencyInput '${alias}' must be used within a Formik provider or receive a formikContext prop.`);
48003
+ return null;
48004
+ }
48005
+ const { values, touched, errors, setFieldValue, setFieldTouched } = activeContext;
47739
48006
  const currencyAlias = `${alias}Currency`;
47740
- const [currencyField, , currencyHelpers] = formik.useField(currencyAlias);
48007
+ const amountFieldValue = formik.getIn(values, alias);
48008
+ const amountFieldTouched = formik.getIn(touched, alias);
48009
+ const amountFieldError = formik.getIn(errors, alias);
48010
+ const currencyFieldValue = formik.getIn(values, currencyAlias);
47741
48011
  React.useEffect(() => {
47742
48012
  if (inputtype !== "currency" && CURRENCIES[inputtype]) {
47743
- currencyHelpers.setValue(inputtype);
48013
+ setFieldValue(currencyAlias, inputtype);
47744
48014
  }
47745
- else if (!currencyField.value) {
47746
- currencyHelpers.setValue(defaultvalue);
48015
+ else if (!currencyFieldValue) {
48016
+ setFieldValue(currencyAlias, defaultvalue);
47747
48017
  }
47748
- }, [inputtype, defaultvalue]);
47749
- const hasError = Boolean(amountMeta.touched && amountMeta.error);
47750
- const currentCode = currencyField.value || "USD";
48018
+ }, [inputtype, defaultvalue, currencyFieldValue, currencyAlias, setFieldValue]);
48019
+ const hasError = Boolean(amountFieldTouched && amountFieldError);
48020
+ const currentCode = currencyFieldValue || "USD";
47751
48021
  const activeCurrency = CURRENCIES[currentCode] || CURRENCIES.USD;
47752
48022
  const variantClass = inputvariant !== 'input-outline' ? `input-${inputvariant}` : '';
47753
48023
  const isOutline = inputvariant === 'input-outline';
@@ -47791,7 +48061,7 @@ const CurrencyInput = (_a) => {
47791
48061
  normalizeZeros: true,
47792
48062
  radix: ".",
47793
48063
  mapToRadix: ['.'],
47794
- }, { value: amountField.value !== undefined && amountField.value !== null ? String(amountField.value) : '', unmask: true, onAccept: (val) => setFieldValue(alias, val), onBlur: () => setFieldTouched(alias, true), readOnly: readOnly, placeholder: placeholder || '0.00', style: {
48064
+ }, { value: amountFieldValue !== undefined && amountFieldValue !== null ? String(amountFieldValue) : '', unmask: true, onAccept: (val) => setFieldValue(alias, val), onBlur: () => setFieldTouched(alias, true, false), readOnly: readOnly, placeholder: placeholder || '0.00', style: {
47795
48065
  flex: 1,
47796
48066
  border: 'none',
47797
48067
  outline: 'none',
@@ -47807,10 +48077,10 @@ const CurrencyInput = (_a) => {
47807
48077
  React.createElement("div", null,
47808
48078
  React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: `${alias}FormInput` }, inputLabel),
47809
48079
  "\u00A0",
47810
- isHinted && (React.createElement(e, { content: hintText || "No hint available" },
48080
+ isHinted && (React.createElement(e, { content: hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
47811
48081
  React.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer", style: { display: 'flex' } },
47812
48082
  React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
47813
- hasError && (React.createElement(p$d, { id: errorId, size: "1", color: "red", className: 'core-input-label-error' }, errorText || amountMeta.error || `Required field`))))));
48083
+ hasError && (React.createElement(p$d, { id: errorId, size: "1", color: "red", className: 'core-input-label-error' }, errorText || (typeof amountFieldError === 'string' ? amountFieldError : `Required field`)))))));
47814
48084
  };
47815
48085
 
47816
48086
  var FaChartLine = {};
@@ -47831,10 +48101,18 @@ function requireFaChartLine () {
47831
48101
  var FaChartLineExports = /*@__PURE__*/ requireFaChartLine();
47832
48102
 
47833
48103
  const StockInput = (_a) => {
47834
- var { alias, inputLabel, width, defaultvalue, placeholder, newRow, isHinted, hintText, hintUrl, errorText, readOnly = false, inputvariant = 'input-outline', className } = _a; __rest$1(_a, ["alias", "inputLabel", "width", "defaultvalue", "placeholder", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "readOnly", "inputvariant", "className"]);
47835
- const { setFieldValue, setFieldTouched } = formik.useFormikContext();
47836
- const [priceField, meta] = formik.useField(alias);
47837
- const hasError = Boolean(meta.touched && meta.error);
48104
+ var { alias, inputLabel, width, defaultvalue, placeholder, newRow, isHinted, hintText, hintUrl, errorText, readOnly = false, inputvariant = 'input-outline', className, formikContext } = _a; __rest$1(_a, ["alias", "inputLabel", "width", "defaultvalue", "placeholder", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "readOnly", "inputvariant", "className", "formikContext"]);
48105
+ const defaultFormikContext = formik.useFormikContext();
48106
+ const activeContext = formikContext || defaultFormikContext;
48107
+ if (!activeContext) {
48108
+ console.error(`StockInput '${alias}' must be used within a Formik provider or receive a formikContext prop.`);
48109
+ return null;
48110
+ }
48111
+ const { values, touched, errors, setFieldValue, setFieldTouched } = activeContext;
48112
+ const fieldValue = formik.getIn(values, alias);
48113
+ const fieldTouched = formik.getIn(touched, alias);
48114
+ const fieldError = formik.getIn(errors, alias);
48115
+ const hasError = Boolean(fieldTouched && fieldError);
47838
48116
  const variantClass = inputvariant !== 'input-outline' ? `input-${inputvariant}` : '';
47839
48117
  const isOutline = inputvariant === 'input-outline';
47840
48118
  const errorId = `${alias}-error`;
@@ -47866,7 +48144,7 @@ const StockInput = (_a) => {
47866
48144
  React.createElement(p$5, { align: "center", style: { flex: 1, height: '100%', justifyContent: 'flex-end' } },
47867
48145
  React.createElement(IMaskInput, { id: `${alias}FormInput`, name: alias, "aria-describedby": `${alias}InputLabel`, mask: Number, scale: 2, readOnly: readOnly,
47868
48146
  // @ts-expect-error: known library type definition gap
47869
- signed: String(false), thousandsSeparator: ",", padFractionalZeros: true, normalizeZeros: true, radix: ".", mapToRadix: ['.'], value: priceField.value !== undefined && priceField.value !== null ? String(priceField.value) : '', unmask: true, onAccept: (val) => setFieldValue(alias, val), onBlur: () => setFieldTouched(alias, true), placeholder: placeholder || "0.00", style: {
48147
+ signed: String(false), thousandsSeparator: ",", padFractionalZeros: true, normalizeZeros: true, radix: ".", mapToRadix: ['.'], value: fieldValue !== undefined && fieldValue !== null ? String(fieldValue) : '', unmask: true, onAccept: (val) => setFieldValue(alias, val), onBlur: () => setFieldTouched(alias, true, false), placeholder: placeholder || "0.00", style: {
47870
48148
  border: 'none',
47871
48149
  outline: 'none',
47872
48150
  background: 'transparent',
@@ -47879,19 +48157,27 @@ const StockInput = (_a) => {
47879
48157
  fontFamily: 'var(--default-font-family)',
47880
48158
  }, inputMode: "decimal", autoComplete: "off" }))),
47881
48159
  React.createElement("div", null,
47882
- React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: `${alias}FormInput` }, inputLabel),
48160
+ inputLabel && (React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: `${alias}FormInput` }, inputLabel)),
47883
48161
  "\u00A0",
47884
- isHinted && (React.createElement(e, { content: hintText || "No hint available" },
48162
+ isHinted && (React.createElement(e, { content: hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
47885
48163
  React.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer", style: { display: 'flex' } },
47886
48164
  React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
47887
- hasError && (React.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || `Required field`))))));
48165
+ hasError && (React.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || (typeof fieldError === 'string' ? fieldError : `Required field`)))))));
47888
48166
  };
47889
48167
 
47890
48168
  const RadioGroupInput = (_a) => {
47891
- var { inputtype = 'radio-outline', alias, readOnly, width, inputLabel, newRow, isHinted, hintText, hintUrl, errorText, style, inputOptions, direction = 'column', columns, className } = _a; __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "inputLabel", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "style", "inputOptions", "direction", "columns", "className"]);
47892
- const { setFieldValue, setFieldTouched } = formik.useFormikContext();
47893
- const [field, meta] = formik.useField(alias);
47894
- const hasError = Boolean(meta.touched && meta.error);
48169
+ var { inputtype = 'radio-outline', alias, readOnly, width, inputLabel, newRow, isHinted, hintText, hintUrl, errorText, style, inputOptions, direction = 'column', columns, className, formikContext } = _a; __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "inputLabel", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "style", "inputOptions", "direction", "columns", "className", "formikContext"]);
48170
+ const defaultFormikContext = formik.useFormikContext();
48171
+ const activeContext = formikContext || defaultFormikContext;
48172
+ if (!activeContext) {
48173
+ console.error(`RadioGroupInput '${alias}' must be used within a Formik provider or receive a formikContext prop.`);
48174
+ return null;
48175
+ }
48176
+ const { values, touched, errors, setFieldValue, setFieldTouched } = activeContext;
48177
+ const fieldValue = formik.getIn(values, alias);
48178
+ const fieldTouched = formik.getIn(touched, alias);
48179
+ const fieldError = formik.getIn(errors, alias);
48180
+ const hasError = Boolean(fieldTouched && fieldError);
47895
48181
  const containerRef = React.useRef(null);
47896
48182
  const [neuVars, setNeuVars] = React.useState({});
47897
48183
  const errorId = `${alias}-error`;
@@ -47942,15 +48228,15 @@ const RadioGroupInput = (_a) => {
47942
48228
  transform: none; /* Don't scale if pressed in */
47943
48229
  }
47944
48230
  ` } })),
47945
- React.createElement(I$1, { name: alias, id: `${alias}FormInput`, "aria-describedby": `${alias}InputLabel`, disabled: readOnly, value: field.value, onValueChange: (val) => {
48231
+ React.createElement(I$1, { name: alias, id: `${alias}FormInput`, "aria-describedby": `${alias}InputLabel`, disabled: readOnly, value: fieldValue !== undefined && fieldValue !== null ? String(fieldValue) : undefined, onValueChange: (val) => {
47946
48232
  setFieldValue(alias, val);
47947
- setTimeout(() => setFieldTouched(alias, true), 0);
48233
+ setTimeout(() => setFieldTouched(alias, true, false), 0);
47948
48234
  } },
47949
48235
  React.createElement(o$6, { columns: columns || (direction === 'row' ? 'repeat(auto-fit, minmax(100px, 1fr))' : '1'), gap: "3", style: neuVars }, inputOptions.map((inputoption) => {
47950
- const isChecked = String(field.value) === String(inputoption.optionvalue);
47951
- return (React.createElement(p$5, { asChild: true, key: inputoption.optionvalue, align: "center", gap: "2" },
48236
+ const isChecked = String(fieldValue) === String(inputoption.optionvalue);
48237
+ return (React.createElement(p$5, { asChild: true, key: String(inputoption.optionvalue), align: "center", gap: "2" },
47952
48238
  React.createElement(p$d, { as: "label", size: "2", style: { cursor: 'pointer' } },
47953
- React.createElement(y$1, { value: inputoption.optionvalue, className: inputtype === 'radio-neumorphic' ? 'neu-radio' : '', style: Object.assign({}, (inputtype === 'radio-outline' ? {
48239
+ React.createElement(y$1, { value: String(inputoption.optionvalue), className: inputtype === 'radio-neumorphic' ? 'neu-radio' : '', style: Object.assign({}, (inputtype === 'radio-outline' ? {
47954
48240
  border: isChecked ? '2px solid var(--accent-9)' : '2px solid var(--gray-8)',
47955
48241
  backgroundColor: 'transparent'
47956
48242
  } : {})) }),
@@ -47966,16 +48252,24 @@ const RadioGroupInput = (_a) => {
47966
48252
  React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
47967
48253
  hasError ?
47968
48254
  React.createElement(React.Fragment, null,
47969
- React.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || `Required field`)) : null))));
48255
+ React.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || (typeof fieldError === 'string' ? fieldError : `Required field`))) : null))));
47970
48256
  };
47971
48257
 
47972
48258
  const OptionSelect = (_a) => {
47973
- var { inputtype = 'dropdown-outline', alias, readOnly, width, inputLabel, placeholder, inputOptions, style, newRow, isHinted, hintText, hintUrl, errorText } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "inputLabel", "placeholder", "inputOptions", "style", "newRow", "isHinted", "hintText", "hintUrl", "errorText"]);
48259
+ var { inputtype = 'dropdown-outline', alias, readOnly, width, inputLabel, placeholder, inputOptions, style, newRow, isHinted, hintText, hintUrl, errorText, formikContext } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "inputLabel", "placeholder", "inputOptions", "style", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "formikContext"]);
47974
48260
  const triggerRef = React.useRef(null);
47975
48261
  const [neuVars, setNeuVars] = React.useState({});
47976
- const { setFieldValue, setFieldTouched } = formik.useFormikContext();
47977
- const [field, meta] = formik.useField(alias);
47978
- const hasError = Boolean(meta.touched && meta.error);
48262
+ const defaultFormikContext = formik.useFormikContext();
48263
+ const activeContext = formikContext || defaultFormikContext;
48264
+ if (!activeContext) {
48265
+ console.error(`OptionSelect '${alias}' must be used within a Formik provider or receive a formikContext prop.`);
48266
+ return null;
48267
+ }
48268
+ const { values, touched, errors, setFieldValue, setFieldTouched } = activeContext;
48269
+ const fieldValue = formik.getIn(values, alias);
48270
+ const fieldTouched = formik.getIn(touched, alias);
48271
+ const fieldError = formik.getIn(errors, alias);
48272
+ const hasError = Boolean(fieldTouched && fieldError);
47979
48273
  const errorId = `${alias}-error`;
47980
48274
  React.useEffect(() => {
47981
48275
  if (inputtype === 'dropdown-neumorphic' && triggerRef.current) {
@@ -48053,23 +48347,23 @@ const OptionSelect = (_a) => {
48053
48347
  cursor: pointer;
48054
48348
  }
48055
48349
  ` } })),
48056
- React.createElement(C$1, { name: alias, disabled: readOnly, value: field.value || "", onValueChange: (val) => {
48350
+ React.createElement(C$1, { name: alias, disabled: readOnly, value: fieldValue || "", onValueChange: (val) => {
48057
48351
  const finalVal = val === "__RESET__" ? "" : val;
48058
48352
  setFieldValue(alias, finalVal);
48059
- setTimeout(() => setFieldTouched(alias, true), 0);
48353
+ setTimeout(() => setFieldTouched(alias, true, false), 0);
48060
48354
  if (props.onValueChange)
48061
48355
  props.onValueChange(finalVal);
48062
48356
  }, onOpenChange: (isOpen) => {
48063
48357
  if (!isOpen) {
48064
- setFieldTouched(alias, true);
48358
+ setFieldTouched(alias, true, false);
48065
48359
  }
48066
48360
  } },
48067
48361
  React.createElement(u$1, Object.assign({ id: `${alias}FormInput`, ref: triggerRef, variant: "ghost", placeholder: placeholder || "Select an option", className: `${inputtype === 'dropdown-neumorphic' ? 'neu-select-trigger' : ''} ${props.className || ''}`, style: Object.assign(Object.assign({}, activeTriggerStyle), style) }, props)),
48068
48362
  React.createElement(g, { position: "popper", sideOffset: 5, style: activeContentStyle },
48069
48363
  React.createElement(v, { value: "__RESET__", className: inputtype === 'dropdown-neumorphic' ? 'neu-select-item' : '', style: { color: 'var(--gray-10)', fontStyle: 'italic' } }, placeholder || "Select an option"),
48070
48364
  React.createElement(o$2, { size: "4", style: { margin: '4px 0', opacity: 0.5 } }),
48071
- inputOptions.map((inputoption) => (React.createElement(React.Fragment, { key: inputoption.optionid || crypto.randomUUID() }, inputoption.optionurl ? (React.createElement(v, { id: String(inputoption.optionid) || '', value: inputoption.optionvalue, className: inputtype === 'dropdown-neumorphic' ? 'neu-select-item' : '' },
48072
- React.createElement("a", { onClick: (e) => { e.stopPropagation(); openLink(inputoption.optionurl || "#"); }, style: { textDecoration: 'none', color: 'inherit' } }, inputoption.text))) : (React.createElement(v, { id: String(inputoption.optionid) || '', value: inputoption.optionvalue, className: inputtype === 'dropdown-neumorphic' ? 'neu-select-item' : '' }, inputoption.text))))))),
48365
+ inputOptions.map((inputoption) => (React.createElement(React.Fragment, { key: inputoption.optionid || crypto.randomUUID() }, inputoption.optionurl ? (React.createElement(v, { id: String(inputoption.optionid) || '', value: String(inputoption.optionvalue), className: inputtype === 'dropdown-neumorphic' ? 'neu-select-item' : '' },
48366
+ React.createElement("a", { onClick: (e) => { e.stopPropagation(); openLink(inputoption.optionurl || "#"); }, style: { textDecoration: 'none', color: 'inherit' } }, inputoption.text))) : (React.createElement(v, { id: String(inputoption.optionid) || '', value: String(inputoption.optionvalue), className: inputtype === 'dropdown-neumorphic' ? 'neu-select-item' : '' }, inputoption.text))))))),
48073
48367
  React.createElement("div", null,
48074
48368
  React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: `${alias}FormInput` }, inputLabel),
48075
48369
  "\u00A0",
@@ -48078,18 +48372,25 @@ const OptionSelect = (_a) => {
48078
48372
  React.createElement(e, { content: hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
48079
48373
  React.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
48080
48374
  React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
48081
- hasError ?
48082
- React.createElement(React.Fragment, null,
48083
- React.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || meta.error || "Required field")) : null))));
48375
+ hasError && (React.createElement(React.Fragment, null,
48376
+ React.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || (typeof fieldError === 'string' ? fieldError : "Required field"))))))));
48084
48377
  };
48085
48378
 
48086
48379
  const MultipleSelect = (_a) => {
48087
48380
  var _b;
48088
- var { inputtype = 'multiselect-outline', alias, readOnly, width, inputLabel, placeholder = '', newRow, isHinted, hintText, hintUrl, errorText, style, inputOptions, className } = _a; __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "inputLabel", "placeholder", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "style", "inputOptions", "className"]);
48089
- const { setFieldValue, setFieldTouched } = formik.useFormikContext();
48090
- const [field, meta] = formik.useField(alias);
48091
- const selectedValues = (Array.isArray(field.value) ? field.value : []);
48092
- const hasError = Boolean(meta.touched && meta.error);
48381
+ var { inputtype = 'multiselect-outline', alias, readOnly, width, inputLabel, placeholder = '', newRow, isHinted, hintText, hintUrl, errorText, style, inputOptions, className, formikContext } = _a; __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "inputLabel", "placeholder", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "style", "inputOptions", "className", "formikContext"]);
48382
+ const defaultFormikContext = formik.useFormikContext();
48383
+ const activeContext = formikContext || defaultFormikContext;
48384
+ if (!activeContext) {
48385
+ console.error(`MultipleSelect '${alias}' must be used within a Formik provider or receive a formikContext prop.`);
48386
+ return null;
48387
+ }
48388
+ const { values, touched, errors, setFieldValue, setFieldTouched } = activeContext;
48389
+ const fieldValue = formik.getIn(values, alias);
48390
+ const fieldTouched = formik.getIn(touched, alias);
48391
+ const fieldError = formik.getIn(errors, alias);
48392
+ const selectedValues = (Array.isArray(fieldValue) ? fieldValue : []);
48393
+ const hasError = Boolean(fieldTouched && fieldError);
48093
48394
  const triggerRef = React.useRef(null);
48094
48395
  const [neuVars, setNeuVars] = React.useState({});
48095
48396
  const [isOpen, setIsOpen] = React.useState(false);
@@ -48099,11 +48400,11 @@ const MultipleSelect = (_a) => {
48099
48400
  ? selectedValues.filter((v) => v !== value) // Remove Unselected Values
48100
48401
  : [...selectedValues, value]; // Add Selected Values
48101
48402
  setFieldValue(alias, newValues);
48102
- setTimeout(() => setFieldTouched(alias, true), 0);
48403
+ setTimeout(() => setFieldTouched(alias, true, false), 0);
48103
48404
  };
48104
48405
  const displayLabel = selectedValues.length > 0
48105
48406
  ? inputOptions
48106
- .filter(inputoption => selectedValues.includes(inputoption.optionvalue))
48407
+ .filter(inputoption => selectedValues.includes(String(inputoption.optionvalue)))
48107
48408
  .map(inputoption => inputoption.text)
48108
48409
  .join(', ')
48109
48410
  : placeholder;
@@ -48144,9 +48445,14 @@ const MultipleSelect = (_a) => {
48144
48445
  return (React.createElement(Column, { span: width, newLine: newRow },
48145
48446
  React.createElement(p$5, { direction: "column", gap: "2", style: { width: '100%' } },
48146
48447
  React.createElement("input", { type: "hidden", name: alias, value: JSON.stringify(selectedValues) }),
48147
- React.createElement(P$1, { onOpenChange: setIsOpen },
48448
+ React.createElement(P$1, { onOpenChange: (open) => {
48449
+ setIsOpen(open);
48450
+ if (!open) {
48451
+ setFieldTouched(alias, true, false);
48452
+ }
48453
+ } },
48148
48454
  React.createElement(s$1, null,
48149
- React.createElement("button", { id: `${alias}FormInput`, type: "button", ref: triggerRef, className: className, style: Object.assign(Object.assign({}, activeTrigger), style), "aria-describedby": `${alias}InputLabel` },
48455
+ React.createElement("button", { id: `${alias}FormInput`, type: "button", ref: triggerRef, className: className, style: Object.assign(Object.assign({}, activeTrigger), style), "aria-describedby": `${alias}InputLabel`, disabled: readOnly },
48150
48456
  React.createElement("span", { style: {
48151
48457
  overflow: 'hidden',
48152
48458
  textOverflow: 'ellipsis',
@@ -48159,9 +48465,12 @@ const MultipleSelect = (_a) => {
48159
48465
  React.createElement(p$5, { direction: "column", gap: "1" }, inputOptions.map((inputoption) => {
48160
48466
  const isSelected = selectedValues.some((val) => String(val)
48161
48467
  === String(inputoption.optionvalue));
48162
- return (React.createElement(p$5, { id: String(inputoption.optionid) || '', key: inputoption.optionid, align: "center", gap: "2", onClick: () => handleToggle(inputoption.optionvalue), style: {
48468
+ return (React.createElement(p$5, { id: String(inputoption.optionid) || '', key: inputoption.optionid, align: "center", gap: "2", onClick: () => {
48469
+ if (!readOnly)
48470
+ handleToggle(String(inputoption.optionvalue));
48471
+ }, style: {
48163
48472
  padding: '8px',
48164
- cursor: 'pointer',
48473
+ cursor: readOnly ? 'default' : 'pointer',
48165
48474
  borderRadius: '4px',
48166
48475
  backgroundColor: isSelected ? 'var(--accent-a3)' : 'transparent',
48167
48476
  transition: 'background-color 0.1s'
@@ -48179,15 +48488,23 @@ const MultipleSelect = (_a) => {
48179
48488
  React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
48180
48489
  hasError ?
48181
48490
  React.createElement(React.Fragment, null,
48182
- React.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || `Required field`)) : null))));
48491
+ React.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || (typeof fieldError === 'string' ? fieldError : `Required field`))) : null))));
48183
48492
  };
48184
48493
 
48185
48494
  const SliderInput = (_a) => {
48186
- var { inputtype = 'slider-outline', alias, readOnly, width, inputLabel, newRow, isHinted, hintText, hintUrl, errorText, minvalue = 0, maxvalue = 100, stepvalue = 1, className, style } = _a; __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "inputLabel", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "minvalue", "maxvalue", "stepvalue", "className", "style"]);
48187
- const { setFieldValue, setFieldTouched } = formik.useFormikContext();
48188
- const [field, meta] = formik.useField(alias);
48189
- const fieldValue = Array.isArray(field.value) ? field.value : [field.value || minvalue];
48190
- const hasError = Boolean(meta.touched && meta.error);
48495
+ var { inputtype = 'slider-outline', alias, readOnly, width, inputLabel, newRow, isHinted, hintText, hintUrl, errorText, minvalue = 0, maxvalue = 100, stepvalue = 1, className, style, formikContext } = _a; __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "inputLabel", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "minvalue", "maxvalue", "stepvalue", "className", "style", "formikContext"]);
48496
+ const defaultFormikContext = formik.useFormikContext();
48497
+ const activeContext = formikContext || defaultFormikContext;
48498
+ if (!activeContext) {
48499
+ console.error(`SliderInput '${alias}' must be used within a Formik provider or receive a formikContext prop.`);
48500
+ return null;
48501
+ }
48502
+ const { values, touched, errors, setFieldValue, setFieldTouched } = activeContext;
48503
+ const fieldVal = formik.getIn(values, alias);
48504
+ const fieldTouched = formik.getIn(touched, alias);
48505
+ const fieldError = formik.getIn(errors, alias);
48506
+ const fieldValue = Array.isArray(fieldVal) ? fieldVal : [fieldVal || minvalue];
48507
+ const hasError = Boolean(fieldTouched && fieldError);
48191
48508
  const containerRef = React.useRef(null);
48192
48509
  const [neuVars, setNeuVars] = React.useState({});
48193
48510
  const errorId = `${alias}-error`;
@@ -48266,7 +48583,7 @@ const SliderInput = (_a) => {
48266
48583
  React.createElement(s, { name: alias, id: `${alias}FormInput`, disabled: readOnly, "aria-describedby": `${alias}InputLabel`, min: minvalue, max: maxvalue, step: stepvalue, value: fieldValue, onValueChange: (val) => {
48267
48584
  setFieldValue(alias, val[0]);
48268
48585
  }, onValueCommit: () => {
48269
- setFieldTouched(alias, true);
48586
+ setFieldTouched(alias, true, false);
48270
48587
  }, className: inputtype === 'slider-neumorphic' ? 'neu-slider' : inputtype === 'slider-outline' ? 'outline-slider' : '', style: neuVars }),
48271
48588
  React.createElement("div", null,
48272
48589
  React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: `${alias}FormInput` }, inputLabel),
@@ -48278,22 +48595,30 @@ const SliderInput = (_a) => {
48278
48595
  React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
48279
48596
  hasError ?
48280
48597
  React.createElement(React.Fragment, null,
48281
- React.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || `Required field`)) : null))));
48598
+ React.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || (typeof fieldError === 'string' ? fieldError : `Required field`))) : null))));
48282
48599
  };
48283
48600
 
48284
48601
  const RangeSlider = (_a) => {
48285
- var { inputtype = 'range-outline', alias, readOnly, width, inputLabel, newRow, isHinted, hintText, hintUrl, errorText, minvalue = 0, maxvalue = 100, stepvalue = 1, minStepsBetweenThumbs = 0, className, style } = _a; __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "inputLabel", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "minvalue", "maxvalue", "stepvalue", "minStepsBetweenThumbs", "className", "style"]);
48286
- const { setFieldValue, setFieldTouched } = formik.useFormikContext();
48287
- const [field, meta] = formik.useField(alias);
48602
+ var { inputtype = 'range-outline', alias, readOnly, width, inputLabel, newRow, isHinted, hintText, hintUrl, errorText, minvalue = 0, maxvalue = 100, stepvalue = 1, minStepsBetweenThumbs = 0, className, style, formikContext } = _a; __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "inputLabel", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "minvalue", "maxvalue", "stepvalue", "minStepsBetweenThumbs", "className", "style", "formikContext"]);
48603
+ const defaultFormikContext = formik.useFormikContext();
48604
+ const activeContext = formikContext || defaultFormikContext;
48605
+ if (!activeContext) {
48606
+ console.error(`RangeSlider '${alias}' must be used within a Formik provider or receive a formikContext prop.`);
48607
+ return null;
48608
+ }
48609
+ const { values, touched, errors, setFieldValue, setFieldTouched } = activeContext;
48610
+ const fieldVal = formik.getIn(values, alias);
48611
+ const fieldTouched = formik.getIn(touched, alias);
48612
+ const fieldError = formik.getIn(errors, alias);
48288
48613
  // Range Formik Logic
48289
48614
  // Synopsis
48290
48615
  // Radix slider component requires an array.
48291
- // If field.value is [20, 80] pass [20, 80].
48292
- // If field.value is 50 we pass [50].
48293
- // If field.value is undefined, default to [min] or [min, max].
48294
- const isRange = Array.isArray(field.value);
48295
- const fieldValue = isRange ? field.value : [field.value || minvalue];
48296
- const hasError = Boolean(meta.touched && meta.error);
48616
+ // If field value is [20, 80] pass [20, 80].
48617
+ // If field value is 50 we pass [50].
48618
+ // If field value is undefined, default to [min] or [min, max].
48619
+ const isRange = Array.isArray(fieldVal);
48620
+ const sliderValue = isRange ? fieldVal : [fieldVal || minvalue];
48621
+ const hasError = Boolean(fieldTouched && fieldError);
48297
48622
  const containerRef = React.useRef(null);
48298
48623
  const [neuVars, setNeuVars] = React.useState({});
48299
48624
  const errorId = `${alias}-error`;
@@ -48311,7 +48636,7 @@ const RangeSlider = (_a) => {
48311
48636
  return (React.createElement(Column, { span: width, newLine: newRow },
48312
48637
  React.createElement(p$5, { direction: "column", gap: "3", width: "100%", ref: containerRef, style: style, className: className },
48313
48638
  React.createElement(p$5, { justify: "between", align: "center" },
48314
- React.createElement(p$d, { size: "2", color: "gray", style: { fontVariantNumeric: 'tabular-nums' } }, fieldValue.join(' - '))),
48639
+ React.createElement(p$d, { size: "2", color: "gray", style: { fontVariantNumeric: 'tabular-nums' } }, sliderValue.join(' - '))),
48315
48640
  React.createElement("style", { dangerouslySetInnerHTML: { __html: `
48316
48641
  /* Neumorphic */
48317
48642
  .neu-slider .rt-SliderTrack {
@@ -48342,12 +48667,12 @@ const RangeSlider = (_a) => {
48342
48667
  background-color: white; border: 2px solid var(--accent-9); box-shadow: none;
48343
48668
  }
48344
48669
  ` } }),
48345
- React.createElement(s, { name: alias, id: `${alias}FormInput`, disabled: readOnly, "aria-describedby": `${alias}InputLabel`, min: minvalue, max: maxvalue, step: stepvalue, minStepsBetweenThumbs: minStepsBetweenThumbs, value: fieldValue, onValueChange: (val) => {
48670
+ React.createElement(s, { name: alias, id: `${alias}FormInput`, disabled: readOnly, "aria-describedby": `${alias}InputLabel`, min: minvalue, max: maxvalue, step: stepvalue, minStepsBetweenThumbs: minStepsBetweenThumbs, value: sliderValue, onValueChange: (val) => {
48346
48671
  // LOGIC SYNOPSIS:
48347
48672
  // If Range, set value as array.
48348
48673
  // If Slider, set value as first value.
48349
48674
  setFieldValue(alias, isRange ? val : val[0]);
48350
- }, onValueCommit: () => setFieldTouched(alias, true), className: inputtype === 'range-neumorphic' ? 'neu-slider' : inputtype === 'range-outline' ? 'outline-slider' : '', style: neuVars }),
48675
+ }, onValueCommit: () => setFieldTouched(alias, true, false), className: inputtype === 'range-neumorphic' ? 'neu-slider' : inputtype === 'range-outline' ? 'outline-slider' : '', style: neuVars }),
48351
48676
  React.createElement("div", null,
48352
48677
  React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: `${alias}FormInput` }, inputLabel),
48353
48678
  "\u00A0",
@@ -48358,14 +48683,22 @@ const RangeSlider = (_a) => {
48358
48683
  React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
48359
48684
  hasError ?
48360
48685
  React.createElement(React.Fragment, null,
48361
- React.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || `Required field`)) : null))));
48686
+ React.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || (typeof fieldError === 'string' ? fieldError : `Required field`))) : null))));
48362
48687
  };
48363
48688
 
48364
48689
  const Toggle = (_a) => {
48365
- var { inputtype = 'toggle-neumorphic', alias, readOnly, width, inputLabel, style, children, newRow, isHinted, hintText, hintUrl, errorText, icon = 'stack' } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "inputLabel", "style", "children", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "icon"]);
48366
- const { setFieldValue, setFieldTouched } = formik.useFormikContext();
48367
- const [field, meta] = formik.useField(alias);
48368
- const hasError = Boolean(meta.touched && meta.error);
48690
+ var { inputtype = 'toggle-neumorphic', alias, readOnly, width, inputLabel, style, children, newRow, isHinted, hintText, hintUrl, errorText, icon = 'layers', formikContext } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "inputLabel", "style", "children", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "icon", "formikContext"]);
48691
+ const defaultFormikContext = formik.useFormikContext();
48692
+ const activeContext = formikContext || defaultFormikContext;
48693
+ if (!activeContext) {
48694
+ console.error(`xForm Toggle '${alias}' must be used within a Formik context provider or receive a formikContext prop.`);
48695
+ return null;
48696
+ }
48697
+ const { values, touched, errors, setFieldValue, setFieldTouched } = activeContext;
48698
+ const fieldValue = formik.getIn(values, alias) || false;
48699
+ const fieldTouched = formik.getIn(touched, alias);
48700
+ const fieldError = formik.getIn(errors, alias);
48701
+ const hasError = Boolean(fieldTouched && fieldError);
48369
48702
  const containerRef = React.useRef(null);
48370
48703
  const [neuVars, setNeuVars] = React.useState({
48371
48704
  '--neu-bg': '#ecf0f3',
@@ -48399,14 +48732,14 @@ const Toggle = (_a) => {
48399
48732
  const handleToggle = (val) => {
48400
48733
  if (!readOnly) {
48401
48734
  setFieldValue(alias, val);
48402
- setFieldTouched(alias, true);
48735
+ setFieldTouched(alias, true, false);
48403
48736
  }
48404
48737
  };
48405
- const iconColor = field.value && !readOnly ? 'var(--accent-9)' : 'var(--gray-8)';
48738
+ const iconColor = fieldValue && !readOnly ? 'var(--accent-9)' : 'var(--gray-8)';
48406
48739
  return (React.createElement(Column, { span: width, newLine: newRow },
48407
48740
  React.createElement("div", { ref: containerRef, style: { width: '100%', display: 'flex', flexDirection: 'column', gap: '4px' } },
48408
48741
  inputtype === 'toggle-neumorphic' ? (React.createElement("div", { style: { display: 'flex', alignItems: 'center', gap: '12px' } },
48409
- React.createElement("div", { className: "neu-toggle-wrapper", style: Object.assign(Object.assign({}, neuVars), { opacity: readOnly ? 0.6 : 1, pointerEvents: readOnly ? 'none' : 'auto' }), onClick: () => handleToggle(!field.value) },
48742
+ React.createElement("div", { className: "neu-toggle-wrapper", style: Object.assign(Object.assign({}, neuVars), { opacity: readOnly ? 0.6 : 1, pointerEvents: readOnly ? 'none' : 'auto' }), onClick: () => handleToggle(!fieldValue) },
48410
48743
  React.createElement("style", { dangerouslySetInnerHTML: { __html: `
48411
48744
  .neu-toggle-wrapper {
48412
48745
  isolation: isolate;
@@ -48444,13 +48777,13 @@ const Toggle = (_a) => {
48444
48777
  transform: translate3d(25%, 0, 0);
48445
48778
  }
48446
48779
  ` } }),
48447
- React.createElement("input", { id: `${alias}FormInput`, className: "neu-toggle-state", type: "checkbox", checked: !!field.value, readOnly: true }),
48780
+ React.createElement("input", { id: `${alias}FormInput`, className: "neu-toggle-state", type: "checkbox", checked: !!fieldValue, readOnly: true }),
48448
48781
  React.createElement("div", { className: "neu-indicator" })),
48449
48782
  React.createElement(Icon, { name: icon, height: "20", width: "20", color: iconColor, style: {
48450
48783
  transition: 'color 0.3s ease',
48451
48784
  opacity: readOnly ? 0.5 : 1,
48452
48785
  cursor: 'pointer'
48453
- }, onClick: () => handleToggle(!field.value) }))) : (React.createElement(Root, { pressed: field.value, onPressedChange: handleToggle, name: alias, disabled: readOnly, id: `${alias}FormInput`, "aria-describedby": `${alias}InputLabel`, asChild: true },
48786
+ }, onClick: () => handleToggle(!fieldValue) }))) : (React.createElement(Root, { pressed: fieldValue, onPressedChange: handleToggle, name: alias, disabled: readOnly, id: `${alias}FormInput`, "aria-describedby": `${alias}InputLabel`, asChild: true },
48454
48787
  React.createElement(o$a, Object.assign({ disabled: readOnly }, props, { className: `design-toggle ${inputtype} ${props.className || ''}`, style: Object.assign(Object.assign(Object.assign(Object.assign({}, style), (inputtype === 'toggle' ? materialStyle : {})), (inputtype === 'toggle-material' ? materialStyle : {})), (inputtype === 'toggle-outline' ? outlineStyle : {})), type: "button" }),
48455
48788
  React.createElement("style", { dangerouslySetInnerHTML: { __html: `
48456
48789
  .design-toggle.toggle-material[data-state='on'] {
@@ -48479,7 +48812,7 @@ const Toggle = (_a) => {
48479
48812
  isHinted && (React.createElement(e, { content: hintText || "No hint available" },
48480
48813
  React.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer", style: { marginLeft: 6 } },
48481
48814
  React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
48482
- hasError && (React.createElement(p$d, { size: "1", color: "red", style: { display: 'block', marginTop: 2 } }, errorText || `Required field`))))));
48815
+ hasError && (React.createElement(p$d, { size: "1", color: "red", style: { display: 'block', marginTop: 2 } }, errorText || fieldError || `Required field`))))));
48483
48816
  };
48484
48817
 
48485
48818
  const SectionTitle = ({ title, width = 12, newRow = true, size = "5", subsize = "2", subTitle, align = "left", letterSpacing = "0.13em", withSeparator = true, className, backgroundColor, icon, titleColor, subtitleColor }) => {
@@ -48813,7 +49146,7 @@ const CodexItem = ({ stepId, children, }) => {
48813
49146
  return (React.createElement("div", { className: "v-step-content-animation", style: { width: '100%' } }, children));
48814
49147
  };
48815
49148
 
48816
- const CodexControls = ({ nextStepId, prevStepId, nextLabel = "Continue", prevLabel = "Back", finishLabel = "Submit", prevIcon = "doublearrowleft", nextIcon = "doublearrowright", finishIcon = "paperplane", onNext, onPrev, onFinish }) => {
49149
+ const CodexControls = ({ nextStepId, prevStepId, nextLabel = "Continue", prevLabel = "Back", finishLabel = "Submit", prevIcon = "doublearrowleft", nextIcon = "doublearrowright", finishIcon = "paperplane", onSubmit = false, onNext, onPrev, onFinish }) => {
48817
49150
  const { setActiveStepId, brandColor } = useStepper();
48818
49151
  const handlePrev = () => {
48819
49152
  if (onPrev)
@@ -48838,7 +49171,7 @@ const CodexControls = ({ nextStepId, prevStepId, nextLabel = "Continue", prevLab
48838
49171
  React.createElement(Icon, { name: prevIcon }),
48839
49172
  "\u00A0")),
48840
49173
  prevLabel)) : (React.createElement("div", null)),
48841
- React.createElement(o$a, { variant: "solid", color: brandColor ? undefined : (nextStepId ? "blue" : "green"), onClick: handleNext, style: Object.assign({ cursor: 'pointer' }, (brandColor ? { backgroundColor: 'var(--codex-brand)', color: '#fff' } : {})) }, nextStepId ? (React.createElement(React.Fragment, null,
49174
+ React.createElement(o$a, { variant: "solid", color: brandColor ? undefined : (nextStepId ? "blue" : "green"), onClick: handleNext, style: Object.assign({ cursor: 'pointer' }, (brandColor ? { backgroundColor: 'var(--codex-brand)', color: '#fff' } : {})), type: onSubmit && !nextStepId ? "submit" : "button" }, nextStepId ? (React.createElement(React.Fragment, null,
48842
49175
  nextIcon && React.createElement(React.Fragment, null,
48843
49176
  React.createElement(Icon, { name: nextIcon }),
48844
49177
  "\u00A0"),
@@ -48865,22 +49198,22 @@ const phoneInputType = ["phone", "phoneinput", "phone-input", "input-phone", "in
48865
49198
  const creditCardInputType = ["creditcard", "creditcardinput", "creditcard-input", "input-creditcard", "inputcreditcard"];
48866
49199
  const currencyInputType = ["currency", "currencyinput", "currency-input", "input-currency", "inputcurrency"];
48867
49200
  const stockInputType = ["stock", "stockinput", "stock-input", "input-stock", "inputstock"];
48868
- const radioInputType = ["radio", "radioinput", "radio-input", "input-radio", "inputradio"];
48869
- const selectInputType = ["select", "selectinput", "select-input", "input-select", "inputselect"];
49201
+ const radioInputType = ["radio", "radioinput", "radio-input", "input-radio", "inputradio", "radiogroup", "radiogroup-input"];
49202
+ const selectInputType = ["select", "selectinput", "select-input", "input-select", "inputselect", "optionselect", "optionselect-input", "input-optionselect"];
48870
49203
  const selectMultipleInputType = ["selectmultiple", "selectmultipleinput", "selectmultiple-input", "input-selectmultiple", "inputselectmultiple"];
48871
49204
  const sliderInputType = ["slider", "sliderinput", "slider-input", "input-slider", "inputslider"];
48872
49205
  const rangeSliderInputType = ["range", "rangeslider", "rangeinput", "rangesliderinput", "rangeslider-input", "range-input", "input-rangeslider", "inputrangeslider"];
48873
49206
  const toggleInputType = ["toggle", "switch", "toggleinput", "toggle-input", "input-toggle", "inputtoggle"];
48874
49207
  const conditionalInputType = ["conditional", "conditionaltoggle", "conditionalcheckbox", "conditionalselect", "conditional-toggle", "conditional-select", "conditional-checkbox"];
48875
49208
 
48876
- const Teletraan1 = ({ xFormModel, readOnlyMode = false, displayMode = 'codice', brandColor = "#000000" }) => {
49209
+ const Teletraan1 = ({ xFormModel, readOnlyMode = false, displayMode = 'codice', brandColor = "#000000", onPrev, onNext, onFinish }) => {
48877
49210
  const [dualToggled, setDualToggled] = React.useState(false);
48878
49211
  const [neuVars] = React.useState({
48879
49212
  '--neu-bg': '#ecf0f3',
48880
49213
  '--neu-shadow-light': '#ffffff',
48881
49214
  '--neu-shadow-dark': '#d1d9e6'
48882
49215
  });
48883
- const inputAlphaTrion = (inputAlias, inputType, inputWidth, inputLabel, inputMinValue, inputMaxValue, defaultValue, inputOptions, stepValue, inputHeight, toggledInput, newRow, inputPlaceholder, readOnly, isHinted, hintText, hintUrl, errorText, inputUID) => {
49216
+ const inputAlphaTrion = (inputAlias, inputType, inputWidth, inputLabel, inputMinValue, inputMaxValue, defaultValue, inputOptions, stepValue, inputHeight, toggledInput, triggerValue, newRow, inputPlaceholder, readOnly, isHinted, hintText, hintUrl, errorText, inputUID) => {
48884
49217
  if (inputWidth == null || inputWidth > 12)
48885
49218
  inputWidth = 4;
48886
49219
  if (inputHeight == null)
@@ -48896,7 +49229,7 @@ const Teletraan1 = ({ xFormModel, readOnlyMode = false, displayMode = 'codice',
48896
49229
  case buttonInputType.includes(normalizedType):
48897
49230
  return React.createElement(ButtonInput, { alias: inputAlias, width: inputWidth, readOnly: readOnly, newRow: newRow, key: inputUID }, defaultValue);
48898
49231
  case checkboxInputType.includes(normalizedType):
48899
- return React.createElement(CheckboxGroupInput, { alias: inputAlias, width: inputWidth, inputLabel: inputLabel, inputOptions: inputOptions, newRow: newRow, readOnly: readOnly, isHinted: isHinted, hintText: hintText, hintUrl: hintUrl, key: inputUID, errorText: errorText });
49232
+ return React.createElement(CheckboxGroupInput, { alias: inputAlias, width: inputWidth, inputLabel: inputLabel, inputOptions: inputOptions || [InputOptionsPlaceholder], newRow: newRow, readOnly: readOnly, isHinted: isHinted, hintText: hintText, hintUrl: hintUrl, key: inputUID, errorText: errorText });
48900
49233
  case conditionalInputType.includes(normalizedType):
48901
49234
  return React.createElement(ConditionalTrigger, { alias: inputAlias, width: inputWidth, inputLabel: inputLabel, inputOptions: inputOptions, newRow: newRow, readOnly: readOnly, isHinted: isHinted, triggerValue: defaultValue, hintText: hintText, hintUrl: hintUrl, key: inputUID, errorText: errorText, children: toggledInput });
48902
49235
  case datePickerInputType.includes(normalizedType):
@@ -48906,7 +49239,7 @@ const Teletraan1 = ({ xFormModel, readOnlyMode = false, displayMode = 'codice',
48906
49239
  case dateTimePickerInputType.includes(normalizedType):
48907
49240
  return React.createElement(DateRangePicker, { alias: inputAlias, inputLabel: inputLabel, width: inputWidth, newRow: newRow, readOnly: readOnly, isHinted: isHinted, hintText: hintText, hintUrl: hintUrl, key: inputUID, errorText: errorText });
48908
49241
  case dropdownInputType.includes(normalizedType):
48909
- return React.createElement(Dropdown, { alias: inputAlias, inputLabel: inputLabel, width: inputWidth, inputOptions: inputOptions, newRow: newRow, readOnly: readOnly, isHinted: isHinted, hintText: hintText, hintUrl: hintUrl, key: inputUID, errorText: errorText });
49242
+ return React.createElement(Dropdown, { alias: inputAlias, inputLabel: inputLabel, width: inputWidth, inputOptions: inputOptions || [InputOptionsPlaceholder], newRow: newRow, readOnly: readOnly, isHinted: isHinted, hintText: hintText, hintUrl: hintUrl, key: inputUID, errorText: errorText });
48910
49243
  case fileInputType.includes(normalizedType):
48911
49244
  return React.createElement(File$1, { alias: inputAlias, inputLabel: inputLabel, width: inputWidth, newRow: newRow, readOnly: readOnly, isHinted: isHinted, hintText: hintText, hintUrl: hintUrl, key: inputUID, errorText: errorText, preview: true });
48912
49245
  case fileMultipleInputType.includes(normalizedType):
@@ -48926,11 +49259,11 @@ const Teletraan1 = ({ xFormModel, readOnlyMode = false, displayMode = 'codice',
48926
49259
  case stockInputType.includes(normalizedType):
48927
49260
  return React.createElement(StockInput, { alias: inputAlias, inputLabel: inputLabel, width: inputWidth, placeholder: inputPlaceholder, defaultvalue: defaultValue, newRow: newRow, readOnly: readOnly, isHinted: isHinted, hintText: hintText, hintUrl: hintUrl, key: inputUID, errorText: errorText });
48928
49261
  case radioInputType.includes(normalizedType):
48929
- return React.createElement(RadioGroupInput, { alias: inputAlias, inputLabel: inputLabel, width: inputWidth, inputOptions: inputOptions, newRow: newRow, readOnly: readOnly, isHinted: isHinted, hintText: hintText, hintUrl: hintUrl, key: inputUID, errorText: errorText });
49262
+ return React.createElement(RadioGroupInput, { alias: inputAlias, inputLabel: inputLabel, width: inputWidth, inputOptions: inputOptions || [InputOptionsPlaceholder], newRow: newRow, readOnly: readOnly, isHinted: isHinted, hintText: hintText, hintUrl: hintUrl, key: inputUID, errorText: errorText });
48930
49263
  case selectInputType.includes(normalizedType):
48931
- return React.createElement(OptionSelect, { alias: inputAlias, inputLabel: inputLabel, width: inputWidth, inputOptions: inputOptions, newRow: newRow, readOnly: readOnly, isHinted: isHinted, hintText: hintText, hintUrl: hintUrl, key: inputUID, errorText: errorText });
49264
+ return React.createElement(OptionSelect, { alias: inputAlias, inputLabel: inputLabel, width: inputWidth, inputOptions: inputOptions || [InputOptionsPlaceholder], newRow: newRow, readOnly: readOnly, isHinted: isHinted, hintText: hintText, hintUrl: hintUrl, key: inputUID, errorText: errorText });
48932
49265
  case selectMultipleInputType.includes(normalizedType):
48933
- return React.createElement(MultipleSelect, { alias: inputAlias, inputLabel: inputLabel, width: inputWidth, inputOptions: inputOptions, newRow: newRow, readOnly: readOnly, isHinted: isHinted, hintText: hintText, hintUrl: hintUrl, key: inputUID, errorText: errorText });
49266
+ return React.createElement(MultipleSelect, { alias: inputAlias, inputLabel: inputLabel, width: inputWidth, inputOptions: inputOptions || [InputOptionsPlaceholder], newRow: newRow, readOnly: readOnly, isHinted: isHinted, hintText: hintText, hintUrl: hintUrl, key: inputUID, errorText: errorText });
48934
49267
  case sliderInputType.includes(normalizedType):
48935
49268
  return React.createElement(SliderInput, { alias: inputAlias, inputLabel: inputLabel, width: inputWidth, stepvalue: Number(stepValue), minvalue: Number(inputMinValue), maxvalue: Number(inputMaxValue), newRow: newRow, readOnly: readOnly, isHinted: isHinted, hintText: hintText, hintUrl: hintUrl, key: inputUID, errorText: errorText });
48936
49269
  case rangeSliderInputType.includes(normalizedType):
@@ -48944,7 +49277,9 @@ const Teletraan1 = ({ xFormModel, readOnlyMode = false, displayMode = 'codice',
48944
49277
  const renderQueries = (queries) => {
48945
49278
  if (!queries)
48946
49279
  return null;
48947
- return queries.map((xFormelement) => (React.createElement(React.Fragment, { key: xFormelement.queryId }, inputAlphaTrion(xFormelement.inputAlias, xFormelement.inputType, xFormelement.inputWidth, xFormelement.inputLabel, Number(xFormelement.minValue), Number(xFormelement.maxValue), xFormelement.defaultValue, [InputOptionsPlaceholder], xFormelement.stepValue, xFormelement.inputHeight, xFormelement.toggledInput ? inputAlphaTrion(xFormelement.toggledInput.inputAlias, xFormelement.toggledInput.inputType, xFormelement.toggledInput.inputWidth, xFormelement.toggledInput.inputLabel, Number(xFormelement.toggledInput.minValue), Number(xFormelement.toggledInput.maxValue), xFormelement.toggledInput.defaultValue, [InputOptionsPlaceholder], xFormelement.toggledInput.stepValue, xFormelement.toggledInput.inputHeight, null, xFormelement.toggledInput.newRow, xFormelement.toggledInput.inputPlaceholder, readOnlyMode, xFormelement.toggledInput.isHinted, xFormelement.toggledInput.hintText || "", xFormelement.toggledInput.hintUrl || "", xFormelement.toggledInput.errorText, String(xFormelement.toggledInput.queryId) || crypto.randomUUID()) : null, xFormelement.newRow, xFormelement.inputPlaceholder, readOnlyMode, xFormelement.isHinted, xFormelement.hintText || "", xFormelement.hintUrl || "", xFormelement.errorText, String(xFormelement.queryId) || crypto.randomUUID()))));
49280
+ return queries.map((xFormelement) => (React.createElement(React.Fragment, { key: xFormelement.queryId }, inputAlphaTrion(xFormelement.inputAlias, xFormelement.inputType, xFormelement.inputWidth, xFormelement.inputLabel, String(xFormelement.minValue), String(xFormelement.maxValue), xFormelement.defaultValue, xFormelement.inputOptions, xFormelement.stepValue, xFormelement.inputHeight,
49281
+ // Conditional ToggledInput (React Node) recursive handling
49282
+ xFormelement.toggledInput ? inputAlphaTrion(xFormelement.toggledInput.inputAlias, xFormelement.toggledInput.inputType, xFormelement.toggledInput.inputWidth, xFormelement.toggledInput.inputLabel, String(xFormelement.toggledInput.minValue), String(xFormelement.toggledInput.maxValue), xFormelement.toggledInput.defaultValue, xFormelement.toggledInput.inputOptions, xFormelement.toggledInput.stepValue, xFormelement.toggledInput.inputHeight, null, null, xFormelement.toggledInput.newRow, xFormelement.toggledInput.inputPlaceholder, readOnlyMode, xFormelement.toggledInput.isHinted, xFormelement.toggledInput.hintText || "", xFormelement.toggledInput.hintUrl || "", xFormelement.toggledInput.errorText, String(xFormelement.toggledInput.queryId) || crypto.randomUUID()) : null, xFormelement.triggerValue, xFormelement.newRow, xFormelement.inputPlaceholder, readOnlyMode, xFormelement.isHinted, xFormelement.hintText || "", xFormelement.hintUrl || "", xFormelement.errorText, String(xFormelement.queryId) || crypto.randomUUID()))));
48948
49283
  };
48949
49284
  const renderDisplayMode = () => {
48950
49285
  switch (displayMode) {
@@ -48993,7 +49328,7 @@ const Teletraan1 = ({ xFormModel, readOnlyMode = false, displayMode = 'codice',
48993
49328
  ` } }),
48994
49329
  React.createElement("input", { id: `teletraan1DualToggle`, className: "neu-toggle-state", type: "checkbox", checked: dualToggled, readOnly: true }),
48995
49330
  React.createElement("div", { className: "neu-indicator" })),
48996
- React.createElement(Icon, { name: "stack", height: "20", width: "20", color: brandColor, style: {
49331
+ React.createElement(Icon, { name: "layers", height: "20", width: "20", color: brandColor, style: {
48997
49332
  transition: 'color 0.3s ease',
48998
49333
  opacity: readOnlyMode ? 0.5 : 1,
48999
49334
  cursor: 'pointer'
@@ -49022,7 +49357,13 @@ const Teletraan1 = ({ xFormModel, readOnlyMode = false, displayMode = 'codice',
49022
49357
  const nextStepId = index < array.length - 1 ? String(array[index + 1].sectionId) : undefined;
49023
49358
  return (React.createElement(CodexItem, { key: formsection.sectionId, stepId: String(formsection.sectionId), title: formsection.title },
49024
49359
  React.createElement(Row, { key: formsection.sectionId }, renderQueries(formsection.queries)),
49025
- React.createElement(CodexControls, { prevStepId: prevStepId, nextStepId: nextStepId, onPrev: () => console.log(`Teletraan-1 Codex :: ${formsection.title} :: onPrev()`), onNext: () => console.log(`Teletraan-1 Codex :: ${formsection.title} :: onNext()`), onFinish: () => console.log(`Teletraan-1 Codex :: ${formsection.title} :: onFinish()`) })));
49360
+ React.createElement(CodexControls, { prevStepId: prevStepId, nextStepId: nextStepId, onPrev: () => {
49361
+ console.log(`Teletraan-1 Codex :: ${formsection.title} :: onPrev()`);
49362
+ }, onNext: () => {
49363
+ console.log(`Teletraan-1 Codex :: ${formsection.title} :: onNext()`);
49364
+ }, onFinish: () => {
49365
+ console.log(`Teletraan-1 Codex :: ${formsection.title} :: onFinish()`);
49366
+ } })));
49026
49367
  }))));
49027
49368
  case 'codice':
49028
49369
  default:
@@ -53485,12 +53826,13 @@ function superRefine(fn) {
53485
53826
 
53486
53827
  // JSON defintion (schema) for xForm object
53487
53828
  const InputOptionSchema = object({
53488
- optionId: number().or(uuid()),
53829
+ optionid: number().or(uuid()),
53489
53830
  text: string(),
53490
- tag: string().nullish(),
53491
- score: number().or(float64()).nullish(),
53492
- note: string().nullish(),
53493
- optionUrl: url().nullish(),
53831
+ optionvalue: string(),
53832
+ tag: string().optional(),
53833
+ score: number().or(float64()).optional(),
53834
+ note: string().optional(),
53835
+ optionurl: url().optional(),
53494
53836
  });
53495
53837
  const NestedQuerySchema = object({
53496
53838
  queryId: number().or(uuid()),
@@ -53510,9 +53852,9 @@ const NestedQuerySchema = object({
53510
53852
  hintText: string().nullish(),
53511
53853
  hintUrl: url().nullish(),
53512
53854
  queryResponse: any().nullable(),
53513
- inputOptions: array(InputOptionSchema).nullable().optional(),
53855
+ inputOptions: array(InputOptionSchema).optional(),
53514
53856
  toggledInput: any().nullable().optional(),
53515
- toggleTrigger: any().nullable().optional(),
53857
+ triggerValue: any().nullable().optional(),
53516
53858
  errorText: string().optional()
53517
53859
  });
53518
53860
  const QuerySchema = object({
@@ -53535,11 +53877,11 @@ const QuerySchema = object({
53535
53877
  queryResponse: any().nullable(),
53536
53878
  inputOptions: array(InputOptionSchema).optional(),
53537
53879
  toggledInput: NestedQuerySchema.nullable().optional(),
53538
- toggleTrigger: any().nullable().optional(),
53880
+ triggerValue: any().nullable().optional(),
53539
53881
  errorText: string().optional()
53540
53882
  });
53541
53883
  const SectionSchema = object({
53542
- sectionId: number(),
53884
+ sectionId: number().or(string()),
53543
53885
  title: string(),
53544
53886
  icon: string().nullable(),
53545
53887
  queries: array(QuerySchema)
@@ -53547,7 +53889,7 @@ const SectionSchema = object({
53547
53889
  const xFormSchema = object({
53548
53890
  uuid: uuid(),
53549
53891
  name: string(),
53550
- logo: string().nullable(),
53892
+ logo: url().nullable(),
53551
53893
  brandcolor: string().nullable(),
53552
53894
  logoPosition: string().nullable(),
53553
53895
  model: array(SectionSchema),