@thecb/components 7.10.2 → 7.10.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.esm.js
CHANGED
|
@@ -39949,13 +39949,16 @@ var EditableList = function EditableList(_ref) {
|
|
|
39949
39949
|
autoPayMethods = _ref.autoPayMethods,
|
|
39950
39950
|
_ref$as = _ref.as,
|
|
39951
39951
|
as = _ref$as === void 0 ? "p" : _ref$as,
|
|
39952
|
+
_ref$listPadding = _ref.listPadding,
|
|
39953
|
+
listPadding = _ref$listPadding === void 0 ? "0rem 0rem 1.5rem 0rem" : _ref$listPadding,
|
|
39952
39954
|
qaPrefix = _ref.qaPrefix,
|
|
39953
39955
|
ariaLabel = _ref.ariaLabel;
|
|
39954
39956
|
var addText = "Add a".concat(itemName[0].match(/[aieouAIEOU]/) ? "n" : "", " ").concat(itemName);
|
|
39955
39957
|
return /*#__PURE__*/React.createElement(Box, {
|
|
39956
|
-
padding:
|
|
39958
|
+
padding: listPadding,
|
|
39957
39959
|
as: "section",
|
|
39958
|
-
"aria-labelledby": "
|
|
39960
|
+
"aria-labelledby": typeof title === "string" ? "editable-list-".concat(createIdFromString(title)) : "",
|
|
39961
|
+
"aria-label": !title && typeof itemName === "string" ? "editable-list-".concat(createIdFromString(itemName)) : ""
|
|
39959
39962
|
}, /*#__PURE__*/React.createElement(Stack, {
|
|
39960
39963
|
childGap: "0rem"
|
|
39961
39964
|
}, title !== "" && /*#__PURE__*/React.createElement(Box, {
|
|
@@ -39964,7 +39967,8 @@ var EditableList = function EditableList(_ref) {
|
|
|
39964
39967
|
as: as,
|
|
39965
39968
|
weight: titleWeight,
|
|
39966
39969
|
color: CHARADE_GREY,
|
|
39967
|
-
extraStyles: "letter-spacing: 0.29px; font-size: 1.125rem;"
|
|
39970
|
+
extraStyles: "letter-spacing: 0.29px; font-size: 1.125rem;",
|
|
39971
|
+
id: typeof title === "string" ? "editable-list-".concat(createIdFromString(title)) : ""
|
|
39968
39972
|
}, title)), /*#__PURE__*/React.createElement(Box, {
|
|
39969
39973
|
padding: "0",
|
|
39970
39974
|
borderRadius: "4px",
|