@thecb/components 10.6.5-beta.2 → 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
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
|
}))));
|