@zohodesk/dot 1.0.0-beta.181 → 1.0.0-beta.182
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/README.md +4 -0
- package/es/ExternalLink/ExternalLink.js +10 -5
- package/es/ExternalLink/__tests__/ExternalLink.spec.js +0 -1
- package/es/Link/Link.js +7 -4
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +0 -2
- package/es/list/SecondaryText/AccountName.js +23 -9
- package/es/list/SecondaryText/ContactName.js +18 -6
- package/es/list/SecondaryText/Email.js +19 -7
- package/es/list/SecondaryText/PhoneNumber.js +19 -7
- package/es/list/SecondaryText/TicketId.js +18 -6
- package/es/list/Subject/Subject.js +18 -6
- package/es/list/status/StatusListItem/StatusListItem.js +0 -2
- package/es/utils/General.js +0 -1
- package/es/utils/editorUtils.js +0 -1
- package/lib/ActionButton/ActionButton.js +1 -1
- package/lib/ActionButton/docs/ActionButton__default.docs.js +1 -1
- package/lib/AlphabeticList/AlphabeticList.js +1 -1
- package/lib/AlphabeticList/docs/AlphabeticList__default.docs.js +1 -1
- package/lib/AlphabeticList/docs/AlphabeticList__horizontal.docs.js +1 -1
- package/lib/Attachment/Attachment.js +1 -1
- package/lib/Attachment/docs/Attachment__default.docs.js +1 -1
- package/lib/ChannelIcon/ChannelIcon.js +1 -1
- package/lib/ChannelIcon/docs/ChannelIcon__default.docs.js +1 -1
- package/lib/Drawer/Drawer.js +2 -2
- package/lib/Drawer/docs/Drawer__default.docs.js +1 -1
- package/lib/Drawer/docs/Drawer__multiDrawer.docs.js +1 -1
- package/lib/Drawer/docs/Drawer__noFreeze.docs.js +1 -1
- package/lib/Drawer/docs/Drawer__withModal.docs.js +1 -1
- package/lib/ExternalLink/ExternalLink.js +11 -6
- package/lib/ExternalLink/docs/ExternalLink__default.docs.js +1 -1
- package/lib/FlipCard/FlipCard.js +1 -1
- package/lib/FlipCard/docs/FlipCard__default.docs.js +1 -1
- package/lib/FormAction/FormAction.js +2 -2
- package/lib/FormAction/docs/FormAction__default.docs.js +1 -1
- package/lib/FreezeLayer/FreezeLayer.js +1 -1
- package/lib/FreezeLayer/docs/FreezeLayer__dark.docs.js +1 -1
- package/lib/FreezeLayer/docs/FreezeLayer__default.docs.js +1 -1
- package/lib/IconButton/IconButton.js +1 -1
- package/lib/IconButton/docs/IconButton__default.docs.js +1 -1
- package/lib/Image/Image.js +1 -1
- package/lib/Image/docs/Image__default.docs.js +1 -1
- package/lib/ImportantNotes/ImportantNotes.js +1 -1
- package/lib/ImportantNotes/docs/ImportantNotes__default.docs.js +1 -1
- package/lib/Link/Link.js +8 -5
- package/lib/Link/docs/Link__default.docs.js +1 -1
- package/lib/Loader/Loader.js +1 -1
- package/lib/Loader/docs/Loader__default.docs.js +1 -1
- package/lib/Message/Message.js +2 -2
- package/lib/Message/docs/Message__default.docs.js +1 -1
- package/lib/MessageBanner/MessageBanner.js +1 -1
- package/lib/MessageBanner/docs/MessageBanner__default.docs.js +1 -1
- package/lib/NewStar/NewStar.js +1 -1
- package/lib/NewStar/docs/NewStar__default.docs.js +1 -1
- package/lib/PlusIcon/PlusIcon.js +1 -1
- package/lib/PlusIcon/docs/PlusIcon__default.docs.js +1 -1
- package/lib/Provider.js +1 -1
- package/lib/ToastMessage/docs/ToastMessage__custom.docs.js +1 -1
- package/lib/ToastMessage/docs/ToastMessage__information.docs.js +1 -1
- package/lib/ToastMessage/docs/ToastMessage__primary.docs.js +1 -1
- package/lib/ToastMessage/docs/ToastMessage__secondary.docs.js +1 -1
- package/lib/ToastMessage/docs/ToastMessage__success.docs.js +1 -1
- package/lib/Upload/Upload.js +1 -1
- package/lib/Upload/docs/Upload__default.docs.js +1 -1
- package/lib/alert/AlertHeader/AlertHeader.js +1 -1
- package/lib/alert/AlertHeader/docs/AlertHeader__default.docs.js +1 -1
- package/lib/alert/AlertLookup/AlertLookup.js +1 -1
- package/lib/alert/AlertLookup/docs/AlertLookup__default.docs.js +1 -1
- package/lib/avatar/AvatarClose/AvatarClose.js +1 -1
- package/lib/avatar/AvatarClose/docs/AvatarClose__default.docs.js +1 -1
- package/lib/avatar/AvatarCollision/AvatarCollision.js +1 -1
- package/lib/avatar/AvatarCollision/docs/AvatarCollision__default.docs.js +1 -1
- package/lib/avatar/AvatarIcon/AvatarIcon.js +1 -1
- package/lib/avatar/AvatarIcon/docs/AvatarIcon__palette.docs.js +1 -1
- package/lib/avatar/AvatarIcon/docs/AvatarIcon__size.docs.js +1 -1
- package/lib/avatar/AvatarStatus/AvatarStatus.js +1 -1
- package/lib/avatar/AvatarStatus/docs/AvatarStatus__size.docs.js +1 -1
- package/lib/avatar/AvatarStatus/docs/AvatarStatus__state.docs.js +1 -1
- package/lib/avatar/AvatarThread/AvatarThread.js +1 -1
- package/lib/avatar/AvatarThread/docs/AvatarThread__default.docs.js +1 -1
- package/lib/avatar/AvatarUser/AvatarUser.js +1 -1
- package/lib/avatar/AvatarUser/docs/AvatarUser__default.docs.js +1 -1
- package/lib/avatar/AvatarWithTeam/AvatarWithTeam.js +1 -1
- package/lib/avatar/AvatarWithTeam/docs/AvatarWithTeam__default.docs.js +1 -1
- package/lib/deprecated/SelectDropdown/SelectDropdown.js +1 -1
- package/lib/deprecated/SelectDropdown/docs/SelectDropdown__default.docs.js +1 -1
- package/lib/docs/formDocs.js +52 -52
- package/lib/docs/generalDocs.js +250 -250
- package/lib/docs/lookupDocs.js +70 -70
- package/lib/docs/setupDocs.js +32 -32
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +1 -1
- package/lib/dropdown/ToggleDropDown/docs/ToggleDropDown__default.docs.js +1 -1
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.js +1 -1
- package/lib/emptystate/CommonEmptyState/docs/CommonEmptyState__default.docs.js +1 -1
- package/lib/emptystate/EditionPage/EditionPage.js +1 -1
- package/lib/emptystate/EditionPage/docs/EditionPage__default.docs.js +1 -1
- package/lib/errorstate/Inconvenience/Inconvenience.js +1 -1
- package/lib/errorstate/Inconvenience/docs/Inconvenience__default.docs.js +1 -1
- package/lib/errorstate/LinkText/LinkText.js +1 -1
- package/lib/errorstate/LinkText/docs/LinkText__default.docs.js +1 -1
- package/lib/errorstate/NoRequestFound/NoRequestFound.js +1 -1
- package/lib/errorstate/NoRequestFound/docs/NoRequestFound__default.docs.js +1 -1
- package/lib/errorstate/PermissionPlay/PermissionPlay.js +1 -1
- package/lib/errorstate/PermissionPlay/docs/PermissionPlay__default.docs.js +1 -1
- package/lib/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +1 -1
- package/lib/errorstate/RequestUrlNotFound/docs/RequestUrlNotFound__default.docs.js +1 -1
- package/lib/errorstate/UnableToProcess/UnableToProcess.js +1 -1
- package/lib/errorstate/UnableToProcess/docs/UnableToProcess__default.docs.js +1 -1
- package/lib/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +1 -1
- package/lib/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__insufficient.docs.js +1 -1
- package/lib/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__unauthorizedLogin.docs.js +1 -1
- package/lib/errorstate/WillBack/WillBack.js +1 -1
- package/lib/errorstate/WillBack/docs/WillBack__default.docs.js +1 -1
- package/lib/form/fields/CheckBoxField/CheckBoxField.js +1 -1
- package/lib/form/fields/CheckBoxField/docs/CheckBoxField__default.docs.js +1 -1
- package/lib/form/fields/CurrencyField/CurrencyField.js +1 -1
- package/lib/form/fields/DateField/DateField.js +1 -1
- package/lib/form/fields/DateField/docs/DateField__default.docs.js +1 -1
- package/lib/form/fields/MultiSelectField/MultiSelectField.js +1 -1
- package/lib/form/fields/MultiSelectField/docs/MultiSelectField__default.docs.js +1 -1
- package/lib/form/fields/PhoneField/PhoneField.js +1 -1
- package/lib/form/fields/PhoneField/docs/PhoneField__default.docs.js +1 -1
- package/lib/form/fields/RadioField/RadioField.js +1 -1
- package/lib/form/fields/SelectField/SelectField.js +1 -1
- package/lib/form/fields/SelectField/docs/SelectField__default.docs.js +1 -1
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +1 -1
- package/lib/form/fields/TagsMultiSelect/docs/TagsMultiSelect__default.docs.js +1 -1
- package/lib/form/fields/TextBoxField/TextBoxField.js +1 -1
- package/lib/form/fields/TextBoxField/docs/TextBoxField__default.docs.js +1 -1
- package/lib/form/fields/TextEditor/TextEditor.js +1 -1
- package/lib/form/fields/TextEditorField/TextEditorField.js +1 -1
- package/lib/form/fields/TextEditorField/docs/TextEditorField__default.docs.js +1 -1
- package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.js +1 -1
- package/lib/form/fields/TextareaField/TextareaField.js +1 -1
- package/lib/form/fields/TextareaField/docs/TextareaField__default.docs.js +1 -1
- package/lib/form/fields/ValidationMessage/ValidationMessage.js +1 -1
- package/lib/form/fields/ValidationMessage/docs/ValidationMessage__default.docs.js +1 -1
- package/lib/form/layout/Field/Field.js +1 -1
- package/lib/form/layout/Field/docs/Field__default.docs.js +1 -1
- package/lib/form/layout/Section/Section.js +1 -1
- package/lib/form/layout/Section/docs/Section__default.docs.js +1 -1
- package/lib/index.js +4 -4
- package/lib/layout/SetupDetailLayout/SetupDetailLayout.js +2 -2
- package/lib/layout/SetupDetailLayout/docs/SetupDetailLayout__default.docs.js +1 -1
- package/lib/layout/SetupDetailLayout/index.js +6 -6
- package/lib/layout/SubtabLayout/SubtabLayout.js +2 -2
- package/lib/layout/SubtabLayout/docs/SubtabLayout__default.docs.js +1 -1
- package/lib/layout/SubtabLayout/index.js +8 -8
- package/lib/list/AvatarFlip/AvatarFlip.js +1 -1
- package/lib/list/AvatarFlip/docs/AvatarFlip__default.docs.js +1 -1
- package/lib/list/BluePrintStatus/BluePrintStatus.js +1 -1
- package/lib/list/BluePrintStatus/docs/BluePrintStatus__default.docs.js +1 -1
- package/lib/list/Comment/Comment.js +1 -1
- package/lib/list/Comment/docs/Comment__default.docs.js +1 -1
- package/lib/list/DepartmentDropDown/DepartmentDropDown.js +1 -1
- package/lib/list/Dot/Dot.js +1 -1
- package/lib/list/DotNew/DotNew.js +1 -1
- package/lib/list/DotNew/docs/DotNew__default.docs.js +1 -1
- package/lib/list/GridStencils/GridStencils.js +1 -1
- package/lib/list/GridStencils/docs/GridStencils__default.docs.js +1 -1
- package/lib/list/Icons/AddNewIcon.js +1 -1
- package/lib/list/Icons/CompleteIcon.js +1 -1
- package/lib/list/Icons/DeleteIcon.js +1 -1
- package/lib/list/Icons/EditIcon.js +1 -1
- package/lib/list/Icons/FloatingIcons.js +1 -1
- package/lib/list/Icons/ReadUnreadIcon.js +1 -1
- package/lib/list/Icons/SmartIcon.js +1 -1
- package/lib/list/Icons/docs/FloatingIcons__default.docs.js +1 -1
- package/lib/list/ListLayout/ListLayout.js +2 -2
- package/lib/list/ListLayout/docs/ListLayout__default.docs.js +1 -1
- package/lib/list/ListStencils/ListStencils.js +1 -1
- package/lib/list/ListStencils/docs/ListStencils__default.docs.js +1 -1
- package/lib/list/SecondaryText/AccountName.js +25 -10
- package/lib/list/SecondaryText/ContactName.js +19 -7
- package/lib/list/SecondaryText/DepartmentText.js +1 -1
- package/lib/list/SecondaryText/Email.js +20 -8
- package/lib/list/SecondaryText/HappinessRating.js +1 -1
- package/lib/list/SecondaryText/PhoneNumber.js +20 -8
- package/lib/list/SecondaryText/PriorityText.js +1 -1
- package/lib/list/SecondaryText/SecondaryText.js +1 -1
- package/lib/list/SecondaryText/StatusText.js +1 -1
- package/lib/list/SecondaryText/TicketId.js +19 -7
- package/lib/list/SecondaryText/Website.js +1 -1
- package/lib/list/SecondaryText/docs/ContactName__default.docs.js +1 -1
- package/lib/list/SecondaryText/index.js +22 -22
- package/lib/list/SecondryPanel/SecondryPanel.js +2 -2
- package/lib/list/SecondryPanel/docs/SecondryPanel__default.docs.js +1 -1
- package/lib/list/SentimentStatus/SentimentStatus.js +1 -1
- package/lib/list/SentimentStatus/docs/SentimentStatus__default.docs.js +1 -1
- package/lib/list/Subject/Subject.js +19 -7
- package/lib/list/Subject/docs/Subject__default.docs.js +1 -1
- package/lib/list/TagNew/TagNew.js +1 -1
- package/lib/list/TagNew/docs/TagNew__default.docs.js +1 -1
- package/lib/list/Thread/Thread.js +1 -1
- package/lib/list/Thread/docs/Thread__default.docs.js +1 -1
- package/lib/list/UserTime/UserTime.js +1 -1
- package/lib/list/UserTime/docs/UserTime__default.docs.js +1 -1
- package/lib/list/status/StatusDropdown/StatusDropdown.js +1 -1
- package/lib/list/status/StatusDropdown/docs/StatusDropdown__default.docs.js +1 -1
- package/lib/list/status/StatusListItem/StatusListItem.js +1 -1
- package/lib/list/status/StatusListItem/docs/StatusListItem__default.docs.js +1 -1
- package/lib/lookup/EmptyPage/EmptyPage.js +1 -1
- package/lib/lookup/EmptyPage/docs/EmptyPage__account.docs.js +1 -1
- package/lib/lookup/EmptyPage/docs/EmptyPage__contact.docs.js +1 -1
- package/lib/lookup/EmptyPage/docs/EmptyPage__default.docs.js +1 -1
- package/lib/lookup/EmptyPage/docs/EmptyPage__product.docs.js +1 -1
- package/lib/lookup/Lookup/Lookup.js +1 -1
- package/lib/lookup/Lookup/docs/Lookup__contact.docs.js +1 -1
- package/lib/lookup/Lookup/docs/Lookup__default.docs.js +1 -1
- package/lib/lookup/Section/Section.js +1 -1
- package/lib/lookup/header/Close/Close.js +1 -1
- package/lib/lookup/header/Close/docs/Close__default.docs.js +1 -1
- package/lib/lookup/header/ModuleHeader/ModuleHeader.js +1 -1
- package/lib/lookup/header/ModuleHeader/docs/ModuleHeader__default.docs.js +1 -1
- package/lib/lookup/header/Search/Search.js +1 -1
- package/lib/lookup/header/Search/docs/Search__default.docs.js +1 -1
- package/lib/lookup/header/TicketHeader/TicketHeader.js +1 -1
- package/lib/lookup/header/TicketHeader/docs/TicketHeader__default.docs.js +1 -1
- package/lib/lookup/header/Title/Title.js +1 -1
- package/lib/lookup/header/Title/docs/Title__default.docs.js +1 -1
- package/lib/lookup/header/ViewDropDown/ViewDropDown.js +1 -1
- package/lib/lookup/header/ViewDropDown/docs/ViewDropDown__default.docs.js +1 -1
- package/lib/setup/header/Button/Button.js +1 -1
- package/lib/setup/header/Button/docs/Button__default.docs.js +1 -1
- package/lib/setup/header/Link/Link.js +1 -1
- package/lib/setup/header/Link/docs/Link__default.docs.js +1 -1
- package/lib/setup/header/Search/Search.js +1 -1
- package/lib/setup/header/Search/docs/Search__default.docs.js +1 -1
- package/lib/setup/header/Views/Views.js +1 -1
- package/lib/setup/header/Views/docs/Views__default.docs.js +1 -1
- package/lib/setup/helptips/Description/Description.js +1 -1
- package/lib/setup/helptips/Description/docs/Description__default.docs.js +1 -1
- package/lib/setup/helptips/Link/Link.js +1 -1
- package/lib/setup/helptips/Link/docs/Link__default.docs.js +1 -1
- package/lib/setup/helptips/ListGroup/ListGroup.js +1 -1
- package/lib/setup/helptips/ListGroup/docs/ListGroup__default.docs.js +1 -1
- package/lib/setup/helptips/Title/Title.js +1 -1
- package/lib/setup/helptips/Title/docs/Title__default.docs.js +1 -1
- package/lib/setup/table/Table/Table.js +1 -1
- package/lib/setup/table/Table/docs/Table__default.docs.js +1 -1
- package/lib/setup/table/TableBody/TableBody.js +1 -1
- package/lib/setup/table/TableData/TableData.js +1 -1
- package/lib/setup/table/TableHead/TableHead.js +1 -1
- package/lib/setup/table/TableRow/TableRow.js +1 -1
- package/lib/setup/table/Text/Text.js +1 -1
- package/lib/setup/table/Text/docs/Text__default.docs.js +1 -1
- package/lib/svg/PlusIcon.js +1 -1
- package/lib/svg/SnippetIcon.js +1 -1
- package/lib/svg/TemplateIcon.js +1 -1
- package/lib/svg/docs/SVG__default.docs.js +1 -1
- package/lib/utils/ChannelIconMapping.js +1 -1
- package/lib/utils/General.js +3 -3
- package/lib/utils/editorUtils.js +6 -6
- package/lib/version2/AlertClose/AlertClose.js +1 -1
- package/lib/version2/AlertClose/docs/AlertClose__default.docs.js +1 -1
- package/lib/version2/GlobalNotification/GlobalNotification.js +2 -2
- package/lib/version2/GlobalNotification/docs/GlobalNotification__default.docs.js +1 -1
- package/lib/version2/alertIcons/AlarmAlertIcon.js +1 -1
- package/lib/version2/alertIcons/AlertIcons.js +1 -1
- package/lib/version2/alertIcons/DangerAlertIcon.js +1 -1
- package/lib/version2/alertIcons/ErrorAlertIcon.js +1 -1
- package/lib/version2/alertIcons/InfoAlertIcon.js +1 -1
- package/lib/version2/alertIcons/NotificationAlertIcon.js +1 -1
- package/lib/version2/alertIcons/SuccessAlertIcon.js +1 -1
- package/lib/version2/alertIcons/WarningAlertIcon.js +1 -1
- package/lib/version2/alertIcons/docs/AlertIcons__default.docs.js +1 -1
- package/lib/version2/errorstate/Inconvenience/Inconvenience.js +1 -1
- package/lib/version2/errorstate/Inconvenience/docs/Inconvenience__default.docs.js +1 -1
- package/lib/version2/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +1 -1
- package/lib/version2/errorstate/OopsSomethingMiss/docs/OopsSomethingMiss__default.docs.js +1 -1
- package/lib/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +1 -1
- package/lib/version2/errorstate/UnableToProcessRequest/docs/UnableToProcessRequest__default.docs.js +1 -1
- package/lib/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +1 -1
- package/lib/version2/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__default.docs.js +1 -1
- package/lib/version2/errorstate/UrlNotFound/UrlNotFound.js +1 -1
- package/lib/version2/errorstate/UrlNotFound/docs/UrlNotFound__default.docs.js +1 -1
- package/lib/version2/errorstate/WillBeRightBack/WillBeRightBack.js +1 -1
- package/lib/version2/errorstate/WillBeRightBack/docs/WillBeRightBack__default.docs.js +1 -1
- package/lib/version2/lookup/AlertHeader/AlertHeader.js +1 -1
- package/lib/version2/lookup/AlertHeader/docs/AlertHeader__default.docs.js +1 -1
- package/lib/version2/lookup/AlertLookup/AlertLookup.js +1 -1
- package/lib/version2/lookup/AlertLookup/docs/AlertLookup__default.docs.js +1 -1
- package/lib/version2/notification/DesktopNotification/docs/DesktopNotification__default.docs.js +1 -1
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +1 -1
- package/lib/version2/notification/DesktopNotificationHeader/docs/DesktopNotificationHeader__default.docs.js +1 -1
- package/package.json +1 -1
- package/src/ExternalLink/ExternalLink.js +8 -3
- package/src/Link/Link.js +7 -3
- package/src/list/SecondaryText/AccountName.js +13 -3
- package/src/list/SecondaryText/ContactName.js +11 -2
- package/src/list/SecondaryText/Email.js +12 -3
- package/src/list/SecondaryText/PhoneNumber.js +12 -3
- package/src/list/SecondaryText/TicketId.js +12 -3
- package/src/list/Subject/Subject.js +12 -4
package/README.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
In this Library we Provide Some Basic Components to Build Your Application
|
|
4
4
|
|
|
5
|
+
# 1.0.0-beta.182
|
|
6
|
+
|
|
7
|
+
- ExternalLink, Link, AccountName, ContactName, SecondaryText/Email, SecondaryText/PhoneNumber, SecondaryText/TicketId, Subject => **customProps** prop added
|
|
8
|
+
|
|
5
9
|
# 1.0.0-beta.181
|
|
6
10
|
|
|
7
11
|
- ReadUnReadIcon => icon Name fix
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React from 'react';
|
|
3
5
|
import PropTypes from 'prop-types';
|
|
@@ -24,10 +26,11 @@ export default class ExternalLink extends React.Component {
|
|
|
24
26
|
children,
|
|
25
27
|
rel,
|
|
26
28
|
dataId,
|
|
27
|
-
onClick
|
|
29
|
+
onClick,
|
|
30
|
+
customProps
|
|
28
31
|
} = this.props;
|
|
29
32
|
const urlOutput = href && typeof href !== 'boolean' ? this.addHttp(String(href)) : 'javascript:void(0);';
|
|
30
|
-
return /*#__PURE__*/React.createElement("a", {
|
|
33
|
+
return /*#__PURE__*/React.createElement("a", _extends({
|
|
31
34
|
href: urlOutput,
|
|
32
35
|
target: target,
|
|
33
36
|
className: `${style.link} ${className ? className : ''}`,
|
|
@@ -35,13 +38,14 @@ export default class ExternalLink extends React.Component {
|
|
|
35
38
|
rel: rel,
|
|
36
39
|
"data-id": dataId,
|
|
37
40
|
onClick: onClick
|
|
38
|
-
}, children);
|
|
41
|
+
}, customProps), children);
|
|
39
42
|
}
|
|
40
43
|
|
|
41
44
|
}
|
|
42
45
|
ExternalLink.defaultProps = {
|
|
43
46
|
rel: 'noopener noreferrer',
|
|
44
|
-
target: '_blank'
|
|
47
|
+
target: '_blank',
|
|
48
|
+
customProps: {}
|
|
45
49
|
};
|
|
46
50
|
ExternalLink.propTypes = {
|
|
47
51
|
children: PropTypes.node,
|
|
@@ -51,7 +55,8 @@ ExternalLink.propTypes = {
|
|
|
51
55
|
rel: PropTypes.string,
|
|
52
56
|
target: PropTypes.oneOf(['_blank', '_self']),
|
|
53
57
|
title: PropTypes.string,
|
|
54
|
-
onClick: PropTypes.func
|
|
58
|
+
onClick: PropTypes.func,
|
|
59
|
+
customProps: PropTypes.object
|
|
55
60
|
};
|
|
56
61
|
|
|
57
62
|
if (false) {
|
package/es/Link/Link.js
CHANGED
|
@@ -57,7 +57,8 @@ export default class Link extends React.Component {
|
|
|
57
57
|
title,
|
|
58
58
|
download,
|
|
59
59
|
rel,
|
|
60
|
-
dataId
|
|
60
|
+
dataId,
|
|
61
|
+
customProps
|
|
61
62
|
} = this.props;
|
|
62
63
|
let {
|
|
63
64
|
isLink,
|
|
@@ -86,14 +87,15 @@ export default class Link extends React.Component {
|
|
|
86
87
|
"data-id": dataId
|
|
87
88
|
}, others, {
|
|
88
89
|
onClick: this.onCallBack.bind(this, urlOutput, href)
|
|
89
|
-
}), children);
|
|
90
|
+
}, customProps), children);
|
|
90
91
|
}
|
|
91
92
|
|
|
92
93
|
}
|
|
93
94
|
Link.contextType = LinkContext;
|
|
94
95
|
Link.defaultProps = {
|
|
95
96
|
rel: 'noopener noreferrer',
|
|
96
|
-
hasReload: false
|
|
97
|
+
hasReload: false,
|
|
98
|
+
customProps: {}
|
|
97
99
|
};
|
|
98
100
|
Link.propTypes = {
|
|
99
101
|
children: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
@@ -105,7 +107,8 @@ Link.propTypes = {
|
|
|
105
107
|
target: PropTypes.oneOf(['_blank', '_self']),
|
|
106
108
|
title: PropTypes.string,
|
|
107
109
|
urlData: PropTypes.object,
|
|
108
|
-
urlName: PropTypes.string
|
|
110
|
+
urlName: PropTypes.string,
|
|
111
|
+
customProps: PropTypes.object
|
|
109
112
|
};
|
|
110
113
|
|
|
111
114
|
if (false) {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import "core-js/modules/es.string.replace";
|
|
2
|
-
|
|
3
1
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
2
|
|
|
5
3
|
import React, { useState, useEffect } from 'react';
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
/* eslint-disable react/forbid-component-props */
|
|
2
4
|
|
|
3
5
|
/**** Libraries ****/
|
|
@@ -26,8 +28,14 @@ export default class AccountName extends Component {
|
|
|
26
28
|
fontWeight,
|
|
27
29
|
secondaryAccountHref,
|
|
28
30
|
secondaryAccountClick,
|
|
29
|
-
secondaryAccountText
|
|
31
|
+
secondaryAccountText,
|
|
32
|
+
customProps
|
|
30
33
|
} = this.props;
|
|
34
|
+
let {
|
|
35
|
+
LinkProps = {},
|
|
36
|
+
TextProps = {},
|
|
37
|
+
SecondaryTextProps = {}
|
|
38
|
+
} = customProps;
|
|
31
39
|
return /*#__PURE__*/React.createElement(Container, {
|
|
32
40
|
alignBox: "row",
|
|
33
41
|
align: "baseline",
|
|
@@ -44,24 +52,24 @@ export default class AccountName extends Component {
|
|
|
44
52
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
45
53
|
className: style.primaryAccountName,
|
|
46
54
|
shrink: true
|
|
47
|
-
}, isLink ? /*#__PURE__*/React.createElement(Link, {
|
|
55
|
+
}, isLink ? /*#__PURE__*/React.createElement(Link, _extends({
|
|
48
56
|
href: href,
|
|
49
57
|
urlName: urlName,
|
|
50
58
|
urlData: urlData,
|
|
51
59
|
onClick: onClick,
|
|
52
60
|
dataId: `${dataId}_link`,
|
|
53
61
|
className: style.link
|
|
54
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
62
|
+
}, LinkProps), /*#__PURE__*/React.createElement("div", {
|
|
55
63
|
className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
|
|
56
|
-
}, text)) : /*#__PURE__*/React.createElement("div", {
|
|
64
|
+
}, text)) : /*#__PURE__*/React.createElement("div", _extends({
|
|
57
65
|
className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''} ${notAccessible ? style.disable : ''}`
|
|
58
|
-
}, text)), secondaryAccountText && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Link, {
|
|
66
|
+
}, TextProps), text)), secondaryAccountText && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Link, {
|
|
59
67
|
href: secondaryAccountHref,
|
|
60
68
|
onClick: secondaryAccountClick,
|
|
61
69
|
className: style.link
|
|
62
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
70
|
+
}, /*#__PURE__*/React.createElement("div", _extends({
|
|
63
71
|
className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
|
|
64
|
-
}, secondaryAccountText))))));
|
|
72
|
+
}, SecondaryTextProps), secondaryAccountText))))));
|
|
65
73
|
}
|
|
66
74
|
|
|
67
75
|
}
|
|
@@ -79,12 +87,18 @@ AccountName.propTypes = {
|
|
|
79
87
|
urlName: PropTypes.string,
|
|
80
88
|
secondaryAccountHref: PropTypes.string,
|
|
81
89
|
secondaryAccountClick: PropTypes.func,
|
|
82
|
-
secondaryAccountText: PropTypes.string
|
|
90
|
+
secondaryAccountText: PropTypes.string,
|
|
91
|
+
customProps: PropTypes.shape({
|
|
92
|
+
LinkProps: PropTypes.object,
|
|
93
|
+
TextProps: PropTypes.object,
|
|
94
|
+
SecondaryTextProps: PropTypes.object
|
|
95
|
+
})
|
|
83
96
|
};
|
|
84
97
|
AccountName.defaultProps = {
|
|
85
98
|
isLink: true,
|
|
86
99
|
dataId: 'accountName',
|
|
87
|
-
fontWeight: 'regular'
|
|
100
|
+
fontWeight: 'regular',
|
|
101
|
+
customProps: {}
|
|
88
102
|
};
|
|
89
103
|
|
|
90
104
|
if (false) {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import React, { Component } from 'react';
|
|
2
4
|
import PropTypes from 'prop-types';
|
|
3
5
|
import { Container, Box } from '@zohodesk/components/lib/Layout';
|
|
@@ -21,7 +23,8 @@ export default class ContactName extends Component {
|
|
|
21
23
|
href,
|
|
22
24
|
notAccessible = false,
|
|
23
25
|
fontWeight,
|
|
24
|
-
i18nKeys
|
|
26
|
+
i18nKeys,
|
|
27
|
+
customProps
|
|
25
28
|
} = this.props;
|
|
26
29
|
let {
|
|
27
30
|
sentimentTitles = {
|
|
@@ -32,6 +35,10 @@ export default class ContactName extends Component {
|
|
|
32
35
|
paidTitle = 'Paid User'
|
|
33
36
|
} = i18nKeys;
|
|
34
37
|
let sentimentDataTitle = sentimentTitles[sentimentType];
|
|
38
|
+
let {
|
|
39
|
+
LinkProps = {},
|
|
40
|
+
TextProps = {}
|
|
41
|
+
} = customProps;
|
|
35
42
|
return /*#__PURE__*/React.createElement(Container, {
|
|
36
43
|
alignBox: "row",
|
|
37
44
|
align: "baseline",
|
|
@@ -45,7 +52,7 @@ export default class ContactName extends Component {
|
|
|
45
52
|
iconClass: style.icon
|
|
46
53
|
})), /*#__PURE__*/React.createElement(Box, {
|
|
47
54
|
flexible: true
|
|
48
|
-
}, isLink ? /*#__PURE__*/React.createElement(Link, {
|
|
55
|
+
}, isLink ? /*#__PURE__*/React.createElement(Link, _extends({
|
|
49
56
|
urlName: urlName,
|
|
50
57
|
href: href,
|
|
51
58
|
urlData: urlData,
|
|
@@ -53,12 +60,12 @@ export default class ContactName extends Component {
|
|
|
53
60
|
title: dataTitle,
|
|
54
61
|
dataId: `${dataId}_link`,
|
|
55
62
|
className: style.link
|
|
56
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
63
|
+
}, LinkProps), /*#__PURE__*/React.createElement("div", {
|
|
57
64
|
className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
|
|
58
|
-
}, text)) : /*#__PURE__*/React.createElement("div", {
|
|
65
|
+
}, text)) : /*#__PURE__*/React.createElement("div", _extends({
|
|
59
66
|
className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''} ${notAccessible ? style.disable : ''}`,
|
|
60
67
|
"data-title": dataTitle
|
|
61
|
-
}, text)), sentimentType && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(SentimentStatus, {
|
|
68
|
+
}, TextProps), text)), sentimentType && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(SentimentStatus, {
|
|
62
69
|
type: sentimentType,
|
|
63
70
|
dataTitle: sentimentDataTitle
|
|
64
71
|
})));
|
|
@@ -87,6 +94,10 @@ ContactName.propTypes = {
|
|
|
87
94
|
neutral: PropTypes.string
|
|
88
95
|
}),
|
|
89
96
|
paidTitle: PropTypes.string
|
|
97
|
+
}),
|
|
98
|
+
customProps: PropTypes.shape({
|
|
99
|
+
LinkProps: PropTypes.object,
|
|
100
|
+
TextProps: PropTypes.object
|
|
90
101
|
})
|
|
91
102
|
};
|
|
92
103
|
ContactName.defaultProps = {
|
|
@@ -94,7 +105,8 @@ ContactName.defaultProps = {
|
|
|
94
105
|
isLink: true,
|
|
95
106
|
dataId: 'contactName',
|
|
96
107
|
fontWeight: 'regular',
|
|
97
|
-
i18nKeys: {}
|
|
108
|
+
i18nKeys: {},
|
|
109
|
+
customProps: {}
|
|
98
110
|
};
|
|
99
111
|
|
|
100
112
|
if (false) {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
/* eslint-disable react/forbid-component-props */
|
|
2
4
|
|
|
3
5
|
/**** Libraries ****/
|
|
@@ -20,21 +22,26 @@ export default class Email extends Component {
|
|
|
20
22
|
href,
|
|
21
23
|
isLink,
|
|
22
24
|
target,
|
|
23
|
-
fontWeight
|
|
25
|
+
fontWeight,
|
|
26
|
+
customProps
|
|
24
27
|
} = this.props;
|
|
25
|
-
|
|
28
|
+
let {
|
|
29
|
+
LinkProps = {},
|
|
30
|
+
TextProps = {}
|
|
31
|
+
} = customProps;
|
|
32
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link, _extends({
|
|
26
33
|
href: href,
|
|
27
34
|
title: title,
|
|
28
35
|
urlData: urlData,
|
|
29
36
|
urlName: urlName,
|
|
30
37
|
target: target,
|
|
31
38
|
className: style.link
|
|
32
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
39
|
+
}, LinkProps), /*#__PURE__*/React.createElement("div", {
|
|
33
40
|
className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
|
|
34
|
-
}, text)) : /*#__PURE__*/React.createElement("div", {
|
|
41
|
+
}, text)) : /*#__PURE__*/React.createElement("div", _extends({
|
|
35
42
|
className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''}`,
|
|
36
43
|
"data-title": title
|
|
37
|
-
}, text));
|
|
44
|
+
}, TextProps), text));
|
|
38
45
|
}
|
|
39
46
|
|
|
40
47
|
}
|
|
@@ -47,11 +54,16 @@ Email.propTypes = {
|
|
|
47
54
|
text: PropTypes.string,
|
|
48
55
|
title: PropTypes.string,
|
|
49
56
|
urlData: PropTypes.object,
|
|
50
|
-
urlName: PropTypes.string
|
|
57
|
+
urlName: PropTypes.string,
|
|
58
|
+
customProps: PropTypes.shape({
|
|
59
|
+
LinkProps: PropTypes.object,
|
|
60
|
+
TextProps: PropTypes.object
|
|
61
|
+
})
|
|
51
62
|
};
|
|
52
63
|
Email.defaultProps = {
|
|
53
64
|
isLink: true,
|
|
54
|
-
fontWeight: 'regular'
|
|
65
|
+
fontWeight: 'regular',
|
|
66
|
+
customProps: {}
|
|
55
67
|
};
|
|
56
68
|
|
|
57
69
|
if (false) {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
/* eslint-disable react/forbid-component-props */
|
|
2
4
|
|
|
3
5
|
/**** Libraries ****/
|
|
@@ -22,9 +24,14 @@ export default class PhoneNumber extends Component {
|
|
|
22
24
|
isLink,
|
|
23
25
|
target,
|
|
24
26
|
hasReload,
|
|
25
|
-
fontWeight
|
|
27
|
+
fontWeight,
|
|
28
|
+
customProps
|
|
26
29
|
} = this.props;
|
|
27
|
-
|
|
30
|
+
let {
|
|
31
|
+
LinkProps = {},
|
|
32
|
+
TextProps = {}
|
|
33
|
+
} = customProps;
|
|
34
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link, _extends({
|
|
28
35
|
href: href,
|
|
29
36
|
title: title,
|
|
30
37
|
urlData: urlData,
|
|
@@ -33,12 +40,12 @@ export default class PhoneNumber extends Component {
|
|
|
33
40
|
target: target,
|
|
34
41
|
hasReload: hasReload,
|
|
35
42
|
className: style.link
|
|
36
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
43
|
+
}, LinkProps), /*#__PURE__*/React.createElement("div", {
|
|
37
44
|
className: `${style.phoneNumber} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
|
|
38
|
-
}, text)) : /*#__PURE__*/React.createElement("div", {
|
|
45
|
+
}, text)) : /*#__PURE__*/React.createElement("div", _extends({
|
|
39
46
|
className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''}`,
|
|
40
47
|
"data-title": title
|
|
41
|
-
}, text));
|
|
48
|
+
}, TextProps), text));
|
|
42
49
|
}
|
|
43
50
|
|
|
44
51
|
}
|
|
@@ -53,12 +60,17 @@ PhoneNumber.propTypes = {
|
|
|
53
60
|
text: PropTypes.string,
|
|
54
61
|
title: PropTypes.string,
|
|
55
62
|
urlData: PropTypes.object,
|
|
56
|
-
urlName: PropTypes.string
|
|
63
|
+
urlName: PropTypes.string,
|
|
64
|
+
customProps: PropTypes.shape({
|
|
65
|
+
LinkProps: PropTypes.object,
|
|
66
|
+
TextProps: PropTypes.object
|
|
67
|
+
})
|
|
57
68
|
};
|
|
58
69
|
PhoneNumber.defaultProps = {
|
|
59
70
|
isLink: true,
|
|
60
71
|
hasReload: false,
|
|
61
|
-
fontWeight: 'regular'
|
|
72
|
+
fontWeight: 'regular',
|
|
73
|
+
customProps: {}
|
|
62
74
|
};
|
|
63
75
|
|
|
64
76
|
if (false) {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import React, { Component } from 'react';
|
|
2
4
|
import PropTypes from 'prop-types';
|
|
3
5
|
import Link from '../../Link/Link';
|
|
@@ -18,20 +20,25 @@ export default class TicketId extends Component {
|
|
|
18
20
|
url,
|
|
19
21
|
target,
|
|
20
22
|
urlName,
|
|
21
|
-
urlData
|
|
23
|
+
urlData,
|
|
24
|
+
customProps
|
|
22
25
|
} = this.props;
|
|
23
|
-
|
|
26
|
+
let {
|
|
27
|
+
LinkProps = {},
|
|
28
|
+
TicketIdProps = {}
|
|
29
|
+
} = customProps;
|
|
30
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
24
31
|
className: `${style.ticketId} ${isLink ? style.ticketIdLink : ''} ${className ? className : ''}`,
|
|
25
32
|
"data-id": dataId,
|
|
26
33
|
"data-title": dataTitle,
|
|
27
34
|
onClick: !isLink && onClick
|
|
28
|
-
}, isLink ? /*#__PURE__*/React.createElement(Link, {
|
|
35
|
+
}, TicketIdProps), isLink ? /*#__PURE__*/React.createElement(Link, _extends({
|
|
29
36
|
urlName: urlName,
|
|
30
37
|
urlData: urlData,
|
|
31
38
|
href: url,
|
|
32
39
|
target: target,
|
|
33
40
|
onClick: onClick
|
|
34
|
-
}, text) : text);
|
|
41
|
+
}, LinkProps), text) : text);
|
|
35
42
|
}
|
|
36
43
|
|
|
37
44
|
}
|
|
@@ -45,10 +52,15 @@ TicketId.propTypes = {
|
|
|
45
52
|
text: PropTypes.string,
|
|
46
53
|
url: PropTypes.string,
|
|
47
54
|
urlData: PropTypes.string,
|
|
48
|
-
urlName: PropTypes.string
|
|
55
|
+
urlName: PropTypes.string,
|
|
56
|
+
customProps: PropTypes.shape({
|
|
57
|
+
TicketIdProps: PropTypes.object,
|
|
58
|
+
LinkProps: PropTypes.object
|
|
59
|
+
})
|
|
49
60
|
};
|
|
50
61
|
TicketId.defaultProps = {
|
|
51
|
-
dataId: 'ticketId'
|
|
62
|
+
dataId: 'ticketId',
|
|
63
|
+
customProps: {}
|
|
52
64
|
};
|
|
53
65
|
|
|
54
66
|
if (false) {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import React, { Component } from 'react';
|
|
2
4
|
import PropTypes from 'prop-types';
|
|
3
5
|
import Link from '../../Link/Link';
|
|
@@ -20,9 +22,14 @@ export default class Subject extends Component {
|
|
|
20
22
|
fontWeight,
|
|
21
23
|
className,
|
|
22
24
|
isDotted,
|
|
23
|
-
children
|
|
25
|
+
children,
|
|
26
|
+
customProps
|
|
24
27
|
} = this.props;
|
|
25
|
-
|
|
28
|
+
let {
|
|
29
|
+
LinkProps = {},
|
|
30
|
+
TextProps = {}
|
|
31
|
+
} = customProps;
|
|
32
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link, _extends({
|
|
26
33
|
urlName: urlName,
|
|
27
34
|
href: href,
|
|
28
35
|
urlData: urlData,
|
|
@@ -31,11 +38,11 @@ export default class Subject extends Component {
|
|
|
31
38
|
dataId: dataId,
|
|
32
39
|
title: text,
|
|
33
40
|
target: target
|
|
34
|
-
}, children ? children : text) : /*#__PURE__*/React.createElement("span", {
|
|
41
|
+
}, LinkProps), children ? children : text) : /*#__PURE__*/React.createElement("span", _extends({
|
|
35
42
|
className: `${style.subject} ${isDotted ? style.dotted : ''} ${className} ${style[`font_${fontWeight}`]}`,
|
|
36
43
|
"data-title": text,
|
|
37
44
|
"data-id": dataId
|
|
38
|
-
}, text));
|
|
45
|
+
}, TextProps), text));
|
|
39
46
|
}
|
|
40
47
|
|
|
41
48
|
}
|
|
@@ -51,13 +58,18 @@ Subject.propTypes = {
|
|
|
51
58
|
urlData: PropTypes.object,
|
|
52
59
|
urlName: PropTypes.string,
|
|
53
60
|
isDotted: PropTypes.bool,
|
|
54
|
-
children: PropTypes.node
|
|
61
|
+
children: PropTypes.node,
|
|
62
|
+
customProps: PropTypes.shape({
|
|
63
|
+
LinkProps: PropTypes.object,
|
|
64
|
+
TextProps: PropTypes.object
|
|
65
|
+
})
|
|
55
66
|
};
|
|
56
67
|
Subject.defaultProps = {
|
|
57
68
|
isLink: false,
|
|
58
69
|
fontWeight: 'regular',
|
|
59
70
|
className: '',
|
|
60
|
-
isDotted: true
|
|
71
|
+
isDotted: true,
|
|
72
|
+
customProps: {}
|
|
61
73
|
};
|
|
62
74
|
|
|
63
75
|
if (false) {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import "core-js/modules/es.string.replace";
|
|
2
|
-
|
|
3
1
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
2
|
|
|
5
3
|
/**** Libraries ****/
|
package/es/utils/General.js
CHANGED
package/es/utils/editorUtils.js
CHANGED
|
@@ -39,7 +39,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
|
39
39
|
|
|
40
40
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
41
41
|
|
|
42
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
42
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
43
43
|
|
|
44
44
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
45
45
|
|
|
@@ -25,7 +25,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
|
25
25
|
|
|
26
26
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
27
27
|
|
|
28
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
28
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
29
29
|
|
|
30
30
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
31
31
|
|
|
@@ -41,7 +41,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
|
41
41
|
|
|
42
42
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
43
43
|
|
|
44
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
44
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
45
45
|
|
|
46
46
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
47
47
|
|
|
@@ -29,7 +29,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
|
29
29
|
|
|
30
30
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
31
31
|
|
|
32
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
32
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
33
33
|
|
|
34
34
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
35
35
|
|
|
@@ -29,7 +29,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
|
29
29
|
|
|
30
30
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
31
31
|
|
|
32
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
32
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
33
33
|
|
|
34
34
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
35
35
|
|
|
@@ -33,7 +33,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
|
33
33
|
|
|
34
34
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
35
35
|
|
|
36
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
36
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
37
37
|
|
|
38
38
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
39
39
|
|
|
@@ -27,7 +27,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
|
27
27
|
|
|
28
28
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
29
29
|
|
|
30
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
30
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
31
31
|
|
|
32
32
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
33
33
|
|
|
@@ -39,7 +39,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
|
39
39
|
|
|
40
40
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
41
41
|
|
|
42
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
42
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
43
43
|
|
|
44
44
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
45
45
|
|
|
@@ -33,7 +33,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
|
33
33
|
|
|
34
34
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
35
35
|
|
|
36
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
36
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
37
37
|
|
|
38
38
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
39
39
|
|
package/lib/Drawer/Drawer.js
CHANGED
|
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports["default"] = exports.
|
|
8
|
+
exports["default"] = exports.Header = exports.Footer = exports.Content = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
@@ -45,7 +45,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
|
45
45
|
|
|
46
46
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
47
47
|
|
|
48
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
48
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
49
49
|
|
|
50
50
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
51
51
|
|
|
@@ -33,7 +33,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
|
33
33
|
|
|
34
34
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
35
35
|
|
|
36
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
36
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
37
37
|
|
|
38
38
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
39
39
|
|
|
@@ -33,7 +33,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
|
33
33
|
|
|
34
34
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
35
35
|
|
|
36
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
36
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
37
37
|
|
|
38
38
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
39
39
|
|