@thecb/components 9.3.0-beta.1 → 9.3.0-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 +20 -9
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +20 -9
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/state-province-dropdown/StateProvinceDropdown.stories.js +1 -0
- package/src/components/molecules/payment-form-card/PaymentFormCard.js +6 -0
- package/src/components/molecules/radio-section/RadioSection.js +2 -1
- package/src/components/molecules/radio-section/RadioSection.stories.js +3 -2
- package/src/components/molecules/radio-section/radio-button/RadioButton.js +4 -1
package/dist/index.esm.js
CHANGED
|
@@ -27288,7 +27288,9 @@ var RadioButton$1 = function RadioButton(_ref2) {
|
|
|
27288
27288
|
_ref2$ariaLabelledBy = _ref2.ariaLabelledBy,
|
|
27289
27289
|
ariaLabelledBy = _ref2$ariaLabelledBy === void 0 ? "" : _ref2$ariaLabelledBy,
|
|
27290
27290
|
_ref2$ariaLabel = _ref2.ariaLabel,
|
|
27291
|
-
ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel
|
|
27291
|
+
ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel,
|
|
27292
|
+
_ref2$required = _ref2.required,
|
|
27293
|
+
required = _ref2$required === void 0 ? false : _ref2$required;
|
|
27292
27294
|
var buttonBorder = {
|
|
27293
27295
|
onFocused: {
|
|
27294
27296
|
borderColor: themeValues.activeColor,
|
|
@@ -27348,6 +27350,8 @@ var RadioButton$1 = function RadioButton(_ref2) {
|
|
|
27348
27350
|
type: "radio",
|
|
27349
27351
|
id: "radio-".concat(name),
|
|
27350
27352
|
disabled: disabled,
|
|
27353
|
+
required: required,
|
|
27354
|
+
"aria-required": required,
|
|
27351
27355
|
onClick: toggleRadio,
|
|
27352
27356
|
"aria-describedby": ariaDescribedBy,
|
|
27353
27357
|
tabIndex: "-1"
|
|
@@ -48189,7 +48193,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48189
48193
|
onKeyDown: function onKeyDown(e) {
|
|
48190
48194
|
return e.key === "Enter" && handleSubmit(e);
|
|
48191
48195
|
},
|
|
48192
|
-
autocompleteValue: "cc-name"
|
|
48196
|
+
autocompleteValue: "cc-name",
|
|
48197
|
+
isRequired: true
|
|
48193
48198
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
48194
48199
|
labelTextWhenNoError: "Credit card number",
|
|
48195
48200
|
dataQa: "Credit card number",
|
|
@@ -48202,7 +48207,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48202
48207
|
return e.key === "Enter" && handleSubmit(e);
|
|
48203
48208
|
},
|
|
48204
48209
|
isNum: true,
|
|
48205
|
-
autocompleteValue: "cc-number"
|
|
48210
|
+
autocompleteValue: "cc-number",
|
|
48211
|
+
isRequired: true
|
|
48206
48212
|
}), /*#__PURE__*/React.createElement(FormInputRow, {
|
|
48207
48213
|
breakpoint: isMobile ? "1000rem" : "21rem",
|
|
48208
48214
|
childGap: isMobile ? "0rem" : "1rem"
|
|
@@ -48220,7 +48226,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48220
48226
|
isNum: true,
|
|
48221
48227
|
removeFromValue: /\// // removes "/" from browser autofill
|
|
48222
48228
|
,
|
|
48223
|
-
autocompleteValue: "cc-exp"
|
|
48229
|
+
autocompleteValue: "cc-exp",
|
|
48230
|
+
isRequired: true
|
|
48224
48231
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
48225
48232
|
labelTextWhenNoError: "CVV",
|
|
48226
48233
|
dataQa: "CVV",
|
|
@@ -48233,7 +48240,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48233
48240
|
onKeyDown: function onKeyDown(e) {
|
|
48234
48241
|
return e.key === "Enter" && handleSubmit(e);
|
|
48235
48242
|
},
|
|
48236
|
-
autocompleteValue: "cc-csc"
|
|
48243
|
+
autocompleteValue: "cc-csc",
|
|
48244
|
+
isRequired: true
|
|
48237
48245
|
})), !hideZipCode && /*#__PURE__*/React.createElement(Box, {
|
|
48238
48246
|
padding: isMobile ? "0" : "0 0.5rem 0 0",
|
|
48239
48247
|
width: isMobile ? "100%" : "50%"
|
|
@@ -48249,7 +48257,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48249
48257
|
onKeyDown: function onKeyDown(e) {
|
|
48250
48258
|
return e.key === "Enter" && handleSubmit(e);
|
|
48251
48259
|
},
|
|
48252
|
-
autocompleteValue: "billing postal-code"
|
|
48260
|
+
autocompleteValue: "billing postal-code",
|
|
48261
|
+
isRequired: true
|
|
48253
48262
|
})), (showWalletCheckbox || showTerms) && /*#__PURE__*/React.createElement(Cluster, {
|
|
48254
48263
|
childGap: "4px",
|
|
48255
48264
|
align: "center"
|
|
@@ -48265,7 +48274,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48265
48274
|
version: "v2",
|
|
48266
48275
|
showCheckbox: false,
|
|
48267
48276
|
description: "View",
|
|
48268
|
-
terms: termsContent
|
|
48277
|
+
terms: termsContent,
|
|
48278
|
+
isRequired: true
|
|
48269
48279
|
})))));
|
|
48270
48280
|
};
|
|
48271
48281
|
|
|
@@ -48718,7 +48728,8 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48718
48728
|
toggleRadio: section.disabled ? noop : function () {
|
|
48719
48729
|
return toggleOpenSection(section.id);
|
|
48720
48730
|
},
|
|
48721
|
-
tabIndex: "-1"
|
|
48731
|
+
tabIndex: "-1",
|
|
48732
|
+
required: section === null || section === void 0 ? void 0 : section.required
|
|
48722
48733
|
})), section.titleIcon && /*#__PURE__*/React.createElement(Cluster, {
|
|
48723
48734
|
align: "center"
|
|
48724
48735
|
}, section.titleIcon), /*#__PURE__*/React.createElement(Box, {
|
|
@@ -48730,7 +48741,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48730
48741
|
}, section.title))), section.rightIcons && /*#__PURE__*/React.createElement(Cluster, {
|
|
48731
48742
|
childGap: "0.5rem",
|
|
48732
48743
|
"aria-label": (section === null || section === void 0 ? void 0 : section.rightIconsLabel) || null,
|
|
48733
|
-
role: (section === null || section === void 0 ? void 0 : section.rightIconsRole) ||
|
|
48744
|
+
role: (section === null || section === void 0 ? void 0 : section.rightIconsRole) || "group"
|
|
48734
48745
|
}, section.rightIcons.map(function (icon) {
|
|
48735
48746
|
return /*#__PURE__*/React.createElement(RightIcon, {
|
|
48736
48747
|
src: icon.img,
|