@zohodesk/dot 1.0.0-temp-52 → 1.0.0-temp-56
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 +12 -0
- package/es/Appearance/dark/mode/dotDarkMode.module.css +521 -537
- package/es/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +9 -9
- package/es/Appearance/dark/themes/green/greenDarkDotTheme.module.css +8 -8
- package/es/Appearance/dark/themes/orange/orangeDarkDotTheme.module.css +8 -8
- package/es/Appearance/dark/themes/red/redDarkDotTheme.module.css +8 -8
- package/es/Appearance/dark/themes/yellow/yellowDarkDotTheme.module.css +8 -8
- package/es/Appearance/default/mode/dotDefaultMode.module.css +521 -537
- package/es/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +9 -9
- package/es/Appearance/default/themes/green/greenDefaultDotTheme.module.css +8 -8
- package/es/Appearance/default/themes/orange/orangeDefaultDotTheme.module.css +8 -8
- package/es/Appearance/default/themes/red/redDefaultDotTheme.module.css +8 -8
- package/es/Appearance/default/themes/yellow/yellowDefaultDotTheme.module.css +8 -8
- package/es/FreezeLayer/docs/FreezeLayer__dark.docs.js +2 -2
- package/es/FreezeLayer/docs/FreezeLayer__default.docs.js +2 -2
- package/es/Loader/docs/Loader__default.docs.js +1 -1
- package/es/deprecated/SelectDropdown/SelectDropdown.module.css +6 -6
- package/es/form/fields/CheckBoxField/CheckBoxField.js +1 -1
- package/es/form/fields/CurrencyField/CurrencyField.js +2 -2
- package/es/form/fields/DateField/DateField.js +2 -2
- package/es/form/fields/Fields.module.css +7 -5
- package/es/form/fields/MultiSelectField/MultiSelectField.js +2 -2
- package/es/form/fields/RadioField/RadioField.js +2 -2
- package/es/form/fields/SelectField/SelectField.js +2 -2
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +5 -4
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +2 -2
- package/es/form/fields/TagsMultiSelectField/docs/TagsMultiSelectField__default.docs.js +1 -1
- package/es/form/fields/TextBoxField/TextBoxField.js +2 -2
- package/es/form/fields/TextEditor/TextEditor.js +1 -1
- package/es/form/fields/TextEditorField/TextEditorField.js +2 -2
- package/es/form/fields/TextEditorField/docs/TextEditorField__default.docs.js +1 -1
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.js +1 -1
- package/es/form/fields/TextareaField/TextareaField.js +2 -2
- package/es/form/layout/Section/Section.js +3 -7
- package/es/list/BluePrintStatus/BluePrintStatus.module.css +2 -2
- package/es/list/DotNew/DotNew.module.css +4 -4
- package/es/lookup/header/ModuleHeader/ModuleHeader.js +3 -8
- package/es/lookup/header/ModuleHeader/docs/ModuleHeader__default.docs.js +3 -13
- package/es/lookup/header/TicketHeader/TicketHeader.js +4 -7
- package/es/lookup/header/lookupHeaderCommon.module.css +0 -6
- package/es/version2/GlobalNotification/GlobalNotification.js +18 -6
- package/es/version2/notification/DesktopNotification/DesktopNotification.js +13 -5
- package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +4 -5
- package/lib/Appearance/dark/mode/dotDarkMode.module.css +521 -537
- package/lib/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +9 -9
- package/lib/Appearance/dark/themes/green/greenDarkDotTheme.module.css +8 -8
- package/lib/Appearance/dark/themes/orange/orangeDarkDotTheme.module.css +8 -8
- package/lib/Appearance/dark/themes/red/redDarkDotTheme.module.css +8 -8
- package/lib/Appearance/dark/themes/yellow/yellowDarkDotTheme.module.css +8 -8
- package/lib/Appearance/default/mode/dotDefaultMode.module.css +521 -537
- package/lib/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +9 -9
- package/lib/Appearance/default/themes/green/greenDefaultDotTheme.module.css +8 -8
- package/lib/Appearance/default/themes/orange/orangeDefaultDotTheme.module.css +8 -8
- package/lib/Appearance/default/themes/red/redDefaultDotTheme.module.css +8 -8
- package/lib/Appearance/default/themes/yellow/yellowDefaultDotTheme.module.css +8 -8
- package/lib/FreezeLayer/docs/FreezeLayer__dark.docs.js +2 -2
- package/lib/FreezeLayer/docs/FreezeLayer__default.docs.js +2 -2
- package/lib/Loader/docs/Loader__default.docs.js +1 -1
- package/lib/deprecated/SelectDropdown/SelectDropdown.module.css +6 -6
- package/lib/form/fields/CheckBoxField/CheckBoxField.js +1 -1
- package/lib/form/fields/CurrencyField/CurrencyField.js +2 -2
- package/lib/form/fields/DateField/DateField.js +2 -2
- package/lib/form/fields/Fields.module.css +7 -5
- package/lib/form/fields/MultiSelectField/MultiSelectField.js +2 -2
- package/lib/form/fields/RadioField/RadioField.js +2 -2
- package/lib/form/fields/SelectField/SelectField.js +2 -2
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +5 -4
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +2 -2
- package/lib/form/fields/TagsMultiSelectField/docs/TagsMultiSelectField__default.docs.js +1 -1
- package/lib/form/fields/TextBoxField/TextBoxField.js +2 -2
- package/lib/form/fields/TextEditor/TextEditor.js +1 -1
- package/lib/form/fields/TextEditorField/TextEditorField.js +2 -2
- package/lib/form/fields/TextEditorField/docs/TextEditorField__default.docs.js +1 -1
- package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.js +1 -1
- package/lib/form/fields/TextareaField/TextareaField.js +2 -2
- package/lib/form/layout/Section/Section.js +3 -7
- package/lib/list/BluePrintStatus/BluePrintStatus.module.css +2 -2
- package/lib/list/DotNew/DotNew.module.css +4 -4
- package/lib/lookup/header/ModuleHeader/ModuleHeader.js +3 -8
- package/lib/lookup/header/ModuleHeader/docs/ModuleHeader__default.docs.js +3 -13
- package/lib/lookup/header/TicketHeader/TicketHeader.js +4 -7
- package/lib/lookup/header/lookupHeaderCommon.module.css +0 -6
- package/lib/version2/GlobalNotification/GlobalNotification.js +18 -6
- package/lib/version2/notification/DesktopNotification/DesktopNotification.js +13 -5
- package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +4 -5
- package/package.json +12 -8
- package/preprocess/dotAppearanceColors.js +71 -0
- package/preprocess/dotThemeColors.js +98 -0
- package/preprocess/index.js +2 -0
- package/preprocess/json/dotAppearanceVariableJson.js +1908 -0
- package/preprocess/json/dotThemeVariableJson.js +90 -0
- package/src/Appearance/dark/mode/dotDarkMode.module.css +521 -537
- package/src/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +9 -9
- package/src/Appearance/dark/themes/green/greenDarkDotTheme.module.css +8 -8
- package/src/Appearance/dark/themes/orange/orangeDarkDotTheme.module.css +8 -8
- package/src/Appearance/dark/themes/red/redDarkDotTheme.module.css +8 -8
- package/src/Appearance/dark/themes/yellow/yellowDarkDotTheme.module.css +8 -8
- package/src/Appearance/default/mode/dotDefaultMode.module.css +521 -537
- package/src/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +9 -9
- package/src/Appearance/default/themes/green/greenDefaultDotTheme.module.css +8 -8
- package/src/Appearance/default/themes/orange/orangeDefaultDotTheme.module.css +8 -8
- package/src/Appearance/default/themes/red/redDefaultDotTheme.module.css +8 -8
- package/src/Appearance/default/themes/yellow/yellowDefaultDotTheme.module.css +8 -8
- package/src/FreezeLayer/docs/FreezeLayer__dark.docs.js +2 -2
- package/src/FreezeLayer/docs/FreezeLayer__default.docs.js +2 -2
- package/src/Loader/docs/Loader__default.docs.js +1 -1
- package/src/deprecated/SelectDropdown/SelectDropdown.module.css +6 -6
- package/src/form/fields/CheckBoxField/CheckBoxField.js +7 -1
- package/src/form/fields/CurrencyField/CurrencyField.js +8 -2
- package/src/form/fields/DateField/DateField.js +8 -2
- package/src/form/fields/Fields.module.css +8 -5
- package/src/form/fields/MultiSelectField/MultiSelectField.js +8 -2
- package/src/form/fields/RadioField/RadioField.js +8 -2
- package/src/form/fields/SelectField/SelectField.js +8 -2
- package/src/form/fields/TagsMultiSelect/TagsMultiSelect.js +5 -4
- package/src/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +10 -2
- package/src/form/fields/TagsMultiSelectField/docs/TagsMultiSelectField__default.docs.js +1 -1
- package/src/form/fields/TextBoxField/TextBoxField.js +8 -2
- package/src/form/fields/TextEditor/TextEditor.js +1 -1
- package/src/form/fields/TextEditorField/TextEditorField.js +10 -2
- package/src/form/fields/TextEditorField/docs/TextEditorField__default.docs.js +1 -1
- package/src/form/fields/TextEditorWrapper/TextEditorWrapper.js +1 -1
- package/src/form/fields/TextareaField/TextareaField.js +8 -2
- package/src/form/layout/Section/Section.js +10 -14
- package/src/list/BluePrintStatus/BluePrintStatus.module.css +2 -2
- package/src/list/DotNew/DotNew.module.css +4 -4
- package/src/lookup/header/ModuleHeader/ModuleHeader.js +3 -9
- package/src/lookup/header/ModuleHeader/docs/ModuleHeader__default.docs.js +8 -21
- package/src/lookup/header/TicketHeader/TicketHeader.js +4 -7
- package/src/lookup/header/lookupHeaderCommon.module.css +0 -6
- package/src/version2/GlobalNotification/GlobalNotification.js +12 -4
- package/src/version2/notification/DesktopNotification/DesktopNotification.js +10 -3
- package/src/version2/notification/DesktopNotification/DesktopNotification.module.css +4 -5
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
[data-mode='default'][data-theme='blue'] {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
[data-mode='default'][data-theme='blue'], :global(.blueDefaultTheme) [data-desk-theme="blue"] {
|
|
2
|
+
/* freezelayer */
|
|
3
|
+
--zdt_freezelayer_darklight_bg: rgba(44, 51, 77, 0.94);
|
|
4
|
+
|
|
5
|
+
/* common empty state */
|
|
6
|
+
--zdt_commonEmptyState_dark_title: var(--dot_white);
|
|
7
|
+
--zdt_commonEmptyState_dark_description: var(--dot_white);
|
|
8
|
+
--zdt_commonEmptyState_dark_link: #6cbbfc;
|
|
9
|
+
--zdt_commonEmptyState_dark_link_hover: #2469ff;
|
|
10
10
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[data-mode='default'][data-theme='green'] {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
/* freezelayer */
|
|
3
|
+
--zdt_freezelayer_darklight_bg: rgba(15, 34, 38, 0.94);
|
|
4
|
+
|
|
5
|
+
/* common empty state */
|
|
6
|
+
--zdt_commonEmptyState_dark_title: var(--dot_white);
|
|
7
|
+
--zdt_commonEmptyState_dark_description: var(--dot_white);
|
|
8
|
+
--zdt_commonEmptyState_dark_link: #4ac064;
|
|
9
|
+
--zdt_commonEmptyState_dark_link_hover: #0e7526;
|
|
10
10
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[data-mode='default'][data-theme='orange'] {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
/* freezelayer */
|
|
3
|
+
--zdt_freezelayer_darklight_bg: rgba(36, 30, 19, 0.94);
|
|
4
|
+
|
|
5
|
+
/* common empty state */
|
|
6
|
+
--zdt_commonEmptyState_dark_title: var(--dot_white);
|
|
7
|
+
--zdt_commonEmptyState_dark_description: var(--dot_white);
|
|
8
|
+
--zdt_commonEmptyState_dark_link: #e57717;
|
|
9
|
+
--zdt_commonEmptyState_dark_link_hover: #b25900;
|
|
10
10
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[data-mode='default'][data-theme='red'] {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
/* freezelayer */
|
|
3
|
+
--zdt_freezelayer_darklight_bg: rgba(34, 15, 27, 0.94);
|
|
4
|
+
|
|
5
|
+
/* common empty state */
|
|
6
|
+
--zdt_commonEmptyState_dark_title: var(--dot_white);
|
|
7
|
+
--zdt_commonEmptyState_dark_description: var(--dot_white);
|
|
8
|
+
--zdt_commonEmptyState_dark_link: #ff6363;
|
|
9
|
+
--zdt_commonEmptyState_dark_link_hover: #ab1a18;
|
|
10
10
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[data-mode='default'][data-theme='yellow'] {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
/* freezelayer */
|
|
3
|
+
--zdt_freezelayer_darklight_bg: rgba(34, 36, 18, 0.94);
|
|
4
|
+
|
|
5
|
+
/* common empty state */
|
|
6
|
+
--zdt_commonEmptyState_dark_title: var(--dot_white);
|
|
7
|
+
--zdt_commonEmptyState_dark_description: var(--dot_white);
|
|
8
|
+
--zdt_commonEmptyState_dark_link: #e8b923;
|
|
9
|
+
--zdt_commonEmptyState_dark_link_hover: #b59100;
|
|
10
10
|
}
|
|
@@ -32,10 +32,10 @@ export default class FreezeLayer__dark extends Component {
|
|
|
32
32
|
>
|
|
33
33
|
<div
|
|
34
34
|
style={{
|
|
35
|
-
color: 'var(--
|
|
35
|
+
color: 'var(--dot_black)',
|
|
36
36
|
fontSize: '40px',
|
|
37
37
|
padding: '100px',
|
|
38
|
-
background: 'var(--
|
|
38
|
+
background: 'var(--dot_white)'
|
|
39
39
|
}}
|
|
40
40
|
>
|
|
41
41
|
Im children
|
|
@@ -30,10 +30,10 @@ export default class FreezeLayer__default extends Component {
|
|
|
30
30
|
>
|
|
31
31
|
<span
|
|
32
32
|
style={{
|
|
33
|
-
color: 'var(--
|
|
33
|
+
color: 'var(--dot_black)',
|
|
34
34
|
fontSize: '40px',
|
|
35
35
|
padding: '100px',
|
|
36
|
-
background: 'var(--
|
|
36
|
+
background: 'var(--dot_white)'
|
|
37
37
|
}}
|
|
38
38
|
>
|
|
39
39
|
Im children
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
/* select dropdown */
|
|
36
36
|
|
|
37
37
|
[data-mode='dark'] {
|
|
38
|
-
--zdt_selectdropdown_hover_bg: var(--
|
|
39
|
-
--zdt_selectdropdown_departname_text: var(--
|
|
40
|
-
--zdt_selectdropdown_departicon: var(--
|
|
38
|
+
--zdt_selectdropdown_hover_bg: var(--dot_smoke64);
|
|
39
|
+
--zdt_selectdropdown_departname_text: var(--zd_dark4);
|
|
40
|
+
--zdt_selectdropdown_departicon: var(--zd_dark5);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
[data-mode='default'] {
|
|
44
|
-
--zdt_selectdropdown_hover_bg: var(--
|
|
45
|
-
--zdt_selectdropdown_departname_text: var(--
|
|
46
|
-
--zdt_selectdropdown_departicon: var(--
|
|
44
|
+
--zdt_selectdropdown_hover_bg: var(--dot_smoke64);
|
|
45
|
+
--zdt_selectdropdown_departname_text: var(--zd_dark4);
|
|
46
|
+
--zdt_selectdropdown_departicon: var(--zd_dark5);
|
|
47
47
|
}
|
|
@@ -118,7 +118,13 @@ export default class CheckBoxField extends PureComponent {
|
|
|
118
118
|
);
|
|
119
119
|
return (
|
|
120
120
|
<div
|
|
121
|
-
className={`${style.container} ${
|
|
121
|
+
className={`${style.container} ${
|
|
122
|
+
isDisabled
|
|
123
|
+
? style.disabled
|
|
124
|
+
: isReadOnly
|
|
125
|
+
? style.readonly
|
|
126
|
+
: ''
|
|
127
|
+
}`}
|
|
122
128
|
data-title={isDisabled ? title : ''}
|
|
123
129
|
>
|
|
124
130
|
{isDirectCol && labelElement}
|
|
@@ -101,7 +101,13 @@ export default class CurrencyField extends PureComponent {
|
|
|
101
101
|
|
|
102
102
|
return (
|
|
103
103
|
<div
|
|
104
|
-
className={`${style.container} ${
|
|
104
|
+
className={`${style.container} ${
|
|
105
|
+
isDisabled
|
|
106
|
+
? style.disabled
|
|
107
|
+
: isReadOnly
|
|
108
|
+
? style.readonly
|
|
109
|
+
: ''
|
|
110
|
+
}`}
|
|
105
111
|
data-title={isDisabled ? title : ''}
|
|
106
112
|
>
|
|
107
113
|
{labelName && (
|
|
@@ -116,7 +122,7 @@ export default class CurrencyField extends PureComponent {
|
|
|
116
122
|
? 'primary'
|
|
117
123
|
: labelPalette
|
|
118
124
|
}
|
|
119
|
-
customClass={`${labelCustomClass} ${
|
|
125
|
+
customClass={`${style.fieldLabel} ${labelCustomClass} ${
|
|
120
126
|
isMandatory ? style.labelMandatory : ''
|
|
121
127
|
}`}
|
|
122
128
|
htmlFor={uniqueId}
|
|
@@ -106,7 +106,13 @@ export default class DateField extends PureComponent {
|
|
|
106
106
|
let getAriaId = htmlId ? htmlId : this.getNextId();
|
|
107
107
|
return (
|
|
108
108
|
<div
|
|
109
|
-
className={`${style.container} ${
|
|
109
|
+
className={`${style.container} ${
|
|
110
|
+
isDisabled
|
|
111
|
+
? style.disabled
|
|
112
|
+
: isReadOnly
|
|
113
|
+
? style.readonly
|
|
114
|
+
: ''
|
|
115
|
+
}`}
|
|
110
116
|
data-title={isDisabled ? title : ''}
|
|
111
117
|
>
|
|
112
118
|
{labelName && (
|
|
@@ -123,7 +129,7 @@ export default class DateField extends PureComponent {
|
|
|
123
129
|
: labelPalette
|
|
124
130
|
}
|
|
125
131
|
onClick={isDisabled || isReadOnly ? null : this.handleLabelClick}
|
|
126
|
-
customClass={`${labelCustomClass} ${
|
|
132
|
+
customClass={`${style.fieldLabel} ${labelCustomClass} ${
|
|
127
133
|
isMandatory ? style.labelMandatory : ''
|
|
128
134
|
}`}
|
|
129
135
|
dataId={
|
|
@@ -38,14 +38,17 @@
|
|
|
38
38
|
composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
|
|
39
39
|
line-height: normal;
|
|
40
40
|
}
|
|
41
|
-
.cbTextReadonly {
|
|
42
|
-
cursor: not-allowed;
|
|
43
|
-
}
|
|
44
41
|
.cbTextPointer {
|
|
45
42
|
cursor: pointer;
|
|
46
43
|
}
|
|
47
|
-
.disabled
|
|
48
|
-
|
|
44
|
+
.disabled,
|
|
45
|
+
.readonly {
|
|
46
|
+
cursor: not-allowed;
|
|
47
|
+
}
|
|
48
|
+
.cbTextReadonly,
|
|
49
|
+
.disabled .fieldLabel,
|
|
50
|
+
.readonly .fieldLabel {
|
|
51
|
+
--label_cursor: not-allowed;
|
|
49
52
|
}
|
|
50
53
|
.radio {
|
|
51
54
|
margin: var(--zd_size5) var(--zd_size32) var(--zd_size5) 0;
|
|
@@ -118,7 +118,13 @@ export default class MultiSelectField extends PureComponent {
|
|
|
118
118
|
let uniqueId = htmlId ? htmlId : this.getNextId();
|
|
119
119
|
return (
|
|
120
120
|
<div
|
|
121
|
-
className={`${style.container} ${
|
|
121
|
+
className={`${style.container} ${
|
|
122
|
+
isDisabled
|
|
123
|
+
? style.disabled
|
|
124
|
+
: isReadOnly
|
|
125
|
+
? style.readonly
|
|
126
|
+
: ''
|
|
127
|
+
}`}
|
|
122
128
|
data-title={isDisabled ? title : ''}
|
|
123
129
|
>
|
|
124
130
|
{labelName && (
|
|
@@ -137,7 +143,7 @@ export default class MultiSelectField extends PureComponent {
|
|
|
137
143
|
: labelPalette
|
|
138
144
|
}
|
|
139
145
|
// onClick={this.handleLabelClick}
|
|
140
|
-
customClass={`${isMandatory ? style.labelMandatory : ''}`}
|
|
146
|
+
customClass={`${style.fieldLabel} ${isMandatory ? style.labelMandatory : ''}`}
|
|
141
147
|
dataId={
|
|
142
148
|
isDisabled
|
|
143
149
|
? `${dataId}_label_disabled`
|
|
@@ -52,7 +52,13 @@ export default class RadioField extends PureComponent {
|
|
|
52
52
|
} = customProps;
|
|
53
53
|
return (
|
|
54
54
|
<div
|
|
55
|
-
className={`${style.container} ${
|
|
55
|
+
className={`${style.container} ${
|
|
56
|
+
isDisabled
|
|
57
|
+
? style.disabled
|
|
58
|
+
: isReadOnly
|
|
59
|
+
? style.readonly
|
|
60
|
+
: ''
|
|
61
|
+
}`}
|
|
56
62
|
data-title={isDisabled ? title : ''}
|
|
57
63
|
>
|
|
58
64
|
{labelName && (
|
|
@@ -63,7 +69,7 @@ export default class RadioField extends PureComponent {
|
|
|
63
69
|
palette={
|
|
64
70
|
isMandatory ? 'mandatory' : isDisabled ? 'primary' : 'default'
|
|
65
71
|
}
|
|
66
|
-
customClass={`${isMandatory ? style.labelMandatory : ''}`}
|
|
72
|
+
customClass={`${style.fieldLabel} ${isMandatory ? style.labelMandatory : ''}`}
|
|
67
73
|
dataId={
|
|
68
74
|
isDisabled
|
|
69
75
|
? `${dataId}_label_disabled`
|
|
@@ -100,7 +100,13 @@ export default class SelectField extends PureComponent {
|
|
|
100
100
|
let uniqueId = htmlId ? htmlId : this.getNextId();
|
|
101
101
|
return (
|
|
102
102
|
<div
|
|
103
|
-
className={`${style.container} ${
|
|
103
|
+
className={`${style.container} ${
|
|
104
|
+
isDisabled
|
|
105
|
+
? style.disabled
|
|
106
|
+
: isReadOnly
|
|
107
|
+
? style.readonly
|
|
108
|
+
: ''
|
|
109
|
+
}`}
|
|
104
110
|
data-title={isDisabled ? title : ''}
|
|
105
111
|
>
|
|
106
112
|
{labelName && (
|
|
@@ -115,7 +121,7 @@ export default class SelectField extends PureComponent {
|
|
|
115
121
|
? 'primary'
|
|
116
122
|
: labelPalette
|
|
117
123
|
}
|
|
118
|
-
customClass={`${labelCustomClass} ${
|
|
124
|
+
customClass={`${style.fieldLabel} ${labelCustomClass} ${
|
|
119
125
|
isMandatory ? style.labelMandatory : ''
|
|
120
126
|
}`}
|
|
121
127
|
htmlFor={uniqueId}
|
|
@@ -141,10 +141,10 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
141
141
|
<Box className={style.tag} key={index}>
|
|
142
142
|
<Tag
|
|
143
143
|
text={name}
|
|
144
|
-
onRemove={deleteTag.bind(this, name)}
|
|
144
|
+
onRemove={isReadOnly ? null : deleteTag.bind(this, name)}
|
|
145
145
|
closeTitle={i18nKeys.deleteText}
|
|
146
146
|
palette={tagType === 'SYSTEM' ? 'primary' : 'default'}
|
|
147
|
-
|
|
147
|
+
isReadOnly={isReadOnly}
|
|
148
148
|
/>
|
|
149
149
|
</Box>
|
|
150
150
|
) : null;
|
|
@@ -176,7 +176,7 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
176
176
|
isReadOnly={isReadOnly}
|
|
177
177
|
ref={this.textBoxRef}
|
|
178
178
|
needBorder={false}
|
|
179
|
-
placeHolder={tagsList.length ? '' : '-'}
|
|
179
|
+
placeHolder={tagsList.length ? '' : (i18nKeys.placeholderText || '-')}
|
|
180
180
|
onClick={!isReadOnly ? handleTogglePopup : undefined}
|
|
181
181
|
customClass={{
|
|
182
182
|
customTBoxWrap: style.custmInp,
|
|
@@ -308,7 +308,8 @@ TagsMultiSelect.propTypes = {
|
|
|
308
308
|
errorMessage: PropTypes.string.isRequired,
|
|
309
309
|
deleteText: PropTypes.string.isRequired,
|
|
310
310
|
lessText: PropTypes.string.isRequired,
|
|
311
|
-
moreText: PropTypes.string.isRequired
|
|
311
|
+
moreText: PropTypes.string.isRequired,
|
|
312
|
+
placeholderText: PropTypes.string
|
|
312
313
|
}),
|
|
313
314
|
borderColor: PropTypes.oneOf(['transparent', 'default', 'dark']),
|
|
314
315
|
needBorder: PropTypes.bool,
|
|
@@ -168,7 +168,15 @@ const TagsMultiSelectField = props => {
|
|
|
168
168
|
}, []);
|
|
169
169
|
|
|
170
170
|
return (
|
|
171
|
-
<div
|
|
171
|
+
<div
|
|
172
|
+
className={`${style.container} ${
|
|
173
|
+
isDisabled
|
|
174
|
+
? fieldStyle.disabled
|
|
175
|
+
: isReadOnly
|
|
176
|
+
? fieldStyle.readonly
|
|
177
|
+
: ''
|
|
178
|
+
}`}
|
|
179
|
+
>
|
|
172
180
|
<Container alignBox='row' align='baseline' isCover={false}>
|
|
173
181
|
{labelName && (
|
|
174
182
|
<Label
|
|
@@ -179,7 +187,7 @@ const TagsMultiSelectField = props => {
|
|
|
179
187
|
palette={
|
|
180
188
|
isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette
|
|
181
189
|
}
|
|
182
|
-
customClass={`${isMandatory ? fieldStyle.labelMandatory : ''} ${
|
|
190
|
+
customClass={`${fieldStyle.fieldLabel} ${isMandatory ? fieldStyle.labelMandatory : ''} ${
|
|
183
191
|
labelClass ? labelClass : ''
|
|
184
192
|
}`}
|
|
185
193
|
dataId={
|
|
@@ -44,7 +44,7 @@ const TagsMultiSelectField__default = () => {
|
|
|
44
44
|
isNewNeeded
|
|
45
45
|
getTextBoxChildren={() => <Icon name='ZD-SE-setpracket' size='18' />}
|
|
46
46
|
>
|
|
47
|
-
<span style={{ fontSize: '13px', marginLeft: '5px', color: 'var(--
|
|
47
|
+
<span style={{ fontSize: '13px', marginLeft: '5px', color: 'var(--dot_shuttleGrey)' }}>shift+t</span>
|
|
48
48
|
</TagsMultiSelectField>
|
|
49
49
|
</div>
|
|
50
50
|
}
|
|
@@ -88,7 +88,13 @@ export default class TextBoxField extends PureComponent {
|
|
|
88
88
|
|
|
89
89
|
return (
|
|
90
90
|
<div
|
|
91
|
-
className={`${style.container} ${
|
|
91
|
+
className={`${style.container} ${
|
|
92
|
+
isDisabled
|
|
93
|
+
? style.disabled
|
|
94
|
+
: isReadOnly
|
|
95
|
+
? style.readonly
|
|
96
|
+
: ''
|
|
97
|
+
}`}
|
|
92
98
|
data-title={isDisabled ? title : ''}
|
|
93
99
|
>
|
|
94
100
|
{labelName && (
|
|
@@ -103,7 +109,7 @@ export default class TextBoxField extends PureComponent {
|
|
|
103
109
|
? 'primary'
|
|
104
110
|
: labelPalette
|
|
105
111
|
}
|
|
106
|
-
customClass={`${labelCustomClass} ${
|
|
112
|
+
customClass={`${style.fieldLabel} ${labelCustomClass} ${
|
|
107
113
|
isMandatory ? style.labelMandatory : ''
|
|
108
114
|
}`}
|
|
109
115
|
htmlFor={uniqueId}
|
|
@@ -222,7 +222,7 @@ export default class TextEditor extends Component {
|
|
|
222
222
|
if (isCustomScroll) {
|
|
223
223
|
let link = document.createElement('style');
|
|
224
224
|
link.innerText =
|
|
225
|
-
".scroll{--zd-scroll-width:12px;--zd-scroll-height:12px;--zd-scroll-bg:rgba(255,255,255,0.1);--zd-scroll-corner-bg:transparent;--zd-scroll-thump:rgba(44,51,77,0.2);--zd-scroll-thump-hoverbg:rgba(44,51,77,0.3);--zd-scroll-border:rgba(44,51,77,0.1)}.scroll[data-scroll-palette='dark'],.scroll [data-scroll-palette='dark']{--zd-scroll-thump:rgba(255,255,255,0.2);--zd-scroll-thump-hoverbg:rgba(255,255,255,0.4);--zd-scroll-border:rgba(255,255,255,0.07)}.scroll,.scroll *{scrollbar-color:var(--zd-scroll-thump) var(--zd-scroll-bg);scrollbar-width:thin;-ms-scrollbar-highlight-color:var(--zd-scroll-bg);-ms-scrollbar-face-color:var(--zd-scroll-thump)}.scroll::-webkit-scrollbar,.scroll ::-webkit-scrollbar{background:var(--zd-scroll-corner-bg)}.scroll::-webkit-scrollbar:hover,.scroll ::-webkit-scrollbar:hover{background:var(--zd-scroll-bg)}.scroll::-webkit-scrollbar:horizontal,.scroll ::-webkit-scrollbar:horizontal{height:var(--zd-scroll-height)}.scroll::-webkit-scrollbar:vertical,.scroll ::-webkit-scrollbar:vertical{width:var(--zd-scroll-width)}.scroll::-webkit-scrollbar-button,.scroll ::-webkit-scrollbar-button{display:none;width:0;height:0}.scroll::-webkit-scrollbar-track:vertical,.scroll ::-webkit-scrollbar-track:vertical{border-left:1px solid transparent;border-right:1px solid transparent}.scroll::-webkit-scrollbar-track:vertical:hover,.scroll ::-webkit-scrollbar-track:vertical:hover{border-color:var(--zd-scroll-border)}.scroll::-webkit-scrollbar-track:horizontal,.scroll ::-webkit-scrollbar-track:horizontal{border-top:1px solid transparent;border-bottom:1px solid transparent}.scroll::-webkit-scrollbar-track:horizontal:hover,.scroll ::-webkit-scrollbar-track:horizontal:hover{border-color:var(--zd-scroll-border)}.scroll::-webkit-scrollbar-track-piece,.scroll ::-webkit-scrollbar-track-piece{background:inherit}.scroll::-webkit-scrollbar-thumb,.scroll ::-webkit-scrollbar-thumb{border-radius:10px;background:var(--zd-scroll-thump);background-clip:padding-box;border:3px solid transparent}.scroll::-webkit-scrollbar-thumb:hover,.scroll ::-webkit-scrollbar-thumb:hover{background:var(--zd-scroll-thump-hoverbg);background-clip:padding-box;border:3px solid transparent}.scroll::-webkit-scrollbar-corner,.scroll ::-webkit-scrollbar-corner{background:var(--zd-scroll-corner-bg)}.scroll::-webkit-resizer,.scroll::-webkit-resizer{background:inherit}";
|
|
225
|
+
"body{font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 0}.scroll{--zd-scroll-width:12px;--zd-scroll-height:12px;--zd-scroll-bg:rgba(255,255,255,0.1);--zd-scroll-corner-bg:transparent;--zd-scroll-thump:rgba(44,51,77,0.2);--zd-scroll-thump-hoverbg:rgba(44,51,77,0.3);--zd-scroll-border:rgba(44,51,77,0.1)}.scroll[data-scroll-palette='dark'],.scroll [data-scroll-palette='dark']{--zd-scroll-thump:rgba(255,255,255,0.2);--zd-scroll-thump-hoverbg:rgba(255,255,255,0.4);--zd-scroll-border:rgba(255,255,255,0.07)}.scroll,.scroll *{scrollbar-color:var(--zd-scroll-thump) var(--zd-scroll-bg);scrollbar-width:thin;-ms-scrollbar-highlight-color:var(--zd-scroll-bg);-ms-scrollbar-face-color:var(--zd-scroll-thump)}.scroll::-webkit-scrollbar,.scroll ::-webkit-scrollbar{background:var(--zd-scroll-corner-bg)}.scroll::-webkit-scrollbar:hover,.scroll ::-webkit-scrollbar:hover{background:var(--zd-scroll-bg)}.scroll::-webkit-scrollbar:horizontal,.scroll ::-webkit-scrollbar:horizontal{height:var(--zd-scroll-height)}.scroll::-webkit-scrollbar:vertical,.scroll ::-webkit-scrollbar:vertical{width:var(--zd-scroll-width)}.scroll::-webkit-scrollbar-button,.scroll ::-webkit-scrollbar-button{display:none;width:0;height:0}.scroll::-webkit-scrollbar-track:vertical,.scroll ::-webkit-scrollbar-track:vertical{border-left:1px solid transparent;border-right:1px solid transparent}.scroll::-webkit-scrollbar-track:vertical:hover,.scroll ::-webkit-scrollbar-track:vertical:hover{border-color:var(--zd-scroll-border)}.scroll::-webkit-scrollbar-track:horizontal,.scroll ::-webkit-scrollbar-track:horizontal{border-top:1px solid transparent;border-bottom:1px solid transparent}.scroll::-webkit-scrollbar-track:horizontal:hover,.scroll ::-webkit-scrollbar-track:horizontal:hover{border-color:var(--zd-scroll-border)}.scroll::-webkit-scrollbar-track-piece,.scroll ::-webkit-scrollbar-track-piece{background:inherit}.scroll::-webkit-scrollbar-thumb,.scroll ::-webkit-scrollbar-thumb{border-radius:10px;background:var(--zd-scroll-thump);background-clip:padding-box;border:3px solid transparent}.scroll::-webkit-scrollbar-thumb:hover,.scroll ::-webkit-scrollbar-thumb:hover{background:var(--zd-scroll-thump-hoverbg);background-clip:padding-box;border:3px solid transparent}.scroll::-webkit-scrollbar-corner,.scroll ::-webkit-scrollbar-corner{background:var(--zd-scroll-corner-bg)}.scroll::-webkit-resizer,.scroll::-webkit-resizer{background:inherit}";
|
|
226
226
|
iframeHead.appendChild(link);
|
|
227
227
|
iframe.classList.add('scroll');
|
|
228
228
|
}
|
|
@@ -98,7 +98,15 @@ export default class TextEditorField extends PureComponent {
|
|
|
98
98
|
} = customProps;
|
|
99
99
|
let { ePhiTitle = '', ePhiText = '', ePhiStatus = false } = ePhiData;
|
|
100
100
|
return (
|
|
101
|
-
<div
|
|
101
|
+
<div
|
|
102
|
+
className={`${style.container} ${
|
|
103
|
+
isDisabled
|
|
104
|
+
? style.disabled
|
|
105
|
+
: isReadOnly
|
|
106
|
+
? style.readonly
|
|
107
|
+
: ''
|
|
108
|
+
} ${className || ''}`}
|
|
109
|
+
>
|
|
102
110
|
<Container isCover={false} alignBox='row' align='vertical'>
|
|
103
111
|
{labelName && (
|
|
104
112
|
<Box>
|
|
@@ -114,7 +122,7 @@ export default class TextEditorField extends PureComponent {
|
|
|
114
122
|
: labelPalette
|
|
115
123
|
}
|
|
116
124
|
onClick={this.handleLabelClick}
|
|
117
|
-
customClass={`${labelCustomClass} ${
|
|
125
|
+
customClass={`${style.fieldLabel} ${labelCustomClass} ${
|
|
118
126
|
isMandatory ? style.labelMandatory : ''
|
|
119
127
|
}`}
|
|
120
128
|
dataId={
|
|
@@ -40,7 +40,7 @@ export default class TextEditorField__default extends Component {
|
|
|
40
40
|
needEditor={false}
|
|
41
41
|
labelName='TextArea'
|
|
42
42
|
>
|
|
43
|
-
<Box flexible style={{fontSize: '12px',color: 'var(--
|
|
43
|
+
<Box flexible style={{fontSize: '12px',color: 'var(--dot_primary)',textAlign: 'right'}}>Placeholders</Box>
|
|
44
44
|
</TextEditorField>
|
|
45
45
|
|
|
46
46
|
<TextEditorField
|
|
@@ -47,7 +47,7 @@ export default class TextEditorWrapper extends Component {
|
|
|
47
47
|
) {
|
|
48
48
|
this.setState({ isEditorShow: true });
|
|
49
49
|
} else {
|
|
50
|
-
if (!this.state.isEditorFocus) {
|
|
50
|
+
if (!this.state.isEditorFocus && !this.props.isEditorDefaultOpen) {
|
|
51
51
|
this.setState({ isEditorShow: false });
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -87,7 +87,13 @@ export default class TextareaField extends PureComponent {
|
|
|
87
87
|
let uniqueId = htmlId ? htmlId : this.getNextId();
|
|
88
88
|
return (
|
|
89
89
|
<div
|
|
90
|
-
className={`${style.container} ${
|
|
90
|
+
className={`${style.container} ${
|
|
91
|
+
isDisabled
|
|
92
|
+
? style.disabled
|
|
93
|
+
: isReadOnly
|
|
94
|
+
? style.readonly
|
|
95
|
+
: ''
|
|
96
|
+
}`}
|
|
91
97
|
data-title={isDisabled ? title : ''}
|
|
92
98
|
>
|
|
93
99
|
{labelName && (
|
|
@@ -103,7 +109,7 @@ export default class TextareaField extends PureComponent {
|
|
|
103
109
|
? 'primary'
|
|
104
110
|
: labelPalette
|
|
105
111
|
}
|
|
106
|
-
customClass={`${labelCustomClass} ${
|
|
112
|
+
customClass={`${style.fieldLabel} ${labelCustomClass} ${
|
|
107
113
|
isMandatory ? style.labelMandatory : ''
|
|
108
114
|
}`}
|
|
109
115
|
htmlFor={uniqueId}
|
|
@@ -14,21 +14,18 @@ export default class Section extends Component {
|
|
|
14
14
|
titleClass,
|
|
15
15
|
className,
|
|
16
16
|
column,
|
|
17
|
-
formName
|
|
18
|
-
innerContainerClass
|
|
17
|
+
formName
|
|
19
18
|
} = this.props;
|
|
20
19
|
return (
|
|
21
20
|
<div data-id={dataId} className={containerClass ? containerClass : ''}>
|
|
22
|
-
<div className={
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
{this.props.children}
|
|
31
|
-
</div>
|
|
21
|
+
{title && <div className={titleClass ? titleClass : ''}>{title}</div>}
|
|
22
|
+
<div
|
|
23
|
+
className={`${className ? className : ''} ${
|
|
24
|
+
column == 'single' ? style.singleColumn : ''
|
|
25
|
+
}`}
|
|
26
|
+
data-id={formName && formName}
|
|
27
|
+
>
|
|
28
|
+
{this.props.children}
|
|
32
29
|
</div>
|
|
33
30
|
</div>
|
|
34
31
|
);
|
|
@@ -40,8 +37,7 @@ Section.propTypes = {
|
|
|
40
37
|
containerClass: PropTypes.string,
|
|
41
38
|
dataId: PropTypes.string,
|
|
42
39
|
title: PropTypes.string,
|
|
43
|
-
titleClass: PropTypes.string
|
|
44
|
-
innerContainerClass: PropTypes.string
|
|
40
|
+
titleClass: PropTypes.string
|
|
45
41
|
};
|
|
46
42
|
if (__DOCS__) {
|
|
47
43
|
Section.docs = {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
.medium {
|
|
2
2
|
width: var(--zd_size6);
|
|
3
|
-
height: var(--zd_size6);
|
|
3
|
+
height: var(--zd_size6);
|
|
4
4
|
}
|
|
5
5
|
.small{
|
|
6
6
|
width: var(--zd_size5);
|
|
7
|
-
height: var(--zd_size5);
|
|
7
|
+
height: var(--zd_size5);
|
|
8
8
|
}
|
|
9
9
|
.container{
|
|
10
10
|
border-radius: 50%;
|
|
11
11
|
background-color: var(--zdt_dotnew_default_bg);
|
|
12
12
|
composes: dInflex alignVertical from '~@zohodesk/components/lib/common/common.module.css';
|
|
13
13
|
box-shadow: 0 0 15px 1px var(--zdt_dotnew_default_box_shadow);
|
|
14
|
-
/* animation: dotAnimation 1.25s infinite cubic-bezier(0.66, 0.33, 0, 1);
|
|
15
|
-
box-shadow: 0 0 0 0 var(--
|
|
14
|
+
/* animation: dotAnimation 1.25s infinite cubic-bezier(0.66, 0.33, 0, 1);
|
|
15
|
+
box-shadow: 0 0 0 0 var(--dot_catskillWhite),
|
|
16
16
|
0 0 0 0 rgba(10, 115, 235, 0.6); */
|
|
17
17
|
}
|
|
18
18
|
@keyframes dotAnimation {
|
|
@@ -29,14 +29,13 @@ export default class ModuleHeader extends PureComponent {
|
|
|
29
29
|
miniDescription,
|
|
30
30
|
dataId,
|
|
31
31
|
closeTitle,
|
|
32
|
-
onSearchKeyDown
|
|
33
|
-
palette
|
|
32
|
+
onSearchKeyDown
|
|
34
33
|
} = this.props;
|
|
35
34
|
return (
|
|
36
35
|
<Container
|
|
37
36
|
align='vertical'
|
|
38
37
|
alignBox='row'
|
|
39
|
-
className={`${commonStyle.container}
|
|
38
|
+
className={`${commonStyle.container}`}
|
|
40
39
|
isCover={false}
|
|
41
40
|
wrap='wrap'
|
|
42
41
|
dataId={dataId}
|
|
@@ -88,14 +87,9 @@ ModuleHeader.propTypes = {
|
|
|
88
87
|
title: PropTypes.string,
|
|
89
88
|
dataId: PropTypes.string,
|
|
90
89
|
closeTitle: PropTypes.string,
|
|
91
|
-
onSearchKeyDown: PropTypes.func
|
|
92
|
-
palette: PropTypes.oneOf(['default', 'white'])
|
|
90
|
+
onSearchKeyDown: PropTypes.func
|
|
93
91
|
};
|
|
94
92
|
|
|
95
|
-
ModuleHeader.defaultProps = {
|
|
96
|
-
palette: 'default'
|
|
97
|
-
}
|
|
98
|
-
|
|
99
93
|
if (__DOCS__) {
|
|
100
94
|
ModuleHeader.docs = {
|
|
101
95
|
componentGroup: 'Lookup'
|