@commonsku/styles 1.14.3 → 1.14.7

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.js CHANGED
@@ -2245,6 +2245,30 @@ function EllipsisIcon(_a) {
2245
2245
  React__default.createElement("path", { d: "M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2Zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2Zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2Z", fill: color }));
2246
2246
  }
2247
2247
 
2248
+ function CreditCardIcon(_a) {
2249
+ var _b = _a.color, color = _b === void 0 ? teal.main : _b, _c = _a.size, size = _c === void 0 ? "medium" : _c, _d = _a.altText, altText = _d === void 0 ? "Credit Card" : _d, props = __rest(_a, ["color", "size", "altText"]);
2250
+ return React__default.createElement(SVG, __assign({ size: size, "aria-labelledby": "CreditCardIcon" }, props),
2251
+ React__default.createElement("path", { fill: "none", d: "M0 0h24v24H0z" }),
2252
+ React__default.createElement("title", { id: "CreditCardIcon" }, altText),
2253
+ React__default.createElement("path", { d: "M18 0H2C0.89 0 0.00999999 0.89 0.00999999 2L0 14C0 15.11 0.89 16 2 16H18C19.11 16 20 15.11 20 14V2C20 0.89 19.11 0 18 0ZM18 14H2V8H18V14ZM18 4H2V2H18V4Z", fill: color }));
2254
+ }
2255
+
2256
+ function ShopIcon(_a) {
2257
+ var _b = _a.color, color = _b === void 0 ? teal.main : _b, _c = _a.size, size = _c === void 0 ? "medium" : _c, _d = _a.altText, altText = _d === void 0 ? "Credit Card" : _d, props = __rest(_a, ["color", "size", "altText"]);
2258
+ return React__default.createElement(SVG, __assign({ size: size, "aria-labelledby": "ShopIcon" }, props),
2259
+ React__default.createElement("path", { fill: "none", d: "M0 0h24v24H0z" }),
2260
+ React__default.createElement("title", { id: "ShopIcon" }, altText),
2261
+ React__default.createElement("path", { d: "M19.8978 5.89L18.8478 1.52C18.6278 0.62 17.8478 0 16.9378 0H3.04781C2.14781 0 1.35781 0.63 1.14781 1.52L0.0978093 5.89C-0.142191 6.91 0.0778095 7.95 0.717809 8.77C0.797809 8.88 0.907809 8.96 0.997809 9.06V16C0.997809 17.1 1.89781 18 2.99781 18H16.9978C18.0978 18 18.9978 17.1 18.9978 16V9.06C19.0878 8.97 19.1978 8.88 19.2778 8.78C19.9178 7.96 20.1478 6.91 19.8978 5.89ZM16.9078 1.99L17.9578 6.36C18.0578 6.78 17.9678 7.2 17.7078 7.53C17.5678 7.71 17.2678 8 16.7678 8C16.1578 8 15.6278 7.51 15.5578 6.86L14.9778 2L16.9078 1.99ZM10.9978 2H12.9578L13.4978 6.52C13.5478 6.91 13.4278 7.3 13.1678 7.59C12.9478 7.85 12.6278 8 12.2178 8C11.5478 8 10.9978 7.41 10.9978 6.69V2ZM6.48781 6.52L7.03781 2H8.99781V6.69C8.99781 7.41 8.44781 8 7.70781 8C7.36781 8 7.05781 7.85 6.81781 7.59C6.56781 7.3 6.44781 6.91 6.48781 6.52ZM2.03781 6.36L3.04781 2H5.01781L4.43781 6.86C4.35781 7.51 3.83781 8 3.22781 8C2.73781 8 2.42781 7.71 2.29781 7.53C2.02781 7.21 1.93781 6.78 2.03781 6.36ZM2.99781 16V9.97C3.07781 9.98 3.14781 10 3.22781 10C4.09781 10 4.88781 9.64 5.46781 9.05C6.06781 9.65 6.86781 10 7.77781 10C8.64781 10 9.42781 9.64 10.0078 9.07C10.5978 9.64 11.3978 10 12.2978 10C13.1378 10 13.9378 9.65 14.5378 9.05C15.1178 9.64 15.9078 10 16.7778 10C16.8578 10 16.9278 9.98 17.0078 9.97V16H2.99781Z", fill: color }));
2262
+ }
2263
+
2264
+ function HistoryIcon(_a) {
2265
+ var _b = _a.color, color = _b === void 0 ? teal.main : _b, _c = _a.size, size = _c === void 0 ? "medium" : _c, _d = _a.altText, altText = _d === void 0 ? "Credit Card" : _d, props = __rest(_a, ["color", "size", "altText"]);
2266
+ return React__default.createElement(SVG, __assign({ size: size, "aria-labelledby": "HistoryIcon" }, props),
2267
+ React__default.createElement("path", { fill: "none", d: "M0 0h24v24H0z" }),
2268
+ React__default.createElement("title", { id: "HistoryIcon" }, altText),
2269
+ React__default.createElement("path", { d: "M12.5 0C7.53 0 3.5 4.03 3.5 9H0.5L4.39 12.89L4.46 13.03L8.5 9H5.5C5.5 5.13 8.63 2 12.5 2C16.37 2 19.5 5.13 19.5 9C19.5 12.87 16.37 16 12.5 16C10.57 16 8.82 15.21 7.56 13.94L6.14 15.36C7.77 16.99 10.01 18 12.5 18C17.47 18 21.5 13.97 21.5 9C21.5 4.03 17.47 0 12.5 0ZM11.5 5V10L15.75 12.52L16.52 11.24L13 9.15V5H11.5Z", fill: color }));
2270
+ }
2271
+
2248
2272
  var avatarSizes = {
2249
2273
  tiny: {
2250
2274
  size: '24px',
@@ -3917,7 +3941,7 @@ var ShowPopup = function (_a) {
3917
3941
  };
3918
3942
  var templateObject_1$t, templateObject_2$i, templateObject_3$b;
3919
3943
 
3920
- var TaskLabel = styled__default.div(templateObject_1$u || (templateObject_1$u = __makeTemplateObject(["display: flex; min-height: 25px; ", ""], ["display: flex; min-height: 25px; ", ""])), function (p) { return p.hasCheckbox ? "padding-right: 25px;" : ''; });
3944
+ var TaskLabel = styled__default.div(templateObject_1$u || (templateObject_1$u = __makeTemplateObject(["display: flex; min-height: 25px; ", ""], ["display: flex; min-height: 25px; ", ""])), function (p) { return p.hasCheckbox ? "width: calc(100% - 24px);" : ''; });
3921
3945
  var TaskName = styled__default.div(templateObject_2$j || (templateObject_2$j = __makeTemplateObject(["flex-grow: 1; font-size:13px;"], ["flex-grow: 1; font-size:13px;"])));
3922
3946
  var StyledTask = styled__default.div(templateObject_3$c || (templateObject_3$c = __makeTemplateObject(["margin-bottom: 1.5em; ", ""], ["margin-bottom: 1.5em; ", ""])), SharedStyles);
3923
3947
  var TaskBody = styled__default.div(templateObject_4$8 || (templateObject_4$8 = __makeTemplateObject(["margin-left:34px;"], ["margin-left:34px;"])));
@@ -3982,6 +4006,10 @@ var CalendarTask = React__default.forwardRef(function (_a, ref) {
3982
4006
  onClickCheckbox && onClickCheckbox(!s);
3983
4007
  return !s;
3984
4008
  });
4009
+ }, style: {
4010
+ padding: 0,
4011
+ margin: 0,
4012
+ marginLeft: 20,
3985
4013
  } }) : RenderTaskLabel(),
3986
4014
  React__default.createElement(StyledCalendarTaskBody, __assign({}, (isDescriptionHtml && typeof description === 'string'
3987
4015
  ? { dangerouslySetInnerHTML: { __html: description } }
@@ -6590,6 +6618,7 @@ exports.CommentIcon = CommentIcon;
6590
6618
  exports.CompletedCheckmarkIcon = CompletedCheckmarkIcon;
6591
6619
  exports.CouponIcon = CouponIcon;
6592
6620
  exports.CreatableSelect = SKUCreatableSelect;
6621
+ exports.CreditCardIcon = CreditCardIcon;
6593
6622
  exports.CustomDateInput = CustomDateInput;
6594
6623
  exports.Datepicker = Datepicker;
6595
6624
  exports.DaysBodyWrapper = DaysBodyWrapper;
@@ -6630,6 +6659,7 @@ exports.H5 = H5;
6630
6659
  exports.H6 = H6;
6631
6660
  exports.HeaderWrapper = HeaderWrapper;
6632
6661
  exports.HeadlessTable = HeadlessTable;
6662
+ exports.HistoryIcon = HistoryIcon;
6633
6663
  exports.IconButton = IconButton;
6634
6664
  exports.IconDoc = IconDoc;
6635
6665
  exports.InfoIcon = InfoIcon;
@@ -6701,6 +6731,7 @@ exports.SalesOrderCircleIcon = SalesOrderCircleIcon;
6701
6731
  exports.SearchIcon = SearchIcon;
6702
6732
  exports.Select = SKUSelect;
6703
6733
  exports.SharedStyles = SharedStyles;
6734
+ exports.ShopIcon = ShopIcon;
6704
6735
  exports.ShowPopup = ShowPopup;
6705
6736
  exports.SidePanel = SidePanel;
6706
6737
  exports.SimpleWindowedTable = SimpleWindowedTable;