@emeraldemperaur/vector-sigma 1.4.32 → 1.4.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.esm.js CHANGED
@@ -15904,6 +15904,28 @@ var HamburgerMenuIcon = /*#__PURE__*/forwardRef(function (_ref, forwardedRef) {
15904
15904
  }));
15905
15905
  });
15906
15906
 
15907
+ var _excluded$2u = ["color"];
15908
+ var HeadingIcon = /*#__PURE__*/forwardRef(function (_ref, forwardedRef) {
15909
+ var _ref$color = _ref.color,
15910
+ color = _ref$color === void 0 ? 'currentColor' : _ref$color,
15911
+ props = _objectWithoutPropertiesLoose$7(_ref, _excluded$2u);
15912
+
15913
+ return createElement("svg", Object.assign({
15914
+ width: "15",
15915
+ height: "15",
15916
+ viewBox: "0 0 15 15",
15917
+ fill: "none",
15918
+ xmlns: "http://www.w3.org/2000/svg"
15919
+ }, props, {
15920
+ ref: forwardedRef
15921
+ }), createElement("path", {
15922
+ d: "M8.75432 2.0502C8.50579 2.0502 8.30432 2.25167 8.30432 2.5002C8.30432 2.74873 8.50579 2.9502 8.75432 2.9502H9.94997V7.05004H5.04997V2.9502H6.25432C6.50285 2.9502 6.70432 2.74873 6.70432 2.5002C6.70432 2.25167 6.50285 2.0502 6.25432 2.0502H2.75432C2.50579 2.0502 2.30432 2.25167 2.30432 2.5002C2.30432 2.74873 2.50579 2.9502 2.75432 2.9502H3.94997V12.0502H2.75432C2.50579 12.0502 2.30432 12.2517 2.30432 12.5002C2.30432 12.7487 2.50579 12.9502 2.75432 12.9502H6.25432C6.50285 12.9502 6.70432 12.7487 6.70432 12.5002C6.70432 12.2517 6.50285 12.0502 6.25432 12.0502H5.04997V7.95004H9.94997V12.0502H8.75432C8.50579 12.0502 8.30432 12.2517 8.30432 12.5002C8.30432 12.7487 8.50579 12.9502 8.75432 12.9502H12.2543C12.5028 12.9502 12.7043 12.7487 12.7043 12.5002C12.7043 12.2517 12.5028 12.0502 12.2543 12.0502H11.05V2.9502H12.2543C12.5028 2.9502 12.7043 2.74873 12.7043 2.5002C12.7043 2.25167 12.5028 2.0502 12.2543 2.0502H8.75432Z",
15923
+ fill: color,
15924
+ fillRule: "evenodd",
15925
+ clipRule: "evenodd"
15926
+ }));
15927
+ });
15928
+
15907
15929
  var _excluded$2v = ["color"];
15908
15930
  var HeartIcon = /*#__PURE__*/forwardRef(function (_ref, forwardedRef) {
15909
15931
  var _ref$color = _ref.color,
@@ -17238,7 +17260,8 @@ const iconMap = {
17238
17260
  fontfamily: FontFamilyIcon,
17239
17261
  video: VideoIcon,
17240
17262
  shuffle: ShuffleIcon,
17241
- loop: LoopIcon
17263
+ loop: LoopIcon,
17264
+ heading: HeadingIcon,
17242
17265
  };
17243
17266
  const Icon = (_a) => {
17244
17267
  var { name } = _a, props = __rest$1(_a, ["name"]);
@@ -17619,7 +17642,7 @@ const CheckboxGroupInput = (_a) => {
17619
17642
  const hasError = Boolean(fieldTouched && fieldError);
17620
17643
  const containerRef = useRef(null);
17621
17644
  const [neuVars, setNeuVars] = useState({});
17622
- const inputId = `${alias}FormInput` || crypto.randomUUID();
17645
+ const inputId = `${alias}FormInput`;
17623
17646
  const errorId = `${alias}-error`;
17624
17647
  const handleCheckedChange = (checked, value) => {
17625
17648
  let newValues = [...currentValues];
@@ -17630,7 +17653,7 @@ const CheckboxGroupInput = (_a) => {
17630
17653
  newValues = newValues.filter((v) => String(v) !== String(value));
17631
17654
  }
17632
17655
  setFieldValue(alias, newValues);
17633
- setTimeout(() => setFieldTouched(alias, true), 0);
17656
+ setTimeout(() => setFieldTouched(alias, true, false), 0);
17634
17657
  };
17635
17658
  useEffect(() => {
17636
17659
  if (inputtype === 'checkbox-neumorphic' && containerRef.current) {
@@ -17644,35 +17667,33 @@ const CheckboxGroupInput = (_a) => {
17644
17667
  }
17645
17668
  }, [inputtype]);
17646
17669
  return (React__default.createElement(Column, { span: width, newLine: newRow },
17647
- React__default.createElement(p$5, { direction: "column", gap: "2", width: "100%", ref: containerRef, style: style, className: className },
17670
+ React__default.createElement(p$5, { direction: "row", gap: "2", width: "100%", ref: containerRef, style: style, className: className },
17648
17671
  inputtype === 'checkbox-neumorphic' && (React__default.createElement("style", { dangerouslySetInnerHTML: { __html: `
17649
17672
  .neu-checkbox .rt-CheckboxButton {
17650
17673
  background-color: var(--neu-bg);
17651
17674
  border: none;
17652
17675
  box-shadow: 3px 3px 6px var(--neu-shadow-dark), -3px -3px 6px var(--neu-shadow-light);
17653
17676
  border-radius: 4px;
17654
- width: 20px;
17655
- height: 20px;
17656
- transition: all 0.2s ease;
17677
+ width: 20px; height: 20px; transition: all 0.2s ease;
17657
17678
  }
17658
- /* Checked State: Pressed In */
17659
17679
  .neu-checkbox[data-state='checked'] .rt-CheckboxButton {
17660
17680
  box-shadow: inset 3px 3px 6px var(--neu-shadow-dark), inset -3px -3px 6px var(--neu-shadow-light);
17661
- background-color: var(--neu-bg); /* Keep bg same, let icon show color */
17662
- }
17663
- .neu-checkbox .rt-CheckboxIndicator {
17664
- color: var(--neu-check-color);
17681
+ background-color: var(--neu-bg);
17665
17682
  }
17683
+ .neu-checkbox .rt-CheckboxIndicator { color: var(--neu-check-color); }
17666
17684
  ` } })),
17667
- React__default.createElement(o$6, { columns: columns || (direction === 'row' ? 'repeat(auto-fit, minmax(100px, 1fr))' : '1'), gap: "3", style: neuVars }, inputOptions.map((inputoption) => {
17668
- const isChecked = currentValues.some(val => String(val) === String(inputoption.optionvalue));
17669
- return (React__default.createElement(p$d, { as: "label", key: String(inputoption.optionvalue) || crypto.randomUUID(), size: "2", style: {
17685
+ React__default.createElement(o$6, { columns: columns || (direction === 'row' ? 'repeat(auto-fit, minmax(100px, 1fr))' : '1'), gap: "3", style: neuVars, id: inputId }, inputOptions.map((inputoption, idx) => {
17686
+ const optionVal = String(inputoption.optionvalue);
17687
+ const isChecked = currentValues.some(val => String(val) === optionVal);
17688
+ const itemKey = `${alias}-chk-${inputoption.optionid || idx}`;
17689
+ const itemId = `${alias}FormInput${inputoption.optionid || idx}`;
17690
+ return (React__default.createElement(p$d, { as: "label", key: itemKey, size: "2", style: {
17670
17691
  display: 'flex',
17671
17692
  alignItems: 'center',
17672
17693
  gap: '8px',
17673
17694
  cursor: 'pointer'
17674
17695
  } },
17675
- React__default.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' ? {
17696
+ React__default.createElement(c$2, { name: alias, id: itemId, disabled: readOnly, value: optionVal, checked: isChecked, onCheckedChange: (checked) => handleCheckedChange(checked, optionVal), variant: inputtype === 'checkbox-outline' ? 'soft' : 'surface', className: inputtype === 'checkbox-neumorphic' ? 'neu-checkbox' : '', style: Object.assign({}, (inputtype === 'checkbox-outline' ? {
17676
17697
  border: isChecked ? '2px solid var(--accent-9)' : '2px solid var(--gray-8)',
17677
17698
  backgroundColor: 'transparent'
17678
17699
  } : {})) }),
@@ -17681,14 +17702,10 @@ const CheckboxGroupInput = (_a) => {
17681
17702
  React__default.createElement("div", null,
17682
17703
  React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: inputId }, inputLabel),
17683
17704
  "\u00A0",
17684
- isHinted ?
17685
- React__default.createElement(React__default.Fragment, null,
17686
- React__default.createElement(e, { content: hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
17687
- React__default.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
17688
- React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
17689
- hasError ?
17690
- React__default.createElement(React__default.Fragment, null,
17691
- React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || "Required field")) : null))));
17705
+ isHinted && (React__default.createElement(e, { content: hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
17706
+ React__default.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
17707
+ React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
17708
+ hasError && (React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || (typeof fieldError === 'string' ? fieldError : "Required field")))))));
17692
17709
  };
17693
17710
 
17694
17711
  function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
@@ -31333,7 +31350,8 @@ const DatePicker = ({ alias, inputLabel, inputtype = 'datepicker-outline', width
31333
31350
  const fieldValue = getIn(values, alias);
31334
31351
  const fieldTouched = getIn(touched, alias);
31335
31352
  const fieldError = getIn(errors, alias);
31336
- const inputId = `${alias}FormInput` || crypto.randomUUID();
31353
+ const inputId = `${alias}FormInput`;
31354
+ const labelId = `${alias}InputLabel`;
31337
31355
  const hasError = Boolean(fieldTouched && fieldError);
31338
31356
  const containerRef = useRef(null);
31339
31357
  const [neuVars, setNeuVars] = useState({});
@@ -31403,11 +31421,11 @@ const DatePicker = ({ alias, inputLabel, inputtype = 'datepicker-outline', width
31403
31421
  React__default.createElement(DatePicker$1, { id: `${alias}DatePicker`, selected: (fieldValue && new Date(fieldValue)) || null, onChange: (val) => {
31404
31422
  setFieldValue(alias, val);
31405
31423
  setFieldTouched(alias, true, false);
31406
- }, disabled: readOnly, placeholderText: placeholder, dateFormat: "MMM d, yyyy", customInput: React__default.createElement(u, { id: inputId, variant: "surface", style: getInputStyles() },
31424
+ }, disabled: readOnly, placeholderText: placeholder, dateFormat: "MMM d, yyyy", "aria-labelledby": labelId, customInput: React__default.createElement(u, { id: inputId, variant: "surface", style: getInputStyles() },
31407
31425
  React__default.createElement(c, null,
31408
31426
  React__default.createElement(Icon, { name: "calendar", height: "16", width: "16", style: { color: 'var(--gray-10)' } }))) }),
31409
31427
  React__default.createElement("div", null,
31410
- inputLabel && React__default.createElement(p$d, { size: "2", weight: "bold", as: "label", htmlFor: inputId }, inputLabel),
31428
+ inputLabel && React__default.createElement(p$d, { id: labelId, size: "2", weight: "bold", as: "div", style: { display: 'inline' } }, inputLabel),
31411
31429
  isHinted && (React__default.createElement(e, { content: hintText || "No hint", align: "start" },
31412
31430
  React__default.createElement("a", { href: hintUrl || "#", target: "_blank", rel: "noopener noreferrer", style: { marginLeft: 6 } },
31413
31431
  React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
@@ -31415,9 +31433,10 @@ const DatePicker = ({ alias, inputLabel, inputtype = 'datepicker-outline', width
31415
31433
  };
31416
31434
 
31417
31435
  const Dropdown = (_a) => {
31418
- 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"]);
31436
+ var { inputtype = 'dropdown-outline', alias, readOnly, width, inputLabel, placeholder, inputOptions, style, newRow, isHinted, hintText, hintUrl, errorText, className, formikContext, onValueChange } = _a; __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "inputLabel", "placeholder", "inputOptions", "style", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "className", "formikContext", "onValueChange"]);
31419
31437
  const defaultFormikContext = useFormikContext();
31420
31438
  const activeContext = formikContext || defaultFormikContext;
31439
+ const RESET_ID = `__RESET__${alias}`;
31421
31440
  if (!activeContext) {
31422
31441
  console.error(`Dropdown '${alias}' must be used within a Formik provider or receive a formikContext prop.`);
31423
31442
  return null;
@@ -31429,7 +31448,7 @@ const Dropdown = (_a) => {
31429
31448
  const hasError = Boolean(fieldTouched && fieldError);
31430
31449
  const triggerRef = useRef(null);
31431
31450
  const [neuVars, setNeuVars] = useState({});
31432
- const inputId = `${alias}FormInput` || crypto.randomUUID();
31451
+ const inputId = `${alias}FormInput`;
31433
31452
  const errorId = `${alias}-error`;
31434
31453
  useEffect(() => {
31435
31454
  if (inputtype === 'dropdown-neumorphic' && triggerRef.current) {
@@ -31460,7 +31479,6 @@ const Dropdown = (_a) => {
31460
31479
  borderRadius: '4px',
31461
31480
  boxShadow: '0 5px 15px rgba(0,0,0,0.2)',
31462
31481
  };
31463
- // OUTLINE
31464
31482
  const outlineTrigger = {
31465
31483
  backgroundColor: 'transparent',
31466
31484
  border: '2px solid var(--gray-7)',
@@ -31473,7 +31491,6 @@ const Dropdown = (_a) => {
31473
31491
  borderRadius: '4px',
31474
31492
  boxShadow: 'none',
31475
31493
  };
31476
- // NEUMORPHIC
31477
31494
  const neumorphicTrigger = {
31478
31495
  backgroundColor: 'var(--neu-bg)',
31479
31496
  color: 'var(--neu-text)',
@@ -31497,50 +31514,45 @@ const Dropdown = (_a) => {
31497
31514
  const activeContentStyle = inputtype === 'dropdown' ? materialContent :
31498
31515
  inputtype === 'dropdown-material' ? materialContent :
31499
31516
  inputtype === 'dropdown-outline' ? outlineContent : Object.assign(Object.assign({}, neumorphicContent), neuVars);
31500
- return (React__default.createElement(React__default.Fragment, null,
31501
- React__default.createElement(Column, { span: width, newLine: newRow },
31502
- React__default.createElement(p$5, { direction: "column", gap: "2", style: { width: '100%' } },
31503
- inputtype === 'dropdown-neumorphic' && (React__default.createElement("style", { dangerouslySetInnerHTML: { __html: `
31504
- .neu-select-trigger[data-state='open'] {
31505
- box-shadow: inset 6px 6px 12px var(--neu-shadow-dark),
31506
- inset -6px -6px 12px var(--neu-shadow-light) !important;
31507
- }
31508
- .neu-select-item:hover {
31509
- background-color: rgba(0,0,0,0.05) !important;
31510
- cursor: pointer;
31511
- }
31512
- ` } })),
31513
- React__default.createElement(C$1, { name: alias, disabled: readOnly, value: fieldValue || "", onValueChange: (val) => {
31514
- const finalVal = val === "__RESET__" ? "" : val;
31515
- setFieldValue(alias, finalVal);
31516
- setTimeout(() => setFieldTouched(alias, true, false), 0);
31517
- if (props.onValueChange)
31518
- props.onValueChange(finalVal);
31519
- }, onOpenChange: (isOpen) => {
31520
- if (!isOpen) {
31521
- setFieldTouched(alias, true, false);
31522
- }
31523
- } },
31524
- React__default.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)),
31525
- React__default.createElement(g, { position: "popper", sideOffset: 5, style: activeContentStyle },
31526
- React__default.createElement(v, { value: "__RESET__", className: inputtype === 'dropdown-neumorphic' ? 'neu-select-item' : '', style: { color: 'var(--gray-10)', fontStyle: 'italic' } }, placeholder || "Select an option"),
31527
- React__default.createElement(o$2, { size: "4", style: { margin: '4px 0', opacity: 0.5 } }),
31528
- inputOptions.map((inputoption) => (React__default.createElement(React__default.Fragment, { key: inputoption.optionid || crypto.randomUUID() }, inputoption.optionurl ?
31529
- React__default.createElement(v, { id: String(inputoption.optionid) || '', value: String(inputoption.optionvalue) || `__empty_${inputoption.optionid}`, className: inputtype === 'dropdown-neumorphic' ? 'neu-select-item' : '' },
31530
- React__default.createElement("a", { onClick: (e) => { e.stopPropagation(); openLink(inputoption.optionurl || "#"); }, style: { textDecoration: 'none', color: 'inherit' } }, inputoption.text))
31531
- :
31532
- React__default.createElement(v, { id: String(inputoption.optionid) || '', value: String(inputoption.optionvalue) || `__empty_${inputoption.optionid}`, className: inputtype === 'dropdown-neumorphic' ? 'neu-select-item' : '' }, inputoption.text)))))),
31533
- React__default.createElement("div", null,
31534
- React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: inputId }, inputLabel),
31535
- "\u00A0",
31536
- isHinted ?
31537
- React__default.createElement(React__default.Fragment, null,
31538
- React__default.createElement(e, { content: hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
31539
- React__default.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
31540
- React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
31541
- hasError ?
31542
- React__default.createElement(React__default.Fragment, null,
31543
- React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || (typeof fieldError === 'string' ? fieldError : "Required field"))) : null)))));
31517
+ return (React__default.createElement(Column, { span: width, newLine: newRow },
31518
+ React__default.createElement(p$5, { direction: "column", gap: "2", style: { width: '100%' } },
31519
+ inputtype === 'dropdown-neumorphic' && (React__default.createElement("style", { dangerouslySetInnerHTML: { __html: `
31520
+ .neu-select-trigger[data-state='open'] {
31521
+ box-shadow: inset 6px 6px 12px var(--neu-shadow-dark),
31522
+ inset -6px -6px 12px var(--neu-shadow-light) !important;
31523
+ }
31524
+ .neu-select-item:hover {
31525
+ background-color: rgba(0,0,0,0.05) !important;
31526
+ cursor: pointer;
31527
+ }
31528
+ ` } })),
31529
+ React__default.createElement(C$1, { name: alias, disabled: readOnly, value: fieldValue || "", onValueChange: (val) => {
31530
+ const finalVal = val === RESET_ID ? "" : val;
31531
+ setFieldValue(alias, finalVal);
31532
+ setTimeout(() => setFieldTouched(alias, true, false), 0);
31533
+ if (onValueChange)
31534
+ onValueChange(finalVal);
31535
+ }, onOpenChange: (isOpen) => {
31536
+ if (!isOpen) {
31537
+ setFieldTouched(alias, true, false);
31538
+ }
31539
+ } },
31540
+ React__default.createElement(u$1, { id: inputId, ref: triggerRef, variant: "ghost", placeholder: placeholder || "Select an option", className: `${inputtype === 'dropdown-neumorphic' ? 'neu-select-trigger' : ''} ${className || ''}`, style: Object.assign(Object.assign({}, activeTriggerStyle), style) }),
31541
+ React__default.createElement(g, { position: "popper", sideOffset: 5, style: activeContentStyle },
31542
+ React__default.createElement(v, { value: RESET_ID, className: inputtype === 'dropdown-neumorphic' ? 'neu-select-item' : '', style: { color: 'var(--gray-10)', fontStyle: 'italic' } }, placeholder || "Select an option"),
31543
+ React__default.createElement(o$2, { size: "4", style: { margin: '4px 0', opacity: 0.5 } }),
31544
+ inputOptions.map((inputoption, idx) => (React__default.createElement(React__default.Fragment, { key: `${alias}-opt-${inputoption.optionid || idx}` }, inputoption.optionurl ?
31545
+ React__default.createElement(v, { id: String(inputoption.optionid) || `${alias}-item-${idx}`, value: String(inputoption.optionvalue) || `__empty_${idx}`, className: inputtype === 'dropdown-neumorphic' ? 'neu-select-item' : '' },
31546
+ React__default.createElement("a", { onClick: (e) => { e.stopPropagation(); openLink(inputoption.optionurl || "#"); }, style: { textDecoration: 'none', color: 'inherit' } }, inputoption.text))
31547
+ :
31548
+ React__default.createElement(v, { id: String(inputoption.optionid) || `${alias}-item-${idx}`, value: String(inputoption.optionvalue) || `__empty_${idx}`, className: inputtype === 'dropdown-neumorphic' ? 'neu-select-item' : '' }, inputoption.text)))))),
31549
+ React__default.createElement("div", null,
31550
+ React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: inputId }, inputLabel),
31551
+ "\u00A0",
31552
+ isHinted ? (React__default.createElement(e, { content: hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
31553
+ React__default.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
31554
+ React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
31555
+ hasError ? (React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || (typeof fieldError === 'string' ? fieldError : "Required field"))) : null))));
31544
31556
  };
31545
31557
 
31546
31558
  const DateRangePicker = ({ alias, inputLabel, inputtype = 'daterangepicker-outline', width = 12, newRow, placeholder = "Select date range", isHinted, hintText, hintUrl, errorText, readOnly, className, formikContext }) => {
@@ -31555,7 +31567,8 @@ const DateRangePicker = ({ alias, inputLabel, inputtype = 'daterangepicker-outli
31555
31567
  const fieldTouched = getIn(touched, alias);
31556
31568
  const fieldError = getIn(errors, alias);
31557
31569
  const hasError = Boolean(fieldTouched && fieldError);
31558
- const inputId = `${alias}FormInput` || crypto.randomUUID();
31570
+ const inputId = `${alias}FormInput`;
31571
+ const labelId = `${alias}InputLabel`;
31559
31572
  const getDates = () => {
31560
31573
  const val = fieldValue;
31561
31574
  if (!val)
@@ -31667,11 +31680,11 @@ const DateRangePicker = ({ alias, inputLabel, inputtype = 'daterangepicker-outli
31667
31680
  if (start && end) {
31668
31681
  setFieldTouched(alias, true, false);
31669
31682
  }
31670
- }, disabled: readOnly, placeholderText: placeholder, dateFormat: "MMM d, yyyy", customInput: React__default.createElement(u, { id: inputId, variant: "surface", style: getInputStyles() },
31683
+ }, disabled: readOnly, placeholderText: placeholder, dateFormat: "MMM d, yyyy", "aria-labelledby": labelId, customInput: React__default.createElement(u, { id: inputId, variant: "surface", style: getInputStyles() },
31671
31684
  React__default.createElement(c, null,
31672
31685
  React__default.createElement(Icon, { name: "calendar", height: "16", width: "16", style: { color: 'var(--gray-10)' } }))) }),
31673
31686
  React__default.createElement("div", null,
31674
- inputLabel && React__default.createElement(p$d, { size: "2", weight: "bold", as: "label", htmlFor: inputId }, inputLabel),
31687
+ inputLabel && React__default.createElement(p$d, { id: labelId, size: "2", weight: "bold", as: "div", style: { display: 'inline' } }, inputLabel),
31675
31688
  isHinted && (React__default.createElement(e, { content: hintText || "No hint", align: "start" },
31676
31689
  React__default.createElement("a", { href: hintUrl || "#", target: "_blank", rel: "noopener noreferrer", style: { marginLeft: 6 } },
31677
31690
  React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
@@ -32012,8 +32025,8 @@ const ImageOutput = ({ id, src, alt = "Image", design = 'outline', layout = 'nor
32012
32025
  const containerStyles = getStyles(design, layout);
32013
32026
  const iconColor = design === 'neumorphic' ? '#555' : 'var(--gray-9)';
32014
32027
  const content = (React__default.createElement(p$8, { className: className, style: Object.assign(Object.assign(Object.assign({}, containerStyles), { width, height: height || 'auto' }), style), onClick: onClick }, src ? (React__default.createElement("img", { id: String(id), src: src, alt: alt, style: {
32015
- width: '100%',
32016
- height: '100%',
32028
+ width: '333px',
32029
+ height: '333px',
32017
32030
  objectFit: 'cover',
32018
32031
  display: 'block',
32019
32032
  } })) : (React__default.createElement(p$5, { align: "center", justify: "center", style: {
@@ -52500,64 +52513,53 @@ const RadioGroupInput = (_a) => {
52500
52513
  return (React__default.createElement(Column, { span: width, newLine: newRow },
52501
52514
  React__default.createElement(p$5, { direction: "column", gap: "2", width: "100%", ref: containerRef, style: style, className: className },
52502
52515
  inputtype === 'radio-neumorphic' && (React__default.createElement("style", { dangerouslySetInnerHTML: { __html: `
52503
- /* Target the specific Radio Item button class */
52504
52516
  .neu-radio .rt-RadioGroupItem {
52505
52517
  background-color: var(--neu-bg);
52506
52518
  border: none;
52507
- /* Circular Shadows */
52508
52519
  box-shadow: 4px 4px 8px var(--neu-shadow-dark), -4px -4px 8px var(--neu-shadow-light);
52509
52520
  width: 20px;
52510
52521
  height: 20px;
52511
52522
  transition: all 0.2s ease;
52512
52523
  }
52513
-
52514
- /* Checked State: Inset Shadow (Pressed In) */
52515
52524
  .neu-radio .rt-RadioGroupItem[data-state='checked'] {
52516
52525
  box-shadow: inset 3px 3px 6px var(--neu-shadow-dark), inset -3px -3px 6px var(--neu-shadow-light);
52517
52526
  background-color: var(--neu-bg);
52518
52527
  }
52519
-
52520
- /* The Inner Dot Indicator */
52521
52528
  .neu-radio .rt-RadioGroupIndicator {
52522
52529
  background-color: var(--neu-check-color);
52523
52530
  width: 50%;
52524
52531
  height: 50%;
52525
52532
  border-radius: 50%;
52526
52533
  }
52527
-
52528
- /* Hover Effect */
52529
52534
  .neu-radio .rt-RadioGroupItem:hover {
52530
52535
  transform: scale(1.05);
52531
52536
  }
52532
52537
  .neu-radio .rt-RadioGroupItem[data-state='checked']:hover {
52533
- transform: none; /* Don't scale if pressed in */
52538
+ transform: none;
52534
52539
  }
52535
52540
  ` } })),
52536
- React__default.createElement(I$1, { name: alias, id: `${alias}FormInput`, "aria-describedby": `${alias}InputLabel`, disabled: readOnly, value: fieldValue !== undefined && fieldValue !== null ? String(fieldValue) : undefined, onValueChange: (val) => {
52541
+ React__default.createElement(I$1, { name: alias, id: `${alias}FormInput`, "aria-labelledby": `${alias}InputLabel`, disabled: readOnly, value: fieldValue !== undefined && fieldValue !== null ? String(fieldValue) : "", onValueChange: (val) => {
52537
52542
  setFieldValue(alias, val);
52538
52543
  setTimeout(() => setFieldTouched(alias, true, false), 0);
52539
52544
  } },
52540
- React__default.createElement(o$6, { columns: columns || (direction === 'row' ? 'repeat(auto-fit, minmax(100px, 1fr))' : '1'), gap: "3", style: neuVars }, inputOptions.map((inputoption) => {
52541
- const isChecked = String(fieldValue) === String(inputoption.optionvalue);
52542
- return (React__default.createElement(p$5, { asChild: true, key: String(inputoption.optionvalue), align: "center", gap: "2" },
52545
+ React__default.createElement(o$6, { columns: columns || (direction === 'row' ? 'repeat(auto-fit, minmax(100px, 1fr))' : '1'), gap: "3", style: neuVars }, inputOptions.map((inputoption, idx) => {
52546
+ const optionValue = String(inputoption.optionvalue);
52547
+ const isChecked = String(fieldValue) === optionValue;
52548
+ return (React__default.createElement(p$5, { asChild: true, key: `${alias}-radio-${idx}`, align: "center", gap: "2" },
52543
52549
  React__default.createElement(p$d, { as: "label", size: "2", style: { cursor: 'pointer' } },
52544
- React__default.createElement(y$1, { value: String(inputoption.optionvalue), className: inputtype === 'radio-neumorphic' ? 'neu-radio' : '', style: Object.assign({}, (inputtype === 'radio-outline' ? {
52550
+ React__default.createElement(y$1, { value: optionValue, className: inputtype === 'radio-neumorphic' ? 'neu-radio' : '', style: Object.assign({}, (inputtype === 'radio-outline' ? {
52545
52551
  border: isChecked ? '2px solid var(--accent-9)' : '2px solid var(--gray-8)',
52546
52552
  backgroundColor: 'transparent'
52547
52553
  } : {})) }),
52548
52554
  React__default.createElement("span", { style: { userSelect: 'none' } }, inputoption.text))));
52549
52555
  }))),
52550
52556
  React__default.createElement("div", null,
52551
- React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: `${alias}FormInput` }, inputLabel),
52557
+ React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "div", size: "2", weight: "bold" }, inputLabel),
52552
52558
  "\u00A0",
52553
- isHinted ?
52554
- React__default.createElement(React__default.Fragment, null,
52555
- React__default.createElement(e, { content: hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
52556
- React__default.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
52557
- React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
52558
- hasError ?
52559
- React__default.createElement(React__default.Fragment, null,
52560
- React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || (typeof fieldError === 'string' ? fieldError : `Required field`))) : null))));
52559
+ isHinted && (React__default.createElement(e, { content: hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
52560
+ React__default.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
52561
+ React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
52562
+ hasError && (React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || (typeof fieldError === 'string' ? fieldError : `Required field`)))))));
52561
52563
  };
52562
52564
 
52563
52565
  const OptionSelect = (_a) => {
@@ -52574,6 +52576,7 @@ const OptionSelect = (_a) => {
52574
52576
  const fieldValue = getIn(values, alias);
52575
52577
  const fieldTouched = getIn(touched, alias);
52576
52578
  const fieldError = getIn(errors, alias);
52579
+ const RESET_ID = `__RESET__${alias}`;
52577
52580
  const hasError = Boolean(fieldTouched && fieldError);
52578
52581
  const errorId = `${alias}-error`;
52579
52582
  useEffect(() => {
@@ -52653,7 +52656,7 @@ const OptionSelect = (_a) => {
52653
52656
  }
52654
52657
  ` } })),
52655
52658
  React__default.createElement(C$1, { name: alias, disabled: readOnly, value: fieldValue || "", onValueChange: (val) => {
52656
- const finalVal = val === "__RESET__" ? "" : val;
52659
+ const finalVal = val === RESET_ID ? "" : val;
52657
52660
  setFieldValue(alias, finalVal);
52658
52661
  setTimeout(() => setFieldTouched(alias, true, false), 0);
52659
52662
  if (props.onValueChange)
@@ -52665,7 +52668,7 @@ const OptionSelect = (_a) => {
52665
52668
  } },
52666
52669
  React__default.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)),
52667
52670
  React__default.createElement(g, { position: "popper", sideOffset: 5, style: activeContentStyle },
52668
- React__default.createElement(v, { value: "__RESET__", className: inputtype === 'dropdown-neumorphic' ? 'neu-select-item' : '', style: { color: 'var(--gray-10)', fontStyle: 'italic' } }, placeholder || "Select an option"),
52671
+ React__default.createElement(v, { value: RESET_ID, className: inputtype === 'dropdown-neumorphic' ? 'neu-select-item' : '', style: { color: 'var(--gray-10)', fontStyle: 'italic' } }, placeholder || "Select an option"),
52669
52672
  React__default.createElement(o$2, { size: "4", style: { margin: '4px 0', opacity: 0.5 } }),
52670
52673
  inputOptions.map((inputoption) => (React__default.createElement(React__default.Fragment, { key: inputoption.optionid || crypto.randomUUID() }, inputoption.optionurl ? (React__default.createElement(v, { id: String(inputoption.optionid) || '', value: String(inputoption.optionvalue) || `__empty_${inputoption.optionid}`, className: inputtype === 'dropdown-neumorphic' ? 'neu-select-item' : '' },
52671
52674
  React__default.createElement("a", { onClick: (e) => { e.stopPropagation(); openLink(inputoption.optionurl || "#"); }, style: { textDecoration: 'none', color: 'inherit' } }, inputoption.text))) : (React__default.createElement(v, { id: String(inputoption.optionid) || '', value: String(inputoption.optionvalue) || `__empty_${inputoption.optionid}`, className: inputtype === 'dropdown-neumorphic' ? 'neu-select-item' : '' }, inputoption.text))))))),
@@ -52812,6 +52815,7 @@ const SliderInput = (_a) => {
52812
52815
  const hasError = Boolean(fieldTouched && fieldError);
52813
52816
  const containerRef = useRef(null);
52814
52817
  const [neuVars, setNeuVars] = useState({});
52818
+ const labelId = `${alias}InputLabel`;
52815
52819
  const errorId = `${alias}-error`;
52816
52820
  useEffect(() => {
52817
52821
  if (inputtype === 'slider-neumorphic' && containerRef.current) {
@@ -52885,13 +52889,13 @@ const SliderInput = (_a) => {
52885
52889
  box-shadow: none;
52886
52890
  }
52887
52891
  ` } }),
52888
- React__default.createElement(s, { name: alias, id: `${alias}FormInput`, disabled: readOnly, "aria-describedby": `${alias}InputLabel`, min: minvalue, max: maxvalue, step: stepvalue, value: fieldValue, onValueChange: (val) => {
52892
+ React__default.createElement(s, { name: alias, id: `${alias}FormInput`, disabled: readOnly, "aria-labelledby": labelId, min: minvalue, max: maxvalue, step: stepvalue, value: fieldValue, onValueChange: (val) => {
52889
52893
  setFieldValue(alias, val[0]);
52890
52894
  }, onValueCommit: () => {
52891
52895
  setFieldTouched(alias, true, false);
52892
52896
  }, className: inputtype === 'slider-neumorphic' ? 'neu-slider' : inputtype === 'slider-outline' ? 'outline-slider' : '', style: neuVars }),
52893
52897
  React__default.createElement("div", null,
52894
- React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: `${alias}FormInput` }, inputLabel),
52898
+ React__default.createElement(p$d, { id: labelId, as: "label", size: "2", weight: "bold", htmlFor: `${alias}FormInput` }, inputLabel),
52895
52899
  "\u00A0",
52896
52900
  isHinted ?
52897
52901
  React__default.createElement(React__default.Fragment, null,
@@ -52915,18 +52919,13 @@ const RangeSlider = (_a) => {
52915
52919
  const fieldVal = getIn(values, alias);
52916
52920
  const fieldTouched = getIn(touched, alias);
52917
52921
  const fieldError = getIn(errors, alias);
52918
- // Range Formik Logic
52919
- // Synopsis
52920
- // Radix slider component requires an array.
52921
- // If field value is [20, 80] pass [20, 80].
52922
- // If field value is 50 we pass [50].
52923
- // If field value is undefined, default to [min] or [min, max].
52924
52922
  const isRange = Array.isArray(fieldVal);
52925
52923
  const sliderValue = isRange ? fieldVal : [fieldVal || minvalue];
52926
52924
  const hasError = Boolean(fieldTouched && fieldError);
52927
52925
  const containerRef = useRef(null);
52928
52926
  const [neuVars, setNeuVars] = useState({});
52929
52927
  const errorId = `${alias}-error`;
52928
+ const labelId = `${alias}InputLabel`;
52930
52929
  useEffect(() => {
52931
52930
  if (inputtype === 'range-neumorphic' && containerRef.current) {
52932
52931
  const parentBg = getNearestParentBackground(containerRef.current.parentElement);
@@ -52950,13 +52949,9 @@ const RangeSlider = (_a) => {
52950
52949
  box-shadow: inset 2px 2px 5px var(--neu-shadow-dark), inset -2px -2px 5px var(--neu-shadow-light);
52951
52950
  border-radius: 99px;
52952
52951
  }
52953
- .neu-slider .rt-SliderRange {
52954
- background-color: var(--neu-accent);
52955
- border-radius: 99px;
52956
- }
52952
+ .neu-slider .rt-SliderRange { background-color: var(--neu-accent); border-radius: 99px; }
52957
52953
  .neu-slider .rt-SliderThumb {
52958
- background-color: var(--neu-bg);
52959
- border: 2px solid var(--neu-bg);
52954
+ background-color: var(--neu-bg); border: 2px solid var(--neu-bg);
52960
52955
  width: 24px; height: 24px;
52961
52956
  box-shadow: 3px 3px 6px var(--neu-shadow-dark), -3px -3px 6px var(--neu-shadow-light);
52962
52957
  }
@@ -52964,31 +52959,22 @@ const RangeSlider = (_a) => {
52964
52959
  .neu-slider .rt-SliderThumb:active { transform: scale(0.95); cursor: grabbing; }
52965
52960
 
52966
52961
  /* Outline */
52967
- .outline-slider .rt-SliderTrack {
52968
- height: 4px; background-color: transparent; border: 1px solid var(--gray-8);
52969
- }
52962
+ .outline-slider .rt-SliderTrack { height: 4px; background-color: transparent; border: 1px solid var(--gray-8); }
52970
52963
  .outline-slider .rt-SliderRange { background-color: var(--accent-9); }
52971
- .outline-slider .rt-SliderThumb {
52972
- background-color: white; border: 2px solid var(--accent-9); box-shadow: none;
52973
- }
52964
+ .outline-slider .rt-SliderThumb { background-color: white; border: 2px solid var(--accent-9); box-shadow: none; }
52974
52965
  ` } }),
52975
- React__default.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) => {
52976
- // LOGIC SYNOPSIS:
52977
- // If Range, set value as array.
52978
- // If Slider, set value as first value.
52966
+ React__default.createElement(s, { name: alias, id: `${alias}FormInput`, disabled: readOnly, "aria-labelledby": labelId, min: minvalue, max: maxvalue, step: stepvalue, minStepsBetweenThumbs: minStepsBetweenThumbs, value: sliderValue, onValueChange: (val) => {
52979
52967
  setFieldValue(alias, isRange ? val : val[0]);
52980
52968
  }, onValueCommit: () => setFieldTouched(alias, true, false), className: inputtype === 'range-neumorphic' ? 'neu-slider' : inputtype === 'range-outline' ? 'outline-slider' : '', style: neuVars }),
52981
52969
  React__default.createElement("div", null,
52982
- React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: `${alias}FormInput` }, inputLabel),
52970
+ React__default.createElement(p$d, { id: labelId, as: "div", size: "2", weight: "bold", style: { display: 'inline' } }, inputLabel),
52983
52971
  "\u00A0",
52984
- isHinted ?
52985
- React__default.createElement(React__default.Fragment, null,
52986
- React__default.createElement(e, { content: hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
52987
- React__default.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
52988
- React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
52989
- hasError ?
52990
- React__default.createElement(React__default.Fragment, null,
52991
- React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || (typeof fieldError === 'string' ? fieldError : `Required field`))) : null))));
52972
+ isHinted && (React__default.createElement(React__default.Fragment, null,
52973
+ React__default.createElement(e, { content: hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
52974
+ React__default.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
52975
+ React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } }))))),
52976
+ hasError && (React__default.createElement(React__default.Fragment, null,
52977
+ React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || (typeof fieldError === 'string' ? fieldError : `Required field`))))))));
52992
52978
  };
52993
52979
 
52994
52980
  const Toggle = (_a) => {
@@ -53159,7 +53145,7 @@ const ConditionalTrigger = (_a) => {
53159
53145
  const fieldValue = getIn(values, alias);
53160
53146
  const fieldTouched = getIn(touched, alias);
53161
53147
  const fieldError = getIn(errors, alias);
53162
- const inputId = `${alias}FormInput` || crypto.randomUUID();
53148
+ const inputId = `${alias}FormInput`;
53163
53149
  const errorId = `${alias}-error`;
53164
53150
  // Trigger (Equality) Logic :: If current Field value === trigger value
53165
53151
  const isOpen = fieldValue === triggerValue;
@@ -53170,19 +53156,19 @@ const ConditionalTrigger = (_a) => {
53170
53156
  const isNeumorphic = inputtype.includes('neumorphic');
53171
53157
  const hasError = Boolean(fieldTouched && fieldError);
53172
53158
  const renderTrigger = () => {
53173
- switch (true) {
53174
- case inputtype.includes('conditionalcheckbox'):
53175
- return (React__default.createElement(p$5, { align: "center", gap: "2", style: { cursor: 'pointer' } },
53176
- React__default.createElement(c$2, { name: alias, disabled: readOnly, checked: fieldValue === true, onCheckedChange: (checked) => handleChange(!!checked), id: inputId })));
53177
- case inputtype.includes('conditionalselect'):
53178
- return (React__default.createElement(p$5, { direction: "column", gap: "1", style: { width: '100%' } },
53179
- React__default.createElement(C$1, { name: alias, disabled: readOnly, value: fieldValue, defaultValue: placeholder || "", onValueChange: handleChange },
53180
- React__default.createElement(u$1, { id: inputId, variant: isNeumorphic ? 'soft' : 'surface', style: { width: '100%' } }),
53181
- React__default.createElement(g, null, inputOptions.map((inputoption) => (React__default.createElement(v, { key: String(inputoption.optionvalue) || crypto.randomUUID(), value: String(inputoption.optionvalue) }, inputoption.text)))))));
53182
- case inputtype.includes('conditionaltoggle'):
53183
- default:
53184
- return (React__default.createElement(p$5, { justify: "between", align: "center", style: { width: '100%' } },
53185
- React__default.createElement(i$1, { id: inputId, name: alias, disabled: readOnly, checked: fieldValue === true, onCheckedChange: (checked) => handleChange(!!checked), variant: isNeumorphic ? 'soft' : 'surface' })));
53159
+ if (inputtype.includes('conditionalcheckbox') || inputtype.includes('conditional-checkbox')) {
53160
+ return (React__default.createElement(p$5, { align: "center", gap: "2", style: { cursor: 'pointer' } },
53161
+ React__default.createElement(c$2, { name: alias, disabled: readOnly, checked: fieldValue === true, onCheckedChange: (checked) => handleChange(!!checked), id: inputId })));
53162
+ }
53163
+ else if (inputtype.includes('conditionalselect') || inputtype.includes('conditional-select')) {
53164
+ return (React__default.createElement(p$5, { direction: "column", gap: "1", style: { width: '100%' } },
53165
+ React__default.createElement(C$1, { name: alias, disabled: readOnly, value: fieldValue !== undefined ? String(fieldValue) : undefined, onValueChange: handleChange },
53166
+ React__default.createElement(u$1, { id: inputId, variant: isNeumorphic ? 'soft' : 'surface', style: { width: '100%' }, placeholder: placeholder || "Select" }),
53167
+ React__default.createElement(g, null, inputOptions.map((inputoption, idx) => (React__default.createElement(v, { key: `${alias}-opt-${inputoption.optionid || idx}`, value: String(inputoption.optionvalue) }, inputoption.text)))))));
53168
+ }
53169
+ else {
53170
+ return (React__default.createElement(p$5, { justify: "between", align: "center", style: { width: '100%' } },
53171
+ React__default.createElement(i$1, { id: inputId, name: alias, disabled: readOnly, checked: fieldValue === true, onCheckedChange: (checked) => handleChange(!!checked), variant: isNeumorphic ? 'soft' : 'surface' })));
53186
53172
  }
53187
53173
  };
53188
53174
  const containerStyle = getDesignStyles(inputtype, isOpen);
@@ -53193,20 +53179,16 @@ const ConditionalTrigger = (_a) => {
53193
53179
  React__default.createElement("div", { style: animationStyles.inner },
53194
53180
  React__default.createElement(p$8, { style: {
53195
53181
  paddingTop: '8px',
53196
- borderTop: isOpen && !isNeumorphic ? '1px dashed var(--gray-6)' : 'none'
53197
- } }, children))),
53198
- React__default.createElement("div", null,
53182
+ borderTop: isOpen && !isNeumorphic ? '1px dashed var(--gray-6)' : 'none',
53183
+ } },
53184
+ React__default.createElement("div", { style: { display: 'grid', gridTemplateColumns: 'repeat(12, 1fr)', gap: '16px', width: '100%' } }, children)))),
53185
+ React__default.createElement("div", { style: { marginTop: '8px' } },
53199
53186
  React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: inputId, style: { cursor: 'pointer' } }, inputLabel),
53200
53187
  "\u00A0",
53201
- isHinted ?
53202
- React__default.createElement(React__default.Fragment, null,
53203
- React__default.createElement(e, { content: hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
53204
- React__default.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
53205
- React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
53206
- hasError ?
53207
- React__default.createElement(React__default.Fragment, null,
53208
- React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, typeof fieldError === 'string' ? React__default.createElement(React__default.Fragment, null, errorText || "Required field")
53209
- : 'Invalid file selection')) : null))));
53188
+ isHinted && (React__default.createElement(e, { content: hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
53189
+ React__default.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
53190
+ React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
53191
+ hasError && (React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, typeof fieldError === 'string' ? React__default.createElement(React__default.Fragment, null, errorText || "Required field") : 'Invalid selection'))))));
53210
53192
  };
53211
53193
 
53212
53194
  const Row = ({ children, className, gap = "4" }) => {
@@ -53335,7 +53317,7 @@ const AccordionItem = ({ sectionId, title, children, disabled = false, icon }) =
53335
53317
  React__default.createElement(p$d, { size: "3", weight: "bold", style: { color: 'var(--accordion-title-color, var(--gray-12))' } }, title)),
53336
53318
  React__default.createElement(Icon, { name: "chevrondown", height: "20", width: "20", className: "v-accordion-chevron" }))),
53337
53319
  React__default.createElement(Content2$3, { className: "v-accordion-content", style: { overflow: 'hidden' } },
53338
- React__default.createElement("div", { style: { padding: '0 16px 16px 16px' } },
53320
+ React__default.createElement("div", { style: { padding: '24px 16px 24px 16px' } },
53339
53321
  React__default.createElement(p$d, { size: "2", color: "gray", as: "div" }, children)))));
53340
53322
  };
53341
53323
 
@@ -53495,7 +53477,7 @@ const Codex = ({ design = 'outline', defaultStepId, brandColor, width = 12, newR
53495
53477
  step.description && (React__default.createElement(p$d, { size: "1", color: "gray", style: { display: 'block', marginTop: '4px' } }, step.description)))),
53496
53478
  index < steps.length - 1 && (React__default.createElement("div", { className: `v-step-line ${isCompleted ? 'completed' : 'pending'}` }))));
53497
53479
  }))),
53498
- React__default.createElement(p$8, { style: { position: 'relative' } }, children)))));
53480
+ React__default.createElement(p$8, { style: { position: 'relative', marginTop: '33px', marginBottom: '33px' } }, children)))));
53499
53481
  };
53500
53482
  const CodexItem = ({ stepId, children, }) => {
53501
53483
  const { activeStepId } = useContext(CodexContext);
@@ -53504,7 +53486,7 @@ const CodexItem = ({ stepId, children, }) => {
53504
53486
  return (React__default.createElement("div", { className: "v-step-content-animation", style: { width: '100%' } }, children));
53505
53487
  };
53506
53488
 
53507
- const CodexControls = ({ nextStepId, prevStepId, nextLabel = "Continue", prevLabel = "Back", finishLabel = "Submit", prevIcon = "doublearrowleft", nextIcon = "doublearrowright", finishIcon = "paperplane", onSubmit = false, onNext, onPrev, onFinish }) => {
53489
+ const CodexControls = ({ nextStepId, prevStepId, nextLabel = "Continue", prevLabel = "Back", finishLabel = "Submit", prevIcon = "doublearrowleft", nextIcon = "doublearrowright", finishIcon = "paperplane", onSubmit = true, onNext, onPrev, onFinish }) => {
53508
53490
  const { setActiveStepId, brandColor } = useStepper();
53509
53491
  const handlePrev = () => {
53510
53492
  if (onPrev)
@@ -53546,11 +53528,12 @@ const SectionTitle = ({ title, width = 12, newRow = true, size = "5", subsize =
53546
53528
  center: 'center',
53547
53529
  right: 'end'
53548
53530
  };
53549
- return (React__default.createElement(Column, { span: width, newLine: newRow },
53531
+ return (React__default.createElement(Column, { span: width, newLine: newRow, style: { marginBottom: '23px', marginTop: '23px' } },
53550
53532
  React__default.createElement(p$5, { direction: "column", gap: "2", className: className, style: {
53551
53533
  width: '100%',
53552
53534
  boxSizing: 'border-box',
53553
- marginBottom: 'var(--space-2)',
53535
+ marginTop: '23px',
53536
+ marginBottom: '23px',
53554
53537
  textAlign: align,
53555
53538
  backgroundColor: backgroundColor || 'transparent',
53556
53539
  padding: backgroundColor ? 'var(--space-3) var(--space-4)' : '0',
@@ -53617,158 +53600,114 @@ const Teletraan1 = ({ xFormModel, readOnlyMode = false, displayMode = 'codice',
53617
53600
  if (readOnlyMode)
53618
53601
  readOnly = true;
53619
53602
  const normalizedType = inputType.toLocaleLowerCase();
53603
+ const layoutProps = {
53604
+ alias: inputAlias,
53605
+ width: inputWidth,
53606
+ inputLabel: inputLabel,
53607
+ key: inputUID,
53608
+ newRow: newRow,
53609
+ readOnly: readOnly,
53610
+ isHinted: isHinted,
53611
+ hintText: hintText,
53612
+ hintUrl: hintUrl,
53613
+ errorText: errorText
53614
+ };
53620
53615
  switch (true) {
53621
53616
  case avatarInputType.includes(normalizedType):
53622
- return React__default.createElement(AvatarInput, { alias: inputAlias, width: inputWidth, inputLabel: inputLabel, key: inputUID, newRow: newRow, readOnly: readOnly, isHinted: isHinted, hintText: hintText, hintUrl: hintUrl, errorText: errorText });
53617
+ return React__default.createElement(AvatarInput, Object.assign({}, layoutProps));
53623
53618
  case buttonInputType.includes(normalizedType):
53624
- return React__default.createElement(ButtonInput, { alias: inputAlias, width: inputWidth, readOnly: readOnly, newRow: newRow, key: inputUID }, defaultValue);
53619
+ return React__default.createElement(ButtonInput, Object.assign({}, layoutProps), defaultValue);
53625
53620
  case checkboxInputType.includes(normalizedType):
53626
- return React__default.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 });
53621
+ return React__default.createElement(CheckboxGroupInput, Object.assign({}, layoutProps, { inputOptions: inputOptions || [InputOptionsPlaceholder] }));
53627
53622
  case conditionalInputType.includes(normalizedType):
53628
- return React__default.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 });
53623
+ return React__default.createElement(ConditionalTrigger, Object.assign({}, layoutProps, { inputOptions: inputOptions, triggerValue: triggerValue, children: toggledInput }));
53629
53624
  case datePickerInputType.includes(normalizedType):
53630
- return React__default.createElement(DatePicker, { alias: inputAlias, inputLabel: inputLabel, width: inputWidth, placeholder: inputPlaceholder, newRow: newRow, readOnly: readOnly, isHinted: isHinted, hintText: hintText, hintUrl: hintUrl, key: inputUID, errorText: errorText });
53625
+ return React__default.createElement(DatePicker, Object.assign({}, layoutProps, { placeholder: inputPlaceholder }));
53631
53626
  case dateRangePickerInputType.includes(normalizedType):
53632
- return React__default.createElement(DateRangePicker, { alias: inputAlias, inputLabel: inputLabel, width: inputWidth, newRow: newRow, readOnly: readOnly, isHinted: isHinted, hintText: hintText, hintUrl: hintUrl, key: inputUID, errorText: errorText });
53633
53627
  case dateTimePickerInputType.includes(normalizedType):
53634
- return React__default.createElement(DateRangePicker, { alias: inputAlias, inputLabel: inputLabel, width: inputWidth, newRow: newRow, readOnly: readOnly, isHinted: isHinted, hintText: hintText, hintUrl: hintUrl, key: inputUID, errorText: errorText });
53628
+ return React__default.createElement(DateRangePicker, Object.assign({}, layoutProps));
53635
53629
  case dropdownInputType.includes(normalizedType):
53636
- return React__default.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 });
53630
+ return React__default.createElement(Dropdown, Object.assign({}, layoutProps, { inputOptions: inputOptions || [InputOptionsPlaceholder] }));
53637
53631
  case fileInputType.includes(normalizedType):
53638
- return React__default.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 });
53632
+ return React__default.createElement(File$1, Object.assign({}, layoutProps, { preview: true }));
53639
53633
  case fileMultipleInputType.includes(normalizedType):
53640
- return React__default.createElement(FileMultiple, { alias: inputAlias, inputLabel: inputLabel, width: inputWidth, placeholder: inputPlaceholder, newRow: newRow, readOnly: readOnly, isHinted: isHinted, hintText: hintText, hintUrl: hintUrl, key: inputUID, errorText: errorText, preview: true });
53634
+ return React__default.createElement(FileMultiple, Object.assign({}, layoutProps, { placeholder: inputPlaceholder, preview: true }));
53641
53635
  case imageOutputType.includes(normalizedType):
53642
- return React__default.createElement(ImageOutput, { id: inputAlias, src: defaultValue, alt: inputPlaceholder, width: inputWidth, height: inputHeight });
53636
+ return React__default.createElement(ImageOutput, { id: inputAlias, src: defaultValue, alt: inputPlaceholder, width: inputWidth, height: inputHeight, key: inputUID });
53643
53637
  case textInputType.includes(normalizedType):
53644
- return React__default.createElement(Input$2, { alias: inputAlias, inputLabel: inputLabel, width: inputWidth, placeholder: inputPlaceholder, newRow: newRow, readOnly: readOnly, isHinted: isHinted, hintText: hintText, hintUrl: hintUrl, key: inputUID, errorText: errorText });
53638
+ return React__default.createElement(Input$2, Object.assign({}, layoutProps, { placeholder: inputPlaceholder }));
53645
53639
  case passwordInputType.includes(normalizedType):
53646
- return React__default.createElement(PasswordInput, { alias: inputAlias, inputLabel: inputLabel, width: inputWidth, placeholder: inputPlaceholder, newRow: newRow, readOnly: readOnly, isHinted: isHinted, hintText: hintText, hintUrl: hintUrl, key: inputUID, errorText: errorText });
53640
+ return React__default.createElement(PasswordInput, Object.assign({}, layoutProps, { placeholder: inputPlaceholder }));
53647
53641
  case phoneInputType.includes(normalizedType):
53648
- return React__default.createElement(PhoneInput, { alias: inputAlias, inputLabel: inputLabel, width: inputWidth, placeholder: inputPlaceholder, newRow: newRow, readOnly: readOnly, isHinted: isHinted, hintText: hintText, hintUrl: hintUrl, key: inputUID, errorText: errorText });
53642
+ return React__default.createElement(PhoneInput, Object.assign({}, layoutProps, { placeholder: inputPlaceholder }));
53649
53643
  case creditCardInputType.includes(normalizedType):
53650
- return React__default.createElement(CreditCardInput, { alias: inputAlias, inputLabel: inputLabel, width: inputWidth, placeholder: inputPlaceholder, newRow: newRow, readOnly: readOnly, isHinted: isHinted, hintText: hintText, hintUrl: hintUrl, key: inputUID, errorText: errorText });
53644
+ return React__default.createElement(CreditCardInput, Object.assign({}, layoutProps, { placeholder: inputPlaceholder }));
53651
53645
  case currencyInputType.includes(normalizedType):
53652
- return React__default.createElement(CurrencyInput, { alias: inputAlias, inputLabel: inputLabel, width: inputWidth, placeholder: inputPlaceholder, newRow: newRow, readOnly: readOnly, isHinted: isHinted, hintText: hintText, hintUrl: hintUrl, key: inputUID, errorText: errorText });
53646
+ return React__default.createElement(CurrencyInput, Object.assign({}, layoutProps, { placeholder: inputPlaceholder }));
53653
53647
  case stockInputType.includes(normalizedType):
53654
- return React__default.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 });
53648
+ return React__default.createElement(StockInput, Object.assign({}, layoutProps, { placeholder: inputPlaceholder, defaultvalue: defaultValue }));
53655
53649
  case radioInputType.includes(normalizedType):
53656
- return React__default.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 });
53650
+ return React__default.createElement(RadioGroupInput, Object.assign({}, layoutProps, { inputOptions: inputOptions || [InputOptionsPlaceholder] }));
53657
53651
  case selectInputType.includes(normalizedType):
53658
- return React__default.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 });
53652
+ return React__default.createElement(OptionSelect, Object.assign({}, layoutProps, { inputOptions: inputOptions || [InputOptionsPlaceholder] }));
53659
53653
  case selectMultipleInputType.includes(normalizedType):
53660
- return React__default.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 });
53654
+ return React__default.createElement(MultipleSelect, Object.assign({}, layoutProps, { inputOptions: inputOptions || [InputOptionsPlaceholder] }));
53661
53655
  case sliderInputType.includes(normalizedType):
53662
- return React__default.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 });
53656
+ return React__default.createElement(SliderInput, Object.assign({}, layoutProps, { stepvalue: Number(stepValue), minvalue: Number(inputMinValue), maxvalue: Number(inputMaxValue) }));
53663
53657
  case rangeSliderInputType.includes(normalizedType):
53664
- return React__default.createElement(RangeSlider, { 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 });
53658
+ return React__default.createElement(RangeSlider, Object.assign({}, layoutProps, { stepvalue: Number(stepValue), minvalue: Number(inputMinValue), maxvalue: Number(inputMaxValue) }));
53665
53659
  case toggleInputType.includes(normalizedType):
53666
- return React__default.createElement(Toggle, { alias: inputAlias, inputLabel: inputLabel, width: inputWidth, newRow: newRow, readOnly: readOnly, isHinted: isHinted, hintText: hintText, hintUrl: hintUrl, key: inputUID, errorText: errorText, icon: defaultValue });
53660
+ return React__default.createElement(Toggle, Object.assign({}, layoutProps, { icon: "layers" }));
53667
53661
  default:
53668
- return React__default.createElement(Input$2, { alias: inputAlias, inputLabel: inputLabel, width: inputWidth, placeholder: inputPlaceholder, newRow: newRow, readOnly: readOnly, isHinted: isHinted, hintText: hintText, hintUrl: hintUrl, key: inputUID, errorText: errorText });
53662
+ return React__default.createElement(Input$2, Object.assign({}, layoutProps, { placeholder: inputPlaceholder }));
53669
53663
  }
53670
53664
  };
53671
53665
  const renderQueries = (queries) => {
53672
53666
  if (!queries)
53673
53667
  return null;
53674
- return queries.map((xFormelement) => (React__default.createElement(React__default.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,
53675
- // Conditional ToggledInput (React Node) recursive handling
53676
- 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()))));
53668
+ return queries.map((xFormelement) => {
53669
+ const childInput = 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;
53670
+ return inputAlphaTrion(xFormelement.inputAlias, xFormelement.inputType, xFormelement.inputWidth, xFormelement.inputLabel, String(xFormelement.minValue), String(xFormelement.maxValue), xFormelement.defaultValue, xFormelement.inputOptions, xFormelement.stepValue, xFormelement.inputHeight, childInput, xFormelement.triggerValue, xFormelement.newRow, xFormelement.inputPlaceholder, readOnlyMode, xFormelement.isHinted, xFormelement.hintText || "", xFormelement.hintUrl || "", xFormelement.errorText, String(xFormelement.queryId) || crypto.randomUUID());
53671
+ });
53677
53672
  };
53678
53673
  const renderDisplayMode = () => {
53679
53674
  switch (displayMode) {
53680
53675
  case 'dual':
53681
53676
  return (React__default.createElement(React__default.Fragment, null,
53682
- "Dual Display",
53683
- React__default.createElement(Row, null,
53684
- React__default.createElement("div", { style: { display: 'flex', alignItems: 'center', gap: '12px' } },
53685
- React__default.createElement("div", { className: "neu-toggle-wrapper", style: Object.assign(Object.assign({}, neuVars), { opacity: readOnlyMode ? 0.6 : 1, pointerEvents: readOnlyMode ? 'none' : 'auto' }), onClick: () => setDualToggled(!dualToggled) },
53686
- React__default.createElement("style", { dangerouslySetInnerHTML: { __html: `
53687
- .neu-toggle-wrapper {
53688
- isolation: isolate;
53689
- position: relative;
53690
- height: 30px;
53691
- width: 60px;
53692
- border-radius: 15px;
53693
- overflow: hidden;
53694
- cursor: pointer;
53695
- background: var(--neu-bg);
53696
- box-shadow:
53697
- -8px -4px 8px 0px var(--neu-shadow-light),
53698
- 8px 4px 12px 0px var(--neu-shadow-dark),
53699
- 4px 4px 4px 0px var(--neu-shadow-dark) inset,
53700
- -4px -4px 4px 0px var(--neu-shadow-light) inset;
53701
- }
53702
-
53703
- .neu-toggle-state {
53704
- display: none;
53705
- }
53706
-
53707
- .neu-indicator {
53708
- height: 100%;
53709
- width: 200%;
53710
- background: var(--neu-bg);
53711
- border-radius: 15px;
53712
- transform: translate3d(-75%, 0, 0);
53713
- transition: transform 0.4s cubic-bezier(0.85, 0.05, 0.18, 1.35);
53714
- box-shadow:
53715
- -8px -4px 8px 0px var(--neu-shadow-light),
53716
- 8px 4px 12px 0px var(--neu-shadow-dark);
53717
- }
53718
-
53719
- .neu-toggle-state:checked ~ .neu-indicator {
53720
- transform: translate3d(25%, 0, 0);
53721
- }
53722
- ` } }),
53723
- React__default.createElement("input", { id: `teletraan1DualToggle`, className: "neu-toggle-state", type: "checkbox", checked: dualToggled, readOnly: true }),
53724
- React__default.createElement("div", { className: "neu-indicator" })),
53725
- React__default.createElement(Icon, { name: "layers", height: "20", width: "20", color: brandColor, style: {
53726
- transition: 'color 0.3s ease',
53727
- opacity: readOnlyMode ? 0.5 : 1,
53728
- cursor: 'pointer'
53729
- }, onClick: () => setDualToggled(!dualToggled) })),
53730
- dualToggled ?
53731
- React__default.createElement(React__default.Fragment, null,
53732
- "Accordion Display",
53733
- React__default.createElement(Accordion, { allowMultiple: true, brandcolor: brandColor, titleColor: '#ffffff' }, xFormModel.model.map((formsection) => (React__default.createElement(AccordionItem, { key: formsection.sectionId, sectionId: String(formsection.sectionId), title: formsection.title },
53734
- React__default.createElement(Row, { key: formsection.sectionId }, renderQueries(formsection.queries)))))))
53735
- :
53736
- React__default.createElement(React__default.Fragment, null,
53737
- "Codice Display",
53738
- React__default.createElement(React__default.Fragment, { key: xFormModel.uuid }, xFormModel.model.map((formsection) => (React__default.createElement(React__default.Fragment, { key: formsection.sectionId || crypto.randomUUID() },
53739
- React__default.createElement(SectionTitle, { title: formsection.title, icon: React__default.createElement(Icon, { name: String(formsection.icon) }) }),
53740
- React__default.createElement(Row, null, renderQueries(formsection.queries))))))))));
53677
+ React__default.createElement("div", { style: { display: 'flex', alignItems: 'center', justifyContent: 'center', gap: '12px', marginBottom: '20px' } },
53678
+ React__default.createElement("span", { style: { fontWeight: 600 } }, "Dual Display"),
53679
+ React__default.createElement("div", { className: "neu-toggle-wrapper", style: Object.assign(Object.assign({}, neuVars), { opacity: readOnlyMode ? 0.6 : 1, pointerEvents: readOnlyMode ? 'none' : 'auto' }), onClick: () => setDualToggled(!dualToggled) },
53680
+ React__default.createElement("style", { dangerouslySetInnerHTML: { __html: `
53681
+ .neu-toggle-wrapper { isolation: isolate; position: relative; height: 30px; width: 60px; border-radius: 15px; overflow: hidden; cursor: pointer; background: var(--neu-bg); box-shadow: -8px -4px 8px 0px var(--neu-shadow-light), 8px 4px 12px 0px var(--neu-shadow-dark), 4px 4px 4px 0px var(--neu-shadow-dark) inset, -4px -4px 4px 0px var(--neu-shadow-light) inset; }
53682
+ .neu-toggle-state { display: none; }
53683
+ .neu-indicator { height: 100%; width: 200%; background: var(--neu-bg); border-radius: 15px; transform: translate3d(-75%, 0, 0); transition: transform 0.4s cubic-bezier(0.85, 0.05, 0.18, 1.35); box-shadow: -8px -4px 8px 0px var(--neu-shadow-light), 8px 4px 12px 0px var(--neu-shadow-dark); }
53684
+ .neu-toggle-state:checked ~ .neu-indicator { transform: translate3d(25%, 0, 0); }
53685
+ ` } }),
53686
+ React__default.createElement("input", { className: "neu-toggle-state", type: "checkbox", checked: dualToggled, readOnly: true }),
53687
+ React__default.createElement("div", { className: "neu-indicator" })),
53688
+ React__default.createElement(Icon, { name: "layers", height: "20", width: "20", color: brandColor, style: { opacity: readOnlyMode ? 0.5 : 1, cursor: 'pointer' }, onClick: () => setDualToggled(!dualToggled) })),
53689
+ dualToggled ?
53690
+ React__default.createElement(Accordion, { allowMultiple: true, brandcolor: brandColor, titleColor: '#ffffff' }, xFormModel.model.map((formsection) => (React__default.createElement(AccordionItem, { key: formsection.sectionId, sectionId: String(formsection.sectionId), title: formsection.title, icon: React__default.createElement(Icon, { name: formsection.icon || "fontfamily" }) },
53691
+ React__default.createElement(Row, { key: formsection.sectionId }, renderQueries(formsection.queries))))))
53692
+ :
53693
+ xFormModel.model.map((formsection) => (React__default.createElement(React__default.Fragment, { key: formsection.sectionId || crypto.randomUUID() },
53694
+ React__default.createElement(SectionTitle, { title: formsection.title, icon: React__default.createElement(Icon, { name: formsection.icon || "fontfamily" }) }),
53695
+ React__default.createElement(Row, null, renderQueries(formsection.queries)))))));
53741
53696
  case 'accordion':
53742
- return (React__default.createElement(React__default.Fragment, null,
53743
- "Accordion Display",
53744
- React__default.createElement(Accordion, { allowMultiple: true, brandcolor: brandColor, titleColor: '#ffffff' }, xFormModel.model.map((formsection) => (React__default.createElement(AccordionItem, { key: formsection.sectionId, sectionId: String(formsection.sectionId), title: formsection.title },
53745
- React__default.createElement(Row, { key: formsection.sectionId }, renderQueries(formsection.queries))))))));
53697
+ return (React__default.createElement(Accordion, { allowMultiple: true, brandcolor: brandColor, titleColor: '#ffffff' }, xFormModel.model.map((formsection) => (React__default.createElement(AccordionItem, { key: formsection.sectionId, sectionId: String(formsection.sectionId), title: formsection.title, icon: React__default.createElement(Icon, { name: formsection.icon || "fontfamily" }) },
53698
+ React__default.createElement(Row, { key: formsection.sectionId }, renderQueries(formsection.queries)))))));
53746
53699
  case 'codex':
53747
- return (React__default.createElement(React__default.Fragment, null,
53748
- "Codex Display",
53749
- React__default.createElement(Codex, { brandColor: brandColor }, xFormModel.model.map((formsection, index, array) => {
53750
- const prevStepId = index > 0 ? String(array[index - 1].sectionId) : undefined;
53751
- const nextStepId = index < array.length - 1 ? String(array[index + 1].sectionId) : undefined;
53752
- return (React__default.createElement(CodexItem, { key: formsection.sectionId, stepId: String(formsection.sectionId), title: formsection.title },
53753
- React__default.createElement(Row, { key: formsection.sectionId }, renderQueries(formsection.queries)),
53754
- React__default.createElement(CodexControls, { prevStepId: prevStepId, nextStepId: nextStepId, onPrev: () => {
53755
- console.log(`Teletraan-1 Codex :: ${formsection.title} :: onPrev()`);
53756
- }, onNext: () => {
53757
- console.log(`Teletraan-1 Codex :: ${formsection.title} :: onNext()`);
53758
- }, onFinish: () => {
53759
- console.log(`Teletraan-1 Codex :: ${formsection.title} :: onFinish()`);
53760
- } })));
53761
- }))));
53700
+ return (React__default.createElement(Codex, { brandColor: brandColor }, xFormModel.model.map((formsection, index, array) => (React__default.createElement(CodexItem, { key: formsection.sectionId, stepId: String(formsection.sectionId), title: formsection.title, icon: React__default.createElement(Icon, { name: formsection.icon || "fontfamily" }) },
53701
+ React__default.createElement(Row, { key: formsection.sectionId }, renderQueries(formsection.queries)),
53702
+ React__default.createElement(CodexControls, { prevStepId: index > 0 ? String(array[index - 1].sectionId) : undefined, nextStepId: index < array.length - 1 ? String(array[index + 1].sectionId) : undefined, onPrev: onPrev, onNext: onNext, onFinish: onFinish }))))));
53762
53703
  case 'codice':
53763
53704
  default:
53764
- return (React__default.createElement(React__default.Fragment, null,
53765
- "Codice/Script Display",
53766
- React__default.createElement(React__default.Fragment, { key: xFormModel.uuid }, xFormModel.model.map((formsection) => (React__default.createElement(React__default.Fragment, { key: formsection.sectionId || crypto.randomUUID() },
53767
- React__default.createElement(SectionTitle, { title: formsection.title, icon: React__default.createElement(Icon, { name: String(formsection.icon) }) }),
53768
- React__default.createElement(Row, null, renderQueries(formsection.queries))))))));
53705
+ return (React__default.createElement(React__default.Fragment, { key: xFormModel.uuid }, xFormModel.model.map((formsection) => (React__default.createElement(React__default.Fragment, { key: formsection.sectionId || crypto.randomUUID() },
53706
+ React__default.createElement(SectionTitle, { backgroundColor: brandColor, title: formsection.title, icon: React__default.createElement(Icon, { name: String(formsection.icon) }) }),
53707
+ React__default.createElement(Row, null, renderQueries(formsection.queries)))))));
53769
53708
  }
53770
53709
  };
53771
- return (React__default.createElement(Row, null, renderDisplayMode()));
53710
+ return (React__default.createElement(React__default.Fragment, null, renderDisplayMode()));
53772
53711
  };
53773
53712
 
53774
53713
  // ==========================================
@@ -54000,7 +53939,8 @@ const DateTimePicker = ({ alias, inputLabel, inputtype = 'datetimepicker-outline
54000
53939
  const fieldValue = getIn(values, alias);
54001
53940
  const fieldTouched = getIn(touched, alias);
54002
53941
  const fieldError = getIn(errors, alias);
54003
- const inputId = `${alias}FormInput` || crypto.randomUUID();
53942
+ const inputId = `${alias}FormInput`;
53943
+ const labelId = `${alias}InputLabel`;
54004
53944
  const hasError = Boolean(fieldTouched && fieldError);
54005
53945
  const containerRef = useRef(null);
54006
53946
  const [neuVars, setNeuVars] = useState({});
@@ -54109,11 +54049,11 @@ const DateTimePicker = ({ alias, inputLabel, inputtype = 'datetimepicker-outline
54109
54049
  React__default.createElement(DatePicker$1, { id: `${alias}DatePicker`, selected: (fieldValue && new Date(fieldValue)) || null, onChange: (val) => {
54110
54050
  setFieldValue(alias, val);
54111
54051
  setFieldTouched(alias, true, false);
54112
- }, showTimeSelect: true, timeFormat: "HH:mm", timeIntervals: 15, dateFormat: "MMM d, yyyy h:mm aa", disabled: readOnly, placeholderText: placeholder, customInput: React__default.createElement(u, { id: inputId, variant: "surface", style: getInputStyles() },
54052
+ }, showTimeSelect: true, timeFormat: "HH:mm", timeIntervals: 15, dateFormat: "MMM d, yyyy h:mm aa", disabled: readOnly, placeholderText: placeholder, "aria-labelledby": labelId, customInput: React__default.createElement(u, { id: inputId, variant: "surface", style: getInputStyles() },
54113
54053
  React__default.createElement(c, null,
54114
54054
  React__default.createElement(Icon, { name: "clock", height: "16", width: "16", style: { color: 'var(--gray-10)' } }))) }),
54115
54055
  React__default.createElement("div", null,
54116
- inputLabel && React__default.createElement(p$d, { size: "2", weight: "bold", as: "label", htmlFor: inputId }, inputLabel),
54056
+ inputLabel && React__default.createElement(p$d, { id: labelId, size: "2", weight: "bold", as: "div", style: { display: 'inline' } }, inputLabel),
54117
54057
  isHinted && (React__default.createElement(e, { content: hintText || "No hint", align: "start" },
54118
54058
  React__default.createElement("a", { href: hintUrl || "#", target: "_blank", rel: "noopener noreferrer", style: { marginLeft: 6 } },
54119
54059
  React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),