@undp/carbon-library 1.0.23 → 1.0.25

Sign up to get free protection for your applications and to get access to all the features.
package/dist/cjs/index.js CHANGED
@@ -339,6 +339,9 @@ var addSpaces = function (text) {
339
339
  if (!text) {
340
340
  return text;
341
341
  }
342
+ if (text === text.toUpperCase()) {
343
+ return text;
344
+ }
342
345
  return text.replace(/([A-Z])/g, " $1").trim();
343
346
  };
344
347
  var getFinancialFields = function (programme) {
@@ -1197,7 +1200,7 @@ var AddNewCompanyComponent = function (props) {
1197
1200
  },
1198
1201
  ] },
1199
1202
  React.createElement(PhoneInput, { placeholder: "Phone number", international: true, value: PhoneInput.formatPhoneNumberIntl(contactNoInput), defaultCountry: "LK", countryCallingCodeEditable: false, onChange: function (v) { }, countries: countries })),
1200
- regionField && (React.createElement(antd.Form.Item, { label: t("region"), name: "regions", initialValue: (_h = state === null || state === void 0 ? void 0 : state.record) === null || _h === void 0 ? void 0 : _h.region, rules: [
1203
+ regionField && (React.createElement(antd.Form.Item, { label: t("region"), name: "regions", initialValue: (_h = state === null || state === void 0 ? void 0 : state.record) === null || _h === void 0 ? void 0 : _h.regions, rules: [
1201
1204
  {
1202
1205
  required: true,
1203
1206
  message: "".concat(t("region"), " ").concat(t("isRequired")),