@thecb/components 8.4.10 → 8.4.11-beta.2
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/dist/index.cjs.js +71 -52
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +71 -52
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/checkbox/Checkbox.js +1 -1
- package/src/components/atoms/country-dropdown/CountryDropdown.js +4 -1
- package/src/components/atoms/dropdown/Dropdown.js +5 -3
- package/src/components/atoms/form-layouts/FormInput.js +1 -1
- package/src/components/atoms/form-select/FormSelect.js +24 -23
- package/src/components/molecules/address-form/AddressForm.js +15 -6
package/dist/index.esm.js
CHANGED
|
@@ -22142,7 +22142,7 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
22142
22142
|
onChange: onChange,
|
|
22143
22143
|
tabIndex: "-1",
|
|
22144
22144
|
"aria-invalid": error,
|
|
22145
|
-
"aria-
|
|
22145
|
+
"aria-describedBy": error ? "".concat(name, "-error-message") : ""
|
|
22146
22146
|
}), /*#__PURE__*/React.createElement(StyledCheckbox, {
|
|
22147
22147
|
error: error,
|
|
22148
22148
|
disabled: disabled,
|
|
@@ -23984,7 +23984,10 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
23984
23984
|
"aria-labelledby": ariaLabelledby,
|
|
23985
23985
|
"aria-describedby": ariaDescribedby,
|
|
23986
23986
|
"aria-expanded": isOpen,
|
|
23987
|
-
|
|
23987
|
+
"aria-live": "assertive",
|
|
23988
|
+
role: "combobox",
|
|
23989
|
+
disabled: disabled,
|
|
23990
|
+
autoComplete: autocompleteValue,
|
|
23988
23991
|
background: isOpen ? themeValues.hoverColor : WHITE,
|
|
23989
23992
|
borderRadius: "2px",
|
|
23990
23993
|
borderSize: "1px",
|
|
@@ -24004,7 +24007,6 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
24004
24007
|
},
|
|
24005
24008
|
padding: "12px",
|
|
24006
24009
|
placeholder: getSelection(),
|
|
24007
|
-
role: "combobox",
|
|
24008
24010
|
themeValues: themeValues,
|
|
24009
24011
|
title: hasTitles ? getSelection() : null,
|
|
24010
24012
|
type: "text",
|
|
@@ -24035,7 +24037,7 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
24035
24037
|
id: focusedRef === optionRefs.current[i] ? "focused_option" : choice.value,
|
|
24036
24038
|
key: choice.value,
|
|
24037
24039
|
ref: optionRefs.current[i],
|
|
24038
|
-
tabIndex:
|
|
24040
|
+
tabIndex: 0,
|
|
24039
24041
|
onClick: function onClick(e) {
|
|
24040
24042
|
return handleItemSelection(e, choice, i);
|
|
24041
24043
|
},
|
|
@@ -24147,6 +24149,8 @@ var fallbackValues$g = {
|
|
|
24147
24149
|
hoverFocusStyles: hoverFocusStyles
|
|
24148
24150
|
};
|
|
24149
24151
|
|
|
24152
|
+
var _excluded$o = ["fieldActions", "labelTextWhenNoError", "errorMessages", "options", "field", "showErrors", "onChange", "dropdownMaxHeight", "disabledValues", "disabled", "themeValues", "hasTitles", "autocompleteValue", "smoothScroll"];
|
|
24153
|
+
|
|
24150
24154
|
var FormSelect = function FormSelect(_ref) {
|
|
24151
24155
|
var fieldActions = _ref.fieldActions,
|
|
24152
24156
|
labelTextWhenNoError = _ref.labelTextWhenNoError,
|
|
@@ -24163,7 +24167,8 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24163
24167
|
hasTitles = _ref$hasTitles === void 0 ? false : _ref$hasTitles,
|
|
24164
24168
|
autocompleteValue = _ref.autocompleteValue,
|
|
24165
24169
|
_ref$smoothScroll = _ref.smoothScroll,
|
|
24166
|
-
smoothScroll = _ref$smoothScroll === void 0 ? true : _ref$smoothScroll
|
|
24170
|
+
smoothScroll = _ref$smoothScroll === void 0 ? true : _ref$smoothScroll,
|
|
24171
|
+
rest = _objectWithoutProperties(_ref, _excluded$o);
|
|
24167
24172
|
|
|
24168
24173
|
var _useState = useState(false),
|
|
24169
24174
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -24184,10 +24189,10 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24184
24189
|
document.removeEventListener("mousedown", handleClickAway);
|
|
24185
24190
|
};
|
|
24186
24191
|
});
|
|
24187
|
-
return /*#__PURE__*/React.createElement(SelectContainer, {
|
|
24192
|
+
return /*#__PURE__*/React.createElement(SelectContainer, _extends({
|
|
24188
24193
|
ref: dropdownRef,
|
|
24189
24194
|
disabled: disabled
|
|
24190
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
24195
|
+
}, rest), /*#__PURE__*/React.createElement(Box, {
|
|
24191
24196
|
padding: "0",
|
|
24192
24197
|
minWidth: "100%"
|
|
24193
24198
|
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
@@ -24201,8 +24206,8 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24201
24206
|
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
|
|
24202
24207
|
id: createIdFromString(labelTextWhenNoError)
|
|
24203
24208
|
}, labelTextWhenNoError))), /*#__PURE__*/React.createElement(Dropdown$1, {
|
|
24204
|
-
|
|
24205
|
-
|
|
24209
|
+
"aria-labelledBy": createIdFromString(labelTextWhenNoError),
|
|
24210
|
+
"aria-describedBy": createIdFromString(labelTextWhenNoError, "error message"),
|
|
24206
24211
|
maxHeight: dropdownMaxHeight,
|
|
24207
24212
|
hasTitles: hasTitles,
|
|
24208
24213
|
placeholder: options[0] ? options[0].text : "",
|
|
@@ -24219,22 +24224,22 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24219
24224
|
onClick: function onClick() {
|
|
24220
24225
|
return setOpen(!open);
|
|
24221
24226
|
},
|
|
24222
|
-
disabled: disabled,
|
|
24227
|
+
"aria-disabled": disabled,
|
|
24223
24228
|
autocompleteValue: autocompleteValue,
|
|
24224
|
-
smoothScroll: smoothScroll
|
|
24229
|
+
smoothScroll: smoothScroll,
|
|
24230
|
+
required: options.required
|
|
24225
24231
|
}), /*#__PURE__*/React.createElement(Stack, {
|
|
24226
24232
|
direction: "row",
|
|
24227
24233
|
justify: "space-between",
|
|
24228
|
-
"aria-live": "
|
|
24229
|
-
},
|
|
24234
|
+
"aria-live": "assertive"
|
|
24235
|
+
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
24230
24236
|
color: ERROR_COLOR,
|
|
24231
24237
|
variant: "pXS",
|
|
24232
24238
|
weight: themeValues.fontWeight,
|
|
24233
|
-
extraStyles: "word-break: break-word;\n
|
|
24234
|
-
id: createIdFromString(labelTextWhenNoError, "error message")
|
|
24235
|
-
|
|
24236
|
-
|
|
24237
|
-
})));
|
|
24239
|
+
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
|
|
24240
|
+
id: createIdFromString(labelTextWhenNoError, "error message"),
|
|
24241
|
+
"aria-live": "assertive"
|
|
24242
|
+
}, field.hasErrors && field.dirty || field.hasErrors && showErrors ? errorMessages[field.errors[0]] : "")));
|
|
24238
24243
|
};
|
|
24239
24244
|
|
|
24240
24245
|
var FormSelect$1 = themeComponent(FormSelect, "FormSelect", fallbackValues$g, "default");
|
|
@@ -24982,14 +24987,18 @@ var options = [{
|
|
|
24982
24987
|
value: "ZW"
|
|
24983
24988
|
}];
|
|
24984
24989
|
|
|
24990
|
+
var _excluded$p = ["labelTextWhenNoError", "errorMessages", "field", "fieldActions", "showErrors", "onChange"];
|
|
24991
|
+
|
|
24985
24992
|
var CountryDropdown = function CountryDropdown(_ref) {
|
|
24986
24993
|
var labelTextWhenNoError = _ref.labelTextWhenNoError,
|
|
24987
24994
|
errorMessages = _ref.errorMessages,
|
|
24988
24995
|
field = _ref.field,
|
|
24989
24996
|
fieldActions = _ref.fieldActions,
|
|
24990
24997
|
showErrors = _ref.showErrors,
|
|
24991
|
-
onChange = _ref.onChange
|
|
24992
|
-
|
|
24998
|
+
onChange = _ref.onChange,
|
|
24999
|
+
rest = _objectWithoutProperties(_ref, _excluded$p);
|
|
25000
|
+
|
|
25001
|
+
return /*#__PURE__*/React.createElement(FormSelect$1, _extends({
|
|
24993
25002
|
options: options,
|
|
24994
25003
|
field: field,
|
|
24995
25004
|
fieldActions: fieldActions,
|
|
@@ -24997,8 +25006,9 @@ var CountryDropdown = function CountryDropdown(_ref) {
|
|
|
24997
25006
|
errorMessages: errorMessages,
|
|
24998
25007
|
showErrors: showErrors,
|
|
24999
25008
|
onChange: onChange,
|
|
25000
|
-
autocompleteValue: "country-name"
|
|
25001
|
-
|
|
25009
|
+
autocompleteValue: "country-name",
|
|
25010
|
+
autoComplete: "country-name"
|
|
25011
|
+
}, rest));
|
|
25002
25012
|
};
|
|
25003
25013
|
|
|
25004
25014
|
var DetailText = styled.p.withConfig({
|
|
@@ -25064,7 +25074,7 @@ var mobileFallbackValues$1 = {
|
|
|
25064
25074
|
};
|
|
25065
25075
|
var MOBILE_BREAKPOINT$1 = 768;
|
|
25066
25076
|
|
|
25067
|
-
var _excluded$
|
|
25077
|
+
var _excluded$q = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
25068
25078
|
/*
|
|
25069
25079
|
New responsive text component for Detail elements
|
|
25070
25080
|
(Block level text elements which are smaller than "Title" elements)
|
|
@@ -25114,7 +25124,7 @@ var Detail = function Detail(_ref) {
|
|
|
25114
25124
|
as = _ref$as === void 0 ? "p" : _ref$as,
|
|
25115
25125
|
dataQa = _ref.dataQa,
|
|
25116
25126
|
children = _ref.children,
|
|
25117
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
25127
|
+
rest = _objectWithoutProperties(_ref, _excluded$q);
|
|
25118
25128
|
|
|
25119
25129
|
return /*#__PURE__*/React.createElement(DetailText, _extends({
|
|
25120
25130
|
variant: variant,
|
|
@@ -25838,7 +25848,7 @@ var fallbackValues$k = {
|
|
|
25838
25848
|
formFooterPanel: formFooterPanel
|
|
25839
25849
|
};
|
|
25840
25850
|
|
|
25841
|
-
var _excluded$
|
|
25851
|
+
var _excluded$r = ["showErrors", "themeValues"],
|
|
25842
25852
|
_excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocomplete", "extraStyles", "removeFromValue"];
|
|
25843
25853
|
var InputField = styled.input.withConfig({
|
|
25844
25854
|
displayName: "FormInput__InputField",
|
|
@@ -25872,7 +25882,7 @@ var InputField = styled.input.withConfig({
|
|
|
25872
25882
|
var FormattedInputField = styled(function (_ref8) {
|
|
25873
25883
|
var showErrors = _ref8.showErrors,
|
|
25874
25884
|
themeValues = _ref8.themeValues,
|
|
25875
|
-
props = _objectWithoutProperties(_ref8, _excluded$
|
|
25885
|
+
props = _objectWithoutProperties(_ref8, _excluded$r);
|
|
25876
25886
|
|
|
25877
25887
|
return /*#__PURE__*/React.createElement(FormattedInput, props);
|
|
25878
25888
|
}).withConfig({
|
|
@@ -26032,7 +26042,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26032
26042
|
}, props))), /*#__PURE__*/React.createElement(Stack, {
|
|
26033
26043
|
direction: "row",
|
|
26034
26044
|
justify: "space-between",
|
|
26035
|
-
|
|
26045
|
+
role: "alert"
|
|
26036
26046
|
}, field.hasErrors && field.dirty || field.hasErrors && showErrors ? /*#__PURE__*/React.createElement(Text$1, {
|
|
26037
26047
|
color: ERROR_COLOR,
|
|
26038
26048
|
variant: "pXS",
|
|
@@ -26048,7 +26058,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26048
26058
|
|
|
26049
26059
|
var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$k, "default");
|
|
26050
26060
|
|
|
26051
|
-
var _excluded$
|
|
26061
|
+
var _excluded$s = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
|
|
26052
26062
|
|
|
26053
26063
|
var FormInputRow = function FormInputRow(_ref) {
|
|
26054
26064
|
var _ref$breakpoint = _ref.breakpoint,
|
|
@@ -26058,7 +26068,7 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
26058
26068
|
largeChild = _ref.largeChild,
|
|
26059
26069
|
largeChildSize = _ref.largeChildSize,
|
|
26060
26070
|
children = _ref.children,
|
|
26061
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26071
|
+
rest = _objectWithoutProperties(_ref, _excluded$s);
|
|
26062
26072
|
|
|
26063
26073
|
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
26064
26074
|
padding: "0"
|
|
@@ -26070,14 +26080,14 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
26070
26080
|
}, children));
|
|
26071
26081
|
};
|
|
26072
26082
|
|
|
26073
|
-
var _excluded$
|
|
26083
|
+
var _excluded$t = ["childGap", "bottomItem", "children"];
|
|
26074
26084
|
|
|
26075
26085
|
var FormInputColumn = function FormInputColumn(_ref) {
|
|
26076
26086
|
var _ref$childGap = _ref.childGap,
|
|
26077
26087
|
childGap = _ref$childGap === void 0 ? "0.5rem" : _ref$childGap,
|
|
26078
26088
|
bottomItem = _ref.bottomItem,
|
|
26079
26089
|
children = _ref.children,
|
|
26080
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26090
|
+
rest = _objectWithoutProperties(_ref, _excluded$t);
|
|
26081
26091
|
|
|
26082
26092
|
return /*#__PURE__*/React.createElement(Stack, _extends({
|
|
26083
26093
|
childGap: childGap,
|
|
@@ -26085,12 +26095,12 @@ var FormInputColumn = function FormInputColumn(_ref) {
|
|
|
26085
26095
|
}, rest), children);
|
|
26086
26096
|
};
|
|
26087
26097
|
|
|
26088
|
-
var _excluded$
|
|
26098
|
+
var _excluded$u = ["themeValues", "children"];
|
|
26089
26099
|
|
|
26090
26100
|
var FormContainer = function FormContainer(_ref) {
|
|
26091
26101
|
var themeValues = _ref.themeValues,
|
|
26092
26102
|
children = _ref.children,
|
|
26093
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26103
|
+
rest = _objectWithoutProperties(_ref, _excluded$u);
|
|
26094
26104
|
|
|
26095
26105
|
var _useContext = useContext(ThemeContext),
|
|
26096
26106
|
isMobile = _useContext.isMobile;
|
|
@@ -26355,7 +26365,7 @@ var fallbackValues$o = {
|
|
|
26355
26365
|
fontSize: fontSize$8
|
|
26356
26366
|
};
|
|
26357
26367
|
|
|
26358
|
-
var _excluded$
|
|
26368
|
+
var _excluded$v = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
26359
26369
|
|
|
26360
26370
|
var Heading = function Heading(_ref) {
|
|
26361
26371
|
var themeValues = _ref.themeValues,
|
|
@@ -26375,7 +26385,7 @@ var Heading = function Heading(_ref) {
|
|
|
26375
26385
|
as = _ref$as === void 0 ? variant : _ref$as,
|
|
26376
26386
|
dataQa = _ref.dataQa,
|
|
26377
26387
|
children = _ref.children,
|
|
26378
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26388
|
+
rest = _objectWithoutProperties(_ref, _excluded$v);
|
|
26379
26389
|
|
|
26380
26390
|
return /*#__PURE__*/React.createElement(HeadingText, _extends({
|
|
26381
26391
|
variant: variant,
|
|
@@ -26666,7 +26676,7 @@ var Loading = function Loading() {
|
|
|
26666
26676
|
})))));
|
|
26667
26677
|
};
|
|
26668
26678
|
|
|
26669
|
-
var _excluded$
|
|
26679
|
+
var _excluded$w = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
|
|
26670
26680
|
|
|
26671
26681
|
var NavFooter = function NavFooter(_ref) {
|
|
26672
26682
|
var leftContent = _ref.leftContent,
|
|
@@ -26682,7 +26692,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
26682
26692
|
footerPadding = _ref$footerPadding === void 0 ? "1.5rem 1rem" : _ref$footerPadding,
|
|
26683
26693
|
isMobile = _ref.isMobile,
|
|
26684
26694
|
footerWidth = _ref.footerWidth,
|
|
26685
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26695
|
+
rest = _objectWithoutProperties(_ref, _excluded$w);
|
|
26686
26696
|
|
|
26687
26697
|
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
26688
26698
|
padding: footerPadding,
|
|
@@ -26714,7 +26724,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
26714
26724
|
}, rightContent)))))));
|
|
26715
26725
|
};
|
|
26716
26726
|
|
|
26717
|
-
var _excluded$
|
|
26727
|
+
var _excluded$x = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
|
|
26718
26728
|
|
|
26719
26729
|
var NavHeader = function NavHeader(_ref) {
|
|
26720
26730
|
var leftContent = _ref.leftContent,
|
|
@@ -26724,7 +26734,7 @@ var NavHeader = function NavHeader(_ref) {
|
|
|
26724
26734
|
isMobile = _ref.isMobile,
|
|
26725
26735
|
backgroundColor = _ref.backgroundColor,
|
|
26726
26736
|
headerWidth = _ref.headerWidth,
|
|
26727
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26737
|
+
rest = _objectWithoutProperties(_ref, _excluded$x);
|
|
26728
26738
|
|
|
26729
26739
|
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
26730
26740
|
padding: "0 16px 4px",
|
|
@@ -38499,7 +38509,7 @@ var TableRowWrapper = styled.tr.withConfig({
|
|
|
38499
38509
|
return extraStyles;
|
|
38500
38510
|
});
|
|
38501
38511
|
|
|
38502
|
-
var _excluded$
|
|
38512
|
+
var _excluded$y = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
|
|
38503
38513
|
|
|
38504
38514
|
var TableRow = function TableRow(_ref) {
|
|
38505
38515
|
var children = _ref.children,
|
|
@@ -38509,7 +38519,7 @@ var TableRow = function TableRow(_ref) {
|
|
|
38509
38519
|
hoverEffect = _ref$hoverEffect === void 0 ? true : _ref$hoverEffect,
|
|
38510
38520
|
onClick = _ref.onClick,
|
|
38511
38521
|
themeValues = _ref.themeValues,
|
|
38512
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
38522
|
+
props = _objectWithoutProperties(_ref, _excluded$y);
|
|
38513
38523
|
|
|
38514
38524
|
return /*#__PURE__*/React.createElement(TableRowWrapper, _extends({
|
|
38515
38525
|
onClick: onClick,
|
|
@@ -40363,17 +40373,20 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40363
40373
|
actions.fields.zip.set("");
|
|
40364
40374
|
}
|
|
40365
40375
|
},
|
|
40366
|
-
showErrors: showErrors
|
|
40376
|
+
showErrors: showErrors,
|
|
40377
|
+
"aria-label": "country"
|
|
40367
40378
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
40368
40379
|
labelTextWhenNoError: "Address",
|
|
40369
40380
|
errorMessages: street1ErrorMessages,
|
|
40381
|
+
required: true,
|
|
40370
40382
|
field: fields.street1,
|
|
40371
40383
|
fieldActions: actions.fields.street1,
|
|
40372
40384
|
showErrors: showErrors,
|
|
40373
40385
|
onKeyDown: function onKeyDown(e) {
|
|
40374
40386
|
return e.key === "Enter" && handleSubmit(e);
|
|
40375
40387
|
},
|
|
40376
|
-
|
|
40388
|
+
autoComplete: "address-line1",
|
|
40389
|
+
"aria-label": "address line 1"
|
|
40377
40390
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
40378
40391
|
labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
|
|
40379
40392
|
field: fields.street2,
|
|
@@ -40382,9 +40395,11 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40382
40395
|
onKeyDown: function onKeyDown(e) {
|
|
40383
40396
|
return e.key === "Enter" && handleSubmit(e);
|
|
40384
40397
|
},
|
|
40385
|
-
|
|
40398
|
+
autoComplete: "address-line2",
|
|
40399
|
+
"aria-label": "address line 2"
|
|
40386
40400
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
40387
40401
|
labelTextWhenNoError: "City",
|
|
40402
|
+
required: true,
|
|
40388
40403
|
errorMessages: cityErrorMessages,
|
|
40389
40404
|
field: fields.city,
|
|
40390
40405
|
fieldActions: actions.fields.city,
|
|
@@ -40392,7 +40407,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40392
40407
|
onKeyDown: function onKeyDown(e) {
|
|
40393
40408
|
return e.key === "Enter" && handleSubmit(e);
|
|
40394
40409
|
},
|
|
40395
|
-
|
|
40410
|
+
autoComplete: "locality",
|
|
40411
|
+
"aria-label": "city"
|
|
40396
40412
|
}), /*#__PURE__*/React.createElement(FormStateDropdown, {
|
|
40397
40413
|
labelTextWhenNoError: isUS ? "State" : "State or Province",
|
|
40398
40414
|
errorMessages: stateProvinceErrorMessages,
|
|
@@ -40403,7 +40419,9 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40403
40419
|
onKeyDown: function onKeyDown(e) {
|
|
40404
40420
|
return e.key === "Enter" && handleSubmit(e);
|
|
40405
40421
|
},
|
|
40406
|
-
|
|
40422
|
+
autoComplete: "administrative-area",
|
|
40423
|
+
"aria-label": isUS ? "state" : "state or province",
|
|
40424
|
+
required: true
|
|
40407
40425
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
40408
40426
|
isNum: isUS,
|
|
40409
40427
|
formatter: isUS ? zipFormat : null,
|
|
@@ -40415,10 +40433,11 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40415
40433
|
onKeyDown: function onKeyDown(e) {
|
|
40416
40434
|
return e.key === "Enter" && handleSubmit(e);
|
|
40417
40435
|
},
|
|
40418
|
-
|
|
40436
|
+
"aria-label": "zip code",
|
|
40437
|
+
autoComplete: "postal-code"
|
|
40419
40438
|
}), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
40420
40439
|
name: "address checkbox",
|
|
40421
|
-
title: "Save address to
|
|
40440
|
+
title: "Save address to Wallet",
|
|
40422
40441
|
checked: walletCheckboxMarked,
|
|
40423
40442
|
onChange: saveToWallet
|
|
40424
40443
|
})));
|
|
@@ -48134,7 +48153,7 @@ var fallbackValues$N = {
|
|
|
48134
48153
|
labeledAmountTotal: labeledAmountTotal
|
|
48135
48154
|
};
|
|
48136
48155
|
|
|
48137
|
-
var _excluded$
|
|
48156
|
+
var _excluded$z = ["amount"],
|
|
48138
48157
|
_excluded2$1 = ["amount"];
|
|
48139
48158
|
|
|
48140
48159
|
var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
@@ -48344,7 +48363,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
48344
48363
|
return fee.amount > 0;
|
|
48345
48364
|
}).map(function (_ref5) {
|
|
48346
48365
|
var amount = _ref5.amount,
|
|
48347
|
-
rest = _objectWithoutProperties(_ref5, _excluded$
|
|
48366
|
+
rest = _objectWithoutProperties(_ref5, _excluded$z);
|
|
48348
48367
|
|
|
48349
48368
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
48350
48369
|
amount: displayCurrency(amount)
|
|
@@ -48778,12 +48797,12 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
48778
48797
|
}, errorMessage)))));
|
|
48779
48798
|
};
|
|
48780
48799
|
|
|
48781
|
-
var _excluded$
|
|
48800
|
+
var _excluded$A = ["version"];
|
|
48782
48801
|
|
|
48783
48802
|
var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
48784
48803
|
var _ref$version = _ref.version,
|
|
48785
48804
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
48786
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
48805
|
+
rest = _objectWithoutProperties(_ref, _excluded$A);
|
|
48787
48806
|
|
|
48788
48807
|
var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
|
|
48789
48808
|
return /*#__PURE__*/React.createElement(TermsAndConditionsControl, rest);
|