@zohodesk/dot 1.0.0-temp-184 → 1.0.0-temp-181.10
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/.cli/propValidation_report.html +1 -1
- package/coverage/ExternalLink/ExternalLink.js.html +1 -1
- package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
- package/coverage/ExternalLink/index.html +1 -1
- package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
- package/coverage/ExternalLink/props/index.html +1 -1
- package/coverage/ExternalLink/props/propTypes.js.html +1 -1
- package/coverage/IconButton/IconButton.js.html +1 -1
- package/coverage/IconButton/IconButton.module.css.html +1 -1
- package/coverage/IconButton/index.html +1 -1
- package/coverage/IconButton/props/defaultProps.js.html +1 -1
- package/coverage/IconButton/props/index.html +1 -1
- package/coverage/IconButton/props/propTypes.js.html +1 -1
- package/coverage/Image/Image.js.html +1 -1
- package/coverage/Image/Image.module.css.html +1 -1
- package/coverage/Image/index.html +1 -1
- package/coverage/Image/props/defaultProps.js.html +1 -1
- package/coverage/Image/props/index.html +1 -1
- package/coverage/Image/props/propTypes.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
- package/coverage/avatar/AvatarWithTeam/index.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
- package/coverage/coverage-final.json +16 -16
- package/coverage/coverage-summary.json +16 -16
- package/coverage/index.html +1 -1
- package/es/ActionButton/ActionButton.module.css +192 -192
- package/es/AlphabeticList/AlphabeticList.module.css +57 -57
- package/es/AttachmentViewer/AttachmentViewer.module.css +352 -352
- package/es/ChannelIcon/ChannelIcon.module.css +225 -225
- package/es/Drawer/Drawer.js +4 -5
- package/es/ExternalLink/ExternalLink.js +4 -5
- package/es/FlipCard/FlipCard.js +14 -12
- package/es/FormAction/FormAction.module.css +100 -100
- package/es/IconButton/IconButton.js +4 -5
- package/es/IconButton/IconButton.module.css +22 -22
- package/es/Link/Link.js +8 -10
- package/es/Message/Message.js +4 -5
- package/es/TagWithIcon/TagWithIcon.module.css +66 -66
- package/es/ToastMessage/ToastMessage.js +2 -4
- package/es/actions/AutoClose.js +2 -1
- package/es/alert/AlertLookup/AlertLookup.js +14 -12
- package/es/avatar/AvatarClose/AvatarClose.js +7 -7
- package/es/avatar/AvatarCollision/AvatarCollision.js +7 -7
- package/es/avatar/AvatarIcon/AvatarIcon.js +4 -5
- package/es/avatar/AvatarIcon/AvatarIcon.module.css +58 -58
- package/es/avatar/AvatarStatus/AvatarStatus.js +7 -8
- package/es/avatar/AvatarThread/AvatarThread.js +7 -7
- package/es/avatar/AvatarUser/AvatarUser.js +10 -9
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.js +17 -14
- package/es/common/dot_boxShadow.module.css +0 -2
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +28 -24
- package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +92 -92
- package/es/form/fields/CheckBoxField/CheckBoxField.js +15 -13
- package/es/form/fields/CurrencyField/CurrencyField.js +14 -12
- package/es/form/fields/DateField/DateField.js +14 -14
- package/es/form/fields/MultiSelectField/MultiSelectField.js +13 -12
- package/es/form/fields/PhoneField/PhoneField.js +7 -7
- package/es/form/fields/RadioField/RadioField.js +18 -15
- package/es/form/fields/SelectField/SelectField.js +14 -14
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +13 -10
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -11
- package/es/form/fields/TextBoxField/TextBoxField.js +14 -14
- package/es/form/fields/TextEditorField/TextEditorField.js +11 -10
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.js +11 -10
- package/es/form/fields/TextareaField/TextareaField.js +14 -13
- package/es/form/fields/ValidationMessage/ValidationMessage.module.css +27 -27
- package/es/layout/SubtabLayout/SubtabLayout.js +4 -6
- package/es/layout/SubtabLayout/SubtabLayout.module.css +164 -164
- package/es/list/Comment/Comment.module.css +29 -29
- package/es/list/Dot/Dot.module.css +15 -15
- package/es/list/ListLayout/ListLayout.js +4 -5
- package/es/list/ListLayout/ListLayout.module.css +79 -79
- package/es/list/SecondaryText/AccountName.js +12 -12
- package/es/list/SecondaryText/ContactName.js +8 -9
- package/es/list/SecondaryText/Email.js +8 -8
- package/es/list/SecondaryText/PhoneNumber.js +8 -8
- package/es/list/SecondaryText/SecondaryText.js +4 -5
- package/es/list/SecondaryText/TicketId.js +7 -7
- package/es/list/Subject/Subject.js +7 -7
- package/es/list/Subject/Subject.module.css +34 -34
- package/es/list/Thread/Thread.js +2 -1
- package/es/list/Thread/Thread.module.css +42 -42
- package/es/list/status/StatusDropdown/StatusDropdown.js +142 -101
- package/es/list/status/StatusListItem/StatusListItem.js +5 -5
- package/es/lookup/Lookup/Lookup.js +4 -5
- package/es/lookup/header/Search/Search.js +5 -3
- package/es/v1/DotWrapper/DotWrapper.js +46 -0
- package/es/v1/DotWrapper/libraryChunks/dynamicImports.js +24 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/blue/Blue_Dark_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/blue/Blue_Light_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/blue/Blue_PureDark_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/green/Green_Dark_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/green/Green_Light_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/green/Green_PureDark_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/orange/Orange_Dark_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/orange/Orange_Light_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/orange/Orange_PureDark_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/red/Red_Dark_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/red/Red_Light_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/red/Red_PureDark_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/yellow/Yellow_Dark_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/yellow/Yellow_Light_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/yellow/Yellow_PureDark_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/blue/Blue_Dark_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/blue/Blue_Light_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/blue/Blue_PureDark_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/green/Green_Dark_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/green/Green_Light_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/green/Green_PureDark_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/orange/Orange_Dark_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/orange/Orange_Light_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/orange/Orange_PureDark_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/red/Red_Dark_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/red/Red_Light_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/red/Red_PureDark_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/yellow/Yellow_Dark_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/yellow/Yellow_Light_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/yellow/Yellow_PureDark_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/blue/Blue_Dark_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/blue/Blue_Light_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/blue/Blue_PureDark_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/green/Green_Dark_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/green/Green_Light_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/green/Green_PureDark_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/orange/Orange_Dark_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/orange/Orange_Light_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/orange/Orange_PureDark_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/red/Red_Dark_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/red/Red_Light_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/red/Red_PureDark_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/yellow/Yellow_Dark_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/yellow/Yellow_Light_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/yellow/Yellow_PureDark_SVG.js +1 -0
- package/es/v1/DotWrapper/props/defaultProps.js +6 -0
- package/es/v1/DotWrapper/props/propTypes.js +9 -0
- package/es/v1/DotWrapper/utils/appearanceProperties.js +46 -0
- package/es/v1/DotWrapper/utils/errorMessage.js +7 -0
- package/es/v1/DotWrapper/utils/importFiles.js +30 -0
- package/es/v1/DotWrapper/utils/sizeProperties.js +12 -0
- package/es/v1/DotWrapper/utils/themeProperties.js +220 -0
- package/es/v1/Drawer/Drawer.js +4 -5
- package/es/v1/ExternalLink/ExternalLink.js +4 -5
- package/es/v1/FlipCard/FlipCard.js +14 -12
- package/es/v1/GlobalNotification/GlobalNotification.js +6 -7
- package/es/v1/IconButton/IconButton.js +4 -5
- package/es/v1/Link/Link.js +8 -10
- package/es/v1/Message/Message.js +4 -5
- package/es/v1/ToastMessage/ToastMessage.js +2 -4
- package/es/v1/actions/AutoClose.js +2 -1
- package/es/v1/alert/AlertLookup/AlertLookup.js +15 -15
- package/es/v1/avatar/AvatarClose/AvatarClose.js +7 -7
- package/es/v1/avatar/AvatarCollision/AvatarCollision.js +7 -7
- package/es/v1/avatar/AvatarIcon/AvatarIcon.js +4 -5
- package/es/v1/avatar/AvatarStatus/AvatarStatus.js +7 -8
- package/es/v1/avatar/AvatarThread/AvatarThread.js +7 -7
- package/es/v1/avatar/AvatarUser/AvatarUser.js +10 -9
- package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +17 -14
- package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +28 -24
- package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +15 -13
- package/es/v1/form/fields/CurrencyField/CurrencyField.js +14 -12
- package/es/v1/form/fields/DateField/DateField.js +14 -14
- package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +13 -12
- package/es/v1/form/fields/PhoneField/PhoneField.js +7 -7
- package/es/v1/form/fields/RadioField/RadioField.js +18 -16
- package/es/v1/form/fields/SelectField/SelectField.js +14 -14
- package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +13 -10
- package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -11
- package/es/v1/form/fields/TextBoxField/TextBoxField.js +14 -14
- package/es/v1/form/fields/TextEditorField/TextEditorField.js +11 -10
- package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +11 -10
- package/es/v1/form/fields/TextareaField/TextareaField.js +14 -13
- package/es/v1/layout/SubtabLayout/SubtabLayout.js +4 -6
- package/es/v1/list/ListLayout/ListLayout.js +4 -5
- package/es/v1/list/SecondaryText/AccountName.js +12 -12
- package/es/v1/list/SecondaryText/ContactName.js +8 -9
- package/es/v1/list/SecondaryText/Email.js +8 -8
- package/es/v1/list/SecondaryText/PhoneNumber.js +8 -8
- package/es/v1/list/SecondaryText/SecondaryText.js +4 -5
- package/es/v1/list/SecondaryText/TicketId.js +7 -7
- package/es/v1/list/Subject/Subject.js +7 -7
- package/es/v1/list/Thread/Thread.js +2 -1
- package/es/v1/list/status/StatusListItem/StatusListItem.js +5 -5
- package/es/v1/lookup/Lookup/Lookup.js +4 -5
- package/es/v1/lookup/header/Search/Search.js +5 -3
- package/es/v1/notification/DesktopNotification/DesktopNotification.js +6 -7
- package/es/version2/GlobalNotification/GlobalNotification.js +6 -7
- package/es/version2/GlobalNotification/GlobalNotification.module.css +177 -177
- package/es/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +87 -87
- package/es/version2/lookup/AlertLookup/AlertLookup.js +15 -15
- package/es/version2/notification/DesktopNotification/DesktopNotification.js +6 -7
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +132 -132
- package/lib/ActionButton/ActionButton.module.css +192 -192
- package/lib/AlphabeticList/AlphabeticList.module.css +57 -57
- package/lib/AttachmentViewer/AttachmentViewer.module.css +352 -352
- package/lib/ChannelIcon/ChannelIcon.module.css +225 -225
- package/lib/FormAction/FormAction.module.css +100 -100
- package/lib/IconButton/IconButton.module.css +22 -22
- package/lib/TagWithIcon/TagWithIcon.module.css +66 -66
- package/lib/avatar/AvatarIcon/AvatarIcon.module.css +58 -58
- package/lib/common/dot_boxShadow.module.css +0 -2
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +92 -92
- package/lib/form/fields/ValidationMessage/ValidationMessage.module.css +27 -27
- package/lib/layout/SubtabLayout/SubtabLayout.module.css +164 -164
- package/lib/list/Comment/Comment.module.css +29 -29
- package/lib/list/Dot/Dot.module.css +15 -15
- package/lib/list/ListLayout/ListLayout.module.css +79 -79
- package/lib/list/Subject/Subject.module.css +34 -34
- package/lib/list/Thread/Thread.js +2 -1
- package/lib/list/Thread/Thread.module.css +42 -42
- package/lib/list/status/StatusDropdown/StatusDropdown.js +207 -162
- package/lib/v1/DotWrapper/DotWrapper.js +65 -0
- package/lib/v1/DotWrapper/libraryChunks/dynamicImports.js +43 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/blue/Blue_Dark_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/blue/Blue_Light_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/blue/Blue_PureDark_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/green/Green_Dark_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/green/Green_Light_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/green/Green_PureDark_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/orange/Orange_Dark_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/orange/Orange_Light_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/orange/Orange_PureDark_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/red/Red_Dark_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/red/Red_Light_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/red/Red_PureDark_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/yellow/Yellow_Dark_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/yellow/Yellow_Light_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/yellow/Yellow_PureDark_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/blue/Blue_Dark_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/blue/Blue_Light_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/blue/Blue_PureDark_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/green/Green_Dark_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/green/Green_Light_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/green/Green_PureDark_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/orange/Orange_Dark_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/orange/Orange_Light_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/orange/Orange_PureDark_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/red/Red_Dark_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/red/Red_Light_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/red/Red_PureDark_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/yellow/Yellow_Dark_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/yellow/Yellow_Light_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/yellow/Yellow_PureDark_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/blue/Blue_Dark_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/blue/Blue_Light_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/blue/Blue_PureDark_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/green/Green_Dark_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/green/Green_Light_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/green/Green_PureDark_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/orange/Orange_Dark_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/orange/Orange_Light_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/orange/Orange_PureDark_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/red/Red_Dark_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/red/Red_Light_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/red/Red_PureDark_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/yellow/Yellow_Dark_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/yellow/Yellow_Light_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/yellow/Yellow_PureDark_SVG.js +3 -0
- package/lib/v1/DotWrapper/props/defaultProps.js +13 -0
- package/lib/v1/DotWrapper/props/propTypes.js +20 -0
- package/lib/v1/DotWrapper/utils/appearanceProperties.js +79 -0
- package/lib/v1/DotWrapper/utils/errorMessage.js +14 -0
- package/lib/v1/DotWrapper/utils/importFiles.js +39 -0
- package/lib/v1/DotWrapper/utils/sizeProperties.js +31 -0
- package/lib/v1/DotWrapper/utils/themeProperties.js +325 -0
- package/lib/v1/list/Thread/Thread.js +2 -1
- package/lib/version2/GlobalNotification/GlobalNotification.module.css +177 -177
- package/lib/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +87 -87
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +132 -132
- package/package.json +1 -1
- package/result.json +1 -1
|
@@ -7,9 +7,9 @@ import { Box, Container } from '@zohodesk/components/lib/Layout';
|
|
|
7
7
|
import DropDownHeading from '@zohodesk/components/lib/DropDown/DropDownHeading';
|
|
8
8
|
import TextBoxIcon from '@zohodesk/components/lib/TextBoxIcon/TextBoxIcon';
|
|
9
9
|
import Loader from '@zohodesk/svg/lib/Loader/Loader';
|
|
10
|
-
import EmptySearch from '@zohodesk/svg/lib/emptystate/version3/EmptySearch';
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
import EmptySearch from '@zohodesk/svg/lib/emptystate/version3/EmptySearch';
|
|
11
|
+
import { scrollTo } from '@zohodesk/components/lib/utils/Common.js';
|
|
12
|
+
import TextBox from '@zohodesk/components/lib/TextBox/TextBox';
|
|
13
13
|
import CommonEmptyState from '../../../emptystate/CommonEmptyState/CommonEmptyState';
|
|
14
14
|
import StatusListItem from '../StatusListItem/StatusListItem';
|
|
15
15
|
import commonStyle from '@zohodesk/components/lib/common/common.module.css';
|
|
@@ -23,20 +23,20 @@ export class StatusDropdown extends React.Component {
|
|
|
23
23
|
super(props);
|
|
24
24
|
this.state = {
|
|
25
25
|
searchString: '',
|
|
26
|
-
|
|
26
|
+
selectedIndex: 0,
|
|
27
27
|
options: props.options
|
|
28
28
|
};
|
|
29
|
-
this.handleChange = this.handleChange.bind(this);
|
|
30
|
-
|
|
29
|
+
this.handleChange = this.handleChange.bind(this);
|
|
30
|
+
this.handleKeyDown = this.handleKeyDown.bind(this);
|
|
31
31
|
this.onSelect = this.onSelect.bind(this);
|
|
32
32
|
this.handleTogglePopup = this.handleTogglePopup.bind(this);
|
|
33
33
|
this.onSearchClear = this.onSearchClear.bind(this);
|
|
34
34
|
this.searchList = this.searchList.bind(this);
|
|
35
|
-
this.scrollContentRef = this.scrollContentRef.bind(this);
|
|
36
|
-
|
|
35
|
+
this.scrollContentRef = this.scrollContentRef.bind(this);
|
|
36
|
+
this.handleMouseEnter = this.handleMouseEnter.bind(this);
|
|
37
37
|
this.searchInputRef = this.searchInputRef.bind(this);
|
|
38
|
-
this.itemRef = this.itemRef.bind(this);
|
|
39
|
-
|
|
38
|
+
this.itemRef = this.itemRef.bind(this);
|
|
39
|
+
this.inputRef = this.inputRef.bind(this);
|
|
40
40
|
this.handleScroll = this.handleScroll.bind(this);
|
|
41
41
|
this.emptySearchSVG = this.emptySearchSVG.bind(this);
|
|
42
42
|
this.getAriaId = getUniqueId(this);
|
|
@@ -46,10 +46,11 @@ export class StatusDropdown extends React.Component {
|
|
|
46
46
|
return /*#__PURE__*/React.createElement(EmptySearch, {
|
|
47
47
|
size: "small"
|
|
48
48
|
});
|
|
49
|
-
}
|
|
50
|
-
// this.hiddenInput = el;
|
|
51
|
-
// }
|
|
49
|
+
}
|
|
52
50
|
|
|
51
|
+
inputRef(el) {
|
|
52
|
+
this.hiddenInput = el;
|
|
53
|
+
}
|
|
53
54
|
|
|
54
55
|
itemRef(ele, index, id) {
|
|
55
56
|
this[`suggestion_${id}`] = ele;
|
|
@@ -103,68 +104,107 @@ export class StatusDropdown extends React.Component {
|
|
|
103
104
|
}
|
|
104
105
|
|
|
105
106
|
componentDidUpdate(prevProps) {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
107
|
+
let {
|
|
108
|
+
isPopupOpen,
|
|
109
|
+
isSearch,
|
|
110
|
+
idName
|
|
111
|
+
} = this.props;
|
|
112
|
+
let {
|
|
113
|
+
selectedIndex,
|
|
114
|
+
options
|
|
115
|
+
} = this.state;
|
|
116
|
+
|
|
117
|
+
if (prevProps.isPopupOpen != isPopupOpen) {
|
|
118
|
+
setTimeout(() => {
|
|
119
|
+
isPopupOpen && isSearch ? this.searchInput && this.searchInput.focus() : this.hiddenInput && this.hiddenInput.focus();
|
|
120
|
+
}, 10);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
let mergeOptions = options;
|
|
124
|
+
let option = mergeOptions[selectedIndex];
|
|
125
|
+
let id = option && option[idName] || {};
|
|
126
|
+
let selSuggestion = this[`suggestion_${id}`];
|
|
127
|
+
|
|
128
|
+
if (isPopupOpen) {
|
|
129
|
+
this.optionsContainer && scrollTo(this.optionsContainer, selSuggestion);
|
|
130
|
+
}
|
|
131
|
+
|
|
122
132
|
if (!prevProps.isPopupOpen && this.props.isPopupOpen) {
|
|
123
133
|
this.onSearchClear();
|
|
124
134
|
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
handleKeyDown(e) {
|
|
138
|
+
let {
|
|
139
|
+
keyCode
|
|
140
|
+
} = e;
|
|
141
|
+
let {
|
|
142
|
+
selectedIndex,
|
|
143
|
+
options
|
|
144
|
+
} = this.state;
|
|
145
|
+
let totalIndex = options.length;
|
|
146
|
+
let {
|
|
147
|
+
togglePopup,
|
|
148
|
+
onClick,
|
|
149
|
+
boxPosition,
|
|
150
|
+
isPopupReady,
|
|
151
|
+
isNextOptions,
|
|
152
|
+
getNextOptions,
|
|
153
|
+
onTogglePopup,
|
|
154
|
+
isPopupOpen
|
|
155
|
+
} = this.props;
|
|
156
|
+
|
|
157
|
+
if (isPopupReady && (keyCode === 38 || keyCode === 40) && e.preventDefault) {
|
|
158
|
+
e.preventDefault(); //prevent body scroll
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
if (isPopupReady) {
|
|
162
|
+
switch (keyCode) {
|
|
163
|
+
case 40:
|
|
164
|
+
if (selectedIndex === totalIndex - 1) {
|
|
165
|
+
this.setState({
|
|
166
|
+
selectedIndex: 0
|
|
167
|
+
});
|
|
168
|
+
} else {
|
|
169
|
+
if (selectedIndex === totalIndex - 3) {
|
|
170
|
+
isNextOptions && getNextOptions && getNextOptions();
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
this.setState({
|
|
174
|
+
selectedIndex: selectedIndex + 1
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
break;
|
|
179
|
+
|
|
180
|
+
case 38:
|
|
181
|
+
if (selectedIndex === 0) {
|
|
182
|
+
this.setState({
|
|
183
|
+
selectedIndex: totalIndex - 1
|
|
184
|
+
});
|
|
185
|
+
} else {
|
|
186
|
+
this.setState({
|
|
187
|
+
selectedIndex: selectedIndex - 1
|
|
188
|
+
});
|
|
189
|
+
}
|
|
167
190
|
|
|
191
|
+
break;
|
|
192
|
+
|
|
193
|
+
case 13:
|
|
194
|
+
onClick && onClick(options[selectedIndex].name, e);
|
|
195
|
+
onTogglePopup && onTogglePopup(isPopupOpen);
|
|
196
|
+
togglePopup(e, boxPosition);
|
|
197
|
+
break;
|
|
198
|
+
|
|
199
|
+
default:
|
|
200
|
+
break;
|
|
201
|
+
}
|
|
202
|
+
} else {
|
|
203
|
+
if (keyCode === 13 || keyCode === 40) {
|
|
204
|
+
togglePopup(e, boxPosition);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
168
208
|
|
|
169
209
|
searchList(value) {
|
|
170
210
|
let {
|
|
@@ -179,7 +219,7 @@ export class StatusDropdown extends React.Component {
|
|
|
179
219
|
let foptions = this.searchList(value);
|
|
180
220
|
this.setState({
|
|
181
221
|
searchString: value,
|
|
182
|
-
|
|
222
|
+
selectedIndex: -1,
|
|
183
223
|
options: foptions
|
|
184
224
|
});
|
|
185
225
|
}
|
|
@@ -190,12 +230,13 @@ export class StatusDropdown extends React.Component {
|
|
|
190
230
|
searchString: '',
|
|
191
231
|
options: foptions
|
|
192
232
|
});
|
|
193
|
-
}
|
|
194
|
-
// this.setState({
|
|
195
|
-
// selectedIndex: index
|
|
196
|
-
// });
|
|
197
|
-
// }
|
|
233
|
+
}
|
|
198
234
|
|
|
235
|
+
handleMouseEnter(id, value, index, e) {
|
|
236
|
+
this.setState({
|
|
237
|
+
selectedIndex: index
|
|
238
|
+
});
|
|
239
|
+
}
|
|
199
240
|
|
|
200
241
|
handleScroll(e) {
|
|
201
242
|
const {
|
|
@@ -221,7 +262,8 @@ export class StatusDropdown extends React.Component {
|
|
|
221
262
|
|
|
222
263
|
render() {
|
|
223
264
|
let {
|
|
224
|
-
options
|
|
265
|
+
options,
|
|
266
|
+
selectedIndex
|
|
225
267
|
} = this.state;
|
|
226
268
|
let {
|
|
227
269
|
value,
|
|
@@ -286,11 +328,12 @@ export class StatusDropdown extends React.Component {
|
|
|
286
328
|
tagName: "button",
|
|
287
329
|
alignBox: "row",
|
|
288
330
|
className: `${style.container} ${containerClass} ${btnStyle.buttonReset}`,
|
|
289
|
-
|
|
331
|
+
onMouseDown: !showOnHover && !isDisabled && !isReadOnly && isEditable ? this.handleTogglePopup : null,
|
|
290
332
|
eleRef: getTargetRef,
|
|
291
333
|
align: targetAlign,
|
|
292
334
|
isCover: false,
|
|
293
335
|
dataId: dataId,
|
|
336
|
+
onClick: removeClose,
|
|
294
337
|
disabled: isDisabled || isReadOnly ? true : false,
|
|
295
338
|
"aria-haspopup": isSearch ? 'listbox' : 'menu',
|
|
296
339
|
"aria-expanded": isPopupReady && isEditable ? true : false,
|
|
@@ -298,7 +341,15 @@ export class StatusDropdown extends React.Component {
|
|
|
298
341
|
"aria-labelledby": ariaLabelledby,
|
|
299
342
|
"aria-label": ariaLabel,
|
|
300
343
|
"aria-disabled": isDisabled || isReadOnly
|
|
301
|
-
},
|
|
344
|
+
}, isEditable ? /*#__PURE__*/React.createElement("div", {
|
|
345
|
+
className: style.hiddenInput
|
|
346
|
+
}, /*#__PURE__*/React.createElement(TextBox, {
|
|
347
|
+
type: "text",
|
|
348
|
+
inputRef: this.inputRef,
|
|
349
|
+
onKeyDown: this.handleKeyDown,
|
|
350
|
+
needAppearance: false,
|
|
351
|
+
placeHolder: placeHolderText
|
|
352
|
+
})) : null, children ? children : /*#__PURE__*/React.createElement(Box, {
|
|
302
353
|
className: `${style.value} toggleDropText`,
|
|
303
354
|
shrink: true,
|
|
304
355
|
tagName: "span",
|
|
@@ -332,10 +383,7 @@ export class StatusDropdown extends React.Component {
|
|
|
332
383
|
customDropBoxWrap: style.dropBoxContainer
|
|
333
384
|
},
|
|
334
385
|
needResponsive: needResponsive,
|
|
335
|
-
isResponsivePadding: true
|
|
336
|
-
tabindex: 0,
|
|
337
|
-
needFocusScope: true,
|
|
338
|
-
onClose: this.handleTogglePopup
|
|
386
|
+
isResponsivePadding: true
|
|
339
387
|
}, /*#__PURE__*/React.createElement(React.Fragment, null, isSearch ? /*#__PURE__*/React.createElement(Box, {
|
|
340
388
|
className: style.search
|
|
341
389
|
}, /*#__PURE__*/React.createElement(TextBoxIcon, {
|
|
@@ -344,13 +392,8 @@ export class StatusDropdown extends React.Component {
|
|
|
344
392
|
value: searchString,
|
|
345
393
|
onClear: this.onSearchClear,
|
|
346
394
|
size: searchBoxSize,
|
|
347
|
-
inputRef: this.searchInputRef
|
|
348
|
-
,
|
|
349
|
-
customProps: {
|
|
350
|
-
TextBoxProps: {
|
|
351
|
-
'data-a11y-autofocus': true
|
|
352
|
-
}
|
|
353
|
-
},
|
|
395
|
+
inputRef: this.searchInputRef,
|
|
396
|
+
onKeyDown: this.handleKeyDown,
|
|
354
397
|
a11y: {
|
|
355
398
|
ariaHaspopup: isSearch ? 'listbox' : 'menu',
|
|
356
399
|
ariaExpanded: isPopupReady,
|
|
@@ -376,9 +419,8 @@ export class StatusDropdown extends React.Component {
|
|
|
376
419
|
eleRef: this.scrollContentRef,
|
|
377
420
|
onScroll: this.handleScroll,
|
|
378
421
|
role: isSearch ? 'listbox' : 'menu',
|
|
379
|
-
"aria-labelledby": ariaTitleId
|
|
380
|
-
|
|
381
|
-
"data-scroll": "true"
|
|
422
|
+
"aria-labelledby": ariaTitleId,
|
|
423
|
+
tabindex: "-1"
|
|
382
424
|
}, options.length != 0 && isDataLoaded ? /*#__PURE__*/React.createElement(React.Fragment, null, options.map((item, i) => /*#__PURE__*/React.createElement(React.Fragment, {
|
|
383
425
|
key: i
|
|
384
426
|
}, /*#__PURE__*/React.createElement(StatusListItem, {
|
|
@@ -387,11 +429,11 @@ export class StatusDropdown extends React.Component {
|
|
|
387
429
|
id: item[idName],
|
|
388
430
|
active: value === item[keyName],
|
|
389
431
|
onClick: this.onSelect.bind(this, item),
|
|
390
|
-
index: i
|
|
391
|
-
,
|
|
432
|
+
index: i,
|
|
433
|
+
highlight: selectedIndex === i,
|
|
392
434
|
needTick: needTick,
|
|
393
|
-
needBorder: false
|
|
394
|
-
,
|
|
435
|
+
needBorder: false,
|
|
436
|
+
onMouseEnter: this.handleMouseEnter,
|
|
395
437
|
getRef: this.itemRef,
|
|
396
438
|
bulletColor: item[statusColor],
|
|
397
439
|
title: item[keyName],
|
|
@@ -399,9 +441,8 @@ export class StatusDropdown extends React.Component {
|
|
|
399
441
|
a11y: {
|
|
400
442
|
role: isSearch ? 'option' : 'menuitem',
|
|
401
443
|
ariaSelected: value === item[keyName],
|
|
402
|
-
'data-a11y-list-active':
|
|
403
|
-
}
|
|
404
|
-
autoHover: true
|
|
444
|
+
'data-a11y-list-active': selectedIndex === i
|
|
445
|
+
}
|
|
405
446
|
})))) : isDataLoaded ? /*#__PURE__*/React.createElement(CommonEmptyState, {
|
|
406
447
|
className: style.svgWrapper,
|
|
407
448
|
title: searchErrorText || 'No results',
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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
|
-
|
|
3
1
|
/**** Libraries ****/
|
|
4
2
|
import React from 'react';
|
|
5
3
|
import { defaultProps } from './props/defaultProps';
|
|
@@ -84,7 +82,7 @@ export default class StatusListItem extends React.Component {
|
|
|
84
82
|
options.target = `_${target}`;
|
|
85
83
|
}
|
|
86
84
|
|
|
87
|
-
return /*#__PURE__*/React.createElement(Container,
|
|
85
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
88
86
|
role: role,
|
|
89
87
|
"aria-selected": ariaSelected,
|
|
90
88
|
isCover: false,
|
|
@@ -97,8 +95,10 @@ export default class StatusListItem extends React.Component {
|
|
|
97
95
|
eleRef: this.getRef,
|
|
98
96
|
tagName: isLink ? 'a' : 'li',
|
|
99
97
|
"data-title": isDisabled ? disableTitle : null,
|
|
100
|
-
tabindex: isDisabled ? '-1' : '0'
|
|
101
|
-
|
|
98
|
+
tabindex: isDisabled ? '-1' : '0',
|
|
99
|
+
...options,
|
|
100
|
+
...a11y
|
|
101
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
102
102
|
className: `${style.statusType} ${style[bulletColor]}`
|
|
103
103
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
104
104
|
flexible: true,
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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
|
-
|
|
3
1
|
/*** Libraries ***/
|
|
4
2
|
import React, { Component } from 'react';
|
|
5
3
|
import { defaultProps } from './props/defaultProps';
|
|
@@ -78,7 +76,7 @@ export default class Lookup extends Component {
|
|
|
78
76
|
needFocusLoop = true,
|
|
79
77
|
needEnterAction = true
|
|
80
78
|
} = focusScopeProps;
|
|
81
|
-
const content = /*#__PURE__*/React.createElement("div",
|
|
79
|
+
const content = /*#__PURE__*/React.createElement("div", {
|
|
82
80
|
ref: this.createRef,
|
|
83
81
|
tabIndex: "-1",
|
|
84
82
|
"data-a11y-need-focus-style": "false",
|
|
@@ -90,8 +88,9 @@ export default class Lookup extends Component {
|
|
|
90
88
|
id: htmlId,
|
|
91
89
|
className: `${style.box} ${style[`${size}Size`]} ${lookupClass ? lookupClass : ''}`,
|
|
92
90
|
"data-id": dataId,
|
|
93
|
-
"data-test-id": dataId
|
|
94
|
-
|
|
91
|
+
"data-test-id": dataId,
|
|
92
|
+
...a11yAttributes
|
|
93
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
95
94
|
"data-drag-container": "true",
|
|
96
95
|
isCover: false,
|
|
97
96
|
className: isMinHeight ? `${style.wrapper}` : `${style.coverwrap}`
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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
|
-
|
|
3
1
|
/* eslint-disable react/forbid-component-props */
|
|
4
2
|
|
|
5
3
|
/*** Libraries ***/
|
|
@@ -100,7 +98,11 @@ export default class Search extends Component {
|
|
|
100
98
|
selectedId: selectedId,
|
|
101
99
|
onDropDownOpen: this.handleDropDownOpen,
|
|
102
100
|
onDropDownClose: this.handleDropDownClose
|
|
103
|
-
}, /*#__PURE__*/React.createElement(SearchUI,
|
|
101
|
+
}, /*#__PURE__*/React.createElement(SearchUI, { ...this.props,
|
|
102
|
+
...searchUIExtraProps
|
|
103
|
+
})) : /*#__PURE__*/React.createElement(SearchUI, { ...this.props,
|
|
104
|
+
...searchUIExtraProps
|
|
105
|
+
});
|
|
104
106
|
}
|
|
105
107
|
|
|
106
108
|
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { useEffect } from 'react';
|
|
2
|
+
import { getAppearance, getTheme, getZoomSize, getFontSize } from './libraryChunks/dynamicImports';
|
|
3
|
+
import '@zohodesk/components/assets/Contrast/lightContrastLightness.module.css';
|
|
4
|
+
import '@zohodesk/components/assets/Contrast/darkContrastLightness.module.css';
|
|
5
|
+
import '@zohodesk/components/assets/Contrast/pureDarkContrastLightness.module.css';
|
|
6
|
+
import '@zohodesk/variables/assets/colorVariables.module.css';
|
|
7
|
+
import '@zohodesk/variables/assets/dotVariables.module.css';
|
|
8
|
+
import '@zohodesk/components/es/common/basic.module.css';
|
|
9
|
+
import '@zohodesk/variables/lib/fontFamilyVariables.module.css';
|
|
10
|
+
import '@zohodesk/components/lib/common/boxShadow.module.css';
|
|
11
|
+
import '../../common/dot_boxShadow.module.css';
|
|
12
|
+
import { propTypes } from './props/propTypes';
|
|
13
|
+
import { defaultProps } from './props/defaultProps';
|
|
14
|
+
export default function DotWrapper(props) {
|
|
15
|
+
let {
|
|
16
|
+
$ui_appearance,
|
|
17
|
+
$ui_theme,
|
|
18
|
+
$ui_library,
|
|
19
|
+
$ui_baseZoomSize,
|
|
20
|
+
$ui_baseFontSize,
|
|
21
|
+
$method_wrapperRef
|
|
22
|
+
} = props;
|
|
23
|
+
useEffect(() => {
|
|
24
|
+
getAppearance($ui_appearance, $ui_library);
|
|
25
|
+
}, [$ui_appearance, $ui_library]);
|
|
26
|
+
useEffect(() => {
|
|
27
|
+
getTheme($ui_appearance, $ui_theme, $ui_library);
|
|
28
|
+
}, [$ui_appearance, $ui_theme, $ui_library]);
|
|
29
|
+
useEffect(() => {
|
|
30
|
+
$ui_baseZoomSize && getZoomSize();
|
|
31
|
+
|
|
32
|
+
if ($ui_baseZoomSize && $method_wrapperRef()) {
|
|
33
|
+
$method_wrapperRef().style.setProperty('--zd_baseSize', $ui_baseZoomSize);
|
|
34
|
+
}
|
|
35
|
+
}, [$ui_baseZoomSize]);
|
|
36
|
+
useEffect(() => {
|
|
37
|
+
$ui_baseFontSize && getFontSize();
|
|
38
|
+
|
|
39
|
+
if ($ui_baseFontSize && $method_wrapperRef()) {
|
|
40
|
+
$method_wrapperRef().style.setProperty('--zd_baseFontSize', $ui_baseFontSize);
|
|
41
|
+
}
|
|
42
|
+
}, [$ui_baseFontSize]);
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
DotWrapper.propTypes = propTypes;
|
|
46
|
+
DotWrapper.defaultProps = defaultProps;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { appearanceImports, appearanceMapping } from "../utils/appearanceProperties";
|
|
2
|
+
import { themeImports, themeMapping } from "../utils/themeProperties";
|
|
3
|
+
import { imports, mapping } from "../utils/sizeProperties";
|
|
4
|
+
import { processFiles } from "../utils/importFiles";
|
|
5
|
+
import { errorMessage } from "../utils/errorMessage";
|
|
6
|
+
const defaultLib = ['component', 'dot', 'svg'];
|
|
7
|
+
const modeArray = ['light', 'dark', 'pureDark'];
|
|
8
|
+
const themeArray = ['blue', 'green', 'orange', 'red', 'yellow'];
|
|
9
|
+
export function getAppearance(mode, library) {
|
|
10
|
+
const libArray = typeof library === 'string' ? [library] : library != undefined ? library : defaultLib;
|
|
11
|
+
errorMessage(modeArray, mode, 'appearance');
|
|
12
|
+
processFiles('appearance', libArray, appearanceMapping, appearanceImports, mode);
|
|
13
|
+
}
|
|
14
|
+
export function getTheme(mode, theme, library) {
|
|
15
|
+
const libArray = typeof library === 'string' ? [library] : library != undefined ? library : defaultLib;
|
|
16
|
+
errorMessage(themeArray, theme, 'theme');
|
|
17
|
+
processFiles('theme', libArray, themeMapping, themeImports, mode, theme);
|
|
18
|
+
}
|
|
19
|
+
export function getZoomSize() {
|
|
20
|
+
processFiles('zoom', null, mapping, imports);
|
|
21
|
+
}
|
|
22
|
+
export function getFontSize() {
|
|
23
|
+
processFiles('font', null, mapping, imports);
|
|
24
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import '@zohodesk/components/assets/Appearance/dark/themes/blue/blue_CTA_DarkTheme.module.css';
|
|
2
|
+
import '@zohodesk/components/assets/Appearance/dark/themes/blue/blue_CTA_DarkModifyCategory.module.css';
|
|
3
|
+
import '@zohodesk/components/assets/Appearance/dark/themes/blue/blue_ComponentTheme_DarkTheme.module.css';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import '@zohodesk/components/assets/Appearance/light/themes/blue/blue_CTA_LightTheme.module.css';
|
|
2
|
+
import '@zohodesk/components/assets/Appearance/light/themes/blue/blue_CTA_LightModifyCategory.module.css';
|
|
3
|
+
import '@zohodesk/components/assets/Appearance/light/themes/blue/blue_ComponentTheme_LightTheme.module.css';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import '@zohodesk/components/assets/Appearance/pureDark/themes/blue/blue_CTA_PureDarkTheme.module.css';
|
|
2
|
+
import '@zohodesk/components/assets/Appearance/pureDark/themes/blue/blue_CTA_PureDarkModifyCategory.module.css';
|
|
3
|
+
import '@zohodesk/components/assets/Appearance/pureDark/themes/blue/blue_ComponentTheme_PureDarkTheme.module.css';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import '@zohodesk/components/assets/Appearance/dark/themes/green/green_CTA_DarkTheme.module.css';
|
|
2
|
+
import '@zohodesk/components/assets/Appearance/dark/themes/green/green_CTA_DarkModifyCategory.module.css';
|
|
3
|
+
import '@zohodesk/components/assets/Appearance/dark/themes/green/green_ComponentTheme_DarkTheme.module.css';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import '@zohodesk/components/assets/Appearance/light/themes/green/green_CTA_LightTheme.module.css';
|
|
2
|
+
import '@zohodesk/components/assets/Appearance/light/themes/green/green_CTA_LightModifyCategory.module.css';
|
|
3
|
+
import '@zohodesk/components/assets/Appearance/light/themes/green/green_ComponentTheme_LightTheme.module.css';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import '@zohodesk/components/assets/Appearance/pureDark/themes/green/green_CTA_PureDarkTheme.module.css';
|
|
2
|
+
import '@zohodesk/components/assets/Appearance/pureDark/themes/green/green_CTA_PureDarkModifyCategory.module.css';
|
|
3
|
+
import '@zohodesk/components/assets/Appearance/pureDark/themes/green/green_ComponentTheme_PureDarkTheme.module.css';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import '@zohodesk/components/assets/Appearance/dark/themes/orange/orange_CTA_DarkTheme.module.css';
|
|
2
|
+
import '@zohodesk/components/assets/Appearance/dark/themes/orange/orange_CTA_DarkModifyCategory.module.css';
|
|
3
|
+
import '@zohodesk/components/assets/Appearance/dark/themes/orange/orange_ComponentTheme_DarkTheme.module.css';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import '@zohodesk/components/assets/Appearance/light/themes/orange/orange_CTA_LightTheme.module.css';
|
|
2
|
+
import '@zohodesk/components/assets/Appearance/light/themes/orange/orange_CTA_LightModifyCategory.module.css';
|
|
3
|
+
import '@zohodesk/components/assets/Appearance/light/themes/orange/orange_ComponentTheme_LightTheme.module.css';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import '@zohodesk/components/assets/Appearance/pureDark/themes/orange/orange_CTA_PureDarkTheme.module.css';
|
|
2
|
+
import '@zohodesk/components/assets/Appearance/pureDark/themes/orange/orange_CTA_PureDarkModifyCategory.module.css';
|
|
3
|
+
import '@zohodesk/components/assets/Appearance/pureDark/themes/orange/orange_ComponentTheme_PureDarkTheme.module.css';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import '@zohodesk/components/assets/Appearance/dark/themes/red/red_CTA_DarkTheme.module.css';
|
|
2
|
+
import '@zohodesk/components/assets/Appearance/dark/themes/red/red_CTA_DarkModifyCategory.module.css';
|
|
3
|
+
import '@zohodesk/components/assets/Appearance/dark/themes/red/red_ComponentTheme_DarkTheme.module.css';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import '@zohodesk/components/assets/Appearance/light/themes/red/red_CTA_LightTheme.module.css';
|
|
2
|
+
import '@zohodesk/components/assets/Appearance/light/themes/red/red_CTA_LightModifyCategory.module.css';
|
|
3
|
+
import '@zohodesk/components/assets/Appearance/light/themes/red/red_ComponentTheme_LightTheme.module.css';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import '@zohodesk/components/assets/Appearance/pureDark/themes/red/red_CTA_PureDarkTheme.module.css';
|
|
2
|
+
import '@zohodesk/components/assets/Appearance/pureDark/themes/red/red_CTA_PureDarkModifyCategory.module.css';
|
|
3
|
+
import '@zohodesk/components/assets/Appearance/pureDark/themes/red/red_ComponentTheme_PureDarkTheme.module.css';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import '@zohodesk/components/assets/Appearance/dark/themes/yellow/yellow_CTA_DarkTheme.module.css';
|
|
2
|
+
import '@zohodesk/components/assets/Appearance/dark/themes/yellow/yellow_CTA_DarkModifyCategory.module.css';
|
|
3
|
+
import '@zohodesk/components/assets/Appearance/dark/themes/yellow/yellow_ComponentTheme_DarkTheme.module.css';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import '@zohodesk/components/assets/Appearance/light/themes/yellow/yellow_CTA_LightTheme.module.css';
|
|
2
|
+
import '@zohodesk/components/assets/Appearance/light/themes/yellow/yellow_CTA_LightModifyCategory.module.css';
|
|
3
|
+
import '@zohodesk/components/assets/Appearance/light/themes/yellow/yellow_ComponentTheme_LightTheme.module.css';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import '@zohodesk/components/assets/Appearance/pureDark/themes/yellow/yellow_CTA_PureDarkTheme.module.css';
|
|
2
|
+
import '@zohodesk/components/assets/Appearance/pureDark/themes/yellow/yellow_CTA_PureDarkModifyCategory.module.css';
|
|
3
|
+
import '@zohodesk/components/assets/Appearance/pureDark/themes/yellow/yellow_ComponentTheme_PureDarkTheme.module.css';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './../../../../../../../assets/Appearance/dark/themes/blue/blue_DotTheme_DarkTheme.module.css';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './../../../../../../../assets/Appearance/light/themes/blue/blue_DotTheme_LightTheme.module.css';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './../../../../../../../assets/Appearance/pureDark/themes/blue/blue_DotTheme_PureDarkTheme.module.css';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './../../../../../../../assets/Appearance/dark/themes/green/green_DotTheme_DarkTheme.module.css';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './../../../../../../../assets/Appearance/light/themes/green/green_DotTheme_LightTheme.module.css';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './../../../../../../../assets/Appearance/pureDark/themes/green/green_DotTheme_PureDarkTheme.module.css';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './../../../../../../../assets/Appearance/dark/themes/orange/orange_DotTheme_DarkTheme.module.css';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './../../../../../../../assets/Appearance/light/themes/orange/orange_DotTheme_LightTheme.module.css';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './../../../../../../../assets/Appearance/pureDark/themes/orange/orange_DotTheme_PureDarkTheme.module.css';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './../../../../../../../assets/Appearance/dark/themes/red/red_DotTheme_DarkTheme.module.css';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './../../../../../../../assets/Appearance/light/themes/red/red_DotTheme_LightTheme.module.css';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './../../../../../../../assets/Appearance/pureDark/themes/red/red_DotTheme_PureDarkTheme.module.css';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './../../../../../../../assets/Appearance/dark/themes/yellow/yellow_DotTheme_DarkTheme.module.css';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './../../../../../../../assets/Appearance/light/themes/yellow/yellow_DotTheme_LightTheme.module.css';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './../../../../../../../assets/Appearance/pureDark/themes/yellow/yellow_DotTheme_PureDarkTheme.module.css';
|