@thecb/components 4.5.2 → 4.5.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 CHANGED
@@ -16096,19 +16096,10 @@ function _assertThisInitialized(self) {
16096
16096
  return self;
16097
16097
  }
16098
16098
 
16099
- function _setPrototypeOf(o, p) {
16100
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
16101
- o.__proto__ = p;
16102
- return o;
16103
- };
16104
-
16105
- return _setPrototypeOf(o, p);
16106
- }
16107
-
16108
16099
  function _inheritsLoose(subClass, superClass) {
16109
16100
  subClass.prototype = Object.create(superClass.prototype);
16110
16101
  subClass.prototype.constructor = subClass;
16111
- _setPrototypeOf(subClass, superClass);
16102
+ subClass.__proto__ = superClass;
16112
16103
  }
16113
16104
 
16114
16105
  function _getPrototypeOf(o) {
@@ -16118,6 +16109,15 @@ function _getPrototypeOf(o) {
16118
16109
  return _getPrototypeOf(o);
16119
16110
  }
16120
16111
 
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
16121
  function _isNativeFunction(fn) {
16122
16122
  return Function.toString.call(fn).indexOf("[native code]") !== -1;
16123
16123
  }
@@ -16128,7 +16128,7 @@ function _isNativeReflectConstruct() {
16128
16128
  if (typeof Proxy === "function") return true;
16129
16129
 
16130
16130
  try {
16131
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
16131
+ Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
16132
16132
  return true;
16133
16133
  } catch (e) {
16134
16134
  return false;
@@ -16268,9 +16268,7 @@ var ERRORS = {
16268
16268
  "73": "Please provide a valid CSS variable.\n\n",
16269
16269
  "74": "CSS variable not found and no default was provided.\n\n",
16270
16270
  "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\n",
16272
- "77": "remToPx expects a value in \"rem\" but you provided it in \"%s\".\n\n",
16273
- "78": "base must be set in \"px\" or \"%\" but you set it in \"%s\".\n"
16271
+ "76": "fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\n"
16274
16272
  };
16275
16273
  /**
16276
16274
  * super basic version of sprintf
@@ -16612,7 +16610,7 @@ function parseToRgb(color) {
16612
16610
  };
16613
16611
  }
16614
16612
 
16615
- var rgbaMatched = rgbaRegex.exec(normalizedColor.substring(0, 50));
16613
+ var rgbaMatched = rgbaRegex.exec(normalizedColor);
16616
16614
 
16617
16615
  if (rgbaMatched) {
16618
16616
  return {
@@ -16643,7 +16641,7 @@ function parseToRgb(color) {
16643
16641
  };
16644
16642
  }
16645
16643
 
16646
- var hslaMatched = hslaRegex.exec(normalizedColor.substring(0, 50));
16644
+ var hslaMatched = hslaRegex.exec(normalizedColor);
16647
16645
 
16648
16646
  if (hslaMatched) {
16649
16647
  var _hue = parseInt("" + hslaMatched[1], 10);
@@ -37876,7 +37874,6 @@ var InternalUserInfoForm = function InternalUserInfoForm(_ref) {
37876
37874
  roleDisabled = _ref.roleDisabled,
37877
37875
  selectionDisabled = _ref.selectionDisabled,
37878
37876
  formType = _ref.formType,
37879
- isOktaUser = _ref.isOktaUser,
37880
37877
  openChangePasswordForm = _ref.openChangePasswordForm,
37881
37878
  firstName = _ref.firstName,
37882
37879
  lastName = _ref.lastName;
@@ -37994,7 +37991,7 @@ var InternalUserInfoForm = function InternalUserInfoForm(_ref) {
37994
37991
  return e.key === "Enter" && handleSubmit(e);
37995
37992
  },
37996
37993
  disabled: emailDisabled
37997
- }), formType === PROFILE && !isOktaUser && /*#__PURE__*/React__default.createElement(FormInput$1, {
37994
+ }), formType === PROFILE && /*#__PURE__*/React__default.createElement(FormInput$1, {
37998
37995
  labelTextWhenNoError: "Password",
37999
37996
  errorMessages: {},
38000
37997
  field: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "4.5.2",
3
+ "version": "4.5.3",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -52,7 +52,6 @@ const InternalUserInfoForm = ({
52
52
  roleDisabled,
53
53
  selectionDisabled,
54
54
  formType,
55
- isOktaUser,
56
55
  openChangePasswordForm,
57
56
  firstName,
58
57
  lastName
@@ -172,7 +171,7 @@ const InternalUserInfoForm = ({
172
171
  onKeyDown={e => e.key === "Enter" && handleSubmit(e)}
173
172
  disabled={emailDisabled}
174
173
  />
175
- {formType === PROFILE && !isOktaUser && (
174
+ {formType === PROFILE && (
176
175
  <FormInput
177
176
  labelTextWhenNoError="Password"
178
177
  errorMessages={{}}