@zohodesk/components 1.0.0-temp-246 → 1.0.0-temp-247
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 +8 -8
- package/assets/Appearance/dark/mode/Component_DarkMode.module.css +198 -200
- package/assets/Appearance/dark/mode/Component_v1_DarkMode.module.css +8 -8
- package/assets/Appearance/dark/themes/blue/blue_CTA_DarkModifyCategory.module.css +465 -465
- package/assets/Appearance/dark/themes/blue/blue_CTA_DarkTheme.module.css +33 -33
- package/assets/Appearance/dark/themes/blue/blue_ComponentTheme_DarkTheme.module.css +28 -28
- package/assets/Appearance/dark/themes/green/green_CTA_DarkModifyCategory.module.css +465 -465
- package/assets/Appearance/dark/themes/green/green_CTA_DarkTheme.module.css +33 -33
- package/assets/Appearance/dark/themes/green/green_ComponentTheme_DarkTheme.module.css +28 -28
- package/assets/Appearance/dark/themes/orange/orange_CTA_DarkModifyCategory.module.css +465 -465
- package/assets/Appearance/dark/themes/orange/orange_CTA_DarkTheme.module.css +33 -33
- package/assets/Appearance/dark/themes/orange/orange_ComponentTheme_DarkTheme.module.css +28 -28
- package/assets/Appearance/dark/themes/red/red_CTA_DarkModifyCategory.module.css +465 -465
- package/assets/Appearance/dark/themes/red/red_CTA_DarkTheme.module.css +33 -33
- package/assets/Appearance/dark/themes/red/red_ComponentTheme_DarkTheme.module.css +28 -28
- package/assets/Appearance/dark/themes/yellow/yellow_CTA_DarkModifyCategory.module.css +465 -465
- package/assets/Appearance/dark/themes/yellow/yellow_CTA_DarkTheme.module.css +33 -33
- package/assets/Appearance/dark/themes/yellow/yellow_ComponentTheme_DarkTheme.module.css +28 -28
- package/assets/Appearance/light/mode/Component_LightMode.module.css +194 -196
- package/assets/Appearance/light/mode/Component_v1_LightMode.module.css +8 -8
- package/assets/Appearance/light/themes/blue/blue_CTA_LightModifyCategory.module.css +465 -465
- package/assets/Appearance/light/themes/blue/blue_CTA_LightTheme.module.css +33 -33
- package/assets/Appearance/light/themes/blue/blue_ComponentTheme_LightTheme.module.css +28 -28
- package/assets/Appearance/light/themes/green/green_CTA_LightModifyCategory.module.css +465 -465
- package/assets/Appearance/light/themes/green/green_CTA_LightTheme.module.css +33 -33
- package/assets/Appearance/light/themes/green/green_ComponentTheme_LightTheme.module.css +28 -28
- package/assets/Appearance/light/themes/orange/orange_CTA_LightModifyCategory.module.css +465 -465
- package/assets/Appearance/light/themes/orange/orange_CTA_LightTheme.module.css +33 -33
- package/assets/Appearance/light/themes/orange/orange_ComponentTheme_LightTheme.module.css +28 -28
- package/assets/Appearance/light/themes/red/red_CTA_LightModifyCategory.module.css +465 -465
- package/assets/Appearance/light/themes/red/red_CTA_LightTheme.module.css +33 -33
- package/assets/Appearance/light/themes/red/red_ComponentTheme_LightTheme.module.css +28 -28
- package/assets/Appearance/light/themes/yellow/yellow_CTA_LightModifyCategory.module.css +465 -465
- package/assets/Appearance/light/themes/yellow/yellow_CTA_LightTheme.module.css +33 -33
- package/assets/Appearance/light/themes/yellow/yellow_ComponentTheme_LightTheme.module.css +28 -28
- package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +200 -202
- package/assets/Appearance/pureDark/mode/Component_v1_PureDarkMode.module.css +8 -8
- package/assets/Appearance/pureDark/themes/blue/blue_CTA_PureDarkModifyCategory.module.css +465 -465
- package/assets/Appearance/pureDark/themes/blue/blue_CTA_PureDarkTheme.module.css +33 -33
- package/assets/Appearance/pureDark/themes/blue/blue_ComponentTheme_PureDarkTheme.module.css +28 -28
- package/assets/Appearance/pureDark/themes/green/green_CTA_PureDarkModifyCategory.module.css +465 -465
- package/assets/Appearance/pureDark/themes/green/green_CTA_PureDarkTheme.module.css +33 -33
- package/assets/Appearance/pureDark/themes/green/green_ComponentTheme_PureDarkTheme.module.css +28 -28
- package/assets/Appearance/pureDark/themes/orange/orange_CTA_PureDarkModifyCategory.module.css +465 -465
- package/assets/Appearance/pureDark/themes/orange/orange_CTA_PureDarkTheme.module.css +33 -33
- package/assets/Appearance/pureDark/themes/orange/orange_ComponentTheme_PureDarkTheme.module.css +28 -28
- package/assets/Appearance/pureDark/themes/red/red_CTA_PureDarkModifyCategory.module.css +465 -465
- package/assets/Appearance/pureDark/themes/red/red_CTA_PureDarkTheme.module.css +33 -33
- package/assets/Appearance/pureDark/themes/red/red_ComponentTheme_PureDarkTheme.module.css +28 -28
- package/assets/Appearance/pureDark/themes/yellow/yellow_CTA_PureDarkModifyCategory.module.css +465 -465
- package/assets/Appearance/pureDark/themes/yellow/yellow_CTA_PureDarkTheme.module.css +33 -33
- package/assets/Appearance/pureDark/themes/yellow/yellow_ComponentTheme_PureDarkTheme.module.css +28 -28
- package/es/AppContainer/AppContainer.js +1 -0
- package/es/AppContainer/AppContainer.module.css +3 -2
- package/es/Button/css/Button.module.css +13 -4
- package/es/CheckBox/CheckBox.js +10 -21
- package/es/CheckBox/CheckBox.module.css +6 -21
- package/es/CheckBox/__tests__/CheckBox.spec.js +0 -9
- package/es/CheckBox/__tests__/__snapshots__/CheckBox.spec.js.snap +93 -162
- package/es/CheckBox/props/propTypes.js +1 -4
- package/es/DateTime/DateTime.module.css +12 -9
- package/es/DateTime/YearView.module.css +1 -1
- package/es/Heading/Heading.module.css +1 -1
- package/es/Label/Label.js +1 -19
- package/es/Label/Label.module.css +8 -8
- package/es/Label/__tests__/Label.spec.js +0 -58
- package/es/Label/__tests__/__snapshots__/Label.spec.js.snap +0 -66
- package/es/Label/props/defaultProps.js +0 -1
- package/es/Label/props/propTypes.js +1 -7
- package/es/MultiSelect/MultiSelect.module.css +1 -1
- package/es/Radio/Radio.js +9 -20
- package/es/Radio/Radio.module.css +5 -38
- package/es/Radio/__tests__/Radio.spec.js +0 -10
- package/es/Radio/__tests__/__snapshots__/Radio.spec.js.snap +81 -238
- package/es/Radio/props/propTypes.js +1 -4
- package/es/Tab/Tabs.module.css +1 -1
- package/es/TextBox/TextBox.module.css +4 -4
- package/es/TextBoxIcon/TextBoxIcon.module.css +0 -6
- package/es/Textarea/Textarea.module.css +1 -1
- package/es/Tooltip/Tooltip.module.css +1 -1
- package/es/Typography/css/Typography.module.css +4 -4
- package/es/common/basic.module.css +39 -6
- package/es/common/basicReset.module.css +2 -2
- package/es/common/common.module.css +5 -5
- package/es/shared/InputFieldLine/InputFieldLine.module.css +1 -1
- package/es/v1/Tab/v1Tabs.module.css +1 -1
- package/es/v1/Typography/css/v1_Typography.module.css +4 -4
- package/lib/AppContainer/AppContainer.js +2 -0
- package/lib/AppContainer/AppContainer.module.css +3 -2
- package/lib/Button/css/Button.module.css +13 -4
- package/lib/CheckBox/CheckBox.js +9 -23
- package/lib/CheckBox/CheckBox.module.css +6 -21
- package/lib/CheckBox/__tests__/CheckBox.spec.js +12 -21
- package/lib/CheckBox/__tests__/__snapshots__/CheckBox.spec.js.snap +93 -162
- package/lib/CheckBox/props/propTypes.js +1 -5
- package/lib/DateTime/DateTime.module.css +12 -9
- package/lib/DateTime/YearView.module.css +1 -1
- package/lib/Heading/Heading.module.css +1 -1
- package/lib/Label/Label.js +1 -21
- package/lib/Label/Label.module.css +8 -8
- package/lib/Label/__tests__/Label.spec.js +0 -58
- package/lib/Label/__tests__/__snapshots__/Label.spec.js.snap +0 -66
- package/lib/Label/props/defaultProps.js +0 -1
- package/lib/Label/props/propTypes.js +1 -8
- package/lib/MultiSelect/MultiSelect.module.css +1 -1
- package/lib/Radio/Radio.js +8 -22
- package/lib/Radio/Radio.module.css +5 -38
- package/lib/Radio/__tests__/Radio.spec.js +0 -10
- package/lib/Radio/__tests__/__snapshots__/Radio.spec.js.snap +81 -238
- package/lib/Radio/props/propTypes.js +1 -5
- package/lib/Tab/Tabs.module.css +1 -1
- package/lib/TextBox/TextBox.module.css +4 -4
- package/lib/TextBoxIcon/TextBoxIcon.module.css +0 -6
- package/lib/Textarea/Textarea.module.css +1 -1
- package/lib/Tooltip/Tooltip.module.css +1 -1
- package/lib/Typography/css/Typography.module.css +4 -4
- package/lib/common/basic.module.css +39 -6
- package/lib/common/basicReset.module.css +2 -2
- package/lib/common/common.module.css +5 -5
- package/lib/shared/InputFieldLine/InputFieldLine.module.css +1 -1
- package/lib/v1/Tab/v1Tabs.module.css +1 -1
- package/lib/v1/Typography/css/v1_Typography.module.css +4 -4
- package/package.json +9 -9
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
[data-mode='pureDark'][data-theme='yellow'] {
|
|
2
2
|
/* CTA variables */
|
|
3
|
-
--zdt_cta_primary_text: hsla(37, 66.94
|
|
4
|
-
--zdt_cta_primary_hover_text: hsla(37, 66.48
|
|
5
|
-
--zdt_cta_primary_bg: hsla(37, 66.94
|
|
6
|
-
--zdt_cta_primary_hover_bg: hsla(39, 90.18
|
|
7
|
-
--zdt_cta_primary_border: hsla(37, 66.94
|
|
8
|
-
--zdt_cta_primary_hover_border: hsla(39, 90.18
|
|
9
|
-
--zdt_cta_primary_box_shadow:
|
|
10
|
-
--zdt_cta_primary_hover_box_shadow:
|
|
11
|
-
--zdt_cta_primary_light_bg: hsla(35, 15.00
|
|
12
|
-
--zdt_cta_primary_light_hover_bg: hsla(37, 12.70
|
|
13
|
-
--zdt_cta_primary_light_border: hsla(37, 12.70
|
|
14
|
-
--zdt_cta_secondary_bg: hsla(37, 66.94
|
|
15
|
-
--zdt_cta_secondary_text: hsla(0, 0.00
|
|
16
|
-
--zdt_cta_secondary_border: hsla(0, 0.00
|
|
17
|
-
--zdt_cta_secondary_light_border: hsla(38, 30.19
|
|
18
|
-
--zdt_cta_secondary_light_bg: hsla(38, 30.19
|
|
19
|
-
--zdt_cta_alpha_text: hsla(37, 66.94
|
|
20
|
-
--zdt_cta_alpha_hover_text: hsla(39, 90.18
|
|
21
|
-
--zdt_cta_alpha_border: hsla(37, 66.94
|
|
22
|
-
--zdt_cta_alpha_hover_border: hsla(39, 90.18
|
|
23
|
-
--zdt_cta_alpha_bg: hsla(220, 2.75
|
|
24
|
-
--zdt_cta_beta_border: hsla(37, 66.94
|
|
25
|
-
--zdt_cta_grey_10_bg: hsla(0, 0.00
|
|
26
|
-
--zdt_cta_grey_10_border: hsla(0, 0.00
|
|
27
|
-
--zdt_cta_grey_15_bg: hsla(0, 2.33
|
|
28
|
-
--zdt_cta_grey_15_border: hsla(0, 2.33
|
|
29
|
-
--zdt_cta_grey_20_bg: hsla(217, 22.81
|
|
30
|
-
--zdt_cta_grey_35_bg: hsla(0, 0.00
|
|
31
|
-
--zdt_cta_grey_35_text: hsla(0, 0.00
|
|
32
|
-
--zdt_cta_grey_35_border: hsla(0, 0.00
|
|
33
|
-
--zdt_cta_grey_40_bg: hsla(0, 0.00
|
|
34
|
-
--zdt_cta_grey_40_text: hsla(0, 0.00
|
|
35
|
-
--zdt_cta_grey_40_border: hsla(0, 0.00
|
|
3
|
+
--zdt_cta_primary_text: hsla(37, calc(var(--zd-saturation) * 66.94%), calc(52.55% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
4
|
+
--zdt_cta_primary_hover_text: hsla(37, calc(var(--zd-saturation) * 66.48%), calc(64.90% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
5
|
+
--zdt_cta_primary_bg: hsla(37, calc(var(--zd-saturation) * 66.94%), calc(52.55% + var(--zdc_darker_low)), calc(1 + var(--zdc_alpha_low)));
|
|
6
|
+
--zdt_cta_primary_hover_bg: hsla(39, calc(var(--zd-saturation) * 90.18%), calc(31.96% + var(--zdc_darker_low)), calc(1 + var(--zdc_alpha_low)));
|
|
7
|
+
--zdt_cta_primary_border: hsla(37, calc(var(--zd-saturation) * 66.94%), calc(52.55% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
8
|
+
--zdt_cta_primary_hover_border: hsla(39, calc(var(--zd-saturation) * 90.18%), calc(31.96% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
9
|
+
--zdt_cta_primary_box_shadow: hsla(46, calc(var(--zd-saturation) * 81.07%), 52.35, 0.2);
|
|
10
|
+
--zdt_cta_primary_hover_box_shadow: hsla(48, calc(var(--zd-saturation) * 100.00%), 35.49, 0.25);
|
|
11
|
+
--zdt_cta_primary_light_bg: hsla(35, calc(var(--zd-saturation) * 15.00%), calc(15.69% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
12
|
+
--zdt_cta_primary_light_hover_bg: hsla(37, calc(var(--zd-saturation) * 12.70%), calc(24.71% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
13
|
+
--zdt_cta_primary_light_border: hsla(37, calc(var(--zd-saturation) * 12.70%), calc(24.71% + var(--zdc_default_inverse_medium)), calc(1 + var(--zdc_alpha_low)));
|
|
14
|
+
--zdt_cta_secondary_bg: hsla(37, calc(var(--zd-saturation) * 66.94%), calc(52.55% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
15
|
+
--zdt_cta_secondary_text: hsla(0, calc(var(--zd-saturation) * 0.00%), calc(100.00% + var(--zdc_lighter_high)), calc(1 + var(--zdc_alpha_high)));
|
|
16
|
+
--zdt_cta_secondary_border: hsla(0, calc(var(--zd-saturation) * 0.00%), calc(100.00% + var(--zdc_default_inverse_medium)), calc( 0.15 + var(--zdc_alpha_low)));
|
|
17
|
+
--zdt_cta_secondary_light_border: hsla(38, calc(var(--zd-saturation) * 30.19%), calc(20.78% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
18
|
+
--zdt_cta_secondary_light_bg: hsla(38, calc(var(--zd-saturation) * 30.19%), calc(20.78% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
19
|
+
--zdt_cta_alpha_text: hsla(37, calc(var(--zd-saturation) * 66.94%), calc(52.55% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
20
|
+
--zdt_cta_alpha_hover_text: hsla(39, calc(var(--zd-saturation) * 90.18%), calc(31.96% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
21
|
+
--zdt_cta_alpha_border: hsla(37, calc(var(--zd-saturation) * 66.94%), calc(52.55% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
22
|
+
--zdt_cta_alpha_hover_border: hsla(39, calc(var(--zd-saturation) * 90.18%), calc(31.96% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
23
|
+
--zdt_cta_alpha_bg: hsla(220, calc(var(--zd-saturation) * 2.75%), calc(21.37% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
24
|
+
--zdt_cta_beta_border: hsla(37, calc(var(--zd-saturation) * 66.94%), calc(52.55% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
25
|
+
--zdt_cta_grey_10_bg: hsla(0, calc(var(--zd-saturation) * 0.00%), calc(14.90% + var(--zdc_darker_lowest)), calc(1 + var(--zdc_alpha_high)));
|
|
26
|
+
--zdt_cta_grey_10_border: hsla(0, calc(var(--zd-saturation) * 0.00%), calc(14.90% + var(--zdc_default_inverse_medium)), calc(1 + var(--zdc_alpha_low)));
|
|
27
|
+
--zdt_cta_grey_15_bg: hsla(0, calc(var(--zd-saturation) * 2.33%), calc(8.43% + var(--zdc_darker_lowest)), calc(1 + var(--zdc_alpha_high)));
|
|
28
|
+
--zdt_cta_grey_15_border: hsla(0, calc(var(--zd-saturation) * 2.33%), calc(8.43% + var(--zdc_default_inverse_medium)), calc(1 + var(--zdc_alpha_low)));
|
|
29
|
+
--zdt_cta_grey_20_bg: hsla(217, calc(var(--zd-saturation) * 22.81%), calc(11.18% + var(--zdc_darker_lowest)), calc(1 + var(--zdc_alpha_high)));
|
|
30
|
+
--zdt_cta_grey_35_bg: hsla(0, calc(var(--zd-saturation) * 0.00%), calc(34.51% + var(--zdc_darker_lowest)), calc(1 + var(--zdc_alpha_high)));
|
|
31
|
+
--zdt_cta_grey_35_text: hsla(0, calc(var(--zd-saturation) * 0.00%), calc(34.51% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
32
|
+
--zdt_cta_grey_35_border: hsla(0, calc(var(--zd-saturation) * 0.00%), calc(21.96% + var(--zdc_default_inverse_medium)), calc(1 + var(--zdc_alpha_low)));
|
|
33
|
+
--zdt_cta_grey_40_bg: hsla(0, calc(var(--zd-saturation) * 0.00%), calc(34.51% + var(--zdc_darker_lowest)), calc(1 + var(--zdc_alpha_high)));
|
|
34
|
+
--zdt_cta_grey_40_text: hsla(0, calc(var(--zd-saturation) * 0.00%), calc(34.51% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
35
|
+
--zdt_cta_grey_40_border: hsla(0, calc(var(--zd-saturation) * 0.00%), calc(34.51% + var(--zdc_default_inverse_medium)), calc(1 + var(--zdc_alpha_low)));
|
|
36
36
|
}
|
package/assets/Appearance/pureDark/themes/yellow/yellow_ComponentTheme_PureDarkTheme.module.css
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
[data-mode='pureDark'][data-theme='yellow'] {
|
|
2
2
|
/* stencil */
|
|
3
|
-
--zdt_stencil_dark_bg:
|
|
4
|
-
--zdt_stencil_dark_gradient_bg /* rtl:as:background-image */: linear-gradient(to left, #212121 0%, #262626 33.33%, #262626 66.66%, #212121 100%);
|
|
3
|
+
--zdt_stencil_dark_bg: hsla(0, calc(var(--zd-saturation) * 0.00%), 12.94, 1);
|
|
4
|
+
--zdt_stencil_dark_gradient_bg /* rtl:as:background-image */: var(--zd-gradient-saturation, linear-gradient(to left, #212121 0%, #262626 33.33%, #262626 66.66%, #212121 100%));
|
|
5
5
|
|
|
6
6
|
/* dropbox */
|
|
7
|
-
--zdt_dropbox_dark_bg:
|
|
7
|
+
--zdt_dropbox_dark_bg: hsla(0, calc(var(--zd-saturation) * 0.00%), 12.94, 1);
|
|
8
8
|
|
|
9
9
|
/* listitem */
|
|
10
|
-
--zdt_listitem_dark_bg:
|
|
11
|
-
--zdt_listitem_dark_text:
|
|
12
|
-
--zdt_listitem_dark_effect_bg:
|
|
13
|
-
--zdt_listitem_dark_active_bg:
|
|
14
|
-
--zdt_listitem_dark_tickicon:
|
|
10
|
+
--zdt_listitem_dark_bg: hsla(0, calc(var(--zd-saturation) * 0.00%), 12.94, 1);
|
|
11
|
+
--zdt_listitem_dark_text: hsla(210, calc(var(--zd-saturation) * 7.41%), 89.41, 1);
|
|
12
|
+
--zdt_listitem_dark_effect_bg: hsla(0, calc(var(--zd-saturation) * 0.00%), 16.86, 1);
|
|
13
|
+
--zdt_listitem_dark_active_bg: hsla(218, calc(var(--zd-saturation) * 29.76%), 32.94, 1);
|
|
14
|
+
--zdt_listitem_dark_tickicon: hsla(37, calc(var(--zd-saturation) * 66.94%), 52.55, 1);
|
|
15
15
|
|
|
16
16
|
/* tag */
|
|
17
|
-
--zdt_tag_dark_text:
|
|
18
|
-
--zdt_tag_dark_bg:
|
|
19
|
-
--zdt_tag_dark_hover_text:
|
|
20
|
-
--zdt_tag_dark_hover_bg:
|
|
21
|
-
--zdt_tag_dark_close_bg:
|
|
22
|
-
--zdt_tag_dark_close_text:
|
|
17
|
+
--zdt_tag_dark_text: hsla(240, calc(var(--zd-saturation) * 4.44%), 82.35, 1);
|
|
18
|
+
--zdt_tag_dark_bg: hsla(0, calc(var(--zd-saturation) * 0.00%), 14.90, 1);
|
|
19
|
+
--zdt_tag_dark_hover_text: hsla(240, calc(var(--zd-saturation) * 4.44%), 82.35, 1);
|
|
20
|
+
--zdt_tag_dark_hover_bg: hsla(317, calc(var(--zd-saturation) * 22.14%), 25.69, 1);
|
|
21
|
+
--zdt_tag_dark_close_bg: hsla(347, calc(var(--zd-saturation) * 31.37%), 40.00, 1);
|
|
22
|
+
--zdt_tag_dark_close_text: hsla(0, calc(var(--zd-saturation) * 71.91%), 53.92, 1);
|
|
23
23
|
|
|
24
24
|
/* multiselect */
|
|
25
|
-
--zdt_multiselect_dark_border:
|
|
26
|
-
--zdt_multiselect_darkmsg_bg:
|
|
27
|
-
--zdt_multiselect_darkmsg_text:
|
|
28
|
-
--zdt_multiselect_darkdelete_hover_text:
|
|
25
|
+
--zdt_multiselect_dark_border: hsla(0, calc(var(--zd-saturation) * 0.00%), 34.51, 1);
|
|
26
|
+
--zdt_multiselect_darkmsg_bg: hsla(0, calc(var(--zd-saturation) * 0.00%), 12.94, 1);
|
|
27
|
+
--zdt_multiselect_darkmsg_text: hsla(240, calc(var(--zd-saturation) * 4.44%), 82.35, 1);
|
|
28
|
+
--zdt_multiselect_darkdelete_hover_text: hsla(210, calc(var(--zd-saturation) * 7.41%), 89.41, 1);
|
|
29
29
|
|
|
30
30
|
/* avatar */
|
|
31
|
-
--zdt_avatar_white_border:
|
|
32
|
-
--zdt_avatar_white_text:
|
|
31
|
+
--zdt_avatar_white_border: hsla(0, calc(var(--zd-saturation) * 0.00%), 60.00, 1);
|
|
32
|
+
--zdt_avatar_white_text: hsla(0, calc(var(--zd-saturation) * 0.00%), 100.00, 1);
|
|
33
33
|
|
|
34
34
|
/* label */
|
|
35
|
-
--zdt_label_dark_text:
|
|
35
|
+
--zdt_label_dark_text: hsla(240, calc(var(--zd-saturation) * 4.44%), 82.35, 1);
|
|
36
36
|
|
|
37
37
|
/* textbox */
|
|
38
|
-
--zdt_textbox_light_text:
|
|
38
|
+
--zdt_textbox_light_text: hsla(0, calc(var(--zd-saturation) * 0.00%), 100.00, 1);
|
|
39
39
|
|
|
40
40
|
/* dropdown */
|
|
41
|
-
--zdt_dropdown_darkheading_text:
|
|
41
|
+
--zdt_dropdown_darkheading_text: hsla(0, calc(var(--zd-saturation) * 0.00%), 60.00, 1);
|
|
42
42
|
|
|
43
43
|
/* focusscope */
|
|
44
|
-
--zdt_a11y_focusScope_focus_border:
|
|
44
|
+
--zdt_a11y_focusScope_focus_border: hsla(37, calc(var(--zd-saturation) * 66.94%), 52.55, 1);
|
|
45
45
|
|
|
46
46
|
/* button */
|
|
47
|
-
--zdt_button_primary_strike: hsla(37, 66.94
|
|
48
|
-
--zdt_button_primaryFilled_strike: hsla(0, 0.00
|
|
49
|
-
--zdt_button_secondaryFilled_strike: hsla(0, 0.00
|
|
47
|
+
--zdt_button_primary_strike: hsla(37, calc(var(--zd-saturation) * 66.94%), calc(52.55% + var(--zdc_default_inverse_low)), calc( 0.33 + var(--zdc_alpha_low)));
|
|
48
|
+
--zdt_button_primaryFilled_strike: hsla(0, calc(var(--zd-saturation) * 0.00%), calc(100.00% + var(--zdc_default_inverse_low)), calc( 0.40 + var(--zdc_alpha_low)));
|
|
49
|
+
--zdt_button_secondaryFilled_strike: hsla(0, calc(var(--zd-saturation) * 0.00%), calc(34.51% + var(--zdc_default_inverse)), calc( 0.7 + var(--zdc_alpha_high)));
|
|
50
50
|
|
|
51
51
|
/* buttonloading */
|
|
52
|
-
--zdt_button_loading_primary_linear_gradient /* rtl:as:background */: linear-gradient(0deg, rgba(215, 152, 53, 1) 50%, rgba(215, 152, 53, 0.9) 100%) 0% 0%, linear-gradient(90deg, rgba(215, 152, 53, 0.9) 0%, rgba(215, 152, 53, 0.6) 100%) 100% 0%, linear-gradient(180deg, rgba(215, 152, 53, 0.6) 0%, rgba(215, 152, 53, 0.3) 100%) 100% 100%, linear-gradient(360deg, rgba(215, 152, 53, 0.3) 0%, rgba(215, 152, 53, 0) 100%) 0% 100
|
|
52
|
+
--zdt_button_loading_primary_linear_gradient /* rtl:as:background */: var(--zd-gradient-saturation, linear-gradient(0deg, rgba(215, 152, 53, 1) 50%, rgba(215, 152, 53, 0.9) 100%) 0% 0%, linear-gradient(90deg, rgba(215, 152, 53, 0.9) 0%, rgba(215, 152, 53, 0.6) 100%) 100% 0%, linear-gradient(180deg, rgba(215, 152, 53, 0.6) 0%, rgba(215, 152, 53, 0.3) 100%) 100% 100%, linear-gradient(360deg, rgba(215, 152, 53, 0.3) 0%, rgba(215, 152, 53, 0) 100%) 0% 100%);
|
|
53
53
|
}
|
|
@@ -9,6 +9,7 @@ import '@zohodesk/variables/assets/dotVariables.module.css';
|
|
|
9
9
|
import '@zohodesk/variables/assets/sizeVariables.module.css';
|
|
10
10
|
import '@zohodesk/variables/assets/fontsizeVariables.module.css';
|
|
11
11
|
import '@zohodesk/variables/es/fontFamilyVariables.module.css';
|
|
12
|
+
import '@zohodesk/variables/es/fontWeightVariables.module.css';
|
|
12
13
|
import '@zohodesk/variables/assets/transitionVariables.module.css';
|
|
13
14
|
import '@zohodesk/variables/assets/no_transitionVariables.module.css';
|
|
14
15
|
import "../common/a11y.module.css";
|
|
@@ -8,8 +8,9 @@
|
|
|
8
8
|
-moz-box-sizing: border-box;
|
|
9
9
|
-ms-box-sizing: border-box;
|
|
10
10
|
}
|
|
11
|
-
.container {
|
|
12
|
-
font-family: var(--zd_regular);
|
|
11
|
+
.container, .container button, .container input, .container textarea ,.container select {
|
|
12
|
+
/* font-family: var(--zd_regular); */
|
|
13
|
+
font-family: var(--zd-font-family), var(--zd_fallback_font, ZDLato);
|
|
13
14
|
}
|
|
14
15
|
.tooltip {
|
|
15
16
|
height: 0 ;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
--button_cursor: pointer;
|
|
6
6
|
--button_font_size: var(--zd_font_size13);
|
|
7
7
|
--button_text_color: var(--zdt_button_default_text);
|
|
8
|
-
--
|
|
8
|
+
--button_font_weight: var(--zd-fw-normal);
|
|
9
9
|
--button_text_transform: capitalize;
|
|
10
10
|
--button_bg_color: var(--zdt_button_default_bg);
|
|
11
11
|
--button_border_radius: 4px;
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
position: relative;
|
|
50
50
|
font-size: var(--button_font_size);
|
|
51
51
|
color: var(--button_text_color);
|
|
52
|
-
font-
|
|
52
|
+
font-weight: var(--button_font_weight);
|
|
53
53
|
text-transform: var(--button_text_transform);
|
|
54
54
|
min-width: var(--button_min_width);
|
|
55
55
|
height: var(--button_height);
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
.bold {
|
|
66
|
-
--
|
|
66
|
+
--button_font_weight: var(--zd-fw-semibold);
|
|
67
67
|
composes: ftsmooth from '../../common/common.module.css';
|
|
68
68
|
}
|
|
69
69
|
|
|
@@ -623,7 +623,7 @@
|
|
|
623
623
|
}
|
|
624
624
|
|
|
625
625
|
.loader {
|
|
626
|
-
color: var(--dot_mirror)
|
|
626
|
+
color: var(--dot_mirror);
|
|
627
627
|
}
|
|
628
628
|
|
|
629
629
|
[dir=ltr] .strike {
|
|
@@ -633,34 +633,43 @@
|
|
|
633
633
|
[dir=rtl] .strike {
|
|
634
634
|
background-image: repeating-linear-gradient(-120deg, var(--button_strike_color) 0 1px, transparent 1px 8px);
|
|
635
635
|
}
|
|
636
|
+
|
|
636
637
|
.primaryStrike {
|
|
637
638
|
--button_strike_color: var(--zdt_button_primary_strike);
|
|
638
639
|
}
|
|
640
|
+
|
|
639
641
|
.primaryfilledStrike {
|
|
640
642
|
--button_strike_color: var(--zdt_button_primaryFilled_strike);
|
|
641
643
|
--button_border_color: var(--zdt_button_primaryfill_bg);
|
|
642
644
|
}
|
|
645
|
+
|
|
643
646
|
.dangerStrike {
|
|
644
647
|
--button_strike_color: var(--zdt_button_danger_strike);
|
|
645
648
|
}
|
|
649
|
+
|
|
646
650
|
.dangerfilledStrike {
|
|
647
651
|
--button_strike_color: var(--zdt_button_dangerFilled_strike);
|
|
648
652
|
--button_border_color: var(--zdt_button_dangerfill_bg);
|
|
649
653
|
}
|
|
654
|
+
|
|
650
655
|
.secondaryStrike {
|
|
651
656
|
--button_strike_color: var(--zdt_button_secondary_border);
|
|
652
657
|
}
|
|
658
|
+
|
|
653
659
|
.secondaryfilledStrike {
|
|
654
660
|
--button_strike_color: var(--zdt_button_secondaryFilled_strike);
|
|
655
661
|
--button_border_color: var(--zdt_button_secondaryfill_bg);
|
|
656
662
|
}
|
|
663
|
+
|
|
657
664
|
.tertiaryfilledStrike {
|
|
658
665
|
--button_strike_color: var(--zdt_button_tertiaryFilled_strike);
|
|
659
666
|
--button_border_color: var(--zdt_button_tertiaryfill_bg);
|
|
660
667
|
}
|
|
668
|
+
|
|
661
669
|
.successStrike {
|
|
662
670
|
--button_strike_color: var(--zdt_button_success_strike);
|
|
663
671
|
}
|
|
672
|
+
|
|
664
673
|
.successfilledStrike {
|
|
665
674
|
--button_strike_color: var(--zdt_button_successFilled_strike);
|
|
666
675
|
--button_border_color: var(--zdt_button_successfill_border);
|
package/es/CheckBox/CheckBox.js
CHANGED
|
@@ -2,7 +2,6 @@ import React from 'react';
|
|
|
2
2
|
import { propTypes } from "./props/propTypes";
|
|
3
3
|
import { defaultProps } from "./props/defaultProps";
|
|
4
4
|
import Label from "../Label/Label";
|
|
5
|
-
import Typography from "../Typography/Typography";
|
|
6
5
|
import { Container, Box } from "../Layout";
|
|
7
6
|
import CssProvider from "../Provider/CssProvider";
|
|
8
7
|
import style from "./CheckBox.module.css";
|
|
@@ -54,20 +53,17 @@ export default class CheckBox extends React.Component {
|
|
|
54
53
|
customClass,
|
|
55
54
|
customProps,
|
|
56
55
|
dataSelectorId,
|
|
57
|
-
renderRightPlaceholderNode
|
|
58
|
-
secondaryText
|
|
56
|
+
renderRightPlaceholderNode
|
|
59
57
|
} = this.props;
|
|
60
58
|
let {
|
|
61
59
|
CheckBoxProps = {},
|
|
62
|
-
LabelProps = {}
|
|
63
|
-
secondaryTextProps = {}
|
|
60
|
+
LabelProps = {}
|
|
64
61
|
} = customProps;
|
|
65
62
|
let {
|
|
66
63
|
customCheckBox = '',
|
|
67
64
|
customLabel = '',
|
|
68
65
|
customCBoxSize = '',
|
|
69
|
-
customTickSize = ''
|
|
70
|
-
customSecondaryText = ''
|
|
66
|
+
customTickSize = ''
|
|
71
67
|
} = customClass;
|
|
72
68
|
let accessMode = isReadOnly ? style.readonly : disabled ? CssProvider('isDisabled') : style.pointer;
|
|
73
69
|
let toolTip = disabled ? disabledTitle : title ? title : null;
|
|
@@ -99,8 +95,7 @@ export default class CheckBox extends React.Component {
|
|
|
99
95
|
dataSelectorId: dataSelectorId || id,
|
|
100
96
|
...CheckBoxProps
|
|
101
97
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
102
|
-
className: `${style.boxContainer} ${
|
|
103
|
-
align: secondaryText ? "start" : undefined
|
|
98
|
+
className: `${style.boxContainer} ${style[size]} ${customCBoxSize} ${isFilled ? style.filled : ''} ${!isEditable ? `${style[`disabled`]}` : ''}`
|
|
104
99
|
}, /*#__PURE__*/React.createElement("input", {
|
|
105
100
|
type: "hidden",
|
|
106
101
|
id: id,
|
|
@@ -148,10 +143,10 @@ export default class CheckBox extends React.Component {
|
|
|
148
143
|
y1: "20",
|
|
149
144
|
x2: "28.53",
|
|
150
145
|
y2: "20"
|
|
151
|
-
}) : null))),
|
|
146
|
+
}) : null))), text && /*#__PURE__*/React.createElement(Box, {
|
|
152
147
|
flexible: true,
|
|
153
|
-
className: style.
|
|
154
|
-
},
|
|
148
|
+
className: style.text
|
|
149
|
+
}, /*#__PURE__*/React.createElement(Label, {
|
|
155
150
|
text: text,
|
|
156
151
|
palette: disabled ? 'disable' : labelPalette,
|
|
157
152
|
id: id,
|
|
@@ -160,17 +155,11 @@ export default class CheckBox extends React.Component {
|
|
|
160
155
|
clipped: isClipped,
|
|
161
156
|
variant: variant,
|
|
162
157
|
customClass: `${active && !disabled ? `${style[`active${palette}Label`]}` : ''}
|
|
163
|
-
|
|
164
|
-
|
|
158
|
+
${checked && active ? `${style[`checked${palette}Label`]}` : ''}
|
|
159
|
+
${accessMode} ${customLabel}`,
|
|
165
160
|
title: toolTip ? toolTip : text,
|
|
166
161
|
...LabelProps
|
|
167
|
-
}),
|
|
168
|
-
$ui_size: "12",
|
|
169
|
-
$ui_lineHeight: "1.2",
|
|
170
|
-
...secondaryTextProps,
|
|
171
|
-
$i18n_dataTitle: toolTip ? null : secondaryText,
|
|
172
|
-
$ui_className: `${style.secondaryText} ${customSecondaryText}`
|
|
173
|
-
}, secondaryText) : null), renderRightPlaceholderNode ? renderRightPlaceholderNode : null);
|
|
162
|
+
})), renderRightPlaceholderNode ? renderRightPlaceholderNode : null);
|
|
174
163
|
}
|
|
175
164
|
|
|
176
165
|
}
|
|
@@ -90,6 +90,12 @@
|
|
|
90
90
|
[dir=rtl] .linePath {
|
|
91
91
|
animation: lineAnimate var(--zd_transition3) ease forwards;
|
|
92
92
|
}
|
|
93
|
+
[dir=ltr] .text {
|
|
94
|
+
margin-left: var(--zd_size6) ;
|
|
95
|
+
}
|
|
96
|
+
[dir=rtl] .text {
|
|
97
|
+
margin-right: var(--zd_size6) ;
|
|
98
|
+
}
|
|
93
99
|
|
|
94
100
|
.checkedprimary,
|
|
95
101
|
.checkeddanger {
|
|
@@ -135,27 +141,6 @@
|
|
|
135
141
|
.disabled {
|
|
136
142
|
opacity: 0.7
|
|
137
143
|
}
|
|
138
|
-
|
|
139
|
-
.withSecondaryText {
|
|
140
|
-
margin-top: var(--zd_size1) ;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
.secondaryText {
|
|
144
|
-
color: var(--zdt_checkbox_secondary_text);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.labelContainer {
|
|
148
|
-
composes: dflex flexcolumn from '../common/common.module.css';
|
|
149
|
-
gap: var(--zd_size4) ;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
[dir=ltr] .labelContainer {
|
|
153
|
-
margin-left: var(--zd_size6) ;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
[dir=rtl] .labelContainer {
|
|
157
|
-
margin-right: var(--zd_size6) ;
|
|
158
|
-
}
|
|
159
144
|
@keyframes tickAnimate {
|
|
160
145
|
0% {
|
|
161
146
|
stroke-dashoffset: 40;
|
|
@@ -160,15 +160,6 @@ describe('CheckBox component', () => {
|
|
|
160
160
|
}));
|
|
161
161
|
expect(asFragment()).toMatchSnapshot();
|
|
162
162
|
});
|
|
163
|
-
test('Should render secondaryText', () => {
|
|
164
|
-
const {
|
|
165
|
-
asFragment
|
|
166
|
-
} = render( /*#__PURE__*/React.createElement(CheckBox, {
|
|
167
|
-
text: "checkboxText",
|
|
168
|
-
secondaryText: "secondaryText"
|
|
169
|
-
}));
|
|
170
|
-
expect(asFragment()).toMatchSnapshot();
|
|
171
|
-
});
|
|
172
163
|
test('Should be render activeStyle is minus', () => {
|
|
173
164
|
const {
|
|
174
165
|
asFragment
|