@emeraldemperaur/vector-sigma 1.4.8 → 1.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.cjs +177 -168
- package/lib/index.esm.js +177 -168
- package/lib/types/components/avatar/avatar.d.ts +5 -5
- package/lib/types/components/button/button.d.ts +6 -6
- package/lib/types/components/checkbox/checkbox.d.ts +5 -5
- package/lib/types/components/conditional/conditional.d.ts +5 -5
- package/lib/types/components/datepicker/datepicker.d.ts +5 -5
- package/lib/types/components/daterangepicker/daterangepicker.d.ts +9 -9
- package/lib/types/components/datetimepicker/datetimepicker.d.ts +8 -8
- package/lib/types/components/dropdown/dropdown.d.ts +8 -8
- package/lib/types/components/file/file.d.ts +9 -9
- package/lib/types/components/file/filemultiple.d.ts +9 -9
- package/lib/types/components/image/image.d.ts +3 -3
- package/lib/types/components/input/input.d.ts +9 -9
- package/lib/types/components/input/passwordInput.d.ts +1 -1
- package/lib/types/components/input/phoneInput.d.ts +1 -1
- package/lib/types/components/input/uuidInput.d.ts +9 -9
- package/lib/types/components/input/xCreditCardInput.d.ts +1 -1
- package/lib/types/components/inputcurrency/inputcurrency.d.ts +9 -9
- package/lib/types/components/inputcurrency/stockInput.d.ts +10 -10
- package/lib/types/components/radio/radio.d.ts +9 -9
- package/lib/types/components/select/select.d.ts +6 -6
- package/lib/types/components/selectmultiple/selectmultiple.d.ts +10 -10
- package/lib/types/components/slider/range.d.ts +6 -6
- package/lib/types/components/slider/slider.d.ts +8 -8
- package/lib/types/components/toggle/toggle.d.ts +8 -8
- package/lib/types/components/xtitle/xtitle.d.ts +3 -1
- package/package.json +1 -1
package/lib/index.cjs
CHANGED
|
@@ -12242,14 +12242,14 @@ const AvatarInput = (_a) => {
|
|
|
12242
12242
|
React.createElement("div", null,
|
|
12243
12243
|
inputlabel && (React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", color: 'gray', highContrast: inputtype !== 'avatar-neumorphic', htmlFor: alias }, inputlabel)),
|
|
12244
12244
|
"\u00A0",
|
|
12245
|
-
props.
|
|
12245
|
+
props.ishinted ?
|
|
12246
12246
|
React.createElement(React.Fragment, null,
|
|
12247
|
-
React.createElement(e, { content: props.
|
|
12248
|
-
React.createElement("a", { href: props.
|
|
12247
|
+
React.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
|
|
12248
|
+
React.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
|
|
12249
12249
|
React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
|
|
12250
12250
|
hasError ?
|
|
12251
12251
|
React.createElement(React.Fragment, null,
|
|
12252
|
-
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.
|
|
12252
|
+
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errortext || `Required field`)) : null))));
|
|
12253
12253
|
};
|
|
12254
12254
|
|
|
12255
12255
|
/**
|
|
@@ -12318,7 +12318,7 @@ const formatBytes = (bytes, decimals = 2) => {
|
|
|
12318
12318
|
};
|
|
12319
12319
|
|
|
12320
12320
|
const ButtonInput = (_a) => {
|
|
12321
|
-
var { inputtype = 'button-outline', type = 'button', inputlabel, alias,
|
|
12321
|
+
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"]);
|
|
12322
12322
|
const buttonRef = React.useRef(null);
|
|
12323
12323
|
const [neumorphicVars, setNeumorphicVars] = React.useState({});
|
|
12324
12324
|
const [bgColor, setBgColor] = React.useState('#ffffff');
|
|
@@ -12402,14 +12402,14 @@ const ButtonInput = (_a) => {
|
|
|
12402
12402
|
transform: translateY(-2px);
|
|
12403
12403
|
}
|
|
12404
12404
|
` } })),
|
|
12405
|
-
React.createElement(o$a, Object.assign({ name: alias, disabled:
|
|
12405
|
+
React.createElement(o$a, Object.assign({ name: alias, disabled: readonly, id: `${alias}FormInput`, "aria-describedby": `${alias}InputLabel`, ref: buttonRef, onClick: handler, type: type }, props, getVariantProps()),
|
|
12406
12406
|
props.icon && (React.createElement("span", { style: { display: 'flex', alignItems: 'center' } }, props.icon)),
|
|
12407
12407
|
children),
|
|
12408
12408
|
React.createElement("br", null),
|
|
12409
|
-
React.createElement("div", null, props.
|
|
12409
|
+
React.createElement("div", null, props.ishinted ?
|
|
12410
12410
|
React.createElement(React.Fragment, null,
|
|
12411
|
-
React.createElement(e, { content: props.
|
|
12412
|
-
React.createElement("a", { href: props.
|
|
12411
|
+
React.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
|
|
12412
|
+
React.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
|
|
12413
12413
|
React.createElement(Icon, { name: 'questionmarkcircled', height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null))));
|
|
12414
12414
|
};
|
|
12415
12415
|
|
|
@@ -12482,14 +12482,14 @@ const CheckboxGroupInput = (_a) => {
|
|
|
12482
12482
|
React.createElement("div", null,
|
|
12483
12483
|
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
|
|
12484
12484
|
"\u00A0",
|
|
12485
|
-
props.
|
|
12485
|
+
props.ishinted ?
|
|
12486
12486
|
React.createElement(React.Fragment, null,
|
|
12487
|
-
React.createElement(e, { content: props.
|
|
12488
|
-
React.createElement("a", { href: props.
|
|
12487
|
+
React.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
|
|
12488
|
+
React.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
|
|
12489
12489
|
React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
|
|
12490
12490
|
hasError ?
|
|
12491
12491
|
React.createElement(React.Fragment, null,
|
|
12492
|
-
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.
|
|
12492
|
+
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errortext || "Required field")) : null))));
|
|
12493
12493
|
};
|
|
12494
12494
|
|
|
12495
12495
|
const animationStyles = {
|
|
@@ -12562,14 +12562,14 @@ const ConditionalTrigger = (_a) => {
|
|
|
12562
12562
|
React.createElement("div", null,
|
|
12563
12563
|
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias, style: { cursor: 'pointer' } }, inputlabel),
|
|
12564
12564
|
"\u00A0",
|
|
12565
|
-
props.
|
|
12565
|
+
props.ishinted ?
|
|
12566
12566
|
React.createElement(React.Fragment, null,
|
|
12567
|
-
React.createElement(e, { content: props.
|
|
12568
|
-
React.createElement("a", { href: props.
|
|
12567
|
+
React.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
|
|
12568
|
+
React.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
|
|
12569
12569
|
React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
|
|
12570
12570
|
hasError ?
|
|
12571
12571
|
React.createElement(React.Fragment, null,
|
|
12572
|
-
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, typeof meta.error === 'string' ? React.createElement(React.Fragment, null, props.
|
|
12572
|
+
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, typeof meta.error === 'string' ? React.createElement(React.Fragment, null, props.errortext || "Required field")
|
|
12573
12573
|
: 'Invalid file selection')) : null))));
|
|
12574
12574
|
};
|
|
12575
12575
|
|
|
@@ -21049,19 +21049,19 @@ const DatePicker = (_a) => {
|
|
|
21049
21049
|
React.createElement("div", null,
|
|
21050
21050
|
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
|
|
21051
21051
|
"\u00A0",
|
|
21052
|
-
props.
|
|
21052
|
+
props.ishinted ?
|
|
21053
21053
|
React.createElement(React.Fragment, null,
|
|
21054
|
-
React.createElement(e, { content: props.
|
|
21055
|
-
React.createElement("a", { href: props.
|
|
21054
|
+
React.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
|
|
21055
|
+
React.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
|
|
21056
21056
|
React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
|
|
21057
21057
|
hasError ?
|
|
21058
21058
|
React.createElement(React.Fragment, null,
|
|
21059
|
-
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.
|
|
21059
|
+
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errortext || (meta.error || "Required field"))) : null))));
|
|
21060
21060
|
};
|
|
21061
21061
|
|
|
21062
21062
|
const DateRangePicker = (_a) => {
|
|
21063
21063
|
var _b, _c;
|
|
21064
|
-
var { inputtype = 'daterangepicker-outline', alias,
|
|
21064
|
+
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"]);
|
|
21065
21065
|
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
21066
21066
|
const [field, meta] = formik.useField(alias);
|
|
21067
21067
|
const hasError = Boolean(meta.touched && meta.error);
|
|
@@ -21131,8 +21131,8 @@ const DateRangePicker = (_a) => {
|
|
|
21131
21131
|
// Material
|
|
21132
21132
|
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)' });
|
|
21133
21133
|
}, [inputtype, neuVars]);
|
|
21134
|
-
return (React.createElement(Column, { span: width, newLine: props.
|
|
21135
|
-
React.createElement(p$5, { direction: "column", gap: "2", width: "100%", ref: containerRef, style: style, className:
|
|
21134
|
+
return (React.createElement(Column, { span: width, newLine: props.newrow },
|
|
21135
|
+
React.createElement(p$5, { direction: "column", gap: "2", width: "100%", ref: containerRef, style: style, className: classname },
|
|
21136
21136
|
React.createElement("input", { type: "hidden", name: alias, value: JSON.stringify({
|
|
21137
21137
|
from: (_b = selectedRange.from) === null || _b === void 0 ? void 0 : _b.toISOString(),
|
|
21138
21138
|
to: (_c = selectedRange.to) === null || _c === void 0 ? void 0 : _c.toISOString()
|
|
@@ -21237,15 +21237,15 @@ const DateRangePicker = (_a) => {
|
|
|
21237
21237
|
` } }),
|
|
21238
21238
|
React.createElement(P$1, { open: isOpen, onOpenChange: setIsOpen },
|
|
21239
21239
|
React.createElement(s$1, null,
|
|
21240
|
-
React.createElement(u, { variant: "surface", style: Object.assign({ cursor: 'pointer', height: inputtype === 'daterangepicker-neumorphic' ? '40px' : '32px' }, activeInputStyle), onClick: () => !
|
|
21240
|
+
React.createElement(u, { variant: "surface", style: Object.assign({ cursor: 'pointer', height: inputtype === 'daterangepicker-neumorphic' ? '40px' : '32px' }, activeInputStyle), onClick: () => !readonly && setIsOpen(true) },
|
|
21241
21241
|
React.createElement(c, null,
|
|
21242
21242
|
React.createElement(Icon, { name: 'calendar', height: "16", width: "16", style: { color: 'var(--gray-10)' } })),
|
|
21243
|
-
React.createElement("input", { id: inputId, "aria-describedby": hasError ? errorId : `${alias}InputLabel`, readOnly: true, disabled:
|
|
21243
|
+
React.createElement("input", { id: inputId, "aria-describedby": hasError ? errorId : `${alias}InputLabel`, readOnly: true, disabled: readonly, value: displayText, placeholder: placeholder, style: {
|
|
21244
21244
|
backgroundColor: 'transparent',
|
|
21245
21245
|
border: 'none',
|
|
21246
21246
|
outline: 'none',
|
|
21247
21247
|
width: '100%',
|
|
21248
|
-
cursor:
|
|
21248
|
+
cursor: readonly ? 'default' : 'pointer',
|
|
21249
21249
|
color: 'inherit',
|
|
21250
21250
|
fontFamily: 'inherit',
|
|
21251
21251
|
fontSize: 'var(--font-size-2)',
|
|
@@ -21260,7 +21260,7 @@ const DateRangePicker = (_a) => {
|
|
|
21260
21260
|
setIsOpen(false);
|
|
21261
21261
|
}
|
|
21262
21262
|
}, disabled: [
|
|
21263
|
-
...(
|
|
21263
|
+
...(readonly ? [{ from: new Date(1900, 0, 1), to: new Date(2100, 0, 1) }] : []),
|
|
21264
21264
|
{ before: parsedMin || new Date(1900, 0, 1) },
|
|
21265
21265
|
{ after: parsedMax || new Date(2100, 0, 1) }
|
|
21266
21266
|
], components: {
|
|
@@ -21274,18 +21274,18 @@ const DateRangePicker = (_a) => {
|
|
|
21274
21274
|
React.createElement("div", null,
|
|
21275
21275
|
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
|
|
21276
21276
|
"\u00A0",
|
|
21277
|
-
props.
|
|
21277
|
+
props.ishinted ?
|
|
21278
21278
|
React.createElement(React.Fragment, null,
|
|
21279
|
-
React.createElement(e, { content: props.
|
|
21280
|
-
React.createElement("a", { href: props.
|
|
21279
|
+
React.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
|
|
21280
|
+
React.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
|
|
21281
21281
|
React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
|
|
21282
21282
|
hasError ?
|
|
21283
21283
|
React.createElement(React.Fragment, null,
|
|
21284
|
-
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.
|
|
21284
|
+
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errortext || (meta.error || "Required field"))) : null))));
|
|
21285
21285
|
};
|
|
21286
21286
|
|
|
21287
21287
|
const DateTimePicker = (_a) => {
|
|
21288
|
-
var { inputtype = 'datetimepicker-outline', alias, readonly, width, inputlabel, placeholder = 'Pick date & time', value, minvalue, maxvalue,
|
|
21288
|
+
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"]);
|
|
21289
21289
|
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
21290
21290
|
const [field, meta] = formik.useField(alias);
|
|
21291
21291
|
const hasError = Boolean(meta.touched && meta.error);
|
|
@@ -21366,8 +21366,8 @@ const DateTimePicker = (_a) => {
|
|
|
21366
21366
|
// Material
|
|
21367
21367
|
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)' });
|
|
21368
21368
|
}, [inputtype, neuVars]);
|
|
21369
|
-
return (React.createElement(Column, { span: width, newLine: props.
|
|
21370
|
-
React.createElement(p$5, { direction: "column", gap: "2", width: "100%", ref: containerRef, style: style, className:
|
|
21369
|
+
return (React.createElement(Column, { span: width, newLine: props.newrow },
|
|
21370
|
+
React.createElement(p$5, { direction: "column", gap: "2", width: "100%", ref: containerRef, style: style, className: classname },
|
|
21371
21371
|
React.createElement("input", { type: "hidden", name: alias, value: selectedDate ? selectedDate.toISOString() : '' }),
|
|
21372
21372
|
React.createElement("style", { dangerouslySetInnerHTML: { __html: `
|
|
21373
21373
|
/* Reset & Layout */
|
|
@@ -21490,18 +21490,18 @@ const DateTimePicker = (_a) => {
|
|
|
21490
21490
|
React.createElement("div", null,
|
|
21491
21491
|
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
|
|
21492
21492
|
"\u00A0",
|
|
21493
|
-
props.
|
|
21493
|
+
props.ishinted ?
|
|
21494
21494
|
React.createElement(React.Fragment, null,
|
|
21495
|
-
React.createElement(e, { content: props.
|
|
21496
|
-
React.createElement("a", { href: props.
|
|
21495
|
+
React.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
|
|
21496
|
+
React.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
|
|
21497
21497
|
React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
|
|
21498
21498
|
hasError ?
|
|
21499
21499
|
React.createElement(React.Fragment, null,
|
|
21500
|
-
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.
|
|
21500
|
+
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errortext || (meta.error || "Required field"))) : null))));
|
|
21501
21501
|
};
|
|
21502
21502
|
|
|
21503
21503
|
const Dropdown = (_a) => {
|
|
21504
|
-
var { inputtype = 'dropdown-outline', alias, readonly, width, inputlabel, placeholder, value, inputoptions, style,
|
|
21504
|
+
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"]);
|
|
21505
21505
|
const triggerRef = React.useRef(null);
|
|
21506
21506
|
const [neuVars, setNeuVars] = React.useState({});
|
|
21507
21507
|
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
@@ -21575,7 +21575,7 @@ const Dropdown = (_a) => {
|
|
|
21575
21575
|
inputtype === 'dropdown-material' ? materialContent :
|
|
21576
21576
|
inputtype === 'dropdown-outline' ? outlineContent : Object.assign(Object.assign({}, neumorphicContent), neuVars);
|
|
21577
21577
|
return (React.createElement(React.Fragment, null,
|
|
21578
|
-
React.createElement(Column, { span: width, newLine:
|
|
21578
|
+
React.createElement(Column, { span: width, newLine: newrow },
|
|
21579
21579
|
React.createElement(p$5, { direction: "column", gap: "2", style: { width: '100%' } },
|
|
21580
21580
|
inputtype === 'dropdown-neumorphic' && (React.createElement("style", { dangerouslySetInnerHTML: { __html: `
|
|
21581
21581
|
.neu-select-trigger[data-state='open'] {
|
|
@@ -21598,7 +21598,7 @@ const Dropdown = (_a) => {
|
|
|
21598
21598
|
setFieldTouched(alias, true);
|
|
21599
21599
|
}
|
|
21600
21600
|
} },
|
|
21601
|
-
React.createElement(u$1, Object.assign({ id: `${alias}FormInput`, ref: triggerRef, variant: "ghost", placeholder: placeholder || "Select an option", className: `${inputtype === 'dropdown-neumorphic' ? 'neu-select-trigger' : ''} ${props.
|
|
21601
|
+
React.createElement(u$1, Object.assign({ id: `${alias}FormInput`, ref: triggerRef, variant: "ghost", placeholder: placeholder || "Select an option", className: `${inputtype === 'dropdown-neumorphic' ? 'neu-select-trigger' : ''} ${props.classname || ''}`, style: Object.assign(Object.assign({}, activeTriggerStyle), style) }, props)),
|
|
21602
21602
|
React.createElement(g, { position: "popper", sideOffset: 5, style: activeContentStyle },
|
|
21603
21603
|
React.createElement(v, { value: "__RESET__", className: inputtype === 'dropdown-neumorphic' ? 'neu-select-item' : '', style: { color: 'var(--gray-10)', fontStyle: 'italic' } }, placeholder || "Select an option"),
|
|
21604
21604
|
React.createElement(o$2, { size: "4", style: { margin: '4px 0', opacity: 0.5 } }),
|
|
@@ -21610,14 +21610,14 @@ const Dropdown = (_a) => {
|
|
|
21610
21610
|
React.createElement("div", null,
|
|
21611
21611
|
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
|
|
21612
21612
|
"\u00A0",
|
|
21613
|
-
|
|
21613
|
+
ishinted ?
|
|
21614
21614
|
React.createElement(React.Fragment, null,
|
|
21615
|
-
React.createElement(e, { content:
|
|
21616
|
-
React.createElement("a", { href:
|
|
21615
|
+
React.createElement(e, { content: hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
|
|
21616
|
+
React.createElement("a", { href: hinturl || "", target: "_blank", rel: "noopener noreferrer" },
|
|
21617
21617
|
React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
|
|
21618
21618
|
hasError ?
|
|
21619
21619
|
React.createElement(React.Fragment, null,
|
|
21620
|
-
React.createElement("p", { id: errorId, className: 'core-input-label-error' },
|
|
21620
|
+
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, errortext || meta.error || "Required field")) : null)))));
|
|
21621
21621
|
};
|
|
21622
21622
|
|
|
21623
21623
|
const getFileIcon$1 = (type, name) => {
|
|
@@ -21635,7 +21635,7 @@ const getFileIcon$1 = (type, name) => {
|
|
|
21635
21635
|
};
|
|
21636
21636
|
const File$1 = (_a) => {
|
|
21637
21637
|
var _b;
|
|
21638
|
-
var { inputtype = 'fileinput-outline', alias, readonly, width, inputlabel, placeholder = '', preview = false,
|
|
21638
|
+
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"]);
|
|
21639
21639
|
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
21640
21640
|
const [field, meta] = formik.useField(alias);
|
|
21641
21641
|
const selectedFile = field.value;
|
|
@@ -21705,8 +21705,8 @@ const File$1 = (_a) => {
|
|
|
21705
21705
|
: '6px 6px 12px var(--neu-shadow-dark), -6px -6px 12px var(--neu-shadow-light)', border: 'none' }), neuVars);
|
|
21706
21706
|
const activeStyle = inputtype === 'fileinput-neumorphic' ? neumorphicTrigger :
|
|
21707
21707
|
inputtype === 'fileinput-outline' ? outlineTrigger : materialTrigger;
|
|
21708
|
-
return (React.createElement(Column, { span: width, newLine: props.
|
|
21709
|
-
React.createElement(p$5, { direction: "column", gap: "2", width: "100%", ref: containerRef, style: style, className:
|
|
21708
|
+
return (React.createElement(Column, { span: width, newLine: props.newrow },
|
|
21709
|
+
React.createElement(p$5, { direction: "column", gap: "2", width: "100%", ref: containerRef, style: style, className: classname },
|
|
21710
21710
|
React.createElement("input", { ref: inputRef, id: inputId, name: alias, readOnly: readonly, type: "file", accept: ACCEPTED_FORMATS, onChange: handleFileChange, style: { display: 'none' }, "aria-describedby": hasError ? errorId : undefined }),
|
|
21711
21711
|
React.createElement("div", { onClick: () => { var _a; return (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.click(); }, style: activeStyle, onMouseEnter: (e) => {
|
|
21712
21712
|
if (inputtype === 'fileinput-outline')
|
|
@@ -21741,14 +21741,14 @@ const File$1 = (_a) => {
|
|
|
21741
21741
|
React.createElement("div", null,
|
|
21742
21742
|
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
|
|
21743
21743
|
"\u00A0",
|
|
21744
|
-
props.
|
|
21744
|
+
props.ishinted ?
|
|
21745
21745
|
React.createElement(React.Fragment, null,
|
|
21746
|
-
React.createElement(e, { content: props.
|
|
21747
|
-
React.createElement("a", { href: props.
|
|
21746
|
+
React.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
|
|
21747
|
+
React.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
|
|
21748
21748
|
React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
|
|
21749
21749
|
hasError ?
|
|
21750
21750
|
React.createElement(React.Fragment, null,
|
|
21751
|
-
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.
|
|
21751
|
+
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errortext || "Required field")) : null))));
|
|
21752
21752
|
};
|
|
21753
21753
|
|
|
21754
21754
|
const getFileIcon = (fileOrUrl) => {
|
|
@@ -21798,7 +21798,7 @@ const styles = {
|
|
|
21798
21798
|
}
|
|
21799
21799
|
};
|
|
21800
21800
|
const FileMultiple = (_a) => {
|
|
21801
|
-
var { inputtype = 'filemultiple-outline', alias, readonly, width, inputlabel, placeholder = '', preview = true,
|
|
21801
|
+
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"]);
|
|
21802
21802
|
const [field, meta] = formik.useField(alias);
|
|
21803
21803
|
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
21804
21804
|
const inputRef = React.useRef(null);
|
|
@@ -21847,8 +21847,8 @@ const FileMultiple = (_a) => {
|
|
|
21847
21847
|
};
|
|
21848
21848
|
const isNeumorphic = inputtype === 'filemultiple-neumorphic';
|
|
21849
21849
|
const hasError = meta.touched && meta.error;
|
|
21850
|
-
return (React.createElement(Column, { span: width, newLine: props.
|
|
21851
|
-
React.createElement(p$8, { className:
|
|
21850
|
+
return (React.createElement(Column, { span: width, newLine: props.newrow },
|
|
21851
|
+
React.createElement(p$8, { className: classname, style: style },
|
|
21852
21852
|
React.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' }) },
|
|
21853
21853
|
React.createElement(p$5, { align: "center", gap: "4" },
|
|
21854
21854
|
React.createElement(p$8, { style: {
|
|
@@ -21909,15 +21909,15 @@ const FileMultiple = (_a) => {
|
|
|
21909
21909
|
React.createElement("br", null),
|
|
21910
21910
|
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
|
|
21911
21911
|
"\u00A0",
|
|
21912
|
-
props.
|
|
21912
|
+
props.ishinted ?
|
|
21913
21913
|
React.createElement(React.Fragment, null,
|
|
21914
|
-
React.createElement(e, { content: props.
|
|
21915
|
-
React.createElement("a", { href: props.
|
|
21914
|
+
React.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
|
|
21915
|
+
React.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
|
|
21916
21916
|
React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
|
|
21917
21917
|
hasError ?
|
|
21918
21918
|
React.createElement(React.Fragment, null,
|
|
21919
21919
|
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, typeof meta.error === 'string' ?
|
|
21920
|
-
React.createElement(React.Fragment, null, props.
|
|
21920
|
+
React.createElement(React.Fragment, null, props.errortext || "Required field")
|
|
21921
21921
|
: 'Invalid file selection')) : null))));
|
|
21922
21922
|
};
|
|
21923
21923
|
|
|
@@ -29212,10 +29212,10 @@ const getStyles = (design, layout) => {
|
|
|
29212
29212
|
}
|
|
29213
29213
|
return Object.assign(Object.assign({ borderRadius }, visualStyles), { position: 'relative', overflow: 'hidden', display: 'block' });
|
|
29214
29214
|
};
|
|
29215
|
-
const ImageOutput = ({ id, src, alt = "Image", design = 'outline', layout = 'normal',
|
|
29215
|
+
const ImageOutput = ({ id, src, alt = "Image", design = 'outline', layout = 'normal', aspectratio = 16 / 9, height, width = '100%', classname, style, onClick, }) => {
|
|
29216
29216
|
const containerStyles = getStyles(design, layout);
|
|
29217
29217
|
const iconColor = design === 'neumorphic' ? '#555' : 'var(--gray-9)';
|
|
29218
|
-
const content = (React.createElement(p$8, { className:
|
|
29218
|
+
const content = (React.createElement(p$8, { className: classname, style: Object.assign(Object.assign(Object.assign({}, containerStyles), { width, height: height || 'auto' }), style), onClick: onClick }, src ? (React.createElement("img", { id: String(id), src: src, alt: alt, style: {
|
|
29219
29219
|
width: '100%',
|
|
29220
29220
|
height: '100%',
|
|
29221
29221
|
objectFit: 'cover',
|
|
@@ -29233,36 +29233,36 @@ const ImageOutput = ({ id, src, alt = "Image", design = 'outline', layout = 'nor
|
|
|
29233
29233
|
return content;
|
|
29234
29234
|
}
|
|
29235
29235
|
return (React.createElement(p$8, { style: { width } },
|
|
29236
|
-
React.createElement(i$9, { ratio:
|
|
29236
|
+
React.createElement(i$9, { ratio: aspectratio }, content)));
|
|
29237
29237
|
};
|
|
29238
29238
|
|
|
29239
29239
|
const Input$2 = (_a) => {
|
|
29240
|
-
var { alias, inputtype = "text", width, inputlabel, readonly = false, placeholder = '', className, size = "2", style,
|
|
29240
|
+
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"]);
|
|
29241
29241
|
const [inputField, meta] = formik.useField(alias);
|
|
29242
29242
|
const hasError = Boolean(meta.touched && meta.error);
|
|
29243
|
-
const variantClass =
|
|
29243
|
+
const variantClass = inputvariant !== 'input-outline' ? `input-${inputvariant}` : '';
|
|
29244
29244
|
const errorId = `${alias}-error`;
|
|
29245
|
-
return (React.createElement(Column, { span: width, newLine: props.
|
|
29245
|
+
return (React.createElement(Column, { span: width, newLine: props.newrow },
|
|
29246
29246
|
React.createElement(u, Object.assign({ size: size, type: inputtype, id: `${alias}FormInput`, "aria-describedby": `${alias}InputLabel`, readOnly: readonly, placeholder: placeholder, color: hasError ? "red" : undefined, className: `${variantClass} ${className || ''}` }, inputField, props, { name: alias })),
|
|
29247
29247
|
React.createElement("div", null,
|
|
29248
29248
|
React.createElement("br", null),
|
|
29249
29249
|
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
|
|
29250
29250
|
"\u00A0",
|
|
29251
|
-
props.
|
|
29252
|
-
React.createElement("a", { href: props.
|
|
29251
|
+
props.ishinted && (React.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
|
|
29252
|
+
React.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
|
|
29253
29253
|
React.createElement(QuestionMarkCircledIcon, { height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
|
|
29254
|
-
hasError && (React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.
|
|
29254
|
+
hasError && (React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errortext || `Required field`)))));
|
|
29255
29255
|
};
|
|
29256
29256
|
|
|
29257
29257
|
const PasswordInput = (_a) => {
|
|
29258
|
-
var { alias, inputlabel, width, readonly = false, placeholder = '',
|
|
29258
|
+
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"]);
|
|
29259
29259
|
const [showPassword, setShowPassword] = React.useState(false);
|
|
29260
29260
|
const toggleVisibility = () => setShowPassword(!showPassword);
|
|
29261
29261
|
const [field, meta] = formik.useField(alias);
|
|
29262
29262
|
const hasError = Boolean(meta.touched && meta.error);
|
|
29263
|
-
const variantClass =
|
|
29263
|
+
const variantClass = inputvariant !== 'input-outline' ? `input-${inputvariant}` : '';
|
|
29264
29264
|
const errorId = `${alias}-error`;
|
|
29265
|
-
return (React.createElement(Column, { span: width, newLine: props.
|
|
29265
|
+
return (React.createElement(Column, { span: width, newLine: props.newrow },
|
|
29266
29266
|
React.createElement(u, Object.assign({ size: size, type: showPassword ? "text" : "password", id: `${alias}FormInput`, readOnly: readonly, "aria-describedby": `${alias}InputLabel`, placeholder: placeholder, color: hasError ? "red" : undefined, className: `${variantClass} ${className || ''}` }, field, props, { name: alias }),
|
|
29267
29267
|
React.createElement(c, null,
|
|
29268
29268
|
React.createElement(Icon, { name: "lockclosed", height: "16", width: "16" })),
|
|
@@ -29273,10 +29273,10 @@ const PasswordInput = (_a) => {
|
|
|
29273
29273
|
React.createElement("br", null),
|
|
29274
29274
|
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
|
|
29275
29275
|
"\u00A0",
|
|
29276
|
-
props.
|
|
29277
|
-
React.createElement("a", { href: props.
|
|
29276
|
+
props.ishinted && (React.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
|
|
29277
|
+
React.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
|
|
29278
29278
|
React.createElement(QuestionMarkCircledIcon, { height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
|
|
29279
|
-
hasError && (React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.
|
|
29279
|
+
hasError && (React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errortext || `Required field`)))));
|
|
29280
29280
|
};
|
|
29281
29281
|
|
|
29282
29282
|
// This file is a workaround for a bug in web browsers' "native"
|
|
@@ -36818,14 +36818,14 @@ var en = {
|
|
|
36818
36818
|
};
|
|
36819
36819
|
|
|
36820
36820
|
const PhoneInput = (_a) => {
|
|
36821
|
-
var { alias, inputlabel, width, placeholder = "Phone Number", readonly,
|
|
36821
|
+
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"]);
|
|
36822
36822
|
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
36823
36823
|
const [field, meta] = formik.useField(alias);
|
|
36824
36824
|
const hasError = Boolean(meta.touched && meta.error);
|
|
36825
36825
|
const [country, setCountry] = React.useState('US');
|
|
36826
|
-
const variantClass =
|
|
36826
|
+
const variantClass = inputvariant !== 'input-outline' ? `input-${inputvariant}` : '';
|
|
36827
36827
|
const errorId = `${alias}-error`;
|
|
36828
|
-
return (React.createElement(Column, { span: width, newLine: props.
|
|
36828
|
+
return (React.createElement(Column, { span: width, newLine: props.newrow },
|
|
36829
36829
|
React.createElement(p$5, { direction: "column", gap: "2", style: { width: '100%' } },
|
|
36830
36830
|
React.createElement(u, Object.assign({ size: size, variant: "surface", color: hasError ? "red" : undefined, className: `${variantClass} ${className || ''}` }, props),
|
|
36831
36831
|
React.createElement(c, { style: { padding: 0 } },
|
|
@@ -36853,7 +36853,7 @@ const PhoneInput = (_a) => {
|
|
|
36853
36853
|
"(+",
|
|
36854
36854
|
getCountryCallingCode(c),
|
|
36855
36855
|
")")))))))),
|
|
36856
|
-
React.createElement(Input, { country: country,
|
|
36856
|
+
React.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: {
|
|
36857
36857
|
flex: 1,
|
|
36858
36858
|
border: 'none',
|
|
36859
36859
|
outline: 'none',
|
|
@@ -36867,10 +36867,10 @@ const PhoneInput = (_a) => {
|
|
|
36867
36867
|
} })),
|
|
36868
36868
|
React.createElement("div", { style: { marginTop: 4, display: 'flex', alignItems: 'center', gap: 6 } },
|
|
36869
36869
|
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
|
|
36870
|
-
props.
|
|
36871
|
-
React.createElement("a", { href: props.
|
|
36870
|
+
props.ishinted && (React.createElement(e, { content: props.hinttext || "No hint available" },
|
|
36871
|
+
React.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer", style: { display: 'flex' } },
|
|
36872
36872
|
React.createElement(QuestionMarkCircledIcon, { height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
|
|
36873
|
-
hasError && (React.createElement(p$d, { id: errorId, size: "1", color: "red", className: 'core-input-label-error' }, props.
|
|
36873
|
+
hasError && (React.createElement(p$d, { id: errorId, size: "1", color: "red", className: 'core-input-label-error' }, props.errortext || meta.error || `Required field`))))));
|
|
36874
36874
|
};
|
|
36875
36875
|
|
|
36876
36876
|
/** Checks if value is string */
|
|
@@ -40661,7 +40661,7 @@ const parseUuidFormat = (input) => {
|
|
|
40661
40661
|
};
|
|
40662
40662
|
|
|
40663
40663
|
const UUIDInput = (_a) => {
|
|
40664
|
-
var { alias, type,
|
|
40664
|
+
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"]);
|
|
40665
40665
|
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
40666
40666
|
const [field, meta] = formik.useField(alias);
|
|
40667
40667
|
const hasError = Boolean(meta.touched && meta.error);
|
|
@@ -40688,8 +40688,8 @@ const UUIDInput = (_a) => {
|
|
|
40688
40688
|
setCopied(true);
|
|
40689
40689
|
setTimeout(() => setCopied(false), 2000);
|
|
40690
40690
|
};
|
|
40691
|
-
const variantClass =
|
|
40692
|
-
return (React.createElement(Column, { span: width, newLine: props.
|
|
40691
|
+
const variantClass = inputvariant !== 'input-outline' ? `input-${inputvariant}` : '';
|
|
40692
|
+
return (React.createElement(Column, { span: width, newLine: props.newrow },
|
|
40693
40693
|
React.createElement(p$5, { direction: "column", gap: "2", style: { width: '100%' } },
|
|
40694
40694
|
React.createElement(u, Object.assign({ size: size, variant: "surface", color: hasError ? 'red' : undefined, className: `${variantClass} ${className || ''}` }, props),
|
|
40695
40695
|
React.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: {
|
|
@@ -40709,12 +40709,12 @@ const UUIDInput = (_a) => {
|
|
|
40709
40709
|
React.createElement(e, { content: copied ? "Copied!" : "Copy to clipboard" },
|
|
40710
40710
|
React.createElement(o$5, { size: "1", variant: "ghost", color: copied ? "green" : "gray", onClick: handleCopy, type: "button", disabled: !field.value }, copied ? React.createElement(CheckIcon, null) : React.createElement(CopyIcon, null))))),
|
|
40711
40711
|
React.createElement("div", null,
|
|
40712
|
-
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias },
|
|
40712
|
+
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
|
|
40713
40713
|
"\u00A0",
|
|
40714
|
-
props.
|
|
40715
|
-
React.createElement("a", { href: props.
|
|
40714
|
+
props.ishinted && (React.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
|
|
40715
|
+
React.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
|
|
40716
40716
|
React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
|
|
40717
|
-
hasError && (React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.
|
|
40717
|
+
hasError && (React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errortext || meta.error || `Required field`))))));
|
|
40718
40718
|
};
|
|
40719
40719
|
|
|
40720
40720
|
var FaCcVisa = {};
|
|
@@ -42146,7 +42146,7 @@ var cardValidator = /*@__PURE__*/getDefaultExportFromCjs(distExports);
|
|
|
42146
42146
|
|
|
42147
42147
|
const CreditCardInput = (_a) => {
|
|
42148
42148
|
var _b;
|
|
42149
|
-
var { alias, inputlabel, width, placeholder, readonly = false,
|
|
42149
|
+
var { alias, inputlabel, width, placeholder, readonly = false, inputvariant = 'input-outline', classname } = _a, props = __rest$1(_a, ["alias", "inputlabel", "width", "placeholder", "readonly", "inputvariant", "classname"]);
|
|
42150
42150
|
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
42151
42151
|
const [field, meta] = formik.useField(alias);
|
|
42152
42152
|
const hasError = Boolean(meta.touched && meta.error);
|
|
@@ -42165,11 +42165,11 @@ const CreditCardInput = (_a) => {
|
|
|
42165
42165
|
default: return React.createElement(FaCreditCardExports.FaCreditCard, { color: "var(--gray-8)", size: "20" });
|
|
42166
42166
|
}
|
|
42167
42167
|
};
|
|
42168
|
-
const variantClass =
|
|
42169
|
-
const isOutline =
|
|
42170
|
-
return (React.createElement(Column, { span: width, newLine: props.
|
|
42168
|
+
const variantClass = inputvariant !== 'input-outline' ? `input-${inputvariant}` : '';
|
|
42169
|
+
const isOutline = inputvariant === 'input-outline';
|
|
42170
|
+
return (React.createElement(Column, { span: width, newLine: props.newrow },
|
|
42171
42171
|
React.createElement(p$5, { direction: "column", gap: "2", style: { width: '100%' } },
|
|
42172
|
-
React.createElement(p$5, { align: "center", className: `rt-TextFieldRoot rt-r-size-2 rt-variant-surface ${variantClass} ${
|
|
42172
|
+
React.createElement(p$5, { align: "center", className: `rt-TextFieldRoot rt-r-size-2 rt-variant-surface ${variantClass} ${classname || ''}`, style: {
|
|
42173
42173
|
width: '100%',
|
|
42174
42174
|
boxShadow: (isOutline && hasError) ? 'inset 0 0 0 1px var(--red-9)' : undefined,
|
|
42175
42175
|
backgroundColor: isOutline ? 'var(--color-surface)' : undefined,
|
|
@@ -42192,10 +42192,10 @@ const CreditCardInput = (_a) => {
|
|
|
42192
42192
|
React.createElement("div", { style: { marginTop: 4, display: 'flex', alignItems: 'center', gap: 6 } },
|
|
42193
42193
|
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
|
|
42194
42194
|
"\u00A0",
|
|
42195
|
-
props.
|
|
42196
|
-
React.createElement("a", { href: props.
|
|
42195
|
+
props.ishinted && (React.createElement(e, { content: props.hinttext || "No hint available" },
|
|
42196
|
+
React.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer", style: { display: 'flex' } },
|
|
42197
42197
|
React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
|
|
42198
|
-
hasError && (React.createElement(p$d, { id: errorId, size: "1", color: "red", className: 'core-input-label-error' }, props.
|
|
42198
|
+
hasError && (React.createElement(p$d, { id: errorId, size: "1", color: "red", className: 'core-input-label-error' }, props.errortext || `Required field`))))));
|
|
42199
42199
|
};
|
|
42200
42200
|
|
|
42201
42201
|
const CURRENCIES = {
|
|
@@ -42267,7 +42267,7 @@ const CURRENCIES = {
|
|
|
42267
42267
|
};
|
|
42268
42268
|
|
|
42269
42269
|
const CurrencyInput = (_a) => {
|
|
42270
|
-
var { alias, inputtype = "currency", inputlabel, width,
|
|
42270
|
+
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"]);
|
|
42271
42271
|
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
42272
42272
|
const [amountField, amountMeta] = formik.useField(alias);
|
|
42273
42273
|
const currencyAlias = `${alias}Currency`;
|
|
@@ -42277,24 +42277,24 @@ const CurrencyInput = (_a) => {
|
|
|
42277
42277
|
currencyHelpers.setValue(inputtype);
|
|
42278
42278
|
}
|
|
42279
42279
|
else if (!currencyField.value) {
|
|
42280
|
-
currencyHelpers.setValue(
|
|
42280
|
+
currencyHelpers.setValue(defaultvalue);
|
|
42281
42281
|
}
|
|
42282
|
-
}, [inputtype,
|
|
42282
|
+
}, [inputtype, defaultvalue]);
|
|
42283
42283
|
const hasError = Boolean(amountMeta.touched && amountMeta.error);
|
|
42284
42284
|
const currentCode = currencyField.value || "USD";
|
|
42285
42285
|
const activeCurrency = CURRENCIES[currentCode] || CURRENCIES.USD;
|
|
42286
|
-
const variantClass =
|
|
42287
|
-
const isOutline =
|
|
42286
|
+
const variantClass = inputvariant !== 'input-outline' ? `input-${inputvariant}` : '';
|
|
42287
|
+
const isOutline = inputvariant === 'input-outline';
|
|
42288
42288
|
const errorId = `${alias}-error`;
|
|
42289
42289
|
return (React.createElement(Column, { span: width, newLine: props.newRow },
|
|
42290
42290
|
React.createElement(p$5, { direction: "column", gap: "2", style: { width: '100%' } },
|
|
42291
|
-
React.createElement(p$5, { align: "center", className: `rt-TextFieldRoot rt-r-size-2 rt-variant-surface ${variantClass} ${
|
|
42291
|
+
React.createElement(p$5, { align: "center", className: `rt-TextFieldRoot rt-r-size-2 rt-variant-surface ${variantClass} ${classname || ''}`, style: {
|
|
42292
42292
|
width: '100%',
|
|
42293
42293
|
boxShadow: (isOutline && hasError) ? 'inset 0 0 0 1px var(--red-9)' : undefined,
|
|
42294
42294
|
backgroundColor: isOutline ? 'var(--color-surface)' : undefined,
|
|
42295
42295
|
cursor: 'text'
|
|
42296
42296
|
} },
|
|
42297
|
-
React.createElement(C$1, { value: activeCurrency.code, onValueChange: (val) => setFieldValue(currencyAlias, val), disabled:
|
|
42297
|
+
React.createElement(C$1, { value: activeCurrency.code, onValueChange: (val) => setFieldValue(currencyAlias, val), disabled: readonly || inputtype !== "currency" },
|
|
42298
42298
|
React.createElement(u$1, { variant: "ghost", style: {
|
|
42299
42299
|
height: '100%',
|
|
42300
42300
|
padding: '0 8px 0 12px',
|
|
@@ -42325,7 +42325,7 @@ const CurrencyInput = (_a) => {
|
|
|
42325
42325
|
normalizeZeros: true,
|
|
42326
42326
|
radix: ".",
|
|
42327
42327
|
mapToRadix: ['.'],
|
|
42328
|
-
}, { value: amountField.value !== undefined && amountField.value !== null ? String(amountField.value) : '', unmask: true, onAccept: (val) => setFieldValue(alias, val), onBlur: () => setFieldTouched(alias, true), readOnly:
|
|
42328
|
+
}, { 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: {
|
|
42329
42329
|
flex: 1,
|
|
42330
42330
|
border: 'none',
|
|
42331
42331
|
outline: 'none',
|
|
@@ -42341,10 +42341,10 @@ const CurrencyInput = (_a) => {
|
|
|
42341
42341
|
React.createElement("div", null,
|
|
42342
42342
|
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
|
|
42343
42343
|
"\u00A0",
|
|
42344
|
-
props.
|
|
42345
|
-
React.createElement("a", { href: props.
|
|
42344
|
+
props.ishinted && (React.createElement(e, { content: props.hinttext || "No hint available" },
|
|
42345
|
+
React.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer", style: { display: 'flex' } },
|
|
42346
42346
|
React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
|
|
42347
|
-
hasError && (React.createElement(p$d, { id: errorId, size: "1", color: "red", className: 'core-input-label-error' }, props.
|
|
42347
|
+
hasError && (React.createElement(p$d, { id: errorId, size: "1", color: "red", className: 'core-input-label-error' }, props.errortext || amountMeta.error || `Required field`))))));
|
|
42348
42348
|
};
|
|
42349
42349
|
|
|
42350
42350
|
var FaChartLine = {};
|
|
@@ -42365,16 +42365,16 @@ function requireFaChartLine () {
|
|
|
42365
42365
|
var FaChartLineExports = /*@__PURE__*/ requireFaChartLine();
|
|
42366
42366
|
|
|
42367
42367
|
const StockInput = (_a) => {
|
|
42368
|
-
var { alias, inputlabel, width,
|
|
42368
|
+
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"]);
|
|
42369
42369
|
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
42370
42370
|
const [priceField, meta] = formik.useField(alias);
|
|
42371
42371
|
const hasError = Boolean(meta.touched && meta.error);
|
|
42372
|
-
const variantClass =
|
|
42373
|
-
const isOutline =
|
|
42372
|
+
const variantClass = inputvariant !== 'input-outline' ? `input-${inputvariant}` : '';
|
|
42373
|
+
const isOutline = inputvariant === 'input-outline';
|
|
42374
42374
|
const errorId = `${alias}-error`;
|
|
42375
|
-
return (React.createElement(Column, { span: width, newLine: props.
|
|
42375
|
+
return (React.createElement(Column, { span: width, newLine: props.newrow },
|
|
42376
42376
|
React.createElement(p$5, { direction: "column", gap: "2", style: { width: '100%' } },
|
|
42377
|
-
React.createElement(p$5, { align: "center", justify: "between", className: `rt-TextFieldRoot rt-r-size-2 rt-variant-surface ${variantClass} ${
|
|
42377
|
+
React.createElement(p$5, { align: "center", justify: "between", className: `rt-TextFieldRoot rt-r-size-2 rt-variant-surface ${variantClass} ${classname || ''}`, style: {
|
|
42378
42378
|
width: '100%',
|
|
42379
42379
|
height: 'var(--space-6)',
|
|
42380
42380
|
boxShadow: (isOutline)
|
|
@@ -42396,11 +42396,11 @@ const StockInput = (_a) => {
|
|
|
42396
42396
|
letterSpacing: '0.05em',
|
|
42397
42397
|
fontWeight: 600,
|
|
42398
42398
|
userSelect: 'none'
|
|
42399
|
-
} },
|
|
42399
|
+
} }, defaultvalue || React.createElement(FaChartLineExports.FaChartLine, null)),
|
|
42400
42400
|
React.createElement(p$5, { align: "center", style: { flex: 1, height: '100%', justifyContent: 'flex-end' } },
|
|
42401
|
-
React.createElement(IMaskInput, { id: `${alias}FormInput`, name: alias, "aria-describedby": `${alias}InputLabel`, mask: Number, scale: 2, readOnly:
|
|
42401
|
+
React.createElement(IMaskInput, { id: `${alias}FormInput`, name: alias, "aria-describedby": `${alias}InputLabel`, mask: Number, scale: 2, readOnly: readonly,
|
|
42402
42402
|
// @ts-expect-error: known library type definition gap
|
|
42403
|
-
signed: 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: {
|
|
42403
|
+
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: {
|
|
42404
42404
|
border: 'none',
|
|
42405
42405
|
outline: 'none',
|
|
42406
42406
|
background: 'transparent',
|
|
@@ -42415,14 +42415,14 @@ const StockInput = (_a) => {
|
|
|
42415
42415
|
React.createElement("div", null,
|
|
42416
42416
|
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
|
|
42417
42417
|
"\u00A0",
|
|
42418
|
-
props.
|
|
42419
|
-
React.createElement("a", { href: props.
|
|
42418
|
+
props.ishinted && (React.createElement(e, { content: props.hinttext || "No hint available" },
|
|
42419
|
+
React.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer", style: { display: 'flex' } },
|
|
42420
42420
|
React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
|
|
42421
|
-
hasError && (React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.
|
|
42421
|
+
hasError && (React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errortext || `Required field`))))));
|
|
42422
42422
|
};
|
|
42423
42423
|
|
|
42424
42424
|
const RadioGroupInput = (_a) => {
|
|
42425
|
-
var { inputtype = 'radio-outline', alias,
|
|
42425
|
+
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"]);
|
|
42426
42426
|
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
42427
42427
|
const [field, meta] = formik.useField(alias);
|
|
42428
42428
|
const hasError = Boolean(meta.touched && meta.error);
|
|
@@ -42440,8 +42440,8 @@ const RadioGroupInput = (_a) => {
|
|
|
42440
42440
|
});
|
|
42441
42441
|
}
|
|
42442
42442
|
}, [inputtype]);
|
|
42443
|
-
return (React.createElement(Column, { span: width, newLine: props.
|
|
42444
|
-
React.createElement(p$5, { direction: "column", gap: "2", width: "100%", ref: containerRef, style: style, className:
|
|
42443
|
+
return (React.createElement(Column, { span: width, newLine: props.newrow },
|
|
42444
|
+
React.createElement(p$5, { direction: "column", gap: "2", width: "100%", ref: containerRef, style: style, className: classname },
|
|
42445
42445
|
inputtype === 'radio-neumorphic' && (React.createElement("style", { dangerouslySetInnerHTML: { __html: `
|
|
42446
42446
|
/* Target the specific Radio Item button class */
|
|
42447
42447
|
.neu-radio .rt-RadioGroupItem {
|
|
@@ -42476,7 +42476,7 @@ const RadioGroupInput = (_a) => {
|
|
|
42476
42476
|
transform: none; /* Don't scale if pressed in */
|
|
42477
42477
|
}
|
|
42478
42478
|
` } })),
|
|
42479
|
-
React.createElement(I$1, { name: alias, id: `${alias}FormInput`, "aria-describedby": `${alias}InputLabel`, disabled:
|
|
42479
|
+
React.createElement(I$1, { name: alias, id: `${alias}FormInput`, "aria-describedby": `${alias}InputLabel`, disabled: readonly, value: field.value, onValueChange: (val) => {
|
|
42480
42480
|
setFieldValue(alias, val);
|
|
42481
42481
|
setTimeout(() => setFieldTouched(alias, true), 0);
|
|
42482
42482
|
} },
|
|
@@ -42493,10 +42493,10 @@ const RadioGroupInput = (_a) => {
|
|
|
42493
42493
|
React.createElement("div", null,
|
|
42494
42494
|
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
|
|
42495
42495
|
"\u00A0",
|
|
42496
|
-
props.
|
|
42496
|
+
props.ishinted ?
|
|
42497
42497
|
React.createElement(React.Fragment, null,
|
|
42498
|
-
React.createElement(e, { content: props.
|
|
42499
|
-
React.createElement("a", { href: props.
|
|
42498
|
+
React.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
|
|
42499
|
+
React.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
|
|
42500
42500
|
React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
|
|
42501
42501
|
hasError ?
|
|
42502
42502
|
React.createElement(React.Fragment, null,
|
|
@@ -42504,7 +42504,7 @@ const RadioGroupInput = (_a) => {
|
|
|
42504
42504
|
};
|
|
42505
42505
|
|
|
42506
42506
|
const OptionSelect = (_a) => {
|
|
42507
|
-
var { inputtype = 'dropdown-outline', alias, readonly, width, inputlabel, placeholder, value, inputoptions, style, newRow,
|
|
42507
|
+
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"]);
|
|
42508
42508
|
const triggerRef = React.useRef(null);
|
|
42509
42509
|
const [neuVars, setNeuVars] = React.useState({});
|
|
42510
42510
|
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
@@ -42607,19 +42607,19 @@ const OptionSelect = (_a) => {
|
|
|
42607
42607
|
React.createElement("div", null,
|
|
42608
42608
|
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
|
|
42609
42609
|
"\u00A0",
|
|
42610
|
-
|
|
42610
|
+
ishinted ?
|
|
42611
42611
|
React.createElement(React.Fragment, null,
|
|
42612
|
-
React.createElement(e, { content:
|
|
42613
|
-
React.createElement("a", { href:
|
|
42612
|
+
React.createElement(e, { content: hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
|
|
42613
|
+
React.createElement("a", { href: hinturl || "", target: "_blank", rel: "noopener noreferrer" },
|
|
42614
42614
|
React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
|
|
42615
42615
|
hasError ?
|
|
42616
42616
|
React.createElement(React.Fragment, null,
|
|
42617
|
-
React.createElement("p", { id: errorId, className: 'core-input-label-error' },
|
|
42617
|
+
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, errortext || meta.error || "Required field")) : null))));
|
|
42618
42618
|
};
|
|
42619
42619
|
|
|
42620
42620
|
const MultipleSelect = (_a) => {
|
|
42621
42621
|
var _b;
|
|
42622
|
-
var { inputtype = 'multiselect-outline', alias,
|
|
42622
|
+
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"]);
|
|
42623
42623
|
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
42624
42624
|
const [field, meta] = formik.useField(alias);
|
|
42625
42625
|
const selectedValues = (Array.isArray(field.value) ? field.value : []);
|
|
@@ -42675,12 +42675,12 @@ const MultipleSelect = (_a) => {
|
|
|
42675
42675
|
: '6px 6px 12px var(--neu-shadow-dark), -6px -6px 12px var(--neu-shadow-light)', transition: 'all 0.2s ease' });
|
|
42676
42676
|
const activeTrigger = inputtype === 'multiselect-material' ? materialTrigger :
|
|
42677
42677
|
inputtype === 'multiselect-outline' ? outlineTrigger : Object.assign(Object.assign({}, neumorphicTrigger), neuVars);
|
|
42678
|
-
return (React.createElement(Column, { span: width, newLine: props.
|
|
42678
|
+
return (React.createElement(Column, { span: width, newLine: props.newrow },
|
|
42679
42679
|
React.createElement(p$5, { direction: "column", gap: "2", style: { width: '100%' } },
|
|
42680
42680
|
React.createElement("input", { type: "hidden", name: alias, value: JSON.stringify(selectedValues) }),
|
|
42681
42681
|
React.createElement(P$1, { onOpenChange: setIsOpen },
|
|
42682
42682
|
React.createElement(s$1, null,
|
|
42683
|
-
React.createElement("button", { id: `${alias}FormInput`, type: "button", ref: triggerRef, className:
|
|
42683
|
+
React.createElement("button", { id: `${alias}FormInput`, type: "button", ref: triggerRef, className: classname, style: Object.assign(Object.assign({}, activeTrigger), style), "aria-describedby": `${alias}InputLabel` },
|
|
42684
42684
|
React.createElement("span", { style: {
|
|
42685
42685
|
overflow: 'hidden',
|
|
42686
42686
|
textOverflow: 'ellipsis',
|
|
@@ -42700,24 +42700,24 @@ const MultipleSelect = (_a) => {
|
|
|
42700
42700
|
backgroundColor: isSelected ? 'var(--accent-a3)' : 'transparent',
|
|
42701
42701
|
transition: 'background-color 0.1s'
|
|
42702
42702
|
}, className: "multiselect-item" },
|
|
42703
|
-
React.createElement(c$2, { disabled:
|
|
42703
|
+
React.createElement(c$2, { disabled: readonly, checked: isSelected, style: { pointerEvents: 'none' } }),
|
|
42704
42704
|
React.createElement(p$d, { size: "2" }, inputoption.text)));
|
|
42705
42705
|
})))))),
|
|
42706
42706
|
React.createElement("div", null,
|
|
42707
42707
|
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
|
|
42708
42708
|
"\u00A0",
|
|
42709
|
-
props.
|
|
42709
|
+
props.ishinted ?
|
|
42710
42710
|
React.createElement(React.Fragment, null,
|
|
42711
|
-
React.createElement(e, { content: props.
|
|
42712
|
-
React.createElement("a", { href: props.
|
|
42711
|
+
React.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
|
|
42712
|
+
React.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
|
|
42713
42713
|
React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
|
|
42714
42714
|
hasError ?
|
|
42715
42715
|
React.createElement(React.Fragment, null,
|
|
42716
|
-
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.
|
|
42716
|
+
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errortext || `Required field`)) : null))));
|
|
42717
42717
|
};
|
|
42718
42718
|
|
|
42719
42719
|
const SliderInput = (_a) => {
|
|
42720
|
-
var { inputtype = 'slider-outline', alias,
|
|
42720
|
+
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"]);
|
|
42721
42721
|
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
42722
42722
|
const [field, meta] = formik.useField(alias);
|
|
42723
42723
|
const fieldValue = Array.isArray(field.value) ? field.value : [field.value || minvalue];
|
|
@@ -42736,7 +42736,7 @@ const SliderInput = (_a) => {
|
|
|
42736
42736
|
});
|
|
42737
42737
|
}
|
|
42738
42738
|
}, [inputtype]);
|
|
42739
|
-
return (React.createElement(Column, { span: width, newLine: props.
|
|
42739
|
+
return (React.createElement(Column, { span: width, newLine: props.newrow },
|
|
42740
42740
|
React.createElement(p$5, { direction: "column", gap: "3", width: "100%", ref: containerRef, style: style, className: className },
|
|
42741
42741
|
React.createElement(p$5, { justify: "between", align: "center" },
|
|
42742
42742
|
React.createElement(p$d, { size: "2", color: "gray", style: { fontVariantNumeric: 'tabular-nums' } }, fieldValue[0])),
|
|
@@ -42797,7 +42797,7 @@ const SliderInput = (_a) => {
|
|
|
42797
42797
|
box-shadow: none;
|
|
42798
42798
|
}
|
|
42799
42799
|
` } }),
|
|
42800
|
-
React.createElement(s, { name: alias, id: `${alias}FormInput`, disabled:
|
|
42800
|
+
React.createElement(s, { name: alias, id: `${alias}FormInput`, disabled: readonly, "aria-describedby": `${alias}InputLabel`, min: minvalue, max: maxvalue, step: stepvalue, value: fieldValue, onValueChange: (val) => {
|
|
42801
42801
|
// Formik Implementation - For array, pass 'val' directly
|
|
42802
42802
|
setFieldValue(alias, val[0]);
|
|
42803
42803
|
}, onValueCommit: () => {
|
|
@@ -42806,14 +42806,14 @@ const SliderInput = (_a) => {
|
|
|
42806
42806
|
React.createElement("div", null,
|
|
42807
42807
|
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
|
|
42808
42808
|
"\u00A0",
|
|
42809
|
-
props.
|
|
42809
|
+
props.ishinted ?
|
|
42810
42810
|
React.createElement(React.Fragment, null,
|
|
42811
|
-
React.createElement(e, { content: props.
|
|
42812
|
-
React.createElement("a", { href: props.
|
|
42811
|
+
React.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
|
|
42812
|
+
React.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
|
|
42813
42813
|
React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
|
|
42814
42814
|
hasError ?
|
|
42815
42815
|
React.createElement(React.Fragment, null,
|
|
42816
|
-
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.
|
|
42816
|
+
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errortext || `Required field`)) : null))));
|
|
42817
42817
|
};
|
|
42818
42818
|
|
|
42819
42819
|
const RangeSlider = (_a) => {
|
|
@@ -42843,7 +42843,7 @@ const RangeSlider = (_a) => {
|
|
|
42843
42843
|
});
|
|
42844
42844
|
}
|
|
42845
42845
|
}, [inputtype]);
|
|
42846
|
-
return (React.createElement(Column, { span: width, newLine: props.
|
|
42846
|
+
return (React.createElement(Column, { span: width, newLine: props.newrow },
|
|
42847
42847
|
React.createElement(p$5, { direction: "column", gap: "3", width: "100%", ref: containerRef, style: style, className: className },
|
|
42848
42848
|
React.createElement(p$5, { justify: "between", align: "center" },
|
|
42849
42849
|
React.createElement(p$d, { size: "2", color: "gray", style: { fontVariantNumeric: 'tabular-nums' } }, fieldValue.join(' - '))),
|
|
@@ -42886,18 +42886,18 @@ const RangeSlider = (_a) => {
|
|
|
42886
42886
|
React.createElement("div", null,
|
|
42887
42887
|
React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel),
|
|
42888
42888
|
"\u00A0",
|
|
42889
|
-
props.
|
|
42889
|
+
props.ishinted ?
|
|
42890
42890
|
React.createElement(React.Fragment, null,
|
|
42891
|
-
React.createElement(e, { content: props.
|
|
42892
|
-
React.createElement("a", { href: props.
|
|
42891
|
+
React.createElement(e, { content: props.hinttext || "No hint available", align: "start", sideOffset: 5, className: "core-input-tooltip" },
|
|
42892
|
+
React.createElement("a", { href: props.hinturl || "", target: "_blank", rel: "noopener noreferrer" },
|
|
42893
42893
|
React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))) : null,
|
|
42894
42894
|
hasError ?
|
|
42895
42895
|
React.createElement(React.Fragment, null,
|
|
42896
|
-
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.
|
|
42896
|
+
React.createElement("p", { id: errorId, className: 'core-input-label-error' }, props.errortext || `Required field`)) : null))));
|
|
42897
42897
|
};
|
|
42898
42898
|
|
|
42899
42899
|
const Toggle = (_a) => {
|
|
42900
|
-
var { inputtype = 'toggle-neumorphic', alias,
|
|
42900
|
+
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"]);
|
|
42901
42901
|
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
42902
42902
|
const [field, meta] = formik.useField(alias);
|
|
42903
42903
|
const hasError = Boolean(meta.touched && meta.error);
|
|
@@ -42932,14 +42932,14 @@ const Toggle = (_a) => {
|
|
|
42932
42932
|
transition: 'all 0.1s ease',
|
|
42933
42933
|
};
|
|
42934
42934
|
const handleToggle = (val) => {
|
|
42935
|
-
if (!
|
|
42935
|
+
if (!readonly) {
|
|
42936
42936
|
setFieldValue(alias, val);
|
|
42937
42937
|
setFieldTouched(alias, true);
|
|
42938
42938
|
}
|
|
42939
42939
|
};
|
|
42940
|
-
return (React.createElement(Column, { span: width, newLine:
|
|
42940
|
+
return (React.createElement(Column, { span: width, newLine: newrow },
|
|
42941
42941
|
React.createElement("div", { ref: containerRef, style: { width: '100%', display: 'flex', flexDirection: 'column', gap: '4px' } },
|
|
42942
|
-
inputtype === 'toggle-neumorphic' ? (React.createElement("div", { className: "neu-toggle-wrapper", style: Object.assign(Object.assign({}, neuVars), { opacity:
|
|
42942
|
+
inputtype === 'toggle-neumorphic' ? (React.createElement("div", { className: "neu-toggle-wrapper", style: Object.assign(Object.assign({}, neuVars), { opacity: readonly ? 0.6 : 1, pointerEvents: readonly ? 'none' : 'auto' }), onClick: () => handleToggle(!field.value) },
|
|
42943
42943
|
React.createElement("style", { dangerouslySetInnerHTML: { __html: `
|
|
42944
42944
|
.neu-toggle-wrapper {
|
|
42945
42945
|
isolation: isolate;
|
|
@@ -42981,8 +42981,8 @@ const Toggle = (_a) => {
|
|
|
42981
42981
|
` } }),
|
|
42982
42982
|
React.createElement("input", { className: "neu-toggle-state", type: "checkbox", checked: !!field.value, readOnly: true }),
|
|
42983
42983
|
React.createElement("div", { className: "neu-indicator" }),
|
|
42984
|
-
React.createElement(Icon, { name: icon }))) : (React.createElement(Root$1, { pressed: field.value, onPressedChange: handleToggle, name: alias, disabled:
|
|
42985
|
-
React.createElement(o$a, Object.assign({ disabled:
|
|
42984
|
+
React.createElement(Icon, { name: icon }))) : (React.createElement(Root$1, { pressed: field.value, onPressedChange: handleToggle, name: alias, disabled: readonly, id: `${alias}FormInput`, "aria-describedby": `${alias}InputLabel`, asChild: true },
|
|
42985
|
+
React.createElement(o$a, Object.assign({ disabled: readonly }, props, { className: `design-toggle ${inputtype} ${props.className || ''}`, style: Object.assign(Object.assign(Object.assign(Object.assign({}, style), (inputtype === 'toggle' ? materialStyle : {})), (inputtype === 'toggle-material' ? materialStyle : {})), (inputtype === 'toggle-outline' ? outlineStyle : {})), type: "button" }),
|
|
42986
42986
|
React.createElement("style", { dangerouslySetInnerHTML: { __html: `
|
|
42987
42987
|
/* Material States */
|
|
42988
42988
|
.design-toggle.toggle-material[data-state='on'] {
|
|
@@ -43007,26 +43007,35 @@ const Toggle = (_a) => {
|
|
|
43007
43007
|
` } }),
|
|
43008
43008
|
children))),
|
|
43009
43009
|
React.createElement("div", null,
|
|
43010
|
-
|
|
43010
|
+
inputlabel && (React.createElement(p$d, { id: `${alias}InputLabel`, as: "label", size: "2", weight: "bold", htmlFor: alias }, inputlabel)),
|
|
43011
43011
|
"\u00A0",
|
|
43012
|
-
|
|
43013
|
-
React.createElement("a", { href:
|
|
43012
|
+
ishinted && (React.createElement(e, { content: hinttext || "No hint available" },
|
|
43013
|
+
React.createElement("a", { href: hinturl || "", target: "_blank", rel: "noopener noreferrer", style: { marginLeft: 6 } },
|
|
43014
43014
|
React.createElement(Icon, { name: "questionmarkcircled", height: "16", width: "16", style: { cursor: 'pointer', color: 'gray' } })))),
|
|
43015
|
-
hasError && (React.createElement(p$d, { size: "1", color: "red", style: { display: 'block', marginTop: 2 } }, props.
|
|
43015
|
+
hasError && (React.createElement(p$d, { size: "1", color: "red", style: { display: 'block', marginTop: 2 } }, props.errortext || `Required field`))))));
|
|
43016
43016
|
};
|
|
43017
43017
|
|
|
43018
|
-
const SectionTitle = ({ title, width = 12, newRow = true, size = "5", subsize = "2", subtitle, align = "left", withSeparator = true, className }) => {
|
|
43018
|
+
const SectionTitle = ({ title, width = 12, newRow = true, size = "5", subsize = "2", subtitle, align = "left", withSeparator = true, className, backgroundcolor, icon }) => {
|
|
43019
|
+
const justifyMap = {
|
|
43020
|
+
left: 'start',
|
|
43021
|
+
center: 'center',
|
|
43022
|
+
right: 'end'
|
|
43023
|
+
};
|
|
43019
43024
|
return (React.createElement(Column, { span: width, newLine: newRow },
|
|
43020
43025
|
React.createElement(p$5, { direction: "column", gap: "2", className: className, style: {
|
|
43021
43026
|
width: '100%',
|
|
43022
43027
|
marginBottom: 'var(--space-2)',
|
|
43023
|
-
textAlign: align
|
|
43028
|
+
textAlign: align,
|
|
43029
|
+
backgroundColor: backgroundcolor || 'transparent',
|
|
43030
|
+
padding: backgroundcolor ? 'var(--space-3) var(--space-4)' : '0',
|
|
43031
|
+
borderRadius: backgroundcolor ? 'var(--radius-3)' : '0',
|
|
43024
43032
|
} },
|
|
43025
|
-
React.createElement(
|
|
43026
|
-
|
|
43027
|
-
|
|
43028
|
-
|
|
43029
|
-
|
|
43033
|
+
React.createElement(p$5, { align: "center", justify: justifyMap[align], gap: "3", style: { width: '100%' } },
|
|
43034
|
+
icon && (React.createElement(p$5, { align: "center", justify: "center", style: { color: 'var(--gray-12)' } }, icon)),
|
|
43035
|
+
React.createElement(r$g, { size: size, weight: "bold", style: {
|
|
43036
|
+
color: 'var(--gray-12)',
|
|
43037
|
+
lineHeight: '1.2'
|
|
43038
|
+
} }, title)),
|
|
43030
43039
|
subtitle && (React.createElement(p$d, { size: subsize, color: "gray", style: { maxWidth: '80%', margin: align === 'center' ? '0 auto' : undefined } }, subtitle)),
|
|
43031
43040
|
withSeparator && (React.createElement(o$2, { size: "4", style: {
|
|
43032
43041
|
width: '100%',
|