@zohodesk/dot 1.0.0-temp-151 → 1.0.0-temp-153
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 +1300 -1261
- package/assets/Appearance/dark/mode/{dotDarkMode.module.css → Dot_DarkMode.module.css} +7 -7
- package/assets/Appearance/{default/mode/dotDefaultMode.module.css → light/mode/Dot_LightMode.module.css} +281 -281
- package/assets/Appearance/light/themes/blue/blue_DotTheme_LightTheme.module.css +16 -0
- package/assets/Appearance/light/themes/green/green_DotTheme_LightTheme.module.css +16 -0
- package/assets/Appearance/light/themes/orange/orange_DotTheme_LightTheme.module.css +16 -0
- package/assets/Appearance/light/themes/red/red_DotTheme_LightTheme.module.css +16 -0
- package/assets/Appearance/light/themes/yellow/yellow_DotTheme_LightTheme.module.css +16 -0
- package/assets/Appearance/pureDark/mode/{dotPureDarkMode.module.css → Dot_PureDarkMode.module.css} +5 -5
- package/es/ActionButton/ActionButton.module.css +139 -139
- package/es/AlphabeticList/AlphabeticList.module.css +57 -57
- package/es/Attachment/Attachment.module.css +159 -157
- package/es/AttachmentViewer/AttachmentViewer.module.css +352 -352
- package/es/ChannelIcon/ChannelIcon.module.css +217 -217
- package/es/Drawer/Drawer.js +0 -0
- package/es/Drawer/Drawer.module.css +190 -189
- package/es/ExternalLink/ExternalLink.js +0 -0
- package/es/ExternalLink/ExternalLink.module.css +3 -3
- package/es/ExternalLink/__tests__/ExternalLink.spec.js +0 -0
- package/es/FlipCard/FlipCard.module.css +44 -44
- package/es/FormAction/FormAction.module.css +82 -82
- package/es/FreezeLayer/FreezeLayer.js +3 -14
- package/es/FreezeLayer/css/FreezeLayer.module.css +42 -42
- package/es/Hooks/Dragger/css/Dragger.module.css +2 -2
- package/es/Hooks/Dragger/props/defaultProps.js +10 -0
- package/es/Hooks/Dragger/props/propTypes.js +11 -0
- package/es/Hooks/Dragger/useDragger.js +93 -61
- package/es/Hooks/Dragger/utils/DraggerUtil.js +3 -42
- package/es/IconButton/IconButton.module.css +22 -22
- package/es/Image/Image.module.css +11 -10
- package/es/ImportantNotes/ImportantNotes.module.css +20 -20
- package/es/Link/Link.js +0 -0
- package/es/Link/Link.module.css +3 -3
- package/es/Loader/Loader.module.css +47 -46
- package/es/Message/Message.module.css +102 -102
- package/es/MessageBanner/MessageBanner.module.css +46 -46
- package/es/NewStar/NewStar.module.css +183 -175
- package/es/PlusIcon/PlusIcon.js +0 -0
- package/es/PlusIcon/PlusIcon.module.css +18 -18
- package/es/Separator/Separator.module.css +34 -34
- package/es/TagWithIcon/TagWithIcon.module.css +56 -56
- package/es/ToastMessage/ToastMessage.js +0 -0
- package/es/ToastMessage/ToastMessage.module.css +328 -328
- package/es/Upload/Upload.module.css +125 -125
- package/es/alert/AlertHeader/AlertHeader.module.css +80 -80
- package/es/alert/AlertLookup/AlertLookup.module.css +26 -26
- package/es/avatar/AvatarClose/AvatarClose.module.css +37 -37
- package/es/avatar/AvatarCollision/AvatarCollision.module.css +69 -69
- package/es/avatar/AvatarIcon/AvatarIcon.module.css +58 -58
- package/es/avatar/AvatarStatus/AvatarStatus.js +0 -0
- package/es/avatar/AvatarStatus/AvatarStatus.module.css +146 -146
- package/es/avatar/AvatarThread/AvatarThread.module.css +166 -166
- package/es/avatar/AvatarUser/AvatarUser.js +0 -0
- package/es/avatar/AvatarUser/AvatarUser.module.css +171 -171
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.module.css +23 -23
- package/es/common/dot_animation.module.css +26 -26
- package/es/common/dot_boxShadow.module.css +37 -37
- package/es/common/dot_common.module.css +3 -3
- package/es/deprecated/FreezeLayer/_FreezeLayer.module.css +42 -42
- package/es/deprecated/SelectDropdown/SelectDropdown.module.css +56 -56
- package/es/deprecated/utils/KeyboardApi.js +25 -25
- package/es/dropdown/ToggleDropDown/ToggleDropDown.module.css +100 -100
- package/es/emptystate/CommonEmptyState/CommonEmptyState.js +0 -0
- package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +85 -85
- package/es/emptystate/EditionPage/EditionPage.css +43 -43
- package/es/errorstate/EmptyStates.module.css +87 -87
- package/es/errorstate/Inconvenience/Inconvenience.module.css +7 -7
- package/es/errorstate/LinkText/LinkText.module.css +6 -6
- package/es/errorstate/NoRequestFound/NoRequestFound.module.css +3 -3
- package/es/errorstate/PermissionPlay/PermissionPlay.module.css +34 -34
- package/es/errorstate/RequestUrlNotFound/RequestUrlNotFound.module.css +3 -3
- package/es/errorstate/UnableToProcess/UnableToProcess.module.css +3 -3
- package/es/errorstate/UnauthorizedLogin/UnauthorizedLogin.module.css +3 -3
- package/es/errorstate/WillBack/WillBack.module.css +34 -34
- package/es/form/fields/CheckBoxField/CheckBoxField.js +0 -0
- package/es/form/fields/Fields.module.css +183 -183
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +107 -107
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +9 -9
- package/es/form/fields/TextEditor/TextEditor.js +10 -11
- package/es/form/fields/TextEditor/TextEditor.module.css +770 -763
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +37 -36
- package/es/form/fields/ValidationMessage/ValidationMessage.module.css +27 -27
- package/es/form/layout/Field/Field.js +0 -0
- package/es/form/layout/Field/Field.module.css +22 -22
- package/es/form/layout/Section/ModuleFormSection.module.css +3 -3
- package/es/form/layout/Section/Section.js +0 -0
- package/es/layout/SetupDetailLayout/SetupDetailLayout.js +15 -2
- package/es/layout/SetupDetailLayout/SetupDetailLayout.module.css +152 -152
- package/es/layout/SetupDetailLayout/props/defaultProps.js +4 -2
- package/es/layout/SetupDetailLayout/props/propTypes.js +9 -2
- package/es/layout/SubtabLayout/SubtabLayout.module.css +164 -164
- package/es/list/AvatarFlip/AvatarFlip.module.css +3 -3
- package/es/list/BluePrintStatus/BluePrintStatus.module.css +17 -17
- package/es/list/Comment/Comment.module.css +29 -29
- package/es/list/DepartmentDropDown/DepartmentDropDown.module.css +9 -9
- package/es/list/Dot/Dot.module.css +15 -15
- package/es/list/DotNew/DotNew.module.css +24 -24
- package/es/list/GridStencils/GridStencils.module.css +146 -146
- package/es/list/Icons/AddNewIcon.js +2 -3
- package/es/list/Icons/CompleteIcon.js +2 -2
- package/es/list/Icons/DeleteIcon.js +3 -4
- package/es/list/Icons/EditIcon.js +3 -5
- package/es/list/Icons/Icons.module.css +16 -16
- package/es/list/Icons/ReadUnreadIcon.js +3 -5
- package/es/list/Icons/SmartIcon.js +3 -5
- package/es/list/ListLayout/ListLayout.module.css +57 -73
- package/es/list/ListStencils/ListStencils.module.css +67 -67
- package/es/list/SecondaryText/SecondaryText.module.css +136 -136
- package/es/list/SecondaryText/Website.js +0 -0
- package/es/list/SecondryPanel/SecondryPanel.js +0 -0
- package/es/list/SecondryPanel/SecondryPanel.module.css +5 -5
- package/es/list/SentimentStatus/SentimentStatus.module.css +12 -12
- package/es/list/Subject/Subject.module.css +27 -27
- package/es/list/TagNew/TagNew.module.css +116 -116
- package/es/list/Thread/Thread.module.css +42 -42
- package/es/list/UserTime/UserTime.module.css +58 -58
- package/es/list/listCommon.module.css +60 -82
- package/es/list/status/StatusDropdown/StatusDropdown.js +2 -9
- package/es/list/status/StatusDropdown/StatusDropdown.module.css +92 -92
- package/es/list/status/StatusListItem/StatusListItem.js +0 -0
- package/es/list/status/StatusListItem/StatusListItem.module.css +109 -109
- package/es/lookup/EmptyPage/EmptyPage.js +0 -0
- package/es/lookup/EmptyPage/LookupEmptyPage.module.css +12 -12
- package/es/lookup/Lookup/Lookup.js +0 -0
- package/es/lookup/Lookup/Lookup.module.css +26 -26
- package/es/lookup/Section/LookupSection.module.css +7 -7
- package/es/lookup/header/Close/LookupClose.module.css +15 -15
- package/es/lookup/header/Search/LookupSearch.module.css +57 -57
- package/es/lookup/header/TicketHeader/TicketHeader.module.css +22 -22
- package/es/lookup/header/Title/LookupTitle.module.css +20 -20
- package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +50 -50
- package/es/lookup/header/lookupHeaderCommon.module.css +41 -41
- package/es/lookup/header/lookupHeaderCommonResponsive.module.css +24 -24
- package/es/setup/header/Button/HeaderButton.module.css +5 -5
- package/es/setup/header/Link/HeaderLink.module.css +21 -21
- package/es/setup/header/Search/Search.module.css +68 -68
- package/es/setup/header/Views/Views.module.css +37 -37
- package/es/setup/helptips/Description/HelpTipsDescription.module.css +6 -6
- package/es/setup/helptips/Link/HelpTipsLink.module.css +7 -7
- package/es/setup/helptips/Link/Link.js +0 -0
- package/es/setup/helptips/ListGroup/ListGroup.module.css +22 -22
- package/es/setup/helptips/Title/HelpTipsTitle.module.css +5 -5
- package/es/setup/helptips/Title/Title.js +0 -0
- package/es/setup/table/TableData/SetupTableData.module.css +44 -44
- package/es/setup/table/TableData/Tablehover.module.css +6 -6
- package/es/setup/table/TableHead/SetupTableHead.module.css +12 -12
- package/es/setup/table/TableRow/SetupTableRow.module.css +14 -14
- package/es/setup/table/Text/TableText.module.css +37 -37
- package/es/setup/table/Text/Text.js +0 -0
- package/es/svg/PlusIcon.js +1 -1
- package/es/svg/SnippetIcon.js +2 -2
- package/es/version2/AlertClose/AlertClose.module.css +42 -42
- package/es/version2/GlobalNotification/GlobalNotification.module.css +127 -127
- package/es/version2/alertIcons/AlertIcons.module.css +67 -67
- package/es/version2/errorstate/V2_ErrorStates.module.css +46 -46
- package/es/version2/lookup/AlertHeader/AlertHeader.js +75 -58
- package/{lib/version2/lookup/AlertHeader → es/version2/lookup/AlertHeader/css}/AlertHeaderNew.module.css +87 -87
- package/es/version2/lookup/AlertHeader/css/cssJSLogic.js +20 -0
- package/es/version2/lookup/AlertHeader/props/defaultProps.js +8 -2
- package/es/version2/lookup/AlertHeader/props/propTypes.js +9 -2
- package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +43 -43
- package/es/version2/lookup/alertLookupCommonNew.module.css +32 -32
- package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +126 -126
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +136 -136
- package/install.md +12 -12
- package/lib/ActionButton/ActionButton.module.css +139 -139
- package/lib/AlphabeticList/AlphabeticList.js +1 -1
- package/lib/AlphabeticList/AlphabeticList.module.css +57 -57
- package/lib/Attachment/Attachment.module.css +159 -157
- package/lib/AttachmentViewer/AttachmentImage.js +1 -1
- package/lib/AttachmentViewer/AttachmentViewer.module.css +352 -352
- package/lib/ChannelIcon/ChannelIcon.module.css +217 -217
- package/lib/Drawer/Drawer.js +0 -0
- package/lib/Drawer/Drawer.module.css +190 -189
- package/lib/ExternalLink/ExternalLink.js +1 -1
- package/lib/ExternalLink/ExternalLink.module.css +3 -3
- package/lib/ExternalLink/__tests__/ExternalLink.spec.js +0 -0
- package/lib/FlipCard/FlipCard.module.css +44 -44
- package/lib/FormAction/FormAction.module.css +82 -82
- package/lib/FreezeLayer/FreezeLayer.js +3 -17
- package/lib/FreezeLayer/css/FreezeLayer.module.css +42 -42
- package/lib/Hooks/Dragger/css/Dragger.module.css +2 -2
- package/lib/Hooks/Dragger/props/defaultProps.js +17 -0
- package/lib/Hooks/Dragger/props/propTypes.js +19 -0
- package/lib/Hooks/Dragger/useDragger.js +91 -57
- package/lib/Hooks/Dragger/utils/DraggerUtil.js +3 -44
- package/lib/IconButton/IconButton.module.css +22 -22
- package/lib/Image/Image.module.css +11 -10
- package/lib/ImportantNotes/ImportantNotes.module.css +20 -20
- package/lib/Link/Link.js +0 -0
- package/lib/Link/Link.module.css +3 -3
- package/lib/Loader/Loader.module.css +47 -46
- package/lib/Message/Message.module.css +102 -102
- package/lib/MessageBanner/MessageBanner.module.css +46 -46
- package/lib/NewStar/NewStar.module.css +183 -175
- package/lib/PlusIcon/PlusIcon.js +0 -0
- package/lib/PlusIcon/PlusIcon.module.css +18 -18
- package/lib/Separator/Separator.module.css +34 -34
- package/lib/TagWithIcon/TagWithIcon.module.css +56 -56
- package/lib/ToastMessage/ToastMessage.js +1 -2
- package/lib/ToastMessage/ToastMessage.module.css +328 -328
- package/lib/Upload/Upload.module.css +125 -125
- package/lib/alert/AlertHeader/AlertHeader.module.css +80 -80
- package/lib/alert/AlertLookup/AlertLookup.js +1 -1
- package/lib/alert/AlertLookup/AlertLookup.module.css +26 -26
- package/lib/avatar/AvatarClose/AvatarClose.module.css +37 -37
- package/lib/avatar/AvatarCollision/AvatarCollision.module.css +69 -69
- package/lib/avatar/AvatarIcon/AvatarIcon.module.css +58 -58
- package/lib/avatar/AvatarStatus/AvatarStatus.js +0 -0
- package/lib/avatar/AvatarStatus/AvatarStatus.module.css +146 -146
- package/lib/avatar/AvatarThread/AvatarThread.module.css +166 -166
- package/lib/avatar/AvatarUser/AvatarUser.js +1 -1
- package/lib/avatar/AvatarUser/AvatarUser.module.css +171 -171
- package/lib/avatar/AvatarWithTeam/AvatarWithTeam.module.css +23 -23
- package/lib/common/dot_animation.module.css +26 -26
- package/lib/common/dot_boxShadow.module.css +37 -37
- package/lib/common/dot_common.module.css +3 -3
- package/lib/deprecated/FreezeLayer/_FreezeLayer.module.css +42 -42
- package/lib/deprecated/SelectDropdown/SelectDropdown.module.css +56 -56
- package/lib/deprecated/utils/KeyboardApi.js +25 -25
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.module.css +100 -100
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.js +0 -0
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +85 -85
- package/lib/emptystate/EditionPage/EditionPage.css +43 -43
- package/lib/errorstate/EmptyStates.module.css +87 -87
- package/lib/errorstate/Inconvenience/Inconvenience.module.css +7 -7
- package/lib/errorstate/LinkText/LinkText.module.css +6 -6
- package/lib/errorstate/NoRequestFound/NoRequestFound.module.css +3 -3
- package/lib/errorstate/PermissionPlay/PermissionPlay.module.css +34 -34
- package/lib/errorstate/RequestUrlNotFound/RequestUrlNotFound.module.css +3 -3
- package/lib/errorstate/UnableToProcess/UnableToProcess.module.css +3 -3
- package/lib/errorstate/UnauthorizedLogin/UnauthorizedLogin.module.css +3 -3
- package/lib/errorstate/WillBack/WillBack.module.css +34 -34
- package/lib/form/fields/CheckBoxField/CheckBoxField.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/FieldContainer/FieldContainer.js +1 -1
- package/lib/form/fields/Fields.module.css +183 -183
- package/lib/form/fields/MultiSelectField/MultiSelectField.js +1 -1
- package/lib/form/fields/PhoneField/PhoneField.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/TagsMultiSelect/TagsMultiSelect.module.css +107 -107
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +1 -1
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +9 -9
- package/lib/form/fields/TextBoxField/TextBoxField.js +1 -1
- package/lib/form/fields/TextEditor/TextEditor.js +11 -13
- package/lib/form/fields/TextEditor/TextEditor.module.css +770 -763
- package/lib/form/fields/TextEditorField/TextEditorField.js +1 -1
- package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.js +1 -1
- package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +37 -36
- package/lib/form/fields/TextareaField/TextareaField.js +1 -1
- package/lib/form/fields/ValidationMessage/ValidationMessage.module.css +27 -27
- package/lib/form/layout/Field/Field.js +0 -0
- package/lib/form/layout/Field/Field.module.css +22 -22
- package/lib/form/layout/Section/ModuleFormSection.module.css +3 -3
- package/lib/form/layout/Section/Section.js +0 -0
- package/lib/layout/SetupDetailLayout/SetupDetailLayout.js +14 -2
- package/lib/layout/SetupDetailLayout/SetupDetailLayout.module.css +152 -152
- package/lib/layout/SetupDetailLayout/props/defaultProps.js +4 -2
- package/lib/layout/SetupDetailLayout/props/propTypes.js +9 -2
- package/lib/layout/SubtabLayout/SubtabLayout.module.css +164 -164
- package/lib/list/AvatarFlip/AvatarFlip.module.css +3 -3
- package/lib/list/BluePrintStatus/BluePrintStatus.module.css +17 -17
- package/lib/list/Comment/Comment.module.css +29 -29
- package/lib/list/DepartmentDropDown/DepartmentDropDown.module.css +9 -9
- package/lib/list/Dot/Dot.module.css +15 -15
- package/lib/list/DotNew/DotNew.module.css +24 -24
- package/lib/list/GridStencils/GridStencils.module.css +146 -146
- package/lib/list/Icons/AddNewIcon.js +2 -3
- package/lib/list/Icons/CompleteIcon.js +2 -2
- package/lib/list/Icons/DeleteIcon.js +3 -4
- package/lib/list/Icons/EditIcon.js +3 -5
- package/lib/list/Icons/Icons.module.css +16 -16
- package/lib/list/Icons/ReadUnreadIcon.js +3 -5
- package/lib/list/Icons/SmartIcon.js +3 -5
- package/lib/list/ListLayout/ListLayout.module.css +57 -73
- package/lib/list/ListStencils/ListStencils.js +1 -1
- package/lib/list/ListStencils/ListStencils.module.css +67 -67
- package/lib/list/SecondaryText/AccountName.js +1 -1
- package/lib/list/SecondaryText/Email.js +1 -1
- package/lib/list/SecondaryText/HappinessRating.js +1 -1
- package/lib/list/SecondaryText/PhoneNumber.js +1 -1
- package/lib/list/SecondaryText/SecondaryText.module.css +136 -136
- package/lib/list/SecondaryText/Website.js +1 -1
- package/lib/list/SecondryPanel/SecondryPanel.js +1 -1
- package/lib/list/SecondryPanel/SecondryPanel.module.css +5 -5
- package/lib/list/SentimentStatus/SentimentStatus.module.css +12 -12
- package/lib/list/Subject/Subject.module.css +27 -27
- package/lib/list/TagNew/TagNew.module.css +116 -116
- package/lib/list/Thread/Thread.module.css +42 -42
- package/lib/list/UserTime/UserTime.module.css +58 -58
- package/lib/list/listCommon.module.css +60 -82
- package/lib/list/status/StatusDropdown/StatusDropdown.js +2 -9
- package/lib/list/status/StatusDropdown/StatusDropdown.module.css +92 -92
- package/lib/list/status/StatusListItem/StatusListItem.js +1 -1
- package/lib/list/status/StatusListItem/StatusListItem.module.css +109 -109
- package/lib/lookup/EmptyPage/EmptyPage.js +1 -1
- package/lib/lookup/EmptyPage/LookupEmptyPage.module.css +12 -12
- package/lib/lookup/Lookup/Lookup.js +1 -1
- package/lib/lookup/Lookup/Lookup.module.css +26 -26
- package/lib/lookup/Section/LookupSection.module.css +7 -7
- package/lib/lookup/header/Close/Close.js +1 -1
- package/lib/lookup/header/Close/LookupClose.module.css +15 -15
- package/lib/lookup/header/ModuleHeader/ModuleHeader.js +1 -1
- package/lib/lookup/header/Search/LookupSearch.module.css +57 -57
- package/lib/lookup/header/Search/Search.js +1 -1
- package/lib/lookup/header/TicketHeader/TicketHeader.js +1 -1
- package/lib/lookup/header/TicketHeader/TicketHeader.module.css +22 -22
- package/lib/lookup/header/Title/LookupTitle.module.css +20 -20
- package/lib/lookup/header/Title/Title.js +1 -1
- package/lib/lookup/header/ViewDropDown/ViewDropDown.js +1 -1
- package/lib/lookup/header/ViewDropDown/ViewDropDown.module.css +50 -50
- package/lib/lookup/header/lookupHeaderCommon.module.css +41 -41
- package/lib/lookup/header/lookupHeaderCommonResponsive.module.css +24 -24
- package/lib/setup/header/Button/HeaderButton.module.css +5 -5
- package/lib/setup/header/Link/HeaderLink.module.css +21 -21
- package/lib/setup/header/Search/Search.module.css +68 -68
- package/lib/setup/header/Views/Views.module.css +37 -37
- package/lib/setup/helptips/Description/HelpTipsDescription.module.css +6 -6
- package/lib/setup/helptips/Link/HelpTipsLink.module.css +7 -7
- package/lib/setup/helptips/Link/Link.js +0 -0
- package/lib/setup/helptips/ListGroup/ListGroup.module.css +22 -22
- package/lib/setup/helptips/Title/HelpTipsTitle.module.css +5 -5
- package/lib/setup/helptips/Title/Title.js +0 -0
- package/lib/setup/table/TableData/SetupTableData.module.css +44 -44
- package/lib/setup/table/TableData/Tablehover.module.css +6 -6
- package/lib/setup/table/TableHead/SetupTableHead.module.css +12 -12
- package/lib/setup/table/TableRow/SetupTableRow.module.css +14 -14
- package/lib/setup/table/Text/TableText.module.css +37 -37
- package/lib/setup/table/Text/Text.js +0 -0
- package/lib/svg/PlusIcon.js +1 -1
- package/lib/svg/SnippetIcon.js +2 -2
- package/lib/version2/AlertClose/AlertClose.js +1 -1
- package/lib/version2/AlertClose/AlertClose.module.css +42 -42
- package/lib/version2/GlobalNotification/GlobalNotification.module.css +127 -127
- package/lib/version2/alertIcons/AlertIcons.module.css +67 -67
- package/lib/version2/errorstate/V2_ErrorStates.module.css +46 -46
- package/lib/version2/lookup/AlertHeader/AlertHeader.js +77 -81
- package/{es/version2/lookup/AlertHeader → lib/version2/lookup/AlertHeader/css}/AlertHeaderNew.module.css +87 -87
- package/lib/version2/lookup/AlertHeader/css/cssJSLogic.js +23 -0
- package/lib/version2/lookup/AlertHeader/props/defaultProps.js +10 -4
- package/lib/version2/lookup/AlertHeader/props/propTypes.js +11 -4
- package/lib/version2/lookup/AlertLookup/AlertLookup.js +1 -1
- package/lib/version2/lookup/AlertLookup/AlertLookupNew.module.css +43 -43
- package/lib/version2/lookup/alertLookupCommonNew.module.css +32 -32
- package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +126 -126
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +136 -136
- package/package.json +114 -99
- package/assets/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +0 -16
- package/assets/Appearance/default/themes/green/greenDefaultDotTheme.module.css +0 -16
- package/assets/Appearance/default/themes/orange/orangeDefaultDotTheme.module.css +0 -16
- package/assets/Appearance/default/themes/red/redDefaultDotTheme.module.css +0 -16
- package/assets/Appearance/default/themes/yellow/yellowDefaultDotTheme.module.css +0 -16
- /package/assets/Appearance/dark/themes/blue/{blueDarkDotTheme.module.css → blue_DotTheme_DarkTheme.module.css} +0 -0
- /package/assets/Appearance/dark/themes/green/{greenDarkDotTheme.module.css → green_DotTheme_DarkTheme.module.css} +0 -0
- /package/assets/Appearance/dark/themes/orange/{orangeDarkDotTheme.module.css → orange_DotTheme_DarkTheme.module.css} +0 -0
- /package/assets/Appearance/dark/themes/red/{redDarkDotTheme.module.css → red_DotTheme_DarkTheme.module.css} +0 -0
- /package/assets/Appearance/dark/themes/yellow/{yellowDarkDotTheme.module.css → yellow_DotTheme_DarkTheme.module.css} +0 -0
- /package/assets/Appearance/pureDark/themes/blue/{bluePureDarkDotTheme.module.css → blue_DotTheme_PureDarkTheme.module.css} +0 -0
- /package/assets/Appearance/pureDark/themes/green/{greenPureDarkDotTheme.module.css → green_DotTheme_PureDarkTheme.module.css} +0 -0
- /package/assets/Appearance/pureDark/themes/orange/{orangePureDarkDotTheme.module.css → orange_DotTheme_PureDarkTheme.module.css} +0 -0
- /package/assets/Appearance/pureDark/themes/red/{redPureDarkDotTheme.module.css → red_DotTheme_PureDarkTheme.module.css} +0 -0
- /package/assets/Appearance/pureDark/themes/yellow/{yellowPureDarkDotTheme.module.css → yellow_DotTheme_PureDarkTheme.module.css} +0 -0
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
6
|
exports["default"] = FreezeLayer;
|
|
8
|
-
var _react =
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
8
|
var _defaultProps = require("./props/defaultProps");
|
|
10
9
|
var _propTypes = require("./props/propTypes");
|
|
11
10
|
var _Layout = require("@zohodesk/components/lib/Layout");
|
|
@@ -15,10 +14,7 @@ var _ZindexProvider = require("@zohodesk/components/lib/Provider/ZindexProvider"
|
|
|
15
14
|
var _cssJSLogic2 = _interopRequireDefault(require("./css/cssJSLogic"));
|
|
16
15
|
var _useFreezeLayer2 = _interopRequireDefault(require("./useFreezeLayer"));
|
|
17
16
|
var _FreezeLayerModule = _interopRequireDefault(require("./css/FreezeLayer.module.css"));
|
|
18
|
-
var _useDragger = _interopRequireDefault(require("../Hooks/Dragger/useDragger"));
|
|
19
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
20
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
22
18
|
function FreezeLayer(props) {
|
|
23
19
|
var propsActive = props.isActive,
|
|
24
20
|
children = props.children,
|
|
@@ -33,7 +29,6 @@ function FreezeLayer(props) {
|
|
|
33
29
|
needAutoZindex = props.needAutoZindex,
|
|
34
30
|
customStyle = props.customStyle;
|
|
35
31
|
var finalStyle = (0, _utils.mergeStyle)(_FreezeLayerModule["default"], customStyle);
|
|
36
|
-
var dragRef = (0, _react.useRef)(null);
|
|
37
32
|
var _cssJSLogic = (0, _cssJSLogic2["default"])({
|
|
38
33
|
props: props,
|
|
39
34
|
style: finalStyle
|
|
@@ -47,16 +42,6 @@ function FreezeLayer(props) {
|
|
|
47
42
|
isActive = _useFreezeLayer.isActive,
|
|
48
43
|
isChildActive = _useFreezeLayer.isChildActive,
|
|
49
44
|
handleClick = _useFreezeLayer.handleClick;
|
|
50
|
-
var refEle = forwardRef || dragRef;
|
|
51
|
-
(0, _useDragger["default"])({
|
|
52
|
-
ParentRef: refEle,
|
|
53
|
-
boundaryLimit: {
|
|
54
|
-
top: 0,
|
|
55
|
-
left: 50,
|
|
56
|
-
right: 50,
|
|
57
|
-
bottom: 50
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
45
|
return /*#__PURE__*/_react["default"].createElement(_VelocityAnimationGroup["default"], {
|
|
61
46
|
name: animationName && animationName,
|
|
62
47
|
isActive: isActive,
|
|
@@ -67,7 +52,8 @@ function FreezeLayer(props) {
|
|
|
67
52
|
} : {},
|
|
68
53
|
className: freezeClass,
|
|
69
54
|
onClick: handleClick,
|
|
70
|
-
|
|
55
|
+
"data-dragParent": true,
|
|
56
|
+
ref: forwardRef
|
|
71
57
|
}, children && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, childAnimationName ? /*#__PURE__*/_react["default"].createElement(_VelocityAnimationGroup["default"], {
|
|
72
58
|
name: childAnimationName,
|
|
73
59
|
isActive: isChildActive,
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
.container {
|
|
2
|
-
top: 0;
|
|
3
|
-
bottom: 0;
|
|
4
|
-
position: absolute;
|
|
5
|
-
overflow: hidden;
|
|
6
|
-
}[dir=ltr] .container {
|
|
7
|
-
left: 0;
|
|
8
|
-
right: 0;
|
|
9
|
-
}[dir=rtl] .container {
|
|
10
|
-
right: 0;
|
|
11
|
-
left: 0;
|
|
12
|
-
}
|
|
13
|
-
.default {
|
|
14
|
-
background-color: var(--zdt_freezelayer_default_bg);
|
|
15
|
-
}
|
|
16
|
-
.dark {
|
|
17
|
-
background-color: var(--zdt_freezelayer_dark_bg);
|
|
18
|
-
}
|
|
19
|
-
.darkLight {
|
|
20
|
-
background-color: var(--zdt_freezelayer_darklight_bg);
|
|
21
|
-
}
|
|
22
|
-
.plain {
|
|
23
|
-
background-color: var(--zdt_freezelayer_plain_bg);
|
|
24
|
-
}
|
|
25
|
-
.snow {
|
|
26
|
-
background-color: var(--zdt_freezelayer_snow_bg);
|
|
27
|
-
}
|
|
28
|
-
.index3 {
|
|
29
|
-
z-index: 3;
|
|
30
|
-
}
|
|
31
|
-
.index5 {
|
|
32
|
-
z-index: 5;
|
|
33
|
-
}
|
|
34
|
-
.index7 {
|
|
35
|
-
z-index: 7;
|
|
36
|
-
}
|
|
37
|
-
.index10 {
|
|
38
|
-
z-index: 10;
|
|
39
|
-
}
|
|
40
|
-
.delay {
|
|
41
|
-
transition-delay: var(--zd_transition2);
|
|
42
|
-
}
|
|
1
|
+
.container {
|
|
2
|
+
top: 0;
|
|
3
|
+
bottom: 0;
|
|
4
|
+
position: absolute;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
}[dir=ltr] .container {
|
|
7
|
+
left: 0;
|
|
8
|
+
right: 0;
|
|
9
|
+
}[dir=rtl] .container {
|
|
10
|
+
right: 0;
|
|
11
|
+
left: 0;
|
|
12
|
+
}
|
|
13
|
+
.default {
|
|
14
|
+
background-color: var(--zdt_freezelayer_default_bg);
|
|
15
|
+
}
|
|
16
|
+
.dark {
|
|
17
|
+
background-color: var(--zdt_freezelayer_dark_bg);
|
|
18
|
+
}
|
|
19
|
+
.darkLight {
|
|
20
|
+
background-color: var(--zdt_freezelayer_darklight_bg);
|
|
21
|
+
}
|
|
22
|
+
.plain {
|
|
23
|
+
background-color: var(--zdt_freezelayer_plain_bg);
|
|
24
|
+
}
|
|
25
|
+
.snow {
|
|
26
|
+
background-color: var(--zdt_freezelayer_snow_bg);
|
|
27
|
+
}
|
|
28
|
+
.index3 {
|
|
29
|
+
z-index: 3;
|
|
30
|
+
}
|
|
31
|
+
.index5 {
|
|
32
|
+
z-index: 5;
|
|
33
|
+
}
|
|
34
|
+
.index7 {
|
|
35
|
+
z-index: 7;
|
|
36
|
+
}
|
|
37
|
+
.index10 {
|
|
38
|
+
z-index: 10;
|
|
39
|
+
}
|
|
40
|
+
.delay {
|
|
41
|
+
transition-delay: var(--zd_transition2);
|
|
42
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
.dragCursor{
|
|
2
|
-
cursor: move !important;
|
|
1
|
+
.dragCursor{
|
|
2
|
+
cursor: move !important;
|
|
3
3
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _default = {
|
|
8
|
+
isActive: false,
|
|
9
|
+
childRef: null,
|
|
10
|
+
boundaryLimit: {
|
|
11
|
+
top: 0,
|
|
12
|
+
left: 50,
|
|
13
|
+
right: 50,
|
|
14
|
+
bottom: 50
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
|
+
var _default = {
|
|
10
|
+
isActive: _propTypes["default"].bool,
|
|
11
|
+
childRef: _propTypes["default"].object,
|
|
12
|
+
boundaryLimit: _propTypes["default"].shape({
|
|
13
|
+
top: _propTypes["default"].number,
|
|
14
|
+
left: _propTypes["default"].number,
|
|
15
|
+
right: _propTypes["default"].number,
|
|
16
|
+
bottom: _propTypes["default"].number
|
|
17
|
+
})
|
|
18
|
+
};
|
|
19
|
+
exports["default"] = _default;
|
|
@@ -5,79 +5,113 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = useDragger;
|
|
7
7
|
var _react = require("react");
|
|
8
|
-
var _Config = require("../../Provider/Config");
|
|
9
8
|
var _DraggerUtil = require("./utils/DraggerUtil");
|
|
9
|
+
var _Config = require("../../Provider/Config");
|
|
10
|
+
var _defaultProps = _interopRequireDefault(require("./props/defaultProps"));
|
|
11
|
+
var _propTypes = _interopRequireDefault(require("./props/propTypes"));
|
|
10
12
|
var _DraggerModule = _interopRequireDefault(require("./css/Dragger.module.css"));
|
|
11
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
14
|
+
//Hooks from React
|
|
15
|
+
|
|
16
|
+
//CustomFunction
|
|
17
|
+
|
|
18
|
+
//GlobalConfig
|
|
19
|
+
|
|
20
|
+
//Props
|
|
21
|
+
|
|
22
|
+
//CSS
|
|
23
|
+
|
|
12
24
|
function useDragger(_ref) {
|
|
13
|
-
var
|
|
25
|
+
var isActive = _ref.isActive,
|
|
26
|
+
ChildRef = _ref.ChildRef,
|
|
14
27
|
_ref$boundaryLimit = _ref.boundaryLimit,
|
|
15
|
-
boundaryLimit = _ref$boundaryLimit === void 0 ? (0, _Config.getDotLibraryConfig)(
|
|
16
|
-
var draggableEle = (0, _react.useRef)(null);
|
|
17
|
-
var parentEle = (0, _react.useRef)(null);
|
|
28
|
+
boundaryLimit = _ref$boundaryLimit === void 0 ? (0, _Config.getDotLibraryConfig)("boundaryLimit") : _ref$boundaryLimit;
|
|
29
|
+
var draggableEle = (0, _react.useRef)(null);
|
|
30
|
+
var parentEle = (0, _react.useRef)(null);
|
|
18
31
|
var offset = (0, _react.useRef)({
|
|
19
32
|
x: 0,
|
|
20
33
|
y: 0
|
|
21
|
-
});
|
|
22
|
-
var draggable = (0, _react.useRef)(false);
|
|
23
|
-
|
|
34
|
+
});
|
|
35
|
+
var draggable = (0, _react.useRef)(false);
|
|
24
36
|
(0, _react.useEffect)(function () {
|
|
25
|
-
parentEle.current =
|
|
26
|
-
}, [
|
|
27
|
-
|
|
37
|
+
parentEle.current = ChildRef.current.closest("[data-dragParent=true]") || (0, _Config.getDotLibraryConfig)("draggerBoundary") || document.body;
|
|
38
|
+
}, []); //did Mount
|
|
39
|
+
|
|
40
|
+
//calculateDragPosition --> To sperate Dom action
|
|
41
|
+
var calculateDragPosition = (0, _react.useCallback)(function (x, y) {
|
|
42
|
+
if (parentEle.current) {
|
|
43
|
+
return (0, _DraggerUtil.DragPosCalc)({
|
|
44
|
+
x: x,
|
|
45
|
+
y: y,
|
|
46
|
+
dragWrapper: parentEle.current,
|
|
47
|
+
element: draggableEle.current,
|
|
48
|
+
boundaryLimit: boundaryLimit
|
|
49
|
+
});
|
|
50
|
+
} else {
|
|
51
|
+
return {
|
|
52
|
+
x: x,
|
|
53
|
+
y: y
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
}, []);
|
|
57
|
+
var elementDrag = (0, _react.useCallback)(function (e) {
|
|
28
58
|
e = e || window.event;
|
|
29
59
|
e.preventDefault();
|
|
30
60
|
if (draggable.current) {
|
|
31
61
|
var left = offset.current.x + e.clientX;
|
|
32
62
|
var top = offset.current.y + e.clientY;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
element: draggableEle.current,
|
|
39
|
-
boundaryLimit: boundaryLimit
|
|
40
|
-
});
|
|
41
|
-
draggableEle.current.style.left = calcValue.x + 'px';
|
|
42
|
-
draggableEle.current.style.top = calcValue.y + 'px';
|
|
43
|
-
} else {
|
|
44
|
-
draggableEle.current.style.left = left + 'px';
|
|
45
|
-
draggableEle.current.style.top = top + 'px';
|
|
46
|
-
}
|
|
63
|
+
var _calculateDragPositio = calculateDragPosition(left, top),
|
|
64
|
+
x = _calculateDragPositio.x,
|
|
65
|
+
y = _calculateDragPositio.y;
|
|
66
|
+
draggableEle.current.style.left = x + "px";
|
|
67
|
+
draggableEle.current.style.top = y + "px";
|
|
47
68
|
}
|
|
48
|
-
};
|
|
49
|
-
var closeDragElement = function
|
|
50
|
-
document.removeEventListener(
|
|
51
|
-
document.removeEventListener(
|
|
52
|
-
};
|
|
53
|
-
var dragMouseDown = function
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
69
|
+
}, [calculateDragPosition]);
|
|
70
|
+
var closeDragElement = (0, _react.useCallback)(function () {
|
|
71
|
+
document.removeEventListener("mouseup", closeDragElement);
|
|
72
|
+
document.removeEventListener("mousemove", elementDrag);
|
|
73
|
+
}, []);
|
|
74
|
+
var dragMouseDown = (0, _react.useCallback)(function (e) {
|
|
75
|
+
e = e || window.event;
|
|
76
|
+
e.preventDefault();
|
|
77
|
+
var draggableEleRect = draggableEle.current.getBoundingClientRect();
|
|
78
|
+
var style = draggableEle.current.style;
|
|
79
|
+
var top = draggableEleRect.top,
|
|
80
|
+
left = draggableEleRect.left,
|
|
81
|
+
width = draggableEleRect.width;
|
|
82
|
+
style.top = "".concat(top, "px");
|
|
83
|
+
style.left = "".concat(left, "px");
|
|
84
|
+
style.width = "".concat(width, "px");
|
|
85
|
+
style.position = "fixed";
|
|
86
|
+
offset.current.x = draggableEle.current.offsetLeft - e.clientX;
|
|
87
|
+
offset.current.y = draggableEle.current.offsetTop - e.clientY;
|
|
88
|
+
draggable.current = true;
|
|
89
|
+
document.addEventListener("mouseup", closeDragElement);
|
|
90
|
+
document.addEventListener("mousemove", elementDrag);
|
|
91
|
+
}, []);
|
|
92
|
+
var removeListener = (0, _react.useCallback)(function (draggableEle) {
|
|
93
|
+
var dragController = draggableEle.current.querySelector("[data-drag-hook=true]");
|
|
94
|
+
if (dragController) {
|
|
95
|
+
dragController.removeEventListener("mousedown", dragMouseDown);
|
|
96
|
+
draggableEle.current = null;
|
|
97
|
+
}
|
|
98
|
+
}, []);
|
|
70
99
|
(0, _react.useEffect)(function () {
|
|
71
|
-
|
|
72
|
-
draggableEle.current =
|
|
73
|
-
var dragController = draggableEle.current && draggableEle.current.querySelector(
|
|
74
|
-
|
|
75
|
-
// : draggableEle.current;
|
|
76
|
-
dragController && dragController.addEventListener('mousedown', dragMouseDown);
|
|
100
|
+
if (isActive) {
|
|
101
|
+
draggableEle.current = ChildRef.current.closest("[data-drag-container=true]");
|
|
102
|
+
var dragController = draggableEle.current && draggableEle.current.querySelector("[data-drag-hook=true]");
|
|
103
|
+
dragController && dragController.addEventListener("mousedown", dragMouseDown);
|
|
77
104
|
dragController && dragController.classList.add(_DraggerModule["default"].dragCursor);
|
|
78
|
-
}
|
|
79
|
-
|
|
105
|
+
} else {
|
|
106
|
+
removeListener(draggableEle);
|
|
107
|
+
}
|
|
108
|
+
return function () {
|
|
109
|
+
removeListener(draggableEle);
|
|
110
|
+
};
|
|
111
|
+
}, [ChildRef.current, isActive]);
|
|
112
|
+
return null;
|
|
80
113
|
}
|
|
81
114
|
|
|
82
|
-
//
|
|
83
|
-
|
|
115
|
+
//Props
|
|
116
|
+
useDragger.propTypes = _propTypes["default"];
|
|
117
|
+
useDragger.defaultProps = _defaultProps["default"];
|
|
@@ -4,15 +4,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.DragPosCalc = DragPosCalc;
|
|
7
|
-
exports.elementFinder = void 0;
|
|
8
7
|
function DragPosCalc(_ref) {
|
|
9
8
|
var x = _ref.x,
|
|
10
9
|
y = _ref.y,
|
|
11
10
|
element = _ref.element,
|
|
12
11
|
dragWrapper = _ref.dragWrapper,
|
|
13
12
|
boundaryLimit = _ref.boundaryLimit;
|
|
14
|
-
//percent = 50%
|
|
15
|
-
// const percentobj = { top: 0, left: 10, right: 2, bottom: 90 };
|
|
16
13
|
var top = boundaryLimit.top,
|
|
17
14
|
left = boundaryLimit.left,
|
|
18
15
|
right = boundaryLimit.right,
|
|
@@ -23,48 +20,10 @@ function DragPosCalc(_ref) {
|
|
|
23
20
|
var leftOffset = left ? offsetWidth - left : 0;
|
|
24
21
|
var rightOffset = right ? offsetWidth - right : 0;
|
|
25
22
|
var bottomOffset = bottom ? offsetHeight - bottom : 0;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
x = -leftOffset;
|
|
29
|
-
}
|
|
30
|
-
if (x > dragWrapper.offsetWidth - element.offsetWidth + rightOffset) {
|
|
31
|
-
//RIGHT
|
|
32
|
-
x = dragWrapper.offsetWidth - element.offsetWidth + rightOffset;
|
|
33
|
-
}
|
|
34
|
-
if (y < -topOffset) {
|
|
35
|
-
//TOP
|
|
36
|
-
y = -topOffset;
|
|
37
|
-
}
|
|
38
|
-
if (y > dragWrapper.offsetHeight - element.offsetHeight + bottomOffset) {
|
|
39
|
-
//BOTTOM
|
|
40
|
-
y = dragWrapper.offsetHeight - element.offsetHeight + bottomOffset;
|
|
41
|
-
}
|
|
23
|
+
x = Math.max(-leftOffset, Math.min(x, dragWrapper.offsetWidth - element.offsetWidth + rightOffset));
|
|
24
|
+
y = Math.max(-topOffset, Math.min(y, dragWrapper.offsetHeight - element.offsetHeight + bottomOffset));
|
|
42
25
|
return {
|
|
43
26
|
x: x,
|
|
44
27
|
y: y
|
|
45
28
|
};
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// export const elementFinder = async (Parent, selector) => {
|
|
49
|
-
// while (Parent && Parent.querySelector(selector) === null) {
|
|
50
|
-
// await new Promise((resolve) => requestAnimationFrame(resolve));
|
|
51
|
-
// }
|
|
52
|
-
// return Parent && Parent.querySelector(selector);
|
|
53
|
-
// };
|
|
54
|
-
|
|
55
|
-
var elementFinder = function elementFinder(Parent, selector) {
|
|
56
|
-
return new Promise(function (resolve) {
|
|
57
|
-
var observer = new MutationObserver(function (mutations) {
|
|
58
|
-
var element = Parent.querySelector(selector);
|
|
59
|
-
if (element) {
|
|
60
|
-
observer.disconnect();
|
|
61
|
-
resolve(element);
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
observer.observe(Parent, {
|
|
65
|
-
childList: true,
|
|
66
|
-
subtree: true
|
|
67
|
-
});
|
|
68
|
-
});
|
|
69
|
-
};
|
|
70
|
-
exports.elementFinder = elementFinder;
|
|
29
|
+
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
.varClass {
|
|
2
|
-
--iconColor: var(--zdt_iconButton_icon_black);
|
|
3
|
-
}
|
|
4
|
-
.wrapper {
|
|
5
|
-
height:
|
|
6
|
-
width:
|
|
7
|
-
composes: offSelection from '~@zohodesk/components/lib/common/common.module.css';
|
|
8
|
-
composes: varClass;
|
|
9
|
-
color: var(--iconColor);
|
|
10
|
-
cursor: pointer;
|
|
11
|
-
}
|
|
12
|
-
.primary {
|
|
13
|
-
--iconColor: var(--zdt_iconButton_icon_primary);
|
|
14
|
-
}
|
|
15
|
-
.primary:hover {
|
|
16
|
-
--iconColor: var(--zdt_iconButton_icon_primaryHover);
|
|
17
|
-
}
|
|
18
|
-
.primary_active,
|
|
19
|
-
.primaryFilled,
|
|
20
|
-
.primaryFilled_active {
|
|
21
|
-
--iconColor: var(--zdt_iconButton_icon_primaryActive);
|
|
22
|
-
}
|
|
1
|
+
.varClass {
|
|
2
|
+
--iconColor: var(--zdt_iconButton_icon_black);
|
|
3
|
+
}
|
|
4
|
+
.wrapper {
|
|
5
|
+
height: 28px;
|
|
6
|
+
width: 28px;
|
|
7
|
+
composes: offSelection from '~@zohodesk/components/lib/common/common.module.css';
|
|
8
|
+
composes: varClass;
|
|
9
|
+
color: var(--iconColor);
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
}
|
|
12
|
+
.primary {
|
|
13
|
+
--iconColor: var(--zdt_iconButton_icon_primary);
|
|
14
|
+
}
|
|
15
|
+
.primary:hover {
|
|
16
|
+
--iconColor: var(--zdt_iconButton_icon_primaryHover);
|
|
17
|
+
}
|
|
18
|
+
.primary_active,
|
|
19
|
+
.primaryFilled,
|
|
20
|
+
.primaryFilled_active {
|
|
21
|
+
--iconColor: var(--zdt_iconButton_icon_primaryActive);
|
|
22
|
+
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
.imgFullSize{
|
|
2
|
-
height:100%;
|
|
3
|
-
width:100%
|
|
4
|
-
}
|
|
5
|
-
.imgMaxFullSize{
|
|
6
|
-
max-height:100%;
|
|
7
|
-
max-width:100%
|
|
8
|
-
}
|
|
9
|
-
.imgFullSize, .imgMaxFullSize{
|
|
10
|
-
|
|
1
|
+
.imgFullSize{
|
|
2
|
+
height:100%;
|
|
3
|
+
width:100%
|
|
4
|
+
}
|
|
5
|
+
.imgMaxFullSize{
|
|
6
|
+
max-height:100%;
|
|
7
|
+
max-width:100%
|
|
8
|
+
}
|
|
9
|
+
.imgFullSize, .imgMaxFullSize{
|
|
10
|
+
/* Variable:Ignore */
|
|
11
|
+
font-size: 12px
|
|
11
12
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
.section {
|
|
2
|
-
background: var(--zdt_importantnotes_bg);
|
|
3
|
-
padding:
|
|
4
|
-
}
|
|
5
|
-
.title {
|
|
6
|
-
font-size:
|
|
7
|
-
line-height: var(--zd_font_size18);
|
|
8
|
-
color: var(--zdt_importantnotes_title_text);
|
|
9
|
-
}
|
|
10
|
-
.icon {
|
|
11
|
-
color: var(--zdt_importantnotes_icon);
|
|
12
|
-
font-size: 0;
|
|
13
|
-
margin-top:
|
|
14
|
-
}
|
|
15
|
-
[dir=ltr] .icon {
|
|
16
|
-
margin-right:
|
|
17
|
-
}
|
|
18
|
-
[dir=rtl] .icon {
|
|
19
|
-
margin-left:
|
|
20
|
-
}
|
|
1
|
+
.section {
|
|
2
|
+
background: var(--zdt_importantnotes_bg);
|
|
3
|
+
padding: 5px 10px;
|
|
4
|
+
}
|
|
5
|
+
.title {
|
|
6
|
+
font-size: 13px;
|
|
7
|
+
line-height: var(--zd_font_size18);
|
|
8
|
+
color: var(--zdt_importantnotes_title_text);
|
|
9
|
+
}
|
|
10
|
+
.icon {
|
|
11
|
+
color: var(--zdt_importantnotes_icon);
|
|
12
|
+
font-size: 0;
|
|
13
|
+
margin-top: 1px;
|
|
14
|
+
}
|
|
15
|
+
[dir=ltr] .icon {
|
|
16
|
+
margin-right: 5px;
|
|
17
|
+
}
|
|
18
|
+
[dir=rtl] .icon {
|
|
19
|
+
margin-left: 5px;
|
|
20
|
+
}
|
package/lib/Link/Link.js
CHANGED
|
File without changes
|
package/lib/Link/Link.module.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.container {
|
|
2
|
-
text-decoration: none;
|
|
3
|
-
color: inherit;
|
|
1
|
+
.container {
|
|
2
|
+
text-decoration: none;
|
|
3
|
+
color: inherit;
|
|
4
4
|
}
|
|
@@ -1,46 +1,47 @@
|
|
|
1
|
-
.ajaxLoader {
|
|
2
|
-
position: absolute;
|
|
3
|
-
top: 0;
|
|
4
|
-
}[dir=ltr] .ajaxLoader {
|
|
5
|
-
left: 0;
|
|
6
|
-
right: 0;
|
|
7
|
-
}[dir=rtl] .ajaxLoader {
|
|
8
|
-
right: 0;
|
|
9
|
-
left: 0;
|
|
10
|
-
}
|
|
11
|
-
.loader {
|
|
12
|
-
width: 100%;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
background-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
animation-
|
|
21
|
-
animation-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
animation-
|
|
27
|
-
animation-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
1
|
+
.ajaxLoader {
|
|
2
|
+
position: absolute;
|
|
3
|
+
top: 0;
|
|
4
|
+
}[dir=ltr] .ajaxLoader {
|
|
5
|
+
left: 0;
|
|
6
|
+
right: 0;
|
|
7
|
+
}[dir=rtl] .ajaxLoader {
|
|
8
|
+
right: 0;
|
|
9
|
+
left: 0;
|
|
10
|
+
}
|
|
11
|
+
.loader {
|
|
12
|
+
width: 100%;
|
|
13
|
+
/* Variable:Ignore */
|
|
14
|
+
height: 3px;
|
|
15
|
+
background-image: var(--zdt_loader_gradient_bg);
|
|
16
|
+
background-size: 200% auto;
|
|
17
|
+
}
|
|
18
|
+
[dir=ltr] .loader {
|
|
19
|
+
background-position: 0 100%;
|
|
20
|
+
animation: loading-ltr 3s infinite;
|
|
21
|
+
animation-fill-mode: forwards;
|
|
22
|
+
animation-timing-function: linear;
|
|
23
|
+
}
|
|
24
|
+
[dir=rtl] .loader {
|
|
25
|
+
background-position: 100% 100%;
|
|
26
|
+
animation: loading-rtl 3s infinite;
|
|
27
|
+
animation-fill-mode: forwards;
|
|
28
|
+
animation-timing-function: linear;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@keyframes loading-ltr {
|
|
32
|
+
0% {
|
|
33
|
+
background-position: 0 0;
|
|
34
|
+
}
|
|
35
|
+
100% {
|
|
36
|
+
background-position: -200% 0;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@keyframes loading-rtl {
|
|
41
|
+
0% {
|
|
42
|
+
background-position: 100% 0;
|
|
43
|
+
}
|
|
44
|
+
100% {
|
|
45
|
+
background-position: 300% 0;
|
|
46
|
+
}
|
|
47
|
+
}
|