@zohodesk/dot 1.0.0-temp-227 → 1.0.0-temp-228.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/README.md +5 -6
- package/es/ActionButton/ActionButton.js +19 -9
- package/es/ActionButton/props/defaultProps.js +2 -1
- package/es/ActionButton/props/propTypes.js +4 -1
- package/es/Attachment/Attachment.module.css +3 -3
- package/es/DotProvider/hooks/useDotProvider.js +3 -3
- package/es/DotProvider/libraryChunks/appearance/variables/Dark_Variables.js +1 -0
- package/es/DotProvider/libraryChunks/appearance/variables/Light_Variables.js +1 -0
- package/es/DotProvider/libraryChunks/appearance/variables/PureDark_Variables.js +1 -0
- package/es/DotProvider/libraryChunks/themes/component/blue/Blue_Dark_Component.js +0 -2
- package/es/DotProvider/libraryChunks/themes/component/blue/Blue_Light_Component.js +0 -2
- package/es/DotProvider/libraryChunks/themes/component/blue/Blue_PureDark_Component.js +0 -2
- package/es/DotProvider/libraryChunks/themes/component/green/Green_Dark_Component.js +0 -2
- package/es/DotProvider/libraryChunks/themes/component/green/Green_Light_Component.js +0 -2
- package/es/DotProvider/libraryChunks/themes/component/green/Green_PureDark_Component.js +0 -2
- package/es/DotProvider/libraryChunks/themes/component/orange/Orange_Dark_Component.js +0 -2
- package/es/DotProvider/libraryChunks/themes/component/orange/Orange_Light_Component.js +0 -2
- package/es/DotProvider/libraryChunks/themes/component/orange/Orange_PureDark_Component.js +0 -2
- package/es/DotProvider/libraryChunks/themes/component/red/Red_Dark_Component.js +0 -2
- package/es/DotProvider/libraryChunks/themes/component/red/Red_Light_Component.js +0 -2
- package/es/DotProvider/libraryChunks/themes/component/red/Red_PureDark_Component.js +0 -2
- package/es/DotProvider/libraryChunks/themes/component/yellow/Yellow_Dark_Component.js +0 -2
- package/es/DotProvider/libraryChunks/themes/component/yellow/Yellow_Light_Component.js +0 -2
- package/es/DotProvider/libraryChunks/themes/component/yellow/Yellow_PureDark_Component.js +0 -2
- package/es/DotProvider/libraryChunks/themes/variables/blue/Blue_Dark_Variables.js +2 -0
- package/es/DotProvider/libraryChunks/themes/variables/blue/Blue_Light_Variables.js +2 -0
- package/es/DotProvider/libraryChunks/themes/variables/blue/Blue_PureDark_Variables.js +2 -0
- package/es/DotProvider/libraryChunks/themes/variables/green/Green_Dark_Variables.js +2 -0
- package/es/DotProvider/libraryChunks/themes/variables/green/Green_Light_Variables.js +2 -0
- package/es/DotProvider/libraryChunks/themes/variables/green/Green_PureDark_Variables.js +2 -0
- package/es/DotProvider/libraryChunks/themes/variables/orange/Orange_Dark_Variables.js +2 -0
- package/es/DotProvider/libraryChunks/themes/variables/orange/Orange_Light_Variables.js +2 -0
- package/es/DotProvider/libraryChunks/themes/variables/orange/Orange_PureDark_Variables.js +2 -0
- package/es/DotProvider/libraryChunks/themes/variables/red/Red_Dark_Variables.js +2 -0
- package/es/DotProvider/libraryChunks/themes/variables/red/Red_Light_Variables.js +2 -0
- package/es/DotProvider/libraryChunks/themes/variables/red/Red_PureDark_Variables.js +2 -0
- package/es/DotProvider/libraryChunks/themes/variables/yellow/Yellow_Dark_Variables.js +2 -0
- package/es/DotProvider/libraryChunks/themes/variables/yellow/Yellow_Light_Variables.js +2 -0
- package/es/DotProvider/libraryChunks/themes/variables/yellow/Yellow_PureDark_Variables.js +2 -0
- package/es/DotProvider/utils/constants.js +2 -1
- package/es/DotProvider/utils/themeAppearanceAssetsConfig.js +15 -1
- package/es/DotProvider/utils/themeColorAssetsConfig.js +73 -1
- package/es/Image/Image.module.css +2 -2
- package/es/Onboarding/css/Onboarding.module.css +1 -1
- package/es/Separator/Separator.module.css +5 -5
- package/es/TagWithIcon/TagWithIcon.module.css +3 -3
- package/es/Upload/Upload.module.css +31 -2
- package/es/form/fields/Fields.module.css +73 -17
- package/es/form/fields/TextEditor/TextEditor.module.css +1 -1
- package/es/list/GridStencils/GridStencils.module.css +12 -2
- package/es/list/TagNew/TagNew.module.css +1 -1
- package/es/list/status/StatusListItem/StatusListItem.module.css +2 -2
- package/es/lookup/Lookup/Lookup.js +4 -6
- package/es/lookup/Lookup/__tests__/Lookup.spec.js +4 -101
- package/es/lookup/Lookup/__tests__/__snapshots__/Lookup.spec.js.snap +2 -223
- package/es/lookup/Lookup/props/propTypes.js +1 -6
- package/es/lookup/header/ModuleHeader/ModuleHeader.js +5 -12
- package/es/lookup/header/ModuleHeader/__tests__/ModuleHeader.spec.js +3 -87
- package/es/lookup/header/ModuleHeader/props/defaultProps.js +0 -2
- package/es/lookup/header/ModuleHeader/props/propTypes.js +0 -6
- package/es/version2/AlertClose/AlertClose.module.css +1 -1
- package/es/version2/GlobalNotification/GlobalNotification.module.css +1 -1
- package/es/version2/lookup/AlertHeader/AlertHeader.js +9 -19
- package/es/version2/lookup/AlertHeader/__tests__/AlertHeader.spec.js +3 -122
- package/es/version2/lookup/AlertHeader/__tests__/__snapshots__/AlertHeader.spec.js.snap +3 -1728
- package/es/version2/lookup/AlertHeader/css/cssJSLogic.js +1 -6
- package/es/version2/lookup/AlertHeader/props/defaultProps.js +0 -2
- package/es/version2/lookup/AlertHeader/props/propTypes.js +0 -10
- package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +8 -2
- package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +2 -2
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +3 -2
- package/lib/ActionButton/ActionButton.js +18 -9
- package/lib/ActionButton/props/defaultProps.js +2 -1
- package/lib/ActionButton/props/propTypes.js +4 -1
- package/lib/Attachment/Attachment.module.css +3 -3
- package/lib/DotProvider/hooks/useDotProvider.js +3 -3
- package/lib/DotProvider/libraryChunks/appearance/variables/Dark_Variables.js +3 -0
- package/lib/DotProvider/libraryChunks/appearance/variables/Light_Variables.js +3 -0
- package/lib/DotProvider/libraryChunks/appearance/variables/PureDark_Variables.js +3 -0
- package/lib/DotProvider/libraryChunks/themes/component/blue/Blue_Dark_Component.js +0 -4
- package/lib/DotProvider/libraryChunks/themes/component/blue/Blue_Light_Component.js +0 -4
- package/lib/DotProvider/libraryChunks/themes/component/blue/Blue_PureDark_Component.js +0 -4
- package/lib/DotProvider/libraryChunks/themes/component/green/Green_Dark_Component.js +0 -4
- package/lib/DotProvider/libraryChunks/themes/component/green/Green_Light_Component.js +0 -4
- package/lib/DotProvider/libraryChunks/themes/component/green/Green_PureDark_Component.js +0 -4
- package/lib/DotProvider/libraryChunks/themes/component/orange/Orange_Dark_Component.js +0 -4
- package/lib/DotProvider/libraryChunks/themes/component/orange/Orange_Light_Component.js +0 -4
- package/lib/DotProvider/libraryChunks/themes/component/orange/Orange_PureDark_Component.js +0 -4
- package/lib/DotProvider/libraryChunks/themes/component/red/Red_Dark_Component.js +0 -4
- package/lib/DotProvider/libraryChunks/themes/component/red/Red_Light_Component.js +0 -4
- package/lib/DotProvider/libraryChunks/themes/component/red/Red_PureDark_Component.js +0 -4
- package/lib/DotProvider/libraryChunks/themes/component/yellow/Yellow_Dark_Component.js +0 -4
- package/lib/DotProvider/libraryChunks/themes/component/yellow/Yellow_Light_Component.js +0 -4
- package/lib/DotProvider/libraryChunks/themes/component/yellow/Yellow_PureDark_Component.js +0 -4
- package/lib/DotProvider/libraryChunks/themes/variables/blue/Blue_Dark_Variables.js +5 -0
- package/lib/DotProvider/libraryChunks/themes/variables/blue/Blue_Light_Variables.js +5 -0
- package/lib/DotProvider/libraryChunks/themes/variables/blue/Blue_PureDark_Variables.js +5 -0
- package/lib/DotProvider/libraryChunks/themes/variables/green/Green_Dark_Variables.js +5 -0
- package/lib/DotProvider/libraryChunks/themes/variables/green/Green_Light_Variables.js +5 -0
- package/lib/DotProvider/libraryChunks/themes/variables/green/Green_PureDark_Variables.js +5 -0
- package/lib/DotProvider/libraryChunks/themes/variables/orange/Orange_Dark_Variables.js +5 -0
- package/lib/DotProvider/libraryChunks/themes/variables/orange/Orange_Light_Variables.js +5 -0
- package/lib/DotProvider/libraryChunks/themes/variables/orange/Orange_PureDark_Variables.js +5 -0
- package/lib/DotProvider/libraryChunks/themes/variables/red/Red_Dark_Variables.js +5 -0
- package/lib/DotProvider/libraryChunks/themes/variables/red/Red_Light_Variables.js +5 -0
- package/lib/DotProvider/libraryChunks/themes/variables/red/Red_PureDark_Variables.js +5 -0
- package/lib/DotProvider/libraryChunks/themes/variables/yellow/Yellow_Dark_Variables.js +5 -0
- package/lib/DotProvider/libraryChunks/themes/variables/yellow/Yellow_Light_Variables.js +5 -0
- package/lib/DotProvider/libraryChunks/themes/variables/yellow/Yellow_PureDark_Variables.js +5 -0
- package/lib/DotProvider/utils/constants.js +4 -2
- package/lib/DotProvider/utils/themeAppearanceAssetsConfig.js +17 -2
- package/lib/DotProvider/utils/themeColorAssetsConfig.js +77 -2
- package/lib/Image/Image.module.css +2 -2
- package/lib/Onboarding/css/Onboarding.module.css +1 -1
- package/lib/Separator/Separator.module.css +5 -5
- package/lib/TagWithIcon/TagWithIcon.module.css +3 -3
- package/lib/Upload/Upload.module.css +31 -2
- package/lib/form/fields/Fields.module.css +73 -17
- package/lib/form/fields/TextEditor/TextEditor.module.css +1 -1
- package/lib/list/GridStencils/GridStencils.module.css +12 -2
- package/lib/list/TagNew/TagNew.module.css +1 -1
- package/lib/list/status/StatusListItem/StatusListItem.module.css +2 -2
- package/lib/lookup/Lookup/Lookup.js +4 -6
- package/lib/lookup/Lookup/__tests__/Lookup.spec.js +4 -101
- package/lib/lookup/Lookup/__tests__/__snapshots__/Lookup.spec.js.snap +2 -223
- package/lib/lookup/Lookup/props/propTypes.js +1 -8
- package/lib/lookup/header/ModuleHeader/ModuleHeader.js +5 -13
- package/lib/lookup/header/ModuleHeader/__tests__/ModuleHeader.spec.js +2 -86
- package/lib/lookup/header/ModuleHeader/props/defaultProps.js +0 -2
- package/lib/lookup/header/ModuleHeader/props/propTypes.js +0 -6
- package/lib/version2/AlertClose/AlertClose.module.css +1 -1
- package/lib/version2/GlobalNotification/GlobalNotification.module.css +1 -1
- package/lib/version2/lookup/AlertHeader/AlertHeader.js +8 -19
- package/lib/version2/lookup/AlertHeader/__tests__/AlertHeader.spec.js +2 -121
- package/lib/version2/lookup/AlertHeader/__tests__/__snapshots__/AlertHeader.spec.js.snap +3 -1728
- package/lib/version2/lookup/AlertHeader/css/cssJSLogic.js +2 -4
- package/lib/version2/lookup/AlertHeader/props/defaultProps.js +0 -2
- package/lib/version2/lookup/AlertHeader/props/propTypes.js +0 -10
- package/lib/version2/lookup/AlertLookup/AlertLookupNew.module.css +8 -2
- package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +2 -2
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +3 -2
- package/package.json +17 -14
- package/_react-cli.config.js +0 -27
package/README.md
CHANGED
|
@@ -2,15 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
In this Library, we Provide Some Basic Components to Build Your Application
|
|
4
4
|
|
|
5
|
+
# 1.9.9
|
|
6
|
+
|
|
7
|
+
- PX to variable conversion was not applied due to the CBT migration. The issue has now been fixed.
|
|
5
8
|
|
|
6
9
|
# 1.9.8
|
|
7
10
|
|
|
8
|
-
- **
|
|
9
|
-
|
|
10
|
-
- **ModuleHeader**
|
|
11
|
-
- `isDraggable`, `customClass` - Props supported
|
|
12
|
-
- **version2/AlertHeader**
|
|
13
|
-
- `isDraggable`, `customClass`, `renderCustomIcon`, `renderSecondaryContent`, `renderRightActions` - Props supported
|
|
11
|
+
- **DotProvider** - Variables package handled and separated the component & variable import files
|
|
12
|
+
- **Dependency**: @zohodesk/variables@1.3.0 , @zohodesk/components@1.6.6
|
|
14
13
|
|
|
15
14
|
# 1.9.7
|
|
16
15
|
|
|
@@ -1,3 +1,5 @@
|
|
|
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
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import { defaultProps } from "./props/defaultProps";
|
|
3
5
|
import { propTypes } from "./props/propTypes";
|
|
@@ -7,13 +9,16 @@ import Button from '@zohodesk/components/es/Button/Button';
|
|
|
7
9
|
import { Container, Box } from '@zohodesk/components/es/Layout';
|
|
8
10
|
import ResponsiveDropBox from '@zohodesk/components/es/ResponsiveDropBox/ResponsiveDropBox';
|
|
9
11
|
import CssProvider from '@zohodesk/components/es/Provider/CssProvider';
|
|
12
|
+
import { getUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
|
|
10
13
|
import style from "./ActionButton.module.css";
|
|
11
14
|
import btnStyle from '@zohodesk/components/es/semantic/Button/semanticButton.module.css';
|
|
12
15
|
export class ActionButton extends React.Component {
|
|
13
16
|
constructor(props) {
|
|
14
17
|
super(props);
|
|
18
|
+
this.getElementId = getUniqueId(this);
|
|
15
19
|
this.handleTogglePopup = this.handleTogglePopup.bind(this);
|
|
16
20
|
this.handlePopupOpen = this.handlePopupOpen.bind(this);
|
|
21
|
+
this.popupId = this.getElementId();
|
|
17
22
|
}
|
|
18
23
|
|
|
19
24
|
handlePopupOpen(e) {
|
|
@@ -64,8 +69,12 @@ export class ActionButton extends React.Component {
|
|
|
64
69
|
isAbsolutePositioningNeeded,
|
|
65
70
|
isRestrictScroll,
|
|
66
71
|
positionsOffset,
|
|
67
|
-
targetOffset
|
|
72
|
+
targetOffset,
|
|
73
|
+
a11yAttributes
|
|
68
74
|
} = this.props;
|
|
75
|
+
const {
|
|
76
|
+
splitButton: a11yAttributes_splitButton
|
|
77
|
+
} = a11yAttributes;
|
|
69
78
|
return /*#__PURE__*/React.createElement(Container, {
|
|
70
79
|
alignBox: "row",
|
|
71
80
|
isCover: false,
|
|
@@ -92,8 +101,7 @@ export class ActionButton extends React.Component {
|
|
|
92
101
|
dataId: dataId,
|
|
93
102
|
className: `${btnStyle.buttonReset} ${style.contentBox} ${style[palette + 'Btn']} ${style[size + '_btnBox']} ${children ? style.contentBoxBdr : style.contentBoxBdrRds} ${style.clickable} ${innerClassName} `,
|
|
94
103
|
"data-title": dataTitle,
|
|
95
|
-
tagName: "button"
|
|
96
|
-
tabIndex: "0"
|
|
104
|
+
tagName: "button"
|
|
97
105
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
98
106
|
align: "both"
|
|
99
107
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
@@ -113,22 +121,23 @@ export class ActionButton extends React.Component {
|
|
|
113
121
|
}, text) : null)), subText ? /*#__PURE__*/React.createElement(Box, {
|
|
114
122
|
"data-title": removeChildrenTooltip ? null : subText,
|
|
115
123
|
className: style.subTxt
|
|
116
|
-
}, subText) : null)), children ? /*#__PURE__*/React.createElement(Box, {
|
|
124
|
+
}, subText) : null)), children ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, _extends({}, a11yAttributes_splitButton, {
|
|
117
125
|
onClick: onClick && !onHover ? this.handleTogglePopup : this.handlePopupOpen,
|
|
118
126
|
onMouseEnter: onClick ? onHover && this.handleTogglePopup : undefined,
|
|
119
127
|
onMouseLeave: onClick ? onHover && this.handleTogglePopup : undefined,
|
|
120
128
|
className: `${btnStyle.buttonReset} ${style[arrowBoxSize + '_arrowBox']} ${style[palette + 'Arw']} ${style.arrowWrapper} ${isPopupOpen ? style.arrowActive : ''}`,
|
|
121
129
|
dataId: `${dataId}_arrowButton`,
|
|
122
|
-
tabIndex: "0",
|
|
123
130
|
tagName: "button",
|
|
124
|
-
dataSelectorId: `${dataSelectorId}_arrowButton
|
|
125
|
-
|
|
131
|
+
dataSelectorId: `${dataSelectorId}_arrowButton`,
|
|
132
|
+
"aria-expanded": isPopupOpen,
|
|
133
|
+
"aria-controls": this.popupId
|
|
134
|
+
}), /*#__PURE__*/React.createElement(Container, {
|
|
126
135
|
align: "both"
|
|
127
136
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
128
137
|
name: "ZD-down",
|
|
129
138
|
size: "6",
|
|
130
139
|
iconClass: style.arrow
|
|
131
|
-
})), isPopupOpen ? /*#__PURE__*/React.createElement(ResponsiveDropBox, {
|
|
140
|
+
}))), isPopupOpen ? /*#__PURE__*/React.createElement(ResponsiveDropBox, {
|
|
132
141
|
size: "small",
|
|
133
142
|
isActive: isPopupOpen,
|
|
134
143
|
boxPosition: position,
|
|
@@ -146,7 +155,8 @@ export class ActionButton extends React.Component {
|
|
|
146
155
|
isAbsolutePositioningNeeded: isAbsolutePositioningNeeded,
|
|
147
156
|
isRestrictScroll: isRestrictScroll,
|
|
148
157
|
positionsOffset: positionsOffset,
|
|
149
|
-
targetOffset: targetOffset
|
|
158
|
+
targetOffset: targetOffset,
|
|
159
|
+
htmlId: this.popupId
|
|
150
160
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
151
161
|
flexible: true,
|
|
152
162
|
shrink: true,
|
|
@@ -33,5 +33,8 @@ export const propTypes = {
|
|
|
33
33
|
isAbsolutePositioningNeeded: PropTypes.bool,
|
|
34
34
|
isRestrictScroll: PropTypes.bool,
|
|
35
35
|
positionsOffset: PropTypes.object,
|
|
36
|
-
targetOffset: PropTypes.object
|
|
36
|
+
targetOffset: PropTypes.object,
|
|
37
|
+
a11yAttributes: PropTypes.shape({
|
|
38
|
+
splitButton: PropTypes.object
|
|
39
|
+
})
|
|
37
40
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useLayoutEffect } from 'react';
|
|
2
2
|
import useDownloadAssetsAndSetAttr from "./useDownloadAssetsAndSetAttr";
|
|
3
|
-
import '@zohodesk/
|
|
4
|
-
import '@zohodesk/
|
|
5
|
-
import '@zohodesk/
|
|
3
|
+
import '@zohodesk/variables/assets/Contrast/lightContrastLightness.module.css';
|
|
4
|
+
import '@zohodesk/variables/assets/Contrast/darkContrastLightness.module.css';
|
|
5
|
+
import '@zohodesk/variables/assets/Contrast/pureDarkContrastLightness.module.css';
|
|
6
6
|
import '@zohodesk/variables/assets/colorVariables.module.css';
|
|
7
7
|
import '@zohodesk/variables/assets/dotVariables.module.css';
|
|
8
8
|
import '@zohodesk/components/es/common/basic.module.css';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@zohodesk/variables/assets/Appearance/dark/mode/globalTokens_DarkMode.module.css';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@zohodesk/variables/assets/Appearance/light/mode/globalTokens_LightMode.module.css';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@zohodesk/variables/assets/Appearance/pureDark/mode/globalTokens_PureDarkMode.module.css';
|
|
@@ -1,3 +1 @@
|
|
|
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
1
|
import '@zohodesk/components/assets/Appearance/dark/themes/blue/blue_ComponentTheme_DarkTheme.module.css';
|
|
@@ -1,3 +1 @@
|
|
|
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
1
|
import '@zohodesk/components/assets/Appearance/light/themes/blue/blue_ComponentTheme_LightTheme.module.css';
|
|
@@ -1,3 +1 @@
|
|
|
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
1
|
import '@zohodesk/components/assets/Appearance/pureDark/themes/blue/blue_ComponentTheme_PureDarkTheme.module.css';
|
|
@@ -1,3 +1 @@
|
|
|
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
1
|
import '@zohodesk/components/assets/Appearance/dark/themes/green/green_ComponentTheme_DarkTheme.module.css';
|
|
@@ -1,3 +1 @@
|
|
|
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
1
|
import '@zohodesk/components/assets/Appearance/light/themes/green/green_ComponentTheme_LightTheme.module.css';
|
|
@@ -1,3 +1 @@
|
|
|
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
1
|
import '@zohodesk/components/assets/Appearance/pureDark/themes/green/green_ComponentTheme_PureDarkTheme.module.css';
|
|
@@ -1,3 +1 @@
|
|
|
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
1
|
import '@zohodesk/components/assets/Appearance/dark/themes/orange/orange_ComponentTheme_DarkTheme.module.css';
|
|
@@ -1,3 +1 @@
|
|
|
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
1
|
import '@zohodesk/components/assets/Appearance/light/themes/orange/orange_ComponentTheme_LightTheme.module.css';
|
|
@@ -1,3 +1 @@
|
|
|
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
1
|
import '@zohodesk/components/assets/Appearance/pureDark/themes/orange/orange_ComponentTheme_PureDarkTheme.module.css';
|
|
@@ -1,3 +1 @@
|
|
|
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
1
|
import '@zohodesk/components/assets/Appearance/dark/themes/red/red_ComponentTheme_DarkTheme.module.css';
|
|
@@ -1,3 +1 @@
|
|
|
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
1
|
import '@zohodesk/components/assets/Appearance/light/themes/red/red_ComponentTheme_LightTheme.module.css';
|
|
@@ -1,3 +1 @@
|
|
|
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
1
|
import '@zohodesk/components/assets/Appearance/pureDark/themes/red/red_ComponentTheme_PureDarkTheme.module.css';
|
|
@@ -1,3 +1 @@
|
|
|
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
1
|
import '@zohodesk/components/assets/Appearance/dark/themes/yellow/yellow_ComponentTheme_DarkTheme.module.css';
|
|
@@ -1,3 +1 @@
|
|
|
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
1
|
import '@zohodesk/components/assets/Appearance/light/themes/yellow/yellow_ComponentTheme_LightTheme.module.css';
|
|
@@ -1,3 +1 @@
|
|
|
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
1
|
import '@zohodesk/components/assets/Appearance/pureDark/themes/yellow/yellow_ComponentTheme_PureDarkTheme.module.css';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export const LIBRARY_VARIABLES = 'variables';
|
|
1
2
|
export const LIBRARY_COMPONENT = 'component';
|
|
2
3
|
export const LIBRARY_DOT = 'dot';
|
|
3
4
|
export const LIBRARY_SVG = 'svg';
|
|
@@ -9,6 +10,6 @@ export const THEME_COLOR_GREEN = 'green';
|
|
|
9
10
|
export const THEME_COLOR_ORANGE = 'orange';
|
|
10
11
|
export const THEME_COLOR_RED = 'red';
|
|
11
12
|
export const THEME_COLOR_YELLOW = 'yellow';
|
|
12
|
-
export const LIBRARIES = [LIBRARY_COMPONENT, LIBRARY_DOT, LIBRARY_SVG];
|
|
13
|
+
export const LIBRARIES = [LIBRARY_VARIABLES, LIBRARY_COMPONENT, LIBRARY_DOT, LIBRARY_SVG];
|
|
13
14
|
export const THEME_APPEARANCES = [THEME_APPEARANCE_LIGHT, THEME_APPEARANCE_DARK, THEME_APPEARANCE_PURE_DARK];
|
|
14
15
|
export const THEME_COLORS = [THEME_COLOR_BLUE, THEME_COLOR_GREEN, THEME_COLOR_ORANGE, THEME_COLOR_RED, THEME_COLOR_YELLOW];
|
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
import { LIBRARY_COMPONENT, LIBRARY_DOT, LIBRARY_SVG, THEME_APPEARANCE_DARK, THEME_APPEARANCE_LIGHT, THEME_APPEARANCE_PURE_DARK } from "./constants";
|
|
1
|
+
import { LIBRARY_VARIABLES, LIBRARY_COMPONENT, LIBRARY_DOT, LIBRARY_SVG, THEME_APPEARANCE_DARK, THEME_APPEARANCE_LIGHT, THEME_APPEARANCE_PURE_DARK } from "./constants";
|
|
2
2
|
export const themeAppearanceImports = {
|
|
3
|
+
Lib_LightMode_Variables: () => import(
|
|
4
|
+
/* webpackChunkName: 'Lib_LightMode_Variables' */
|
|
5
|
+
"../libraryChunks/appearance/variables/Light_Variables"),
|
|
6
|
+
Lib_DarkMode_Variables: () => import(
|
|
7
|
+
/* webpackChunkName: 'Lib_DarkMode_Variables' */
|
|
8
|
+
"../libraryChunks/appearance/variables/Dark_Variables"),
|
|
9
|
+
Lib_PureDarkMode_Variables: () => import(
|
|
10
|
+
/* webpackChunkName: 'Lib_PureDarkMode_Variables' */
|
|
11
|
+
"../libraryChunks/appearance/variables/PureDark_Variables"),
|
|
3
12
|
Lib_LightMode_Component: () => import(
|
|
4
13
|
/* webpackChunkName: 'Lib_LightMode_Component' */
|
|
5
14
|
"../libraryChunks/appearance/component/Light_Component"),
|
|
@@ -29,6 +38,11 @@ export const themeAppearanceImports = {
|
|
|
29
38
|
'@zohodesk/svg/assets/Appearance/pureDark/mode/SVG_PureDarkMode.module.css')
|
|
30
39
|
};
|
|
31
40
|
export const themeAppearanceMapping = {
|
|
41
|
+
[LIBRARY_VARIABLES]: {
|
|
42
|
+
[THEME_APPEARANCE_LIGHT]: 'Lib_LightMode_Variables',
|
|
43
|
+
[THEME_APPEARANCE_DARK]: 'Lib_DarkMode_Variables',
|
|
44
|
+
[THEME_APPEARANCE_PURE_DARK]: 'Lib_PureDarkMode_Variables'
|
|
45
|
+
},
|
|
32
46
|
[LIBRARY_COMPONENT]: {
|
|
33
47
|
[THEME_APPEARANCE_LIGHT]: 'Lib_LightMode_Component',
|
|
34
48
|
[THEME_APPEARANCE_DARK]: 'Lib_DarkMode_Component',
|
|
@@ -1,5 +1,50 @@
|
|
|
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";
|
|
1
|
+
import { LIBRARY_VARIABLES, 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
2
|
export const themeColorImports = {
|
|
3
|
+
Lib_Blue_Light_Variables: () => import(
|
|
4
|
+
/* webpackChunkName: 'Lib_Blue_Light_Variables' */
|
|
5
|
+
"../libraryChunks/themes/variables/blue/Blue_Light_Variables"),
|
|
6
|
+
Lib_Blue_Dark_Variables: () => import(
|
|
7
|
+
/* webpackChunkName: 'Lib_Blue_Dark_Variables' */
|
|
8
|
+
"../libraryChunks/themes/variables/blue/Blue_Dark_Variables"),
|
|
9
|
+
Lib_Blue_PureDark_Variables: () => import(
|
|
10
|
+
/* webpackChunkName: 'Lib_Blue_PureDark_Variables' */
|
|
11
|
+
"../libraryChunks/themes/variables/blue/Blue_PureDark_Variables"),
|
|
12
|
+
Lib_Green_Light_Variables: () => import(
|
|
13
|
+
/* webpackChunkName: 'Lib_Green_Light_Variables' */
|
|
14
|
+
"../libraryChunks/themes/variables/green/Green_Light_Variables"),
|
|
15
|
+
Lib_Green_Dark_Variables: () => import(
|
|
16
|
+
/* webpackChunkName: 'Lib_Green_Dark_Variables' */
|
|
17
|
+
"../libraryChunks/themes/variables/green/Green_Dark_Variables"),
|
|
18
|
+
Lib_Green_PureDark_Variables: () => import(
|
|
19
|
+
/* webpackChunkName: 'Lib_Green_PureDark_Variables' */
|
|
20
|
+
"../libraryChunks/themes/variables/green/Green_PureDark_Variables"),
|
|
21
|
+
Lib_Orange_Light_Variables: () => import(
|
|
22
|
+
/* webpackChunkName: 'Lib_Orange_Light_Variables' */
|
|
23
|
+
"../libraryChunks/themes/variables/orange/Orange_Light_Variables"),
|
|
24
|
+
Lib_Orange_Dark_Variables: () => import(
|
|
25
|
+
/* webpackChunkName: 'Lib_Orange_Dark_Variables' */
|
|
26
|
+
"../libraryChunks/themes/variables/orange/Orange_Dark_Variables"),
|
|
27
|
+
Lib_Orange_PureDark_Variables: () => import(
|
|
28
|
+
/* webpackChunkName: 'Lib_Orange_PureDark_Variables' */
|
|
29
|
+
"../libraryChunks/themes/variables/orange/Orange_PureDark_Variables"),
|
|
30
|
+
Lib_Red_Light_Variables: () => import(
|
|
31
|
+
/* webpackChunkName: 'Lib_Red_Light_Variables' */
|
|
32
|
+
"../libraryChunks/themes/variables/red/Red_Light_Variables"),
|
|
33
|
+
Lib_Red_Dark_Variables: () => import(
|
|
34
|
+
/* webpackChunkName: 'Lib_Red_Dark_Variables' */
|
|
35
|
+
"../libraryChunks/themes/variables/red/Red_Dark_Variables"),
|
|
36
|
+
Lib_Red_PureDark_Variables: () => import(
|
|
37
|
+
/* webpackChunkName: 'Lib_Red_PureDark_Variables' */
|
|
38
|
+
"../libraryChunks/themes/variables/red/Red_PureDark_Variables"),
|
|
39
|
+
Lib_Yellow_Light_Variables: () => import(
|
|
40
|
+
/* webpackChunkName: 'Lib_Yellow_Light_Variables' */
|
|
41
|
+
"../libraryChunks/themes/variables/yellow/Yellow_Light_Variables"),
|
|
42
|
+
Lib_Yellow_Dark_Variables: () => import(
|
|
43
|
+
/* webpackChunkName: 'Lib_Yellow_Dark_Variables' */
|
|
44
|
+
"../libraryChunks/themes/variables/yellow/Yellow_Dark_Variables"),
|
|
45
|
+
Lib_Yellow_PureDark_Variables: () => import(
|
|
46
|
+
/* webpackChunkName: 'Lib_Yellow_PureDark_Variables' */
|
|
47
|
+
"../libraryChunks/themes/variables/yellow/Yellow_PureDark_Variables"),
|
|
3
48
|
Lib_Blue_Light_Component: () => import(
|
|
4
49
|
/* webpackChunkName: 'Lib_Blue_Light_Component' */
|
|
5
50
|
"../libraryChunks/themes/component/blue/Blue_Light_Component"),
|
|
@@ -137,6 +182,33 @@ export const themeColorImports = {
|
|
|
137
182
|
"../libraryChunks/themes/svg/yellow/Yellow_PureDark_SVG")
|
|
138
183
|
};
|
|
139
184
|
export const themeColorMapping = {
|
|
185
|
+
[LIBRARY_VARIABLES]: {
|
|
186
|
+
[THEME_COLOR_BLUE]: {
|
|
187
|
+
[THEME_APPEARANCE_LIGHT]: 'Lib_Blue_Light_Variables',
|
|
188
|
+
[THEME_APPEARANCE_DARK]: 'Lib_Blue_Dark_Variables',
|
|
189
|
+
[THEME_APPEARANCE_PURE_DARK]: 'Lib_Blue_PureDark_Variables'
|
|
190
|
+
},
|
|
191
|
+
[THEME_COLOR_GREEN]: {
|
|
192
|
+
[THEME_APPEARANCE_LIGHT]: 'Lib_Green_Light_Variables',
|
|
193
|
+
[THEME_APPEARANCE_DARK]: 'Lib_Green_Dark_Variables',
|
|
194
|
+
[THEME_APPEARANCE_PURE_DARK]: 'Lib_Green_PureDark_Variables'
|
|
195
|
+
},
|
|
196
|
+
[THEME_COLOR_ORANGE]: {
|
|
197
|
+
[THEME_APPEARANCE_LIGHT]: 'Lib_Orange_Light_Variables',
|
|
198
|
+
[THEME_APPEARANCE_DARK]: 'Lib_Orange_Dark_Variables',
|
|
199
|
+
[THEME_APPEARANCE_PURE_DARK]: 'Lib_Orange_PureDark_Variables'
|
|
200
|
+
},
|
|
201
|
+
[THEME_COLOR_RED]: {
|
|
202
|
+
[THEME_APPEARANCE_LIGHT]: 'Lib_Red_Light_Variables',
|
|
203
|
+
[THEME_APPEARANCE_DARK]: 'Lib_Red_Dark_Variables',
|
|
204
|
+
[THEME_APPEARANCE_PURE_DARK]: 'Lib_Red_PureDark_Variables'
|
|
205
|
+
},
|
|
206
|
+
[THEME_COLOR_YELLOW]: {
|
|
207
|
+
[THEME_APPEARANCE_LIGHT]: 'Lib_Yellow_Light_Variables',
|
|
208
|
+
[THEME_APPEARANCE_DARK]: 'Lib_Yellow_Dark_Variables',
|
|
209
|
+
[THEME_APPEARANCE_PURE_DARK]: 'Lib_Yellow_PureDark_Variables'
|
|
210
|
+
}
|
|
211
|
+
},
|
|
140
212
|
[LIBRARY_COMPONENT]: {
|
|
141
213
|
[THEME_COLOR_BLUE]: {
|
|
142
214
|
[THEME_APPEARANCE_LIGHT]: 'Lib_Blue_Light_Component',
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
.varClass {
|
|
2
|
-
--separator_fontSize:
|
|
2
|
+
--separator_fontSize: var(--zd_font_size15);
|
|
3
3
|
}
|
|
4
4
|
.separator {
|
|
5
5
|
font-size: var(--separator_fontSize);
|
|
6
6
|
margin: 0 var(--zd_size5) ;
|
|
7
7
|
}
|
|
8
8
|
.dot {
|
|
9
|
-
--separator_fontSize:
|
|
9
|
+
--separator_fontSize: var(--zd_font_size8);
|
|
10
10
|
}
|
|
11
11
|
.slash {
|
|
12
|
-
--separator_fontSize:
|
|
12
|
+
--separator_fontSize: var(--zd_font_size10);
|
|
13
13
|
/* line-height: var(--zd_size10); */
|
|
14
14
|
}
|
|
15
15
|
.arrow {
|
|
16
|
-
--separator_fontSize:
|
|
16
|
+
--separator_fontSize: var(--zd_font_size8);
|
|
17
17
|
/* line-height: var(--zd_size7); */
|
|
18
18
|
}
|
|
19
19
|
.comma {
|
|
20
|
-
--separator_fontSize:
|
|
20
|
+
--separator_fontSize: var(--zd_font_size15);
|
|
21
21
|
/* line-height: var(--zd_size13); */
|
|
22
22
|
}
|
|
23
23
|
.none {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
--tag_bg_color: var(--zdt_tagWithIconGrey_bg);
|
|
3
3
|
--tag_text_color: var(--zdt_tagWithIconGrey_text);
|
|
4
4
|
--tag_border_color: var(--zdt_tagWithIconGrey_border);
|
|
5
|
-
--tag_small_fontSize:
|
|
6
|
-
--tag_large_fontSize:
|
|
5
|
+
--tag_small_fontSize: var(--zd_font_size10);
|
|
6
|
+
--tag_large_fontSize: var(--zd_font_size12);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.wrapper {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
.small, .large {
|
|
22
22
|
border: 1px solid var(--tag_border_color);
|
|
23
|
-
border-radius:
|
|
23
|
+
border-radius: 4px;
|
|
24
24
|
padding: 0 var(--zd_size6) ;
|
|
25
25
|
}
|
|
26
26
|
|