@cerebruminc/cerebellum 16.0.0 → 16.1.0-beta.dangerous.0f2ef4a
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/cjs/AddressInput-BwC_Fa3a.js.map +1 -1
- package/lib/cjs/GlobalStyle.cjs +1 -1
- package/lib/cjs/InlineDatePicker-DFv_uHo9.js.map +1 -1
- package/lib/cjs/{InlineDescriptiveDropdown-BLC78YOL.js → InlineDescriptiveDropdown-BaBs9GC1.js} +2 -2
- package/lib/cjs/{InlineDescriptiveDropdown-BLC78YOL.js.map → InlineDescriptiveDropdown-BaBs9GC1.js.map} +1 -1
- package/lib/cjs/InlineDescriptiveDropdown.cjs +1 -1
- package/lib/cjs/index.cjs +50 -12
- package/lib/cjs/index.cjs.map +1 -1
- package/lib/esm/AddressInput-OGU58AzF.js.map +1 -1
- package/lib/esm/GlobalStyle.js +1 -1
- package/lib/esm/InlineDatePicker-ClVBWEzW.js.map +1 -1
- package/lib/esm/{InlineDescriptiveDropdown-DrkAZ12b.js → InlineDescriptiveDropdown-Dr3tXxF5.js} +2 -2
- package/lib/esm/{InlineDescriptiveDropdown-DrkAZ12b.js.map → InlineDescriptiveDropdown-Dr3tXxF5.js.map} +1 -1
- package/lib/esm/InlineDescriptiveDropdown.js +1 -1
- package/lib/esm/index.js +51 -13
- package/lib/esm/index.js.map +1 -1
- package/lib/types/src/components/DigitalInput/DigitalInputStyles.d.ts +4 -0
- package/lib/types/src/components/DigitalInput/types.d.ts +3 -0
- package/lib/types/src/sharedTypes/types.d.ts +5 -0
- package/package.json +6 -3
package/lib/cjs/{InlineDescriptiveDropdown-BLC78YOL.js → InlineDescriptiveDropdown-BaBs9GC1.js}
RENAMED
|
@@ -27,7 +27,7 @@ var InlineDescriptiveDropdown = function (_a) {
|
|
|
27
27
|
var menuWidth = (themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.menuWidth) || 397;
|
|
28
28
|
var menuWidthMax = menuWidth > 700 ? 700 : menuWidth;
|
|
29
29
|
var confirmedMaxMenuHeight = maxMenuHeight && maxMenuHeight < 150 ? 150 : maxMenuHeight;
|
|
30
|
-
var confirmedMenuWidth = menuWidthMax
|
|
30
|
+
var confirmedMenuWidth = menuWidthMax < 180 ? 180 : menuWidthMax;
|
|
31
31
|
var radioType = switchType === SwitchTypeEnum.SwitchTypeEnum.Radio;
|
|
32
32
|
var confirmedStayOpen = stayOpen !== undefined ? stayOpen : !radioType;
|
|
33
33
|
var linkText = (taglessArray === null || taglessArray === void 0 ? void 0 : taglessArray.length) > 0 ? taglessArray === null || taglessArray === void 0 ? void 0 : taglessArray.join(", ") : buttonText;
|
|
@@ -86,4 +86,4 @@ var InlineDescriptiveDropdown = function (_a) {
|
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
exports.InlineDescriptiveDropdown = InlineDescriptiveDropdown;
|
|
89
|
-
//# sourceMappingURL=InlineDescriptiveDropdown-
|
|
89
|
+
//# sourceMappingURL=InlineDescriptiveDropdown-BaBs9GC1.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InlineDescriptiveDropdown-
|
|
1
|
+
{"version":3,"file":"InlineDescriptiveDropdown-BaBs9GC1.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var InlineDescriptiveDropdown = require('./InlineDescriptiveDropdown-
|
|
3
|
+
var InlineDescriptiveDropdown = require('./InlineDescriptiveDropdown-BaBs9GC1.js');
|
|
4
4
|
require('./_tslib-ByDtMVOd.js');
|
|
5
5
|
require('react/jsx-runtime');
|
|
6
6
|
require('react');
|
package/lib/cjs/index.cjs
CHANGED
|
@@ -133,7 +133,7 @@ var AddMenu = require('./AddMenu-Dg_u2cnf.js');
|
|
|
133
133
|
var ColorPicker = require('./ColorPicker-V2Bv8d9A.js');
|
|
134
134
|
var ColorDotDropdown = require('./ColorDotDropdown-DaAbxcMF.js');
|
|
135
135
|
var IconSwitcher = require('./IconSwitcher-BZNt5l8W.js');
|
|
136
|
-
var InlineDescriptiveDropdown = require('./InlineDescriptiveDropdown-
|
|
136
|
+
var InlineDescriptiveDropdown = require('./InlineDescriptiveDropdown-BaBs9GC1.js');
|
|
137
137
|
var StatusDropdown = require('./StatusDropdown-ki_sGs2E.js');
|
|
138
138
|
var GlobalStyle = require('./GlobalStyle.cjs');
|
|
139
139
|
var LayoutSidebar = require('./LayoutSidebar.cjs');
|
|
@@ -453,17 +453,28 @@ var Base$1 = styled.styled.div(templateObject_1$3 || (templateObject_1$3 = _tsli
|
|
|
453
453
|
var $roomForError = _a.$roomForError;
|
|
454
454
|
return ($roomForError ? 10 : 0);
|
|
455
455
|
});
|
|
456
|
-
var
|
|
456
|
+
var DashSeparator = styled.styled.span(templateObject_2$2 || (templateObject_2$2 = _tslib.__makeTemplateObject(["\n font-size: ", "px;\n color: ", ";\n font-weight: 500;\n display: flex;\n align-items: center;\n margin: 0 4px;\n"], ["\n font-size: ", "px;\n color: ", ";\n font-weight: 500;\n display: flex;\n align-items: center;\n margin: 0 4px;\n"])), function (_a) {
|
|
457
|
+
var _b;
|
|
458
|
+
var $themeOverride = _a.$themeOverride, theme = _a.theme;
|
|
459
|
+
return (_b = $themeOverride === null || $themeOverride === void 0 ? void 0 : $themeOverride.textFontSize) !== null && _b !== void 0 ? _b : theme.digitalInput.textFontSize;
|
|
460
|
+
}, function (_a) {
|
|
461
|
+
var _b, _c;
|
|
462
|
+
var disabled = _a.disabled, $themeOverride = _a.$themeOverride, theme = _a.theme;
|
|
463
|
+
return disabled
|
|
464
|
+
? ((_b = $themeOverride === null || $themeOverride === void 0 ? void 0 : $themeOverride.disabledColor) !== null && _b !== void 0 ? _b : theme.input.disabledColor)
|
|
465
|
+
: ((_c = $themeOverride === null || $themeOverride === void 0 ? void 0 : $themeOverride.textColor) !== null && _c !== void 0 ? _c : theme.input.textColor);
|
|
466
|
+
});
|
|
467
|
+
var InputGroup = styled.styled.div(templateObject_3$2 || (templateObject_3$2 = _tslib.__makeTemplateObject(["\n display: flex;\n gap: ", "px;\n"], ["\n display: flex;\n gap: ", "px;\n"])), function (_a) {
|
|
457
468
|
var _b;
|
|
458
469
|
var $themeOverride = _a.$themeOverride, theme = _a.theme;
|
|
459
470
|
return (_b = $themeOverride === null || $themeOverride === void 0 ? void 0 : $themeOverride.inputGap) !== null && _b !== void 0 ? _b : theme.digitalInput.inputGap;
|
|
460
471
|
});
|
|
461
|
-
var templateObject_1$3, templateObject_2$2;
|
|
472
|
+
var templateObject_1$3, templateObject_2$2, templateObject_3$2;
|
|
462
473
|
|
|
463
474
|
var DEFAULT_DIGIT_LENGTH = 6;
|
|
464
475
|
var DigitalInput = function (_a) {
|
|
465
476
|
var _b, _c, _d, _e, _f, _g, _h;
|
|
466
|
-
var autofocus = _a.autofocus, disabled = _a.disabled, _j = _a.digitLength, digitLength = _j === void 0 ? DEFAULT_DIGIT_LENGTH : _j, focus = _a.focus, helperText = _a.helperText, id = _a.id, innerHiddenRef = _a.innerHiddenRef, inputMode = _a.inputMode, label = _a.label, name = _a.name, onChange = _a.onChange, onComplete = _a.onComplete, onInputBlur = _a.onInputBlur, onInputFocus = _a.onInputFocus, _k = _a.required, required = _k === void 0 ? false : _k, showValidationMessage = _a.showValidationMessage, validationMessage = _a.validationMessage, value = _a.value, themeOverride = _a.themeOverride;
|
|
477
|
+
var autofocus = _a.autofocus, disabled = _a.disabled, _j = _a.digitLength, digitLength = _j === void 0 ? DEFAULT_DIGIT_LENGTH : _j, focus = _a.focus, helperText = _a.helperText, id = _a.id, innerHiddenRef = _a.innerHiddenRef, inputMode = _a.inputMode, label = _a.label, name = _a.name, onChange = _a.onChange, onComplete = _a.onComplete, onInputBlur = _a.onInputBlur, onInputFocus = _a.onInputFocus, _k = _a.required, required = _k === void 0 ? false : _k, showValidationMessage = _a.showValidationMessage, validationMessage = _a.validationMessage, value = _a.value, themeOverride = _a.themeOverride, prefix = _a.prefix;
|
|
467
478
|
// Refs
|
|
468
479
|
var inputRefs = React.useRef(Array.from({ length: digitLength }, function () { return React__default.default.createRef(); }));
|
|
469
480
|
var labelBoxRef = React.useRef(null);
|
|
@@ -568,6 +579,10 @@ var DigitalInput = function (_a) {
|
|
|
568
579
|
var pasteEvent = newValue.length > 1;
|
|
569
580
|
var updatedValues_1 = _tslib.__assign({}, stateLib);
|
|
570
581
|
if (pasteEvent) {
|
|
582
|
+
// If prefix is provided and the pasted value starts with prefix + dash, strip it
|
|
583
|
+
if (prefix && newValue.startsWith("".concat(prefix, "-"))) {
|
|
584
|
+
newValue = newValue.substring(prefix.length + 1);
|
|
585
|
+
}
|
|
571
586
|
var nextIndex_1 = index;
|
|
572
587
|
Array.from(newValue).forEach(function (char) {
|
|
573
588
|
if (nextIndex_1 < digitLength) {
|
|
@@ -617,18 +632,40 @@ var DigitalInput = function (_a) {
|
|
|
617
632
|
var handleEnter = function () {
|
|
618
633
|
onComplete === null || onComplete === void 0 ? void 0 : onComplete(value);
|
|
619
634
|
};
|
|
635
|
+
var getCommonInputProps = function () {
|
|
636
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
637
|
+
return ({
|
|
638
|
+
inputMode: inputMode || "text",
|
|
639
|
+
disabled: disabled,
|
|
640
|
+
noMinWidth: true,
|
|
641
|
+
sidePadding: 5,
|
|
642
|
+
// Theme props
|
|
643
|
+
activeBackgroundColor: (_b = (_a = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.activeBackgroundColor) !== null && _a !== void 0 ? _a : themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.inputBackgroundColor) !== null && _b !== void 0 ? _b : theme.input.inputBackgroundColor,
|
|
644
|
+
activeBorderColor: (_c = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.activeBorderColor) !== null && _c !== void 0 ? _c : theme.input.activeBorderColor,
|
|
645
|
+
disabledColor: (_d = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.disabledColor) !== null && _d !== void 0 ? _d : theme.input.disabledColor,
|
|
646
|
+
disabledBorderColor: (_e = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.disabledBorderColor) !== null && _e !== void 0 ? _e : theme.input.disabledBorderColor,
|
|
647
|
+
failColor: (_f = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.failColor) !== null && _f !== void 0 ? _f : theme.input.failColor,
|
|
648
|
+
failColorSecondary: "transparent",
|
|
649
|
+
hoverBorderColor: (_g = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.hoverBorderColor) !== null && _g !== void 0 ? _g : theme.input.hoverBorderColor,
|
|
650
|
+
inactiveBorderColor: (_h = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.inactiveBorderColor) !== null && _h !== void 0 ? _h : theme.input.inactiveBorderColor,
|
|
651
|
+
inputBackgroundColor: (_j = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.inputBackgroundColor) !== null && _j !== void 0 ? _j : theme.input.inputBackgroundColor,
|
|
652
|
+
inputBorderRadius: (_k = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.inputBorderRadius) !== null && _k !== void 0 ? _k : theme.input.inputBorderRadius,
|
|
653
|
+
inputHeight: (_l = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.inputHeight) !== null && _l !== void 0 ? _l : theme.input.inputHeight,
|
|
654
|
+
inputWidth: (_m = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.inputWidth) !== null && _m !== void 0 ? _m : theme.digitalInput.inputWidth,
|
|
655
|
+
textAlign: "center",
|
|
656
|
+
textColor: (_o = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.textColor) !== null && _o !== void 0 ? _o : theme.input.textColor,
|
|
657
|
+
textFontSize: (_p = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.textFontSize) !== null && _p !== void 0 ? _p : theme.digitalInput.textFontSize,
|
|
658
|
+
});
|
|
659
|
+
};
|
|
620
660
|
return (jsxRuntime.jsxs(Base$1, { ref: inputGroupRef, children: [jsxRuntime.jsxs(Inputs.LabelBox, { ref: labelBoxRef, children: [showLabel.showLabel({
|
|
621
661
|
inputLabel: label,
|
|
622
662
|
disabled: disabled,
|
|
623
663
|
disabledColor: (_b = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.disabledColor) !== null && _b !== void 0 ? _b : theme.input.disabledColor,
|
|
624
664
|
labelColor: (_c = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.labelColor) !== null && _c !== void 0 ? _c : theme.input.labelColor,
|
|
625
665
|
removePaddingRight: required,
|
|
626
|
-
}), required && (jsxRuntime.jsx(Inputs.Asterisk, { "aria-label": "Required", "$asteriskColor": (_d = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.asteriskColor) !== null && _d !== void 0 ? _d : theme.input.asteriskColor, children: "*" }))] }), jsxRuntime.jsx(Switches.HiddenInput, { "aria-label": typeof label === "string" ? label : "code input", disabled: disabled, name: name, id: id, onChange: isEmptyObject.noop, ref: innerHiddenRef, tabIndex: -1, type: "text", value: value }), jsxRuntime.
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
// Theme props
|
|
630
|
-
activeBackgroundColor: (_b = (_a = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.activeBackgroundColor) !== null && _a !== void 0 ? _a : themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.inputBackgroundColor) !== null && _b !== void 0 ? _b : theme.input.inputBackgroundColor, activeBorderColor: (_c = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.activeBorderColor) !== null && _c !== void 0 ? _c : theme.input.activeBorderColor, disabledColor: (_d = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.disabledColor) !== null && _d !== void 0 ? _d : theme.input.disabledColor, disabledBorderColor: (_e = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.disabledBorderColor) !== null && _e !== void 0 ? _e : theme.input.disabledBorderColor, failColor: (_f = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.failColor) !== null && _f !== void 0 ? _f : theme.input.failColor, failColorSecondary: "transparent", hoverBorderColor: (_g = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.hoverBorderColor) !== null && _g !== void 0 ? _g : theme.input.hoverBorderColor, inactiveBorderColor: (_h = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.inactiveBorderColor) !== null && _h !== void 0 ? _h : theme.input.inactiveBorderColor, inputBackgroundColor: (_j = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.inputBackgroundColor) !== null && _j !== void 0 ? _j : theme.input.inputBackgroundColor, inputBorderRadius: (_k = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.inputBorderRadius) !== null && _k !== void 0 ? _k : theme.input.inputBorderRadius, inputHeight: (_l = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.inputHeight) !== null && _l !== void 0 ? _l : theme.input.inputHeight, inputWidth: (_m = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.inputWidth) !== null && _m !== void 0 ? _m : theme.digitalInput.inputWidth, textAlign: "center", textColor: (_o = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.textColor) !== null && _o !== void 0 ? _o : theme.input.textColor, textFontSize: (_p = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.textFontSize) !== null && _p !== void 0 ? _p : theme.digitalInput.textFontSize }, "digitalInput_".concat(index)));
|
|
631
|
-
}) }), jsxRuntime.jsx(Inputs.ValidationText, { ref: validationRef, "$showValidationMessage": !!showValidationMessage, "$disabled": disabled, "$failColor": (_e = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.failColor) !== null && _e !== void 0 ? _e : theme.input.failColor, "$disabledColor": (_f = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.disabledColor) !== null && _f !== void 0 ? _f : theme.input.disabledColor, "$designSwitch": designSwitch && showValidationMessage, children: validationMessage }), helperTextVisible && (jsxRuntime.jsx(Inputs.HelperText, { "data-sentry-unmask": true, "$disabled": disabled, "$helperTextColor": (_g = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.helperTextColor) !== null && _g !== void 0 ? _g : theme.input.helperTextColor, "$disabledColor": (_h = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.disabledColor) !== null && _h !== void 0 ? _h : theme.input.disabledColor, children: helperText }))] }));
|
|
666
|
+
}), required && (jsxRuntime.jsx(Inputs.Asterisk, { "aria-label": "Required", "$asteriskColor": (_d = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.asteriskColor) !== null && _d !== void 0 ? _d : theme.input.asteriskColor, children: "*" }))] }), jsxRuntime.jsx(Switches.HiddenInput, { "aria-label": typeof label === "string" ? label : "code input", disabled: disabled, name: name, id: id, onChange: isEmptyObject.noop, ref: innerHiddenRef, tabIndex: -1, type: "text", value: value }), jsxRuntime.jsxs(InputGroup, { "$themeOverride": themeOverride, children: [prefix && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(InlineInput.InlineInput, _tslib.__assign({}, getCommonInputProps(), { clickable: false, onChange: isEmptyObject.noop, onClick: isEmptyObject.noop, onInputBlur: isEmptyObject.noop, onInputFocus: isEmptyObject.noop, onKeyDown: isEmptyObject.noop, showValidationMessage: false, value: prefix }), "prefixInput"), jsxRuntime.jsx(DashSeparator, { "$themeOverride": themeOverride, disabled: disabled, children: "-" })] })), Array.from({ length: digitLength }, function (_, index) {
|
|
667
|
+
return (jsxRuntime.jsx(InlineInput.InlineInput, _tslib.__assign({}, getCommonInputProps(), { autofocus: autofocus && index === 0 ? true : undefined, onChange: function (event) { return handleInputChange({ index: index, event: event }); }, onClick: function () { return handleInputClick(index); }, onEnter: handleEnter, onInputBlur: onInputBlur, onInputFocus: handleInputFocus, onKeyDown: function (event) { return handleKeyDown({ index: index, event: event }); }, showValidationMessage: showValidationMessage, innerRef: inputRefs.current[index], value: stateLib[index] }), "digitalInput_".concat(index)));
|
|
668
|
+
})] }), jsxRuntime.jsx(Inputs.ValidationText, { ref: validationRef, "$showValidationMessage": !!showValidationMessage, "$disabled": disabled, "$failColor": (_e = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.failColor) !== null && _e !== void 0 ? _e : theme.input.failColor, "$disabledColor": (_f = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.disabledColor) !== null && _f !== void 0 ? _f : theme.input.disabledColor, "$designSwitch": designSwitch && showValidationMessage, children: validationMessage }), helperTextVisible && (jsxRuntime.jsx(Inputs.HelperText, { "data-sentry-unmask": true, "$disabled": disabled, "$helperTextColor": (_g = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.helperTextColor) !== null && _g !== void 0 ? _g : theme.input.helperTextColor, "$disabledColor": (_h = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.disabledColor) !== null && _h !== void 0 ? _h : theme.input.disabledColor, children: helperText }))] }));
|
|
632
669
|
};
|
|
633
670
|
|
|
634
671
|
var Base = styled.styled.div(templateObject_1$2 || (templateObject_1$2 = _tslib.__makeTemplateObject(["\n display: grid;\n grid-template-rows: auto auto;\n gap: 25px;\n margin: 0;\n"], ["\n display: grid;\n grid-template-rows: auto auto;\n gap: 25px;\n margin: 0;\n"])));
|
|
@@ -18096,9 +18133,10 @@ function AddressField(props) {
|
|
|
18096
18133
|
var country = properties.country;
|
|
18097
18134
|
var handleChange = function (key, value, fullAddress) {
|
|
18098
18135
|
var _a;
|
|
18136
|
+
var _b, _c;
|
|
18099
18137
|
var newFormData = _tslib.__assign(_tslib.__assign({}, formData), (_a = {}, _a[key] = value, _a));
|
|
18100
18138
|
if (fullAddress) {
|
|
18101
|
-
newFormData = _tslib.__assign(_tslib.__assign({}, newFormData), { postalCode: fullAddress === null || fullAddress === void 0 ? void 0 : fullAddress.postalCode, state: fullAddress.state, city: fullAddress.city });
|
|
18139
|
+
newFormData = _tslib.__assign(_tslib.__assign({}, newFormData), { address: ((_c = (_b = fullAddress === null || fullAddress === void 0 ? void 0 : fullAddress.rawAddressObject) === null || _b === void 0 ? void 0 : _b.formattedSuggestion) === null || _c === void 0 ? void 0 : _c.mainText) || (fullAddress === null || fullAddress === void 0 ? void 0 : fullAddress.street), postalCode: fullAddress === null || fullAddress === void 0 ? void 0 : fullAddress.postalCode, state: fullAddress.state, city: fullAddress.city });
|
|
18102
18140
|
}
|
|
18103
18141
|
onChange(newFormData);
|
|
18104
18142
|
};
|
|
@@ -18415,7 +18453,7 @@ var DateField = function (props) {
|
|
|
18415
18453
|
};
|
|
18416
18454
|
return (jsxRuntime.jsx(FieldBox, { "$padding": contentPadding, children: jsxRuntime.jsx(DatePickerComponent, _tslib.__assign({ disabled: disabled }, (hideLabel ? {} : { helperText: schema.description }), { id: id }, (hideLabel ? {} : { inputLabel: label || schema.title || name }), { name: name, onChange: handleDateChange, onBlur: function () { return onBlur(id, formData); }, onFocus: function () { return onFocus(id, formData); }, placeholderText: placeholder }, (hideLabel ? {} : { required: required }), { selectedDate: formData, showValidationMessage: !!(rawErrors === null || rawErrors === void 0 ? void 0 : rawErrors[0]) }, (hideLabel ? {} : { validationMessage: rawErrors === null || rawErrors === void 0 ? void 0 : rawErrors[0] }), {
|
|
18417
18455
|
// uiSchema options
|
|
18418
|
-
activeBorderColor: ui.activeBorderColor, activeIconColor: ui.activeIconColor }, (hideLabel ? {} : { asteriskColor: ui.asteriskColor }), { calendarHeaderColor: ui.calendarHeaderColor, clearButton: true, dateFormat: ui.dateFormat || "MM / dd / yyyy", disabledColor: ui.disabledColor, failColor: ui.failColor, focus: ui.focus }, (hideLabel ? {} : { helperTextColor: ui.helperTextColor }), { hideIcon:
|
|
18456
|
+
activeBorderColor: ui.activeBorderColor, activeIconColor: ui.activeIconColor }, (hideLabel ? {} : { asteriskColor: ui.asteriskColor }), { calendarHeaderColor: ui.calendarHeaderColor, clearButton: true, dateFormat: ui.dateFormat || "MM / dd / yyyy", disabledColor: ui.disabledColor, failColor: ui.failColor, focus: ui.focus }, (hideLabel ? {} : { helperTextColor: ui.helperTextColor }), { hideIcon: true, noPicker: true, inactiveBorderColor: ui.inactiveBorderColor, inactiveIconColor: ui.inactiveIconColor, inputHeight: ui.inputHeight, inputWidth: ui.inputWidth }, (hideLabel ? {} : { labelColor: ui.labelColor }), { maxDateUnix: ui.maxDateUnix, minDateUnix: ui.minDateUnix, placeholderColor: ui.placeholderColor, selectedDateColor: ui.selectedDateColor, textColor: ui.textColor, textFontSize: ui.textFontSize, theme: ui.theme, yearOptionBegin: ui.yearOptionBegin, yearOptionEnd: ui.yearOptionEnd })) }));
|
|
18419
18457
|
};
|
|
18420
18458
|
|
|
18421
18459
|
var NUMBER_FIELD_INVALID_ERROR = "Please enter a valid number";
|