@zohodesk/dot 1.0.0-temp-198.3.3 → 1.0.0-temp-187.1
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/UnValidatedFiles.html +1 -1
- package/.cli/propValidation_report.html +1 -1
- package/README.md +28 -0
- package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +1 -0
- package/assets/Appearance/light/mode/Dot_LightMode.module.css +1 -0
- package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +1 -0
- package/es/ActionButton/ActionButton.module.css +192 -192
- package/es/AlphabeticList/AlphabeticList.module.css +57 -57
- package/es/AttachmentViewer/AttachmentImage.js +68 -32
- package/es/AttachmentViewer/AttachmentViewer.js +120 -41
- package/es/AttachmentViewer/AttachmentViewer.module.css +364 -352
- package/es/AttachmentViewer/__tests__/AttachmentImage.spec.js +63 -13
- package/es/AttachmentViewer/__tests__/__snapshots__/AttachmentImage.spec.js.snap +9 -5
- package/es/AttachmentViewer/__tests__/__snapshots__/AttachmentViewer.spec.js.snap +16 -117
- package/es/AttachmentViewer/props/defaultProps.js +5 -1
- package/es/AttachmentViewer/props/propTypes.js +7 -3
- package/es/AttachmentViewer/utils.js +49 -0
- package/es/ChannelIcon/ChannelIcon.module.css +225 -225
- package/es/FormAction/FormAction.module.css +100 -100
- package/es/IconButton/IconButton.module.css +22 -22
- package/es/Image/Image.js +6 -2
- package/es/Image/props/propTypes.js +3 -1
- package/es/TagWithIcon/TagWithIcon.module.css +66 -66
- package/es/avatar/AvatarIcon/AvatarIcon.module.css +58 -58
- package/es/common/dot_boxShadow.module.css +2 -0
- package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +92 -92
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +4 -2
- package/es/form/fields/TextEditor/TextEditor.js +64 -64
- package/es/form/fields/TextEditor/TextEditor.module.css +73 -61
- package/es/form/fields/TextEditor/__tests__/__snapshots__/TextEditor.spec.js.snap +1 -1
- package/es/form/fields/TextEditor/props/defaultProps.js +4 -1
- package/es/form/fields/TextEditor/props/propTypes.js +10 -3
- package/es/form/fields/ValidationMessage/ValidationMessage.module.css +27 -27
- package/es/layout/SubtabLayout/SubtabLayout.module.css +164 -164
- package/es/list/Comment/Comment.module.css +29 -29
- package/es/list/DepartmentDropDown/DepartmentDropDown.js +7 -2
- package/es/list/DepartmentDropDown/props/defaultProps.js +2 -1
- package/es/list/DepartmentDropDown/props/propTypes.js +2 -1
- package/es/list/Dot/Dot.module.css +15 -15
- package/es/list/ListLayout/ListLayout.module.css +79 -79
- package/es/list/Subject/Subject.module.css +34 -34
- package/es/list/Thread/Thread.module.css +42 -42
- package/es/list/status/StatusListItem/StatusListItem.module.css +35 -5
- package/es/utils/editorUtils.js +6 -6
- package/es/v1/AttachmentViewer/AttachmentImage.js +44 -23
- package/es/v1/AttachmentViewer/AttachmentViewer.js +120 -41
- package/es/v1/AttachmentViewer/props/propTypes.js +7 -3
- package/es/v1/Image/Image.js +6 -2
- package/es/v1/Image/props/propTypes.js +3 -1
- package/es/v1/form/fields/TextEditor/TextEditor.js +63 -64
- package/es/v1/form/fields/TextEditor/props/defaultProps.js +4 -1
- package/es/v1/form/fields/TextEditor/props/propTypes.js +10 -3
- package/es/v1/utils/editorUtils.js +6 -6
- package/es/version2/GlobalNotification/GlobalNotification.module.css +177 -177
- package/es/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +87 -87
- 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/AttachmentImage.js +74 -36
- package/lib/AttachmentViewer/AttachmentViewer.js +151 -70
- package/lib/AttachmentViewer/AttachmentViewer.module.css +364 -352
- package/lib/AttachmentViewer/__tests__/AttachmentImage.spec.js +64 -13
- package/lib/AttachmentViewer/__tests__/__snapshots__/AttachmentImage.spec.js.snap +9 -5
- package/lib/AttachmentViewer/__tests__/__snapshots__/AttachmentViewer.spec.js.snap +16 -117
- package/lib/AttachmentViewer/props/defaultProps.js +5 -1
- package/lib/AttachmentViewer/props/propTypes.js +7 -3
- package/lib/AttachmentViewer/utils.js +60 -1
- 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/Image/Image.js +6 -2
- package/lib/Image/props/propTypes.js +3 -1
- package/lib/TagWithIcon/TagWithIcon.module.css +66 -66
- package/lib/avatar/AvatarIcon/AvatarIcon.module.css +58 -58
- package/lib/common/dot_boxShadow.module.css +2 -0
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +92 -92
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +5 -3
- package/lib/form/fields/TextEditor/TextEditor.js +74 -74
- package/lib/form/fields/TextEditor/TextEditor.module.css +73 -61
- package/lib/form/fields/TextEditor/__tests__/__snapshots__/TextEditor.spec.js.snap +1 -1
- package/lib/form/fields/TextEditor/props/defaultProps.js +4 -1
- package/lib/form/fields/TextEditor/props/propTypes.js +10 -3
- 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/DepartmentDropDown/DepartmentDropDown.js +8 -3
- package/lib/list/DepartmentDropDown/props/defaultProps.js +2 -1
- package/lib/list/DepartmentDropDown/props/propTypes.js +1 -1
- 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.module.css +42 -42
- package/lib/list/status/StatusListItem/StatusListItem.module.css +35 -5
- package/lib/utils/editorUtils.js +6 -5
- package/lib/v1/AttachmentViewer/AttachmentImage.js +52 -24
- package/lib/v1/AttachmentViewer/AttachmentViewer.js +151 -70
- package/lib/v1/AttachmentViewer/props/propTypes.js +7 -3
- package/lib/v1/Image/Image.js +6 -2
- package/lib/v1/Image/props/propTypes.js +3 -1
- package/lib/v1/form/fields/TextEditor/TextEditor.js +73 -74
- package/lib/v1/form/fields/TextEditor/props/defaultProps.js +4 -1
- package/lib/v1/form/fields/TextEditor/props/propTypes.js +10 -3
- package/lib/v1/utils/editorUtils.js +6 -5
- 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 +3 -3
- package/result.json +1 -1
- package/unittest/index.html +1 -1
- package/es/DotProvider/DotProvider.js +0 -60
- package/es/DotProvider/hooks/useDotProvider.js +0 -55
- package/es/DotProvider/hooks/useDownloadAssetsAndSetAttr.js +0 -97
- package/es/DotProvider/libraryChunks/themes/component/blue/Blue_Dark_Component.js +0 -3
- package/es/DotProvider/libraryChunks/themes/component/blue/Blue_Light_Component.js +0 -3
- package/es/DotProvider/libraryChunks/themes/component/blue/Blue_PureDark_Component.js +0 -3
- package/es/DotProvider/libraryChunks/themes/component/green/Green_Dark_Component.js +0 -3
- package/es/DotProvider/libraryChunks/themes/component/green/Green_Light_Component.js +0 -3
- package/es/DotProvider/libraryChunks/themes/component/green/Green_PureDark_Component.js +0 -3
- package/es/DotProvider/libraryChunks/themes/component/orange/Orange_Dark_Component.js +0 -3
- package/es/DotProvider/libraryChunks/themes/component/orange/Orange_Light_Component.js +0 -3
- package/es/DotProvider/libraryChunks/themes/component/orange/Orange_PureDark_Component.js +0 -3
- package/es/DotProvider/libraryChunks/themes/component/red/Red_Dark_Component.js +0 -3
- package/es/DotProvider/libraryChunks/themes/component/red/Red_Light_Component.js +0 -3
- package/es/DotProvider/libraryChunks/themes/component/red/Red_PureDark_Component.js +0 -3
- package/es/DotProvider/libraryChunks/themes/component/yellow/Yellow_Dark_Component.js +0 -3
- package/es/DotProvider/libraryChunks/themes/component/yellow/Yellow_Light_Component.js +0 -3
- package/es/DotProvider/libraryChunks/themes/component/yellow/Yellow_PureDark_Component.js +0 -3
- package/es/DotProvider/libraryChunks/themes/dot/blue/Blue_Dark_Dot.js +0 -1
- package/es/DotProvider/libraryChunks/themes/dot/blue/Blue_Light_Dot.js +0 -1
- package/es/DotProvider/libraryChunks/themes/dot/blue/Blue_PureDark_Dot.js +0 -1
- package/es/DotProvider/libraryChunks/themes/dot/green/Green_Dark_Dot.js +0 -1
- package/es/DotProvider/libraryChunks/themes/dot/green/Green_Light_Dot.js +0 -1
- package/es/DotProvider/libraryChunks/themes/dot/green/Green_PureDark_Dot.js +0 -1
- package/es/DotProvider/libraryChunks/themes/dot/orange/Orange_Dark_Dot.js +0 -1
- package/es/DotProvider/libraryChunks/themes/dot/orange/Orange_Light_Dot.js +0 -1
- package/es/DotProvider/libraryChunks/themes/dot/orange/Orange_PureDark_Dot.js +0 -1
- package/es/DotProvider/libraryChunks/themes/dot/red/Red_Dark_Dot.js +0 -1
- package/es/DotProvider/libraryChunks/themes/dot/red/Red_Light_Dot.js +0 -1
- package/es/DotProvider/libraryChunks/themes/dot/red/Red_PureDark_Dot.js +0 -1
- package/es/DotProvider/libraryChunks/themes/dot/yellow/Yellow_Dark_Dot.js +0 -1
- package/es/DotProvider/libraryChunks/themes/dot/yellow/Yellow_Light_Dot.js +0 -1
- package/es/DotProvider/libraryChunks/themes/dot/yellow/Yellow_PureDark_Dot.js +0 -1
- package/es/DotProvider/libraryChunks/themes/svg/blue/Blue_Dark_SVG.js +0 -1
- package/es/DotProvider/libraryChunks/themes/svg/blue/Blue_Light_SVG.js +0 -1
- package/es/DotProvider/libraryChunks/themes/svg/blue/Blue_PureDark_SVG.js +0 -1
- package/es/DotProvider/libraryChunks/themes/svg/green/Green_Dark_SVG.js +0 -1
- package/es/DotProvider/libraryChunks/themes/svg/green/Green_Light_SVG.js +0 -1
- package/es/DotProvider/libraryChunks/themes/svg/green/Green_PureDark_SVG.js +0 -1
- package/es/DotProvider/libraryChunks/themes/svg/orange/Orange_Dark_SVG.js +0 -1
- package/es/DotProvider/libraryChunks/themes/svg/orange/Orange_Light_SVG.js +0 -1
- package/es/DotProvider/libraryChunks/themes/svg/orange/Orange_PureDark_SVG.js +0 -1
- package/es/DotProvider/libraryChunks/themes/svg/red/Red_Dark_SVG.js +0 -1
- package/es/DotProvider/libraryChunks/themes/svg/red/Red_Light_SVG.js +0 -1
- package/es/DotProvider/libraryChunks/themes/svg/red/Red_PureDark_SVG.js +0 -1
- package/es/DotProvider/libraryChunks/themes/svg/yellow/Yellow_Dark_SVG.js +0 -1
- package/es/DotProvider/libraryChunks/themes/svg/yellow/Yellow_Light_SVG.js +0 -1
- package/es/DotProvider/libraryChunks/themes/svg/yellow/Yellow_PureDark_SVG.js +0 -1
- package/es/DotProvider/props/defaultProps.js +0 -11
- package/es/DotProvider/props/propTypes.js +0 -16
- package/es/DotProvider/utils/assetPromiseHandlers/fontSizeAssetPromise.js +0 -4
- package/es/DotProvider/utils/assetPromiseHandlers/themeAppearanceAssetPromise.js +0 -28
- package/es/DotProvider/utils/assetPromiseHandlers/themeColorAssetPromise.js +0 -29
- package/es/DotProvider/utils/assetPromiseHandlers/zoomSizeAssetPromise.js +0 -4
- package/es/DotProvider/utils/constants.js +0 -14
- package/es/DotProvider/utils/errorValidation.js +0 -17
- package/es/DotProvider/utils/getAssetsImportPromises.js +0 -17
- package/es/DotProvider/utils/sizeAssetsConfig.js +0 -12
- package/es/DotProvider/utils/themeAppearanceAssetsConfig.js +0 -47
- package/es/DotProvider/utils/themeColorAssetsConfig.js +0 -221
- package/lib/DotProvider/DotProvider.js +0 -88
- package/lib/DotProvider/hooks/useDotProvider.js +0 -83
- package/lib/DotProvider/hooks/useDownloadAssetsAndSetAttr.js +0 -119
- package/lib/DotProvider/libraryChunks/themes/component/blue/Blue_Dark_Component.js +0 -7
- package/lib/DotProvider/libraryChunks/themes/component/blue/Blue_Light_Component.js +0 -7
- package/lib/DotProvider/libraryChunks/themes/component/blue/Blue_PureDark_Component.js +0 -7
- package/lib/DotProvider/libraryChunks/themes/component/green/Green_Dark_Component.js +0 -7
- package/lib/DotProvider/libraryChunks/themes/component/green/Green_Light_Component.js +0 -7
- package/lib/DotProvider/libraryChunks/themes/component/green/Green_PureDark_Component.js +0 -7
- package/lib/DotProvider/libraryChunks/themes/component/orange/Orange_Dark_Component.js +0 -7
- package/lib/DotProvider/libraryChunks/themes/component/orange/Orange_Light_Component.js +0 -7
- package/lib/DotProvider/libraryChunks/themes/component/orange/Orange_PureDark_Component.js +0 -7
- package/lib/DotProvider/libraryChunks/themes/component/red/Red_Dark_Component.js +0 -7
- package/lib/DotProvider/libraryChunks/themes/component/red/Red_Light_Component.js +0 -7
- package/lib/DotProvider/libraryChunks/themes/component/red/Red_PureDark_Component.js +0 -7
- package/lib/DotProvider/libraryChunks/themes/component/yellow/Yellow_Dark_Component.js +0 -7
- package/lib/DotProvider/libraryChunks/themes/component/yellow/Yellow_Light_Component.js +0 -7
- package/lib/DotProvider/libraryChunks/themes/component/yellow/Yellow_PureDark_Component.js +0 -7
- package/lib/DotProvider/libraryChunks/themes/dot/blue/Blue_Dark_Dot.js +0 -3
- package/lib/DotProvider/libraryChunks/themes/dot/blue/Blue_Light_Dot.js +0 -3
- package/lib/DotProvider/libraryChunks/themes/dot/blue/Blue_PureDark_Dot.js +0 -3
- package/lib/DotProvider/libraryChunks/themes/dot/green/Green_Dark_Dot.js +0 -3
- package/lib/DotProvider/libraryChunks/themes/dot/green/Green_Light_Dot.js +0 -3
- package/lib/DotProvider/libraryChunks/themes/dot/green/Green_PureDark_Dot.js +0 -3
- package/lib/DotProvider/libraryChunks/themes/dot/orange/Orange_Dark_Dot.js +0 -3
- package/lib/DotProvider/libraryChunks/themes/dot/orange/Orange_Light_Dot.js +0 -3
- package/lib/DotProvider/libraryChunks/themes/dot/orange/Orange_PureDark_Dot.js +0 -3
- package/lib/DotProvider/libraryChunks/themes/dot/red/Red_Dark_Dot.js +0 -3
- package/lib/DotProvider/libraryChunks/themes/dot/red/Red_Light_Dot.js +0 -3
- package/lib/DotProvider/libraryChunks/themes/dot/red/Red_PureDark_Dot.js +0 -3
- package/lib/DotProvider/libraryChunks/themes/dot/yellow/Yellow_Dark_Dot.js +0 -3
- package/lib/DotProvider/libraryChunks/themes/dot/yellow/Yellow_Light_Dot.js +0 -3
- package/lib/DotProvider/libraryChunks/themes/dot/yellow/Yellow_PureDark_Dot.js +0 -3
- package/lib/DotProvider/libraryChunks/themes/svg/blue/Blue_Dark_SVG.js +0 -3
- package/lib/DotProvider/libraryChunks/themes/svg/blue/Blue_Light_SVG.js +0 -3
- package/lib/DotProvider/libraryChunks/themes/svg/blue/Blue_PureDark_SVG.js +0 -3
- package/lib/DotProvider/libraryChunks/themes/svg/green/Green_Dark_SVG.js +0 -3
- package/lib/DotProvider/libraryChunks/themes/svg/green/Green_Light_SVG.js +0 -3
- package/lib/DotProvider/libraryChunks/themes/svg/green/Green_PureDark_SVG.js +0 -3
- package/lib/DotProvider/libraryChunks/themes/svg/orange/Orange_Dark_SVG.js +0 -3
- package/lib/DotProvider/libraryChunks/themes/svg/orange/Orange_Light_SVG.js +0 -3
- package/lib/DotProvider/libraryChunks/themes/svg/orange/Orange_PureDark_SVG.js +0 -3
- package/lib/DotProvider/libraryChunks/themes/svg/red/Red_Dark_SVG.js +0 -3
- package/lib/DotProvider/libraryChunks/themes/svg/red/Red_Light_SVG.js +0 -3
- package/lib/DotProvider/libraryChunks/themes/svg/red/Red_PureDark_SVG.js +0 -3
- package/lib/DotProvider/libraryChunks/themes/svg/yellow/Yellow_Dark_SVG.js +0 -3
- package/lib/DotProvider/libraryChunks/themes/svg/yellow/Yellow_Light_SVG.js +0 -3
- package/lib/DotProvider/libraryChunks/themes/svg/yellow/Yellow_PureDark_SVG.js +0 -3
- package/lib/DotProvider/props/defaultProps.js +0 -20
- package/lib/DotProvider/props/propTypes.js +0 -28
- package/lib/DotProvider/utils/assetPromiseHandlers/fontSizeAssetPromise.js +0 -12
- package/lib/DotProvider/utils/assetPromiseHandlers/themeAppearanceAssetPromise.js +0 -39
- package/lib/DotProvider/utils/assetPromiseHandlers/themeColorAssetPromise.js +0 -40
- package/lib/DotProvider/utils/assetPromiseHandlers/zoomSizeAssetPromise.js +0 -12
- package/lib/DotProvider/utils/constants.js +0 -34
- package/lib/DotProvider/utils/errorValidation.js +0 -25
- package/lib/DotProvider/utils/getAssetsImportPromises.js +0 -22
- package/lib/DotProvider/utils/sizeAssetsConfig.js +0 -31
- package/lib/DotProvider/utils/themeAppearanceAssetsConfig.js +0 -69
- package/lib/DotProvider/utils/themeColorAssetsConfig.js +0 -249
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
import { LIBRARY_COMPONENT, LIBRARY_DOT, LIBRARY_SVG, THEME_APPEARANCE_DARK, THEME_APPEARANCE_LIGHT, THEME_APPEARANCE_PURE_DARK, THEME_COLOR_BLUE, THEME_COLOR_GREEN, THEME_COLOR_ORANGE, THEME_COLOR_RED, THEME_COLOR_YELLOW } from "./constants";
|
|
2
|
-
export const themeColorImports = {
|
|
3
|
-
Lib_Blue_Light_Component: () => import(
|
|
4
|
-
/* webpackChunkName: 'Lib_Blue_Light_Component' */
|
|
5
|
-
"../libraryChunks/themes/component/blue/Blue_Light_Component"),
|
|
6
|
-
Lib_Blue_Dark_Component: () => import(
|
|
7
|
-
/* webpackChunkName: 'Lib_Blue_Dark_Component' */
|
|
8
|
-
"../libraryChunks/themes/component/blue/Blue_Dark_Component"),
|
|
9
|
-
Lib_Blue_PureDark_Component: () => import(
|
|
10
|
-
/* webpackChunkName: 'Lib_Blue_PureDark_Component' */
|
|
11
|
-
"../libraryChunks/themes/component/blue/Blue_PureDark_Component"),
|
|
12
|
-
Lib_Green_Light_Component: () => import(
|
|
13
|
-
/* webpackChunkName: 'Lib_Green_Light_Component' */
|
|
14
|
-
"../libraryChunks/themes/component/green/Green_Light_Component"),
|
|
15
|
-
Lib_Green_Dark_Component: () => import(
|
|
16
|
-
/* webpackChunkName: 'Lib_Green_Dark_Component' */
|
|
17
|
-
"../libraryChunks/themes/component/green/Green_Dark_Component"),
|
|
18
|
-
Lib_Green_PureDark_Component: () => import(
|
|
19
|
-
/* webpackChunkName: 'Lib_Green_PureDark_Component' */
|
|
20
|
-
"../libraryChunks/themes/component/green/Green_PureDark_Component"),
|
|
21
|
-
Lib_Orange_Light_Component: () => import(
|
|
22
|
-
/* webpackChunkName: 'Lib_Orange_Light_Component' */
|
|
23
|
-
"../libraryChunks/themes/component/orange/Orange_Light_Component"),
|
|
24
|
-
Lib_Orange_Dark_Component: () => import(
|
|
25
|
-
/* webpackChunkName: 'Lib_Orange_Dark_Component' */
|
|
26
|
-
"../libraryChunks/themes/component/orange/Orange_Dark_Component"),
|
|
27
|
-
Lib_Orange_PureDark_Component: () => import(
|
|
28
|
-
/* webpackChunkName: 'Lib_Orange_PureDark_Component' */
|
|
29
|
-
"../libraryChunks/themes/component/orange/Orange_PureDark_Component"),
|
|
30
|
-
Lib_Red_Light_Component: () => import(
|
|
31
|
-
/* webpackChunkName: 'Lib_Red_Light_Component' */
|
|
32
|
-
"../libraryChunks/themes/component/red/Red_Light_Component"),
|
|
33
|
-
Lib_Red_Dark_Component: () => import(
|
|
34
|
-
/* webpackChunkName: 'Lib_Red_Dark_Component' */
|
|
35
|
-
"../libraryChunks/themes/component/red/Red_Dark_Component"),
|
|
36
|
-
Lib_Red_PureDark_Component: () => import(
|
|
37
|
-
/* webpackChunkName: 'Lib_Red_PureDark_Component' */
|
|
38
|
-
"../libraryChunks/themes/component/red/Red_PureDark_Component"),
|
|
39
|
-
Lib_Yellow_Light_Component: () => import(
|
|
40
|
-
/* webpackChunkName: 'Lib_Yellow_Light_Component' */
|
|
41
|
-
"../libraryChunks/themes/component/yellow/Yellow_Light_Component"),
|
|
42
|
-
Lib_Yellow_Dark_Component: () => import(
|
|
43
|
-
/* webpackChunkName: 'Lib_Yellow_Dark_Component' */
|
|
44
|
-
"../libraryChunks/themes/component/yellow/Yellow_Dark_Component"),
|
|
45
|
-
Lib_Yellow_PureDark_Component: () => import(
|
|
46
|
-
/* webpackChunkName: 'Lib_Yellow_PureDark_Component' */
|
|
47
|
-
"../libraryChunks/themes/component/yellow/Yellow_PureDark_Component"),
|
|
48
|
-
Lib_Blue_Light_Dot: () => import(
|
|
49
|
-
/* webpackChunkName: 'Lib_Blue_Light_Dot' */
|
|
50
|
-
"../libraryChunks/themes/dot/blue/Blue_Light_Dot"),
|
|
51
|
-
Lib_Blue_Dark_Dot: () => import(
|
|
52
|
-
/* webpackChunkName: 'Lib_Blue_Dark_Dot' */
|
|
53
|
-
"../libraryChunks/themes/dot/blue/Blue_Dark_Dot"),
|
|
54
|
-
Lib_Blue_PureDark_Dot: () => import(
|
|
55
|
-
/* webpackChunkName: 'Lib_Blue_PureDark_Dot' */
|
|
56
|
-
"../libraryChunks/themes/dot/blue/Blue_PureDark_Dot"),
|
|
57
|
-
Lib_Green_Light_Dot: () => import(
|
|
58
|
-
/* webpackChunkName: 'Lib_Green_Light_Dot' */
|
|
59
|
-
"../libraryChunks/themes/dot/green/Green_Light_Dot"),
|
|
60
|
-
Lib_Green_Dark_Dot: () => import(
|
|
61
|
-
/* webpackChunkName: 'Lib_Green_Dark_Dot' */
|
|
62
|
-
"../libraryChunks/themes/dot/green/Green_Dark_Dot"),
|
|
63
|
-
Lib_Green_PureDark_Dot: () => import(
|
|
64
|
-
/* webpackChunkName: 'Lib_Green_PureDark_Dot' */
|
|
65
|
-
"../libraryChunks/themes/dot/green/Green_PureDark_Dot"),
|
|
66
|
-
Lib_Orange_Light_Dot: () => import(
|
|
67
|
-
/* webpackChunkName: 'Lib_Orange_Light_Dot' */
|
|
68
|
-
"../libraryChunks/themes/dot/orange/Orange_Light_Dot"),
|
|
69
|
-
Lib_Orange_Dark_Dot: () => import(
|
|
70
|
-
/* webpackChunkName: 'Lib_Orange_Dark_Dot' */
|
|
71
|
-
"../libraryChunks/themes/dot/orange/Orange_Dark_Dot"),
|
|
72
|
-
Lib_Orange_PureDark_Dot: () => import(
|
|
73
|
-
/* webpackChunkName: 'Lib_Orange_PureDark_Dot' */
|
|
74
|
-
"../libraryChunks/themes/dot/orange/Orange_PureDark_Dot"),
|
|
75
|
-
Lib_Red_Light_Dot: () => import(
|
|
76
|
-
/* webpackChunkName: 'Lib_Red_Light_Dot' */
|
|
77
|
-
"../libraryChunks/themes/dot/red/Red_Light_Dot"),
|
|
78
|
-
Lib_Red_Dark_Dot: () => import(
|
|
79
|
-
/* webpackChunkName: 'Lib_Red_Dark_Dot' */
|
|
80
|
-
"../libraryChunks/themes/dot/red/Red_Dark_Dot"),
|
|
81
|
-
Lib_Red_PureDark_Dot: () => import(
|
|
82
|
-
/* webpackChunkName: 'Lib_Red_PureDark_Dot' */
|
|
83
|
-
"../libraryChunks/themes/dot/red/Red_PureDark_Dot"),
|
|
84
|
-
Lib_Yellow_Light_Dot: () => import(
|
|
85
|
-
/* webpackChunkName: 'Lib_Yellow_Light_Dot' */
|
|
86
|
-
"../libraryChunks/themes/dot/yellow/Yellow_Light_Dot"),
|
|
87
|
-
Lib_Yellow_Dark_Dot: () => import(
|
|
88
|
-
/* webpackChunkName: 'Lib_Yellow_Dark_Dot' */
|
|
89
|
-
"../libraryChunks/themes/dot/yellow/Yellow_Dark_Dot"),
|
|
90
|
-
Lib_Yellow_PureDark_Dot: () => import(
|
|
91
|
-
/* webpackChunkName: 'Lib_Yellow_PureDark_Dot' */
|
|
92
|
-
"../libraryChunks/themes/dot/yellow/Yellow_PureDark_Dot"),
|
|
93
|
-
Lib_Blue_Light_SVG: () => import(
|
|
94
|
-
/* webpackChunkName: 'Lib_Blue_Light_SVG' */
|
|
95
|
-
"../libraryChunks/themes/svg/blue/Blue_Light_SVG"),
|
|
96
|
-
Lib_Blue_Dark_SVG: () => import(
|
|
97
|
-
/* webpackChunkName: 'Lib_Blue_Dark_SVG' */
|
|
98
|
-
"../libraryChunks/themes/svg/blue/Blue_Dark_SVG"),
|
|
99
|
-
Lib_Blue_PureDark_SVG: () => import(
|
|
100
|
-
/* webpackChunkName: 'Lib_Blue_PureDark_SVG' */
|
|
101
|
-
"../libraryChunks/themes/svg/blue/Blue_PureDark_SVG"),
|
|
102
|
-
Lib_Green_Light_SVG: () => import(
|
|
103
|
-
/* webpackChunkName: 'Lib_Green_Light_SVG' */
|
|
104
|
-
"../libraryChunks/themes/svg/green/Green_Light_SVG"),
|
|
105
|
-
Lib_Green_Dark_SVG: () => import(
|
|
106
|
-
/* webpackChunkName: 'Lib_Green_Dark_SVG' */
|
|
107
|
-
"../libraryChunks/themes/svg/green/Green_Dark_SVG"),
|
|
108
|
-
Lib_Green_PureDark_SVG: () => import(
|
|
109
|
-
/* webpackChunkName: 'Lib_Green_PureDark_SVG' */
|
|
110
|
-
"../libraryChunks/themes/svg/green/Green_PureDark_SVG"),
|
|
111
|
-
Lib_Orange_Light_SVG: () => import(
|
|
112
|
-
/* webpackChunkName: 'Lib_Orange_Light_SVG' */
|
|
113
|
-
"../libraryChunks/themes/svg/orange/Orange_Light_SVG"),
|
|
114
|
-
Lib_Orange_Dark_SVG: () => import(
|
|
115
|
-
/* webpackChunkName: 'Lib_Orange_Dark_SVG' */
|
|
116
|
-
"../libraryChunks/themes/svg/orange/Orange_Dark_SVG"),
|
|
117
|
-
Lib_Orange_PureDark_SVG: () => import(
|
|
118
|
-
/* webpackChunkName: 'Lib_Orange_PureDark_SVG' */
|
|
119
|
-
"../libraryChunks/themes/svg/orange/Orange_PureDark_SVG"),
|
|
120
|
-
Lib_Red_Light_SVG: () => import(
|
|
121
|
-
/* webpackChunkName: 'Lib_Red_Light_SVG' */
|
|
122
|
-
"../libraryChunks/themes/svg/red/Red_Light_SVG"),
|
|
123
|
-
Lib_Red_Dark_SVG: () => import(
|
|
124
|
-
/* webpackChunkName: 'Lib_Red_Dark_SVG' */
|
|
125
|
-
"../libraryChunks/themes/svg/red/Red_Dark_SVG"),
|
|
126
|
-
Lib_Red_PureDark_SVG: () => import(
|
|
127
|
-
/* webpackChunkName: 'Lib_Red_PureDark_SVG' */
|
|
128
|
-
"../libraryChunks/themes/svg/red/Red_PureDark_SVG"),
|
|
129
|
-
Lib_Yellow_Light_SVG: () => import(
|
|
130
|
-
/* webpackChunkName: 'Lib_Yellow_Light_SVG' */
|
|
131
|
-
"../libraryChunks/themes/svg/yellow/Yellow_Light_SVG"),
|
|
132
|
-
Lib_Yellow_Dark_SVG: () => import(
|
|
133
|
-
/* webpackChunkName: 'Lib_Yellow_Dark_SVG' */
|
|
134
|
-
"../libraryChunks/themes/svg/yellow/Yellow_Dark_SVG"),
|
|
135
|
-
Lib_Yellow_PureDark_SVG: () => import(
|
|
136
|
-
/* webpackChunkName: 'Lib_Yellow_PureDark_SVG' */
|
|
137
|
-
"../libraryChunks/themes/svg/yellow/Yellow_PureDark_SVG")
|
|
138
|
-
};
|
|
139
|
-
export const themeColorMapping = {
|
|
140
|
-
[LIBRARY_COMPONENT]: {
|
|
141
|
-
[THEME_COLOR_BLUE]: {
|
|
142
|
-
[THEME_APPEARANCE_LIGHT]: 'Lib_Blue_Light_Component',
|
|
143
|
-
[THEME_APPEARANCE_DARK]: 'Lib_Blue_Dark_Component',
|
|
144
|
-
[THEME_APPEARANCE_PURE_DARK]: 'Lib_Blue_PureDark_Component'
|
|
145
|
-
},
|
|
146
|
-
[THEME_COLOR_GREEN]: {
|
|
147
|
-
[THEME_APPEARANCE_LIGHT]: 'Lib_Green_Light_Component',
|
|
148
|
-
[THEME_APPEARANCE_DARK]: 'Lib_Green_Dark_Component',
|
|
149
|
-
[THEME_APPEARANCE_PURE_DARK]: 'Lib_Green_PureDark_Component'
|
|
150
|
-
},
|
|
151
|
-
[THEME_COLOR_ORANGE]: {
|
|
152
|
-
[THEME_APPEARANCE_LIGHT]: 'Lib_Orange_Light_Component',
|
|
153
|
-
[THEME_APPEARANCE_DARK]: 'Lib_Orange_Dark_Component',
|
|
154
|
-
[THEME_APPEARANCE_PURE_DARK]: 'Lib_Orange_PureDark_Component'
|
|
155
|
-
},
|
|
156
|
-
[THEME_COLOR_RED]: {
|
|
157
|
-
[THEME_APPEARANCE_LIGHT]: 'Lib_Red_Light_Component',
|
|
158
|
-
[THEME_APPEARANCE_DARK]: 'Lib_Red_Dark_Component',
|
|
159
|
-
[THEME_APPEARANCE_PURE_DARK]: 'Lib_Red_PureDark_Component'
|
|
160
|
-
},
|
|
161
|
-
[THEME_COLOR_YELLOW]: {
|
|
162
|
-
[THEME_APPEARANCE_LIGHT]: 'Lib_Yellow_Light_Component',
|
|
163
|
-
[THEME_APPEARANCE_DARK]: 'Lib_Yellow_Dark_Component',
|
|
164
|
-
[THEME_APPEARANCE_PURE_DARK]: 'Lib_Yellow_PureDark_Component'
|
|
165
|
-
}
|
|
166
|
-
},
|
|
167
|
-
[LIBRARY_DOT]: {
|
|
168
|
-
[THEME_COLOR_BLUE]: {
|
|
169
|
-
[THEME_APPEARANCE_LIGHT]: 'Lib_Blue_Light_Dot',
|
|
170
|
-
[THEME_APPEARANCE_DARK]: 'Lib_Blue_Dark_Dot',
|
|
171
|
-
[THEME_APPEARANCE_PURE_DARK]: 'Lib_Blue_PureDark_Dot'
|
|
172
|
-
},
|
|
173
|
-
[THEME_COLOR_GREEN]: {
|
|
174
|
-
[THEME_APPEARANCE_LIGHT]: 'Lib_Green_Light_Dot',
|
|
175
|
-
[THEME_APPEARANCE_DARK]: 'Lib_Green_Dark_Dot',
|
|
176
|
-
[THEME_APPEARANCE_PURE_DARK]: 'Lib_Green_PureDark_Dot'
|
|
177
|
-
},
|
|
178
|
-
[THEME_COLOR_ORANGE]: {
|
|
179
|
-
[THEME_APPEARANCE_LIGHT]: 'Lib_Orange_Light_Dot',
|
|
180
|
-
[THEME_APPEARANCE_DARK]: 'Lib_Orange_Dark_Dot',
|
|
181
|
-
[THEME_APPEARANCE_PURE_DARK]: 'Lib_Orange_PureDark_Dot'
|
|
182
|
-
},
|
|
183
|
-
[THEME_COLOR_RED]: {
|
|
184
|
-
[THEME_APPEARANCE_LIGHT]: 'Lib_Red_Light_Dot',
|
|
185
|
-
[THEME_APPEARANCE_DARK]: 'Lib_Red_Dark_Dot',
|
|
186
|
-
[THEME_APPEARANCE_PURE_DARK]: 'Lib_Red_PureDark_Dot'
|
|
187
|
-
},
|
|
188
|
-
[THEME_COLOR_YELLOW]: {
|
|
189
|
-
[THEME_APPEARANCE_LIGHT]: 'Lib_Yellow_Light_Dot',
|
|
190
|
-
[THEME_APPEARANCE_DARK]: 'Lib_Yellow_Dark_Dot',
|
|
191
|
-
[THEME_APPEARANCE_PURE_DARK]: 'Lib_Yellow_PureDark_Dot'
|
|
192
|
-
}
|
|
193
|
-
},
|
|
194
|
-
[LIBRARY_SVG]: {
|
|
195
|
-
[THEME_COLOR_BLUE]: {
|
|
196
|
-
[THEME_APPEARANCE_LIGHT]: 'Lib_Blue_Light_SVG',
|
|
197
|
-
[THEME_APPEARANCE_DARK]: 'Lib_Blue_Dark_SVG',
|
|
198
|
-
[THEME_APPEARANCE_PURE_DARK]: 'Lib_Blue_PureDark_SVG'
|
|
199
|
-
},
|
|
200
|
-
[THEME_COLOR_GREEN]: {
|
|
201
|
-
[THEME_APPEARANCE_LIGHT]: 'Lib_Green_Light_SVG',
|
|
202
|
-
[THEME_APPEARANCE_DARK]: 'Lib_Green_Dark_SVG',
|
|
203
|
-
[THEME_APPEARANCE_PURE_DARK]: 'Lib_Green_PureDark_SVG'
|
|
204
|
-
},
|
|
205
|
-
[THEME_COLOR_ORANGE]: {
|
|
206
|
-
[THEME_APPEARANCE_LIGHT]: 'Lib_Orange_Light_SVG',
|
|
207
|
-
[THEME_APPEARANCE_DARK]: 'Lib_Orange_Dark_SVG',
|
|
208
|
-
[THEME_APPEARANCE_PURE_DARK]: 'Lib_Orange_PureDark_SVG'
|
|
209
|
-
},
|
|
210
|
-
[THEME_COLOR_RED]: {
|
|
211
|
-
[THEME_APPEARANCE_LIGHT]: 'Lib_Red_Light_SVG',
|
|
212
|
-
[THEME_APPEARANCE_DARK]: 'Lib_Red_Dark_SVG',
|
|
213
|
-
[THEME_APPEARANCE_PURE_DARK]: 'Lib_Red_PureDark_SVG'
|
|
214
|
-
},
|
|
215
|
-
[THEME_COLOR_YELLOW]: {
|
|
216
|
-
[THEME_APPEARANCE_LIGHT]: 'Lib_Yellow_Light_SVG',
|
|
217
|
-
[THEME_APPEARANCE_DARK]: 'Lib_Yellow_Dark_SVG',
|
|
218
|
-
[THEME_APPEARANCE_PURE_DARK]: 'Lib_Yellow_PureDark_SVG'
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
};
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
|
|
10
|
-
var _defaultProps = require("./props/defaultProps");
|
|
11
|
-
|
|
12
|
-
var _propTypes = require("./props/propTypes");
|
|
13
|
-
|
|
14
|
-
var _useDotProvider = _interopRequireDefault(require("./hooks/useDotProvider"));
|
|
15
|
-
|
|
16
|
-
var _excluded = ["tag", "themeAppearance", "themeColor", "baseZoomUnit", "baseFontUnit", "zoomUnitVariable", "fontUnitVariable", "themeAppearanceAttr", "themeColorAttr", "providerRef", "onAssetsDownloadSuccess", "getAssetsPromises", "children"];
|
|
17
|
-
|
|
18
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
-
|
|
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
|
-
|
|
22
|
-
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; }
|
|
23
|
-
|
|
24
|
-
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); }
|
|
25
|
-
|
|
26
|
-
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); }
|
|
27
|
-
|
|
28
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
29
|
-
|
|
30
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
31
|
-
|
|
32
|
-
var DotProvider = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
33
|
-
var _props$tag = props.tag,
|
|
34
|
-
Element = _props$tag === void 0 ? 'div' : _props$tag,
|
|
35
|
-
themeAppearance = props.themeAppearance,
|
|
36
|
-
themeColor = props.themeColor,
|
|
37
|
-
baseZoomUnit = props.baseZoomUnit,
|
|
38
|
-
baseFontUnit = props.baseFontUnit,
|
|
39
|
-
zoomUnitVariable = props.zoomUnitVariable,
|
|
40
|
-
fontUnitVariable = props.fontUnitVariable,
|
|
41
|
-
themeAppearanceAttr = props.themeAppearanceAttr,
|
|
42
|
-
themeColorAttr = props.themeColorAttr,
|
|
43
|
-
providerRef = props.providerRef,
|
|
44
|
-
onAssetsDownloadSuccess = props.onAssetsDownloadSuccess,
|
|
45
|
-
getAssetsPromises = props.getAssetsPromises,
|
|
46
|
-
children = props.children,
|
|
47
|
-
rest = _objectWithoutProperties(props, _excluded);
|
|
48
|
-
|
|
49
|
-
var wrapperElementRef = (0, _react.useRef)(null);
|
|
50
|
-
var getProviderElement = (0, _react.useCallback)(function () {
|
|
51
|
-
if (typeof providerRef === 'function') {
|
|
52
|
-
return providerRef();
|
|
53
|
-
} else if (Element !== _react["default"].Fragment) {
|
|
54
|
-
return wrapperElementRef.current;
|
|
55
|
-
} else {
|
|
56
|
-
return document.documentElement;
|
|
57
|
-
}
|
|
58
|
-
}, [providerRef, Element]);
|
|
59
|
-
var getEleRef = (0, _react.useCallback)(function (ele) {
|
|
60
|
-
wrapperElementRef.current = ele;
|
|
61
|
-
|
|
62
|
-
if (ref && typeof ref === 'function') {
|
|
63
|
-
ref(ele);
|
|
64
|
-
} else if (ref && _typeof(ref) === 'object') {
|
|
65
|
-
ref.current = ele;
|
|
66
|
-
}
|
|
67
|
-
}, [ref]);
|
|
68
|
-
(0, _useDotProvider["default"])({
|
|
69
|
-
themeAppearance: themeAppearance,
|
|
70
|
-
themeColor: themeColor,
|
|
71
|
-
themeAppearanceAttr: themeAppearanceAttr,
|
|
72
|
-
themeColorAttr: themeColorAttr,
|
|
73
|
-
baseZoomUnit: baseZoomUnit,
|
|
74
|
-
baseFontUnit: baseFontUnit,
|
|
75
|
-
zoomUnitVariable: zoomUnitVariable,
|
|
76
|
-
fontUnitVariable: fontUnitVariable,
|
|
77
|
-
getProviderElement: getProviderElement,
|
|
78
|
-
onAssetsDownloadSuccess: onAssetsDownloadSuccess,
|
|
79
|
-
getAssetsPromises: getAssetsPromises
|
|
80
|
-
});
|
|
81
|
-
return /*#__PURE__*/_react["default"].createElement(Element, _extends({}, rest, {
|
|
82
|
-
ref: getEleRef
|
|
83
|
-
}), children);
|
|
84
|
-
});
|
|
85
|
-
DotProvider.propTypes = _propTypes.propTypes;
|
|
86
|
-
DotProvider.defaultProps = _defaultProps.defaultProps;
|
|
87
|
-
var _default = DotProvider;
|
|
88
|
-
exports["default"] = _default;
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = require("react");
|
|
9
|
-
|
|
10
|
-
var _useDownloadAssetsAndSetAttr = _interopRequireDefault(require("./useDownloadAssetsAndSetAttr"));
|
|
11
|
-
|
|
12
|
-
require("@zohodesk/components/assets/Contrast/lightContrastLightness.module.css");
|
|
13
|
-
|
|
14
|
-
require("@zohodesk/components/assets/Contrast/darkContrastLightness.module.css");
|
|
15
|
-
|
|
16
|
-
require("@zohodesk/components/assets/Contrast/pureDarkContrastLightness.module.css");
|
|
17
|
-
|
|
18
|
-
require("@zohodesk/variables/assets/colorVariables.module.css");
|
|
19
|
-
|
|
20
|
-
require("@zohodesk/variables/assets/dotVariables.module.css");
|
|
21
|
-
|
|
22
|
-
require("@zohodesk/components/es/common/basic.module.css");
|
|
23
|
-
|
|
24
|
-
require("@zohodesk/variables/lib/fontFamilyVariables.module.css");
|
|
25
|
-
|
|
26
|
-
require("@zohodesk/components/lib/common/boxShadow.module.css");
|
|
27
|
-
|
|
28
|
-
require("../../common/dot_boxShadow.module.css");
|
|
29
|
-
|
|
30
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
31
|
-
|
|
32
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
33
|
-
|
|
34
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
35
|
-
|
|
36
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
37
|
-
|
|
38
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
39
|
-
|
|
40
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
41
|
-
|
|
42
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
43
|
-
|
|
44
|
-
function useDotProvider(_ref) {
|
|
45
|
-
var themeAppearance = _ref.themeAppearance,
|
|
46
|
-
themeColor = _ref.themeColor,
|
|
47
|
-
baseZoomUnit = _ref.baseZoomUnit,
|
|
48
|
-
baseFontUnit = _ref.baseFontUnit,
|
|
49
|
-
getProviderElement = _ref.getProviderElement,
|
|
50
|
-
zoomUnitVariable = _ref.zoomUnitVariable,
|
|
51
|
-
fontUnitVariable = _ref.fontUnitVariable,
|
|
52
|
-
themeAppearanceAttr = _ref.themeAppearanceAttr,
|
|
53
|
-
themeColorAttr = _ref.themeColorAttr,
|
|
54
|
-
onAssetsDownloadSuccess = _ref.onAssetsDownloadSuccess,
|
|
55
|
-
getAssetsPromises = _ref.getAssetsPromises;
|
|
56
|
-
var assetsPromises = (0, _useDownloadAssetsAndSetAttr["default"])({
|
|
57
|
-
themeAppearance: themeAppearance,
|
|
58
|
-
themeColor: themeColor,
|
|
59
|
-
baseZoomUnit: baseZoomUnit,
|
|
60
|
-
baseFontUnit: baseFontUnit,
|
|
61
|
-
getProviderElement: getProviderElement,
|
|
62
|
-
zoomUnitVariable: zoomUnitVariable,
|
|
63
|
-
fontUnitVariable: fontUnitVariable,
|
|
64
|
-
themeAppearanceAttr: themeAppearanceAttr,
|
|
65
|
-
themeColorAttr: themeColorAttr
|
|
66
|
-
});
|
|
67
|
-
var themeAppearancePromise = assetsPromises.themeAppearancePromise,
|
|
68
|
-
themeColorPromise = assetsPromises.themeColorPromise,
|
|
69
|
-
zoomSizePromise = assetsPromises.zoomSizePromise,
|
|
70
|
-
fontSizePromise = assetsPromises.fontSizePromise;
|
|
71
|
-
var allPromises = [].concat(_toConsumableArray(themeAppearancePromise), _toConsumableArray(themeColorPromise), [zoomSizePromise, fontSizePromise]);
|
|
72
|
-
(0, _react.useLayoutEffect)(function () {
|
|
73
|
-
Promise.all(allPromises).then(function () {
|
|
74
|
-
typeof onAssetsDownloadSuccess === 'function' && onAssetsDownloadSuccess();
|
|
75
|
-
})["catch"](function (error) {
|
|
76
|
-
console.error('Error loading assets:', error);
|
|
77
|
-
});
|
|
78
|
-
typeof getAssetsPromises === 'function' && getAssetsPromises(assetsPromises);
|
|
79
|
-
}, _toConsumableArray(allPromises));
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
var _default = useDotProvider;
|
|
83
|
-
exports["default"] = _default;
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = useDownloadAssetsAndSetAttr;
|
|
7
|
-
|
|
8
|
-
var _react = require("react");
|
|
9
|
-
|
|
10
|
-
var _themeAppearanceAssetPromise = require("../utils/assetPromiseHandlers/themeAppearanceAssetPromise.js");
|
|
11
|
-
|
|
12
|
-
var _themeColorAssetPromise = require("../utils/assetPromiseHandlers/themeColorAssetPromise.js");
|
|
13
|
-
|
|
14
|
-
var _fontSizeAssetPromise = require("../utils/assetPromiseHandlers/fontSizeAssetPromise.js");
|
|
15
|
-
|
|
16
|
-
var _zoomSizeAssetPromise = require("../utils/assetPromiseHandlers/zoomSizeAssetPromise.js");
|
|
17
|
-
|
|
18
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
19
|
-
|
|
20
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
21
|
-
|
|
22
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
23
|
-
|
|
24
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
25
|
-
|
|
26
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
27
|
-
|
|
28
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
29
|
-
|
|
30
|
-
function useDownloadAssetsAndSetAttr(_ref) {
|
|
31
|
-
var themeAppearance = _ref.themeAppearance,
|
|
32
|
-
themeColor = _ref.themeColor,
|
|
33
|
-
baseZoomUnit = _ref.baseZoomUnit,
|
|
34
|
-
baseFontUnit = _ref.baseFontUnit,
|
|
35
|
-
getProviderElement = _ref.getProviderElement,
|
|
36
|
-
zoomUnitVariable = _ref.zoomUnitVariable,
|
|
37
|
-
fontUnitVariable = _ref.fontUnitVariable,
|
|
38
|
-
themeAppearanceAttr = _ref.themeAppearanceAttr,
|
|
39
|
-
themeColorAttr = _ref.themeColorAttr;
|
|
40
|
-
var themeAppearancePromise = (0, _react.useMemo)(function () {
|
|
41
|
-
var themeAppearanceAssetPromise = (0, _themeAppearanceAssetPromise.getThemeAppearanceAssetPromise)({
|
|
42
|
-
themeAppearance: themeAppearance
|
|
43
|
-
});
|
|
44
|
-
return themeAppearanceAssetPromise;
|
|
45
|
-
}, [themeAppearance]);
|
|
46
|
-
var themeColorPromise = (0, _react.useMemo)(function () {
|
|
47
|
-
var themeColorAssetPromise = (0, _themeColorAssetPromise.getThemeColorAssetPromise)({
|
|
48
|
-
themeAppearance: themeAppearance,
|
|
49
|
-
themeColor: themeColor
|
|
50
|
-
});
|
|
51
|
-
return themeColorAssetPromise;
|
|
52
|
-
}, [themeAppearance, themeColor]);
|
|
53
|
-
var modifiedZoomUnitWithSuffix = (0, _react.useMemo)(function () {
|
|
54
|
-
return !isNaN(Number(baseZoomUnit)) ? "".concat(Number(baseZoomUnit), "px") : baseZoomUnit;
|
|
55
|
-
}, [baseZoomUnit]);
|
|
56
|
-
var zoomSizePromise = (0, _react.useMemo)(function () {
|
|
57
|
-
var assetPromise = (0, _zoomSizeAssetPromise.getZoomSizeAssetPromise)();
|
|
58
|
-
return assetPromise;
|
|
59
|
-
}, []);
|
|
60
|
-
var fontSizePromise = (0, _react.useMemo)(function () {
|
|
61
|
-
var assetPromise = (0, _fontSizeAssetPromise.getFontSizeAssetPromise)();
|
|
62
|
-
return assetPromise;
|
|
63
|
-
}, []);
|
|
64
|
-
var combinedPromise = {
|
|
65
|
-
themeAppearancePromise: themeAppearancePromise,
|
|
66
|
-
themeColorPromise: themeColorPromise,
|
|
67
|
-
zoomSizePromise: zoomSizePromise,
|
|
68
|
-
fontSizePromise: fontSizePromise
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
function setThemeAttribute() {
|
|
72
|
-
var themePromise = [].concat(_toConsumableArray(themeAppearancePromise), _toConsumableArray(themeColorPromise));
|
|
73
|
-
Promise.all(themePromise).then(function () {
|
|
74
|
-
var providerElement = getProviderElement();
|
|
75
|
-
|
|
76
|
-
if (providerElement) {
|
|
77
|
-
providerElement.setAttribute(themeAppearanceAttr, themeAppearance);
|
|
78
|
-
providerElement.setAttribute(themeColorAttr, themeColor);
|
|
79
|
-
}
|
|
80
|
-
})["catch"](function (error) {
|
|
81
|
-
console.error('Error on setting theme appearance and color attributes:', error);
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
function setZoomSizeAttribute() {
|
|
86
|
-
zoomSizePromise.then(function () {
|
|
87
|
-
var providerElement = getProviderElement();
|
|
88
|
-
|
|
89
|
-
if (providerElement) {
|
|
90
|
-
providerElement.style.setProperty(zoomUnitVariable, modifiedZoomUnitWithSuffix);
|
|
91
|
-
}
|
|
92
|
-
})["catch"](function (error) {
|
|
93
|
-
console.error('Error on setting zoom-size property', error);
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
function setFontSizeAttribute() {
|
|
98
|
-
fontSizePromise.then(function () {
|
|
99
|
-
var providerElement = getProviderElement();
|
|
100
|
-
|
|
101
|
-
if (providerElement) {
|
|
102
|
-
providerElement.style.setProperty(fontUnitVariable, baseFontUnit);
|
|
103
|
-
}
|
|
104
|
-
})["catch"](function (error) {
|
|
105
|
-
console.error('Error on setting font-size property', error);
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
(0, _react.useLayoutEffect)(function () {
|
|
110
|
-
setThemeAttribute();
|
|
111
|
-
}, [themeAppearanceAttr, themeColorAttr, themeAppearance, themeColor, getProviderElement]);
|
|
112
|
-
(0, _react.useLayoutEffect)(function () {
|
|
113
|
-
setZoomSizeAttribute();
|
|
114
|
-
}, [zoomUnitVariable, modifiedZoomUnitWithSuffix, getProviderElement]);
|
|
115
|
-
(0, _react.useLayoutEffect)(function () {
|
|
116
|
-
setFontSizeAttribute();
|
|
117
|
-
}, [fontUnitVariable, baseFontUnit, getProviderElement]);
|
|
118
|
-
return combinedPromise;
|
|
119
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/dark/themes/blue/blue_CTA_DarkTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/components/assets/Appearance/dark/themes/blue/blue_CTA_DarkModifyCategory.module.css");
|
|
6
|
-
|
|
7
|
-
require("@zohodesk/components/assets/Appearance/dark/themes/blue/blue_ComponentTheme_DarkTheme.module.css");
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/light/themes/blue/blue_CTA_LightTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/components/assets/Appearance/light/themes/blue/blue_CTA_LightModifyCategory.module.css");
|
|
6
|
-
|
|
7
|
-
require("@zohodesk/components/assets/Appearance/light/themes/blue/blue_ComponentTheme_LightTheme.module.css");
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/pureDark/themes/blue/blue_CTA_PureDarkTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/components/assets/Appearance/pureDark/themes/blue/blue_CTA_PureDarkModifyCategory.module.css");
|
|
6
|
-
|
|
7
|
-
require("@zohodesk/components/assets/Appearance/pureDark/themes/blue/blue_ComponentTheme_PureDarkTheme.module.css");
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/dark/themes/green/green_CTA_DarkTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/components/assets/Appearance/dark/themes/green/green_CTA_DarkModifyCategory.module.css");
|
|
6
|
-
|
|
7
|
-
require("@zohodesk/components/assets/Appearance/dark/themes/green/green_ComponentTheme_DarkTheme.module.css");
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/light/themes/green/green_CTA_LightTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/components/assets/Appearance/light/themes/green/green_CTA_LightModifyCategory.module.css");
|
|
6
|
-
|
|
7
|
-
require("@zohodesk/components/assets/Appearance/light/themes/green/green_ComponentTheme_LightTheme.module.css");
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/pureDark/themes/green/green_CTA_PureDarkTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/components/assets/Appearance/pureDark/themes/green/green_CTA_PureDarkModifyCategory.module.css");
|
|
6
|
-
|
|
7
|
-
require("@zohodesk/components/assets/Appearance/pureDark/themes/green/green_ComponentTheme_PureDarkTheme.module.css");
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/dark/themes/orange/orange_CTA_DarkTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/components/assets/Appearance/dark/themes/orange/orange_CTA_DarkModifyCategory.module.css");
|
|
6
|
-
|
|
7
|
-
require("@zohodesk/components/assets/Appearance/dark/themes/orange/orange_ComponentTheme_DarkTheme.module.css");
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/light/themes/orange/orange_CTA_LightTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/components/assets/Appearance/light/themes/orange/orange_CTA_LightModifyCategory.module.css");
|
|
6
|
-
|
|
7
|
-
require("@zohodesk/components/assets/Appearance/light/themes/orange/orange_ComponentTheme_LightTheme.module.css");
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/pureDark/themes/orange/orange_CTA_PureDarkTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/components/assets/Appearance/pureDark/themes/orange/orange_CTA_PureDarkModifyCategory.module.css");
|
|
6
|
-
|
|
7
|
-
require("@zohodesk/components/assets/Appearance/pureDark/themes/orange/orange_ComponentTheme_PureDarkTheme.module.css");
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/dark/themes/red/red_CTA_DarkTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/components/assets/Appearance/dark/themes/red/red_CTA_DarkModifyCategory.module.css");
|
|
6
|
-
|
|
7
|
-
require("@zohodesk/components/assets/Appearance/dark/themes/red/red_ComponentTheme_DarkTheme.module.css");
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/light/themes/red/red_CTA_LightTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/components/assets/Appearance/light/themes/red/red_CTA_LightModifyCategory.module.css");
|
|
6
|
-
|
|
7
|
-
require("@zohodesk/components/assets/Appearance/light/themes/red/red_ComponentTheme_LightTheme.module.css");
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/pureDark/themes/red/red_CTA_PureDarkTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/components/assets/Appearance/pureDark/themes/red/red_CTA_PureDarkModifyCategory.module.css");
|
|
6
|
-
|
|
7
|
-
require("@zohodesk/components/assets/Appearance/pureDark/themes/red/red_ComponentTheme_PureDarkTheme.module.css");
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/dark/themes/yellow/yellow_CTA_DarkTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/components/assets/Appearance/dark/themes/yellow/yellow_CTA_DarkModifyCategory.module.css");
|
|
6
|
-
|
|
7
|
-
require("@zohodesk/components/assets/Appearance/dark/themes/yellow/yellow_ComponentTheme_DarkTheme.module.css");
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/light/themes/yellow/yellow_CTA_LightTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/components/assets/Appearance/light/themes/yellow/yellow_CTA_LightModifyCategory.module.css");
|
|
6
|
-
|
|
7
|
-
require("@zohodesk/components/assets/Appearance/light/themes/yellow/yellow_ComponentTheme_LightTheme.module.css");
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/pureDark/themes/yellow/yellow_CTA_PureDarkTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/components/assets/Appearance/pureDark/themes/yellow/yellow_CTA_PureDarkModifyCategory.module.css");
|
|
6
|
-
|
|
7
|
-
require("@zohodesk/components/assets/Appearance/pureDark/themes/yellow/yellow_ComponentTheme_PureDarkTheme.module.css");
|