@undp/carbon-library 1.0.23 → 1.0.25
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/cjs/index.js +4 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/Definitions/Definitions/programme.definitions.d.ts +1 -1
- package/dist/esm/index.js +4 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/Definitions/Definitions/programme.definitions.d.ts +1 -1
- package/package.json +1 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
import { DateTime } from "luxon";
|
2
|
-
import { ProgrammeTransfer } from
|
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.
|
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")),
|