@thecb/components 7.10.1 → 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.cjs.js +28 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +28 -4
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/icons/PencilIcon.js +22 -0
- package/src/components/atoms/icons/icons.stories.js +2 -0
- package/src/components/atoms/icons/index.js +2 -0
- package/src/components/molecules/editable-list/EditableList.js +21 -1
package/dist/index.cjs.js
CHANGED
|
@@ -14740,6 +14740,26 @@ var FailedIcon = function FailedIcon() {
|
|
|
14740
14740
|
}))));
|
|
14741
14741
|
};
|
|
14742
14742
|
|
|
14743
|
+
var PencilIcon = function PencilIcon(_ref) {
|
|
14744
|
+
var _ref$ariaLabel = _ref.ariaLabel,
|
|
14745
|
+
ariaLabel = _ref$ariaLabel === void 0 ? "Edit" : _ref$ariaLabel,
|
|
14746
|
+
themeValues = _ref.themeValues;
|
|
14747
|
+
return /*#__PURE__*/React__default.createElement("svg", {
|
|
14748
|
+
"aria-label": ariaLabel,
|
|
14749
|
+
width: "24px",
|
|
14750
|
+
height: "24px",
|
|
14751
|
+
fill: "none",
|
|
14752
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
14753
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
14754
|
+
fillRule: "evenodd",
|
|
14755
|
+
clipRule: "evenodd",
|
|
14756
|
+
d: "M19.74 6.84a.885.885 0 0 1 0 1.253l-1.626 1.626-3.333-3.333 1.626-1.626a.885.885 0 0 1 1.253 0l2.08 2.08ZM4 20.5v-3.333l9.83-9.83 3.333 3.333-9.83 9.83H4Z",
|
|
14757
|
+
fill: themeValues.subIconColor
|
|
14758
|
+
}));
|
|
14759
|
+
};
|
|
14760
|
+
|
|
14761
|
+
var PencilIcon$1 = themeComponent(PencilIcon, "Icons", fallbackValues$2, "info");
|
|
14762
|
+
|
|
14743
14763
|
var PendingIcon = function PendingIcon() {
|
|
14744
14764
|
return /*#__PURE__*/React__default.createElement("svg", {
|
|
14745
14765
|
width: "32px",
|
|
@@ -39937,13 +39957,16 @@ var EditableList = function EditableList(_ref) {
|
|
|
39937
39957
|
autoPayMethods = _ref.autoPayMethods,
|
|
39938
39958
|
_ref$as = _ref.as,
|
|
39939
39959
|
as = _ref$as === void 0 ? "p" : _ref$as,
|
|
39960
|
+
_ref$listPadding = _ref.listPadding,
|
|
39961
|
+
listPadding = _ref$listPadding === void 0 ? "0rem 0rem 1.5rem 0rem" : _ref$listPadding,
|
|
39940
39962
|
qaPrefix = _ref.qaPrefix,
|
|
39941
39963
|
ariaLabel = _ref.ariaLabel;
|
|
39942
39964
|
var addText = "Add a".concat(itemName[0].match(/[aieouAIEOU]/) ? "n" : "", " ").concat(itemName);
|
|
39943
39965
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
39944
|
-
padding:
|
|
39966
|
+
padding: listPadding,
|
|
39945
39967
|
as: "section",
|
|
39946
|
-
"aria-labelledby": "
|
|
39968
|
+
"aria-labelledby": typeof title === "string" ? "editable-list-".concat(createIdFromString(title)) : "",
|
|
39969
|
+
"aria-label": !title && typeof itemName === "string" ? "editable-list-".concat(createIdFromString(itemName)) : ""
|
|
39947
39970
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
39948
39971
|
childGap: "0rem"
|
|
39949
39972
|
}, title !== "" && /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -39952,7 +39975,8 @@ var EditableList = function EditableList(_ref) {
|
|
|
39952
39975
|
as: as,
|
|
39953
39976
|
weight: titleWeight,
|
|
39954
39977
|
color: CHARADE_GREY,
|
|
39955
|
-
extraStyles: "letter-spacing: 0.29px; font-size: 1.125rem;"
|
|
39978
|
+
extraStyles: "letter-spacing: 0.29px; font-size: 1.125rem;",
|
|
39979
|
+
id: typeof title === "string" ? "editable-list-".concat(createIdFromString(title)) : ""
|
|
39956
39980
|
}, title)), /*#__PURE__*/React__default.createElement(Box, {
|
|
39957
39981
|
padding: "0",
|
|
39958
39982
|
borderRadius: "4px",
|
|
@@ -49297,6 +49321,7 @@ exports.PaymentMethodAddIcon = PaymentMethodAddIcon$1;
|
|
|
49297
49321
|
exports.PaymentMethodIcon = PaymentMethodIcon$1;
|
|
49298
49322
|
exports.PaymentSearchIcon = PaymentSearchIcon;
|
|
49299
49323
|
exports.PaymentsIconSmall = PaymentsIconSmall$1;
|
|
49324
|
+
exports.PencilIcon = PencilIcon$1;
|
|
49300
49325
|
exports.PendingIcon = PendingIcon;
|
|
49301
49326
|
exports.PeriscopeDashboardIframe = PeriscopeDashboardIframe;
|
|
49302
49327
|
exports.PeriscopeFailedIcon = PeriscopeFailedIcon;
|