@emeraldemperaur/vector-sigma 1.4.2 → 1.4.3

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 (28) hide show
  1. package/lib/index.cjs +202 -172
  2. package/lib/index.esm.js +202 -172
  3. package/lib/types/components/avatar/avatar.d.ts +3 -3
  4. package/lib/types/components/button/button.d.ts +2 -2
  5. package/lib/types/components/checkbox/checkbox.d.ts +3 -3
  6. package/lib/types/components/conditional/conditional.d.ts +4 -4
  7. package/lib/types/components/datepicker/datepicker.d.ts +3 -3
  8. package/lib/types/components/daterangepicker/daterangepicker.d.ts +2 -2
  9. package/lib/types/components/datetimepicker/datetimepicker.d.ts +3 -3
  10. package/lib/types/components/dropdown/dropdown.d.ts +3 -3
  11. package/lib/types/components/file/file.d.ts +3 -3
  12. package/lib/types/components/file/filemultiple.d.ts +3 -3
  13. package/lib/types/components/image/image.d.ts +1 -1
  14. package/lib/types/components/input/input.d.ts +4 -4
  15. package/lib/types/components/input/passwordInput.d.ts +1 -1
  16. package/lib/types/components/input/phoneInput.d.ts +1 -1
  17. package/lib/types/components/input/uuidInput.d.ts +1 -1
  18. package/lib/types/components/input/xCreditCardInput.d.ts +1 -1
  19. package/lib/types/components/inputcurrency/inputcurrency.d.ts +1 -1
  20. package/lib/types/components/inputcurrency/stockInput.d.ts +1 -1
  21. package/lib/types/components/radio/radio.d.ts +2 -2
  22. package/lib/types/components/select/select.d.ts +2 -2
  23. package/lib/types/components/selectmultiple/selectmultiple.d.ts +2 -2
  24. package/lib/types/components/slider/range.d.ts +4 -4
  25. package/lib/types/components/slider/slider.d.ts +2 -2
  26. package/lib/types/components/toggle/toggle.d.ts +4 -11
  27. package/lib/types/components/xtitle/xtitle.d.ts +1 -2
  28. package/package.json +1 -1
package/lib/index.cjs CHANGED
@@ -12114,11 +12114,10 @@ const Column = (_a) => {
12114
12114
  return "span 12";
12115
12115
  return `span ${value}`;
12116
12116
  };
12117
- const baseSize = span ? `span ${span}` : (getSpan(xs) || "span 12");
12118
- return (React.createElement(p$8, Object.assign({}, props, {
12119
- // NEW: If newLine is true, force start at column 1
12120
- gridColumnStart: newLine ? "1" : props.gridColumnStart, gridColumn: {
12121
- initial: baseSize,
12117
+ const spanString = span ? `span ${span}` : (getSpan(xs) || "span 12");
12118
+ const initialGridColumn = newLine ? `1 / ${spanString}` : spanString;
12119
+ return (React.createElement(p$8, Object.assign({}, props, { gridColumn: {
12120
+ initial: initialGridColumn,
12122
12121
  xs: getSpan(xs),
12123
12122
  sm: getSpan(sm),
12124
12123
  md: getSpan(md),
@@ -12168,7 +12167,7 @@ const getStyles$1 = (inputtype, shape, hasError) => {
12168
12167
  return Object.assign(Object.assign(Object.assign({}, base), { borderRadius }), designStyles);
12169
12168
  };
12170
12169
  const AvatarInput = (_a) => {
12171
- var { inputtype = 'avatar-outline', alias, readOnly, width, placeholder = '', value, shape = 'circle', size = 120, style, accept = 'image/*' } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "placeholder", "value", "shape", "size", "style", "accept"]);
12170
+ var { inputtype = 'avatar-outline', alias, readonly, width, inputlabel = undefined, placeholder = '', value, shape = 'circle', size = 120, style, accept = 'image/*' } = _a, props = __rest$1(_a, ["inputtype", "alias", "readonly", "width", "inputlabel", "placeholder", "value", "shape", "size", "style", "accept"]);
12172
12171
  const [field, meta, helpers] = formik.useField(alias);
12173
12172
  const { setTouched } = formik.useFormikContext();
12174
12173
  const inputRef = React.useRef(null);
@@ -12235,9 +12234,10 @@ const AvatarInput = (_a) => {
12235
12234
  React.createElement(Icon, { name: 'camera', color: "white", width: "16", height: "16" })))) : (React.createElement(p$5, { direction: "column", align: "center", justify: "center", height: "100%", width: "100%" },
12236
12235
  React.createElement(Icon, { name: 'user', width: size * 0.4, height: size * 0.4, color: iconColor, style: { opacity: 0.5 } }),
12237
12236
  React.createElement(p$d, { size: "1", color: "gray", style: { marginTop: 4, opacity: 0.8 } }, "Upload")))),
12238
- React.createElement("input", { ref: inputRef, id: inputId || alias, name: alias, readOnly: readOnly, type: "file", accept: accept, onChange: handleFileChange, style: { display: 'none' } }),
12237
+ React.createElement("input", { ref: inputRef, id: inputId || alias, name: alias, readOnly: readonly, type: "file", accept: accept, onChange: handleFileChange, style: { display: 'none' } }),
12239
12238
  React.createElement("div", null,
12240
- props.inputLabel && (React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", color: 'gray', highContrast: inputtype !== 'avatar-neumorphic', htmlFor: alias }, props.inputLabel)),
12239
+ inputlabel && (React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", color: 'gray', highContrast: inputtype !== 'avatar-neumorphic', htmlFor: alias }, inputlabel)),
12240
+ "\u00A0",
12241
12241
  props.isHinted ?
12242
12242
  React.createElement(React.Fragment, null,
12243
12243
  React.createElement(e, { content: props.hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
@@ -12314,7 +12314,7 @@ const formatBytes = (bytes, decimals = 2) => {
12314
12314
  };
12315
12315
 
12316
12316
  const ButtonInput = (_a) => {
12317
- var { inputtype = 'button-outline', alias, readOnly, style, width, children } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "style", "width", "children"]);
12317
+ var { inputtype = 'button-outline', type = 'button', inputlabel = undefined, alias, readOnly, style, width, children } = _a, props = __rest$1(_a, ["inputtype", "type", "inputlabel", "alias", "readOnly", "style", "width", "children"]);
12318
12318
  const buttonRef = React.useRef(null);
12319
12319
  const [neumorphicVars, setNeumorphicVars] = React.useState({});
12320
12320
  const [bgColor, setBgColor] = React.useState('#ffffff');
@@ -12398,9 +12398,10 @@ const ButtonInput = (_a) => {
12398
12398
  transform: translateY(-2px);
12399
12399
  }
12400
12400
  ` } })),
12401
- React.createElement(o$a, Object.assign({ name: alias, disabled: readOnly, id: `${alias}FormInput`, "aria-describedby": `${alias}InputLabel`, ref: buttonRef, onClick: handler }, props, getVariantProps()),
12401
+ React.createElement(o$a, Object.assign({ name: alias, disabled: readOnly, id: `${alias}FormInput`, "aria-describedby": `${alias}InputLabel`, ref: buttonRef, onClick: handler, type: type }, props, getVariantProps()),
12402
12402
  props.icon && (React.createElement("span", { style: { display: 'flex', alignItems: 'center' } }, props.icon)),
12403
12403
  children),
12404
+ React.createElement("br", null),
12404
12405
  React.createElement("div", null, props.isHinted ?
12405
12406
  React.createElement(React.Fragment, null,
12406
12407
  React.createElement(e, { content: props.hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
@@ -12409,13 +12410,14 @@ const ButtonInput = (_a) => {
12409
12410
  };
12410
12411
 
12411
12412
  const CheckboxGroupInput = (_a) => {
12412
- var { inputtype = 'checkbox-outline', alias, readOnly, width, placeholder = '', style, value, inputoptions, direction = 'column', columns, className } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "placeholder", "style", "value", "inputoptions", "direction", "columns", "className"]);
12413
+ var { inputtype = 'checkbox-outline', alias, readonly, width, placeholder = '', inputlabel = undefined, style, value, inputoptions, direction = 'column', columns, className } = _a, props = __rest$1(_a, ["inputtype", "alias", "readonly", "width", "placeholder", "inputlabel", "style", "value", "inputoptions", "direction", "columns", "className"]);
12413
12414
  const { setFieldValue, setFieldTouched } = formik.useFormikContext();
12414
12415
  const [field, meta] = formik.useField(alias);
12415
12416
  const currentValues = (Array.isArray(field.value) ? field.value : []);
12416
12417
  const hasError = Boolean(meta.touched && meta.error);
12417
12418
  const containerRef = React.useRef(null);
12418
12419
  const [neuVars, setNeuVars] = React.useState({});
12420
+ const errorId = `${alias}-error`;
12419
12421
  const handleCheckedChange = (checked, value) => {
12420
12422
  let newValues = [...currentValues];
12421
12423
  if (checked) {
@@ -12467,22 +12469,23 @@ const CheckboxGroupInput = (_a) => {
12467
12469
  gap: '8px',
12468
12470
  cursor: 'pointer'
12469
12471
  } },
12470
- 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' ? {
12472
+ 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' ? {
12471
12473
  border: isChecked ? '2px solid var(--accent-9)' : '2px solid var(--gray-8)',
12472
12474
  backgroundColor: 'transparent'
12473
12475
  } : {})) }),
12474
12476
  React.createElement("span", { style: { userSelect: 'none' } }, inputoption.text)));
12475
12477
  })),
12476
12478
  React.createElement("div", null,
12477
- React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, props.inputLabel),
12478
- hasError ?
12479
- React.createElement(React.Fragment, null,
12480
- React.createElement("p", { className: 'core-input-label-error' }, props.errorText || "Required field")) : null,
12479
+ React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
12480
+ "\u00A0",
12481
12481
  props.isHinted ?
12482
12482
  React.createElement(React.Fragment, null,
12483
12483
  React.createElement(e, { content: props.hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
12484
12484
  React.createElement("a", { href: props.hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
12485
- React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null))));
12485
+ React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
12486
+ hasError ?
12487
+ React.createElement(React.Fragment, null,
12488
+ React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errorText || "Required field")) : null))));
12486
12489
  };
12487
12490
 
12488
12491
  const animationStyles = {
@@ -12513,7 +12516,7 @@ const getDesignStyles = (inputtype, isOpen) => {
12513
12516
  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)' });
12514
12517
  };
12515
12518
  const ConditionalTrigger = (_a) => {
12516
- var { alias, readOnly, width, placeholder = '', value, inputtype = 'conditionaltoggle-outline', triggerValue = true, inputoptions = [], toggledinputtype = "conditionaltoggle-outline", children, style, className } = _a, props = __rest$1(_a, ["alias", "readOnly", "width", "placeholder", "value", "inputtype", "triggerValue", "inputoptions", "toggledinputtype", "children", "style", "className"]);
12519
+ var { alias, readOnly, width, placeholder = '', value, inputlabel = undefined, inputtype = 'conditionaltoggle-outline', triggerValue = true, inputoptions = [], toggledinputtype = "conditionaltoggle-outline", children, style, className } = _a, props = __rest$1(_a, ["alias", "readOnly", "width", "placeholder", "value", "inputlabel", "inputtype", "triggerValue", "inputoptions", "toggledinputtype", "children", "style", "className"]);
12517
12520
  const [field, meta, helpers] = formik.useField(alias);
12518
12521
  const { setTouched } = formik.useFormikContext();
12519
12522
  const inputId = `${alias}FormInput` || crypto.randomUUID();
@@ -12530,18 +12533,15 @@ const ConditionalTrigger = (_a) => {
12530
12533
  switch (true) {
12531
12534
  case inputtype.includes('conditionalcheckbox'):
12532
12535
  return (React.createElement(p$5, { align: "center", gap: "2", style: { cursor: 'pointer' } },
12533
- React.createElement(c$2, { name: alias, disabled: readOnly, checked: field.value === true, onCheckedChange: (checked) => handleChange(!!checked), id: inputId }),
12534
- React.createElement(p$d, { as: "label", htmlFor: alias, size: "2", weight: "bold", style: { cursor: 'pointer' } }, props.inputLabel)));
12536
+ React.createElement(c$2, { name: alias, disabled: readOnly, checked: field.value === true, onCheckedChange: (checked) => handleChange(!!checked), id: inputId })));
12535
12537
  case inputtype.includes('conditionalselect'):
12536
12538
  return (React.createElement(p$5, { direction: "column", gap: "1", style: { width: '100%' } },
12537
- React.createElement(p$d, { as: "label", size: "2", weight: "bold" }, props.inputLabel),
12538
12539
  React.createElement(C$1, { name: alias, disabled: readOnly, value: field.value, defaultValue: placeholder || String(value) || "", onValueChange: handleChange },
12539
12540
  React.createElement(u$1, { id: inputId, variant: isNeumorphic ? 'soft' : 'surface', style: { width: '100%' } }),
12540
12541
  React.createElement(g, null, inputoptions.map((inputoption) => (React.createElement(v, { key: inputoption.optionvalue || crypto.randomUUID(), value: inputoption.optionvalue }, inputoption.text)))))));
12541
12542
  case inputtype.includes('conditionaltoggle'):
12542
12543
  default:
12543
12544
  return (React.createElement(p$5, { justify: "between", align: "center", style: { width: '100%' } },
12544
- React.createElement(p$d, { as: "label", size: "2", weight: "bold" }, props.inputLabel),
12545
12545
  React.createElement(i$1, { id: inputId, name: alias, disabled: readOnly, checked: field.value === true, onCheckedChange: (checked) => handleChange(!!checked), variant: isNeumorphic ? 'soft' : 'surface' })));
12546
12546
  }
12547
12547
  };
@@ -12556,16 +12556,17 @@ const ConditionalTrigger = (_a) => {
12556
12556
  borderTop: isOpen && !isNeumorphic ? '1px dashed var(--gray-6)' : 'none'
12557
12557
  } }, children))),
12558
12558
  React.createElement("div", null,
12559
- React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, props.inputLabel),
12560
- hasError ?
12561
- React.createElement(React.Fragment, null,
12562
- React.createElement("p", { id: errorId, className: 'core-input-label-error' }, typeof meta.error === 'string' ? React.createElement(React.Fragment, null, props.errorText || "Required field")
12563
- : 'Invalid file selection')) : null,
12559
+ React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias, style: { cursor: 'pointer' } }, inputlabel),
12560
+ "\u00A0",
12564
12561
  props.isHinted ?
12565
12562
  React.createElement(React.Fragment, null,
12566
12563
  React.createElement(e, { content: props.hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
12567
12564
  React.createElement("a", { href: props.hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
12568
- React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null))));
12565
+ React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
12566
+ hasError ?
12567
+ React.createElement(React.Fragment, null,
12568
+ React.createElement("p", { id: errorId, className: 'core-input-label-error' }, typeof meta.error === 'string' ? React.createElement(React.Fragment, null, props.errorText || "Required field")
12569
+ : 'Invalid file selection')) : null))));
12569
12570
  };
12570
12571
 
12571
12572
  /**
@@ -20844,7 +20845,7 @@ const ensureDate = (date) => {
20844
20845
  };
20845
20846
 
20846
20847
  const DatePicker = (_a) => {
20847
- var { inputtype = 'datepicker-outline', alias, readOnly, width, placeholder = 'Pick a date', value, minvalue, maxvalue, className, style } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "placeholder", "value", "minvalue", "maxvalue", "className", "style"]);
20848
+ var { inputtype = 'datepicker-outline', alias, readonly, width, inputlabel = undefined, placeholder = 'Pick a date', minvalue, maxvalue, className, style } = _a, props = __rest$1(_a, ["inputtype", "alias", "readonly", "width", "inputlabel", "placeholder", "minvalue", "maxvalue", "className", "style"]);
20848
20849
  const { setFieldValue, setFieldTouched } = formik.useFormikContext();
20849
20850
  const [field, meta] = formik.useField(alias);
20850
20851
  const hasError = Boolean(meta.touched && meta.error);
@@ -20948,20 +20949,21 @@ const DatePicker = (_a) => {
20948
20949
  }
20949
20950
  } })))),
20950
20951
  React.createElement("div", null,
20951
- React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, props.inputLabel),
20952
- hasError ?
20953
- React.createElement(React.Fragment, null,
20954
- React.createElement("p", { className: 'core-input-label-error' }, props.errorText || "Required field")) : null,
20952
+ React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
20953
+ "\u00A0",
20955
20954
  props.isHinted ?
20956
20955
  React.createElement(React.Fragment, null,
20957
20956
  React.createElement(e, { content: props.hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
20958
20957
  React.createElement("a", { href: props.hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
20959
- React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null))));
20958
+ React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
20959
+ hasError ?
20960
+ React.createElement(React.Fragment, null,
20961
+ React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errorText || "Required field")) : null))));
20960
20962
  };
20961
20963
 
20962
20964
  const DateRangePicker = (_a) => {
20963
20965
  var _b, _c;
20964
- var { inputtype = 'daterangepicker-outline', alias, readOnly, width, placeholder = '', value, minvalue, maxvalue, className, style } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "placeholder", "value", "minvalue", "maxvalue", "className", "style"]);
20966
+ var { inputtype = 'daterangepicker-outline', alias, readOnly, width, inputlabel = undefined, placeholder = '', value, minvalue, maxvalue, className, style } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "inputlabel", "placeholder", "value", "minvalue", "maxvalue", "className", "style"]);
20965
20967
  const { setFieldValue, setFieldTouched } = formik.useFormikContext();
20966
20968
  const [field, meta] = formik.useField(alias);
20967
20969
  const hasError = Boolean(meta.touched && meta.error);
@@ -21054,19 +21056,20 @@ const DateRangePicker = (_a) => {
21054
21056
  }
21055
21057
  } })))),
21056
21058
  React.createElement("div", null,
21057
- React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, props.inputLabel),
21058
- hasError ?
21059
- React.createElement(React.Fragment, null,
21060
- React.createElement("p", { className: 'core-input-label-error' }, props.errorText || "Required field")) : null,
21059
+ React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
21060
+ "\u00A0",
21061
21061
  props.isHinted ?
21062
21062
  React.createElement(React.Fragment, null,
21063
21063
  React.createElement(e, { content: props.hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
21064
21064
  React.createElement("a", { href: props.hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
21065
- React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null))));
21065
+ React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
21066
+ hasError ?
21067
+ React.createElement(React.Fragment, null,
21068
+ React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errorText || "Required field")) : null))));
21066
21069
  };
21067
21070
 
21068
21071
  const DateTimePicker = (_a) => {
21069
- var { inputtype = 'datetimepicker-outline', alias, readOnly, width, placeholder = '', value, minvalue, maxvalue, className, style } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "placeholder", "value", "minvalue", "maxvalue", "className", "style"]);
21072
+ var { inputtype = 'datetimepicker-outline', alias, readonly, width, inputlabel = undefined, placeholder = '', value, minvalue, maxvalue, className, style } = _a, props = __rest$1(_a, ["inputtype", "alias", "readonly", "width", "inputlabel", "placeholder", "value", "minvalue", "maxvalue", "className", "style"]);
21070
21073
  const { setFieldValue, setFieldTouched } = formik.useFormikContext();
21071
21074
  const [field, meta] = formik.useField(alias);
21072
21075
  const hasError = Boolean(meta.touched && meta.error);
@@ -21185,24 +21188,26 @@ const DateTimePicker = (_a) => {
21185
21188
  React.createElement("input", { type: "number", className: "time-input", min: "0", max: "59", value: selectedDate ? format$2(selectedDate, 'mm') : '00', onChange: (e) => handleTimeChange('minutes', e.target.value) }),
21186
21189
  React.createElement(o$a, { size: "1", variant: "soft", onClick: () => setIsOpen(false) }, "Done"))))),
21187
21190
  React.createElement("div", null,
21188
- React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, props.inputLabel),
21189
- hasError ?
21190
- React.createElement(React.Fragment, null,
21191
- React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errorText || "Required field")) : null,
21191
+ React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
21192
+ "\u00A0",
21192
21193
  props.isHinted ?
21193
21194
  React.createElement(React.Fragment, null,
21194
21195
  React.createElement(e, { content: props.hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
21195
21196
  React.createElement("a", { href: props.hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
21196
- React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null))));
21197
+ React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
21198
+ hasError ?
21199
+ React.createElement(React.Fragment, null,
21200
+ React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errorText || "Required field")) : null))));
21197
21201
  };
21198
21202
 
21199
21203
  const Dropdown = (_a) => {
21200
- var { inputtype = 'dropdown-outline', alias, readOnly, width, placeholder, value, inputoptions, style } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "placeholder", "value", "inputoptions", "style"]);
21204
+ var { inputtype = 'dropdown-outline', alias, readonly, width, inputlabel = undefined, placeholder, value, inputoptions, style } = _a, props = __rest$1(_a, ["inputtype", "alias", "readonly", "width", "inputlabel", "placeholder", "value", "inputoptions", "style"]);
21201
21205
  const triggerRef = React.useRef(null);
21202
21206
  const [neuVars, setNeuVars] = React.useState({});
21203
21207
  const { setFieldValue, setFieldTouched } = formik.useFormikContext();
21204
21208
  const [field, meta] = formik.useField(alias);
21205
21209
  const hasError = Boolean(meta.touched && meta.error);
21210
+ const errorId = `${alias}-error`;
21206
21211
  React.useEffect(() => {
21207
21212
  if (inputtype === 'dropdown-neumorphic' && triggerRef.current) {
21208
21213
  const parentBg = getNearestParentBackground(triggerRef.current.parentElement);
@@ -21216,6 +21221,9 @@ const Dropdown = (_a) => {
21216
21221
  });
21217
21222
  }
21218
21223
  }, [inputtype]);
21224
+ const openLink = (inputUrl) => {
21225
+ window.open(inputUrl, '_blank', 'noopener,noreferrer');
21226
+ };
21219
21227
  // --- STYLES ---
21220
21228
  // MATERIAL
21221
21229
  const materialTrigger = {
@@ -21280,7 +21288,7 @@ const Dropdown = (_a) => {
21280
21288
  cursor: pointer;
21281
21289
  }
21282
21290
  ` } })),
21283
- React.createElement(C$1, { name: alias, disabled: readOnly, "aria-describedby": `${alias}InputLabel`, defaultValue: props.defaultValue || value, value: field.value || value, onValueChange: (val) => {
21291
+ React.createElement(C$1, { name: alias, disabled: readonly, "aria-describedby": `${alias}InputLabel`, defaultValue: props.defaultValue || value, value: field.value, onValueChange: (val) => {
21284
21292
  setFieldValue(alias, val);
21285
21293
  setTimeout(() => setFieldTouched(alias, true), 0);
21286
21294
  }, onOpenChange: (isOpen) => {
@@ -21291,20 +21299,21 @@ const Dropdown = (_a) => {
21291
21299
  React.createElement(u$1, { id: `${alias}FormInput`, ref: triggerRef, variant: "ghost", placeholder: placeholder, className: `${inputtype === 'dropdown-neumorphic' ? 'neu-select-trigger' : ''} ${props.className || ''}`, style: Object.assign(Object.assign({}, activeTriggerStyle), style) }),
21292
21300
  React.createElement(g, { position: "popper", sideOffset: 5, style: activeContentStyle }, inputoptions.map((inputoption) => (React.createElement(React.Fragment, { key: inputoption.optionid || crypto.randomUUID() }, inputoption.optionurl ?
21293
21301
  React.createElement(v, { id: String(inputoption.optionid) || '', key: inputoption.optionid, value: inputoption.optionvalue, className: inputtype === 'dropdown-neumorphic' ? 'neu-select-item' : '' },
21294
- React.createElement("a", { style: { textDecoration: 'none' }, href: inputoption.optionurl || "", target: "_blank", rel: "noopener noreferrer" }, inputoption.text))
21302
+ React.createElement("a", { onClick: () => openLink(inputoption.optionurl || "#"), style: { textDecoration: 'none' } }, inputoption.text))
21295
21303
  :
21296
21304
  React.createElement(React.Fragment, null,
21297
21305
  React.createElement(v, { id: String(inputoption.optionid) || '', key: inputoption.optionid, value: inputoption.optionvalue, className: inputtype === 'dropdown-neumorphic' ? 'neu-select-item' : '' }, inputoption.text))))))),
21298
21306
  React.createElement("div", null,
21299
- React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, props.inputLabel),
21300
- hasError ?
21301
- React.createElement(React.Fragment, null,
21302
- React.createElement("p", { className: 'core-input-label-error' }, props.errorText || "Required field")) : null,
21307
+ React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
21308
+ "\u00A0",
21303
21309
  props.isHinted ?
21304
21310
  React.createElement(React.Fragment, null,
21305
21311
  React.createElement(e, { content: props.hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
21306
21312
  React.createElement("a", { href: props.hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
21307
- React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null)))));
21313
+ React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
21314
+ hasError ?
21315
+ React.createElement(React.Fragment, null,
21316
+ React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errorText || "Required field")) : null)))));
21308
21317
  };
21309
21318
 
21310
21319
  const getFileIcon$1 = (type, name) => {
@@ -21322,7 +21331,7 @@ const getFileIcon$1 = (type, name) => {
21322
21331
  };
21323
21332
  const File$1 = (_a) => {
21324
21333
  var _b;
21325
- var { inputtype = 'fileinput-outline', alias, readOnly, width, placeholder = '', value, preview = false, className, style } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "placeholder", "value", "preview", "className", "style"]);
21334
+ var { inputtype = 'fileinput-outline', alias, readonly, width, inputlabel = undefined, placeholder = '', preview = false, className, style } = _a, props = __rest$1(_a, ["inputtype", "alias", "readonly", "width", "inputlabel", "placeholder", "preview", "className", "style"]);
21326
21335
  const { setFieldValue, setFieldTouched } = formik.useFormikContext();
21327
21336
  const [field, meta] = formik.useField(alias);
21328
21337
  const selectedFile = field.value;
@@ -21394,7 +21403,7 @@ const File$1 = (_a) => {
21394
21403
  inputtype === 'fileinput-outline' ? outlineTrigger : materialTrigger;
21395
21404
  return (React.createElement(Column, { span: width, newLine: props.newRow },
21396
21405
  React.createElement(p$5, { direction: "column", gap: "2", width: "100%", ref: containerRef, style: style, className: className },
21397
- React.createElement("input", { ref: inputRef, id: inputId, name: alias, readOnly: readOnly, type: "file", accept: ACCEPTED_FORMATS, onChange: handleFileChange, style: { display: 'none' }, "aria-describedby": hasError ? errorId : undefined }),
21406
+ React.createElement("input", { ref: inputRef, id: inputId, name: alias, readOnly: readonly, type: "file", accept: ACCEPTED_FORMATS, onChange: handleFileChange, style: { display: 'none' }, "aria-describedby": hasError ? errorId : undefined }),
21398
21407
  React.createElement("div", { onClick: () => { var _a; return (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.click(); }, style: activeStyle, onMouseEnter: (e) => {
21399
21408
  if (inputtype === 'fileinput-outline')
21400
21409
  e.currentTarget.style.borderColor = 'var(--accent-9)';
@@ -21426,15 +21435,16 @@ const File$1 = (_a) => {
21426
21435
  React.createElement(o$5, { size: "1", variant: "ghost", color: "red", onClick: handleClear, style: { borderRadius: '50%', padding: 4 } },
21427
21436
  React.createElement(Icon, { name: 'close', width: "16", height: "16" }))))),
21428
21437
  React.createElement("div", null,
21429
- React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, props.inputLabel),
21430
- hasError ?
21431
- React.createElement(React.Fragment, null,
21432
- React.createElement("p", { className: 'core-input-label-error' }, props.errorText || "Required field")) : null,
21438
+ React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
21439
+ "\u00A0",
21433
21440
  props.isHinted ?
21434
21441
  React.createElement(React.Fragment, null,
21435
21442
  React.createElement(e, { content: props.hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
21436
21443
  React.createElement("a", { href: props.hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
21437
- React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null))));
21444
+ React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
21445
+ hasError ?
21446
+ React.createElement(React.Fragment, null,
21447
+ React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errorText || "Required field")) : null))));
21438
21448
  };
21439
21449
 
21440
21450
  const getFileIcon = (fileOrUrl) => {
@@ -21484,7 +21494,7 @@ const styles = {
21484
21494
  }
21485
21495
  };
21486
21496
  const FileMultiple = (_a) => {
21487
- var { inputtype = 'filemultiple-outline', alias, readOnly, width, placeholder = '', value, preview = true, className, style } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "placeholder", "value", "preview", "className", "style"]);
21497
+ var { inputtype = 'filemultiple-outline', alias, readonly, width, inputlabel = undefined, placeholder = '', preview = true, className, style } = _a, props = __rest$1(_a, ["inputtype", "alias", "readonly", "width", "inputlabel", "placeholder", "preview", "className", "style"]);
21488
21498
  const [field, meta] = formik.useField(alias);
21489
21499
  const { setFieldValue, setFieldTouched } = formik.useFormikContext();
21490
21500
  const inputRef = React.useRef(null);
@@ -21549,7 +21559,7 @@ const FileMultiple = (_a) => {
21549
21559
  ? `${currentFiles.length} file${currentFiles.length !== 1 ? 's' : ''} selected`
21550
21560
  : "Choose files..."),
21551
21561
  React.createElement(p$d, { size: "1", color: "gray", style: { opacity: 0.8 } }, "PDF, Images, Office Docs, JSON, ZIP"))),
21552
- React.createElement("input", { id: inputId || alias, ref: inputRef, readOnly: readOnly, name: alias, type: "file", multiple: true, accept: ACCEPTED_EXTENSIONS, onChange: handleFileChange, style: { display: 'none' }, "aria-describedby": hasError ? errorId : undefined })),
21562
+ React.createElement("input", { id: inputId || alias, ref: inputRef, readOnly: readonly, name: alias, type: "file", multiple: true, accept: ACCEPTED_EXTENSIONS, onChange: handleFileChange, style: { display: 'none' }, "aria-describedby": hasError ? errorId : undefined })),
21553
21563
  preview && currentFiles.length > 0 && (React.createElement(o$6, { columns: "repeat(auto-fill, minmax(220px, 1fr))", gap: "3", mt: "3" }, currentFiles.map((file, index) => {
21554
21564
  // Detect preview URL:
21555
21565
  // If string (URL from DB), use urlpath
@@ -21592,17 +21602,18 @@ const FileMultiple = (_a) => {
21592
21602
  React.createElement(Icon, { name: 'close' })))));
21593
21603
  }))),
21594
21604
  React.createElement("div", null,
21595
- React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, props.inputLabel),
21596
- hasError ?
21597
- React.createElement(React.Fragment, null,
21598
- React.createElement("p", { id: errorId, className: 'core-input-label-error' }, typeof meta.error === 'string' ?
21599
- React.createElement(React.Fragment, null, props.errorText || "Required field")
21600
- : 'Invalid file selection')) : null,
21605
+ React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
21606
+ "\u00A0",
21601
21607
  props.isHinted ?
21602
21608
  React.createElement(React.Fragment, null,
21603
21609
  React.createElement(e, { content: props.hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
21604
21610
  React.createElement("a", { href: props.hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
21605
- React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null))));
21611
+ React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
21612
+ hasError ?
21613
+ React.createElement(React.Fragment, null,
21614
+ React.createElement("p", { id: errorId, className: 'core-input-label-error' }, typeof meta.error === 'string' ?
21615
+ React.createElement(React.Fragment, null, props.errorText || "Required field")
21616
+ : 'Invalid file selection')) : null))));
21606
21617
  };
21607
21618
 
21608
21619
  var _excluded$6 = ["title"],
@@ -28896,7 +28907,7 @@ const getStyles = (design, layout) => {
28896
28907
  }
28897
28908
  return Object.assign(Object.assign({ borderRadius }, visualStyles), { position: 'relative', overflow: 'hidden', display: 'block' });
28898
28909
  };
28899
- const Image = ({ id, src, alt = "Image", design = 'outline', layout = 'normal', aspectRatio = 16 / 9, height, width = '100%', className, style, onClick, }) => {
28910
+ const ImageOutput = ({ id, src, alt = "Image", design = 'outline', layout = 'normal', aspectRatio = 16 / 9, height, width = '100%', className, style, onClick, }) => {
28900
28911
  const containerStyles = getStyles(design, layout);
28901
28912
  const iconColor = design === 'neumorphic' ? '#555' : 'var(--gray-9)';
28902
28913
  const content = (React.createElement(p$8, { className: className, style: Object.assign(Object.assign(Object.assign({}, containerStyles), { width, height: height || 'auto' }), style), onClick: onClick }, src ? (React.createElement("img", { id: String(id), src: src, alt: alt, style: {
@@ -28921,40 +28932,44 @@ const Image = ({ id, src, alt = "Image", design = 'outline', layout = 'normal',
28921
28932
  };
28922
28933
 
28923
28934
  const Input$1 = (_a) => {
28924
- var { alias, inputtype = "text", width, inputLabel, readOnly = false, placeholder = '', className, size = "2", style, inputVariant = 'input-outline' } = _a, props = __rest$1(_a, ["alias", "inputtype", "width", "inputLabel", "readOnly", "placeholder", "className", "size", "style", "inputVariant"]);
28935
+ var { alias, inputtype = "text", width, inputlabel = undefined, readonly = false, placeholder = '', className, size = "2", style, inputVariant = 'input-outline' } = _a, props = __rest$1(_a, ["alias", "inputtype", "width", "inputlabel", "readonly", "placeholder", "className", "size", "style", "inputVariant"]);
28925
28936
  const [inputField, meta] = formik.useField(alias);
28926
28937
  const hasError = Boolean(meta.touched && meta.error);
28927
28938
  const variantClass = inputVariant !== 'input-outline' ? `input-${inputVariant}` : '';
28939
+ const errorId = `${alias}-error`;
28928
28940
  return (React.createElement(Column, { span: width, newLine: props.newRow },
28929
- React.createElement(u, Object.assign({ size: size, type: inputtype, id: `${alias}FormInput`, "aria-describedby": `${alias}InputLabel`, readOnly: readOnly, placeholder: placeholder, color: hasError ? "red" : undefined, className: `${variantClass} ${className || ''}` }, inputField, props, { name: alias })),
28941
+ React.createElement(u, Object.assign({ size: size, type: inputtype, id: `${alias}FormInput`, "aria-describedby": `${alias}InputLabel`, readOnly: readonly, placeholder: placeholder, color: hasError ? "red" : undefined, className: `${variantClass} ${className || ''}` }, inputField, props, { name: alias })),
28930
28942
  React.createElement("div", null,
28931
- React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputLabel),
28932
- hasError && (React.createElement("p", { className: 'core-input-label-error' }, props.errorText || `Required field`)),
28943
+ React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
28944
+ "\u00A0",
28933
28945
  props.isHinted && (React.createElement(e, { content: props.hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
28934
28946
  React.createElement("a", { href: props.hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
28935
- React.createElement(QuestionMarkCircledIcon, { height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))))));
28947
+ React.createElement(QuestionMarkCircledIcon, { height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
28948
+ hasError && (React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errorText || `Required field`)))));
28936
28949
  };
28937
28950
 
28938
28951
  const PasswordInput = (_a) => {
28939
- var { alias, inputLabel, width, readOnly = false, placeholder = '', inputVariant = 'input-outline', size = "2", className } = _a, props = __rest$1(_a, ["alias", "inputLabel", "width", "readOnly", "placeholder", "inputVariant", "size", "className"]);
28952
+ var { alias, inputlabel = undefined, width, readonly = false, placeholder = '', inputVariant = 'input-outline', size = "2", className } = _a, props = __rest$1(_a, ["alias", "inputlabel", "width", "readonly", "placeholder", "inputVariant", "size", "className"]);
28940
28953
  const [showPassword, setShowPassword] = React.useState(false);
28941
28954
  const toggleVisibility = () => setShowPassword(!showPassword);
28942
28955
  const [field, meta] = formik.useField(alias);
28943
28956
  const hasError = Boolean(meta.touched && meta.error);
28944
28957
  const variantClass = inputVariant !== 'input-outline' ? `input-${inputVariant}` : '';
28958
+ const errorId = `${alias}-error`;
28945
28959
  return (React.createElement(Column, { span: width, newLine: props.newRow },
28946
- 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 }),
28960
+ 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 }),
28947
28961
  React.createElement(c, null,
28948
28962
  React.createElement(Icon, { name: "lockclosed", height: "16", width: "16" })),
28949
28963
  React.createElement(c, null,
28950
28964
  React.createElement(e, { content: showPassword ? "Hide password" : "Show password" },
28951
28965
  React.createElement(o$5, { size: "1", variant: "ghost", color: "gray", onClick: toggleVisibility, type: "button", "aria-label": showPassword ? "Hide password" : "Show password" }, showPassword ? (React.createElement(Icon, { name: "eyeopen", height: "16", width: "16" })) : (React.createElement(Icon, { name: "eyeclosed", height: "16", width: "16" })))))),
28952
28966
  React.createElement("div", null,
28953
- React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputLabel),
28954
- hasError && (React.createElement("p", { className: 'core-input-label-error' }, props.errorText || `Required field`)),
28967
+ React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
28968
+ "\u00A0",
28955
28969
  props.isHinted && (React.createElement(e, { content: props.hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
28956
28970
  React.createElement("a", { href: props.hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
28957
- React.createElement(QuestionMarkCircledIcon, { height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))))));
28971
+ React.createElement(QuestionMarkCircledIcon, { height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
28972
+ hasError && (React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errorText || `Required field`)))));
28958
28973
  };
28959
28974
 
28960
28975
  // This file is a workaround for a bug in web browsers' "native"
@@ -36496,12 +36511,13 @@ var en = {
36496
36511
  };
36497
36512
 
36498
36513
  const PhoneInput = (_a) => {
36499
- var { alias, inputLabel, width, placeholder = "Phone Number", readOnly, inputVariant = 'input-outline', size = "2", className } = _a, props = __rest$1(_a, ["alias", "inputLabel", "width", "placeholder", "readOnly", "inputVariant", "size", "className"]);
36514
+ var { alias, inputlabel = undefined, width, placeholder = "Phone Number", readonly, inputVariant = 'input-outline', size = "2", className } = _a, props = __rest$1(_a, ["alias", "inputlabel", "width", "placeholder", "readonly", "inputVariant", "size", "className"]);
36500
36515
  const { setFieldValue, setFieldTouched } = formik.useFormikContext();
36501
36516
  const [field, meta] = formik.useField(alias);
36502
36517
  const hasError = Boolean(meta.touched && meta.error);
36503
36518
  const [country, setCountry] = React.useState('US');
36504
36519
  const variantClass = inputVariant !== 'input-outline' ? `input-${inputVariant}` : '';
36520
+ const errorId = `${alias}-error`;
36505
36521
  return (React.createElement(Column, { span: width, newLine: props.newRow },
36506
36522
  React.createElement(p$5, { direction: "column", gap: "2", style: { width: '100%' } },
36507
36523
  React.createElement(u, Object.assign({ size: size, variant: "surface", id: `${alias}FormInput`, "aria-describedby": `${alias}InputLabel`, color: hasError ? "red" : undefined, className: `${variantClass} ${className || ''}` }, props, { name: alias }),
@@ -36529,7 +36545,7 @@ const PhoneInput = (_a) => {
36529
36545
  getCountryCallingCode(c),
36530
36546
  ")"))))))),
36531
36547
  React.createElement("div", { style: { width: '1px', height: '20px', backgroundColor: 'var(--gray-a4)', alignSelf: 'center' } })),
36532
- React.createElement(PhoneInputInput, { country: country, value: field.value, onChange: (val) => setFieldValue(alias, val), onBlur: () => setFieldTouched(alias, true), placeholder: placeholder, readOnly: readOnly, style: {
36548
+ React.createElement(PhoneInputInput, { country: country, value: field.value, onChange: (val) => setFieldValue(alias, val), onBlur: () => setFieldTouched(alias, true), placeholder: placeholder, readOnly: readonly, style: {
36533
36549
  flex: 1,
36534
36550
  border: 'none',
36535
36551
  outline: 'none',
@@ -36541,11 +36557,12 @@ const PhoneInput = (_a) => {
36541
36557
  fontSize: 'var(--font-size-2)'
36542
36558
  } })),
36543
36559
  React.createElement("div", { style: { marginTop: 4, display: 'flex', alignItems: 'center', gap: 6 } },
36544
- React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputLabel),
36545
- hasError && (React.createElement(p$d, { size: "1", color: "red", className: 'core-input-label-error' }, props.errorText || `Required field`)),
36560
+ React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
36561
+ "\u00A0",
36546
36562
  props.isHinted && (React.createElement(e, { content: props.hintText || "No hint available" },
36547
36563
  React.createElement("a", { href: props.hintUrl || "", target: "_blank", rel: "noopener noreferrer", style: { display: 'flex' } },
36548
- React.createElement(QuestionMarkCircledIcon, { height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } }))))))));
36564
+ React.createElement(QuestionMarkCircledIcon, { height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
36565
+ hasError && (React.createElement(p$d, { id: errorId, size: "1", color: "red", className: 'core-input-label-error' }, props.errorText || `Required field`))))));
36549
36566
  };
36550
36567
 
36551
36568
  /** Checks if value is string */
@@ -40336,7 +40353,7 @@ const parseUuidFormat = (input) => {
40336
40353
  };
40337
40354
 
40338
40355
  const UUIDInput = (_a) => {
40339
- var { alias, type, inputLabel, width, delimiter = "-", format = [4, 4, 4, 4], placeholder = '', readOnly = false, inputVariant = 'input-outline', size = "2", className } = _a, props = __rest$1(_a, ["alias", "type", "inputLabel", "width", "delimiter", "format", "placeholder", "readOnly", "inputVariant", "size", "className"]);
40356
+ var { alias, type, inputLabel = undefined, width, delimiter = "-", format = [4, 4, 4, 4], placeholder = '', readOnly = false, inputVariant = 'input-outline', size = "2", className } = _a, props = __rest$1(_a, ["alias", "type", "inputLabel", "width", "delimiter", "format", "placeholder", "readOnly", "inputVariant", "size", "className"]);
40340
40357
  let activeFormat = format;
40341
40358
  if (type && type.toLowerCase().startsWith("uuid") && type.length > 4) {
40342
40359
  activeFormat = parseUuidFormat(type) || format;
@@ -40346,6 +40363,7 @@ const UUIDInput = (_a) => {
40346
40363
  const [field, meta] = formik.useField(alias);
40347
40364
  const hasError = Boolean(meta.touched && meta.error);
40348
40365
  const [copied, setCopied] = React.useState(false);
40366
+ const errorId = `${alias}-error`;
40349
40367
  const handleCopy = () => {
40350
40368
  navigator.clipboard.writeText(field.value || '');
40351
40369
  setCopied(true);
@@ -40355,7 +40373,7 @@ const UUIDInput = (_a) => {
40355
40373
  return (React.createElement(Column, { span: width, newLine: props.newRow },
40356
40374
  React.createElement(p$5, { direction: "column", gap: "2", style: { width: '100%' } },
40357
40375
  React.createElement(u, Object.assign({ size: size, variant: "surface", color: hasError ? 'red' : undefined, className: `${variantClass} ${className || ''}` }, props),
40358
- React.createElement(IMaskInput, { id: `${alias}FormInput`, name: alias, "aria-describedby": `${alias}InputLabel`, readOnly: readOnly, mask: maskPattern, value: field.value || '', unmask: true, onAccept: (val) => setFieldValue(alias, val), onBlur: () => setFieldTouched(alias, true), placeholder: placeholder, style: {
40376
+ React.createElement(IMaskInput, { id: `${alias}FormInput`, name: alias, "aria-describedby": `${alias}InputLabel`, readOnly: readOnly, mask: maskPattern, value: field.value, unmask: true, onAccept: (val) => setFieldValue(alias, val), onBlur: () => setFieldTouched(alias, true), placeholder: placeholder, style: {
40359
40377
  flex: 1,
40360
40378
  border: 'none',
40361
40379
  outline: 'none',
@@ -40373,10 +40391,11 @@ const UUIDInput = (_a) => {
40373
40391
  React.createElement(o$5, { size: "1", variant: "ghost", color: copied ? "green" : "gray", onClick: handleCopy, type: "button", disabled: !field.value }, copied ? React.createElement(CheckIcon, null) : React.createElement(CopyIcon, null))))),
40374
40392
  React.createElement("div", null,
40375
40393
  React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputLabel),
40376
- hasError && (React.createElement("p", { className: 'core-input-label-error' }, props.errorText || `Required field`)),
40394
+ "\u00A0",
40377
40395
  props.isHinted && (React.createElement(e, { content: props.hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
40378
40396
  React.createElement("a", { href: props.hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
40379
- React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } }))))))));
40397
+ React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
40398
+ hasError && (React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errorText || `Required field`))))));
40380
40399
  };
40381
40400
 
40382
40401
  var FaCcVisa = {};
@@ -41808,13 +41827,14 @@ var cardValidator = /*@__PURE__*/getDefaultExportFromCjs(distExports);
41808
41827
 
41809
41828
  const CreditCardInput = (_a) => {
41810
41829
  var _b;
41811
- var { alias, inputLabel, width, placeholder, readOnly = false, inputVariant = 'input-outline', className } = _a, props = __rest$1(_a, ["alias", "inputLabel", "width", "placeholder", "readOnly", "inputVariant", "className"]);
41830
+ var { alias, inputlabel = undefined, width, placeholder, readonly = false, inputVariant = 'input-outline', className } = _a, props = __rest$1(_a, ["alias", "inputlabel", "width", "placeholder", "readonly", "inputVariant", "className"]);
41812
41831
  const { setFieldValue, setFieldTouched } = formik.useFormikContext();
41813
41832
  const [field, meta] = formik.useField(alias);
41814
41833
  const hasError = Boolean(meta.touched && meta.error);
41815
- const cardInfo = cardValidator.number(field.value || '');
41834
+ const cardInfo = cardValidator.number(field.value);
41816
41835
  const cardType = (_b = cardInfo.card) === null || _b === void 0 ? void 0 : _b.type;
41817
41836
  const maskPattern = cardType === 'american-express' ? '0000 000000 00000' : '0000 0000 0000 0000';
41837
+ const errorId = `${alias}-error`;
41818
41838
  const getCardIcon = () => {
41819
41839
  switch (cardType) {
41820
41840
  case 'visa': return React.createElement(FaCcVisaExports.FaCcVisa, { color: "#1A1F71", size: "22" });
@@ -41837,7 +41857,7 @@ const CreditCardInput = (_a) => {
41837
41857
  paddingRight: '12px',
41838
41858
  cursor: 'text'
41839
41859
  } },
41840
- 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: {
41860
+ 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: {
41841
41861
  flex: 1,
41842
41862
  border: 'none',
41843
41863
  outline: 'none',
@@ -41851,11 +41871,12 @@ const CreditCardInput = (_a) => {
41851
41871
  } }),
41852
41872
  React.createElement("div", { style: { display: 'flex', alignItems: 'center' } }, getCardIcon())),
41853
41873
  React.createElement("div", { style: { marginTop: 4, display: 'flex', alignItems: 'center', gap: 6 } },
41854
- React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputLabel),
41855
- hasError && (React.createElement(p$d, { size: "1", color: "red", className: 'core-input-label-error' }, props.errorText || `Required field`)),
41874
+ React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
41875
+ "\u00A0",
41856
41876
  props.isHinted && (React.createElement(e, { content: props.hintText || "No hint available" },
41857
41877
  React.createElement("a", { href: props.hintUrl || "", target: "_blank", rel: "noopener noreferrer", style: { display: 'flex' } },
41858
- React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } }))))))));
41878
+ React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
41879
+ hasError && (React.createElement(p$d, { id: errorId, size: "1", color: "red", className: 'core-input-label-error' }, props.errorText || `Required field`))))));
41859
41880
  };
41860
41881
 
41861
41882
  const CURRENCIES = {
@@ -41927,7 +41948,7 @@ const CURRENCIES = {
41927
41948
  };
41928
41949
 
41929
41950
  const CurrencyInput = (_a) => {
41930
- var { alias, inputtype = "currency", inputLabel, width, defaultValue, placeholder, readOnly = false, inputVariant = 'input-outline', className } = _a, props = __rest$1(_a, ["alias", "inputtype", "inputLabel", "width", "defaultValue", "placeholder", "readOnly", "inputVariant", "className"]);
41951
+ var { alias, inputtype = "currency", inputLabel = undefined, width, defaultValue, placeholder, readOnly = false, inputVariant = 'input-outline', className } = _a, props = __rest$1(_a, ["alias", "inputtype", "inputLabel", "width", "defaultValue", "placeholder", "readOnly", "inputVariant", "className"]);
41931
41952
  const { setFieldValue, setFieldTouched } = formik.useFormikContext();
41932
41953
  const [amountField, amountMeta] = formik.useField(alias);
41933
41954
  const currencyFieldName = inputtype === "currency" ? "USD" : inputtype;
@@ -41936,6 +41957,7 @@ const CurrencyInput = (_a) => {
41936
41957
  const activeCurrency = CURRENCIES[currencyField.value] || CURRENCIES.USD;
41937
41958
  const variantClass = inputVariant !== 'input-outline' ? `input-${inputVariant}` : '';
41938
41959
  const isOutline = inputVariant === 'input-outline';
41960
+ const errorId = `${alias}-error`;
41939
41961
  return (React.createElement(Column, { span: width, newLine: props.newRow },
41940
41962
  React.createElement(p$5, { direction: "column", gap: "2", style: { width: '100%' } },
41941
41963
  React.createElement(p$5, { align: "center", className: `rt-TextFieldRoot rt-r-size-2 rt-variant-surface ${variantClass} ${className || ''}`, style: {
@@ -41985,10 +42007,11 @@ const CurrencyInput = (_a) => {
41985
42007
  }, inputMode: "decimal", autoComplete: "off" })),
41986
42008
  React.createElement("div", null,
41987
42009
  React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputLabel),
41988
- hasError && (React.createElement(p$d, { size: "1", color: "red", className: 'core-input-label-error' }, props.errorText || `Required field`)),
42010
+ "\u00A0",
41989
42011
  props.isHinted && (React.createElement(e, { content: props.hintText || "No hint available" },
41990
42012
  React.createElement("a", { href: props.hintUrl || "", target: "_blank", rel: "noopener noreferrer", style: { display: 'flex' } },
41991
- React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } }))))))));
42013
+ React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
42014
+ hasError && (React.createElement(p$d, { id: errorId, size: "1", color: "red", className: 'core-input-label-error' }, props.errorText || `Required field`))))));
41992
42015
  };
41993
42016
 
41994
42017
  var FaChartLine = {};
@@ -42009,12 +42032,13 @@ function requireFaChartLine () {
42009
42032
  var FaChartLineExports = /*@__PURE__*/ requireFaChartLine();
42010
42033
 
42011
42034
  const StockInput = (_a) => {
42012
- var { alias, inputLabel, width, defaultValue, placeholder, readOnly = false, inputVariant = 'input-outline', className } = _a, props = __rest$1(_a, ["alias", "inputLabel", "width", "defaultValue", "placeholder", "readOnly", "inputVariant", "className"]);
42035
+ var { alias, inputLabel = undefined, width, defaultValue, placeholder, readOnly = false, inputVariant = 'input-outline', className } = _a, props = __rest$1(_a, ["alias", "inputLabel", "width", "defaultValue", "placeholder", "readOnly", "inputVariant", "className"]);
42013
42036
  const { setFieldValue, setFieldTouched } = formik.useFormikContext();
42014
42037
  const [priceField, meta] = formik.useField(alias);
42015
42038
  const hasError = Boolean(meta.touched && meta.error);
42016
42039
  const variantClass = inputVariant !== 'input-outline' ? `input-${inputVariant}` : '';
42017
42040
  const isOutline = inputVariant === 'input-outline';
42041
+ const errorId = `${alias}-error`;
42018
42042
  return (React.createElement(Column, { span: width, newLine: props.newRow },
42019
42043
  React.createElement(p$5, { direction: "column", gap: "2", style: { width: '100%' } },
42020
42044
  React.createElement(p$5, { align: "center", justify: "between", className: `rt-TextFieldRoot rt-r-size-2 rt-variant-surface ${variantClass} ${className || ''}`, style: {
@@ -42057,19 +42081,21 @@ const StockInput = (_a) => {
42057
42081
  }, inputMode: "decimal", autoComplete: "off" }))),
42058
42082
  React.createElement("div", null,
42059
42083
  React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputLabel),
42060
- hasError && (React.createElement("p", { className: 'core-input-label-error' }, props.errorText || `Required field`)),
42084
+ "\u00A0",
42061
42085
  props.isHinted && (React.createElement(e, { content: props.hintText || "No hint available" },
42062
42086
  React.createElement("a", { href: props.hintUrl || "", target: "_blank", rel: "noopener noreferrer", style: { display: 'flex' } },
42063
- React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } }))))))));
42087
+ React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
42088
+ hasError && (React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errorText || `Required field`))))));
42064
42089
  };
42065
42090
 
42066
42091
  const RadioGroupInput = (_a) => {
42067
- var { inputtype = 'radio-outline', alias, readOnly, width, placeholder = '', style, value, inputoptions, direction = 'column', columns, className } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "placeholder", "style", "value", "inputoptions", "direction", "columns", "className"]);
42092
+ var { inputtype = 'radio-outline', alias, readOnly, width, inputLabel = undefined, placeholder = '', style, inputoptions, direction = 'column', columns, className } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "inputLabel", "placeholder", "style", "inputoptions", "direction", "columns", "className"]);
42068
42093
  const { setFieldValue, setFieldTouched } = formik.useFormikContext();
42069
42094
  const [field, meta] = formik.useField(alias);
42070
42095
  const hasError = Boolean(meta.touched && meta.error);
42071
42096
  const containerRef = React.useRef(null);
42072
42097
  const [neuVars, setNeuVars] = React.useState({});
42098
+ const errorId = `${alias}-error`;
42073
42099
  React.useEffect(() => {
42074
42100
  if (inputtype === 'radio-neumorphic' && containerRef.current) {
42075
42101
  const parentBg = getNearestParentBackground(containerRef.current.parentElement);
@@ -42132,10 +42158,10 @@ const RadioGroupInput = (_a) => {
42132
42158
  React.createElement("span", { style: { userSelect: 'none' } }, inputoption.text))));
42133
42159
  }))),
42134
42160
  React.createElement("div", null,
42135
- React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, props.inputLabel),
42161
+ React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputLabel),
42136
42162
  hasError ?
42137
42163
  React.createElement(React.Fragment, null,
42138
- React.createElement("p", { className: 'core-input-label-error' }, props.errorText || `Required field`)) : null,
42164
+ React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errorText || `Required field`)) : null,
42139
42165
  props.isHinted ?
42140
42166
  React.createElement(React.Fragment, null,
42141
42167
  React.createElement(e, { content: props.hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
@@ -42144,12 +42170,13 @@ const RadioGroupInput = (_a) => {
42144
42170
  };
42145
42171
 
42146
42172
  const OptionSelect = (_a) => {
42147
- var { inputtype = 'select-outline', alias, readOnly, width, placeholder = '', style, value, inputoptions, className } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "placeholder", "style", "value", "inputoptions", "className"]);
42173
+ var { inputtype = 'select-outline', alias, readOnly, width, inputLabel = undefined, placeholder = '', style, inputoptions, className } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "inputLabel", "placeholder", "style", "inputoptions", "className"]);
42148
42174
  const triggerRef = React.useRef(null);
42149
42175
  const [neuVars, setNeuVars] = React.useState({});
42150
42176
  const { setFieldValue, setFieldTouched } = formik.useFormikContext();
42151
42177
  const [field, meta] = formik.useField(alias);
42152
42178
  const hasError = Boolean(meta.touched && meta.error);
42179
+ const errorId = `${alias}-error`;
42153
42180
  React.useEffect(() => {
42154
42181
  if (inputtype === 'select-neumorphic' && triggerRef.current) {
42155
42182
  const parentBg = getNearestParentBackground(triggerRef.current.parentElement);
@@ -42205,7 +42232,7 @@ const OptionSelect = (_a) => {
42205
42232
  cursor: pointer;
42206
42233
  }
42207
42234
  ` } })),
42208
- React.createElement(C$1, { name: alias, disabled: readOnly, "aria-describedby": `${alias}InputLabel`, defaultValue: props.defaultValue || value, value: field.value || value, onValueChange: (val) => {
42235
+ React.createElement(C$1, { name: alias, disabled: readOnly, "aria-describedby": `${alias}InputLabel`, defaultValue: props.defaultValue, value: field.value, onValueChange: (val) => {
42209
42236
  setFieldValue(alias, val);
42210
42237
  setTimeout(() => setFieldTouched(alias, true), 0);
42211
42238
  }, onOpenChange: (isOpen) => {
@@ -42216,10 +42243,10 @@ const OptionSelect = (_a) => {
42216
42243
  React.createElement(u$1, { id: `${alias}FormInput`, ref: triggerRef, variant: "ghost", placeholder: placeholder, className: `${inputtype === 'select-neumorphic' ? 'neu-select-trigger' : ''} ${className || ''}`, style: Object.assign(Object.assign({}, activeTriggerStyle), style) }),
42217
42244
  React.createElement(g, { position: "popper", sideOffset: 5 }, inputoptions.map((option) => (React.createElement(v, { id: String(option.optionid) || '', key: option.optionid, value: option.optionvalue, className: inputtype === 'select-neumorphic' ? 'neu-select-item' : '' }, option.text))))),
42218
42245
  React.createElement("div", null,
42219
- React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, props.inputLabel),
42246
+ React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputLabel),
42220
42247
  hasError ?
42221
42248
  React.createElement(React.Fragment, null,
42222
- React.createElement("p", { className: 'core-input-label-error' }, props.errorText || `Required field`)) : null,
42249
+ React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errorText || `Required field`)) : null,
42223
42250
  props.isHinted ?
42224
42251
  React.createElement(React.Fragment, null,
42225
42252
  React.createElement(e, { content: props.hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
@@ -42229,7 +42256,7 @@ const OptionSelect = (_a) => {
42229
42256
 
42230
42257
  const MultipleSelect = (_a) => {
42231
42258
  var _b;
42232
- var { inputtype = 'multiselect-outline', alias, readOnly, width, placeholder = '', style, value, inputoptions, className } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "placeholder", "style", "value", "inputoptions", "className"]);
42259
+ var { inputtype = 'multiselect-outline', alias, readOnly, width, inputLabel = undefined, placeholder = '', style, inputoptions, className } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "inputLabel", "placeholder", "style", "inputoptions", "className"]);
42233
42260
  const { setFieldValue, setFieldTouched } = formik.useFormikContext();
42234
42261
  const [field, meta] = formik.useField(alias);
42235
42262
  const selectedValues = (Array.isArray(field.value) ? field.value : []);
@@ -42237,6 +42264,7 @@ const MultipleSelect = (_a) => {
42237
42264
  const triggerRef = React.useRef(null);
42238
42265
  const [neuVars, setNeuVars] = React.useState({});
42239
42266
  const [isOpen, setIsOpen] = React.useState(false);
42267
+ const errorId = `${alias}-error`;
42240
42268
  const handleToggle = (value) => {
42241
42269
  const newValues = selectedValues.includes(value)
42242
42270
  ? selectedValues.filter((v) => v !== value) // Remove Unselected Values
@@ -42313,10 +42341,10 @@ const MultipleSelect = (_a) => {
42313
42341
  React.createElement(p$d, { size: "2" }, inputoption.text)));
42314
42342
  })))))),
42315
42343
  React.createElement("div", null,
42316
- React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, props.inputLabel),
42344
+ React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputLabel),
42317
42345
  hasError ?
42318
42346
  React.createElement(React.Fragment, null,
42319
- React.createElement("p", { className: 'core-input-label-error' }, props.errorText || `Required field`)) : null,
42347
+ React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errorText || `Required field`)) : null,
42320
42348
  props.isHinted ?
42321
42349
  React.createElement(React.Fragment, null,
42322
42350
  React.createElement(e, { content: props.hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
@@ -42325,13 +42353,14 @@ const MultipleSelect = (_a) => {
42325
42353
  };
42326
42354
 
42327
42355
  const SliderInput = (_a) => {
42328
- var { inputtype = 'slider-outline', alias, readOnly, width, placeholder = '', value, minvalue = 0, maxvalue = 100, stepvalue = 1, className, style } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "placeholder", "value", "minvalue", "maxvalue", "stepvalue", "className", "style"]);
42356
+ var { inputtype = 'slider-outline', alias, readOnly, width, placeholder = '', minvalue = 0, maxvalue = 100, stepvalue = 1, className, style } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "placeholder", "minvalue", "maxvalue", "stepvalue", "className", "style"]);
42329
42357
  const { setFieldValue, setFieldTouched } = formik.useFormikContext();
42330
42358
  const [field, meta] = formik.useField(alias);
42331
42359
  const fieldValue = Array.isArray(field.value) ? field.value : [field.value || minvalue];
42332
42360
  const hasError = Boolean(meta.touched && meta.error);
42333
42361
  const containerRef = React.useRef(null);
42334
42362
  const [neuVars, setNeuVars] = React.useState({});
42363
+ const errorId = `${alias}-error`;
42335
42364
  React.useEffect(() => {
42336
42365
  if (inputtype === 'slider-neumorphic' && containerRef.current) {
42337
42366
  const parentBg = getNearestParentBackground(containerRef.current.parentElement);
@@ -42414,7 +42443,7 @@ const SliderInput = (_a) => {
42414
42443
  React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, props.inputLabel),
42415
42444
  hasError ?
42416
42445
  React.createElement(React.Fragment, null,
42417
- React.createElement("p", { className: 'core-input-label-error' }, props.errorText || `Required field`)) : null,
42446
+ React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errorText || `Required field`)) : null,
42418
42447
  props.isHinted ?
42419
42448
  React.createElement(React.Fragment, null,
42420
42449
  React.createElement(e, { content: props.hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
@@ -42423,7 +42452,7 @@ const SliderInput = (_a) => {
42423
42452
  };
42424
42453
 
42425
42454
  const RangeSlider = (_a) => {
42426
- var { inputtype = 'range-outline', alias, readOnly, width, placeholder = '', value, minvalue = 0, maxvalue = 100, stepvalue = 1, minStepsBetweenThumbs = 0, className, style } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "placeholder", "value", "minvalue", "maxvalue", "stepvalue", "minStepsBetweenThumbs", "className", "style"]);
42455
+ var { inputtype = 'range-outline', alias, readonly, width, inputlabel = undefined, placeholder = '', minvalue = 0, maxvalue = 100, stepvalue = 1, minStepsBetweenThumbs = 0, className, style } = _a, props = __rest$1(_a, ["inputtype", "alias", "readonly", "width", "inputlabel", "placeholder", "minvalue", "maxvalue", "stepvalue", "minStepsBetweenThumbs", "className", "style"]);
42427
42456
  const { setFieldValue, setFieldTouched } = formik.useFormikContext();
42428
42457
  const [field, meta] = formik.useField(alias);
42429
42458
  // Range Formik Logic
@@ -42437,6 +42466,7 @@ const RangeSlider = (_a) => {
42437
42466
  const hasError = Boolean(meta.touched && meta.error);
42438
42467
  const containerRef = React.useRef(null);
42439
42468
  const [neuVars, setNeuVars] = React.useState({});
42469
+ const errorId = `${alias}-error`;
42440
42470
  React.useEffect(() => {
42441
42471
  if (inputtype === 'range-neumorphic' && containerRef.current) {
42442
42472
  const parentBg = getNearestParentBackground(containerRef.current.parentElement);
@@ -42482,17 +42512,17 @@ const RangeSlider = (_a) => {
42482
42512
  background-color: white; border: 2px solid var(--accent-9); box-shadow: none;
42483
42513
  }
42484
42514
  ` } }),
42485
- 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) => {
42515
+ 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) => {
42486
42516
  // LOGIC SYNOPSIS:
42487
42517
  // If Range, set value as array.
42488
42518
  // If Slider, set value as first value.
42489
42519
  setFieldValue(alias, isRange ? val : val[0]);
42490
42520
  }, onValueCommit: () => setFieldTouched(alias, true), className: inputtype === 'range-neumorphic' ? 'neu-slider' : inputtype === 'range-outline' ? 'outline-slider' : '', style: neuVars }),
42491
42521
  React.createElement("div", null,
42492
- React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, props.inputLabel),
42522
+ React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
42493
42523
  hasError ?
42494
42524
  React.createElement(React.Fragment, null,
42495
- React.createElement("p", { className: 'core-input-label-error' }, props.errorText || `Required field`)) : null,
42525
+ React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errorText || `Required field`)) : null,
42496
42526
  props.isHinted ?
42497
42527
  React.createElement(React.Fragment, null,
42498
42528
  React.createElement(e, { content: props.hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
@@ -42501,9 +42531,13 @@ const RangeSlider = (_a) => {
42501
42531
  };
42502
42532
 
42503
42533
  const Toggle = (_a) => {
42504
- var { inputtype = 'toggle-outline', alias, readOnly, width, pressed, defaultPressed, onPressedChange, style, children } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "pressed", "defaultPressed", "onPressedChange", "style", "children"]);
42534
+ var { inputtype = 'toggle-outline', alias, readOnly, width, inputLabel, style, children, newRow, isHinted, hintText, hintUrl } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "inputLabel", "style", "children", "newRow", "isHinted", "hintText", "hintUrl"]);
42535
+ const { setFieldValue, setFieldTouched } = formik.useFormikContext();
42536
+ const [field, meta] = formik.useField(alias);
42537
+ const hasError = Boolean(meta.touched && meta.error);
42505
42538
  const buttonRef = React.useRef(null);
42506
42539
  const [neumorphicVars, setNeumorphicVars] = React.useState({});
42540
+ const errorId = `${alias}-error`;
42507
42541
  React.useEffect(() => {
42508
42542
  if (inputtype === 'toggle-neumorphic' && buttonRef.current) {
42509
42543
  const parentBg = getNearestParentBackground(buttonRef.current.parentElement);
@@ -42514,12 +42548,11 @@ const Toggle = (_a) => {
42514
42548
  '--neu-shadow-dark': shadowDark,
42515
42549
  '--neu-shadow-light': shadowLight,
42516
42550
  '--neu-text': 'var(--gray-12)',
42517
- '--neu-active-color': 'var(--accent-9)', // ON
42551
+ '--neu-active-color': 'var(--accent-9)',
42518
42552
  });
42519
42553
  }
42520
42554
  }, [inputtype]);
42521
42555
  // --- STYLES ---
42522
- // Material :: Ghost when OFF, Solid Color when ON
42523
42556
  const materialStyle = {
42524
42557
  textTransform: 'uppercase',
42525
42558
  letterSpacing: '0.05em',
@@ -42527,15 +42560,11 @@ const Toggle = (_a) => {
42527
42560
  borderRadius: '4px',
42528
42561
  transition: 'all 0.2s ease',
42529
42562
  };
42530
- // Outline :: Thin Grey when OFF, Thick Colored Border when ON
42531
42563
  const outlineStyle = {
42532
42564
  fontWeight: 600,
42533
42565
  background: 'transparent',
42534
42566
  transition: 'all 0.1s ease',
42535
42567
  };
42536
- // Neumorphic:
42537
- // OFF = Outset Shadow (Floating)
42538
- // ON = Inset Shadow (Pressed In)
42539
42568
  const neumorphicStyle = {
42540
42569
  backgroundColor: 'var(--neu-bg)',
42541
42570
  color: 'var(--neu-text)',
@@ -42544,57 +42573,58 @@ const Toggle = (_a) => {
42544
42573
  fontWeight: 600,
42545
42574
  transition: 'all 0.2s ease-in-out',
42546
42575
  };
42547
- return (React.createElement(Column, { span: width, newLine: props.newRow },
42548
- React.createElement(Root$1, { pressed: pressed, defaultPressed: defaultPressed, onPressedChange: onPressedChange, name: alias, disabled: readOnly, id: `${alias}FormInput`, "aria-describedby": `${alias}InputLabel`, asChild: true },
42549
- React.createElement(o$a, Object.assign({ disabled: readOnly, ref: buttonRef }, props, { className: `design-toggle ${inputtype}`, style: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, style), (inputtype === 'toggle' ? materialStyle : {})), (inputtype === 'toggle-material' ? materialStyle : {})), (inputtype === 'toggle-outline' ? outlineStyle : {})), (inputtype === 'toggle-neumorphic' ? Object.assign(Object.assign({}, neumorphicStyle), neumorphicVars) : {})) }),
42576
+ return (React.createElement(Column, { span: width, newLine: newRow },
42577
+ React.createElement(Root$1, { pressed: field.value, onPressedChange: (val) => {
42578
+ if (!readOnly) {
42579
+ setFieldValue(alias, val);
42580
+ setFieldTouched(alias, true);
42581
+ }
42582
+ }, name: alias, disabled: readOnly, id: `${alias}FormInput`, "aria-describedby": `${alias}InputLabel`, asChild: true },
42583
+ React.createElement(o$a, Object.assign({ disabled: readOnly, ref: buttonRef }, props, { className: `design-toggle ${inputtype} ${props.className || ''}`, style: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, style), (inputtype === 'toggle' ? materialStyle : {})), (inputtype === 'toggle-material' ? materialStyle : {})), (inputtype === 'toggle-outline' ? outlineStyle : {})), (inputtype === 'toggle-neumorphic' ? Object.assign(Object.assign({}, neumorphicStyle), neumorphicVars) : {})), type: "button" }),
42550
42584
  React.createElement("style", { dangerouslySetInnerHTML: { __html: `
42551
- /* --- MATERIAL --- */
42552
- .design-toggle.toggle-material[data-state='on'] {
42553
- background-color: var(--accent-9);
42554
- color: white;
42555
- box-shadow: 0 2px 5px rgba(0,0,0,0.2);
42556
- }
42557
- .design-toggle.toggle-material[data-state='off'] {
42558
- background-color: var(--gray-3);
42559
- color: var(--gray-11);
42560
- }
42585
+ /* --- MATERIAL --- */
42586
+ .design-toggle.toggle-material[data-state='on'] {
42587
+ background-color: var(--accent-9);
42588
+ color: white;
42589
+ box-shadow: 0 2px 5px rgba(0,0,0,0.2);
42590
+ }
42591
+ .design-toggle.toggle-material[data-state='off'] {
42592
+ background-color: var(--gray-3);
42593
+ color: var(--gray-11);
42594
+ }
42561
42595
 
42562
- /* --- OUTLINE --- */
42563
- .design-toggle.toggle-outline[data-state='on'] {
42564
- border: 2px solid var(--accent-9);
42565
- color: var(--accent-9);
42566
- background-color: var(--accent-2);
42567
- }
42568
- .design-toggle.toggle-outline[data-state='off'] {
42569
- border: 1px solid var(--gray-7);
42570
- color: var(--gray-11);
42571
- }
42596
+ /* --- OUTLINE --- */
42597
+ .design-toggle.toggle-outline[data-state='on'] {
42598
+ border: 2px solid var(--accent-9);
42599
+ color: var(--accent-9);
42600
+ background-color: var(--accent-2);
42601
+ }
42602
+ .design-toggle.toggle-outline[data-state='off'] {
42603
+ border: 1px solid var(--gray-7);
42604
+ color: var(--gray-11);
42605
+ }
42572
42606
 
42573
- /* --- NEUMORPHIC --- */
42574
- /* OFF State: Floating */
42575
- .design-toggle.toggle-neumorphic[data-state='off'] {
42576
- box-shadow: 6px 6px 12px var(--neu-shadow-dark),
42577
- -6px -6px 12px var(--neu-shadow-light);
42578
- }
42579
- /* ON State: Pressed In (Inset) + Colored Text */
42580
- .design-toggle.toggle-neumorphic[data-state='on'] {
42581
- box-shadow: inset 6px 6px 12px var(--neu-shadow-dark),
42582
- inset -6px -6px 12px var(--neu-shadow-light);
42583
- color: var(--neu-active-color);
42584
- }
42585
- /* Hover Effect for Neumorphic */
42586
- .design-toggle.toggle-neumorphic:hover {
42587
- transform: translateY(-1px);
42588
- }
42589
- ` } }),
42607
+ /* --- NEUMORPHIC --- */
42608
+ .design-toggle.toggle-neumorphic[data-state='off'] {
42609
+ box-shadow: 6px 6px 12px var(--neu-shadow-dark),
42610
+ -6px -6px 12px var(--neu-shadow-light);
42611
+ }
42612
+ .design-toggle.toggle-neumorphic[data-state='on'] {
42613
+ box-shadow: inset 6px 6px 12px var(--neu-shadow-dark),
42614
+ inset -6px -6px 12px var(--neu-shadow-light);
42615
+ color: var(--neu-active-color);
42616
+ }
42617
+ .design-toggle.toggle-neumorphic:hover {
42618
+ transform: translateY(-1px);
42619
+ }
42620
+ ` } }),
42590
42621
  children)),
42591
42622
  React.createElement("div", null,
42592
- React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, props.inputLabel),
42593
- props.isHinted ?
42594
- React.createElement(React.Fragment, null,
42595
- React.createElement(e, { content: props.hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
42596
- React.createElement("a", { href: props.hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
42597
- React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null)));
42623
+ inputLabel && (React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputLabel)),
42624
+ isHinted && (React.createElement(e, { content: hintText || "No hint available" },
42625
+ React.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer", style: { marginLeft: 6 } },
42626
+ React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
42627
+ hasError && (React.createElement(p$d, { id: errorId, size: "1", color: "red", style: { display: 'block', marginTop: 2 } }, props.errorText || `Required field`)))));
42598
42628
  };
42599
42629
 
42600
42630
  const Row = ({ children, className, gap = "4" }) => {
@@ -47141,7 +47171,7 @@ exports.File = File$1;
47141
47171
  exports.FileMultiple = FileMultiple;
47142
47172
  exports.FlagIcon = FlagIcon;
47143
47173
  exports.Icon = Icon;
47144
- exports.Image = Image;
47174
+ exports.ImageOutput = ImageOutput;
47145
47175
  exports.Input = Input$1;
47146
47176
  exports.MultipleSelect = MultipleSelect;
47147
47177
  exports.OptionSelect = OptionSelect;