@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.
@@ -1,5 +1,5 @@
1
1
  import { DateTime } from "luxon";
2
- import { ProgrammeTransfer } from '../Entities/programmeTransfer';
2
+ import { ProgrammeTransfer } from "../Entities/programmeTransfer";
3
3
  export declare enum ProgrammeStage {
4
4
  AwaitingAuthorization = "Pending",
5
5
  Authorised = "Authorised",
package/dist/esm/index.js CHANGED
@@ -319,6 +319,9 @@ var addSpaces = function (text) {
319
319
  if (!text) {
320
320
  return text;
321
321
  }
322
+ if (text === text.toUpperCase()) {
323
+ return text;
324
+ }
322
325
  return text.replace(/([A-Z])/g, " $1").trim();
323
326
  };
324
327
  var getFinancialFields = function (programme) {
@@ -1177,7 +1180,7 @@ var AddNewCompanyComponent = function (props) {
1177
1180
  },
1178
1181
  ] },
1179
1182
  React.createElement(PhoneInput, { placeholder: "Phone number", international: true, value: formatPhoneNumberIntl(contactNoInput), defaultCountry: "LK", countryCallingCodeEditable: false, onChange: function (v) { }, countries: countries })),
1180
- regionField && (React.createElement(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: [
1183
+ regionField && (React.createElement(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: [
1181
1184
  {
1182
1185
  required: true,
1183
1186
  message: "".concat(t("region"), " ").concat(t("isRequired")),