@zohodesk/dot 1.8.6 → 1.9.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 +13 -0
- package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +315 -315
- package/assets/Appearance/dark/themes/blue/blue_DotTheme_DarkTheme.module.css +15 -15
- package/assets/Appearance/dark/themes/green/green_DotTheme_DarkTheme.module.css +15 -15
- package/assets/Appearance/dark/themes/orange/orange_DotTheme_DarkTheme.module.css +15 -15
- package/assets/Appearance/dark/themes/red/red_DotTheme_DarkTheme.module.css +15 -15
- package/assets/Appearance/dark/themes/yellow/yellow_DotTheme_DarkTheme.module.css +15 -15
- package/assets/Appearance/light/mode/Dot_LightMode.module.css +307 -307
- package/assets/Appearance/light/themes/blue/blue_DotTheme_LightTheme.module.css +15 -15
- package/assets/Appearance/light/themes/green/green_DotTheme_LightTheme.module.css +15 -15
- package/assets/Appearance/light/themes/orange/orange_DotTheme_LightTheme.module.css +15 -15
- package/assets/Appearance/light/themes/red/red_DotTheme_LightTheme.module.css +15 -15
- package/assets/Appearance/light/themes/yellow/yellow_DotTheme_LightTheme.module.css +15 -15
- package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +317 -317
- package/assets/Appearance/pureDark/themes/blue/blue_DotTheme_PureDarkTheme.module.css +15 -15
- package/assets/Appearance/pureDark/themes/green/green_DotTheme_PureDarkTheme.module.css +15 -15
- package/assets/Appearance/pureDark/themes/orange/orange_DotTheme_PureDarkTheme.module.css +15 -15
- package/assets/Appearance/pureDark/themes/red/red_DotTheme_PureDarkTheme.module.css +15 -15
- package/assets/Appearance/pureDark/themes/yellow/yellow_DotTheme_PureDarkTheme.module.css +15 -15
- package/es/common/dot_boxShadow.module.css +1 -2
- package/es/form/fields/CheckBoxField/CheckBoxField.js +17 -8
- package/es/form/fields/CurrencyField/CurrencyField.js +10 -4
- package/es/form/fields/CurrencyField/__tests__/__snapshots__/CurrencyField.spec.js.snap +1 -1
- package/es/form/fields/DateField/DateField.js +17 -7
- package/es/form/fields/DateField/__tests__/__snapshots__/DateField.spec.js.snap +1 -1
- package/es/form/fields/MultiSelectField/MultiSelectField.js +13 -6
- package/es/form/fields/MultiSelectField/__tests__/__snapshots__/MultiSelectField.spec.js.snap +1 -1
- package/es/form/fields/PhoneField/__tests__/__snapshots__/PhoneField.spec.js.snap +1 -1
- package/es/form/fields/RadioField/RadioField.js +15 -5
- package/es/form/fields/SelectField/SelectField.js +17 -7
- package/es/form/fields/SelectField/__tests__/__snapshots__/SelectField.spec.js.snap +1 -1
- package/es/form/fields/TagsMultiSelect/__tests__/__snapshots__/TagsMultiSelect.spec.js.snap +1 -1
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +16 -7
- package/es/form/fields/TagsMultiSelectField/__tests__/__snapshots__/TagsMultiSelectField.spec.js.snap +1 -1
- package/es/form/fields/TextBoxField/TextBoxField.js +16 -6
- package/es/form/fields/TextBoxField/__tests__/__snapshots__/TextBoxField.spec.js.snap +1 -1
- package/es/form/fields/TextEditor/TextEditor.js +6 -2
- package/es/form/fields/TextEditor/__tests__/__snapshots__/TextEditor.spec.js.snap +1 -1
- package/es/form/fields/TextEditor/props/defaultProps.js +2 -1
- package/es/form/fields/TextEditor/props/propTypes.js +2 -1
- package/es/form/fields/TextEditorField/TextEditorField.js +10 -4
- package/es/form/fields/TextareaField/TextareaField.js +15 -5
- package/es/lookup/header/Search/__tests__/__snapshots__/Search.spec.js.snap +6 -6
- package/lib/common/dot_boxShadow.module.css +1 -2
- package/lib/form/fields/CheckBoxField/CheckBoxField.js +17 -8
- package/lib/form/fields/CurrencyField/CurrencyField.js +10 -4
- package/lib/form/fields/CurrencyField/__tests__/__snapshots__/CurrencyField.spec.js.snap +1 -1
- package/lib/form/fields/DateField/DateField.js +17 -8
- package/lib/form/fields/DateField/__tests__/__snapshots__/DateField.spec.js.snap +1 -1
- package/lib/form/fields/MultiSelectField/MultiSelectField.js +13 -6
- package/lib/form/fields/MultiSelectField/__tests__/__snapshots__/MultiSelectField.spec.js.snap +1 -1
- package/lib/form/fields/PhoneField/__tests__/__snapshots__/PhoneField.spec.js.snap +1 -1
- package/lib/form/fields/RadioField/RadioField.js +15 -5
- package/lib/form/fields/SelectField/SelectField.js +17 -8
- package/lib/form/fields/SelectField/__tests__/__snapshots__/SelectField.spec.js.snap +1 -1
- package/lib/form/fields/TagsMultiSelect/__tests__/__snapshots__/TagsMultiSelect.spec.js.snap +1 -1
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +16 -7
- package/lib/form/fields/TagsMultiSelectField/__tests__/__snapshots__/TagsMultiSelectField.spec.js.snap +1 -1
- package/lib/form/fields/TextBoxField/TextBoxField.js +16 -7
- package/lib/form/fields/TextBoxField/__tests__/__snapshots__/TextBoxField.spec.js.snap +1 -1
- package/lib/form/fields/TextEditor/TextEditor.js +5 -2
- package/lib/form/fields/TextEditor/__tests__/__snapshots__/TextEditor.spec.js.snap +1 -1
- package/lib/form/fields/TextEditor/props/defaultProps.js +2 -1
- package/lib/form/fields/TextEditor/props/propTypes.js +2 -1
- package/lib/form/fields/TextEditorField/TextEditorField.js +10 -4
- package/lib/form/fields/TextareaField/TextareaField.js +15 -5
- package/lib/lookup/header/Search/__tests__/__snapshots__/Search.spec.js.snap +6 -6
- package/package.json +8 -8
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
[data-mode='pureDark'][data-theme='blue'] {
|
|
2
2
|
/* freezelayer */
|
|
3
|
-
--zdt_freezelayer_darklight_bg: hsla(0, 0.00
|
|
3
|
+
--zdt_freezelayer_darklight_bg: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(6.27% + var(--zdc_default)), calc( 0.9 + var(--zdc_alpha_high)));
|
|
4
4
|
|
|
5
5
|
/* common empty state */
|
|
6
|
-
--zdt_commonEmptyState_dark_title: hsla(0, 0.00
|
|
7
|
-
--zdt_commonEmptyState_dark_description: hsla(0, 0.00
|
|
8
|
-
--zdt_commonEmptyState_dark_link: hsla(212, 100.00
|
|
9
|
-
--zdt_commonEmptyState_dark_link_hover: hsla(221, 100.00
|
|
6
|
+
--zdt_commonEmptyState_dark_title: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(100.00% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
7
|
+
--zdt_commonEmptyState_dark_description: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(100.00% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
8
|
+
--zdt_commonEmptyState_dark_link: hsla(212, calc(var(--zd-saturation, 1) * 100.00%), calc(63.92% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
9
|
+
--zdt_commonEmptyState_dark_link_hover: hsla(221, calc(var(--zd-saturation, 1) * 100.00%), calc(57.06% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
10
10
|
|
|
11
11
|
/* onboarding */
|
|
12
|
-
--zdt_onboarding_primary_gradient_border: hsla(212, 91.84
|
|
13
|
-
--zdt_onboarding_secondary_gradient_border: hsla(220, 72.24
|
|
14
|
-
--zdt_onboarding_gradient_border: hsla(220, 72.24
|
|
15
|
-
--zdt_onboarding_primary_button_shadow:
|
|
16
|
-
--zdt_onboarding_gradient_bg: hsla(213, 19.57
|
|
12
|
+
--zdt_onboarding_primary_gradient_border: hsla(212, calc(var(--zd-saturation, 1) * 91.84%), calc(48.04% + var(--zdc_default_inverse_low)), calc( 0.3 + var(--zdc_alpha_low)));
|
|
13
|
+
--zdt_onboarding_secondary_gradient_border: hsla(220, calc(var(--zd-saturation, 1) * 72.24%), calc(51.96% + var(--zdc_default_inverse_low)), calc( 0.51 + var(--zdc_alpha_low)));
|
|
14
|
+
--zdt_onboarding_gradient_border: hsla(220, calc(var(--zd-saturation, 1) * 72.24%), calc(51.96% + var(--zdc_default_inverse_low)), calc( 0 + var(--zdc_alpha_low)));
|
|
15
|
+
--zdt_onboarding_primary_button_shadow: hsla(212, calc(var(--zd-saturation, 1) * 91.84%), 48.04%, 0.25);
|
|
16
|
+
--zdt_onboarding_gradient_bg: hsla(213, calc(var(--zd-saturation, 1) * 19.57%), calc(18.04% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
17
17
|
|
|
18
18
|
/* attachment viewer */
|
|
19
|
-
--zdt_attachmentviewer_header_bg: hsla(0, 0.00
|
|
20
|
-
--zdt_attachmentviewer_header_border: hsla(0, 0.00
|
|
21
|
-
--zdt_attachmentviewer_footer_bg: hsla(0, 0.00
|
|
22
|
-
--zdt_attachmentviewer_arrow_bg_hover: hsla(0, 0.00
|
|
19
|
+
--zdt_attachmentviewer_header_bg: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(9.02% + var(--zdc_darker_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
20
|
+
--zdt_attachmentviewer_header_border: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(13.33% + var(--zdc_lighter)), calc(1 + var(--zdc_alpha_high)));
|
|
21
|
+
--zdt_attachmentviewer_footer_bg: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(9.02% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
22
|
+
--zdt_attachmentviewer_arrow_bg_hover: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(6.27% + var(--zdc_default)), calc( 0.4 + var(--zdc_alpha_high)));
|
|
23
23
|
|
|
24
24
|
/* loader */
|
|
25
|
-
--zdt_loader_bg:
|
|
25
|
+
--zdt_loader_bg: hsla(212, calc(var(--zd-saturation, 1) * 100.00%), 63.92%, 1);
|
|
26
26
|
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
[data-mode='pureDark'][data-theme='green'] {
|
|
2
2
|
/* freezelayer */
|
|
3
|
-
--zdt_freezelayer_darklight_bg: hsla(0, 0.00
|
|
3
|
+
--zdt_freezelayer_darklight_bg: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(6.27% + var(--zdc_default)), calc( 0.9 + var(--zdc_alpha_high)));
|
|
4
4
|
|
|
5
5
|
/* common empty state */
|
|
6
|
-
--zdt_commonEmptyState_dark_title: hsla(0, 0.00
|
|
7
|
-
--zdt_commonEmptyState_dark_description: hsla(0, 0.00
|
|
8
|
-
--zdt_commonEmptyState_dark_link: hsla(133, 40.00
|
|
9
|
-
--zdt_commonEmptyState_dark_link_hover: hsla(128, 79.71
|
|
6
|
+
--zdt_commonEmptyState_dark_title: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(100.00% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
7
|
+
--zdt_commonEmptyState_dark_description: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(100.00% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
8
|
+
--zdt_commonEmptyState_dark_link: hsla(133, calc(var(--zd-saturation, 1) * 40.00%), calc(45.10% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
9
|
+
--zdt_commonEmptyState_dark_link_hover: hsla(128, calc(var(--zd-saturation, 1) * 79.71%), calc(27.06% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
10
10
|
|
|
11
11
|
/* onboarding */
|
|
12
|
-
--zdt_onboarding_primary_gradient_border: hsla(133, 62.68
|
|
13
|
-
--zdt_onboarding_secondary_gradient_border: hsla(133, 62.68
|
|
14
|
-
--zdt_onboarding_gradient_border: hsla(133, 62.68
|
|
15
|
-
--zdt_onboarding_primary_button_shadow:
|
|
16
|
-
--zdt_onboarding_gradient_bg: hsla(133, 10.84
|
|
12
|
+
--zdt_onboarding_primary_gradient_border: hsla(133, calc(var(--zd-saturation, 1) * 62.68%), calc(40.98% + var(--zdc_default_inverse_low)), calc( 0.3 + var(--zdc_alpha_low)));
|
|
13
|
+
--zdt_onboarding_secondary_gradient_border: hsla(133, calc(var(--zd-saturation, 1) * 62.68%), calc(40.98% + var(--zdc_default_inverse_low)), calc( 0.51 + var(--zdc_alpha_low)));
|
|
14
|
+
--zdt_onboarding_gradient_border: hsla(133, calc(var(--zd-saturation, 1) * 62.68%), calc(40.98% + var(--zdc_default_inverse_low)), calc( 0 + var(--zdc_alpha_low)));
|
|
15
|
+
--zdt_onboarding_primary_button_shadow: hsla(133, calc(var(--zd-saturation, 1) * 62.68%), 40.98%, 0.25);
|
|
16
|
+
--zdt_onboarding_gradient_bg: hsla(133, calc(var(--zd-saturation, 1) * 10.84%), calc(16.27% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
17
17
|
|
|
18
18
|
/* attachment viewer */
|
|
19
|
-
--zdt_attachmentviewer_header_bg: hsla(0, 0.00
|
|
20
|
-
--zdt_attachmentviewer_header_border: hsla(0, 0.00
|
|
21
|
-
--zdt_attachmentviewer_footer_bg: hsla(0, 0.00
|
|
22
|
-
--zdt_attachmentviewer_arrow_bg_hover: hsla(0, 0.00
|
|
19
|
+
--zdt_attachmentviewer_header_bg: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(9.02% + var(--zdc_darker_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
20
|
+
--zdt_attachmentviewer_header_border: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(13.33% + var(--zdc_lighter)), calc(1 + var(--zdc_alpha_high)));
|
|
21
|
+
--zdt_attachmentviewer_footer_bg: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(9.02% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
22
|
+
--zdt_attachmentviewer_arrow_bg_hover: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(6.27% + var(--zdc_default)), calc( 0.4 + var(--zdc_alpha_high)));
|
|
23
23
|
|
|
24
24
|
/* loader */
|
|
25
|
-
--zdt_loader_bg:
|
|
25
|
+
--zdt_loader_bg: hsla(133, calc(var(--zd-saturation, 1) * 40.00%), 45.10%, 1);
|
|
26
26
|
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
[data-mode='pureDark'][data-theme='orange'] {
|
|
2
2
|
/* freezelayer */
|
|
3
|
-
--zdt_freezelayer_darklight_bg: hsla(0, 0.00
|
|
3
|
+
--zdt_freezelayer_darklight_bg: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(6.27% + var(--zdc_default)), calc( 0.9 + var(--zdc_alpha_high)));
|
|
4
4
|
|
|
5
5
|
/* common empty state */
|
|
6
|
-
--zdt_commonEmptyState_dark_title: hsla(0, 0.00
|
|
7
|
-
--zdt_commonEmptyState_dark_description: hsla(0, 0.00
|
|
8
|
-
--zdt_commonEmptyState_dark_link: hsla(26, 100.00
|
|
9
|
-
--zdt_commonEmptyState_dark_link_hover: hsla(29, 100.00
|
|
6
|
+
--zdt_commonEmptyState_dark_title: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(100.00% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
7
|
+
--zdt_commonEmptyState_dark_description: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(100.00% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
8
|
+
--zdt_commonEmptyState_dark_link: hsla(26, calc(var(--zd-saturation, 1) * 100.00%), calc(56.08% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
9
|
+
--zdt_commonEmptyState_dark_link_hover: hsla(29, calc(var(--zd-saturation, 1) * 100.00%), calc(32.94% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
10
10
|
|
|
11
11
|
/* onboarding */
|
|
12
|
-
--zdt_onboarding_primary_gradient_border: hsla(28, 81.75
|
|
13
|
-
--zdt_onboarding_secondary_gradient_border: hsla(28, 81.75
|
|
14
|
-
--zdt_onboarding_gradient_border: hsla(28, 81.75
|
|
15
|
-
--zdt_onboarding_primary_button_shadow:
|
|
16
|
-
--zdt_onboarding_gradient_bg: hsla(26, 19.51
|
|
12
|
+
--zdt_onboarding_primary_gradient_border: hsla(28, calc(var(--zd-saturation, 1) * 81.75%), calc(49.41% + var(--zdc_default_inverse_low)), calc( 0.3 + var(--zdc_alpha_low)));
|
|
13
|
+
--zdt_onboarding_secondary_gradient_border: hsla(28, calc(var(--zd-saturation, 1) * 81.75%), calc(49.41% + var(--zdc_default_inverse_low)), calc( 0.51 + var(--zdc_alpha_low)));
|
|
14
|
+
--zdt_onboarding_gradient_border: hsla(28, calc(var(--zd-saturation, 1) * 81.75%), calc(49.41% + var(--zdc_default_inverse_low)), calc( 0 + var(--zdc_alpha_low)));
|
|
15
|
+
--zdt_onboarding_primary_button_shadow: hsla(28, calc(var(--zd-saturation, 1) * 81.75%), 49.41%, 0.25);
|
|
16
|
+
--zdt_onboarding_gradient_bg: hsla(26, calc(var(--zd-saturation, 1) * 19.51%), calc(16.08% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
17
17
|
|
|
18
18
|
/* attachment viewer */
|
|
19
|
-
--zdt_attachmentviewer_header_bg: hsla(0, 0.00
|
|
20
|
-
--zdt_attachmentviewer_header_border: hsla(0, 0.00
|
|
21
|
-
--zdt_attachmentviewer_footer_bg: hsla(0, 0.00
|
|
22
|
-
--zdt_attachmentviewer_arrow_bg_hover: hsla(0, 0.00
|
|
19
|
+
--zdt_attachmentviewer_header_bg: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(9.02% + var(--zdc_darker_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
20
|
+
--zdt_attachmentviewer_header_border: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(13.33% + var(--zdc_lighter)), calc(1 + var(--zdc_alpha_high)));
|
|
21
|
+
--zdt_attachmentviewer_footer_bg: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(9.02% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
22
|
+
--zdt_attachmentviewer_arrow_bg_hover: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(6.27% + var(--zdc_default)), calc( 0.4 + var(--zdc_alpha_high)));
|
|
23
23
|
|
|
24
24
|
/* loader */
|
|
25
|
-
--zdt_loader_bg:
|
|
25
|
+
--zdt_loader_bg: hsla(26, calc(var(--zd-saturation, 1) * 100.00%), 56.08%, 1);
|
|
26
26
|
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
[data-mode='pureDark'][data-theme='red'] {
|
|
2
2
|
/* freezelayer */
|
|
3
|
-
--zdt_freezelayer_darklight_bg: hsla(0, 0.00
|
|
3
|
+
--zdt_freezelayer_darklight_bg: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(6.27% + var(--zdc_default)), calc( 0.9 + var(--zdc_alpha_high)));
|
|
4
4
|
|
|
5
5
|
/* common empty state */
|
|
6
|
-
--zdt_commonEmptyState_dark_title: hsla(0, 0.00
|
|
7
|
-
--zdt_commonEmptyState_dark_description: hsla(0, 0.00
|
|
8
|
-
--zdt_commonEmptyState_dark_link: hsla(0, 77.78
|
|
9
|
-
--zdt_commonEmptyState_dark_link_hover: hsla(0, 81.62
|
|
6
|
+
--zdt_commonEmptyState_dark_title: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(100.00% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
7
|
+
--zdt_commonEmptyState_dark_description: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(100.00% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
8
|
+
--zdt_commonEmptyState_dark_link: hsla(0, calc(var(--zd-saturation, 1) * 77.78%), calc(61.18% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
9
|
+
--zdt_commonEmptyState_dark_link_hover: hsla(0, calc(var(--zd-saturation, 1) * 81.62%), calc(36.27% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
10
10
|
|
|
11
11
|
/* onboarding */
|
|
12
|
-
--zdt_onboarding_primary_gradient_border: hsla(0, 73.81
|
|
13
|
-
--zdt_onboarding_secondary_gradient_border: hsla(0, 73.81
|
|
14
|
-
--zdt_onboarding_gradient_border: hsla(0, 73.81
|
|
15
|
-
--zdt_onboarding_primary_button_shadow:
|
|
16
|
-
--zdt_onboarding_gradient_bg: hsla(0, 13.25
|
|
12
|
+
--zdt_onboarding_primary_gradient_border: hsla(0, calc(var(--zd-saturation, 1) * 73.81%), calc(49.41% + var(--zdc_default_inverse_low)), calc( 0.3 + var(--zdc_alpha_low)));
|
|
13
|
+
--zdt_onboarding_secondary_gradient_border: hsla(0, calc(var(--zd-saturation, 1) * 73.81%), calc(49.41% + var(--zdc_default_inverse_low)), calc( 0.51 + var(--zdc_alpha_low)));
|
|
14
|
+
--zdt_onboarding_gradient_border: hsla(0, calc(var(--zd-saturation, 1) * 73.81%), calc(49.41% + var(--zdc_default_inverse_low)), calc( 0 + var(--zdc_alpha_low)));
|
|
15
|
+
--zdt_onboarding_primary_button_shadow: hsla(0, calc(var(--zd-saturation, 1) * 73.81%), 49.41%, 0.25);
|
|
16
|
+
--zdt_onboarding_gradient_bg: hsla(0, calc(var(--zd-saturation, 1) * 13.25%), calc(16.27% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
17
17
|
|
|
18
18
|
/* attachment viewer */
|
|
19
|
-
--zdt_attachmentviewer_header_bg: hsla(0, 0.00
|
|
20
|
-
--zdt_attachmentviewer_header_border: hsla(0, 0.00
|
|
21
|
-
--zdt_attachmentviewer_footer_bg: hsla(0, 0.00
|
|
22
|
-
--zdt_attachmentviewer_arrow_bg_hover: hsla(0, 0.00
|
|
19
|
+
--zdt_attachmentviewer_header_bg: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(9.02% + var(--zdc_darker_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
20
|
+
--zdt_attachmentviewer_header_border: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(13.33% + var(--zdc_lighter)), calc(1 + var(--zdc_alpha_high)));
|
|
21
|
+
--zdt_attachmentviewer_footer_bg: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(9.02% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
22
|
+
--zdt_attachmentviewer_arrow_bg_hover: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(6.27% + var(--zdc_default)), calc( 0.4 + var(--zdc_alpha_high)));
|
|
23
23
|
|
|
24
24
|
/* loader */
|
|
25
|
-
--zdt_loader_bg:
|
|
25
|
+
--zdt_loader_bg: hsla(0, calc(var(--zd-saturation, 1) * 77.78%), 61.18%, 1);
|
|
26
26
|
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
[data-mode='pureDark'][data-theme='yellow'] {
|
|
2
2
|
/* freezelayer */
|
|
3
|
-
--zdt_freezelayer_darklight_bg: hsla(0, 0.00
|
|
3
|
+
--zdt_freezelayer_darklight_bg: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(6.27% + var(--zdc_default)), calc( 0.9 + var(--zdc_alpha_high)));
|
|
4
4
|
|
|
5
5
|
/* common empty state */
|
|
6
|
-
--zdt_commonEmptyState_dark_title: hsla(0, 0.00
|
|
7
|
-
--zdt_commonEmptyState_dark_description: hsla(0, 0.00
|
|
8
|
-
--zdt_commonEmptyState_dark_link: hsla(37, 66.94
|
|
9
|
-
--zdt_commonEmptyState_dark_link_hover: hsla(39, 90.18
|
|
6
|
+
--zdt_commonEmptyState_dark_title: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(100.00% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
7
|
+
--zdt_commonEmptyState_dark_description: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(100.00% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
8
|
+
--zdt_commonEmptyState_dark_link: hsla(37, calc(var(--zd-saturation, 1) * 66.94%), calc(52.55% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
9
|
+
--zdt_commonEmptyState_dark_link_hover: hsla(39, calc(var(--zd-saturation, 1) * 90.18%), calc(31.96% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
10
10
|
|
|
11
11
|
/* onboarding */
|
|
12
|
-
--zdt_onboarding_primary_gradient_border: hsla(43, 90.39
|
|
13
|
-
--zdt_onboarding_secondary_gradient_border: hsla(43, 90.39
|
|
14
|
-
--zdt_onboarding_gradient_border: hsla(43, 90.39
|
|
15
|
-
--zdt_onboarding_primary_button_shadow:
|
|
16
|
-
--zdt_onboarding_gradient_bg: hsla(35, 15.00
|
|
12
|
+
--zdt_onboarding_primary_gradient_border: hsla(43, calc(var(--zd-saturation, 1) * 90.39%), calc(44.90% + var(--zdc_default_inverse_low)), calc( 0.3 + var(--zdc_alpha_low)));
|
|
13
|
+
--zdt_onboarding_secondary_gradient_border: hsla(43, calc(var(--zd-saturation, 1) * 90.39%), calc(44.90% + var(--zdc_default_inverse_low)), calc( 0.51 + var(--zdc_alpha_low)));
|
|
14
|
+
--zdt_onboarding_gradient_border: hsla(43, calc(var(--zd-saturation, 1) * 90.39%), calc(44.90% + var(--zdc_default_inverse_low)), calc( 0 + var(--zdc_alpha_low)));
|
|
15
|
+
--zdt_onboarding_primary_button_shadow: hsla(43, calc(var(--zd-saturation, 1) * 90.39%), 44.90%, 0.25);
|
|
16
|
+
--zdt_onboarding_gradient_bg: hsla(35, calc(var(--zd-saturation, 1) * 15.00%), calc(15.69% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
17
17
|
|
|
18
18
|
/* attachment viewer */
|
|
19
|
-
--zdt_attachmentviewer_header_bg: hsla(0, 0.00
|
|
20
|
-
--zdt_attachmentviewer_header_border: hsla(0, 0.00
|
|
21
|
-
--zdt_attachmentviewer_footer_bg: hsla(0, 0.00
|
|
22
|
-
--zdt_attachmentviewer_arrow_bg_hover: hsla(0, 0.00
|
|
19
|
+
--zdt_attachmentviewer_header_bg: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(9.02% + var(--zdc_darker_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
20
|
+
--zdt_attachmentviewer_header_border: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(13.33% + var(--zdc_lighter)), calc(1 + var(--zdc_alpha_high)));
|
|
21
|
+
--zdt_attachmentviewer_footer_bg: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(9.02% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
22
|
+
--zdt_attachmentviewer_arrow_bg_hover: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(6.27% + var(--zdc_default)), calc( 0.4 + var(--zdc_alpha_high)));
|
|
23
23
|
|
|
24
24
|
/* loader */
|
|
25
|
-
--zdt_loader_bg:
|
|
25
|
+
--zdt_loader_bg: hsla(37, calc(var(--zd-saturation, 1) * 66.94%), 52.55%, 1);
|
|
26
26
|
}
|
|
@@ -37,8 +37,7 @@
|
|
|
37
37
|
--zd_bs_desktopnotification_container: var(--zd_bs_contrast_outline, 0 4px 20px var(--zdt_desktopnotification_box_shadow));
|
|
38
38
|
|
|
39
39
|
/* onboarding */
|
|
40
|
-
--zd_bs_onboarding_close_icon: var(--zd_bs_contrast_outline, 0px 2px 15px rgba(0, 0, 0, 0.09));
|
|
40
|
+
--zd_bs_onboarding_close_icon: var(--zd_bs_contrast_outline, 0px 2px 15px var(--zd-shadow-saturation, rgba(0, 0, 0, 0.09)));
|
|
41
41
|
--zd_bs_onboarding_gradient: var(--zd_bs_contrast_outline, 0px 20px 30px 0px var(--zdt_onboarding_bg_box_shadow));
|
|
42
42
|
--zd_bs_onboarding_primary_button: var(--zd_bs_contrast_outline, 0px 4px 20px 0px var(--zdt_onboarding_primary_button_shadow));
|
|
43
|
-
|
|
44
43
|
}
|
|
@@ -4,7 +4,7 @@ import { defaultProps } from "./props/defaultProps";
|
|
|
4
4
|
import { propTypes } from "./props/propTypes";
|
|
5
5
|
/**** Components ****/
|
|
6
6
|
|
|
7
|
-
import Label from '@zohodesk/components/es/Label/Label';
|
|
7
|
+
import Label from '@zohodesk/components/es/v1/Label/Label';
|
|
8
8
|
import CheckBox from '@zohodesk/components/es/CheckBox/CheckBox';
|
|
9
9
|
import ValidationMessage from "../ValidationMessage/ValidationMessage";
|
|
10
10
|
import { Container, Box } from '@zohodesk/components/es/Layout';
|
|
@@ -87,15 +87,24 @@ export default class CheckBoxField extends PureComponent {
|
|
|
87
87
|
renderProps: renderLabelProps
|
|
88
88
|
}, /*#__PURE__*/React.createElement(Label, {
|
|
89
89
|
text: labelName,
|
|
90
|
-
|
|
90
|
+
isRequired: isMandatory,
|
|
91
|
+
isDisabled: isDisabled,
|
|
92
|
+
isReadOnly: isReadOnly,
|
|
93
|
+
palette: labelPalette,
|
|
94
|
+
customClass: {
|
|
95
|
+
label: labelCustomClass,
|
|
96
|
+
container: !isDirectCol ? style.checkboxText : ''
|
|
97
|
+
},
|
|
91
98
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
title: labelName,
|
|
99
|
+
fontWeight: isDirectCol ? 'regular' : 'semibold',
|
|
100
|
+
testId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
101
|
+
customId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
96
102
|
onClick: !removeEvent ? this.handleLabelClick : null,
|
|
97
|
-
|
|
98
|
-
|
|
103
|
+
tagAttributes: {
|
|
104
|
+
label: {
|
|
105
|
+
id
|
|
106
|
+
}
|
|
107
|
+
},
|
|
99
108
|
...LabelProps
|
|
100
109
|
}));
|
|
101
110
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -4,7 +4,7 @@ import { defaultProps } from "./props/defaultProps";
|
|
|
4
4
|
import { propTypes } from "./props/propTypes";
|
|
5
5
|
/**** Components ****/
|
|
6
6
|
|
|
7
|
-
import Label from '@zohodesk/components/es/Label/Label';
|
|
7
|
+
import Label from '@zohodesk/components/es/v1/Label/Label';
|
|
8
8
|
import TextBoxIcon from '@zohodesk/components/es/TextBoxIcon/TextBoxIcon';
|
|
9
9
|
import ValidationMessage from "../ValidationMessage/ValidationMessage";
|
|
10
10
|
import { getUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
|
|
@@ -129,11 +129,17 @@ export default class CurrencyField extends PureComponent {
|
|
|
129
129
|
renderProps: renderLabelProps
|
|
130
130
|
}, /*#__PURE__*/React.createElement(Label, {
|
|
131
131
|
text: labelName,
|
|
132
|
+
isRequired: isMandatory,
|
|
133
|
+
isDisabled: isDisabled,
|
|
134
|
+
isReadOnly: isReadOnly,
|
|
135
|
+
palette: labelPalette,
|
|
136
|
+
customClass: {
|
|
137
|
+
label: labelCustomClass
|
|
138
|
+
},
|
|
132
139
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
133
|
-
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
134
|
-
customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
|
|
135
140
|
htmlFor: uniqueId,
|
|
136
|
-
|
|
141
|
+
customId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
142
|
+
testId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
137
143
|
...LabelProps
|
|
138
144
|
})), /*#__PURE__*/React.createElement("div", {
|
|
139
145
|
className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
|
|
@@ -10,7 +10,7 @@ exports[`CurrencyField rendering the defult props 1`] = `
|
|
|
10
10
|
class="fieldContainer "
|
|
11
11
|
>
|
|
12
12
|
<div
|
|
13
|
-
class="varClass customContainer
|
|
13
|
+
class="varClass customContainer border_bottom effect borderColor_default hasBorder container flex rowdir"
|
|
14
14
|
data-selector-id="textBoxIcon"
|
|
15
15
|
>
|
|
16
16
|
<div
|
|
@@ -4,7 +4,7 @@ import { defaultProps } from "./props/defaultProps";
|
|
|
4
4
|
import { propTypes } from "./props/propTypes";
|
|
5
5
|
/**** Components ****/
|
|
6
6
|
|
|
7
|
-
import Label from '@zohodesk/components/es/Label/Label';
|
|
7
|
+
import Label from '@zohodesk/components/es/v1/Label/Label';
|
|
8
8
|
import DateWidget from '@zohodesk/components/es/DateTime/DateWidget';
|
|
9
9
|
import ValidationMessage from "../ValidationMessage/ValidationMessage";
|
|
10
10
|
import { getUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
|
|
@@ -133,14 +133,24 @@ export default class DateField extends PureComponent {
|
|
|
133
133
|
renderProps: renderLabelProps
|
|
134
134
|
}, /*#__PURE__*/React.createElement(Label, {
|
|
135
135
|
text: labelName,
|
|
136
|
-
|
|
136
|
+
isRequired: isMandatory,
|
|
137
|
+
isDisabled: isDisabled,
|
|
138
|
+
isReadOnly: isReadOnly,
|
|
139
|
+
palette: labelPalette,
|
|
140
|
+
customClass: {
|
|
141
|
+
label: labelCustomClass
|
|
142
|
+
},
|
|
137
143
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
138
|
-
|
|
144
|
+
htmlFor: getAriaId,
|
|
145
|
+
testId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
146
|
+
customId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
139
147
|
onClick: isDisabled || isReadOnly ? null : this.handleLabelClick,
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
148
|
+
tagAttributes: {
|
|
149
|
+
label: {
|
|
150
|
+
id: labelName
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
...LabelProps
|
|
144
154
|
})), /*#__PURE__*/React.createElement("div", {
|
|
145
155
|
className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
|
|
146
156
|
}, isLocked && lockedValueText ? /*#__PURE__*/React.createElement("div", {
|
|
@@ -18,7 +18,7 @@ exports[`DateField rendering the defult props 1`] = `
|
|
|
18
18
|
data-test-id="dateField(formatted_undefined)_widget"
|
|
19
19
|
>
|
|
20
20
|
<div
|
|
21
|
-
class="varClass customContainer
|
|
21
|
+
class="varClass customContainer border_bottom effect borderColor_default hasBorder container placeHolder flex rowdir"
|
|
22
22
|
data-selector-id="textBoxIcon"
|
|
23
23
|
>
|
|
24
24
|
<div
|
|
@@ -4,7 +4,7 @@ import { defaultProps } from "./props/defaultProps";
|
|
|
4
4
|
import { propTypes } from "./props/propTypes";
|
|
5
5
|
/**** Components ****/
|
|
6
6
|
|
|
7
|
-
import Label from '@zohodesk/components/es/Label/Label';
|
|
7
|
+
import Label from '@zohodesk/components/es/v1/Label/Label';
|
|
8
8
|
import MultiSelect from '@zohodesk/components/es/MultiSelect/MultiSelect';
|
|
9
9
|
import ValidationMessage from "../ValidationMessage/ValidationMessage";
|
|
10
10
|
import { getUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
|
|
@@ -145,13 +145,20 @@ export default class MultiSelectField extends PureComponent {
|
|
|
145
145
|
renderProps: renderLabelProps
|
|
146
146
|
}, /*#__PURE__*/React.createElement(Label, {
|
|
147
147
|
text: labelName,
|
|
148
|
-
|
|
148
|
+
isRequired: isMandatory,
|
|
149
|
+
isDisabled: isDisabled,
|
|
150
|
+
isReadOnly: isReadOnly,
|
|
151
|
+
palette: labelPalette,
|
|
149
152
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
150
|
-
|
|
153
|
+
htmlFor: uniqueId // onClick={this.handleLabelClick}
|
|
151
154
|
,
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
+
testId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
156
|
+
customId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
157
|
+
tagAttributes: {
|
|
158
|
+
label: {
|
|
159
|
+
id
|
|
160
|
+
}
|
|
161
|
+
},
|
|
155
162
|
...LabelProps
|
|
156
163
|
})), /*#__PURE__*/React.createElement(MultiSelect, {
|
|
157
164
|
options: options,
|
package/es/form/fields/MultiSelectField/__tests__/__snapshots__/MultiSelectField.spec.js.snap
CHANGED
|
@@ -29,7 +29,7 @@ exports[`MultiSelectField rendering the defult props 1`] = `
|
|
|
29
29
|
"
|
|
30
30
|
/>
|
|
31
31
|
<div
|
|
32
|
-
class="varClass customContainer
|
|
32
|
+
class="varClass customContainer effect container custmInputWrapper flex rowdir"
|
|
33
33
|
data-selector-id="textBoxIcon"
|
|
34
34
|
>
|
|
35
35
|
<div
|
|
@@ -22,7 +22,7 @@ exports[`PhoneField rendering the defult props 1`] = `
|
|
|
22
22
|
class="fieldContainer "
|
|
23
23
|
>
|
|
24
24
|
<div
|
|
25
|
-
class="varClass customContainer
|
|
25
|
+
class="varClass customContainer border_bottom effect borderColor_default hasBorder container flex rowdir"
|
|
26
26
|
data-selector-id="textBoxIcon"
|
|
27
27
|
>
|
|
28
28
|
<div
|
|
@@ -6,7 +6,7 @@ import { propTypes } from "./props/propTypes";
|
|
|
6
6
|
/**** Components ****/
|
|
7
7
|
|
|
8
8
|
import Icon from '@zohodesk/icons/es/Icon';
|
|
9
|
-
import Label from '@zohodesk/components/es/Label/Label';
|
|
9
|
+
import Label from '@zohodesk/components/es/v1/Label/Label';
|
|
10
10
|
import Radio from '@zohodesk/components/es/Radio/Radio';
|
|
11
11
|
import ValidationMessage from "../ValidationMessage/ValidationMessage";
|
|
12
12
|
/** Css */
|
|
@@ -123,10 +123,20 @@ export default class RadioField extends PureComponent {
|
|
|
123
123
|
}, labelName && /*#__PURE__*/React.createElement(Label, {
|
|
124
124
|
text: labelName,
|
|
125
125
|
size: "medium",
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
126
|
+
isRequired: isMandatory,
|
|
127
|
+
isDisabled: isDisabled,
|
|
128
|
+
isReadOnly: isReadOnly,
|
|
129
|
+
palette: labelPalette,
|
|
130
|
+
customClass: {
|
|
131
|
+
label: customLabelClass
|
|
132
|
+
},
|
|
133
|
+
customId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
134
|
+
testId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
135
|
+
tagAttributes: {
|
|
136
|
+
label: {
|
|
137
|
+
id
|
|
138
|
+
}
|
|
139
|
+
},
|
|
130
140
|
...LabelProps
|
|
131
141
|
}), /*#__PURE__*/React.createElement("div", {
|
|
132
142
|
className: `${style.fieldContainer} ${isBoxStyle ? style.radiosWrapper : ''} ${labelName ? isBoxStyle ? style.fieldMargin_large : style.fieldMargin_medium : ''} ${style.radioContainer}`
|
|
@@ -4,7 +4,7 @@ import { defaultProps } from "./props/defaultProps";
|
|
|
4
4
|
import { propTypes } from "./props/propTypes";
|
|
5
5
|
/**** Components ****/
|
|
6
6
|
|
|
7
|
-
import Label from '@zohodesk/components/es/Label/Label';
|
|
7
|
+
import Label from '@zohodesk/components/es/v1/Label/Label';
|
|
8
8
|
import Select from '@zohodesk/components/es/Select/Select';
|
|
9
9
|
import ValidationMessage from "../ValidationMessage/ValidationMessage";
|
|
10
10
|
import { getUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
|
|
@@ -115,13 +115,23 @@ export default class SelectField extends PureComponent {
|
|
|
115
115
|
renderProps: renderLabelProps
|
|
116
116
|
}, /*#__PURE__*/React.createElement(Label, {
|
|
117
117
|
text: labelName,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
118
|
+
isRequired: isMandatory,
|
|
119
|
+
isDisabled: isDisabled,
|
|
120
|
+
isReadOnly: isReadOnly,
|
|
121
|
+
palette: labelPalette,
|
|
122
|
+
customClass: {
|
|
123
|
+
label: labelCustomClass
|
|
124
|
+
},
|
|
121
125
|
htmlFor: uniqueId,
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
126
|
+
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
127
|
+
testId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
128
|
+
customId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
129
|
+
tagAttributes: {
|
|
130
|
+
label: {
|
|
131
|
+
id: uniqueId
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
...LabelProps
|
|
125
135
|
})), /*#__PURE__*/React.createElement("div", {
|
|
126
136
|
className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''} ${fieldClass ? fieldClass : ''}`
|
|
127
137
|
}, /*#__PURE__*/React.createElement(Select, {
|
|
@@ -19,7 +19,7 @@ exports[`SelectField rendering the defult props 1`] = `
|
|
|
19
19
|
data-test-id="selectComponent"
|
|
20
20
|
>
|
|
21
21
|
<div
|
|
22
|
-
class="varClass customContainer
|
|
22
|
+
class="varClass customContainer border_bottom effect borderColor_default hasBorder container input flex rowdir"
|
|
23
23
|
data-selector-id="textBoxIcon"
|
|
24
24
|
>
|
|
25
25
|
<div
|
|
@@ -25,7 +25,7 @@ exports[`TagsMultiSelect rendering the defult props 1`] = `
|
|
|
25
25
|
class="custmSpan"
|
|
26
26
|
/>
|
|
27
27
|
<div
|
|
28
|
-
class="varClass customContainer
|
|
28
|
+
class="varClass customContainer effect container custmInp flex rowdir"
|
|
29
29
|
data-selector-id="textBoxIcon"
|
|
30
30
|
>
|
|
31
31
|
<div
|
|
@@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react';
|
|
|
2
2
|
import { defaultProps } from "./props/defaultProps";
|
|
3
3
|
import { propTypes } from "./props/propTypes";
|
|
4
4
|
import { Box } from '@zohodesk/components/es/Layout';
|
|
5
|
-
import Label from '@zohodesk/components/es/Label/Label';
|
|
5
|
+
import Label from '@zohodesk/components/es/v1/Label/Label';
|
|
6
6
|
import Popup from '@zohodesk/components/es/Popup/Popup';
|
|
7
7
|
import ValidationMessage from "../ValidationMessage/ValidationMessage";
|
|
8
8
|
import TagsMultiSelect from "../TagsMultiSelect/TagsMultiSelect";
|
|
@@ -206,13 +206,22 @@ const TagsMultiSelectField = props => {
|
|
|
206
206
|
}
|
|
207
207
|
}, /*#__PURE__*/React.createElement(Label, {
|
|
208
208
|
text: labelName,
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
palette:
|
|
213
|
-
customClass:
|
|
214
|
-
|
|
209
|
+
isRequired: isMandatory,
|
|
210
|
+
isDisabled: isDisabled,
|
|
211
|
+
isReadOnly: isReadOnly,
|
|
212
|
+
palette: labelPalette,
|
|
213
|
+
customClass: {
|
|
214
|
+
label: labelClass
|
|
215
|
+
},
|
|
215
216
|
htmlFor: htmlId,
|
|
217
|
+
size: labelSize,
|
|
218
|
+
testId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
219
|
+
customId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
220
|
+
tagAttributes: {
|
|
221
|
+
label: {
|
|
222
|
+
id
|
|
223
|
+
}
|
|
224
|
+
},
|
|
216
225
|
...LabelProps
|
|
217
226
|
}), selectedValueCount ? /*#__PURE__*/React.createElement(Box, {
|
|
218
227
|
dataId: `${dataId}_tagCount`,
|
|
@@ -31,7 +31,7 @@ exports[`TagsMultiSelectField rendering the defult props 1`] = `
|
|
|
31
31
|
class="custmSpan"
|
|
32
32
|
/>
|
|
33
33
|
<div
|
|
34
|
-
class="varClass customContainer
|
|
34
|
+
class="varClass customContainer effect container custmInp flex rowdir"
|
|
35
35
|
data-selector-id="textBoxIcon"
|
|
36
36
|
>
|
|
37
37
|
<div
|
|
@@ -4,7 +4,7 @@ import { defaultProps } from "./props/defaultProps";
|
|
|
4
4
|
import { propTypes } from "./props/propTypes";
|
|
5
5
|
/**** Components ****/
|
|
6
6
|
|
|
7
|
-
import Label from '@zohodesk/components/es/Label/Label';
|
|
7
|
+
import Label from '@zohodesk/components/es/v1/Label/Label';
|
|
8
8
|
import TextBoxIcon from '@zohodesk/components/es/TextBoxIcon/TextBoxIcon';
|
|
9
9
|
import ValidationMessage from "../ValidationMessage/ValidationMessage";
|
|
10
10
|
import { getUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
|
|
@@ -103,13 +103,23 @@ export default class TextBoxField extends PureComponent {
|
|
|
103
103
|
renderProps: renderLabelProps
|
|
104
104
|
}, /*#__PURE__*/React.createElement(Label, {
|
|
105
105
|
text: labelName,
|
|
106
|
+
isRequired: isMandatory,
|
|
107
|
+
isDisabled: isDisabled,
|
|
108
|
+
isReadOnly: isReadOnly,
|
|
109
|
+
palette: labelPalette,
|
|
110
|
+
customClass: {
|
|
111
|
+
label: labelCustomClass
|
|
112
|
+
},
|
|
106
113
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
107
|
-
|
|
108
|
-
customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
|
|
114
|
+
testId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
109
115
|
htmlFor: uniqueId,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
116
|
+
customId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
117
|
+
tagAttributes: {
|
|
118
|
+
label: {
|
|
119
|
+
id: labelName
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
...LabelProps
|
|
113
123
|
})), /*#__PURE__*/React.createElement("div", {
|
|
114
124
|
className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
|
|
115
125
|
}, /*#__PURE__*/React.createElement(TextBoxIcon, {
|