@undp/carbon-library 1.0.19 → 1.0.21
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 +22 -21
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/Components/Common/ProfileIcon/profile.icon.d.ts +1 -2
- package/dist/cjs/types/Components/Common/RoleIcon/role.icon.d.ts +1 -2
- package/dist/esm/index.js +22 -22
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/Components/Common/ProfileIcon/profile.icon.d.ts +1 -2
- package/dist/esm/types/Components/Common/RoleIcon/role.icon.d.ts +1 -2
- package/dist/index.d.ts +2 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { PlusOutlined, FilterOutlined, BankOutlined, SafetyOutlined, ExperimentOutlined, UploadOutlined, EllipsisOutlined, StarOutlined, SearchOutlined, ToolOutlined, EyeOutlined, EditOutlined, DeleteOutlined, BlockOutlined, BulbOutlined, ClockCircleOutlined, UserOutlined } from '@ant-design/icons';
|
2
2
|
import { Input, Radio, Space, Row, Col, Button, Dropdown, Table, Empty, message, Form, Steps, Upload, Tooltip, Modal, Alert, Card, Skeleton, Popover, List, Typography, Tag, Checkbox, InputNumber, Select, Spin, Progress } from 'antd';
|
3
3
|
import React, { useState, useEffect, useRef } from 'react';
|
4
|
-
import { Buffer } from 'buffer';
|
5
4
|
import { DateTime } from 'luxon';
|
5
|
+
import { Buffer } from 'buffer';
|
6
6
|
import PhoneInput, { formatPhoneNumberIntl } from 'react-phone-number-input';
|
7
7
|
import validator from 'validator';
|
8
8
|
import { plainToClass } from 'class-transformer';
|
@@ -146,26 +146,6 @@ var CertBGColor = 'rgba(128, 255, 0, 0.12)';
|
|
146
146
|
var CertColor = '#519E4F';
|
147
147
|
var TooltipColor = '#6ACDFF';
|
148
148
|
|
149
|
-
var css_248z$f = ".profile-icon {\n border-radius: 100%;\n margin-right: 15px;\n font-size: 15px;\n width: 40px;\n height: 40px;\n display: flex;\n justify-content: center;\n align-items: center; }\n .profile-icon img {\n width: 26px; }\n";
|
150
|
-
styleInject(css_248z$f);
|
151
|
-
|
152
|
-
var isBase64 = function (str) {
|
153
|
-
if (!str || str === '' || str.trim() === '') {
|
154
|
-
return false;
|
155
|
-
}
|
156
|
-
try {
|
157
|
-
var bs = Buffer.from(str, 'base64').toString('base64');
|
158
|
-
return bs === str;
|
159
|
-
}
|
160
|
-
catch (err) {
|
161
|
-
return false;
|
162
|
-
}
|
163
|
-
};
|
164
|
-
var ProfileIcon = function (props) {
|
165
|
-
var icon = props.icon, bg = props.bg, name = props.name;
|
166
|
-
return (React.createElement("span", { className: "profile-icon", style: { backgroundColor: bg } }, isBase64(icon) ? (React.createElement("img", { alt: "profile-icon", src: 'data:image/jpeg;base64,' + icon })) : icon ? (React.createElement("img", { alt: "profile-icon", src: icon })) : name ? (name.charAt(0).toUpperCase()) : ('A')));
|
167
|
-
};
|
168
|
-
|
169
149
|
var ProgrammeStage;
|
170
150
|
(function (ProgrammeStage) {
|
171
151
|
ProgrammeStage["AwaitingAuthorization"] = "Pending";
|
@@ -403,6 +383,26 @@ var CompanyManagementColumns;
|
|
403
383
|
CompanyManagementColumns[CompanyManagementColumns["creditBalance"] = 5] = "creditBalance";
|
404
384
|
})(CompanyManagementColumns || (CompanyManagementColumns = {}));
|
405
385
|
|
386
|
+
var css_248z$f = ".profile-icon {\n border-radius: 100%;\n margin-right: 15px;\n font-size: 15px;\n width: 40px;\n height: 40px;\n display: flex;\n justify-content: center;\n align-items: center; }\n .profile-icon img {\n width: 26px; }\n";
|
387
|
+
styleInject(css_248z$f);
|
388
|
+
|
389
|
+
var isBase64 = function (str) {
|
390
|
+
if (!str || str === '' || str.trim() === '') {
|
391
|
+
return false;
|
392
|
+
}
|
393
|
+
try {
|
394
|
+
var bs = Buffer.from(str, 'base64').toString('base64');
|
395
|
+
return bs === str;
|
396
|
+
}
|
397
|
+
catch (err) {
|
398
|
+
return false;
|
399
|
+
}
|
400
|
+
};
|
401
|
+
var ProfileIcon = function (props) {
|
402
|
+
var icon = props.icon, bg = props.bg, name = props.name;
|
403
|
+
return (React.createElement("span", { className: "profile-icon", style: { backgroundColor: bg } }, isBase64(icon) ? (React.createElement("img", { alt: "profile-icon", src: 'data:image/jpeg;base64,' + icon })) : icon ? (React.createElement("img", { alt: "profile-icon", src: icon })) : name ? (name.charAt(0).toUpperCase()) : ('A')));
|
404
|
+
};
|
405
|
+
|
406
406
|
var Search$2 = Input.Search;
|
407
407
|
var CompanyManagementComponent = function (props) {
|
408
408
|
var t = props.t, useAbilityContext = props.useAbilityContext, post = props.post, visibleColumns = props.visibleColumns, onNavigateToCompanyProfile = props.onNavigateToCompanyProfile, onClickAddCompany = props.onClickAddCompany;
|
@@ -5263,5 +5263,5 @@ var ProgrammeTransfer = /** @class */ (function () {
|
|
5263
5263
|
return ProgrammeTransfer;
|
5264
5264
|
}());
|
5265
5265
|
|
5266
|
-
export { AddNewCompanyComponent, AddNewUserComponent, BaseEntity, Company, CompanyManagementColumns, CompanyManagementComponent, CompanyProfileComponent, CompanyRole$1 as CompanyRole, ConfigurationSettingsType, CreditTransferStage, LegendItem, Loading, MapComponent, MapTypes, MapboxComponent, ProgrammeManagementColumns, ProgrammeManagementComponent, ProgrammeStage, ProgrammeTransfer, ProgrammeViewComponent, RetireType, Role, SectoralScope, StasticCard, TxType, TypeOfMitigation, UnitField, User, UserManagementColumns, UserManagementComponent, UserProfileComponent, addCommSep, addCommSepRound, addRoundNumber, addSpaces, getCompanyBgColor, getCreditStageVal, getFinancialFields, getGeneralFields, getRetirementTypeString, getStageEnumVal, getStageTagType, getStageTransferEnumVal, getTransferStageTagType, isBase64, sumArray };
|
5266
|
+
export { AddNewCompanyComponent, AddNewUserComponent, BaseEntity, Company, CompanyManagementColumns, CompanyManagementComponent, CompanyProfileComponent, CompanyRole$1 as CompanyRole, ConfigurationSettingsType, CreditTransferStage, LegendItem, Loading, MapComponent, MapTypes, MapboxComponent, ProfileIcon, ProgrammeManagementColumns, ProgrammeManagementComponent, ProgrammeStage, ProgrammeTransfer, ProgrammeViewComponent, RetireType, Role, SectoralScope, StasticCard, TxType, TypeOfMitigation, UnitField, User, UserManagementColumns, UserManagementComponent, UserProfileComponent, addCommSep, addCommSepRound, addRoundNumber, addSpaces, getCompanyBgColor, getCreditStageVal, getFinancialFields, getGeneralFields, getRetirementTypeString, getStageEnumVal, getStageTagType, getStageTransferEnumVal, getTransferStageTagType, isBase64, sumArray };
|
5267
5267
|
//# sourceMappingURL=index.js.map
|