@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.
Files changed (123) hide show
  1. package/README.md +8 -8
  2. package/assets/Appearance/dark/mode/Component_DarkMode.module.css +198 -200
  3. package/assets/Appearance/dark/mode/Component_v1_DarkMode.module.css +8 -8
  4. package/assets/Appearance/dark/themes/blue/blue_CTA_DarkModifyCategory.module.css +465 -465
  5. package/assets/Appearance/dark/themes/blue/blue_CTA_DarkTheme.module.css +33 -33
  6. package/assets/Appearance/dark/themes/blue/blue_ComponentTheme_DarkTheme.module.css +28 -28
  7. package/assets/Appearance/dark/themes/green/green_CTA_DarkModifyCategory.module.css +465 -465
  8. package/assets/Appearance/dark/themes/green/green_CTA_DarkTheme.module.css +33 -33
  9. package/assets/Appearance/dark/themes/green/green_ComponentTheme_DarkTheme.module.css +28 -28
  10. package/assets/Appearance/dark/themes/orange/orange_CTA_DarkModifyCategory.module.css +465 -465
  11. package/assets/Appearance/dark/themes/orange/orange_CTA_DarkTheme.module.css +33 -33
  12. package/assets/Appearance/dark/themes/orange/orange_ComponentTheme_DarkTheme.module.css +28 -28
  13. package/assets/Appearance/dark/themes/red/red_CTA_DarkModifyCategory.module.css +465 -465
  14. package/assets/Appearance/dark/themes/red/red_CTA_DarkTheme.module.css +33 -33
  15. package/assets/Appearance/dark/themes/red/red_ComponentTheme_DarkTheme.module.css +28 -28
  16. package/assets/Appearance/dark/themes/yellow/yellow_CTA_DarkModifyCategory.module.css +465 -465
  17. package/assets/Appearance/dark/themes/yellow/yellow_CTA_DarkTheme.module.css +33 -33
  18. package/assets/Appearance/dark/themes/yellow/yellow_ComponentTheme_DarkTheme.module.css +28 -28
  19. package/assets/Appearance/light/mode/Component_LightMode.module.css +194 -196
  20. package/assets/Appearance/light/mode/Component_v1_LightMode.module.css +8 -8
  21. package/assets/Appearance/light/themes/blue/blue_CTA_LightModifyCategory.module.css +465 -465
  22. package/assets/Appearance/light/themes/blue/blue_CTA_LightTheme.module.css +33 -33
  23. package/assets/Appearance/light/themes/blue/blue_ComponentTheme_LightTheme.module.css +28 -28
  24. package/assets/Appearance/light/themes/green/green_CTA_LightModifyCategory.module.css +465 -465
  25. package/assets/Appearance/light/themes/green/green_CTA_LightTheme.module.css +33 -33
  26. package/assets/Appearance/light/themes/green/green_ComponentTheme_LightTheme.module.css +28 -28
  27. package/assets/Appearance/light/themes/orange/orange_CTA_LightModifyCategory.module.css +465 -465
  28. package/assets/Appearance/light/themes/orange/orange_CTA_LightTheme.module.css +33 -33
  29. package/assets/Appearance/light/themes/orange/orange_ComponentTheme_LightTheme.module.css +28 -28
  30. package/assets/Appearance/light/themes/red/red_CTA_LightModifyCategory.module.css +465 -465
  31. package/assets/Appearance/light/themes/red/red_CTA_LightTheme.module.css +33 -33
  32. package/assets/Appearance/light/themes/red/red_ComponentTheme_LightTheme.module.css +28 -28
  33. package/assets/Appearance/light/themes/yellow/yellow_CTA_LightModifyCategory.module.css +465 -465
  34. package/assets/Appearance/light/themes/yellow/yellow_CTA_LightTheme.module.css +33 -33
  35. package/assets/Appearance/light/themes/yellow/yellow_ComponentTheme_LightTheme.module.css +28 -28
  36. package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +200 -202
  37. package/assets/Appearance/pureDark/mode/Component_v1_PureDarkMode.module.css +8 -8
  38. package/assets/Appearance/pureDark/themes/blue/blue_CTA_PureDarkModifyCategory.module.css +465 -465
  39. package/assets/Appearance/pureDark/themes/blue/blue_CTA_PureDarkTheme.module.css +33 -33
  40. package/assets/Appearance/pureDark/themes/blue/blue_ComponentTheme_PureDarkTheme.module.css +28 -28
  41. package/assets/Appearance/pureDark/themes/green/green_CTA_PureDarkModifyCategory.module.css +465 -465
  42. package/assets/Appearance/pureDark/themes/green/green_CTA_PureDarkTheme.module.css +33 -33
  43. package/assets/Appearance/pureDark/themes/green/green_ComponentTheme_PureDarkTheme.module.css +28 -28
  44. package/assets/Appearance/pureDark/themes/orange/orange_CTA_PureDarkModifyCategory.module.css +465 -465
  45. package/assets/Appearance/pureDark/themes/orange/orange_CTA_PureDarkTheme.module.css +33 -33
  46. package/assets/Appearance/pureDark/themes/orange/orange_ComponentTheme_PureDarkTheme.module.css +28 -28
  47. package/assets/Appearance/pureDark/themes/red/red_CTA_PureDarkModifyCategory.module.css +465 -465
  48. package/assets/Appearance/pureDark/themes/red/red_CTA_PureDarkTheme.module.css +33 -33
  49. package/assets/Appearance/pureDark/themes/red/red_ComponentTheme_PureDarkTheme.module.css +28 -28
  50. package/assets/Appearance/pureDark/themes/yellow/yellow_CTA_PureDarkModifyCategory.module.css +465 -465
  51. package/assets/Appearance/pureDark/themes/yellow/yellow_CTA_PureDarkTheme.module.css +33 -33
  52. package/assets/Appearance/pureDark/themes/yellow/yellow_ComponentTheme_PureDarkTheme.module.css +28 -28
  53. package/es/AppContainer/AppContainer.js +1 -0
  54. package/es/AppContainer/AppContainer.module.css +3 -2
  55. package/es/Button/css/Button.module.css +13 -4
  56. package/es/CheckBox/CheckBox.js +10 -21
  57. package/es/CheckBox/CheckBox.module.css +6 -21
  58. package/es/CheckBox/__tests__/CheckBox.spec.js +0 -9
  59. package/es/CheckBox/__tests__/__snapshots__/CheckBox.spec.js.snap +93 -162
  60. package/es/CheckBox/props/propTypes.js +1 -4
  61. package/es/DateTime/DateTime.module.css +12 -9
  62. package/es/DateTime/YearView.module.css +1 -1
  63. package/es/Heading/Heading.module.css +1 -1
  64. package/es/Label/Label.js +1 -19
  65. package/es/Label/Label.module.css +8 -8
  66. package/es/Label/__tests__/Label.spec.js +0 -58
  67. package/es/Label/__tests__/__snapshots__/Label.spec.js.snap +0 -66
  68. package/es/Label/props/defaultProps.js +0 -1
  69. package/es/Label/props/propTypes.js +1 -7
  70. package/es/MultiSelect/MultiSelect.module.css +1 -1
  71. package/es/Radio/Radio.js +9 -20
  72. package/es/Radio/Radio.module.css +5 -38
  73. package/es/Radio/__tests__/Radio.spec.js +0 -10
  74. package/es/Radio/__tests__/__snapshots__/Radio.spec.js.snap +81 -238
  75. package/es/Radio/props/propTypes.js +1 -4
  76. package/es/Tab/Tabs.module.css +1 -1
  77. package/es/TextBox/TextBox.module.css +4 -4
  78. package/es/TextBoxIcon/TextBoxIcon.module.css +0 -6
  79. package/es/Textarea/Textarea.module.css +1 -1
  80. package/es/Tooltip/Tooltip.module.css +1 -1
  81. package/es/Typography/css/Typography.module.css +4 -4
  82. package/es/common/basic.module.css +39 -6
  83. package/es/common/basicReset.module.css +2 -2
  84. package/es/common/common.module.css +5 -5
  85. package/es/shared/InputFieldLine/InputFieldLine.module.css +1 -1
  86. package/es/v1/Tab/v1Tabs.module.css +1 -1
  87. package/es/v1/Typography/css/v1_Typography.module.css +4 -4
  88. package/lib/AppContainer/AppContainer.js +2 -0
  89. package/lib/AppContainer/AppContainer.module.css +3 -2
  90. package/lib/Button/css/Button.module.css +13 -4
  91. package/lib/CheckBox/CheckBox.js +9 -23
  92. package/lib/CheckBox/CheckBox.module.css +6 -21
  93. package/lib/CheckBox/__tests__/CheckBox.spec.js +12 -21
  94. package/lib/CheckBox/__tests__/__snapshots__/CheckBox.spec.js.snap +93 -162
  95. package/lib/CheckBox/props/propTypes.js +1 -5
  96. package/lib/DateTime/DateTime.module.css +12 -9
  97. package/lib/DateTime/YearView.module.css +1 -1
  98. package/lib/Heading/Heading.module.css +1 -1
  99. package/lib/Label/Label.js +1 -21
  100. package/lib/Label/Label.module.css +8 -8
  101. package/lib/Label/__tests__/Label.spec.js +0 -58
  102. package/lib/Label/__tests__/__snapshots__/Label.spec.js.snap +0 -66
  103. package/lib/Label/props/defaultProps.js +0 -1
  104. package/lib/Label/props/propTypes.js +1 -8
  105. package/lib/MultiSelect/MultiSelect.module.css +1 -1
  106. package/lib/Radio/Radio.js +8 -22
  107. package/lib/Radio/Radio.module.css +5 -38
  108. package/lib/Radio/__tests__/Radio.spec.js +0 -10
  109. package/lib/Radio/__tests__/__snapshots__/Radio.spec.js.snap +81 -238
  110. package/lib/Radio/props/propTypes.js +1 -5
  111. package/lib/Tab/Tabs.module.css +1 -1
  112. package/lib/TextBox/TextBox.module.css +4 -4
  113. package/lib/TextBoxIcon/TextBoxIcon.module.css +0 -6
  114. package/lib/Textarea/Textarea.module.css +1 -1
  115. package/lib/Tooltip/Tooltip.module.css +1 -1
  116. package/lib/Typography/css/Typography.module.css +4 -4
  117. package/lib/common/basic.module.css +39 -6
  118. package/lib/common/basicReset.module.css +2 -2
  119. package/lib/common/common.module.css +5 -5
  120. package/lib/shared/InputFieldLine/InputFieldLine.module.css +1 -1
  121. package/lib/v1/Tab/v1Tabs.module.css +1 -1
  122. package/lib/v1/Typography/css/v1_Typography.module.css +4 -4
  123. package/package.json +9 -9
@@ -1,10 +1,8 @@
1
1
  import PropTypes from 'prop-types';
2
- import { propTypes as TypographyPropTypes } from "../../Typography/props/propTypes";
3
2
  export const propTypes = {
4
3
  active: PropTypes.bool,
5
4
  checked: PropTypes.bool,
6
5
  disabled: PropTypes.bool,
7
- secondaryText: PropTypes.string,
8
6
  disabledTitle: PropTypes.string,
9
7
  getRef: PropTypes.func,
10
8
  id: PropTypes.string,
@@ -25,8 +23,7 @@ export const propTypes = {
25
23
  }),
26
24
  customProps: PropTypes.exact({
27
25
  ContainerProps: PropTypes.object,
28
- LabelProps: PropTypes.object,
29
- secondaryTextProps: PropTypes.exact(TypographyPropTypes)
26
+ LabelProps: PropTypes.object
30
27
  }),
31
28
  a11y: PropTypes.shape({
32
29
  ariaChecked: PropTypes.bool,
@@ -145,7 +145,7 @@
145
145
  }
146
146
 
147
147
  .emptyStateTitle {
148
- font-family: var(--zd_semibold);
148
+ font-weight: var(--zd-fw-semibold);
149
149
  word-wrap: break-word;
150
150
  font-size: var(--zd_font_size16) ;
151
151
  max-width: var(--zd_size430) ;
@@ -9,7 +9,7 @@
9
9
  --textbox_width: 100%;
10
10
  --textbox_height: var(--zd_size35);
11
11
  --textbox_border_radius: none;
12
- --textbox_font_family: var(--zd_regular);
12
+ --textbox_font_weight: var(--zd-fw-normal);
13
13
  /* Variable:Ignore */
14
14
  --textbox_letter_spacing: 0.1px;
15
15
  --textbox_padding: 0;
@@ -166,18 +166,18 @@
166
166
  .primary,
167
167
  .secondary,
168
168
  .light {
169
- font-family: var(--textbox_font_family);
169
+ font-weight: var(--textbox_font_weight);
170
170
  }
171
171
 
172
172
  .primary {
173
173
  --textbox_text_color: var(--zdt_textbox_default_text);
174
- --textbox_font_family: var(--zd_semibold);
174
+ --textbox_font_weight: var(--zd-fw-semibold);
175
175
  composes: ftsmooth from '../common/common.module.css';
176
176
  }
177
177
 
178
178
  .secondary {
179
179
  --textbox_text_color: var(--zdt_textbox_secondary_text);
180
- --textbox_font_family: var(--zd_light);
180
+ --textbox_font_weight: var(--zd-fw-light);
181
181
  }
182
182
 
183
183
  .light {
@@ -1,8 +1,4 @@
1
1
  .varClass {
2
- /* textboxicon default variables */
3
- --textboxicon_line_height: 1px;
4
- --textboxicon_line_color: var(--zdt_textboxicon_default_line_bg);
5
-
6
2
  /* textboxicon icon default variables */
7
3
  --textboxicon_icon_margin: 0 var(--zd_size5);
8
4
  --textboxicon_icon_cursor: pointer;
@@ -11,8 +7,6 @@
11
7
  .container {
12
8
  composes: varClass;
13
9
  position: relative;
14
- --local_inputFieldLine_border_width: var(--textboxicon_line_height);
15
- --local_inputFieldLine_border_color: var(--textboxicon_line_color);
16
10
  }
17
11
  .disabled,.readonly {
18
12
  --textboxicon_icon_cursor: not-allowed;
@@ -139,7 +139,7 @@
139
139
  --textarea_height: var(--zd_size184);
140
140
  }
141
141
  .default {
142
- font-family: var(--zd_regular);
142
+ font-weight: var(--zd-fw-normal);
143
143
  --textarea_text_color: var(--zdt_textarea_black_text);
144
144
  }
145
145
  .primary {
@@ -14,7 +14,7 @@
14
14
  .tooltipcont {
15
15
  color: var(--zdt_tooltip_default_text);
16
16
  font-size: var(--zd_font_size13) ;
17
- font-family: var(--zd_semibold);
17
+ font-weight: var(--zd-fw-semibold);
18
18
  word-break: break-word;
19
19
  max-width: var(--zd_size420) ;
20
20
  line-height: 1.5385;
@@ -25,20 +25,20 @@
25
25
  }
26
26
 
27
27
  .font_regular {
28
- font-family: var(--zd_regular);
28
+ font-weight: var(--zd-fw-normal);
29
29
  }
30
30
 
31
31
  .font_light {
32
- font-family: var(--zd_light);
32
+ font-weight: var(--zd-fw-light);
33
33
  }
34
34
 
35
35
  .font_semibold {
36
- font-family: var(--zd_semibold);
36
+ font-weight: var(--zd-fw-semibold);
37
37
  composes: ftsmooth from '../../common/common.module.css';
38
38
  }
39
39
 
40
40
  .font_bold {
41
- font-family: var(--zd_bold);
41
+ font-weight: var(--zd-fw-bold);
42
42
  composes: ftsmooth from '../../common/common.module.css';
43
43
  }
44
44
 
@@ -1,15 +1,15 @@
1
1
  @font-face {
2
- font-family: Regular;
3
- src: url('https://static.zohocdn.com/webfonts/lato2regular/font.woff2') format('woff2');
4
- font-weight: 400;
2
+ font-family: Light;
3
+ src: url('https://static.zohocdn.com/webfonts/lato2light/font.woff2') format('woff2');
4
+ font-weight: 300;
5
5
  font-style: normal;
6
6
  font-display: swap;
7
7
  }
8
8
 
9
9
  @font-face {
10
- font-family: Light;
11
- src: url('https://static.zohocdn.com/webfonts/lato2light/font.woff2') format('woff2');
12
- font-weight: 300;
10
+ font-family: Regular;
11
+ src: url('https://static.zohocdn.com/webfonts/lato2regular/font.woff2') format('woff2');
12
+ font-weight: 400;
13
13
  font-style: normal;
14
14
  font-display: swap;
15
15
  }
@@ -29,3 +29,36 @@
29
29
  font-style: normal;
30
30
  font-display: swap;
31
31
  }
32
+
33
+
34
+ @font-face {
35
+ font-family: ZDLato;
36
+ src: url('https://static.zohocdn.com/webfonts/lato2light/font.woff2') format('woff2');
37
+ font-weight: 100 300;
38
+ font-style: normal;
39
+ font-display: swap;
40
+ }
41
+
42
+ @font-face {
43
+ font-family: ZDLato;
44
+ src: url('https://static.zohocdn.com/webfonts/lato2regular/font.woff2') format('woff2');
45
+ font-weight: 400;
46
+ font-style: normal;
47
+ font-display: swap;
48
+ }
49
+
50
+ @font-face {
51
+ font-family: ZDLato;
52
+ src: url('https://static.zohocdn.com/webfonts/lato2semibold/font.woff2') format('woff2');
53
+ font-weight: 500 600;
54
+ font-style: normal;
55
+ font-display: swap;
56
+ }
57
+
58
+ @font-face {
59
+ font-family: ZDLato;
60
+ src: url('https://static.zohocdn.com/webfonts/lato2bold/font.woff2') format('woff2');
61
+ font-weight: 700 900;
62
+ font-style: normal;
63
+ font-display: swap;
64
+ }
@@ -27,7 +27,7 @@ html {
27
27
  }
28
28
 
29
29
  textarea {
30
- font-family: var(--zd_regular);
30
+ font-weight: var(--zd-fw-normal);
31
31
  }
32
32
 
33
33
  label, input[type='button'], input[type='submit'], input[type='file'], button {
@@ -37,4 +37,4 @@ label, input[type='button'], input[type='submit'], input[type='file'], button {
37
37
  /*Moz Required Box shadow Isssue*/
38
38
  input[required]:-moz-ui-invalid {
39
39
  box-shadow: none;
40
- }
40
+ }
@@ -303,22 +303,22 @@
303
303
  resize: vertical;
304
304
  }
305
305
 
306
- /*font-family*/
306
+ /*font-weight*/
307
307
  .regular {
308
- font-family: var(--zd_regular, Regular);
308
+ font-weight: var(--zd-fw-normal);
309
309
  }
310
310
 
311
311
  .light {
312
- font-family: var(--zd_light, Light);
312
+ font-weight: var(--zd-fw-light);
313
313
  }
314
314
 
315
315
  .semibold {
316
- font-family: var(--zd_semibold, Semibold);
316
+ font-weight: var(--zd-fw-semibold);
317
317
  composes: ftsmooth;
318
318
  }
319
319
 
320
320
  .bold {
321
- font-family: var(--zd_bold, Bold);
321
+ font-weight: var(--zd-fw-bold);
322
322
  composes: ftsmooth;
323
323
  }
324
324
 
@@ -1,7 +1,7 @@
1
1
  .varClass {
2
2
  --local_inputFieldLine_border_color: var(--zdt_inputField_default_border);
3
3
  --local_inputFieldLine_border_width: 1px;
4
- --local_padding: var(--zd_size0);
4
+ --local_padding: 0;
5
5
  --local_cursor: pointer;
6
6
  }
7
7
 
@@ -145,7 +145,7 @@
145
145
  }
146
146
 
147
147
  .emptyStateTitle {
148
- font-family: var(--zd_semibold);
148
+ font-weight: var(--zd-fw-semibold);
149
149
  word-wrap: break-word;
150
150
  font-size: var(--zd_font_size16) ;
151
151
  max-width: var(--zd_size430) ;
@@ -19,17 +19,17 @@
19
19
  display: initial;
20
20
  }
21
21
  .font_regular {
22
- font-family: var(--zd_regular);
22
+ font-weight: var(--zd-fw-normal);
23
23
  }
24
24
  .font_light {
25
- font-family: var(--zd_light);
25
+ font-weight: var(--zd-fw-light);
26
26
  }
27
27
  .font_semibold {
28
- font-family: var(--zd_semibold);
28
+ font-weight: var(--zd-fw-semibold);
29
29
  composes: ftsmooth from '../../../common/common.module.css';
30
30
  }
31
31
  .font_bold {
32
- font-family: var(--zd_bold);
32
+ font-weight: var(--zd-fw-bold);
33
33
  composes: ftsmooth from '../../../common/common.module.css';
34
34
  }
35
35
  .fontStyles_normal{
@@ -29,6 +29,8 @@ require("@zohodesk/variables/assets/fontsizeVariables.module.css");
29
29
 
30
30
  require("@zohodesk/variables/es/fontFamilyVariables.module.css");
31
31
 
32
+ require("@zohodesk/variables/es/fontWeightVariables.module.css");
33
+
32
34
  require("@zohodesk/variables/assets/transitionVariables.module.css");
33
35
 
34
36
  require("@zohodesk/variables/assets/no_transitionVariables.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
- --button_font_family: var(--zd_regular);
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-family: var(--button_font_family);
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
- --button_font_family: var(--zd_semibold);
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);
@@ -15,8 +15,6 @@ var _defaultProps = require("./props/defaultProps");
15
15
 
16
16
  var _Label = _interopRequireDefault(require("../Label/Label"));
17
17
 
18
- var _Typography = _interopRequireDefault(require("../Typography/Typography"));
19
-
20
18
  var _Layout = require("../Layout");
21
19
 
22
20
  var _CssProvider = _interopRequireDefault(require("../Provider/CssProvider"));
@@ -106,14 +104,11 @@ var CheckBox = /*#__PURE__*/function (_React$Component) {
106
104
  customClass = _this$props3.customClass,
107
105
  customProps = _this$props3.customProps,
108
106
  dataSelectorId = _this$props3.dataSelectorId,
109
- renderRightPlaceholderNode = _this$props3.renderRightPlaceholderNode,
110
- secondaryText = _this$props3.secondaryText;
107
+ renderRightPlaceholderNode = _this$props3.renderRightPlaceholderNode;
111
108
  var _customProps$CheckBox = customProps.CheckBoxProps,
112
109
  CheckBoxProps = _customProps$CheckBox === void 0 ? {} : _customProps$CheckBox,
113
110
  _customProps$LabelPro = customProps.LabelProps,
114
- LabelProps = _customProps$LabelPro === void 0 ? {} : _customProps$LabelPro,
115
- _customProps$secondar = customProps.secondaryTextProps,
116
- secondaryTextProps = _customProps$secondar === void 0 ? {} : _customProps$secondar;
111
+ LabelProps = _customProps$LabelPro === void 0 ? {} : _customProps$LabelPro;
117
112
  var _customClass$customCh = customClass.customCheckBox,
118
113
  customCheckBox = _customClass$customCh === void 0 ? '' : _customClass$customCh,
119
114
  _customClass$customLa = customClass.customLabel,
@@ -121,9 +116,7 @@ var CheckBox = /*#__PURE__*/function (_React$Component) {
121
116
  _customClass$customCB = customClass.customCBoxSize,
122
117
  customCBoxSize = _customClass$customCB === void 0 ? '' : _customClass$customCB,
123
118
  _customClass$customTi = customClass.customTickSize,
124
- customTickSize = _customClass$customTi === void 0 ? '' : _customClass$customTi,
125
- _customClass$customSe = customClass.customSecondaryText,
126
- customSecondaryText = _customClass$customSe === void 0 ? '' : _customClass$customSe;
119
+ customTickSize = _customClass$customTi === void 0 ? '' : _customClass$customTi;
127
120
  var accessMode = isReadOnly ? _CheckBoxModule["default"].readonly : disabled ? (0, _CssProvider["default"])('isDisabled') : _CheckBoxModule["default"].pointer;
128
121
  var toolTip = disabled ? disabledTitle : title ? title : null;
129
122
  var ariaLabel = a11y.ariaLabel,
@@ -152,8 +145,7 @@ var CheckBox = /*#__PURE__*/function (_React$Component) {
152
145
  "aria-hidden": ariaHidden,
153
146
  dataSelectorId: dataSelectorId || id
154
147
  }, CheckBoxProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
155
- className: "".concat(_CheckBoxModule["default"].boxContainer, " ").concat(secondaryText ? _CheckBoxModule["default"].withSecondaryText : '', " ").concat(_CheckBoxModule["default"][size], " ").concat(customCBoxSize, " ").concat(isFilled ? _CheckBoxModule["default"].filled : '', " ").concat(!isEditable ? "".concat(_CheckBoxModule["default"]["disabled"]) : ''),
156
- align: secondaryText ? "start" : undefined
148
+ className: "".concat(_CheckBoxModule["default"].boxContainer, " ").concat(_CheckBoxModule["default"][size], " ").concat(customCBoxSize, " ").concat(isFilled ? _CheckBoxModule["default"].filled : '', " ").concat(!isEditable ? "".concat(_CheckBoxModule["default"]["disabled"]) : '')
157
149
  }, /*#__PURE__*/_react["default"].createElement("input", {
158
150
  type: "hidden",
159
151
  id: id,
@@ -201,10 +193,10 @@ var CheckBox = /*#__PURE__*/function (_React$Component) {
201
193
  y1: "20",
202
194
  x2: "28.53",
203
195
  y2: "20"
204
- }) : null))), (text || secondaryText) && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
196
+ }) : null))), text && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
205
197
  flexible: true,
206
- className: _CheckBoxModule["default"].labelContainer
207
- }, text && /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
198
+ className: _CheckBoxModule["default"].text
199
+ }, /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
208
200
  text: text,
209
201
  palette: disabled ? 'disable' : labelPalette,
210
202
  id: id,
@@ -212,15 +204,9 @@ var CheckBox = /*#__PURE__*/function (_React$Component) {
212
204
  type: "title",
213
205
  clipped: isClipped,
214
206
  variant: variant,
215
- customClass: "".concat(active && !disabled ? "".concat(_CheckBoxModule["default"]["active".concat(palette, "Label")]) : '', "\n ").concat(checked && active ? "".concat(_CheckBoxModule["default"]["checked".concat(palette, "Label")]) : '', " \n ").concat(accessMode, " ").concat(customLabel),
207
+ customClass: "".concat(active && !disabled ? "".concat(_CheckBoxModule["default"]["active".concat(palette, "Label")]) : '', "\n ").concat(checked && active ? "".concat(_CheckBoxModule["default"]["checked".concat(palette, "Label")]) : '', " \n ").concat(accessMode, " ").concat(customLabel),
216
208
  title: toolTip ? toolTip : text
217
- }, LabelProps)), secondaryText ? /*#__PURE__*/_react["default"].createElement(_Typography["default"], _extends({
218
- $ui_size: "12",
219
- $ui_lineHeight: "1.2"
220
- }, secondaryTextProps, {
221
- $i18n_dataTitle: toolTip ? null : secondaryText,
222
- $ui_className: "".concat(_CheckBoxModule["default"].secondaryText, " ").concat(customSecondaryText)
223
- }), secondaryText) : null), renderRightPlaceholderNode ? renderRightPlaceholderNode : null);
209
+ }, LabelProps))), renderRightPlaceholderNode ? renderRightPlaceholderNode : null);
224
210
  }
225
211
  }]);
226
212
 
@@ -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;
@@ -168,33 +168,24 @@ describe('CheckBox component', function () {
168
168
 
169
169
  expect(asFragment()).toMatchSnapshot();
170
170
  });
171
- test('Should render secondaryText', function () {
172
- var _render18 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_CheckBox["default"], {
173
- text: "checkboxText",
174
- secondaryText: "secondaryText"
175
- })),
176
- asFragment = _render18.asFragment;
177
-
178
- expect(asFragment()).toMatchSnapshot();
179
- });
180
171
  test('Should be render activeStyle is minus', function () {
181
- var _render19 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_CheckBox["default"], {
172
+ var _render18 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_CheckBox["default"], {
182
173
  activeStyle: "minus"
183
174
  })),
184
- asFragment = _render19.asFragment;
175
+ asFragment = _render18.asFragment;
185
176
 
186
177
  expect(asFragment()).toMatchSnapshot();
187
178
  });
188
179
  test('Should be render dataSelectorId', function () {
189
- var _render20 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_CheckBox["default"], {
180
+ var _render19 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_CheckBox["default"], {
190
181
  dataSelectorId: "dataSelectorIdCheck"
191
182
  })),
192
- asFragment = _render20.asFragment;
183
+ asFragment = _render19.asFragment;
193
184
 
194
185
  expect(asFragment()).toMatchSnapshot();
195
186
  });
196
187
  test('rendering the Custom Props', function () {
197
- var _render21 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_CheckBox["default"], {
188
+ var _render20 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_CheckBox["default"], {
198
189
  text: "checkboxText",
199
190
  customProps: {
200
191
  CheckBoxProps: {
@@ -205,12 +196,12 @@ describe('CheckBox component', function () {
205
196
  }
206
197
  }
207
198
  })),
208
- asFragment = _render21.asFragment;
199
+ asFragment = _render20.asFragment;
209
200
 
210
201
  expect(asFragment()).toMatchSnapshot();
211
202
  });
212
203
  test('rendering the Custom class', function () {
213
- var _render22 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_CheckBox["default"], {
204
+ var _render21 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_CheckBox["default"], {
214
205
  text: "checkboxText",
215
206
  checked: true,
216
207
  customClass: {
@@ -220,12 +211,12 @@ describe('CheckBox component', function () {
220
211
  customTickSize: 'customTickSizeClass'
221
212
  }
222
213
  })),
223
- asFragment = _render22.asFragment;
214
+ asFragment = _render21.asFragment;
224
215
 
225
216
  expect(asFragment()).toMatchSnapshot();
226
217
  });
227
218
  test('rendering ally ariaLabel , ariaLabelledby, ariaHidden,ariaChecked,role true and entering their values', function () {
228
- var _render23 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_CheckBox["default"], {
219
+ var _render22 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_CheckBox["default"], {
229
220
  checked: true,
230
221
  a11y: {
231
222
  ariaLabel: 'ariaLabelCheckBox',
@@ -235,12 +226,12 @@ describe('CheckBox component', function () {
235
226
  role: 'checkBox2'
236
227
  }
237
228
  })),
238
- asFragment = _render23.asFragment;
229
+ asFragment = _render22.asFragment;
239
230
 
240
231
  expect(asFragment()).toMatchSnapshot();
241
232
  });
242
233
  test('rendering ally ariaLabel , ariaLabelledby, ariaHidden,ariaChecked,role false and entering their values', function () {
243
- var _render24 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_CheckBox["default"], {
234
+ var _render23 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_CheckBox["default"], {
244
235
  checked: true,
245
236
  a11y: {
246
237
  ariaLabel: 'ariaLabelCheckBox',
@@ -250,7 +241,7 @@ describe('CheckBox component', function () {
250
241
  role: 'checkBox3'
251
242
  }
252
243
  })),
253
- asFragment = _render24.asFragment;
244
+ asFragment = _render23.asFragment;
254
245
 
255
246
  expect(asFragment()).toMatchSnapshot();
256
247
  });