@zohodesk/dot 1.0.0-beta.180 → 1.0.0-beta.184
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 +16 -0
- package/es/Drawer/Drawer.js +14 -7
- 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/alert/AlertLookup/AlertLookup.js +4 -0
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +13 -3
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +10 -5
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +0 -2
- package/es/list/Icons/AddNewIcon.js +1 -1
- package/es/list/Icons/CompleteIcon.js +1 -1
- package/es/list/Icons/DeleteIcon.js +1 -1
- package/es/list/Icons/EditIcon.js +1 -1
- package/es/list/Icons/Icons.module.css +2 -1
- package/es/list/Icons/ReadUnreadIcon.js +4 -2
- package/es/list/Icons/SmartIcon.js +1 -1
- 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/lookup/Lookup/Lookup.js +4 -0
- package/es/utils/General.js +0 -1
- package/es/utils/editorUtils.js +0 -1
- package/es/version2/lookup/AlertLookup/AlertLookup.js +4 -0
- 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 +16 -9
- 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 +6 -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 +14 -4
- 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 +11 -6
- 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 +2 -2
- package/lib/list/Icons/CompleteIcon.js +2 -2
- package/lib/list/Icons/DeleteIcon.js +2 -2
- package/lib/list/Icons/EditIcon.js +2 -2
- package/lib/list/Icons/FloatingIcons.js +1 -1
- package/lib/list/Icons/Icons.module.css +2 -1
- package/lib/list/Icons/ReadUnreadIcon.js +5 -3
- package/lib/list/Icons/SmartIcon.js +2 -2
- 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 +6 -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 +6 -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 +5 -5
- package/src/Drawer/Drawer.js +16 -6
- package/src/ExternalLink/ExternalLink.js +8 -3
- package/src/Link/Link.js +7 -3
- package/src/alert/AlertLookup/AlertLookup.js +3 -0
- package/src/dropdown/ToggleDropDown/ToggleDropDown.js +5 -5
- package/src/form/fields/TagsMultiSelect/TagsMultiSelect.js +6 -2
- package/src/list/Icons/AddNewIcon.js +1 -1
- package/src/list/Icons/CompleteIcon.js +1 -1
- package/src/list/Icons/DeleteIcon.js +1 -1
- package/src/list/Icons/EditIcon.js +1 -1
- package/src/list/Icons/Icons.module.css +3 -2
- package/src/list/Icons/ReadUnreadIcon.js +5 -4
- package/src/list/Icons/SmartIcon.js +1 -1
- 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/src/lookup/Lookup/Lookup.js +3 -0
- package/src/version2/lookup/AlertLookup/AlertLookup.js +3 -0
package/README.md
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
In this Library we Provide Some Basic Components to Build Your Application
|
|
4
4
|
|
|
5
|
+
# 1.0.0-beta.184
|
|
6
|
+
|
|
7
|
+
- TagsMultiSelect => dataId Changes
|
|
8
|
+
- list/Icons => width added tto avoid jurk
|
|
9
|
+
# 1.0.0-beta.183
|
|
10
|
+
|
|
11
|
+
- Lookup,AlertLookup,AlertLookup2 => eventListeners Removed on UnMount
|
|
12
|
+
- Drawer => getTitleChildren prop added
|
|
13
|
+
- ToggleDropdown => on focusing input preventScroll disabled.
|
|
14
|
+
# 1.0.0-beta.182
|
|
15
|
+
|
|
16
|
+
- ExternalLink, Link, AccountName, ContactName, SecondaryText/Email, SecondaryText/PhoneNumber, SecondaryText/TicketId, Subject => **customProps** prop added
|
|
17
|
+
|
|
18
|
+
# 1.0.0-beta.181
|
|
19
|
+
|
|
20
|
+
- ReadUnReadIcon => icon Name fix
|
|
5
21
|
# 1.0.0-beta.180
|
|
6
22
|
|
|
7
23
|
- TagsMultiSelect => scrollTop Issue Solved
|
package/es/Drawer/Drawer.js
CHANGED
|
@@ -27,7 +27,8 @@ export class Header extends React.Component {
|
|
|
27
27
|
flexible,
|
|
28
28
|
getChildren,
|
|
29
29
|
iconTitle,
|
|
30
|
-
isBoxIcon
|
|
30
|
+
isBoxIcon,
|
|
31
|
+
getTitleChildren
|
|
31
32
|
} = this.props;
|
|
32
33
|
return /*#__PURE__*/React.createElement(CardHeader, {
|
|
33
34
|
customClass: `${style.header} ${style[`${paddingSize}HeaderPadding`]} ${className ? className : ''}`,
|
|
@@ -58,12 +59,17 @@ export class Header extends React.Component {
|
|
|
58
59
|
size: iconSize,
|
|
59
60
|
onClick: onIconClick,
|
|
60
61
|
title: iconTitle
|
|
61
|
-
})) : null, title ? /*#__PURE__*/React.createElement(Box, {
|
|
62
|
-
className: style.title,
|
|
62
|
+
})) : null, title || getTitleChildren ? /*#__PURE__*/React.createElement(Box, {
|
|
63
63
|
flexible: flexible,
|
|
64
|
-
shrink: true
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
shrink: true
|
|
65
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
66
|
+
alignBox: "row",
|
|
67
|
+
align: "vertical"
|
|
68
|
+
}, title ? /*#__PURE__*/React.createElement(Box, {
|
|
69
|
+
className: style.title,
|
|
70
|
+
"data-title": title,
|
|
71
|
+
shrink: true
|
|
72
|
+
}, title) : null, getTitleChildren ? /*#__PURE__*/React.createElement(Box, null, getTitleChildren()) : null)) : null, children ? /*#__PURE__*/React.createElement(Box, null, children) : null)), onClose ? /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(IconButton, {
|
|
67
73
|
onClick: onClose,
|
|
68
74
|
dataId: "closeButton",
|
|
69
75
|
title: closeTitle,
|
|
@@ -92,7 +98,8 @@ Header.propTypes = {
|
|
|
92
98
|
onIconClick: PropTypes.func,
|
|
93
99
|
paddingSize: PropTypes.oneOf(['small', 'medium', 'large']),
|
|
94
100
|
title: PropTypes.string,
|
|
95
|
-
isBoxIcon: PropTypes.bool
|
|
101
|
+
isBoxIcon: PropTypes.bool,
|
|
102
|
+
getTitleChildren: PropTypes.func
|
|
96
103
|
};
|
|
97
104
|
Header.defaultProps = {
|
|
98
105
|
flexible: 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
|
/**** 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) {
|
|
@@ -152,7 +152,13 @@ export class ToggleDropDown extends Component {
|
|
|
152
152
|
|
|
153
153
|
if (prevProps.isPopupReady !== isPopupReady) {
|
|
154
154
|
setTimeout(() => {
|
|
155
|
-
isPopupReady ? isSearch ? this.searchInput.focus(
|
|
155
|
+
isPopupReady ? isSearch ? this.searchInput.focus({
|
|
156
|
+
preventScroll: false
|
|
157
|
+
}) : this.hiddenInput.focus({
|
|
158
|
+
preventScroll: false
|
|
159
|
+
}) : this.hiddenInput.focus({
|
|
160
|
+
preventScroll: false
|
|
161
|
+
});
|
|
156
162
|
}, 10);
|
|
157
163
|
}
|
|
158
164
|
|
|
@@ -359,9 +365,13 @@ export class ToggleDropDown extends Component {
|
|
|
359
365
|
if (!preventPopupClose) {
|
|
360
366
|
togglePopup(e, boxPosition);
|
|
361
367
|
} else if (isSearch) {
|
|
362
|
-
this.searchInput.focus(
|
|
368
|
+
this.searchInput.focus({
|
|
369
|
+
preventScroll: false
|
|
370
|
+
});
|
|
363
371
|
} else {
|
|
364
|
-
this.hiddenInput.focus(
|
|
372
|
+
this.hiddenInput.focus({
|
|
373
|
+
preventScroll: false
|
|
374
|
+
});
|
|
365
375
|
}
|
|
366
376
|
|
|
367
377
|
break;
|
|
@@ -190,7 +190,8 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
190
190
|
isPadding: false,
|
|
191
191
|
customClass: {
|
|
192
192
|
customDropBoxWrap: style.dropdown
|
|
193
|
-
}
|
|
193
|
+
},
|
|
194
|
+
dataId: `${dataId}_dropbox`
|
|
194
195
|
}, isTagListLoading ? /*#__PURE__*/React.createElement(Container, {
|
|
195
196
|
align: "both",
|
|
196
197
|
className: style.viewpopNew
|
|
@@ -216,7 +217,8 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
216
217
|
needTick: true,
|
|
217
218
|
highlight: selectSearchIndex === index,
|
|
218
219
|
getRef: this.getSelectedItemRef,
|
|
219
|
-
isDisabled: listDisabled
|
|
220
|
+
isDisabled: listDisabled,
|
|
221
|
+
dataId: dataId
|
|
220
222
|
}, isNew ? /*#__PURE__*/React.createElement(Container, {
|
|
221
223
|
alignBox: "row",
|
|
222
224
|
align: "vertical"
|
|
@@ -225,10 +227,12 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
225
227
|
}, i18nKeys.newTagText, ":"), /*#__PURE__*/React.createElement(Box, {
|
|
226
228
|
shrink: true,
|
|
227
229
|
"data-title": name,
|
|
228
|
-
className: `${style.dotted} ${style.newTagText}
|
|
230
|
+
className: `${style.dotted} ${style.newTagText} `,
|
|
231
|
+
dataId: `${dataId}_new_tag_text`
|
|
229
232
|
}, name)) : null));
|
|
230
233
|
})) : /*#__PURE__*/React.createElement(Box, {
|
|
231
|
-
flexible: true
|
|
234
|
+
flexible: true,
|
|
235
|
+
dataId: `${dataId}_empty`
|
|
232
236
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
233
237
|
className: style.searchEmpty
|
|
234
238
|
}, /*#__PURE__*/React.createElement(CommonEmptyState, {
|
|
@@ -282,7 +286,8 @@ TagsMultiSelect.defaultProps = {
|
|
|
282
286
|
i18nKeys: {},
|
|
283
287
|
chipNeedToShow: '5',
|
|
284
288
|
borderColor: 'default',
|
|
285
|
-
needBorder: true
|
|
289
|
+
needBorder: true,
|
|
290
|
+
dataId: ''
|
|
286
291
|
};
|
|
287
292
|
|
|
288
293
|
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';
|
|
@@ -8,6 +8,7 @@ export default class ReadUnreadIcon extends React.Component {
|
|
|
8
8
|
onClick,
|
|
9
9
|
dataId,
|
|
10
10
|
dataTitle,
|
|
11
|
+
iconClassName,
|
|
11
12
|
iconClass,
|
|
12
13
|
className,
|
|
13
14
|
isRead,
|
|
@@ -19,9 +20,9 @@ export default class ReadUnreadIcon extends React.Component {
|
|
|
19
20
|
"data-id": dataId,
|
|
20
21
|
"data-title": dataTitle
|
|
21
22
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
22
|
-
name: isRead ? 'ZD-
|
|
23
|
+
name: isRead ? 'ZD-GN-read' : 'ZD-GN-unread',
|
|
23
24
|
size: iconSize,
|
|
24
|
-
iconClass: iconClass
|
|
25
|
+
iconClass: `${iconClassName ? iconClassName : ''} ${iconClass ? iconClass : ''}`
|
|
25
26
|
}));
|
|
26
27
|
}
|
|
27
28
|
|
|
@@ -33,6 +34,7 @@ ReadUnreadIcon.propTypes = {
|
|
|
33
34
|
className: PropTypes.string,
|
|
34
35
|
dataId: PropTypes.string,
|
|
35
36
|
dataTitle: PropTypes.string,
|
|
37
|
+
iconClassName: PropTypes.string,
|
|
36
38
|
iconClass: PropTypes.string,
|
|
37
39
|
onClick: PropTypes.func,
|
|
38
40
|
isRead: PropTypes.bool,
|
|
@@ -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) {
|