@zohodesk/components 1.0.0-temp-197 → 1.0.0-temp-199

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 (140) hide show
  1. package/.cli/propValidation_report.html +1 -1
  2. package/es/AppContainer/AppContainer.js +1 -0
  3. package/es/AppContainer/AppContainer.module.css +18 -18
  4. package/es/Avatar/Avatar.js +9 -9
  5. package/es/Avatar/Avatar.module.css +2 -2
  6. package/es/AvatarTeam/AvatarTeam.js +7 -7
  7. package/es/Button/Button.js +4 -4
  8. package/es/Button/css/Button.module.css +6 -22
  9. package/es/Buttongroup/Buttongroup.js +1 -1
  10. package/es/Buttongroup/Buttongroup.module.css +1 -1
  11. package/es/Buttongroup/__tests__/__snapshots__/Buttongroup.spec.js.snap +191 -191
  12. package/es/Card/Card.js +4 -4
  13. package/es/Card/Card.module.css +20 -20
  14. package/es/DateTime/DateTime.module.css +8 -11
  15. package/es/DateTime/DateWidget.module.css +38 -38
  16. package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +7 -11
  17. package/es/DropBox/DropBoxPositionMapping.json +144 -144
  18. package/es/DropBox/css/DropBox.module.css +1 -1
  19. package/es/DropDown/DropDown.module.css +5 -5
  20. package/es/DropDown/DropDownSearch.module.css +14 -14
  21. package/es/DropDown/DropDownSeparator.module.css +7 -7
  22. package/es/Heading/Heading.module.css +4 -4
  23. package/es/Label/Label.js +2 -2
  24. package/es/Layout/Layout.module.css +335 -335
  25. package/es/ListItem/ListItem.js +2 -2
  26. package/es/ListItem/ListItem.module.css +85 -18
  27. package/es/ListItem/ListItemWithAvatar.js +3 -3
  28. package/es/ListItem/ListItemWithIcon.js +2 -2
  29. package/es/MultiSelect/AdvancedGroupMultiSelect.js +7 -2
  30. package/es/MultiSelect/AdvancedMultiSelect.js +2 -1
  31. package/es/MultiSelect/MultiSelect.js +12 -7
  32. package/es/MultiSelect/SelectedOptions.module.css +15 -15
  33. package/es/MultiSelect/Suggestions.js +8 -4
  34. package/es/MultiSelect/props/defaultProps.js +8 -5
  35. package/es/MultiSelect/props/propTypes.js +6 -3
  36. package/es/Popup/PositionMapping.json +73 -73
  37. package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -6
  38. package/es/Ribbon/Ribbon.module.css +6 -6
  39. package/es/RippleEffect/RippleEffect.module.css +92 -92
  40. package/es/Select/GroupSelect.js +7 -2
  41. package/es/Select/Select.module.css +134 -134
  42. package/es/Select/SelectWithAvatar.js +7 -2
  43. package/es/Select/SelectWithIcon.js +7 -2
  44. package/es/Select/props/defaultProps.js +6 -3
  45. package/es/Select/props/propTypes.js +6 -3
  46. package/es/Stencils/Stencils.module.css +96 -96
  47. package/es/Switch/Switch.module.css +1 -2
  48. package/es/Tab/TabContent.module.css +4 -4
  49. package/es/Tab/Tabs.js +17 -17
  50. package/es/Tab/Tabs.module.css +3 -3
  51. package/es/Tooltip/Tooltip.module.css +140 -143
  52. package/es/common/a11y.module.css +3 -3
  53. package/es/common/animation.module.css +624 -624
  54. package/es/common/avatarsizes.module.css +48 -48
  55. package/es/common/basic.module.css +33 -33
  56. package/es/common/basicReset.module.css +40 -40
  57. package/es/{deprecated → common}/boxShadow.module.css +33 -33
  58. package/es/common/common.module.css +524 -524
  59. package/es/common/reset.module.css +13 -13
  60. package/es/common/transition.module.css +146 -146
  61. package/es/semantic/Button/semanticButton.module.css +9 -9
  62. package/es/v1/AppContainer/AppContainer.js +1 -0
  63. package/es/v1/Card/Card.js +4 -4
  64. package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +5 -5
  65. package/es/v1/Tab/Tabs.js +11 -11
  66. package/es/v1/Tab/v1TabContent.module.css +4 -4
  67. package/es/v1/Tab/v1Tabs.module.css +3 -3
  68. package/es/v1/Typography/css/Typography.module.css +380 -380
  69. package/install.md +10 -10
  70. package/lib/AppContainer/AppContainer.js +2 -0
  71. package/lib/AppContainer/AppContainer.module.css +18 -18
  72. package/lib/Avatar/Avatar.js +9 -9
  73. package/lib/Avatar/Avatar.module.css +2 -2
  74. package/lib/AvatarTeam/AvatarTeam.js +7 -7
  75. package/lib/Button/Button.js +4 -4
  76. package/lib/Button/css/Button.module.css +6 -22
  77. package/lib/Buttongroup/Buttongroup.js +1 -1
  78. package/lib/Buttongroup/Buttongroup.module.css +1 -1
  79. package/lib/Buttongroup/__tests__/__snapshots__/Buttongroup.spec.js.snap +191 -191
  80. package/lib/Card/Card.js +4 -4
  81. package/lib/Card/Card.module.css +20 -20
  82. package/lib/DateTime/DateTime.module.css +8 -11
  83. package/lib/DateTime/DateWidget.module.css +38 -38
  84. package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +7 -11
  85. package/lib/DropBox/DropBoxPositionMapping.json +144 -144
  86. package/lib/DropBox/css/DropBox.module.css +1 -1
  87. package/lib/DropDown/DropDown.module.css +5 -5
  88. package/lib/DropDown/DropDownSearch.module.css +14 -14
  89. package/lib/DropDown/DropDownSeparator.module.css +7 -7
  90. package/lib/Heading/Heading.module.css +4 -4
  91. package/lib/Layout/Layout.module.css +335 -335
  92. package/lib/ListItem/ListItem.js +2 -2
  93. package/lib/ListItem/ListItem.module.css +85 -18
  94. package/lib/ListItem/ListItemWithAvatar.js +3 -3
  95. package/lib/ListItem/ListItemWithIcon.js +2 -2
  96. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +7 -3
  97. package/lib/MultiSelect/AdvancedMultiSelect.js +3 -1
  98. package/lib/MultiSelect/MultiSelect.js +13 -8
  99. package/lib/MultiSelect/SelectedOptions.module.css +15 -15
  100. package/lib/MultiSelect/Suggestions.js +8 -4
  101. package/lib/MultiSelect/props/defaultProps.js +8 -5
  102. package/lib/MultiSelect/props/propTypes.js +8 -6
  103. package/lib/Popup/PositionMapping.json +73 -73
  104. package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -6
  105. package/lib/Ribbon/Ribbon.module.css +6 -6
  106. package/lib/RippleEffect/RippleEffect.module.css +92 -92
  107. package/lib/Select/GroupSelect.js +8 -3
  108. package/lib/Select/Select.module.css +134 -134
  109. package/lib/Select/SelectWithAvatar.js +8 -3
  110. package/lib/Select/SelectWithIcon.js +8 -3
  111. package/lib/Select/props/defaultProps.js +5 -3
  112. package/lib/Select/props/propTypes.js +6 -3
  113. package/lib/Stencils/Stencils.module.css +96 -96
  114. package/lib/Switch/Switch.module.css +1 -2
  115. package/lib/Tab/TabContent.module.css +4 -4
  116. package/lib/Tab/Tabs.js +11 -11
  117. package/lib/Tab/Tabs.module.css +3 -3
  118. package/lib/Tooltip/Tooltip.module.css +140 -143
  119. package/lib/common/a11y.module.css +3 -3
  120. package/lib/common/animation.module.css +624 -624
  121. package/lib/common/avatarsizes.module.css +48 -48
  122. package/lib/common/basic.module.css +33 -33
  123. package/lib/common/basicReset.module.css +40 -40
  124. package/lib/{deprecated → common}/boxShadow.module.css +33 -33
  125. package/lib/common/common.module.css +524 -524
  126. package/lib/common/reset.module.css +13 -13
  127. package/lib/common/transition.module.css +146 -146
  128. package/lib/semantic/Button/semanticButton.module.css +9 -9
  129. package/lib/v1/AppContainer/AppContainer.js +2 -0
  130. package/lib/v1/Card/Card.js +4 -4
  131. package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +5 -5
  132. package/lib/v1/Tab/Tabs.js +11 -11
  133. package/lib/v1/Tab/v1TabContent.module.css +4 -4
  134. package/lib/v1/Tab/v1Tabs.module.css +3 -3
  135. package/lib/v1/Typography/css/Typography.module.css +380 -380
  136. package/package.json +7 -11
  137. package/postPublish.js +8 -8
  138. package/prePublish.js +70 -70
  139. package/react-cli.config.js +23 -23
  140. package/result.json +1 -1
package/install.md CHANGED
@@ -1,10 +1,10 @@
1
- - For New :
2
-
3
- # npm i
4
- # npm run common_package_build
5
-
6
- For Update:
7
-
8
- # npm run download
9
- # npm run common_package_build
10
-
1
+ - For New :
2
+
3
+ # npm i
4
+ # npm run common_package_build
5
+
6
+ For Update:
7
+
8
+ # npm run download
9
+ # npm run common_package_build
10
+
@@ -35,6 +35,8 @@ require("@zohodesk/variables/assets/no_transitionVariables.module.css");
35
35
 
36
36
  require("../common/a11y.module.css");
37
37
 
38
+ require("../common/boxShadow.module.css");
39
+
38
40
  var _AppContainerModule = _interopRequireDefault(require("./AppContainer.module.css"));
39
41
 
40
42
  var _Config = require("../Provider/Config");
@@ -1,18 +1,18 @@
1
- .container,
2
- .container *,
3
- .container ::after,
4
- .container ::before {
5
- outline: 0;
6
- box-sizing: border-box;
7
- -webkit-box-sizing: border-box;
8
- -moz-box-sizing: border-box;
9
- -ms-box-sizing: border-box;
10
- }
11
- .container {
12
- font-family: var(--zd_regular);
13
- }
14
- .tooltip {
15
- height: 0 ;
16
- font-size: 0 ;
17
- /* contain:strict */
18
- }
1
+ .container,
2
+ .container *,
3
+ .container ::after,
4
+ .container ::before {
5
+ outline: 0;
6
+ box-sizing: border-box;
7
+ -webkit-box-sizing: border-box;
8
+ -moz-box-sizing: border-box;
9
+ -ms-box-sizing: border-box;
10
+ }
11
+ .container {
12
+ font-family: var(--zd_regular);
13
+ }
14
+ .tooltip {
15
+ height: 0 ;
16
+ font-size: 0 ;
17
+ /* contain:strict */
18
+ }
@@ -55,17 +55,17 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
55
55
 
56
56
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
57
57
 
58
- /*
59
- 1. need to change name into firstName lastName
60
- 2. pattern support via context as well as props
61
- 3. prop high priority to arrange firstName lastName
62
- 4. team pass name as lastName and pass pattern via prop
58
+ /*
59
+ 1. need to change name into firstName lastName
60
+ 2. pattern support via context as well as props
61
+ 3. prop high priority to arrange firstName lastName
62
+ 4. team pass name as lastName and pass pattern via prop
63
63
  */
64
64
 
65
- /*
66
- eslint css-modules/no-unused-class: [2, { markAsUsed: ['circle', 'square',
67
- 'small','medium','xmedium',"xsmall", "large", "xlarge", "primary", "secondary",
68
- "info","default"] }]
65
+ /*
66
+ eslint css-modules/no-unused-class: [2, { markAsUsed: ['circle', 'square',
67
+ 'small','medium','xmedium',"xsmall", "large", "xlarge", "primary", "secondary",
68
+ "info","default"] }]
69
69
  */
70
70
  var Avatar = /*#__PURE__*/function (_React$Component) {
71
71
  _inherits(Avatar, _React$Component);
@@ -53,11 +53,11 @@
53
53
  }
54
54
 
55
55
  .shadow.black {
56
- box-shadow: var(--zd_bs_contrast_outline, inset 0px 0px 5px var(--avatar_boxshadow));
56
+ box-shadow: var(--zd_bs_avatar_black);
57
57
  }
58
58
 
59
59
  .shadow.white {
60
- box-shadow: var(--zd_bs_contrast_outline, inset 0px 0px 11px var(--avatar_boxshadow));
60
+ box-shadow: var(--zd_bs_avatar_white);
61
61
  }
62
62
 
63
63
  .avatar, .circle {
@@ -41,15 +41,15 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
41
41
 
42
42
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
43
43
 
44
- /* once avatar support firstname lastname and pattern
45
- pass lastName as team name and pattern ["FIRST_NAME","LAST_NAME"] as props
46
-
47
- Not going to export to external then can kept inside supportapp
44
+ /* once avatar support firstname lastname and pattern
45
+ pass lastName as team name and pattern ["FIRST_NAME","LAST_NAME"] as props
46
+
47
+ Not going to export to external then can kept inside supportapp
48
48
  */
49
49
 
50
- /*
51
- eslint css-modules/no-unused-class: [2, { markAsUsed: ["primary", "secondary",
52
- "small", "xsmall", "medium", "xmedium", "large", "xlarge"] }]
50
+ /*
51
+ eslint css-modules/no-unused-class: [2, { markAsUsed: ["primary", "secondary",
52
+ "small", "xsmall", "medium", "xmedium", "large", "xlarge"] }]
53
53
  */
54
54
  var AvatarTeam = /*#__PURE__*/function (_React$Component) {
55
55
  _inherits(AvatarTeam, _React$Component);
@@ -21,10 +21,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
21
21
 
22
22
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
23
23
 
24
- /*
25
- Button text and children props?
26
- use children for both cases
27
- toLowerCase check needed?
24
+ /*
25
+ Button text and children props?
26
+ use children for both cases
27
+ toLowerCase check needed?
28
28
  */
29
29
 
30
30
  /* eslint css-modules/no-unused-class: [2, { markAsUsed: ['small','medium','large','xlarge','button_medium','button_small','primary','primaryfilled','danger','dangerfilled','plainprimary', 'plainsecondary', 'secondary', 'secondaryfilled', 'successFilled','tertiaryFilled'] }] */
@@ -25,7 +25,6 @@
25
25
  /* button success status default variable */
26
26
  --button_success_border_color: var(--zdt_button_success_default_border);
27
27
  }
28
-
29
28
  .native {
30
29
  composes: varClass;
31
30
  /* transition: all var(--zd_transition2) ease 0s; */
@@ -112,14 +111,14 @@
112
111
  .smallBtnprimaryfilled,
113
112
  .mediumBtnprimary,
114
113
  .mediumBtnprimaryfilled {
115
- --button_box_shadow: var(--zd_bs_contrast_outline, 0 3px 10px var(--zdt_button_primary_box_shadow));
114
+ --button_box_shadow: var(--zd_bs_button_primary);
116
115
  }
117
116
 
118
117
  .smallBtndanger,
119
118
  .smallBtndangerfilled,
120
119
  .mediumBtndanger,
121
120
  .mediumBtndangerfilled {
122
- --button_box_shadow: var(--zd_bs_contrast_outline, 0 3px 10px var(--zdt_button_danger_box_shadow));
121
+ --button_box_shadow: var(--zd_bs_button_danger);
123
122
  }
124
123
 
125
124
  .small,
@@ -137,7 +136,6 @@
137
136
  --button_min_width: initial;
138
137
  --button_bg_color: var(--zdt_button_default_bg);
139
138
  }
140
-
141
139
  .plainprimary:hover {
142
140
  --button_text_color: var(--zdt_button_plainprimary_hover_text);
143
141
  }
@@ -148,7 +146,6 @@
148
146
  --button_min_width: initial;
149
147
  --button_bg_color: var(--zdt_button_default_bg);
150
148
  }
151
-
152
149
  .plainsecondary:hover {
153
150
  --button_text_color: var(--zdt_button_secondary_hover_text);
154
151
  }
@@ -163,7 +160,6 @@
163
160
  .tertiaryfilled {
164
161
  --button_border_width: 1px;
165
162
  }
166
-
167
163
  .primary:hover {
168
164
  --button_border_color: var(--zdt_button_primary_hover_border);
169
165
  --button_text_color: var(--zdt_button_primary_hover_text);
@@ -174,7 +170,6 @@
174
170
  --button_bg_color: var(--zdt_button_primaryfill_bg);
175
171
  --button_text_color: var(--zdt_button_primaryfill_text);
176
172
  }
177
-
178
173
  .primaryfilled:hover {
179
174
  --button_bg_color: var(--zdt_button_primaryfill_hover_bg);
180
175
  }
@@ -184,7 +179,6 @@
184
179
  --button_bg_color: var(--zdt_button_default_bg);
185
180
  --button_text_color: var(--zdt_button_danger_text);
186
181
  }
187
-
188
182
  .danger:hover {
189
183
  --button_border_color: var(--zdt_button_danger_hover_border);
190
184
  --button_text_color: var(--zdt_button_danger_hover_text);
@@ -195,7 +189,6 @@
195
189
  --button_bg_color: var(--zdt_button_dangerfill_bg);
196
190
  --button_text_color: var(--zdt_button_dangerfill_text);
197
191
  }
198
-
199
192
  .dangerfilled:hover {
200
193
  --button_bg_color: var(--zdt_button_dangerfill_hover_bg);
201
194
  }
@@ -205,7 +198,6 @@
205
198
  --button_bg_color: var(--zdt_button_default_bg);
206
199
  --button_text_color: var(--zdt_button_secondary_text);
207
200
  }
208
-
209
201
  .secondary:hover {
210
202
  --button_border_color: var(--zdt_button_secondary_hover_border);
211
203
  --button_text_color: var(--zdt_button_secondary_hover_text);
@@ -216,7 +208,6 @@
216
208
  --button_bg_color: var(--zdt_button_secondaryfill_bg);
217
209
  --button_text_color: var(--zdt_button_secondary_text);
218
210
  }
219
-
220
211
  .secondaryfilled:hover {
221
212
  --button_text_color: var(--zdt_button_secondary_hover_text);
222
213
  }
@@ -226,7 +217,6 @@
226
217
  --button_bg_color: var(--zdt_button_successfill_bg);
227
218
  --button_text_color: var(--zdt_button_dangerfill_text);
228
219
  }
229
-
230
220
  .successfilled:hover {
231
221
  --button_border_color: var(--zdt_button_successfill_hover_border);
232
222
  --button_bg_color: var(--zdt_button_successfill_hover_bg);
@@ -237,7 +227,6 @@
237
227
  --button_bg_color: var(--zdt_button_tertiaryfill_bg);
238
228
  --button_text_color: var(--zdt_button_dangerfill_text);
239
229
  }
240
-
241
230
  .tertiaryfilled:hover {
242
231
  --button_bg_color: var(--zdt_button_tertiaryfill_hover_bg);
243
232
  }
@@ -337,23 +326,18 @@
337
326
  .loadingelement {
338
327
  --button_loading_bg_color: var(--zdt_button_primaryfill_bg);
339
328
  }
340
-
341
329
  .primaryelement {
342
330
  --button_loading_bg_color: var(--zdt_button_loading_default_bg);
343
331
  }
344
-
345
332
  .primaryfilledelement {
346
333
  --button_loading_bg_color: var(--zdt_button_primaryfill_bg);
347
334
  }
348
-
349
335
  .dangerelement {
350
336
  --button_loading_bg_color: var(--zdt_button_loading_default_bg);
351
337
  }
352
-
353
338
  .dangerfilledelement {
354
339
  --button_loading_bg_color: var(--zdt_button_dangerfill_bg);
355
340
  }
356
-
357
341
  .loadingelement:after,
358
342
  .primaryelement:after,
359
343
  .primaryfilledelement:after,
@@ -382,13 +366,13 @@
382
366
 
383
367
  .primaryelement:before {
384
368
  --button_loading_bg_color: var(--zdt_button_primaryfill_bg);
385
- --zdt_button_loading_linear_gradient: var(--zdt_button_loading_primary_linear_gradient);
369
+ --zdt_button_loading_linear_gradient:var(--zdt_button_loading_primary_linear_gradient);
386
370
  transform: rotateX(180deg);
387
371
  }
388
372
 
389
373
  .dangerelement:before {
390
374
  --button_loading_bg_color: var(--zdt_button_dangerfill_bg);
391
- --zdt_button_loading_linear_gradient: var(--zdt_button_loading_danger_linear_gradient);
375
+ --zdt_button_loading_linear_gradient:var(--zdt_button_loading_danger_linear_gradient);
392
376
  transform: rotateX(180deg);
393
377
  }
394
378
 
@@ -539,6 +523,6 @@
539
523
  }
540
524
  }
541
525
 
542
- .loader {
543
- color: var(--dot_mirror)
526
+ .loader{
527
+ color:var(--dot_mirror)
544
528
  }
@@ -37,7 +37,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
37
37
 
38
38
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
39
39
 
40
- /* eslint css-modules/no-unused-class: [2, { markAsUsed: ['footer','header',
40
+ /* eslint css-modules/no-unused-class: [2, { markAsUsed: ['footer','header',
41
41
  'tab','alignleft','alignright','aligncenter' ] }] */
42
42
  var Buttongroup = /*#__PURE__*/function (_React$Component) {
43
43
  _inherits(Buttongroup, _React$Component);
@@ -20,7 +20,7 @@
20
20
  }
21
21
 
22
22
  .footer {
23
- --buttongroup_box_shadow: var(--zd_bs_contrast_outline, 0 -4px 5px -3px var(--zdt_buttongroup_footer_box_shadow));
23
+ --buttongroup_box_shadow: var(--zd_bs_buttongroup_footer);
24
24
  }
25
25
 
26
26
  [dir=ltr] .footer {