@thecb/components 4.5.3 → 4.6.0

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
@@ -15431,6 +15431,52 @@ var CheckIcon = function CheckIcon() {
15431
15431
  })))))));
15432
15432
  };
15433
15433
 
15434
+ var WarningIconXS = function WarningIconXS() {
15435
+ return /*#__PURE__*/React__default.createElement("svg", {
15436
+ width: "16px",
15437
+ height: "13px",
15438
+ viewBox: "0 0 16 13",
15439
+ version: "1.1",
15440
+ xmlns: "http://www.w3.org/2000/svg",
15441
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
15442
+ "aria-labelledby": "#warning-restricted-item",
15443
+ role: "img"
15444
+ }, /*#__PURE__*/React__default.createElement("title", {
15445
+ id: "warning-restricted-item"
15446
+ }, "Warning: restricted items cannot be selected"), /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("path", {
15447
+ d: "M11.0106463,4.4659633 C11.3063934,4.63914978 11.5526739,4.88543032 11.7258604,5.18117739 L16.7999622,13.846119 C17.3581267,14.7992854 17.0379144,16.0244612 16.0847481,16.5826257 C15.7781918,16.762142 15.4293522,16.8567653 15.0741018,16.8567653 L4.92589823,16.8567653 C3.82132873,16.8567653 2.92589823,15.9613348 2.92589823,14.8567653 C2.92589823,14.5015149 3.02052159,14.1526753 3.20003784,13.846119 L8.27413962,5.18117739 C8.83230416,4.22801102 10.0574799,3.90779877 11.0106463,4.4659633 Z M10.6666667,13.3333333 L9.33333333,13.3333333 L9.33333333,14.6666667 L10.6666667,14.6666667 L10.6666667,13.3333333 Z M10.6666667,6.66666667 L9.33333333,6.66666667 L9.33333333,12 L10.6666667,12 L10.6666667,6.66666667 Z",
15448
+ id: "WarningIconXs-path-1"
15449
+ })), /*#__PURE__*/React__default.createElement("g", {
15450
+ id: "WarningIconXs-SRV-2647---Workflow-$0-Balance",
15451
+ stroke: "none",
15452
+ strokeWidth: "1",
15453
+ fill: "none",
15454
+ fillRule: "evenodd"
15455
+ }, /*#__PURE__*/React__default.createElement("g", {
15456
+ id: "WarningIconXs-11---Search-Results----Checked--Copy-6",
15457
+ transform: "translate(-135.000000, -483.000000)"
15458
+ }, /*#__PURE__*/React__default.createElement("g", {
15459
+ id: "WarningIconXs-Group",
15460
+ transform: "translate(133.000000, 479.000000)"
15461
+ }, /*#__PURE__*/React__default.createElement("mask", {
15462
+ id: "WarningIconXs-mask-2",
15463
+ fill: "white"
15464
+ }, /*#__PURE__*/React__default.createElement("use", {
15465
+ xlinkHref: "#WarningIconXs-path-1"
15466
+ })), /*#__PURE__*/React__default.createElement("use", {
15467
+ id: "WarningIconXs-Mask",
15468
+ fill: "#B34A00",
15469
+ fillRule: "nonzero",
15470
+ xlinkHref: "#WarningIconXs-path-1"
15471
+ }), /*#__PURE__*/React__default.createElement("polygon", {
15472
+ id: "WarningIconXs-Path",
15473
+ fill: "#B34A00",
15474
+ fillRule: "nonzero",
15475
+ mask: "url(#WarningIconXs-mask-2)",
15476
+ points: "-2.84217094e-14 -4.26325641e-14 20 -4.26325641e-14 20 20 -2.84217094e-14 20"
15477
+ })))));
15478
+ };
15479
+
15434
15480
  var color$2 = "#15749D";
15435
15481
  var hoverColor$1 = "#116285";
15436
15482
  var activeColor$1 = "#0E506D";
@@ -16096,10 +16142,19 @@ function _assertThisInitialized(self) {
16096
16142
  return self;
16097
16143
  }
16098
16144
 
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
+
16099
16154
  function _inheritsLoose(subClass, superClass) {
16100
16155
  subClass.prototype = Object.create(superClass.prototype);
16101
16156
  subClass.prototype.constructor = subClass;
16102
- subClass.__proto__ = superClass;
16157
+ _setPrototypeOf(subClass, superClass);
16103
16158
  }
16104
16159
 
16105
16160
  function _getPrototypeOf(o) {
@@ -16109,15 +16164,6 @@ function _getPrototypeOf(o) {
16109
16164
  return _getPrototypeOf(o);
16110
16165
  }
16111
16166
 
16112
- function _setPrototypeOf(o, p) {
16113
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
16114
- o.__proto__ = p;
16115
- return o;
16116
- };
16117
-
16118
- return _setPrototypeOf(o, p);
16119
- }
16120
-
16121
16167
  function _isNativeFunction(fn) {
16122
16168
  return Function.toString.call(fn).indexOf("[native code]") !== -1;
16123
16169
  }
@@ -16128,7 +16174,7 @@ function _isNativeReflectConstruct() {
16128
16174
  if (typeof Proxy === "function") return true;
16129
16175
 
16130
16176
  try {
16131
- Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
16177
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
16132
16178
  return true;
16133
16179
  } catch (e) {
16134
16180
  return false;
@@ -16268,7 +16314,9 @@ var ERRORS = {
16268
16314
  "73": "Please provide a valid CSS variable.\n\n",
16269
16315
  "74": "CSS variable not found and no default was provided.\n\n",
16270
16316
  "75": "important requires a valid style object, got a %s instead.\n\n",
16271
- "76": "fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\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"
16272
16320
  };
16273
16321
  /**
16274
16322
  * super basic version of sprintf
@@ -16610,7 +16658,7 @@ function parseToRgb(color) {
16610
16658
  };
16611
16659
  }
16612
16660
 
16613
- var rgbaMatched = rgbaRegex.exec(normalizedColor);
16661
+ var rgbaMatched = rgbaRegex.exec(normalizedColor.substring(0, 50));
16614
16662
 
16615
16663
  if (rgbaMatched) {
16616
16664
  return {
@@ -16641,7 +16689,7 @@ function parseToRgb(color) {
16641
16689
  };
16642
16690
  }
16643
16691
 
16644
- var hslaMatched = hslaRegex.exec(normalizedColor);
16692
+ var hslaMatched = hslaRegex.exec(normalizedColor.substring(0, 50));
16645
16693
 
16646
16694
  if (hslaMatched) {
16647
16695
  var _hue = parseInt("" + hslaMatched[1], 10);
@@ -42405,6 +42453,7 @@ exports.TypeaheadInput = TypeaheadInput;
42405
42453
  exports.VerifiedEmailIcon = VerifiedEmailIcon$1;
42406
42454
  exports.VoidedIcon = VoidedIcon;
42407
42455
  exports.WalletIcon = WalletIcon$1;
42456
+ exports.WarningIconXS = WarningIconXS;
42408
42457
  exports.WelcomeModule = WelcomeModule$1;
42409
42458
  exports.WorkflowTile = WorkflowTile;
42410
42459
  exports.cardRegistry = cardRegistry;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "4.5.3",
3
+ "version": "4.6.0",
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,60 @@
1
+ import React from "react";
2
+
3
+ const WarningIconXS = () => (
4
+ <svg
5
+ width="16px"
6
+ height="13px"
7
+ viewBox="0 0 16 13"
8
+ version="1.1"
9
+ xmlns="http://www.w3.org/2000/svg"
10
+ xmlnsXlink="http://www.w3.org/1999/xlink"
11
+ aria-labelledby="#warning-restricted-item"
12
+ role="img"
13
+ >
14
+ <title id="warning-restricted-item">
15
+ Warning: restricted items cannot be selected
16
+ </title>
17
+ <defs>
18
+ <path
19
+ d="M11.0106463,4.4659633 C11.3063934,4.63914978 11.5526739,4.88543032 11.7258604,5.18117739 L16.7999622,13.846119 C17.3581267,14.7992854 17.0379144,16.0244612 16.0847481,16.5826257 C15.7781918,16.762142 15.4293522,16.8567653 15.0741018,16.8567653 L4.92589823,16.8567653 C3.82132873,16.8567653 2.92589823,15.9613348 2.92589823,14.8567653 C2.92589823,14.5015149 3.02052159,14.1526753 3.20003784,13.846119 L8.27413962,5.18117739 C8.83230416,4.22801102 10.0574799,3.90779877 11.0106463,4.4659633 Z M10.6666667,13.3333333 L9.33333333,13.3333333 L9.33333333,14.6666667 L10.6666667,14.6666667 L10.6666667,13.3333333 Z M10.6666667,6.66666667 L9.33333333,6.66666667 L9.33333333,12 L10.6666667,12 L10.6666667,6.66666667 Z"
20
+ id="WarningIconXs-path-1"
21
+ ></path>
22
+ </defs>
23
+ <g
24
+ id="WarningIconXs-SRV-2647---Workflow-$0-Balance"
25
+ stroke="none"
26
+ strokeWidth="1"
27
+ fill="none"
28
+ fillRule="evenodd"
29
+ >
30
+ <g
31
+ id="WarningIconXs-11---Search-Results----Checked--Copy-6"
32
+ transform="translate(-135.000000, -483.000000)"
33
+ >
34
+ <g
35
+ id="WarningIconXs-Group"
36
+ transform="translate(133.000000, 479.000000)"
37
+ >
38
+ <mask id="WarningIconXs-mask-2" fill="white">
39
+ <use xlinkHref="#WarningIconXs-path-1"></use>
40
+ </mask>
41
+ <use
42
+ id="WarningIconXs-Mask"
43
+ fill="#B34A00"
44
+ fillRule="nonzero"
45
+ xlinkHref="#WarningIconXs-path-1"
46
+ ></use>
47
+ <polygon
48
+ id="WarningIconXs-Path"
49
+ fill="#B34A00"
50
+ fillRule="nonzero"
51
+ mask="url(#WarningIconXs-mask-2)"
52
+ points="-2.84217094e-14 -4.26325641e-14 20 -4.26325641e-14 20 20 -2.84217094e-14 20"
53
+ ></polygon>
54
+ </g>
55
+ </g>
56
+ </g>
57
+ </svg>
58
+ );
59
+
60
+ export default WarningIconXS;
@@ -53,6 +53,7 @@ import PaymentSearchIcon from "./PaymentSearchIcon";
53
53
  import ResetPasswordIcon from "./ResetPasswordIcon";
54
54
  import PeriscopeFailedIcon from "./PeriscopeFailedIcon";
55
55
  import CheckIcon from "./CheckIcon";
56
+ import WarningIconXS from "./WarningIconXS";
56
57
 
57
58
  export {
58
59
  AccountsIcon,
@@ -109,5 +110,6 @@ export {
109
110
  PaymentSearchIcon,
110
111
  ResetPasswordIcon,
111
112
  PeriscopeFailedIcon,
112
- CheckIcon
113
+ CheckIcon,
114
+ WarningIconXS
113
115
  };