@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.cjs.js
CHANGED
|
@@ -27296,7 +27296,9 @@ var RadioButton$1 = function RadioButton(_ref2) {
|
|
|
27296
27296
|
_ref2$ariaLabelledBy = _ref2.ariaLabelledBy,
|
|
27297
27297
|
ariaLabelledBy = _ref2$ariaLabelledBy === void 0 ? "" : _ref2$ariaLabelledBy,
|
|
27298
27298
|
_ref2$ariaLabel = _ref2.ariaLabel,
|
|
27299
|
-
ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel
|
|
27299
|
+
ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel,
|
|
27300
|
+
_ref2$required = _ref2.required,
|
|
27301
|
+
required = _ref2$required === void 0 ? false : _ref2$required;
|
|
27300
27302
|
var buttonBorder = {
|
|
27301
27303
|
onFocused: {
|
|
27302
27304
|
borderColor: themeValues.activeColor,
|
|
@@ -27356,6 +27358,8 @@ var RadioButton$1 = function RadioButton(_ref2) {
|
|
|
27356
27358
|
type: "radio",
|
|
27357
27359
|
id: "radio-".concat(name),
|
|
27358
27360
|
disabled: disabled,
|
|
27361
|
+
required: required,
|
|
27362
|
+
"aria-required": required,
|
|
27359
27363
|
onClick: toggleRadio,
|
|
27360
27364
|
"aria-describedby": ariaDescribedBy,
|
|
27361
27365
|
tabIndex: "-1"
|
|
@@ -48197,7 +48201,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48197
48201
|
onKeyDown: function onKeyDown(e) {
|
|
48198
48202
|
return e.key === "Enter" && handleSubmit(e);
|
|
48199
48203
|
},
|
|
48200
|
-
autocompleteValue: "cc-name"
|
|
48204
|
+
autocompleteValue: "cc-name",
|
|
48205
|
+
isRequired: true
|
|
48201
48206
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48202
48207
|
labelTextWhenNoError: "Credit card number",
|
|
48203
48208
|
dataQa: "Credit card number",
|
|
@@ -48210,7 +48215,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48210
48215
|
return e.key === "Enter" && handleSubmit(e);
|
|
48211
48216
|
},
|
|
48212
48217
|
isNum: true,
|
|
48213
|
-
autocompleteValue: "cc-number"
|
|
48218
|
+
autocompleteValue: "cc-number",
|
|
48219
|
+
isRequired: true
|
|
48214
48220
|
}), /*#__PURE__*/React__default.createElement(FormInputRow, {
|
|
48215
48221
|
breakpoint: isMobile ? "1000rem" : "21rem",
|
|
48216
48222
|
childGap: isMobile ? "0rem" : "1rem"
|
|
@@ -48228,7 +48234,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48228
48234
|
isNum: true,
|
|
48229
48235
|
removeFromValue: /\// // removes "/" from browser autofill
|
|
48230
48236
|
,
|
|
48231
|
-
autocompleteValue: "cc-exp"
|
|
48237
|
+
autocompleteValue: "cc-exp",
|
|
48238
|
+
isRequired: true
|
|
48232
48239
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48233
48240
|
labelTextWhenNoError: "CVV",
|
|
48234
48241
|
dataQa: "CVV",
|
|
@@ -48241,7 +48248,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48241
48248
|
onKeyDown: function onKeyDown(e) {
|
|
48242
48249
|
return e.key === "Enter" && handleSubmit(e);
|
|
48243
48250
|
},
|
|
48244
|
-
autocompleteValue: "cc-csc"
|
|
48251
|
+
autocompleteValue: "cc-csc",
|
|
48252
|
+
isRequired: true
|
|
48245
48253
|
})), !hideZipCode && /*#__PURE__*/React__default.createElement(Box, {
|
|
48246
48254
|
padding: isMobile ? "0" : "0 0.5rem 0 0",
|
|
48247
48255
|
width: isMobile ? "100%" : "50%"
|
|
@@ -48257,7 +48265,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48257
48265
|
onKeyDown: function onKeyDown(e) {
|
|
48258
48266
|
return e.key === "Enter" && handleSubmit(e);
|
|
48259
48267
|
},
|
|
48260
|
-
autocompleteValue: "billing postal-code"
|
|
48268
|
+
autocompleteValue: "billing postal-code",
|
|
48269
|
+
isRequired: true
|
|
48261
48270
|
})), (showWalletCheckbox || showTerms) && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48262
48271
|
childGap: "4px",
|
|
48263
48272
|
align: "center"
|
|
@@ -48273,7 +48282,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48273
48282
|
version: "v2",
|
|
48274
48283
|
showCheckbox: false,
|
|
48275
48284
|
description: "View",
|
|
48276
|
-
terms: termsContent
|
|
48285
|
+
terms: termsContent,
|
|
48286
|
+
isRequired: true
|
|
48277
48287
|
})))));
|
|
48278
48288
|
};
|
|
48279
48289
|
|
|
@@ -48726,7 +48736,8 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48726
48736
|
toggleRadio: section.disabled ? noop : function () {
|
|
48727
48737
|
return toggleOpenSection(section.id);
|
|
48728
48738
|
},
|
|
48729
|
-
tabIndex: "-1"
|
|
48739
|
+
tabIndex: "-1",
|
|
48740
|
+
required: section === null || section === void 0 ? void 0 : section.required
|
|
48730
48741
|
})), section.titleIcon && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48731
48742
|
align: "center"
|
|
48732
48743
|
}, section.titleIcon), /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -48738,7 +48749,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48738
48749
|
}, section.title))), section.rightIcons && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48739
48750
|
childGap: "0.5rem",
|
|
48740
48751
|
"aria-label": (section === null || section === void 0 ? void 0 : section.rightIconsLabel) || null,
|
|
48741
|
-
role: (section === null || section === void 0 ? void 0 : section.rightIconsRole) ||
|
|
48752
|
+
role: (section === null || section === void 0 ? void 0 : section.rightIconsRole) || "group"
|
|
48742
48753
|
}, section.rightIcons.map(function (icon) {
|
|
48743
48754
|
return /*#__PURE__*/React__default.createElement(RightIcon, {
|
|
48744
48755
|
src: icon.img,
|