@thecb/components 4.3.12 → 4.4.0-beta.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/.tool-versions CHANGED
@@ -1 +1 @@
1
- nodejs 15.5.0
1
+ nodejs 15.8.0
package/dist/index.cjs.js CHANGED
@@ -15886,10 +15886,19 @@ function _assertThisInitialized(self) {
15886
15886
  return self;
15887
15887
  }
15888
15888
 
15889
+ function _setPrototypeOf(o, p) {
15890
+ _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
15891
+ o.__proto__ = p;
15892
+ return o;
15893
+ };
15894
+
15895
+ return _setPrototypeOf(o, p);
15896
+ }
15897
+
15889
15898
  function _inheritsLoose(subClass, superClass) {
15890
15899
  subClass.prototype = Object.create(superClass.prototype);
15891
15900
  subClass.prototype.constructor = subClass;
15892
- subClass.__proto__ = superClass;
15901
+ _setPrototypeOf(subClass, superClass);
15893
15902
  }
15894
15903
 
15895
15904
  function _getPrototypeOf(o) {
@@ -15899,15 +15908,6 @@ function _getPrototypeOf(o) {
15899
15908
  return _getPrototypeOf(o);
15900
15909
  }
15901
15910
 
15902
- function _setPrototypeOf(o, p) {
15903
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
15904
- o.__proto__ = p;
15905
- return o;
15906
- };
15907
-
15908
- return _setPrototypeOf(o, p);
15909
- }
15910
-
15911
15911
  function _isNativeFunction(fn) {
15912
15912
  return Function.toString.call(fn).indexOf("[native code]") !== -1;
15913
15913
  }
@@ -15918,7 +15918,7 @@ function _isNativeReflectConstruct() {
15918
15918
  if (typeof Proxy === "function") return true;
15919
15919
 
15920
15920
  try {
15921
- Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
15921
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
15922
15922
  return true;
15923
15923
  } catch (e) {
15924
15924
  return false;
@@ -16058,7 +16058,9 @@ var ERRORS = {
16058
16058
  "73": "Please provide a valid CSS variable.\n\n",
16059
16059
  "74": "CSS variable not found and no default was provided.\n\n",
16060
16060
  "75": "important requires a valid style object, got a %s instead.\n\n",
16061
- "76": "fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\n"
16061
+ "76": "fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\n\n",
16062
+ "77": "remToPx expects a value in \"rem\" but you provided it in \"%s\".\n\n",
16063
+ "78": "base must be set in \"px\" or \"%\" but you set it in \"%s\".\n"
16062
16064
  };
16063
16065
  /**
16064
16066
  * super basic version of sprintf
@@ -35063,7 +35065,7 @@ var AddressForm = function AddressForm(_ref) {
35063
35065
  }), /*#__PURE__*/React__default.createElement(FormStateDropdown, {
35064
35066
  labelTextWhenNoError: isUS ? "State" : "State or Province",
35065
35067
  errorMessages: stateProvinceErrorMessages,
35066
- countryCode: fields.country.rawValue,
35068
+ countryCode: fields.country.rawValue || "US",
35067
35069
  field: fields.stateProvince,
35068
35070
  fieldActions: actions.fields.stateProvince,
35069
35071
  showErrors: showErrors,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "4.3.12",
3
+ "version": "4.4.0-beta.1",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -91,7 +91,7 @@ const AddressForm = ({
91
91
  <StateProvinceDropdown
92
92
  labelTextWhenNoError={isUS ? "State" : "State or Province"}
93
93
  errorMessages={stateProvinceErrorMessages}
94
- countryCode={fields.country.rawValue}
94
+ countryCode={fields.country.rawValue || "US"}
95
95
  field={fields.stateProvince}
96
96
  fieldActions={actions.fields.stateProvince}
97
97
  showErrors={showErrors}