@emeraldemperaur/vector-sigma 1.4.9 → 1.4.11

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 (29) hide show
  1. package/lib/index.cjs +480 -473
  2. package/lib/index.esm.js +480 -473
  3. package/lib/types/components/avatar/avatar.d.ts +89 -12
  4. package/lib/types/components/button/button.d.ts +60 -11
  5. package/lib/types/components/checkbox/checkbox.d.ts +93 -13
  6. package/lib/types/components/conditional/conditional.d.ts +103 -16
  7. package/lib/types/components/datepicker/datepicker.d.ts +11 -11
  8. package/lib/types/components/daterangepicker/daterangepicker.d.ts +13 -13
  9. package/lib/types/components/datetimepicker/datetimepicker.d.ts +13 -13
  10. package/lib/types/components/dropdown/dropdown.d.ts +10 -10
  11. package/lib/types/components/file/file.d.ts +9 -10
  12. package/lib/types/components/file/filemultiple.d.ts +9 -10
  13. package/lib/types/components/image/image.d.ts +2 -2
  14. package/lib/types/components/input/input.d.ts +9 -9
  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 +9 -9
  18. package/lib/types/components/input/xCreditCardInput.d.ts +1 -1
  19. package/lib/types/components/inputcurrency/inputcurrency.d.ts +8 -8
  20. package/lib/types/components/inputcurrency/stockInput.d.ts +9 -9
  21. package/lib/types/components/radio/radio.d.ts +9 -10
  22. package/lib/types/components/select/select.d.ts +8 -8
  23. package/lib/types/components/selectmultiple/selectmultiple.d.ts +10 -11
  24. package/lib/types/components/slider/range.d.ts +8 -8
  25. package/lib/types/components/slider/slider.d.ts +11 -11
  26. package/lib/types/components/toggle/toggle.d.ts +9 -9
  27. package/lib/types/components/xtitle/xtitle.d.ts +6 -3
  28. package/lib/types/utils/vinci.d.ts +36 -1
  29. package/package.json +1 -1
package/lib/index.esm.js CHANGED
@@ -12151,7 +12151,7 @@ const getStyles$1 = (inputtype, shape, hasError) => {
12151
12151
  return Object.assign(Object.assign(Object.assign({}, base), { borderRadius }), designStyles);
12152
12152
  };
12153
12153
  const AvatarInput = (_a) => {
12154
- var { inputtype = 'avatar-outline', alias, readonly, width, inputlabel, 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"]);
12154
+ var { inputtype = 'avatar-outline', alias, readOnly, width, inputLabel, shape = 'circle', size = 120, newRow, isHinted, hintText, hintUrl, errorText, style, className, accept = 'image/*' } = _a; __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "inputLabel", "shape", "size", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "style", "className", "accept"]);
12155
12155
  const [field, meta, helpers] = useField(alias);
12156
12156
  const { setTouched } = useFormikContext();
12157
12157
  const inputRef = useRef(null);
@@ -12193,7 +12193,7 @@ const AvatarInput = (_a) => {
12193
12193
  };
12194
12194
  const containerStyles = getStyles$1(inputtype, shape, !!hasError);
12195
12195
  const iconColor = inputtype === 'avatar-neumorphic' ? '#555' : 'var(--gray-10)';
12196
- return (React__default.createElement(Column, { span: width, newLine: props.newRow },
12196
+ return (React__default.createElement(Column, { span: width, newLine: newRow },
12197
12197
  React__default.createElement(p$5, { direction: "column", align: "center", gap: "3", style: style },
12198
12198
  React__default.createElement(p$8, { onClick: () => { var _a; return (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.click(); }, style: Object.assign({ width: size, height: size }, containerStyles) }, previewUrl ? (React__default.createElement(React__default.Fragment, null,
12199
12199
  React__default.createElement("img", { src: previewUrl, alt: "Avatar", style: {
@@ -12218,18 +12218,18 @@ const AvatarInput = (_a) => {
12218
12218
  React__default.createElement(Icon, { name: 'camera', color: "white", width: "16", height: "16" })))) : (React__default.createElement(p$5, { direction: "column", align: "center", justify: "center", height: "100%", width: "100%" },
12219
12219
  React__default.createElement(Icon, { name: 'user', width: size * 0.4, height: size * 0.4, color: iconColor, style: { opacity: 0.5 } }),
12220
12220
  React__default.createElement(p$d, { size: "1", color: "gray", style: { marginTop: 4, opacity: 0.8 } }, "Upload")))),
12221
- React__default.createElement("input", { ref: inputRef, id: inputId || alias, name: alias, readOnly: readonly, type: "file", accept: accept, onChange: handleFileChange, style: { display: 'none' } }),
12221
+ React__default.createElement("input", { ref: inputRef, id: inputId || alias, name: alias, readOnly: readOnly, type: "file", accept: accept, onChange: handleFileChange, style: { display: 'none' } }),
12222
12222
  React__default.createElement("div", null,
12223
- inputlabel && (React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", color: 'gray', highContrast: inputtype !== 'avatar-neumorphic', htmlFor: alias }, inputlabel)),
12223
+ inputLabel && (React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", color: 'gray', highContrast: inputtype !== 'avatar-neumorphic', htmlFor: alias }, inputLabel)),
12224
12224
  "\u00A0",
12225
- props.ishinted ?
12225
+ isHinted ?
12226
12226
  React__default.createElement(React__default.Fragment, null,
12227
- React__default.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
12228
- React__default.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
12227
+ React__default.createElement(e, { content: hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
12228
+ React__default.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
12229
12229
  React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
12230
12230
  hasError ?
12231
12231
  React__default.createElement(React__default.Fragment, null,
12232
- React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errortext || `Required field`)) : null))));
12232
+ React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || `Required field`)) : null))));
12233
12233
  };
12234
12234
 
12235
12235
  /**
@@ -12298,7 +12298,7 @@ const formatBytes = (bytes, decimals = 2) => {
12298
12298
  };
12299
12299
 
12300
12300
  const ButtonInput = (_a) => {
12301
- var { inputtype = 'button-outline', type = 'button', inputlabel, alias, readonly, style, width, children } = _a, props = __rest$1(_a, ["inputtype", "type", "inputlabel", "alias", "readonly", "style", "width", "children"]);
12301
+ var { inputtype = 'button-outline', type = 'button', alias, readOnly, style, width, children, newRow, isHinted, hintText, hintUrl } = _a, props = __rest$1(_a, ["inputtype", "type", "alias", "readOnly", "style", "width", "children", "newRow", "isHinted", "hintText", "hintUrl"]);
12302
12302
  const buttonRef = useRef(null);
12303
12303
  const [neumorphicVars, setNeumorphicVars] = useState({});
12304
12304
  const [bgColor, setBgColor] = useState('#ffffff');
@@ -12372,7 +12372,7 @@ const ButtonInput = (_a) => {
12372
12372
  }
12373
12373
  };
12374
12374
  return (React__default.createElement(React__default.Fragment, null,
12375
- React__default.createElement(Column, { span: width, newLine: props.newRow },
12375
+ React__default.createElement(Column, { span: width, newLine: newRow },
12376
12376
  inputtype === 'button-neumorphic' && (React__default.createElement("style", { dangerouslySetInnerHTML: { __html: `
12377
12377
  .neumorphic-btn:active {
12378
12378
  box-shadow: inset 6px 6px 12px var(--neu-shadow-dark), inset -6px -6px 12px var(--neu-shadow-light) !important;
@@ -12382,19 +12382,19 @@ const ButtonInput = (_a) => {
12382
12382
  transform: translateY(-2px);
12383
12383
  }
12384
12384
  ` } })),
12385
- React__default.createElement(o$a, Object.assign({ name: alias, disabled: readonly, id: `${alias}FormInput`, "aria-describedby": `${alias}InputLabel`, ref: buttonRef, onClick: handler, type: type }, props, getVariantProps()),
12385
+ React__default.createElement(o$a, Object.assign({ name: alias, disabled: readOnly, id: `${alias}FormInput`, "aria-describedby": `${alias}InputLabel`, ref: buttonRef, onClick: handler, type: type }, props, getVariantProps()),
12386
12386
  props.icon && (React__default.createElement("span", { style: { display: 'flex', alignItems: 'center' } }, props.icon)),
12387
12387
  children),
12388
12388
  React__default.createElement("br", null),
12389
- React__default.createElement("div", null, props.ishinted ?
12389
+ React__default.createElement("div", null, isHinted ?
12390
12390
  React__default.createElement(React__default.Fragment, null,
12391
- React__default.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
12392
- React__default.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
12391
+ React__default.createElement(e, { content: hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
12392
+ React__default.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
12393
12393
  React__default.createElement(Icon, { name: 'questionmarkcircled', height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null))));
12394
12394
  };
12395
12395
 
12396
12396
  const CheckboxGroupInput = (_a) => {
12397
- var { inputtype = 'checkbox-outline', alias, readonly, width, placeholder = '', inputlabel, style, value, inputoptions, direction = 'column', columns, className } = _a, props = __rest$1(_a, ["inputtype", "alias", "readonly", "width", "placeholder", "inputlabel", "style", "value", "inputoptions", "direction", "columns", "className"]);
12397
+ var { inputtype = 'checkbox-outline', alias, readOnly, width, inputLabel, style, inputOptions, newRow, isHinted, hintText, hintUrl, errorText, direction = 'row', columns, className } = _a; __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "inputLabel", "style", "inputOptions", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "direction", "columns", "className"]);
12398
12398
  const { setFieldValue, setFieldTouched } = useFormikContext();
12399
12399
  const [field, meta] = useField(alias);
12400
12400
  const currentValues = (Array.isArray(field.value) ? field.value : []);
@@ -12424,7 +12424,7 @@ const CheckboxGroupInput = (_a) => {
12424
12424
  });
12425
12425
  }
12426
12426
  }, [inputtype]);
12427
- return (React__default.createElement(Column, { span: width, newLine: props.newRow },
12427
+ return (React__default.createElement(Column, { span: width, newLine: newRow },
12428
12428
  React__default.createElement(p$5, { direction: "column", gap: "2", width: "100%", ref: containerRef, style: style, className: className },
12429
12429
  inputtype === 'checkbox-neumorphic' && (React__default.createElement("style", { dangerouslySetInnerHTML: { __html: `
12430
12430
  .neu-checkbox .rt-CheckboxButton {
@@ -12445,7 +12445,7 @@ const CheckboxGroupInput = (_a) => {
12445
12445
  color: var(--neu-check-color);
12446
12446
  }
12447
12447
  ` } })),
12448
- React__default.createElement(o$6, { columns: columns || (direction === 'row' ? 'repeat(auto-fit, minmax(100px, 1fr))' : '1'), gap: "3", style: neuVars }, inputoptions.map((inputoption) => {
12448
+ React__default.createElement(o$6, { columns: columns || (direction === 'row' ? 'repeat(auto-fit, minmax(100px, 1fr))' : '1'), gap: "3", style: neuVars }, inputOptions.map((inputoption) => {
12449
12449
  const isChecked = currentValues.some(val => String(val) === String(inputoption.optionvalue));
12450
12450
  return (React__default.createElement(p$d, { as: "label", key: inputoption.optionvalue || crypto.randomUUID(), size: "2", style: {
12451
12451
  display: 'flex',
@@ -12453,23 +12453,23 @@ const CheckboxGroupInput = (_a) => {
12453
12453
  gap: '8px',
12454
12454
  cursor: 'pointer'
12455
12455
  } },
12456
- React__default.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' ? {
12456
+ React__default.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' ? {
12457
12457
  border: isChecked ? '2px solid var(--accent-9)' : '2px solid var(--gray-8)',
12458
12458
  backgroundColor: 'transparent'
12459
12459
  } : {})) }),
12460
12460
  React__default.createElement("span", { style: { userSelect: 'none' } }, inputoption.text)));
12461
12461
  })),
12462
12462
  React__default.createElement("div", null,
12463
- React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
12463
+ React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputLabel),
12464
12464
  "\u00A0",
12465
- props.ishinted ?
12465
+ isHinted ?
12466
12466
  React__default.createElement(React__default.Fragment, null,
12467
- React__default.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
12468
- React__default.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
12467
+ React__default.createElement(e, { content: hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
12468
+ React__default.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
12469
12469
  React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
12470
12470
  hasError ?
12471
12471
  React__default.createElement(React__default.Fragment, null,
12472
- React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errortext || "Required field")) : null))));
12472
+ React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || "Required field")) : null))));
12473
12473
  };
12474
12474
 
12475
12475
  const animationStyles = {
@@ -12500,7 +12500,7 @@ const getDesignStyles = (inputtype, isOpen) => {
12500
12500
  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)' });
12501
12501
  };
12502
12502
  const ConditionalTrigger = (_a) => {
12503
- var { alias, readonly, width, placeholder = '', value, inputlabel, 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"]);
12503
+ var { alias, readOnly, width, placeholder = '', inputLabel, inputtype = 'conditionaltoggle-outline', triggerValue = true, inputOptions = [], children, newRow, isHinted, hintText, hintUrl, errorText, style, className } = _a; __rest$1(_a, ["alias", "readOnly", "width", "placeholder", "inputLabel", "inputtype", "triggerValue", "inputOptions", "children", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "style", "className"]);
12504
12504
  const [field, meta, helpers] = useField(alias);
12505
12505
  const { setTouched } = useFormikContext();
12506
12506
  const inputId = `${alias}FormInput` || crypto.randomUUID();
@@ -12517,20 +12517,20 @@ const ConditionalTrigger = (_a) => {
12517
12517
  switch (true) {
12518
12518
  case inputtype.includes('conditionalcheckbox'):
12519
12519
  return (React__default.createElement(p$5, { align: "center", gap: "2", style: { cursor: 'pointer' } },
12520
- React__default.createElement(c$2, { name: alias, disabled: readonly, checked: field.value === true, onCheckedChange: (checked) => handleChange(!!checked), id: inputId })));
12520
+ React__default.createElement(c$2, { name: alias, disabled: readOnly, checked: field.value === true, onCheckedChange: (checked) => handleChange(!!checked), id: inputId })));
12521
12521
  case inputtype.includes('conditionalselect'):
12522
12522
  return (React__default.createElement(p$5, { direction: "column", gap: "1", style: { width: '100%' } },
12523
- React__default.createElement(C$1, { name: alias, disabled: readonly, value: field.value, defaultValue: placeholder || String(value) || "", onValueChange: handleChange },
12523
+ React__default.createElement(C$1, { name: alias, disabled: readOnly, value: field.value, defaultValue: placeholder || "", onValueChange: handleChange },
12524
12524
  React__default.createElement(u$1, { id: inputId, variant: isNeumorphic ? 'soft' : 'surface', style: { width: '100%' } }),
12525
- React__default.createElement(g, null, inputoptions.map((inputoption) => (React__default.createElement(v, { key: inputoption.optionvalue || crypto.randomUUID(), value: inputoption.optionvalue }, inputoption.text)))))));
12525
+ React__default.createElement(g, null, inputOptions.map((inputoption) => (React__default.createElement(v, { key: inputoption.optionvalue || crypto.randomUUID(), value: inputoption.optionvalue }, inputoption.text)))))));
12526
12526
  case inputtype.includes('conditionaltoggle'):
12527
12527
  default:
12528
12528
  return (React__default.createElement(p$5, { justify: "between", align: "center", style: { width: '100%' } },
12529
- React__default.createElement(i$1, { id: inputId, name: alias, disabled: readonly, checked: field.value === true, onCheckedChange: (checked) => handleChange(!!checked), variant: isNeumorphic ? 'soft' : 'surface' })));
12529
+ React__default.createElement(i$1, { id: inputId, name: alias, disabled: readOnly, checked: field.value === true, onCheckedChange: (checked) => handleChange(!!checked), variant: isNeumorphic ? 'soft' : 'surface' })));
12530
12530
  }
12531
12531
  };
12532
12532
  const containerStyle = getDesignStyles(inputtype, isOpen);
12533
- return (React__default.createElement(Column, { span: width, newLine: props.newRow },
12533
+ return (React__default.createElement(Column, { span: width, newLine: newRow },
12534
12534
  React__default.createElement(p$8, { className: className, style: Object.assign(Object.assign({}, containerStyle), style) },
12535
12535
  React__default.createElement(p$8, { mb: isOpen ? "4" : "0", style: { transition: 'margin 0.3s' } }, renderTrigger()),
12536
12536
  React__default.createElement("div", { style: Object.assign(Object.assign({}, animationStyles.wrapper), { gridTemplateRows: isOpen ? '1fr' : '0fr', opacity: isOpen ? 1 : 0.6 }) },
@@ -12540,16 +12540,16 @@ const ConditionalTrigger = (_a) => {
12540
12540
  borderTop: isOpen && !isNeumorphic ? '1px dashed var(--gray-6)' : 'none'
12541
12541
  } }, children))),
12542
12542
  React__default.createElement("div", null,
12543
- React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias, style: { cursor: 'pointer' } }, inputlabel),
12543
+ React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias, style: { cursor: 'pointer' } }, inputLabel),
12544
12544
  "\u00A0",
12545
- props.ishinted ?
12545
+ isHinted ?
12546
12546
  React__default.createElement(React__default.Fragment, null,
12547
- React__default.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
12548
- React__default.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
12547
+ React__default.createElement(e, { content: hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
12548
+ React__default.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
12549
12549
  React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
12550
12550
  hasError ?
12551
12551
  React__default.createElement(React__default.Fragment, null,
12552
- React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, typeof meta.error === 'string' ? React__default.createElement(React__default.Fragment, null, props.errortext || "Required field")
12552
+ React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, typeof meta.error === 'string' ? React__default.createElement(React__default.Fragment, null, errorText || "Required field")
12553
12553
  : 'Invalid file selection')) : null))));
12554
12554
  };
12555
12555
 
@@ -20829,20 +20829,26 @@ const ensureDate = (date) => {
20829
20829
  };
20830
20830
 
20831
20831
  const DatePicker = (_a) => {
20832
- var { inputtype = 'datepicker-outline', alias, readonly, width, inputlabel, placeholder = 'Pick a date', minvalue, maxvalue, className, style } = _a, props = __rest$1(_a, ["inputtype", "alias", "readonly", "width", "inputlabel", "placeholder", "minvalue", "maxvalue", "className", "style"]);
20832
+ var { inputtype = 'datepicker-outline', alias, readOnly, newRow, isHinted, hintText, hintUrl, errorText, width, inputLabel, placeholder = 'Pick a date', minDate, maxDate, className, style } = _a; __rest$1(_a, ["inputtype", "alias", "readOnly", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "width", "inputLabel", "placeholder", "minDate", "maxDate", "className", "style"]);
20833
20833
  const { setFieldValue, setFieldTouched } = useFormikContext();
20834
20834
  const [field, meta] = useField(alias);
20835
20835
  const hasError = Boolean(meta.touched && meta.error);
20836
- const selectedDate = field.value
20837
- ? (typeof field.value === 'string' ? parseISO(field.value) : field.value)
20838
- : undefined;
20839
- const parsedMin = ensureDate(minvalue);
20840
- const parsedMax = ensureDate(maxvalue);
20836
+ const selectedDate = React__default.useMemo(() => {
20837
+ if (!field.value)
20838
+ return undefined;
20839
+ if (field.value instanceof Date)
20840
+ return field.value;
20841
+ const parsed = parseISO(field.value);
20842
+ return isValid(parsed) ? parsed : undefined;
20843
+ }, [field.value]);
20844
+ const parsedMin = ensureDate(minDate);
20845
+ const parsedMax = ensureDate(maxDate);
20841
20846
  const inputId = `${alias}FormInput`;
20842
20847
  const errorId = `${alias}-error`;
20843
20848
  const [isOpen, setIsOpen] = useState(false);
20844
20849
  const containerRef = useRef(null);
20845
20850
  const [neuVars, setNeuVars] = useState({});
20851
+ // Neumorphic Dynamic Colors
20846
20852
  useEffect(() => {
20847
20853
  if (inputtype === 'datepicker-neumorphic' && containerRef.current) {
20848
20854
  const parentBg = getNearestParentBackground(containerRef.current.parentElement);
@@ -20876,110 +20882,104 @@ const DatePicker = (_a) => {
20876
20882
  borderRadius: 'var(--radius-2)'
20877
20883
  };
20878
20884
  }, [inputtype, hasError, neuVars]);
20879
- // --- CALENDAR POPUP STYLES ---
20880
20885
  const calendarContainerStyle = React__default.useMemo(() => {
20881
- const base = { padding: '16px', borderRadius: '12px' };
20886
+ const base = { padding: '20px', borderRadius: '16px', zIndex: 50 };
20882
20887
  if (inputtype === 'datepicker-neumorphic') {
20883
20888
  return Object.assign(Object.assign(Object.assign({}, base), { backgroundColor: 'var(--neu-bg)', boxShadow: '6px 6px 12px var(--neu-shadow-dark), -6px -6px 12px var(--neu-shadow-light)', border: 'none' }), neuVars);
20884
20889
  }
20885
- if (inputtype === 'datepicker-outline') {
20886
- return Object.assign(Object.assign({}, base), { backgroundColor: 'var(--color-panel-solid)', border: '1px solid var(--gray-6)', boxShadow: '0 4px 12px rgba(0,0,0,0.05)' });
20887
- }
20888
- // Material
20889
- return Object.assign(Object.assign({}, base), { backgroundColor: 'var(--color-panel-solid)', border: 'none', boxShadow: '0 10px 38px -10px rgba(22, 23, 24, 0.35), 0 10px 20px -15px rgba(22, 23, 24, 0.2)' });
20890
+ return Object.assign(Object.assign({}, base), { backgroundColor: 'var(--color-panel-solid)', border: '1px solid var(--gray-4)', boxShadow: '0 12px 24px -10px rgba(0,0,0,0.15), 0 8px 12px -6px rgba(0,0,0,0.1)' });
20890
20891
  }, [inputtype, neuVars]);
20891
- return (React__default.createElement(Column, { span: width, newLine: props.newRow },
20892
+ return (React__default.createElement(Column, { span: width, newLine: newRow },
20892
20893
  React__default.createElement(p$5, { direction: "column", gap: "2", width: "100%", ref: containerRef, style: style, className: className },
20893
20894
  React__default.createElement("input", { type: "hidden", "aria-describedby": `${alias}InputLabel`, name: alias, value: selectedDate ? selectedDate.toISOString() : '' }),
20894
20895
  React__default.createElement("style", { dangerouslySetInnerHTML: { __html: `
20895
- /* Reset & Layout */
20896
20896
  .rdp {
20897
- --rdp-cell-size: 36px;
20898
- --rdp-caption-font-size: 16px;
20899
- margin: 0;
20900
- font-family: var(--default-font-family, sans-serif);
20897
+ --rdp-cell-size: 40px; /* Bigger touch targets */
20898
+ --rdp-accent-color: var(--accent-9);
20899
+ --rdp-background-color: var(--accent-3);
20900
+ margin: 0;
20901
20901
  }
20902
- .rdp-months { justify-content: center; }
20903
- .rdp-month { background: transparent; }
20902
+ /* Hide internal input field of DayPicker if present */
20903
+ .rdp-vhidden { display: none; }
20904
+
20905
+ /* Layout Construction - Critical for "Google Style" Grid */
20906
+ .rdp-month { display: table; margin: 0 auto; border-collapse: collapse; }
20907
+ .rdp-caption { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding: 0 8px; }
20904
20908
 
20905
- /* Header (Month Name + Nav) */
20906
- .rdp-caption {
20907
- display: flex;
20908
- align-items: center;
20909
- justify-content: space-between;
20910
- margin-bottom: 12px;
20911
- padding: 0 4px;
20912
- }
20909
+ /* Header Typography */
20913
20910
  .rdp-caption_label {
20911
+ font-size: 1rem;
20914
20912
  font-weight: 600;
20915
20913
  color: var(--gray-12);
20916
- font-size: var(--font-size-3);
20917
- text-transform: capitalize;
20914
+ text-transform: capitalize;
20918
20915
  }
20919
- .rdp-nav { display: flex; gap: 8px; }
20916
+
20917
+ /* Navigation Arrows */
20918
+ .rdp-nav { display: flex; gap: 4px; }
20920
20919
  .rdp-nav_button {
20921
- color: var(--gray-11);
20922
- border-radius: 6px;
20923
- padding: 4px;
20924
- transition: background 0.2s;
20925
- background: transparent;
20920
+ width: 32px; height: 32px;
20921
+ display: flex; align-items: center; justify-content: center;
20922
+ border-radius: 50%;
20926
20923
  border: none;
20924
+ background: transparent;
20927
20925
  cursor: pointer;
20928
- display: flex;
20929
- align-items: center;
20930
- justify-content: center;
20926
+ color: var(--gray-11);
20927
+ transition: all 0.2s ease;
20931
20928
  }
20932
20929
  .rdp-nav_button:hover { background-color: var(--gray-4); color: var(--gray-12); }
20933
20930
 
20934
- /* Weekdays Row */
20931
+ /* Table Structure */
20932
+ .rdp-table { max-width: 100%; border-collapse: collapse; }
20933
+ .rdp-tbody { border: 0; }
20934
+
20935
+ /* Weekday Headers (S M T W...) */
20935
20936
  .rdp-head_cell {
20936
- font-size: 0.75rem;
20937
- font-weight: 600;
20938
- color: var(--gray-9);
20939
- text-transform: uppercase;
20940
- padding-bottom: 8px;
20941
- width: var(--rdp-cell-size);
20942
- text-align: center;
20937
+ width: var(--rdp-cell-size); height: 32px;
20938
+ font-size: 0.75rem; font-weight: 600;
20939
+ color: var(--gray-9); text-transform: uppercase;
20940
+ text-align: center; vertical-align: middle;
20943
20941
  }
20944
-
20945
- /* Day Cells */
20946
- .rdp-cell { text-align: center; }
20942
+
20943
+ /* Days */
20944
+ .rdp-cell { text-align: center; padding: 0; }
20947
20945
  .rdp-day {
20948
- width: var(--rdp-cell-size);
20949
- height: var(--rdp-cell-size);
20946
+ width: var(--rdp-cell-size); height: var(--rdp-cell-size);
20950
20947
  border-radius: 50%;
20951
- border: 2px solid transparent;
20952
- background: transparent;
20953
- cursor: pointer;
20954
- color: var(--gray-12);
20955
- font-size: var(--font-size-2);
20956
- display: flex;
20957
- align-items: center;
20958
- justify-content: center;
20959
- transition: all 0.15s ease;
20948
+ border: none;
20949
+ background: transparent;
20950
+ color: var(--gray-12);
20951
+ font-size: 0.9rem;
20952
+ cursor: pointer;
20953
+ display: flex; align-items: center; justify-content: center;
20960
20954
  margin: 1px;
20955
+ transition: background-color 0.2s ease;
20961
20956
  }
20962
20957
 
20963
- /* States */
20964
- .rdp-day:hover:not(.rdp-day_selected):not([disabled]) {
20958
+ /* Hover State */
20959
+ .rdp-day:hover:not(.rdp-day_selected):not(.rdp-day_disabled) {
20965
20960
  background-color: var(--gray-4);
20961
+ font-weight: 500;
20966
20962
  }
20967
-
20963
+
20964
+ /* Selected State - Solid Circle */
20968
20965
  .rdp-day_selected {
20969
- background-color: var(--accent-9) !important;
20966
+ background-color: var(--rdp-accent-color) !important;
20970
20967
  color: white !important;
20971
20968
  font-weight: 600;
20972
20969
  }
20973
20970
 
20971
+ /* Today State */
20974
20972
  .rdp-day_today {
20975
- color: var(--accent-11);
20973
+ color: var(--rdp-accent-color);
20976
20974
  font-weight: 700;
20977
- position: relative;
20978
20975
  }
20976
+ /* If today is selected, keep text white */
20977
+ .rdp-day_selected.rdp-day_today { color: white; }
20979
20978
 
20980
- .rdp-day_disabled { opacity: 0.3; cursor: not-allowed; }
20979
+ /* Disabled State */
20980
+ .rdp-day_disabled { opacity: 0.25; cursor: not-allowed; }
20981
20981
 
20982
- /* NEUMORPHIC OVERRIDES */
20982
+ /* Neumorphic Overrides */
20983
20983
  ${inputtype === 'datepicker-neumorphic' ? `
20984
20984
  .rdp-day:hover:not(.rdp-day_selected) {
20985
20985
  box-shadow: 3px 3px 6px var(--neu-shadow-dark), -3px -3px 6px var(--neu-shadow-light);
@@ -20994,27 +20994,28 @@ const DatePicker = (_a) => {
20994
20994
  ` } }),
20995
20995
  React__default.createElement(P$1, { open: isOpen, onOpenChange: setIsOpen },
20996
20996
  React__default.createElement(s$1, null,
20997
- React__default.createElement(u, { variant: "surface", style: Object.assign({ cursor: 'pointer', height: inputtype === 'datepicker-neumorphic' ? '40px' : '32px' }, activeInputStyle), onClick: () => !readonly && setIsOpen(true) },
20997
+ React__default.createElement(u, { variant: "surface", style: Object.assign({ cursor: 'pointer', height: inputtype === 'datepicker-neumorphic' ? '40px' : '32px' }, activeInputStyle), onClick: () => !readOnly && setIsOpen(true) },
20998
20998
  React__default.createElement(c, null,
20999
20999
  React__default.createElement(Icon, { name: 'calendar', height: "16", width: "16", style: { color: 'var(--gray-10)' } })),
21000
- React__default.createElement("input", { readOnly: true, disabled: readonly, value: selectedDate && isValid(selectedDate) ? format$2(selectedDate, 'PPP') : '', placeholder: placeholder, style: {
21000
+ React__default.createElement("input", { readOnly: true, disabled: readOnly, value: selectedDate ? format$2(selectedDate, 'PPP') : '', placeholder: placeholder, style: {
21001
21001
  backgroundColor: 'transparent',
21002
21002
  border: 'none',
21003
21003
  outline: 'none',
21004
21004
  width: '100%',
21005
- cursor: readonly ? 'default' : 'pointer',
21005
+ cursor: readOnly ? 'default' : 'pointer',
21006
21006
  color: 'inherit',
21007
21007
  fontFamily: 'inherit',
21008
21008
  fontSize: 'var(--font-size-2)',
21009
- fontWeight: 500
21009
+ fontWeight: 500,
21010
+ pointerEvents: 'none'
21010
21011
  }, id: inputId, "aria-describedby": hasError ? errorId : `${alias}InputLabel` }))),
21011
- React__default.createElement(i$3, { style: calendarContainerStyle, align: "start", sideOffset: 5 },
21012
+ React__default.createElement(i$3, { style: calendarContainerStyle, align: "start", sideOffset: 8 },
21012
21013
  React__default.createElement(DayPicker, { mode: "single", selected: selectedDate, onSelect: (date) => {
21013
- setFieldValue(alias, date);
21014
+ setFieldValue(alias, date ? date.toISOString() : '');
21014
21015
  setIsOpen(false);
21015
21016
  setFieldTouched(alias, true);
21016
21017
  }, disabled: [
21017
- ...(readonly ? [{ from: new Date(1900, 0, 1), to: new Date(2100, 0, 1) }] : []),
21018
+ ...(readOnly ? [{ from: new Date(1900, 0, 1), to: new Date(2100, 0, 1) }] : []),
21018
21019
  { before: parsedMin || new Date(1900, 0, 1) },
21019
21020
  { after: parsedMax || new Date(2100, 0, 1) }
21020
21021
  ], components: {
@@ -21027,33 +21028,29 @@ const DatePicker = (_a) => {
21027
21028
  }
21028
21029
  } }))),
21029
21030
  React__default.createElement("div", null,
21030
- React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
21031
+ inputLabel && (React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputLabel)),
21031
21032
  "\u00A0",
21032
- props.ishinted ?
21033
- React__default.createElement(React__default.Fragment, null,
21034
- React__default.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
21035
- React__default.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
21036
- React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
21037
- hasError ?
21038
- React__default.createElement(React__default.Fragment, null,
21039
- React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errortext || (meta.error || "Required field"))) : null))));
21033
+ isHinted && (React__default.createElement(e, { content: hintText || "No hint available" },
21034
+ React__default.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
21035
+ React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
21036
+ hasError && (React__default.createElement(p$d, { id: errorId, size: "1", color: "red", className: 'core-input-label-error' }, errorText || (meta.error || "Required field")))))));
21040
21037
  };
21041
21038
 
21042
21039
  const DateRangePicker = (_a) => {
21043
21040
  var _b, _c;
21044
- var { inputtype = 'daterangepicker-outline', alias, readonly, width, inputlabel, placeholder = 'Pick a date range', value, minvalue, maxvalue, classname, style } = _a, props = __rest$1(_a, ["inputtype", "alias", "readonly", "width", "inputlabel", "placeholder", "value", "minvalue", "maxvalue", "classname", "style"]);
21041
+ var { inputtype = 'daterangepicker-outline', alias, readOnly, newRow, isHinted, hintText, hintUrl, errorText, width, inputLabel, placeholder = 'Pick a date range', minDate, maxDate, className, style } = _a; __rest$1(_a, ["inputtype", "alias", "readOnly", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "width", "inputLabel", "placeholder", "minDate", "maxDate", "className", "style"]);
21045
21042
  const { setFieldValue, setFieldTouched } = useFormikContext();
21046
21043
  const [field, meta] = useField(alias);
21047
21044
  const hasError = Boolean(meta.touched && meta.error);
21048
- // Range object value format: { from: "2023-01-01", to: "2023-01-05" }
21049
- const rawVal = field.value || {};
21050
- const selectedRange = {
21051
- from: ensureDate(rawVal.from),
21052
- to: ensureDate(rawVal.to),
21053
- };
21054
- const parsedMin = ensureDate(minvalue);
21055
- const parsedMax = ensureDate(maxvalue);
21056
- const inputId = `${alias}FormInput`;
21045
+ const selectedRange = React__default.useMemo(() => {
21046
+ const rawVal = field.value || {};
21047
+ return {
21048
+ from: ensureDate(rawVal.from),
21049
+ to: ensureDate(rawVal.to),
21050
+ };
21051
+ }, [field.value]);
21052
+ const parsedMin = ensureDate(minDate);
21053
+ const parsedMax = ensureDate(maxDate);
21057
21054
  const errorId = `${alias}-error`;
21058
21055
  const [isOpen, setIsOpen] = useState(false);
21059
21056
  const containerRef = useRef(null);
@@ -21071,12 +21068,12 @@ const DateRangePicker = (_a) => {
21071
21068
  }
21072
21069
  }, [inputtype]);
21073
21070
  let displayText = placeholder;
21074
- if (selectedRange.from) {
21071
+ if (selectedRange === null || selectedRange === void 0 ? void 0 : selectedRange.from) {
21075
21072
  if (selectedRange.to) {
21076
- displayText = `${format$2(selectedRange.from, 'LLL dd')} - ${format$2(selectedRange.to, 'LLL dd')}`;
21073
+ displayText = `${format$2(selectedRange.from, 'LLL dd, yyyy')} - ${format$2(selectedRange.to, 'LLL dd, yyyy')}`;
21077
21074
  }
21078
21075
  else {
21079
- displayText = format$2(selectedRange.from, 'LLL dd');
21076
+ displayText = format$2(selectedRange.from, 'LLL dd, yyyy');
21080
21077
  }
21081
21078
  }
21082
21079
  // --- STYLES ---
@@ -21101,137 +21098,139 @@ const DateRangePicker = (_a) => {
21101
21098
  };
21102
21099
  }, [inputtype, hasError, neuVars]);
21103
21100
  const calendarContainerStyle = React__default.useMemo(() => {
21104
- const base = { padding: '16px', borderRadius: '12px' };
21101
+ const base = { padding: '20px', borderRadius: '16px', zIndex: 50 };
21105
21102
  if (inputtype === 'daterangepicker-neumorphic') {
21106
21103
  return Object.assign(Object.assign(Object.assign({}, base), { backgroundColor: 'var(--neu-bg)', boxShadow: '6px 6px 12px var(--neu-shadow-dark), -6px -6px 12px var(--neu-shadow-light)', border: 'none' }), neuVars);
21107
21104
  }
21108
- if (inputtype === 'daterangepicker-outline') {
21109
- return Object.assign(Object.assign({}, base), { backgroundColor: 'var(--color-panel-solid)', border: '1px solid var(--gray-6)', boxShadow: '0 4px 12px rgba(0,0,0,0.05)' });
21110
- }
21111
- // Material
21112
- return Object.assign(Object.assign({}, base), { backgroundColor: 'var(--color-panel-solid)', border: 'none', boxShadow: '0 10px 38px -10px rgba(22, 23, 24, 0.35), 0 10px 20px -15px rgba(22, 23, 24, 0.2)' });
21105
+ return Object.assign(Object.assign({}, base), { backgroundColor: 'var(--color-panel-solid)', border: '1px solid var(--gray-4)', boxShadow: '0 12px 24px -10px rgba(0,0,0,0.15), 0 8px 12px -6px rgba(0,0,0,0.1)' });
21113
21106
  }, [inputtype, neuVars]);
21114
- return (React__default.createElement(Column, { span: width, newLine: props.newrow },
21115
- React__default.createElement(p$5, { direction: "column", gap: "2", width: "100%", ref: containerRef, style: style, className: classname },
21107
+ return (React__default.createElement(Column, { span: width, newLine: newRow },
21108
+ React__default.createElement(p$5, { direction: "column", gap: "2", width: "100%", ref: containerRef, style: style, className: className },
21116
21109
  React__default.createElement("input", { type: "hidden", name: alias, value: JSON.stringify({
21117
21110
  from: (_b = selectedRange.from) === null || _b === void 0 ? void 0 : _b.toISOString(),
21118
21111
  to: (_c = selectedRange.to) === null || _c === void 0 ? void 0 : _c.toISOString()
21119
21112
  }) }),
21120
21113
  React__default.createElement("style", { dangerouslySetInnerHTML: { __html: `
21121
- /* Reset & Layout */
21122
21114
  .rdp {
21123
- --rdp-cell-size: 36px;
21124
- --rdp-caption-font-size: 16px;
21125
- margin: 0;
21115
+ --rdp-cell-size: 40px;
21116
+ --rdp-accent-color: var(--accent-9);
21117
+ --rdp-background-color: var(--accent-3);
21118
+ margin: 0;
21126
21119
  font-family: var(--default-font-family, sans-serif);
21127
21120
  }
21128
- .rdp-months { justify-content: center; }
21129
- .rdp-month { background: transparent; }
21121
+ .rdp-vhidden { display: none; }
21122
+ .rdp-month { display: table; margin: 0 auto; border-collapse: collapse; }
21123
+ .rdp-caption { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding: 0 8px; }
21130
21124
 
21131
- /* Header */
21132
- .rdp-caption {
21133
- display: flex; align-items: center; justify-content: space-between;
21134
- margin-bottom: 12px; padding: 0 4px;
21135
- }
21136
21125
  .rdp-caption_label {
21137
- font-weight: 600; color: var(--gray-12); font-size: var(--font-size-3);
21138
- text-transform: capitalize;
21126
+ font-size: 1rem; font-weight: 600; color: var(--gray-12); text-transform: capitalize;
21139
21127
  }
21140
- .rdp-nav { display: flex; gap: 8px; }
21128
+
21129
+ /* Navigation */
21130
+ .rdp-nav { display: flex; gap: 4px; }
21141
21131
  .rdp-nav_button {
21142
- color: var(--gray-11); border-radius: 6px; padding: 4px;
21143
- transition: background 0.2s; background: transparent; border: none; cursor: pointer;
21132
+ width: 32px; height: 32px;
21144
21133
  display: flex; align-items: center; justify-content: center;
21134
+ border-radius: 50%; border: none; background: transparent; cursor: pointer;
21135
+ color: var(--gray-11); transition: all 0.2s ease;
21145
21136
  }
21146
21137
  .rdp-nav_button:hover { background-color: var(--gray-4); color: var(--gray-12); }
21147
21138
 
21148
- /* Weekdays */
21139
+ /* Table */
21149
21140
  .rdp-head_cell {
21141
+ width: var(--rdp-cell-size); height: 32px;
21150
21142
  font-size: 0.75rem; font-weight: 600; color: var(--gray-9);
21151
- text-transform: uppercase; padding-bottom: 8px; width: var(--rdp-cell-size);
21152
- text-align: center;
21143
+ text-transform: uppercase; text-align: center; vertical-align: middle;
21153
21144
  }
21154
21145
 
21155
- /* Cells */
21156
21146
  .rdp-cell { text-align: center; padding: 1px 0; }
21147
+
21148
+ /* Base Day Style */
21157
21149
  .rdp-day {
21158
21150
  width: var(--rdp-cell-size); height: var(--rdp-cell-size);
21159
- border-radius: 50%; border: 2px solid transparent;
21160
- background: transparent; cursor: pointer; color: var(--gray-12);
21161
- font-size: var(--font-size-2); display: flex; align-items: center; justify-content: center;
21151
+ border-radius: 50%; border: none; background: transparent;
21152
+ color: var(--gray-12); font-size: 0.9rem; cursor: pointer;
21153
+ display: flex; align-items: center; justify-content: center;
21162
21154
  margin: 0 auto;
21155
+ transition: background-color 0.2s ease;
21163
21156
  }
21164
21157
 
21165
- /* States */
21166
- .rdp-day:hover:not(.rdp-day_selected):not([disabled]) { background-color: var(--gray-4); }
21158
+ .rdp-day:hover:not(.rdp-day_selected):not(.rdp-day_disabled) {
21159
+ background-color: var(--gray-4); font-weight: 500;
21160
+ }
21167
21161
 
21168
- /* --- RANGE STYLES --- */
21162
+
21169
21163
  .rdp-day_range_middle {
21170
- background-color: var(--accent-3) !important;
21164
+ background-color: var(--rdp-background-color) !important;
21171
21165
  color: var(--accent-11) !important;
21172
21166
  border-radius: 0 !important;
21173
- width: 100%; /* Fill cell width for continuous strip */
21167
+ width: 100%; /* Fill the cell to connect strip */
21168
+ margin: 0;
21174
21169
  }
21170
+
21175
21171
  .rdp-day_range_start {
21176
- background-color: var(--accent-9) !important;
21172
+ background-color: var(--rdp-accent-color) !important;
21177
21173
  color: white !important;
21178
- border-top-left-radius: 50% !important;
21179
- border-bottom-left-radius: 50% !important;
21180
- border-top-right-radius: 0 !important;
21181
- border-bottom-right-radius: 0 !important;
21182
- width: 100%;
21174
+ border-radius: 50% !important;
21175
+ }
21176
+ .rdp-day_range_start:not(.rdp-day_range_end) {
21177
+ border-top-right-radius: 0 !important;
21178
+ border-bottom-right-radius: 0 !important;
21179
+ width: 100%;
21180
+ margin: 0;
21183
21181
  }
21182
+
21184
21183
  .rdp-day_range_end {
21185
- background-color: var(--accent-9) !important;
21184
+ background-color: var(--rdp-accent-color) !important;
21186
21185
  color: white !important;
21187
- border-top-right-radius: 50% !important;
21188
- border-bottom-right-radius: 50% !important;
21189
21186
  border-top-left-radius: 0 !important;
21190
21187
  border-bottom-left-radius: 0 !important;
21188
+ border-top-right-radius: 50% !important;
21189
+ border-bottom-right-radius: 50% !important;
21191
21190
  width: 100%;
21191
+ margin: 0;
21192
21192
  }
21193
+
21193
21194
  .rdp-day_range_start.rdp-day_range_end {
21194
21195
  border-radius: 50% !important;
21195
21196
  width: var(--rdp-cell-size);
21197
+ margin: 0 auto;
21196
21198
  }
21199
+
21197
21200
  .rdp-day_today { color: var(--accent-11); font-weight: 700; }
21198
- .rdp-day_disabled { opacity: 0.3; cursor: not-allowed; }
21201
+ .rdp-day_disabled { opacity: 0.25; cursor: not-allowed; }
21199
21202
 
21200
- /* NEUMORPHIC OVERRIDES */
21203
+ /* Neumorphic Overrides */
21201
21204
  ${inputtype === 'daterangepicker-neumorphic' ? `
21202
- .neu-calendar .rdp-day:hover:not(.rdp-day_selected) {
21203
- box-shadow: 3px 3px 6px var(--neu-shadow-dark), -3px -3px 6px var(--neu-shadow-light);
21204
- background-color: transparent;
21205
- }
21206
- .neu-calendar .rdp-day_range_start,
21207
- .neu-calendar .rdp-day_range_end {
21208
- box-shadow: inset 2px 2px 5px var(--neu-shadow-dark), inset -2px -2px 5px var(--neu-shadow-light);
21209
- color: var(--neu-accent) !important;
21210
- background-color: var(--neu-bg) !important;
21211
- }
21212
- .neu-calendar .rdp-day_range_middle {
21213
- box-shadow: inset 1px 1px 2px var(--neu-shadow-dark), inset -1px -1px 2px var(--neu-shadow-light);
21214
- background-color: transparent !important;
21215
- }
21205
+ .rdp-day:hover:not(.rdp-day_selected) {
21206
+ box-shadow: 3px 3px 6px var(--neu-shadow-dark), -3px -3px 6px var(--neu-shadow-light);
21207
+ background-color: transparent;
21208
+ }
21209
+ .rdp-day_range_start, .rdp-day_range_end {
21210
+ box-shadow: inset 2px 2px 5px var(--neu-shadow-dark), inset -2px -2px 5px var(--neu-shadow-light);
21211
+ color: var(--neu-accent) !important;
21212
+ background-color: var(--neu-bg) !important;
21213
+ }
21216
21214
  ` : ''}
21217
21215
  ` } }),
21218
21216
  React__default.createElement(P$1, { open: isOpen, onOpenChange: setIsOpen },
21219
21217
  React__default.createElement(s$1, null,
21220
- React__default.createElement(u, { variant: "surface", style: Object.assign({ cursor: 'pointer', height: inputtype === 'daterangepicker-neumorphic' ? '40px' : '32px' }, activeInputStyle), onClick: () => !readonly && setIsOpen(true) },
21218
+ React__default.createElement(u, { variant: "surface", style: Object.assign({ cursor: 'pointer', height: inputtype === 'daterangepicker-neumorphic' ? '40px' : '32px' }, activeInputStyle), onClick: () => !readOnly && setIsOpen(true) },
21221
21219
  React__default.createElement(c, null,
21222
21220
  React__default.createElement(Icon, { name: 'calendar', height: "16", width: "16", style: { color: 'var(--gray-10)' } })),
21223
- React__default.createElement("input", { id: inputId, "aria-describedby": hasError ? errorId : `${alias}InputLabel`, readOnly: true, disabled: readonly, value: displayText, placeholder: placeholder, style: {
21221
+ React__default.createElement("input", { readOnly: true, disabled: readOnly, value: displayText, placeholder: placeholder, style: {
21224
21222
  backgroundColor: 'transparent',
21225
21223
  border: 'none',
21226
21224
  outline: 'none',
21227
21225
  width: '100%',
21228
- cursor: readonly ? 'default' : 'pointer',
21226
+ cursor: readOnly ? 'default' : 'pointer',
21229
21227
  color: 'inherit',
21230
21228
  fontFamily: 'inherit',
21231
21229
  fontSize: 'var(--font-size-2)',
21232
- fontWeight: 500
21230
+ fontWeight: 500,
21231
+ pointerEvents: 'none'
21233
21232
  } }))),
21234
- React__default.createElement(i$3, { style: calendarContainerStyle, align: "start", sideOffset: 5 },
21233
+ React__default.createElement(i$3, { style: calendarContainerStyle, align: "start", sideOffset: 8 },
21235
21234
  React__default.createElement("div", { className: inputtype === 'daterangepicker-neumorphic' ? 'neu-calendar' : '', style: neuVars },
21236
21235
  React__default.createElement(DayPicker, { mode: "range", selected: selectedRange, onSelect: (range) => {
21237
21236
  setFieldValue(alias, range);
@@ -21240,43 +21239,41 @@ const DateRangePicker = (_a) => {
21240
21239
  setIsOpen(false);
21241
21240
  }
21242
21241
  }, disabled: [
21243
- ...(readonly ? [{ from: new Date(1900, 0, 1), to: new Date(2100, 0, 1) }] : []),
21242
+ ...(readOnly ? [{ from: new Date(1900, 0, 1), to: new Date(2100, 0, 1) }] : []),
21244
21243
  { before: parsedMin || new Date(1900, 0, 1) },
21245
21244
  { after: parsedMax || new Date(2100, 0, 1) }
21246
21245
  ], components: {
21247
21246
  Chevron: (props) => {
21248
21247
  const style = { display: 'block', cursor: 'pointer', color: 'var(--gray-11)' };
21249
- if (props.orientation === 'left')
21248
+ if (props.orientation === 'left') {
21250
21249
  return React__default.createElement(Icon, { name: 'chevronleft', height: "16", width: "16", style: style });
21250
+ }
21251
21251
  return React__default.createElement(Icon, { name: 'chevronright', height: "16", width: "16", style: style });
21252
21252
  }
21253
21253
  } })))),
21254
21254
  React__default.createElement("div", null,
21255
- React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
21255
+ inputLabel && (React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputLabel)),
21256
21256
  "\u00A0",
21257
- props.ishinted ?
21258
- React__default.createElement(React__default.Fragment, null,
21259
- React__default.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
21260
- React__default.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
21261
- React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
21262
- hasError ?
21263
- React__default.createElement(React__default.Fragment, null,
21264
- React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errortext || (meta.error || "Required field"))) : null))));
21257
+ isHinted && (React__default.createElement(e, { content: hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
21258
+ React__default.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
21259
+ React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
21260
+ hasError && (React__default.createElement(p$d, { id: errorId, size: "1", color: "red", className: 'core-input-label-error' }, errorText || (meta.error || "Required field")))))));
21265
21261
  };
21266
21262
 
21267
21263
  const DateTimePicker = (_a) => {
21268
- var { inputtype = 'datetimepicker-outline', alias, readonly, width, inputlabel, placeholder = 'Pick date & time', value, minvalue, maxvalue, classname, style } = _a, props = __rest$1(_a, ["inputtype", "alias", "readonly", "width", "inputlabel", "placeholder", "value", "minvalue", "maxvalue", "classname", "style"]);
21264
+ var { inputtype = 'datetimepicker-outline', alias, readOnly, newRow, isHinted, hintText, hintUrl, errorText, width, inputLabel, placeholder = 'Pick date & time', value, minDate, maxDate, className, style } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "width", "inputLabel", "placeholder", "value", "minDate", "maxDate", "className", "style"]);
21269
21265
  const { setFieldValue, setFieldTouched } = useFormikContext();
21270
21266
  const [field, meta] = useField(alias);
21271
21267
  const hasError = Boolean(meta.touched && meta.error);
21272
21268
  const selectedDate = ensureDate(field.value);
21273
- const parsedMin = ensureDate(minvalue);
21274
- const parsedMax = ensureDate(maxvalue);
21269
+ const parsedMin = ensureDate(minDate);
21270
+ const parsedMax = ensureDate(maxDate);
21275
21271
  const inputId = `${alias}FormInput`;
21276
21272
  const errorId = `${alias}-error`;
21277
21273
  const [isOpen, setIsOpen] = useState(false);
21278
21274
  const containerRef = useRef(null);
21279
21275
  const [neuVars, setNeuVars] = useState({});
21276
+ // Neumorphic Logic
21280
21277
  useEffect(() => {
21281
21278
  if (inputtype === 'datetimepicker-neumorphic' && containerRef.current) {
21282
21279
  const parentBg = getNearestParentBackground(containerRef.current.parentElement);
@@ -21295,6 +21292,7 @@ const DateTimePicker = (_a) => {
21295
21292
  const current = selectedDate || new Date();
21296
21293
  const hours = current.getHours();
21297
21294
  const minutes = current.getMinutes();
21295
+ // Preserve existing time when changing date
21298
21296
  const newDateTime = setMinutes(setHours(date, hours), minutes);
21299
21297
  setFieldValue(alias, newDateTime);
21300
21298
  };
@@ -21314,7 +21312,7 @@ const DateTimePicker = (_a) => {
21314
21312
  }
21315
21313
  setFieldValue(alias, newDate);
21316
21314
  };
21317
- // --- STYLES ---
21315
+ // --- INPUT STYLES ---
21318
21316
  const activeInputStyle = React__default.useMemo(() => {
21319
21317
  if (inputtype === 'datetimepicker-neumorphic') {
21320
21318
  return Object.assign({ backgroundColor: 'var(--neu-bg)', border: 'none', color: hasError ? 'var(--red-9)' : 'var(--neu-text)', boxShadow: 'inset 3px 3px 6px var(--neu-shadow-dark), inset -3px -3px 6px var(--neu-shadow-light)', borderRadius: '8px' }, neuVars);
@@ -21335,82 +21333,87 @@ const DateTimePicker = (_a) => {
21335
21333
  borderRadius: 'var(--radius-2)'
21336
21334
  };
21337
21335
  }, [inputtype, hasError, neuVars]);
21336
+ // --- POPUP CONTAINER STYLES ---
21338
21337
  const calendarContainerStyle = React__default.useMemo(() => {
21339
- const base = { padding: 0, borderRadius: '12px', overflow: 'hidden' }; // Padding 0 to let Time section flush to bottom
21338
+ // Padding 0 allows the Time Picker footer to sit flush at the bottom
21339
+ const base = { padding: 0, borderRadius: '16px', overflow: 'hidden', zIndex: 50 };
21340
21340
  if (inputtype === 'datetimepicker-neumorphic') {
21341
21341
  return Object.assign(Object.assign(Object.assign({}, base), { backgroundColor: 'var(--neu-bg)', boxShadow: '6px 6px 12px var(--neu-shadow-dark), -6px -6px 12px var(--neu-shadow-light)', border: 'none' }), neuVars);
21342
21342
  }
21343
- if (inputtype === 'datetimepicker-outline') {
21344
- return Object.assign(Object.assign({}, base), { backgroundColor: 'var(--color-panel-solid)', border: '1px solid var(--gray-6)', boxShadow: '0 4px 12px rgba(0,0,0,0.05)' });
21345
- }
21346
- // Material
21347
- return Object.assign(Object.assign({}, base), { backgroundColor: 'var(--color-panel-solid)', border: 'none', boxShadow: '0 10px 38px -10px rgba(22, 23, 24, 0.35), 0 10px 20px -15px rgba(22, 23, 24, 0.2)' });
21343
+ // Google Material Shadow
21344
+ return Object.assign(Object.assign({}, base), { backgroundColor: 'var(--color-panel-solid)', border: '1px solid var(--gray-4)', boxShadow: '0 12px 24px -10px rgba(0,0,0,0.15), 0 8px 12px -6px rgba(0,0,0,0.1)' });
21348
21345
  }, [inputtype, neuVars]);
21349
- return (React__default.createElement(Column, { span: width, newLine: props.newrow },
21350
- React__default.createElement(p$5, { direction: "column", gap: "2", width: "100%", ref: containerRef, style: style, className: classname },
21351
- React__default.createElement("input", { type: "hidden", name: alias, value: selectedDate ? selectedDate.toISOString() : '' }),
21346
+ return (React__default.createElement(Column, { span: width, newLine: newRow },
21347
+ React__default.createElement(p$5, { direction: "column", gap: "2", width: "100%", ref: containerRef, style: style, className: className },
21348
+ React__default.createElement("input", Object.assign({ type: "hidden", name: alias, value: selectedDate ? selectedDate.toISOString() : '' }, props)),
21352
21349
  React__default.createElement("style", { dangerouslySetInnerHTML: { __html: `
21353
- /* Reset & Layout */
21354
21350
  .rdp {
21355
- --rdp-cell-size: 36px;
21356
- --rdp-caption-font-size: 16px;
21351
+ --rdp-cell-size: 40px;
21352
+ --rdp-accent-color: var(--accent-9);
21353
+ --rdp-background-color: var(--accent-3);
21357
21354
  margin: 0;
21358
- padding: 16px; /* Padding moved to RDP so Time section is flush */
21355
+ padding: 16px; /* Padding inside RDP */
21359
21356
  font-family: var(--default-font-family, sans-serif);
21360
21357
  }
21361
- .rdp-months { justify-content: center; }
21362
- .rdp-month { background: transparent; }
21358
+ .rdp-vhidden { display: none; }
21359
+ .rdp-month { display: table; margin: 0 auto; border-collapse: collapse; }
21360
+ .rdp-caption { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding: 0 8px; }
21363
21361
 
21364
- /* Header */
21365
- .rdp-caption {
21366
- display: flex; align-items: center; justify-content: space-between;
21367
- margin-bottom: 12px; padding: 0 4px;
21368
- }
21369
21362
  .rdp-caption_label {
21370
- font-weight: 600; color: var(--gray-12); font-size: var(--font-size-3);
21371
- text-transform: capitalize;
21363
+ font-size: 1rem; font-weight: 600; color: var(--gray-12); text-transform: capitalize;
21372
21364
  }
21373
- .rdp-nav { display: flex; gap: 8px; }
21365
+
21366
+ /* Navigation */
21367
+ .rdp-nav { display: flex; gap: 4px; }
21374
21368
  .rdp-nav_button {
21375
- color: var(--gray-11); border-radius: 6px; padding: 4px;
21376
- transition: background 0.2s; background: transparent; border: none; cursor: pointer;
21369
+ width: 32px; height: 32px;
21377
21370
  display: flex; align-items: center; justify-content: center;
21371
+ border-radius: 50%; border: none; background: transparent; cursor: pointer;
21372
+ color: var(--gray-11); transition: all 0.2s ease;
21378
21373
  }
21379
21374
  .rdp-nav_button:hover { background-color: var(--gray-4); color: var(--gray-12); }
21380
21375
 
21381
21376
  /* Weekdays */
21382
21377
  .rdp-head_cell {
21378
+ width: var(--rdp-cell-size); height: 32px;
21383
21379
  font-size: 0.75rem; font-weight: 600; color: var(--gray-9);
21384
- text-transform: uppercase; padding-bottom: 8px; width: var(--rdp-cell-size);
21385
- text-align: center;
21380
+ text-transform: uppercase; text-align: center; vertical-align: middle;
21386
21381
  }
21387
21382
 
21388
- /* Cells */
21389
- .rdp-cell { text-align: center; }
21383
+ /* Days */
21384
+ .rdp-cell { text-align: center; padding: 0; }
21390
21385
  .rdp-day {
21391
21386
  width: var(--rdp-cell-size); height: var(--rdp-cell-size);
21392
- border-radius: 50%; border: 2px solid transparent;
21393
- background: transparent; cursor: pointer; color: var(--gray-12);
21394
- font-size: var(--font-size-2); display: flex; align-items: center; justify-content: center;
21387
+ border-radius: 50%; border: none; background: transparent;
21388
+ color: var(--gray-12); font-size: 0.9rem; cursor: pointer;
21389
+ display: flex; align-items: center; justify-content: center;
21395
21390
  transition: all 0.15s ease; margin: 1px;
21396
21391
  }
21397
21392
 
21398
- .rdp-day:hover:not(.rdp-day_selected):not([disabled]) { background-color: var(--gray-4); }
21399
- .rdp-day_selected { background-color: var(--accent-9) !important; color: white !important; font-weight: 600; }
21400
- .rdp-day_today { color: var(--accent-11); font-weight: 700; position: relative; }
21401
- .rdp-day_today:not(.rdp-day_selected)::after {
21402
- content: ''; position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background-color: var(--accent-9);
21393
+ .rdp-day:hover:not(.rdp-day_selected):not([disabled]) {
21394
+ background-color: var(--gray-4); font-weight: 500;
21395
+ }
21396
+
21397
+ /* Selected State */
21398
+ .rdp-day_selected {
21399
+ background-color: var(--rdp-accent-color) !important;
21400
+ color: white !important; font-weight: 600;
21403
21401
  }
21404
- .rdp-day_disabled { opacity: 0.3; cursor: not-allowed; }
21405
21402
 
21406
- /* Time Input Styling */
21403
+ /* Today State */
21404
+ .rdp-day_today { color: var(--rdp-accent-color); font-weight: 700; }
21405
+ .rdp-day_disabled { opacity: 0.25; cursor: not-allowed; }
21406
+
21407
+ /* --- TIME INPUT STYLING --- */
21407
21408
  .time-input {
21408
21409
  text-align: center; font-variant-numeric: tabular-nums;
21409
- width: 44px; padding: 4px; border-radius: 6px;
21410
+ width: 44px; padding: 6px; border-radius: 6px;
21410
21411
  border: 1px solid var(--gray-6); background: var(--color-surface);
21411
- color: var(--gray-12); font-weight: 500;
21412
+ color: var(--gray-12); font-weight: 600; font-size: 0.9rem;
21413
+ }
21414
+ .time-input:focus {
21415
+ outline: 2px solid var(--accent-9); border-color: transparent;
21412
21416
  }
21413
- .time-input:focus { outline: 2px solid var(--accent-9); border-color: transparent; }
21414
21417
 
21415
21418
  /* Neumorphic Overrides */
21416
21419
  ${inputtype === 'datetimepicker-neumorphic' ? `
@@ -21434,54 +21437,53 @@ const DateTimePicker = (_a) => {
21434
21437
  setFieldTouched(alias, true);
21435
21438
  } },
21436
21439
  React__default.createElement(s$1, null,
21437
- React__default.createElement(u, { variant: "surface", style: Object.assign({ cursor: 'pointer', height: inputtype === 'datetimepicker-neumorphic' ? '40px' : '32px' }, activeInputStyle), onClick: () => !readonly && setIsOpen(true) },
21440
+ React__default.createElement(u, { variant: "surface", style: Object.assign({ cursor: 'pointer', height: inputtype === 'datetimepicker-neumorphic' ? '40px' : '32px' }, activeInputStyle), onClick: () => !readOnly && setIsOpen(true) },
21438
21441
  React__default.createElement(c, null,
21439
21442
  React__default.createElement(Icon, { name: 'calendar', height: "16", width: "16", style: { color: 'var(--gray-10)' } })),
21440
- React__default.createElement("input", { id: inputId, "aria-describedby": hasError ? errorId : undefined, readOnly: true, disabled: readonly, value: selectedDate && isValid(selectedDate) ? format$2(selectedDate, 'PPP p') : '', placeholder: placeholder, style: {
21443
+ React__default.createElement("input", { id: inputId, "aria-describedby": hasError ? errorId : undefined, readOnly: true, disabled: readOnly,
21444
+ // Format: Jan 01, 2023 12:00 PM
21445
+ value: selectedDate && isValid(selectedDate) ? format$2(selectedDate, 'PPP p') : '', placeholder: placeholder, style: {
21441
21446
  backgroundColor: 'transparent', border: 'none', outline: 'none', width: '100%',
21442
- cursor: readonly ? 'default' : 'pointer', color: 'inherit', fontFamily: 'inherit',
21443
- fontSize: 'var(--font-size-2)', fontWeight: 500
21447
+ cursor: readOnly ? 'default' : 'pointer', color: 'inherit', fontFamily: 'inherit',
21448
+ fontSize: 'var(--font-size-2)', fontWeight: 500, pointerEvents: 'none'
21444
21449
  } }))),
21445
21450
  React__default.createElement(i$3, { style: calendarContainerStyle, align: "start", sideOffset: 5 },
21446
21451
  React__default.createElement("div", { className: inputtype === 'datetimepicker-neumorphic' ? 'neu-calendar' : '', style: neuVars },
21447
21452
  React__default.createElement(DayPicker, { mode: "single", selected: selectedDate, onSelect: handleDaySelect, disabled: [
21448
- ...(readonly ? [{ from: new Date(1900, 0, 1), to: new Date(2100, 0, 1) }] : []),
21453
+ ...(readOnly ? [{ from: new Date(1900, 0, 1), to: new Date(2100, 0, 1) }] : []),
21449
21454
  { before: parsedMin || new Date(1900, 0, 1) },
21450
21455
  { after: parsedMax || new Date(2100, 0, 1) }
21451
- ], modifiers: { today: new Date() }, modifiersClassNames: { today: 'rdp-day_today' }, components: {
21456
+ ], components: {
21452
21457
  Chevron: (props) => {
21453
21458
  const style = { display: 'block', cursor: 'pointer', color: 'var(--gray-11)' };
21454
- if (props.orientation === 'left')
21459
+ if (props.orientation === 'left') {
21455
21460
  return React__default.createElement(Icon, { name: 'chevronleft', height: "16", width: "16", style: style });
21461
+ }
21456
21462
  return React__default.createElement(Icon, { name: 'chevronright', height: "16", width: "16", style: style });
21457
21463
  }
21458
21464
  } }),
21459
- React__default.createElement(o$2, { size: "4" }),
21460
- React__default.createElement(p$5, { p: "3", gap: "3", align: "center", justify: "center", style: {
21465
+ React__default.createElement(p$5, { p: "3", gap: "3", align: "center", justify: "between", style: {
21461
21466
  backgroundColor: inputtype === 'datetimepicker-neumorphic' ? 'rgba(0,0,0,0.02)' : 'var(--gray-2)',
21462
21467
  borderTop: inputtype === 'datetimepicker-neumorphic' ? 'none' : '1px solid var(--gray-4)'
21463
21468
  } },
21464
- React__default.createElement(Icon, { name: "clock", width: "16", height: "16", style: { opacity: 0.7 } }),
21465
- React__default.createElement(p$5, { align: "center", gap: "1" },
21466
- React__default.createElement("input", { type: "number", className: "time-input", min: "0", max: "23", disabled: readonly, value: selectedDate ? format$2(selectedDate, 'HH') : '12', onChange: (e) => handleTimeChange('hours', e.target.value) }),
21467
- React__default.createElement(p$d, { weight: "bold", style: { paddingBottom: 2 } }, ":"),
21468
- React__default.createElement("input", { type: "number", className: "time-input", min: "0", max: "59", disabled: readonly, value: selectedDate ? format$2(selectedDate, 'mm') : '00', onChange: (e) => handleTimeChange('minutes', e.target.value) })),
21469
- React__default.createElement(o$a, { size: "1", variant: "soft", onClick: () => setIsOpen(false), style: { marginLeft: 'auto' } }, "Done"))))),
21469
+ React__default.createElement(p$5, { align: "center", gap: "2" },
21470
+ React__default.createElement(Icon, { name: "clock", width: "16", height: "16", style: { opacity: 0.6 } }),
21471
+ React__default.createElement(p$5, { align: "center", gap: "1" },
21472
+ React__default.createElement("input", { type: "number", className: "time-input", min: "0", max: "23", disabled: readOnly, value: selectedDate ? format$2(selectedDate, 'HH') : '12', onChange: (e) => handleTimeChange('hours', e.target.value) }),
21473
+ React__default.createElement(p$d, { weight: "bold", size: "3", style: { paddingBottom: 2, color: 'var(--gray-10)' } }, ":"),
21474
+ React__default.createElement("input", { type: "number", className: "time-input", min: "0", max: "59", disabled: readOnly, value: selectedDate ? format$2(selectedDate, 'mm') : '00', onChange: (e) => handleTimeChange('minutes', e.target.value) }))),
21475
+ React__default.createElement(o$a, { size: "1", variant: "soft", onClick: () => setIsOpen(false) }, "Done"))))),
21470
21476
  React__default.createElement("div", null,
21471
- React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
21477
+ inputLabel && (React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputLabel)),
21472
21478
  "\u00A0",
21473
- props.ishinted ?
21474
- React__default.createElement(React__default.Fragment, null,
21475
- React__default.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
21476
- React__default.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
21477
- React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
21478
- hasError ?
21479
- React__default.createElement(React__default.Fragment, null,
21480
- React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errortext || (meta.error || "Required field"))) : null))));
21479
+ isHinted && (React__default.createElement(e, { content: hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
21480
+ React__default.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
21481
+ React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
21482
+ hasError && (React__default.createElement(p$d, { id: errorId, size: "1", color: "red", className: 'core-input-label-error' }, errorText || (meta.error || "Required field")))))));
21481
21483
  };
21482
21484
 
21483
21485
  const Dropdown = (_a) => {
21484
- var { inputtype = 'dropdown-outline', alias, readonly, width, inputlabel, placeholder, value, inputoptions, style, newrow, ishinted, hinttext, hinturl, defaultvalue, errortext } = _a, props = __rest$1(_a, ["inputtype", "alias", "readonly", "width", "inputlabel", "placeholder", "value", "inputoptions", "style", "newrow", "ishinted", "hinttext", "hinturl", "defaultvalue", "errortext"]);
21486
+ var { inputtype = 'dropdown-outline', alias, readOnly, width, inputLabel, placeholder, value, inputOptions, style, newRow, isHinted, hintText, hintUrl, defaultvalue, errorText, className } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "inputLabel", "placeholder", "value", "inputOptions", "style", "newRow", "isHinted", "hintText", "hintUrl", "defaultvalue", "errorText", "className"]);
21485
21487
  const triggerRef = useRef(null);
21486
21488
  const [neuVars, setNeuVars] = useState({});
21487
21489
  const { setFieldValue, setFieldTouched } = useFormikContext();
@@ -21555,7 +21557,7 @@ const Dropdown = (_a) => {
21555
21557
  inputtype === 'dropdown-material' ? materialContent :
21556
21558
  inputtype === 'dropdown-outline' ? outlineContent : Object.assign(Object.assign({}, neumorphicContent), neuVars);
21557
21559
  return (React__default.createElement(React__default.Fragment, null,
21558
- React__default.createElement(Column, { span: width, newLine: newrow },
21560
+ React__default.createElement(Column, { span: width, newLine: newRow },
21559
21561
  React__default.createElement(p$5, { direction: "column", gap: "2", style: { width: '100%' } },
21560
21562
  inputtype === 'dropdown-neumorphic' && (React__default.createElement("style", { dangerouslySetInnerHTML: { __html: `
21561
21563
  .neu-select-trigger[data-state='open'] {
@@ -21567,7 +21569,7 @@ const Dropdown = (_a) => {
21567
21569
  cursor: pointer;
21568
21570
  }
21569
21571
  ` } })),
21570
- React__default.createElement(C$1, { name: alias, disabled: readonly, value: field.value || "", onValueChange: (val) => {
21572
+ React__default.createElement(C$1, { name: alias, disabled: readOnly, value: field.value || "", onValueChange: (val) => {
21571
21573
  const finalVal = val === "__RESET__" ? "" : val;
21572
21574
  setFieldValue(alias, finalVal);
21573
21575
  setTimeout(() => setFieldTouched(alias, true), 0);
@@ -21578,26 +21580,26 @@ const Dropdown = (_a) => {
21578
21580
  setFieldTouched(alias, true);
21579
21581
  }
21580
21582
  } },
21581
- 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)),
21583
+ 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)),
21582
21584
  React__default.createElement(g, { position: "popper", sideOffset: 5, style: activeContentStyle },
21583
21585
  React__default.createElement(v, { value: "__RESET__", className: inputtype === 'dropdown-neumorphic' ? 'neu-select-item' : '', style: { color: 'var(--gray-10)', fontStyle: 'italic' } }, placeholder || "Select an option"),
21584
21586
  React__default.createElement(o$2, { size: "4", style: { margin: '4px 0', opacity: 0.5 } }),
21585
- inputoptions.map((inputoption) => (React__default.createElement(React__default.Fragment, { key: inputoption.optionid || crypto.randomUUID() }, inputoption.optionurl ?
21587
+ inputOptions.map((inputoption) => (React__default.createElement(React__default.Fragment, { key: inputoption.optionid || crypto.randomUUID() }, inputoption.optionurl ?
21586
21588
  React__default.createElement(v, { id: String(inputoption.optionid) || '', value: inputoption.optionvalue, className: inputtype === 'dropdown-neumorphic' ? 'neu-select-item' : '' },
21587
21589
  React__default.createElement("a", { onClick: (e) => { e.stopPropagation(); openLink(inputoption.optionurl || "#"); }, style: { textDecoration: 'none', color: 'inherit' } }, inputoption.text))
21588
21590
  :
21589
21591
  React__default.createElement(v, { id: String(inputoption.optionid) || '', value: inputoption.optionvalue, className: inputtype === 'dropdown-neumorphic' ? 'neu-select-item' : '' }, inputoption.text)))))),
21590
21592
  React__default.createElement("div", null,
21591
- React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
21593
+ React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputLabel),
21592
21594
  "\u00A0",
21593
- ishinted ?
21595
+ isHinted ?
21594
21596
  React__default.createElement(React__default.Fragment, null,
21595
- React__default.createElement(e, { content: hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
21596
- React__default.createElement("a", { href: hinturl || "", target: "_blank", rel: "noopener noreferrer" },
21597
+ React__default.createElement(e, { content: hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
21598
+ React__default.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
21597
21599
  React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
21598
21600
  hasError ?
21599
21601
  React__default.createElement(React__default.Fragment, null,
21600
- React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, errortext || meta.error || "Required field")) : null)))));
21602
+ React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || meta.error || "Required field")) : null)))));
21601
21603
  };
21602
21604
 
21603
21605
  const getFileIcon$1 = (type, name) => {
@@ -21615,7 +21617,7 @@ const getFileIcon$1 = (type, name) => {
21615
21617
  };
21616
21618
  const File$1 = (_a) => {
21617
21619
  var _b;
21618
- var { inputtype = 'fileinput-outline', alias, readonly, width, inputlabel, placeholder = '', preview = false, classname, style } = _a, props = __rest$1(_a, ["inputtype", "alias", "readonly", "width", "inputlabel", "placeholder", "preview", "classname", "style"]);
21620
+ var { inputtype = 'fileinput-outline', alias, readOnly, width, inputLabel, placeholder = '', newRow, isHinted, hintText, hintUrl, errorText, preview = false, className, style } = _a; __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "inputLabel", "placeholder", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "preview", "className", "style"]);
21619
21621
  const { setFieldValue, setFieldTouched } = useFormikContext();
21620
21622
  const [field, meta] = useField(alias);
21621
21623
  const selectedFile = field.value;
@@ -21685,9 +21687,9 @@ const File$1 = (_a) => {
21685
21687
  : '6px 6px 12px var(--neu-shadow-dark), -6px -6px 12px var(--neu-shadow-light)', border: 'none' }), neuVars);
21686
21688
  const activeStyle = inputtype === 'fileinput-neumorphic' ? neumorphicTrigger :
21687
21689
  inputtype === 'fileinput-outline' ? outlineTrigger : materialTrigger;
21688
- return (React__default.createElement(Column, { span: width, newLine: props.newrow },
21689
- React__default.createElement(p$5, { direction: "column", gap: "2", width: "100%", ref: containerRef, style: style, className: classname },
21690
- React__default.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 }),
21690
+ return (React__default.createElement(Column, { span: width, newLine: newRow },
21691
+ React__default.createElement(p$5, { direction: "column", gap: "2", width: "100%", ref: containerRef, style: style, className: className },
21692
+ React__default.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 }),
21691
21693
  React__default.createElement("div", { onClick: () => { var _a; return (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.click(); }, style: activeStyle, onMouseEnter: (e) => {
21692
21694
  if (inputtype === 'fileinput-outline')
21693
21695
  e.currentTarget.style.borderColor = 'var(--accent-9)';
@@ -21719,16 +21721,16 @@ const File$1 = (_a) => {
21719
21721
  React__default.createElement(o$5, { size: "1", variant: "ghost", color: "red", onClick: handleClear, style: { borderRadius: '50%', padding: 4 } },
21720
21722
  React__default.createElement(Icon, { name: 'close', width: "16", height: "16" }))))),
21721
21723
  React__default.createElement("div", null,
21722
- React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
21724
+ React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputLabel),
21723
21725
  "\u00A0",
21724
- props.ishinted ?
21726
+ isHinted ?
21725
21727
  React__default.createElement(React__default.Fragment, null,
21726
- React__default.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
21727
- React__default.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
21728
+ React__default.createElement(e, { content: hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
21729
+ React__default.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
21728
21730
  React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
21729
21731
  hasError ?
21730
21732
  React__default.createElement(React__default.Fragment, null,
21731
- React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errortext || "Required field")) : null))));
21733
+ React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || "Required field")) : null))));
21732
21734
  };
21733
21735
 
21734
21736
  const getFileIcon = (fileOrUrl) => {
@@ -21778,7 +21780,7 @@ const styles = {
21778
21780
  }
21779
21781
  };
21780
21782
  const FileMultiple = (_a) => {
21781
- var { inputtype = 'filemultiple-outline', alias, readonly, width, inputlabel, placeholder = '', preview = true, classname, style } = _a, props = __rest$1(_a, ["inputtype", "alias", "readonly", "width", "inputlabel", "placeholder", "preview", "classname", "style"]);
21783
+ var { inputtype = 'filemultiple-outline', alias, readOnly, width, inputLabel, placeholder = '', newRow, isHinted, hintText, hintUrl, errorText, preview = true, className, style } = _a; __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "inputLabel", "placeholder", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "preview", "className", "style"]);
21782
21784
  const [field, meta] = useField(alias);
21783
21785
  const { setFieldValue, setFieldTouched } = useFormikContext();
21784
21786
  const inputRef = useRef(null);
@@ -21809,11 +21811,9 @@ const FileMultiple = (_a) => {
21809
21811
  const handleFileChange = (e) => {
21810
21812
  if (e.target.files && e.target.files.length > 0) {
21811
21813
  const newFiles = Array.from(e.target.files);
21812
- // Append new files to extants
21813
21814
  setFieldValue(alias, [...currentFiles, ...newFiles]);
21814
21815
  setFieldTouched(alias, true);
21815
21816
  }
21816
- // Reset input value to allow file reselection
21817
21817
  if (inputRef.current)
21818
21818
  inputRef.current.value = '';
21819
21819
  };
@@ -21827,8 +21827,8 @@ const FileMultiple = (_a) => {
21827
21827
  };
21828
21828
  const isNeumorphic = inputtype === 'filemultiple-neumorphic';
21829
21829
  const hasError = meta.touched && meta.error;
21830
- return (React__default.createElement(Column, { span: width, newLine: props.newrow },
21831
- React__default.createElement(p$8, { className: classname, style: style },
21830
+ return (React__default.createElement(Column, { span: width, newLine: newRow },
21831
+ React__default.createElement(p$8, { className: className, style: style },
21832
21832
  React__default.createElement(p$8, { onClick: () => { var _a; return (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.click(); }, p: "4", style: Object.assign(Object.assign({}, styles[inputtype]), { cursor: 'pointer', transition: 'all 0.2s', borderColor: hasError ? 'var(--red-9)' : (styles[inputtype].borderBottom ? 'var(--accent-9)' : 'var(--gray-a8)'), position: 'relative' }) },
21833
21833
  React__default.createElement(p$5, { align: "center", gap: "4" },
21834
21834
  React__default.createElement(p$8, { style: {
@@ -21843,7 +21843,7 @@ const FileMultiple = (_a) => {
21843
21843
  ? `${currentFiles.length} file${currentFiles.length !== 1 ? 's' : ''} selected`
21844
21844
  : "Choose files..."),
21845
21845
  React__default.createElement(p$d, { size: "1", color: "gray", style: { opacity: 0.8 } }, "PDF, Images, Office Docs, JSON, ZIP"))),
21846
- React__default.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 })),
21846
+ React__default.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 })),
21847
21847
  preview && currentFiles.length > 0 && (React__default.createElement(o$6, { columns: "repeat(auto-fill, minmax(220px, 1fr))", gap: "3", mt: "3" }, currentFiles.map((file, index) => {
21848
21848
  // Detect preview URL:
21849
21849
  // If string (URL from DB), use urlpath
@@ -21887,17 +21887,17 @@ const FileMultiple = (_a) => {
21887
21887
  }))),
21888
21888
  React__default.createElement("div", null,
21889
21889
  React__default.createElement("br", null),
21890
- React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
21890
+ React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputLabel),
21891
21891
  "\u00A0",
21892
- props.ishinted ?
21892
+ isHinted ?
21893
21893
  React__default.createElement(React__default.Fragment, null,
21894
- React__default.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
21895
- React__default.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
21894
+ React__default.createElement(e, { content: hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
21895
+ React__default.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
21896
21896
  React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
21897
21897
  hasError ?
21898
21898
  React__default.createElement(React__default.Fragment, null,
21899
21899
  React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, typeof meta.error === 'string' ?
21900
- React__default.createElement(React__default.Fragment, null, props.errortext || "Required field")
21900
+ React__default.createElement(React__default.Fragment, null, errorText || "Required field")
21901
21901
  : 'Invalid file selection')) : null))));
21902
21902
  };
21903
21903
 
@@ -29192,10 +29192,10 @@ const getStyles = (design, layout) => {
29192
29192
  }
29193
29193
  return Object.assign(Object.assign({ borderRadius }, visualStyles), { position: 'relative', overflow: 'hidden', display: 'block' });
29194
29194
  };
29195
- const ImageOutput = ({ id, src, alt = "Image", design = 'outline', layout = 'normal', aspectratio = 16 / 9, height, width = '100%', classname, style, onClick, }) => {
29195
+ const ImageOutput = ({ id, src, alt = "Image", design = 'outline', layout = 'normal', aspectratio = 16 / 9, height, width = '100%', className, style, onClick, }) => {
29196
29196
  const containerStyles = getStyles(design, layout);
29197
29197
  const iconColor = design === 'neumorphic' ? '#555' : 'var(--gray-9)';
29198
- 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: {
29198
+ 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: {
29199
29199
  width: '100%',
29200
29200
  height: '100%',
29201
29201
  objectFit: 'cover',
@@ -29217,33 +29217,33 @@ const ImageOutput = ({ id, src, alt = "Image", design = 'outline', layout = 'nor
29217
29217
  };
29218
29218
 
29219
29219
  const Input$2 = (_a) => {
29220
- 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"]);
29220
+ var { alias, inputtype = "text", width, inputLabel, readOnly = false, placeholder = '', newRow, isHinted, hintText, hintUrl, errorText, className, size = "2", style, inputvariant = 'input-outline' } = _a, props = __rest$1(_a, ["alias", "inputtype", "width", "inputLabel", "readOnly", "placeholder", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "className", "size", "style", "inputvariant"]);
29221
29221
  const [inputField, meta] = useField(alias);
29222
29222
  const hasError = Boolean(meta.touched && meta.error);
29223
29223
  const variantClass = inputvariant !== 'input-outline' ? `input-${inputvariant}` : '';
29224
29224
  const errorId = `${alias}-error`;
29225
- return (React__default.createElement(Column, { span: width, newLine: props.newrow },
29226
- React__default.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 })),
29225
+ return (React__default.createElement(Column, { span: width, newLine: newRow },
29226
+ React__default.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 })),
29227
29227
  React__default.createElement("div", null,
29228
29228
  React__default.createElement("br", null),
29229
- React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
29229
+ React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputLabel),
29230
29230
  "\u00A0",
29231
- props.ishinted && (React__default.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
29232
- React__default.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
29231
+ isHinted && (React__default.createElement(e, { content: hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
29232
+ React__default.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
29233
29233
  React__default.createElement(QuestionMarkCircledIcon, { height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
29234
- hasError && (React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errortext || `Required field`)))));
29234
+ hasError && (React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || `Required field`)))));
29235
29235
  };
29236
29236
 
29237
29237
  const PasswordInput = (_a) => {
29238
- 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"]);
29238
+ var { alias, inputLabel, width, readOnly = false, placeholder = '', newRow, isHinted, hintText, hintUrl, errorText, inputvariant = 'input-outline', size = "2", className } = _a, props = __rest$1(_a, ["alias", "inputLabel", "width", "readOnly", "placeholder", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "inputvariant", "size", "className"]);
29239
29239
  const [showPassword, setShowPassword] = useState(false);
29240
29240
  const toggleVisibility = () => setShowPassword(!showPassword);
29241
29241
  const [field, meta] = useField(alias);
29242
29242
  const hasError = Boolean(meta.touched && meta.error);
29243
29243
  const variantClass = inputvariant !== 'input-outline' ? `input-${inputvariant}` : '';
29244
29244
  const errorId = `${alias}-error`;
29245
- return (React__default.createElement(Column, { span: width, newLine: props.newrow },
29246
- React__default.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 }),
29245
+ return (React__default.createElement(Column, { span: width, newLine: newRow },
29246
+ React__default.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 }),
29247
29247
  React__default.createElement(c, null,
29248
29248
  React__default.createElement(Icon, { name: "lockclosed", height: "16", width: "16" })),
29249
29249
  React__default.createElement(c, null,
@@ -29251,12 +29251,12 @@ const PasswordInput = (_a) => {
29251
29251
  React__default.createElement(o$5, { size: "1", variant: "ghost", color: "gray", onClick: toggleVisibility, type: "button", "aria-label": showPassword ? "Hide password" : "Show password" }, showPassword ? (React__default.createElement(Icon, { name: "eyeopen", height: "16", width: "16" })) : (React__default.createElement(Icon, { name: "eyeclosed", height: "16", width: "16" })))))),
29252
29252
  React__default.createElement("div", null,
29253
29253
  React__default.createElement("br", null),
29254
- React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
29254
+ React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputLabel),
29255
29255
  "\u00A0",
29256
- props.ishinted && (React__default.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
29257
- React__default.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
29256
+ isHinted && (React__default.createElement(e, { content: hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
29257
+ React__default.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
29258
29258
  React__default.createElement(QuestionMarkCircledIcon, { height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
29259
- hasError && (React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errortext || `Required field`)))));
29259
+ hasError && (React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || `Required field`)))));
29260
29260
  };
29261
29261
 
29262
29262
  // This file is a workaround for a bug in web browsers' "native"
@@ -36798,14 +36798,14 @@ var en = {
36798
36798
  };
36799
36799
 
36800
36800
  const PhoneInput = (_a) => {
36801
- 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"]);
36801
+ var { alias, inputLabel, width, placeholder = "Phone Number", newRow, isHinted, hintText, hintUrl, errorText, readOnly, inputvariant = 'input-outline', size = "2", className } = _a, props = __rest$1(_a, ["alias", "inputLabel", "width", "placeholder", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "readOnly", "inputvariant", "size", "className"]);
36802
36802
  const { setFieldValue, setFieldTouched } = useFormikContext();
36803
36803
  const [field, meta] = useField(alias);
36804
36804
  const hasError = Boolean(meta.touched && meta.error);
36805
36805
  const [country, setCountry] = useState('US');
36806
36806
  const variantClass = inputvariant !== 'input-outline' ? `input-${inputvariant}` : '';
36807
36807
  const errorId = `${alias}-error`;
36808
- return (React__default.createElement(Column, { span: width, newLine: props.newrow },
36808
+ return (React__default.createElement(Column, { span: width, newLine: newRow },
36809
36809
  React__default.createElement(p$5, { direction: "column", gap: "2", style: { width: '100%' } },
36810
36810
  React__default.createElement(u, Object.assign({ size: size, variant: "surface", color: hasError ? "red" : undefined, className: `${variantClass} ${className || ''}` }, props),
36811
36811
  React__default.createElement(c, { style: { padding: 0 } },
@@ -36833,7 +36833,7 @@ const PhoneInput = (_a) => {
36833
36833
  "(+",
36834
36834
  getCountryCallingCode(c),
36835
36835
  ")")))))))),
36836
- React__default.createElement(Input, { country: country, international: true, withCountryCallingCode: false, limitMaxLength: true, value: field.value || '', onChange: (val) => setFieldValue(alias, val || ''), onBlur: () => setFieldTouched(alias, true), readOnly: readonly, placeholder: placeholder, id: `${alias}FormInput`, "aria-describedby": `${alias}InputLabel`, style: {
36836
+ React__default.createElement(Input, { country: country, international: true, withCountryCallingCode: false, limitMaxLength: true, value: field.value || '', onChange: (val) => setFieldValue(alias, val || ''), onBlur: () => setFieldTouched(alias, true), readOnly: readOnly, placeholder: placeholder, id: `${alias}FormInput`, "aria-describedby": `${alias}InputLabel`, style: {
36837
36837
  flex: 1,
36838
36838
  border: 'none',
36839
36839
  outline: 'none',
@@ -36846,11 +36846,11 @@ const PhoneInput = (_a) => {
36846
36846
  width: '100%'
36847
36847
  } })),
36848
36848
  React__default.createElement("div", { style: { marginTop: 4, display: 'flex', alignItems: 'center', gap: 6 } },
36849
- React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
36850
- props.ishinted && (React__default.createElement(e, { content: props.hinttext || "No hint available" },
36851
- React__default.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer", style: { display: 'flex' } },
36849
+ React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputLabel),
36850
+ isHinted && (React__default.createElement(e, { content: hintText || "No hint available" },
36851
+ React__default.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer", style: { display: 'flex' } },
36852
36852
  React__default.createElement(QuestionMarkCircledIcon, { height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
36853
- hasError && (React__default.createElement(p$d, { id: errorId, size: "1", color: "red", className: 'core-input-label-error' }, props.errortext || meta.error || `Required field`))))));
36853
+ hasError && (React__default.createElement(p$d, { id: errorId, size: "1", color: "red", className: 'core-input-label-error' }, errorText || meta.error || `Required field`))))));
36854
36854
  };
36855
36855
 
36856
36856
  /** Checks if value is string */
@@ -40641,7 +40641,7 @@ const parseUuidFormat = (input) => {
40641
40641
  };
40642
40642
 
40643
40643
  const UUIDInput = (_a) => {
40644
- 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"]);
40644
+ var { alias, type, inputLabel, width, delimiter = "-", format = [4, 4, 4, 4], placeholder = '', newRow, isHinted, hintText, hintUrl, errorText, readOnly = false, inputVariant = 'input-outline', size = "2", className } = _a, props = __rest$1(_a, ["alias", "type", "inputLabel", "width", "delimiter", "format", "placeholder", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "readOnly", "inputVariant", "size", "className"]);
40645
40645
  const { setFieldValue, setFieldTouched } = useFormikContext();
40646
40646
  const [field, meta] = useField(alias);
40647
40647
  const hasError = Boolean(meta.touched && meta.error);
@@ -40662,17 +40662,17 @@ const UUIDInput = (_a) => {
40662
40662
  '#': /[0-9a-fA-F]/
40663
40663
  }
40664
40664
  };
40665
- }, [format, type, delimiter]);
40665
+ }, [JSON.stringify(format), type, delimiter]);
40666
40666
  const handleCopy = () => {
40667
40667
  navigator.clipboard.writeText(field.value || '');
40668
40668
  setCopied(true);
40669
40669
  setTimeout(() => setCopied(false), 2000);
40670
40670
  };
40671
- const variantClass = inputvariant !== 'input-outline' ? `input-${inputvariant}` : '';
40672
- return (React__default.createElement(Column, { span: width, newLine: props.newrow },
40671
+ const variantClass = inputVariant !== 'input-outline' ? `input-${inputVariant}` : '';
40672
+ return (React__default.createElement(Column, { span: width, newLine: newRow },
40673
40673
  React__default.createElement(p$5, { direction: "column", gap: "2", style: { width: '100%' } },
40674
40674
  React__default.createElement(u, Object.assign({ size: size, variant: "surface", color: hasError ? 'red' : undefined, className: `${variantClass} ${className || ''}` }, props),
40675
- React__default.createElement(IMaskInput, { id: `${alias}FormInput`, name: alias, "aria-describedby": `${alias}InputLabel`, readOnly: readOnly, mask: maskPattern, definitions: definitions, value: field.value || '', unmask: true, onAccept: (val) => setFieldValue(alias, val), onBlur: () => setFieldTouched(alias, true), placeholder: placeholder, style: {
40675
+ React__default.createElement(IMaskInput, { id: `${alias}FormInput`, name: alias, "aria-describedby": `${alias}InputLabel`, readOnly: readOnly, mask: maskPattern, definitions: definitions, value: field.value || '', unmask: true, onAccept: (val) => setFieldValue(alias, val), onBlur: () => setFieldTouched(alias, true), placeholder: placeholder, type: "text", style: {
40676
40676
  flex: 1,
40677
40677
  border: 'none',
40678
40678
  outline: 'none',
@@ -40689,12 +40689,12 @@ const UUIDInput = (_a) => {
40689
40689
  React__default.createElement(e, { content: copied ? "Copied!" : "Copy to clipboard" },
40690
40690
  React__default.createElement(o$5, { size: "1", variant: "ghost", color: copied ? "green" : "gray", onClick: handleCopy, type: "button", disabled: !field.value }, copied ? React__default.createElement(CheckIcon, null) : React__default.createElement(CopyIcon, null))))),
40691
40691
  React__default.createElement("div", null,
40692
- React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
40692
+ React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputLabel),
40693
40693
  "\u00A0",
40694
- props.ishinted && (React__default.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
40695
- React__default.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
40694
+ isHinted && (React__default.createElement(e, { content: hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
40695
+ React__default.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
40696
40696
  React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
40697
- hasError && (React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errortext || meta.error || `Required field`))))));
40697
+ hasError && (React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || meta.error || `Required field`))))));
40698
40698
  };
40699
40699
 
40700
40700
  var FaCcVisa = {};
@@ -42126,7 +42126,7 @@ var cardValidator = /*@__PURE__*/getDefaultExportFromCjs(distExports);
42126
42126
 
42127
42127
  const CreditCardInput = (_a) => {
42128
42128
  var _b;
42129
- var { alias, inputlabel, width, placeholder, readonly = false, inputvariant = 'input-outline', classname } = _a, props = __rest$1(_a, ["alias", "inputlabel", "width", "placeholder", "readonly", "inputvariant", "classname"]);
42129
+ var { alias, inputLabel, width, placeholder, newRow, isHinted, hintText, hintUrl, errorText, readOnly = false, inputvariant = 'input-outline', className } = _a; __rest$1(_a, ["alias", "inputLabel", "width", "placeholder", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "readOnly", "inputvariant", "className"]);
42130
42130
  const { setFieldValue, setFieldTouched } = useFormikContext();
42131
42131
  const [field, meta] = useField(alias);
42132
42132
  const hasError = Boolean(meta.touched && meta.error);
@@ -42147,16 +42147,16 @@ const CreditCardInput = (_a) => {
42147
42147
  };
42148
42148
  const variantClass = inputvariant !== 'input-outline' ? `input-${inputvariant}` : '';
42149
42149
  const isOutline = inputvariant === 'input-outline';
42150
- return (React__default.createElement(Column, { span: width, newLine: props.newrow },
42150
+ return (React__default.createElement(Column, { span: width, newLine: newRow },
42151
42151
  React__default.createElement(p$5, { direction: "column", gap: "2", style: { width: '100%' } },
42152
- React__default.createElement(p$5, { align: "center", className: `rt-TextFieldRoot rt-r-size-2 rt-variant-surface ${variantClass} ${classname || ''}`, style: {
42152
+ React__default.createElement(p$5, { align: "center", className: `rt-TextFieldRoot rt-r-size-2 rt-variant-surface ${variantClass} ${className || ''}`, style: {
42153
42153
  width: '100%',
42154
42154
  boxShadow: (isOutline && hasError) ? 'inset 0 0 0 1px var(--red-9)' : undefined,
42155
42155
  backgroundColor: isOutline ? 'var(--color-surface)' : undefined,
42156
42156
  paddingRight: '12px',
42157
42157
  cursor: 'text'
42158
42158
  } },
42159
- React__default.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: {
42159
+ React__default.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: {
42160
42160
  flex: 1,
42161
42161
  border: 'none',
42162
42162
  outline: 'none',
@@ -42170,12 +42170,12 @@ const CreditCardInput = (_a) => {
42170
42170
  } }),
42171
42171
  React__default.createElement("div", { style: { display: 'flex', alignItems: 'center' } }, getCardIcon())),
42172
42172
  React__default.createElement("div", { style: { marginTop: 4, display: 'flex', alignItems: 'center', gap: 6 } },
42173
- React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
42173
+ React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputLabel),
42174
42174
  "\u00A0",
42175
- props.ishinted && (React__default.createElement(e, { content: props.hinttext || "No hint available" },
42176
- React__default.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer", style: { display: 'flex' } },
42175
+ isHinted && (React__default.createElement(e, { content: hintText || "No hint available" },
42176
+ React__default.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer", style: { display: 'flex' } },
42177
42177
  React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
42178
- hasError && (React__default.createElement(p$d, { id: errorId, size: "1", color: "red", className: 'core-input-label-error' }, props.errortext || `Required field`))))));
42178
+ hasError && (React__default.createElement(p$d, { id: errorId, size: "1", color: "red", className: 'core-input-label-error' }, errorText || `Required field`))))));
42179
42179
  };
42180
42180
 
42181
42181
  const CURRENCIES = {
@@ -42247,7 +42247,7 @@ const CURRENCIES = {
42247
42247
  };
42248
42248
 
42249
42249
  const CurrencyInput = (_a) => {
42250
- var { alias, inputtype = "currency", inputlabel, width, defaultvalue = "USD", placeholder, readonly = false, inputvariant = 'input-outline', classname } = _a, props = __rest$1(_a, ["alias", "inputtype", "inputlabel", "width", "defaultvalue", "placeholder", "readonly", "inputvariant", "classname"]);
42250
+ var { alias, inputtype = "currency", inputLabel, width, defaultvalue = "USD", placeholder, newRow, isHinted, hintText, hintUrl, errorText, readOnly = false, inputvariant = 'input-outline', className } = _a; __rest$1(_a, ["alias", "inputtype", "inputLabel", "width", "defaultvalue", "placeholder", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "readOnly", "inputvariant", "className"]);
42251
42251
  const { setFieldValue, setFieldTouched } = useFormikContext();
42252
42252
  const [amountField, amountMeta] = useField(alias);
42253
42253
  const currencyAlias = `${alias}Currency`;
@@ -42266,15 +42266,15 @@ const CurrencyInput = (_a) => {
42266
42266
  const variantClass = inputvariant !== 'input-outline' ? `input-${inputvariant}` : '';
42267
42267
  const isOutline = inputvariant === 'input-outline';
42268
42268
  const errorId = `${alias}-error`;
42269
- return (React__default.createElement(Column, { span: width, newLine: props.newRow },
42269
+ return (React__default.createElement(Column, { span: width, newLine: newRow },
42270
42270
  React__default.createElement(p$5, { direction: "column", gap: "2", style: { width: '100%' } },
42271
- React__default.createElement(p$5, { align: "center", className: `rt-TextFieldRoot rt-r-size-2 rt-variant-surface ${variantClass} ${classname || ''}`, style: {
42271
+ React__default.createElement(p$5, { align: "center", className: `rt-TextFieldRoot rt-r-size-2 rt-variant-surface ${variantClass} ${className || ''}`, style: {
42272
42272
  width: '100%',
42273
42273
  boxShadow: (isOutline && hasError) ? 'inset 0 0 0 1px var(--red-9)' : undefined,
42274
42274
  backgroundColor: isOutline ? 'var(--color-surface)' : undefined,
42275
42275
  cursor: 'text'
42276
42276
  } },
42277
- React__default.createElement(C$1, { value: activeCurrency.code, onValueChange: (val) => setFieldValue(currencyAlias, val), disabled: readonly || inputtype !== "currency" },
42277
+ React__default.createElement(C$1, { value: activeCurrency.code, onValueChange: (val) => setFieldValue(currencyAlias, val), disabled: readOnly || inputtype !== "currency" },
42278
42278
  React__default.createElement(u$1, { variant: "ghost", style: {
42279
42279
  height: '100%',
42280
42280
  padding: '0 8px 0 12px',
@@ -42305,7 +42305,7 @@ const CurrencyInput = (_a) => {
42305
42305
  normalizeZeros: true,
42306
42306
  radix: ".",
42307
42307
  mapToRadix: ['.'],
42308
- }, { value: amountField.value !== undefined && amountField.value !== null ? String(amountField.value) : '', unmask: true, onAccept: (val) => setFieldValue(alias, val), onBlur: () => setFieldTouched(alias, true), readOnly: readonly, placeholder: placeholder || '0.00', style: {
42308
+ }, { value: amountField.value !== undefined && amountField.value !== null ? String(amountField.value) : '', unmask: true, onAccept: (val) => setFieldValue(alias, val), onBlur: () => setFieldTouched(alias, true), readOnly: readOnly, placeholder: placeholder || '0.00', style: {
42309
42309
  flex: 1,
42310
42310
  border: 'none',
42311
42311
  outline: 'none',
@@ -42319,12 +42319,12 @@ const CurrencyInput = (_a) => {
42319
42319
  width: '100%'
42320
42320
  }, inputMode: "decimal", autoComplete: "off" }))),
42321
42321
  React__default.createElement("div", null,
42322
- React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
42322
+ React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputLabel),
42323
42323
  "\u00A0",
42324
- props.ishinted && (React__default.createElement(e, { content: props.hinttext || "No hint available" },
42325
- React__default.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer", style: { display: 'flex' } },
42324
+ isHinted && (React__default.createElement(e, { content: hintText || "No hint available" },
42325
+ React__default.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer", style: { display: 'flex' } },
42326
42326
  React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
42327
- hasError && (React__default.createElement(p$d, { id: errorId, size: "1", color: "red", className: 'core-input-label-error' }, props.errortext || amountMeta.error || `Required field`))))));
42327
+ hasError && (React__default.createElement(p$d, { id: errorId, size: "1", color: "red", className: 'core-input-label-error' }, errorText || amountMeta.error || `Required field`))))));
42328
42328
  };
42329
42329
 
42330
42330
  var FaChartLine = {};
@@ -42345,16 +42345,16 @@ function requireFaChartLine () {
42345
42345
  var FaChartLineExports = /*@__PURE__*/ requireFaChartLine();
42346
42346
 
42347
42347
  const StockInput = (_a) => {
42348
- 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"]);
42348
+ var { alias, inputLabel, width, defaultvalue, placeholder, newRow, isHinted, hintText, hintUrl, errorText, readOnly = false, inputvariant = 'input-outline', className } = _a; __rest$1(_a, ["alias", "inputLabel", "width", "defaultvalue", "placeholder", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "readOnly", "inputvariant", "className"]);
42349
42349
  const { setFieldValue, setFieldTouched } = useFormikContext();
42350
42350
  const [priceField, meta] = useField(alias);
42351
42351
  const hasError = Boolean(meta.touched && meta.error);
42352
42352
  const variantClass = inputvariant !== 'input-outline' ? `input-${inputvariant}` : '';
42353
42353
  const isOutline = inputvariant === 'input-outline';
42354
42354
  const errorId = `${alias}-error`;
42355
- return (React__default.createElement(Column, { span: width, newLine: props.newrow },
42355
+ return (React__default.createElement(Column, { span: width, newLine: newRow },
42356
42356
  React__default.createElement(p$5, { direction: "column", gap: "2", style: { width: '100%' } },
42357
- React__default.createElement(p$5, { align: "center", justify: "between", className: `rt-TextFieldRoot rt-r-size-2 rt-variant-surface ${variantClass} ${classname || ''}`, style: {
42357
+ React__default.createElement(p$5, { align: "center", justify: "between", className: `rt-TextFieldRoot rt-r-size-2 rt-variant-surface ${variantClass} ${className || ''}`, style: {
42358
42358
  width: '100%',
42359
42359
  height: 'var(--space-6)',
42360
42360
  boxShadow: (isOutline)
@@ -42378,7 +42378,7 @@ const StockInput = (_a) => {
42378
42378
  userSelect: 'none'
42379
42379
  } }, defaultvalue || React__default.createElement(FaChartLineExports.FaChartLine, null)),
42380
42380
  React__default.createElement(p$5, { align: "center", style: { flex: 1, height: '100%', justifyContent: 'flex-end' } },
42381
- React__default.createElement(IMaskInput, { id: `${alias}FormInput`, name: alias, "aria-describedby": `${alias}InputLabel`, mask: Number, scale: 2, readOnly: readonly,
42381
+ React__default.createElement(IMaskInput, { id: `${alias}FormInput`, name: alias, "aria-describedby": `${alias}InputLabel`, mask: Number, scale: 2, readOnly: readOnly,
42382
42382
  // @ts-expect-error: known library type definition gap
42383
42383
  signed: String(false), thousandsSeparator: ",", padFractionalZeros: true, normalizeZeros: true, radix: ".", mapToRadix: ['.'], value: priceField.value !== undefined && priceField.value !== null ? String(priceField.value) : '', unmask: true, onAccept: (val) => setFieldValue(alias, val), onBlur: () => setFieldTouched(alias, true), placeholder: placeholder || "0.00", style: {
42384
42384
  border: 'none',
@@ -42393,16 +42393,16 @@ const StockInput = (_a) => {
42393
42393
  fontFamily: 'var(--default-font-family)',
42394
42394
  }, inputMode: "decimal", autoComplete: "off" }))),
42395
42395
  React__default.createElement("div", null,
42396
- React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
42396
+ React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputLabel),
42397
42397
  "\u00A0",
42398
- props.ishinted && (React__default.createElement(e, { content: props.hinttext || "No hint available" },
42399
- React__default.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer", style: { display: 'flex' } },
42398
+ isHinted && (React__default.createElement(e, { content: hintText || "No hint available" },
42399
+ React__default.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer", style: { display: 'flex' } },
42400
42400
  React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
42401
- hasError && (React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errortext || `Required field`))))));
42401
+ hasError && (React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || `Required field`))))));
42402
42402
  };
42403
42403
 
42404
42404
  const RadioGroupInput = (_a) => {
42405
- var { inputtype = 'radio-outline', alias, readonly, width, inputlabel, placeholder = '', style, inputoptions, direction = 'column', columns, classname } = _a, props = __rest$1(_a, ["inputtype", "alias", "readonly", "width", "inputlabel", "placeholder", "style", "inputoptions", "direction", "columns", "classname"]);
42405
+ var { inputtype = 'radio-outline', alias, readOnly, width, inputLabel, placeholder = '', newRow, isHinted, hintText, hintUrl, errorText, style, inputOptions, direction = 'column', columns, className } = _a; __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "inputLabel", "placeholder", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "style", "inputOptions", "direction", "columns", "className"]);
42406
42406
  const { setFieldValue, setFieldTouched } = useFormikContext();
42407
42407
  const [field, meta] = useField(alias);
42408
42408
  const hasError = Boolean(meta.touched && meta.error);
@@ -42420,8 +42420,8 @@ const RadioGroupInput = (_a) => {
42420
42420
  });
42421
42421
  }
42422
42422
  }, [inputtype]);
42423
- return (React__default.createElement(Column, { span: width, newLine: props.newrow },
42424
- React__default.createElement(p$5, { direction: "column", gap: "2", width: "100%", ref: containerRef, style: style, className: classname },
42423
+ return (React__default.createElement(Column, { span: width, newLine: newRow },
42424
+ React__default.createElement(p$5, { direction: "column", gap: "2", width: "100%", ref: containerRef, style: style, className: className },
42425
42425
  inputtype === 'radio-neumorphic' && (React__default.createElement("style", { dangerouslySetInnerHTML: { __html: `
42426
42426
  /* Target the specific Radio Item button class */
42427
42427
  .neu-radio .rt-RadioGroupItem {
@@ -42456,11 +42456,11 @@ const RadioGroupInput = (_a) => {
42456
42456
  transform: none; /* Don't scale if pressed in */
42457
42457
  }
42458
42458
  ` } })),
42459
- React__default.createElement(I$1, { name: alias, id: `${alias}FormInput`, "aria-describedby": `${alias}InputLabel`, disabled: readonly, value: field.value, onValueChange: (val) => {
42459
+ React__default.createElement(I$1, { name: alias, id: `${alias}FormInput`, "aria-describedby": `${alias}InputLabel`, disabled: readOnly, value: field.value, onValueChange: (val) => {
42460
42460
  setFieldValue(alias, val);
42461
42461
  setTimeout(() => setFieldTouched(alias, true), 0);
42462
42462
  } },
42463
- React__default.createElement(o$6, { columns: columns || (direction === 'row' ? 'repeat(auto-fit, minmax(100px, 1fr))' : '1'), gap: "3", style: neuVars }, inputoptions.map((inputoption) => {
42463
+ React__default.createElement(o$6, { columns: columns || (direction === 'row' ? 'repeat(auto-fit, minmax(100px, 1fr))' : '1'), gap: "3", style: neuVars }, inputOptions.map((inputoption) => {
42464
42464
  const isChecked = String(field.value) === String(inputoption.optionvalue);
42465
42465
  return (React__default.createElement(p$5, { asChild: true, key: inputoption.optionvalue, align: "center", gap: "2" },
42466
42466
  React__default.createElement(p$d, { as: "label", size: "2", style: { cursor: 'pointer' } },
@@ -42471,20 +42471,20 @@ const RadioGroupInput = (_a) => {
42471
42471
  React__default.createElement("span", { style: { userSelect: 'none' } }, inputoption.text))));
42472
42472
  }))),
42473
42473
  React__default.createElement("div", null,
42474
- React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
42474
+ React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputLabel),
42475
42475
  "\u00A0",
42476
- props.ishinted ?
42476
+ isHinted ?
42477
42477
  React__default.createElement(React__default.Fragment, null,
42478
- React__default.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
42479
- React__default.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
42478
+ React__default.createElement(e, { content: hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
42479
+ React__default.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
42480
42480
  React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
42481
42481
  hasError ?
42482
42482
  React__default.createElement(React__default.Fragment, null,
42483
- React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errorText || `Required field`)) : null))));
42483
+ React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || `Required field`)) : null))));
42484
42484
  };
42485
42485
 
42486
42486
  const OptionSelect = (_a) => {
42487
- var { inputtype = 'dropdown-outline', alias, readonly, width, inputlabel, placeholder, value, inputoptions, style, newRow, ishinted, hinttext, hinturl, defaultvalue, errortext } = _a, props = __rest$1(_a, ["inputtype", "alias", "readonly", "width", "inputlabel", "placeholder", "value", "inputoptions", "style", "newRow", "ishinted", "hinttext", "hinturl", "defaultvalue", "errortext"]);
42487
+ var { inputtype = 'dropdown-outline', alias, readOnly, width, inputLabel, placeholder, value, inputOptions, style, newRow, isHinted, hintText, hintUrl, defaultvalue, errorText } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "inputLabel", "placeholder", "value", "inputOptions", "style", "newRow", "isHinted", "hintText", "hintUrl", "defaultvalue", "errorText"]);
42488
42488
  const triggerRef = useRef(null);
42489
42489
  const [neuVars, setNeuVars] = useState({});
42490
42490
  const { setFieldValue, setFieldTouched } = useFormikContext();
@@ -42567,7 +42567,7 @@ const OptionSelect = (_a) => {
42567
42567
  cursor: pointer;
42568
42568
  }
42569
42569
  ` } })),
42570
- React__default.createElement(C$1, { name: alias, disabled: readonly, value: field.value || "", onValueChange: (val) => {
42570
+ React__default.createElement(C$1, { name: alias, disabled: readOnly, value: field.value || "", onValueChange: (val) => {
42571
42571
  const finalVal = val === "__RESET__" ? "" : val;
42572
42572
  setFieldValue(alias, finalVal);
42573
42573
  setTimeout(() => setFieldTouched(alias, true), 0);
@@ -42582,24 +42582,24 @@ const OptionSelect = (_a) => {
42582
42582
  React__default.createElement(g, { position: "popper", sideOffset: 5, style: activeContentStyle },
42583
42583
  React__default.createElement(v, { value: "__RESET__", className: inputtype === 'dropdown-neumorphic' ? 'neu-select-item' : '', style: { color: 'var(--gray-10)', fontStyle: 'italic' } }, placeholder || "Select an option"),
42584
42584
  React__default.createElement(o$2, { size: "4", style: { margin: '4px 0', opacity: 0.5 } }),
42585
- 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: inputoption.optionvalue, className: inputtype === 'dropdown-neumorphic' ? 'neu-select-item' : '' },
42585
+ 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: inputoption.optionvalue, className: inputtype === 'dropdown-neumorphic' ? 'neu-select-item' : '' },
42586
42586
  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: inputoption.optionvalue, className: inputtype === 'dropdown-neumorphic' ? 'neu-select-item' : '' }, inputoption.text))))))),
42587
42587
  React__default.createElement("div", null,
42588
- React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
42588
+ React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputLabel),
42589
42589
  "\u00A0",
42590
- ishinted ?
42590
+ isHinted ?
42591
42591
  React__default.createElement(React__default.Fragment, null,
42592
- React__default.createElement(e, { content: hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
42593
- React__default.createElement("a", { href: hinturl || "", target: "_blank", rel: "noopener noreferrer" },
42592
+ React__default.createElement(e, { content: hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
42593
+ React__default.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
42594
42594
  React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
42595
42595
  hasError ?
42596
42596
  React__default.createElement(React__default.Fragment, null,
42597
- React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, errortext || meta.error || "Required field")) : null))));
42597
+ React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || meta.error || "Required field")) : null))));
42598
42598
  };
42599
42599
 
42600
42600
  const MultipleSelect = (_a) => {
42601
42601
  var _b;
42602
- var { inputtype = 'multiselect-outline', alias, readonly, width, inputlabel, placeholder = '', style, inputoptions, classname } = _a, props = __rest$1(_a, ["inputtype", "alias", "readonly", "width", "inputlabel", "placeholder", "style", "inputoptions", "classname"]);
42602
+ var { inputtype = 'multiselect-outline', alias, readOnly, width, inputLabel, placeholder = '', newRow, isHinted, hintText, hintUrl, errorText, style, inputOptions, className } = _a; __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "inputLabel", "placeholder", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "style", "inputOptions", "className"]);
42603
42603
  const { setFieldValue, setFieldTouched } = useFormikContext();
42604
42604
  const [field, meta] = useField(alias);
42605
42605
  const selectedValues = (Array.isArray(field.value) ? field.value : []);
@@ -42616,7 +42616,7 @@ const MultipleSelect = (_a) => {
42616
42616
  setTimeout(() => setFieldTouched(alias, true), 0);
42617
42617
  };
42618
42618
  const displayLabel = selectedValues.length > 0
42619
- ? inputoptions
42619
+ ? inputOptions
42620
42620
  .filter(inputoption => selectedValues.includes(inputoption.optionvalue))
42621
42621
  .map(inputoption => inputoption.text)
42622
42622
  .join(', ')
@@ -42655,12 +42655,12 @@ const MultipleSelect = (_a) => {
42655
42655
  : '6px 6px 12px var(--neu-shadow-dark), -6px -6px 12px var(--neu-shadow-light)', transition: 'all 0.2s ease' });
42656
42656
  const activeTrigger = inputtype === 'multiselect-material' ? materialTrigger :
42657
42657
  inputtype === 'multiselect-outline' ? outlineTrigger : Object.assign(Object.assign({}, neumorphicTrigger), neuVars);
42658
- return (React__default.createElement(Column, { span: width, newLine: props.newrow },
42658
+ return (React__default.createElement(Column, { span: width, newLine: newRow },
42659
42659
  React__default.createElement(p$5, { direction: "column", gap: "2", style: { width: '100%' } },
42660
42660
  React__default.createElement("input", { type: "hidden", name: alias, value: JSON.stringify(selectedValues) }),
42661
42661
  React__default.createElement(P$1, { onOpenChange: setIsOpen },
42662
42662
  React__default.createElement(s$1, null,
42663
- React__default.createElement("button", { id: `${alias}FormInput`, type: "button", ref: triggerRef, className: classname, style: Object.assign(Object.assign({}, activeTrigger), style), "aria-describedby": `${alias}InputLabel` },
42663
+ React__default.createElement("button", { id: `${alias}FormInput`, type: "button", ref: triggerRef, className: className, style: Object.assign(Object.assign({}, activeTrigger), style), "aria-describedby": `${alias}InputLabel` },
42664
42664
  React__default.createElement("span", { style: {
42665
42665
  overflow: 'hidden',
42666
42666
  textOverflow: 'ellipsis',
@@ -42670,7 +42670,7 @@ const MultipleSelect = (_a) => {
42670
42670
  React__default.createElement(i$3, { align: "start", sideOffset: 5, style: Object.assign({ width: (_b = triggerRef.current) === null || _b === void 0 ? void 0 : _b.offsetWidth, padding: 0, overflow: 'hidden', backgroundColor: inputtype === 'multiselect-neumorphic' ? 'var(--neu-bg)' : 'var(--color-panel-solid)' }, neuVars) },
42671
42671
  React__default.createElement(c$1, { type: "auto", scrollbars: "vertical", style: { maxHeight: 200 } },
42672
42672
  React__default.createElement(p$8, { p: "2" },
42673
- React__default.createElement(p$5, { direction: "column", gap: "1" }, inputoptions.map((inputoption) => {
42673
+ React__default.createElement(p$5, { direction: "column", gap: "1" }, inputOptions.map((inputoption) => {
42674
42674
  const isSelected = selectedValues.some((val) => String(val)
42675
42675
  === String(inputoption.optionvalue));
42676
42676
  return (React__default.createElement(p$5, { id: String(inputoption.optionid) || '', key: inputoption.optionid, align: "center", gap: "2", onClick: () => handleToggle(inputoption.optionvalue), style: {
@@ -42680,27 +42680,27 @@ const MultipleSelect = (_a) => {
42680
42680
  backgroundColor: isSelected ? 'var(--accent-a3)' : 'transparent',
42681
42681
  transition: 'background-color 0.1s'
42682
42682
  }, className: "multiselect-item" },
42683
- React__default.createElement(c$2, { disabled: readonly, checked: isSelected, style: { pointerEvents: 'none' } }),
42683
+ React__default.createElement(c$2, { disabled: readOnly, checked: isSelected, style: { pointerEvents: 'none' } }),
42684
42684
  React__default.createElement(p$d, { size: "2" }, inputoption.text)));
42685
42685
  })))))),
42686
42686
  React__default.createElement("div", null,
42687
- React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
42687
+ React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputLabel),
42688
42688
  "\u00A0",
42689
- props.ishinted ?
42689
+ isHinted ?
42690
42690
  React__default.createElement(React__default.Fragment, null,
42691
- React__default.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
42692
- React__default.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
42691
+ React__default.createElement(e, { content: hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
42692
+ React__default.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
42693
42693
  React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
42694
42694
  hasError ?
42695
42695
  React__default.createElement(React__default.Fragment, null,
42696
- React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errortext || `Required field`)) : null))));
42696
+ React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || `Required field`)) : null))));
42697
42697
  };
42698
42698
 
42699
42699
  const SliderInput = (_a) => {
42700
- var { inputtype = 'slider-outline', alias, readonly, width, inputlabel, placeholder = '', minvalue = 0, maxvalue = 100, stepvalue = 1, className, style } = _a, props = __rest$1(_a, ["inputtype", "alias", "readonly", "width", "inputlabel", "placeholder", "minvalue", "maxvalue", "stepvalue", "className", "style"]);
42700
+ var { inputtype = 'slider-outline', alias, readOnly, width, inputLabel, placeholder = '', newRow, isHinted, hintText, hintUrl, errorText, minValue = 0, maxValue = 100, stepValue = 1, className, style } = _a; __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "inputLabel", "placeholder", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "minValue", "maxValue", "stepValue", "className", "style"]);
42701
42701
  const { setFieldValue, setFieldTouched } = useFormikContext();
42702
42702
  const [field, meta] = useField(alias);
42703
- const fieldValue = Array.isArray(field.value) ? field.value : [field.value || minvalue];
42703
+ const fieldValue = Array.isArray(field.value) ? field.value : [field.value || minValue];
42704
42704
  const hasError = Boolean(meta.touched && meta.error);
42705
42705
  const containerRef = useRef(null);
42706
42706
  const [neuVars, setNeuVars] = useState({});
@@ -42716,7 +42716,7 @@ const SliderInput = (_a) => {
42716
42716
  });
42717
42717
  }
42718
42718
  }, [inputtype]);
42719
- return (React__default.createElement(Column, { span: width, newLine: props.newrow },
42719
+ return (React__default.createElement(Column, { span: width, newLine: newRow },
42720
42720
  React__default.createElement(p$5, { direction: "column", gap: "3", width: "100%", ref: containerRef, style: style, className: className },
42721
42721
  React__default.createElement(p$5, { justify: "between", align: "center" },
42722
42722
  React__default.createElement(p$d, { size: "2", color: "gray", style: { fontVariantNumeric: 'tabular-nums' } }, fieldValue[0])),
@@ -42777,27 +42777,26 @@ const SliderInput = (_a) => {
42777
42777
  box-shadow: none;
42778
42778
  }
42779
42779
  ` } }),
42780
- 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) => {
42781
- // Formik Implementation - For array, pass 'val' directly
42780
+ 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) => {
42782
42781
  setFieldValue(alias, val[0]);
42783
42782
  }, onValueCommit: () => {
42784
42783
  setFieldTouched(alias, true);
42785
42784
  }, className: inputtype === 'slider-neumorphic' ? 'neu-slider' : inputtype === 'slider-outline' ? 'outline-slider' : '', style: neuVars }),
42786
42785
  React__default.createElement("div", null,
42787
- React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
42786
+ React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputLabel),
42788
42787
  "\u00A0",
42789
- props.ishinted ?
42788
+ isHinted ?
42790
42789
  React__default.createElement(React__default.Fragment, null,
42791
- React__default.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
42792
- React__default.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
42790
+ React__default.createElement(e, { content: hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
42791
+ React__default.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
42793
42792
  React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
42794
42793
  hasError ?
42795
42794
  React__default.createElement(React__default.Fragment, null,
42796
- React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errortext || `Required field`)) : null))));
42795
+ React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || `Required field`)) : null))));
42797
42796
  };
42798
42797
 
42799
42798
  const RangeSlider = (_a) => {
42800
- var { inputtype = 'range-outline', alias, readonly, width, inputlabel, 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"]);
42799
+ var { inputtype = 'range-outline', alias, readOnly, width, inputLabel, placeholder = '', newRow, isHinted, hintText, hintUrl, errorText, minvalue = 0, maxvalue = 100, stepvalue = 1, minStepsBetweenThumbs = 0, className, style } = _a; __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "inputLabel", "placeholder", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "minvalue", "maxvalue", "stepvalue", "minStepsBetweenThumbs", "className", "style"]);
42801
42800
  const { setFieldValue, setFieldTouched } = useFormikContext();
42802
42801
  const [field, meta] = useField(alias);
42803
42802
  // Range Formik Logic
@@ -42823,7 +42822,7 @@ const RangeSlider = (_a) => {
42823
42822
  });
42824
42823
  }
42825
42824
  }, [inputtype]);
42826
- return (React__default.createElement(Column, { span: width, newLine: props.newrow },
42825
+ return (React__default.createElement(Column, { span: width, newLine: newRow },
42827
42826
  React__default.createElement(p$5, { direction: "column", gap: "3", width: "100%", ref: containerRef, style: style, className: className },
42828
42827
  React__default.createElement(p$5, { justify: "between", align: "center" },
42829
42828
  React__default.createElement(p$d, { size: "2", color: "gray", style: { fontVariantNumeric: 'tabular-nums' } }, fieldValue.join(' - '))),
@@ -42857,27 +42856,27 @@ const RangeSlider = (_a) => {
42857
42856
  background-color: white; border: 2px solid var(--accent-9); box-shadow: none;
42858
42857
  }
42859
42858
  ` } }),
42860
- React__default.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) => {
42859
+ React__default.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) => {
42861
42860
  // LOGIC SYNOPSIS:
42862
42861
  // If Range, set value as array.
42863
42862
  // If Slider, set value as first value.
42864
42863
  setFieldValue(alias, isRange ? val : val[0]);
42865
42864
  }, onValueCommit: () => setFieldTouched(alias, true), className: inputtype === 'range-neumorphic' ? 'neu-slider' : inputtype === 'range-outline' ? 'outline-slider' : '', style: neuVars }),
42866
42865
  React__default.createElement("div", null,
42867
- React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
42866
+ React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputLabel),
42868
42867
  "\u00A0",
42869
- props.ishinted ?
42868
+ isHinted ?
42870
42869
  React__default.createElement(React__default.Fragment, null,
42871
- React__default.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
42872
- React__default.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
42870
+ React__default.createElement(e, { content: hintText || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
42871
+ React__default.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer" },
42873
42872
  React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
42874
42873
  hasError ?
42875
42874
  React__default.createElement(React__default.Fragment, null,
42876
- React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errortext || `Required field`)) : null))));
42875
+ React__default.createElement("p", { id: errorId, className: 'core-input-label-error' }, errorText || `Required field`)) : null))));
42877
42876
  };
42878
42877
 
42879
42878
  const Toggle = (_a) => {
42880
- var { inputtype = 'toggle-neumorphic', alias, readonly, width, inputlabel, style, children, newrow, ishinted, hinttext, hinturl, icon = 'stack' } = _a, props = __rest$1(_a, ["inputtype", "alias", "readonly", "width", "inputlabel", "style", "children", "newrow", "ishinted", "hinttext", "hinturl", "icon"]);
42879
+ var { inputtype = 'toggle-neumorphic', alias, readOnly, width, inputLabel, style, children, newRow, isHinted, hintText, hintUrl, errorText, icon = 'stack' } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "inputLabel", "style", "children", "newRow", "isHinted", "hintText", "hintUrl", "errorText", "icon"]);
42881
42880
  const { setFieldValue, setFieldTouched } = useFormikContext();
42882
42881
  const [field, meta] = useField(alias);
42883
42882
  const hasError = Boolean(meta.touched && meta.error);
@@ -42912,59 +42911,62 @@ const Toggle = (_a) => {
42912
42911
  transition: 'all 0.1s ease',
42913
42912
  };
42914
42913
  const handleToggle = (val) => {
42915
- if (!readonly) {
42914
+ if (!readOnly) {
42916
42915
  setFieldValue(alias, val);
42917
42916
  setFieldTouched(alias, true);
42918
42917
  }
42919
42918
  };
42920
- return (React__default.createElement(Column, { span: width, newLine: newrow },
42919
+ // Determine Icon Color: Deep accent if Checked & Active, Grey otherwise
42920
+ const iconColor = field.value && !readOnly ? 'var(--accent-9)' : 'var(--gray-8)';
42921
+ return (React__default.createElement(Column, { span: width, newLine: newRow },
42921
42922
  React__default.createElement("div", { ref: containerRef, style: { width: '100%', display: 'flex', flexDirection: 'column', gap: '4px' } },
42922
- inputtype === 'toggle-neumorphic' ? (React__default.createElement("div", { className: "neu-toggle-wrapper", style: Object.assign(Object.assign({}, neuVars), { opacity: readonly ? 0.6 : 1, pointerEvents: readonly ? 'none' : 'auto' }), onClick: () => handleToggle(!field.value) },
42923
- React__default.createElement("style", { dangerouslySetInnerHTML: { __html: `
42924
- .neu-toggle-wrapper {
42925
- isolation: isolate;
42926
- position: relative;
42927
- height: 30px;
42928
- width: 60px;
42929
- border-radius: 15px;
42930
- overflow: hidden;
42931
- cursor: pointer;
42932
- background: var(--neu-bg);
42933
- box-shadow:
42934
- -8px -4px 8px 0px var(--neu-shadow-light),
42935
- 8px 4px 12px 0px var(--neu-shadow-dark),
42936
- 4px 4px 4px 0px var(--neu-shadow-dark) inset,
42937
- -4px -4px 4px 0px var(--neu-shadow-light) inset;
42938
- }
42939
-
42940
- /* The Input is hidden visually but keeps state for CSS selector */
42941
- .neu-toggle-state {
42942
- display: none;
42943
- }
42923
+ inputtype === 'toggle-neumorphic' ? (React__default.createElement("div", { style: { display: 'flex', alignItems: 'center', gap: '12px' } },
42924
+ React__default.createElement("div", { className: "neu-toggle-wrapper", style: Object.assign(Object.assign({}, neuVars), { opacity: readOnly ? 0.6 : 1, pointerEvents: readOnly ? 'none' : 'auto' }), onClick: () => handleToggle(!field.value) },
42925
+ React__default.createElement("style", { dangerouslySetInnerHTML: { __html: `
42926
+ .neu-toggle-wrapper {
42927
+ isolation: isolate;
42928
+ position: relative;
42929
+ height: 30px;
42930
+ width: 60px;
42931
+ border-radius: 15px;
42932
+ overflow: hidden;
42933
+ cursor: pointer;
42934
+ background: var(--neu-bg);
42935
+ box-shadow:
42936
+ -8px -4px 8px 0px var(--neu-shadow-light),
42937
+ 8px 4px 12px 0px var(--neu-shadow-dark),
42938
+ 4px 4px 4px 0px var(--neu-shadow-dark) inset,
42939
+ -4px -4px 4px 0px var(--neu-shadow-light) inset;
42940
+ }
42941
+
42942
+ .neu-toggle-state {
42943
+ display: none;
42944
+ }
42944
42945
 
42945
- .neu-indicator {
42946
- height: 100%;
42947
- width: 200%;
42948
- background: var(--neu-bg);
42949
- border-radius: 15px;
42950
- transform: translate3d(-75%, 0, 0);
42951
- transition: transform 0.4s cubic-bezier(0.85, 0.05, 0.18, 1.35);
42952
- box-shadow:
42953
- -8px -4px 8px 0px var(--neu-shadow-light),
42954
- 8px 4px 12px 0px var(--neu-shadow-dark);
42955
- }
42946
+ .neu-indicator {
42947
+ height: 100%;
42948
+ width: 200%;
42949
+ background: var(--neu-bg);
42950
+ border-radius: 15px;
42951
+ transform: translate3d(-75%, 0, 0);
42952
+ transition: transform 0.4s cubic-bezier(0.85, 0.05, 0.18, 1.35);
42953
+ box-shadow:
42954
+ -8px -4px 8px 0px var(--neu-shadow-light),
42955
+ 8px 4px 12px 0px var(--neu-shadow-dark);
42956
+ }
42956
42957
 
42957
- /* Sibling selector triggers animation when checked */
42958
- .neu-toggle-state:checked ~ .neu-indicator {
42959
- transform: translate3d(25%, 0, 0);
42960
- }
42961
- ` } }),
42962
- React__default.createElement("input", { className: "neu-toggle-state", type: "checkbox", checked: !!field.value, readOnly: true }),
42963
- React__default.createElement("div", { className: "neu-indicator" }),
42964
- React__default.createElement(Icon, { name: icon }))) : (React__default.createElement(Root$1, { pressed: field.value, onPressedChange: handleToggle, name: alias, disabled: readonly, id: `${alias}FormInput`, "aria-describedby": `${alias}InputLabel`, asChild: true },
42965
- React__default.createElement(o$a, Object.assign({ disabled: readonly }, props, { className: `design-toggle ${inputtype} ${props.className || ''}`, style: Object.assign(Object.assign(Object.assign(Object.assign({}, style), (inputtype === 'toggle' ? materialStyle : {})), (inputtype === 'toggle-material' ? materialStyle : {})), (inputtype === 'toggle-outline' ? outlineStyle : {})), type: "button" }),
42958
+ .neu-toggle-state:checked ~ .neu-indicator {
42959
+ transform: translate3d(25%, 0, 0);
42960
+ }
42961
+ ` } }),
42962
+ React__default.createElement("input", { className: "neu-toggle-state", type: "checkbox", checked: !!field.value, readOnly: true }),
42963
+ React__default.createElement("div", { className: "neu-indicator" })),
42964
+ React__default.createElement(Icon, { name: icon, height: "20", width: "20", color: iconColor, style: {
42965
+ transition: 'color 0.3s ease',
42966
+ opacity: readOnly ? 0.5 : 1
42967
+ } }))) : (React__default.createElement(Root$1, { pressed: field.value, onPressedChange: handleToggle, name: alias, disabled: readOnly, id: `${alias}FormInput`, "aria-describedby": `${alias}InputLabel`, asChild: true },
42968
+ React__default.createElement(o$a, Object.assign({ disabled: readOnly }, props, { className: `design-toggle ${inputtype} ${props.className || ''}`, style: Object.assign(Object.assign(Object.assign(Object.assign({}, style), (inputtype === 'toggle' ? materialStyle : {})), (inputtype === 'toggle-material' ? materialStyle : {})), (inputtype === 'toggle-outline' ? outlineStyle : {})), type: "button" }),
42966
42969
  React__default.createElement("style", { dangerouslySetInnerHTML: { __html: `
42967
- /* Material States */
42968
42970
  .design-toggle.toggle-material[data-state='on'] {
42969
42971
  background-color: var(--accent-9);
42970
42972
  color: white;
@@ -42974,7 +42976,6 @@ const Toggle = (_a) => {
42974
42976
  background-color: var(--gray-3);
42975
42977
  color: var(--gray-11);
42976
42978
  }
42977
- /* Outline States */
42978
42979
  .design-toggle.toggle-outline[data-state='on'] {
42979
42980
  border: 2px solid var(--accent-9);
42980
42981
  color: var(--accent-9);
@@ -42987,15 +42988,15 @@ const Toggle = (_a) => {
42987
42988
  ` } }),
42988
42989
  children))),
42989
42990
  React__default.createElement("div", null,
42990
- inputlabel && (React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel)),
42991
+ inputLabel && (React__default.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputLabel)),
42991
42992
  "\u00A0",
42992
- ishinted && (React__default.createElement(e, { content: hinttext || "No hint available" },
42993
- React__default.createElement("a", { href: hinturl || "", target: "_blank", rel: "noopener noreferrer", style: { marginLeft: 6 } },
42993
+ isHinted && (React__default.createElement(e, { content: hintText || "No hint available" },
42994
+ React__default.createElement("a", { href: hintUrl || "", target: "_blank", rel: "noopener noreferrer", style: { marginLeft: 6 } },
42994
42995
  React__default.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
42995
- hasError && (React__default.createElement(p$d, { size: "1", color: "red", style: { display: 'block', marginTop: 2 } }, props.errortext || `Required field`))))));
42996
+ hasError && (React__default.createElement(p$d, { size: "1", color: "red", style: { display: 'block', marginTop: 2 } }, errorText || `Required field`))))));
42996
42997
  };
42997
42998
 
42998
- const SectionTitle = ({ title, width = 12, newRow = true, size = "5", subsize = "2", subtitle, align = "left", withSeparator = true, className, backgroundcolor, icon }) => {
42999
+ const SectionTitle = ({ title, width = 12, newRow = true, size = "5", subsize = "2", subTitle, align = "left", letterSpacing = "0.13em", withSeparator = true, className, backgroundColor, icon, titleColor, subtitleColor }) => {
42999
43000
  const justifyMap = {
43000
43001
  left: 'start',
43001
43002
  center: 'center',
@@ -43004,19 +43005,25 @@ const SectionTitle = ({ title, width = 12, newRow = true, size = "5", subsize =
43004
43005
  return (React__default.createElement(Column, { span: width, newLine: newRow },
43005
43006
  React__default.createElement(p$5, { direction: "column", gap: "2", className: className, style: {
43006
43007
  width: '100%',
43008
+ boxSizing: 'border-box',
43007
43009
  marginBottom: 'var(--space-2)',
43008
43010
  textAlign: align,
43009
- backgroundColor: backgroundcolor || 'transparent',
43010
- padding: backgroundcolor ? 'var(--space-3) var(--space-4)' : '0',
43011
- borderRadius: backgroundcolor ? 'var(--radius-3)' : '0',
43011
+ backgroundColor: backgroundColor || 'transparent',
43012
+ padding: backgroundColor ? 'var(--space-3) var(--space-4)' : '0',
43013
+ borderRadius: backgroundColor ? 'var(--radius-3)' : '0',
43012
43014
  } },
43013
43015
  React__default.createElement(p$5, { align: "center", justify: justifyMap[align], gap: "3", style: { width: '100%' } },
43014
- icon && (React__default.createElement(p$5, { align: "center", justify: "center", style: { color: 'var(--gray-12)' } }, icon)),
43016
+ icon && (React__default.createElement(p$5, { align: "center", justify: "center", style: { color: titleColor || 'var(--gray-12)' } }, icon)),
43015
43017
  React__default.createElement(r$g, { size: size, weight: "bold", style: {
43016
- color: 'var(--gray-12)',
43017
- lineHeight: '1.2'
43018
+ color: titleColor || 'var(--gray-12)',
43019
+ lineHeight: '1.2',
43020
+ letterSpacing: `${letterSpacing}`
43018
43021
  } }, title)),
43019
- subtitle && (React__default.createElement(p$d, { size: subsize, color: "gray", style: { maxWidth: '80%', margin: align === 'center' ? '0 auto' : undefined } }, subtitle)),
43022
+ subTitle && (React__default.createElement(p$d, { size: subsize, style: {
43023
+ color: subtitleColor || 'var(--gray-11)',
43024
+ maxWidth: '80%',
43025
+ margin: align === 'center' ? '0 auto' : undefined
43026
+ } }, subTitle)),
43020
43027
  withSeparator && (React__default.createElement(o$2, { size: "4", style: {
43021
43028
  width: '100%',
43022
43029
  marginTop: '4px',