@thecb/components 10.6.5-beta.1 → 10.6.5-beta.3
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 +8 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +8 -5
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/editable-list/EditableList.js +4 -3
- package/src/components/molecules/radio-section/RadioSection.js +2 -1
package/dist/index.cjs.js
CHANGED
|
@@ -41322,7 +41322,9 @@ var EditableList = function EditableList(_ref) {
|
|
|
41322
41322
|
_ref$editItemAriaRole = _ref.editItemAriaRole,
|
|
41323
41323
|
editItemAriaRole = _ref$editItemAriaRole === void 0 ? "" : _ref$editItemAriaRole,
|
|
41324
41324
|
_ref$disablePlacehold = _ref.disablePlaceholder,
|
|
41325
|
-
disablePlaceholder = _ref$disablePlacehold === void 0 ? false : _ref$disablePlacehold
|
|
41325
|
+
disablePlaceholder = _ref$disablePlacehold === void 0 ? false : _ref$disablePlacehold,
|
|
41326
|
+
_ref$actionTextExtraS = _ref.actionTextExtraStyles,
|
|
41327
|
+
actionTextExtraStyles = _ref$actionTextExtraS === void 0 ? "" : _ref$actionTextExtraS;
|
|
41326
41328
|
var addText = "Add a".concat(itemName[0].match(/[aieouAIEOU]/) ? "n" : "", " ").concat(itemName);
|
|
41327
41329
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
41328
41330
|
padding: listPadding,
|
|
@@ -41381,7 +41383,7 @@ var EditableList = function EditableList(_ref) {
|
|
|
41381
41383
|
action: function action() {
|
|
41382
41384
|
return removeItem(item.id);
|
|
41383
41385
|
},
|
|
41384
|
-
extraStyles: "min-width: 0;",
|
|
41386
|
+
extraStyles: "min-width: 0; ".concat(actionTextExtraStyles),
|
|
41385
41387
|
"aria-label": "Remove ".concat(ariaLabel || itemName)
|
|
41386
41388
|
})), canEdit && /*#__PURE__*/React__default.createElement(Box, {
|
|
41387
41389
|
padding: "0 0.5rem",
|
|
@@ -41395,7 +41397,7 @@ var EditableList = function EditableList(_ref) {
|
|
|
41395
41397
|
action: function action() {
|
|
41396
41398
|
return editItem(item.id);
|
|
41397
41399
|
},
|
|
41398
|
-
extraStyles: "min-width: 0;",
|
|
41400
|
+
extraStyles: "min-width: 0; ".concat(actionTextExtraStyles),
|
|
41399
41401
|
"aria-label": "Edit ".concat(ariaLabel || itemName),
|
|
41400
41402
|
role: editItemAriaRole
|
|
41401
41403
|
}))));
|
|
@@ -50113,7 +50115,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
|
|
|
50113
50115
|
}, section.content))));
|
|
50114
50116
|
};
|
|
50115
50117
|
|
|
50116
|
-
var _excluded$E = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired", "groupedSections"];
|
|
50118
|
+
var _excluded$E = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired", "groupedSections", "borderOverride"];
|
|
50117
50119
|
|
|
50118
50120
|
/**
|
|
50119
50121
|
- The RadioSection component takes either a flat array (via the 'sections'
|
|
@@ -50161,6 +50163,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
50161
50163
|
_ref$isSectionRequire = _ref.isSectionRequired,
|
|
50162
50164
|
isSectionRequired = _ref$isSectionRequire === void 0 ? false : _ref$isSectionRequire,
|
|
50163
50165
|
groupedSections = _ref.groupedSections,
|
|
50166
|
+
borderOverride = _ref.borderOverride,
|
|
50164
50167
|
rest = _objectWithoutProperties(_ref, _excluded$E);
|
|
50165
50168
|
var _useState = React.useState(null),
|
|
50166
50169
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -50193,7 +50196,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
50193
50196
|
};
|
|
50194
50197
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
50195
50198
|
padding: "1px",
|
|
50196
|
-
border: "1px solid ".concat(themeValues.borderColor),
|
|
50199
|
+
border: borderOverride || "1px solid ".concat(themeValues.borderColor),
|
|
50197
50200
|
borderRadius: "4px",
|
|
50198
50201
|
extraStyles: containerStyles,
|
|
50199
50202
|
role: "radiogroup",
|