@thecb/components 4.6.0 → 4.6.1

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
@@ -15477,6 +15477,24 @@ var WarningIconXS = function WarningIconXS() {
15477
15477
  })))));
15478
15478
  };
15479
15479
 
15480
+ var CashIcon = function CashIcon() {
15481
+ return /*#__PURE__*/React__default.createElement("svg", {
15482
+ xmlns: "http://www.w3.org/2000/svg",
15483
+ width: "36",
15484
+ height: "24",
15485
+ fill: "none",
15486
+ viewBox: "0 0 36 24"
15487
+ }, /*#__PURE__*/React__default.createElement("rect", {
15488
+ width: "36",
15489
+ height: "24",
15490
+ fill: "#E8FFEF",
15491
+ rx: "1"
15492
+ }), /*#__PURE__*/React__default.createElement("path", {
15493
+ fill: "#317D4F",
15494
+ d: "M17.178 5.464v1.372c-1.799.294-3.115 1.407-3.094 3.08.021 1.645 1.05 2.597 2.611 2.884l1.617.308c.924.182 1.365.406 1.365 1.085 0 .609-.553 1.092-1.484 1.092-1.036 0-1.743-.455-1.932-1.267l-2.478.021c.175 1.834 1.414 2.8 3.374 3.038v1.197h2.023V17.07c1.876-.266 3.024-1.33 3.024-2.877 0-1.617-.798-2.751-2.702-3.178l-1.603-.357c-.994-.231-1.267-.497-1.267-1.029 0-.546.511-1.015 1.596-1.015 1.015 0 1.302.511 1.393 1.267l2.415-.014c.05-1.484-1.043-2.695-2.835-3.024V5.464h-2.023z"
15495
+ }));
15496
+ };
15497
+
15480
15498
  var color$2 = "#15749D";
15481
15499
  var hoverColor$1 = "#116285";
15482
15500
  var activeColor$1 = "#0E506D";
@@ -16142,19 +16160,10 @@ function _assertThisInitialized(self) {
16142
16160
  return self;
16143
16161
  }
16144
16162
 
16145
- function _setPrototypeOf(o, p) {
16146
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
16147
- o.__proto__ = p;
16148
- return o;
16149
- };
16150
-
16151
- return _setPrototypeOf(o, p);
16152
- }
16153
-
16154
16163
  function _inheritsLoose(subClass, superClass) {
16155
16164
  subClass.prototype = Object.create(superClass.prototype);
16156
16165
  subClass.prototype.constructor = subClass;
16157
- _setPrototypeOf(subClass, superClass);
16166
+ subClass.__proto__ = superClass;
16158
16167
  }
16159
16168
 
16160
16169
  function _getPrototypeOf(o) {
@@ -16164,6 +16173,15 @@ function _getPrototypeOf(o) {
16164
16173
  return _getPrototypeOf(o);
16165
16174
  }
16166
16175
 
16176
+ function _setPrototypeOf(o, p) {
16177
+ _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
16178
+ o.__proto__ = p;
16179
+ return o;
16180
+ };
16181
+
16182
+ return _setPrototypeOf(o, p);
16183
+ }
16184
+
16167
16185
  function _isNativeFunction(fn) {
16168
16186
  return Function.toString.call(fn).indexOf("[native code]") !== -1;
16169
16187
  }
@@ -16174,7 +16192,7 @@ function _isNativeReflectConstruct() {
16174
16192
  if (typeof Proxy === "function") return true;
16175
16193
 
16176
16194
  try {
16177
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
16195
+ Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
16178
16196
  return true;
16179
16197
  } catch (e) {
16180
16198
  return false;
@@ -16314,9 +16332,7 @@ var ERRORS = {
16314
16332
  "73": "Please provide a valid CSS variable.\n\n",
16315
16333
  "74": "CSS variable not found and no default was provided.\n\n",
16316
16334
  "75": "important requires a valid style object, got a %s instead.\n\n",
16317
- "76": "fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\n\n",
16318
- "77": "remToPx expects a value in \"rem\" but you provided it in \"%s\".\n\n",
16319
- "78": "base must be set in \"px\" or \"%\" but you set it in \"%s\".\n"
16335
+ "76": "fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\n"
16320
16336
  };
16321
16337
  /**
16322
16338
  * super basic version of sprintf
@@ -16658,7 +16674,7 @@ function parseToRgb(color) {
16658
16674
  };
16659
16675
  }
16660
16676
 
16661
- var rgbaMatched = rgbaRegex.exec(normalizedColor.substring(0, 50));
16677
+ var rgbaMatched = rgbaRegex.exec(normalizedColor);
16662
16678
 
16663
16679
  if (rgbaMatched) {
16664
16680
  return {
@@ -16689,7 +16705,7 @@ function parseToRgb(color) {
16689
16705
  };
16690
16706
  }
16691
16707
 
16692
- var hslaMatched = hslaRegex.exec(normalizedColor.substring(0, 50));
16708
+ var hslaMatched = hslaRegex.exec(normalizedColor);
16693
16709
 
16694
16710
  if (hslaMatched) {
16695
16711
  var _hue = parseInt("" + hslaMatched[1], 10);
@@ -42320,6 +42336,7 @@ exports.ButtonWithAction = ButtonWithAction;
42320
42336
  exports.ButtonWithLink = ButtonWithLink;
42321
42337
  exports.CalendarIcon = CalendarIcon;
42322
42338
  exports.CarrotIcon = CarrotIcon$1;
42339
+ exports.CashIcon = CashIcon;
42323
42340
  exports.Center = Center;
42324
42341
  exports.CenterSingle = CenterSingle$1;
42325
42342
  exports.CenterStack = CenterStack$1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "4.6.0",
3
+ "version": "4.6.1",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -0,0 +1,21 @@
1
+ import React from "react";
2
+
3
+ const CashIcon = () => {
4
+ return (
5
+ <svg
6
+ xmlns="http://www.w3.org/2000/svg"
7
+ width="36"
8
+ height="24"
9
+ fill="none"
10
+ viewBox="0 0 36 24"
11
+ >
12
+ <rect width="36" height="24" fill="#E8FFEF" rx="1"></rect>
13
+ <path
14
+ fill="#317D4F"
15
+ d="M17.178 5.464v1.372c-1.799.294-3.115 1.407-3.094 3.08.021 1.645 1.05 2.597 2.611 2.884l1.617.308c.924.182 1.365.406 1.365 1.085 0 .609-.553 1.092-1.484 1.092-1.036 0-1.743-.455-1.932-1.267l-2.478.021c.175 1.834 1.414 2.8 3.374 3.038v1.197h2.023V17.07c1.876-.266 3.024-1.33 3.024-2.877 0-1.617-.798-2.751-2.702-3.178l-1.603-.357c-.994-.231-1.267-.497-1.267-1.029 0-.546.511-1.015 1.596-1.015 1.015 0 1.302.511 1.393 1.267l2.415-.014c.05-1.484-1.043-2.695-2.835-3.024V5.464h-2.023z"
16
+ ></path>
17
+ </svg>
18
+ );
19
+ };
20
+
21
+ export default CashIcon;
@@ -54,6 +54,7 @@ import ResetPasswordIcon from "./ResetPasswordIcon";
54
54
  import PeriscopeFailedIcon from "./PeriscopeFailedIcon";
55
55
  import CheckIcon from "./CheckIcon";
56
56
  import WarningIconXS from "./WarningIconXS";
57
+ import CashIcon from "./CashIcon";
57
58
 
58
59
  export {
59
60
  AccountsIcon,
@@ -111,5 +112,6 @@ export {
111
112
  ResetPasswordIcon,
112
113
  PeriscopeFailedIcon,
113
114
  CheckIcon,
114
- WarningIconXS
115
+ WarningIconXS,
116
+ CashIcon
115
117
  };