@zohodesk/components 1.0.0-temp-198 → 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 (136) hide show
  1. package/.cli/PropUnificationExcludeFilesArray.js +230 -230
  2. package/.cli/PropValidationExcludeFilesArray.js +1 -1
  3. package/.cli/propValidation_report.html +1 -1
  4. package/css_error.log +1 -1
  5. package/es/AppContainer/AppContainer.module.css +18 -18
  6. package/es/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +591 -591
  7. package/es/AvatarTeam/AvatarTeam.js +7 -7
  8. package/es/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +705 -705
  9. package/es/Button/Button.js +4 -4
  10. package/es/Buttongroup/Buttongroup.js +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/DateWidget.module.css +38 -38
  15. package/es/DropBox/DropBoxPositionMapping.json +144 -144
  16. package/es/DropDown/DropDown.module.css +5 -5
  17. package/es/DropDown/DropDownSearch.module.css +14 -14
  18. package/es/DropDown/DropDownSeparator.module.css +7 -7
  19. package/es/Heading/Heading.module.css +4 -4
  20. package/es/Label/Label.js +2 -2
  21. package/es/Label/__tests__/__snapshots__/Label.spec.js.snap +312 -312
  22. package/es/Layout/Layout.module.css +335 -335
  23. package/es/ListItem/ListItem.js +2 -2
  24. package/es/ListItem/ListItem.module.css +85 -18
  25. package/es/ListItem/ListItemWithAvatar.js +3 -3
  26. package/es/ListItem/ListItemWithIcon.js +2 -2
  27. package/es/MultiSelect/AdvancedGroupMultiSelect.js +7 -2
  28. package/es/MultiSelect/AdvancedMultiSelect.js +2 -1
  29. package/es/MultiSelect/MultiSelect.js +8 -4
  30. package/es/MultiSelect/SelectedOptions.module.css +15 -15
  31. package/es/MultiSelect/Suggestions.js +8 -4
  32. package/es/MultiSelect/props/defaultProps.js +8 -5
  33. package/es/MultiSelect/props/propTypes.js +6 -3
  34. package/es/Popup/PositionMapping.json +73 -73
  35. package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -6
  36. package/es/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +374 -374
  37. package/es/RippleEffect/RippleEffect.module.css +92 -92
  38. package/es/Select/GroupSelect.js +7 -2
  39. package/es/Select/Select.module.css +134 -134
  40. package/es/Select/SelectWithAvatar.js +7 -2
  41. package/es/Select/SelectWithIcon.js +7 -2
  42. package/es/Select/props/defaultProps.js +6 -3
  43. package/es/Select/props/propTypes.js +6 -3
  44. package/es/Stencils/Stencils.module.css +96 -96
  45. package/es/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +89 -89
  46. package/es/Switch/__tests__/__snapshots__/Switch.spec.js.snap +831 -831
  47. package/es/Tab/TabContent.module.css +4 -4
  48. package/es/Tab/Tabs.js +17 -17
  49. package/es/Tag/Tag.js +8 -8
  50. package/es/Tooltip/Tooltip.module.css +140 -140
  51. package/es/common/a11y.module.css +3 -3
  52. package/es/common/animation.module.css +624 -624
  53. package/es/common/avatarsizes.module.css +48 -48
  54. package/es/common/basic.module.css +33 -33
  55. package/es/common/basicReset.module.css +40 -40
  56. package/es/common/boxShadow.module.css +33 -33
  57. package/es/common/common.module.css +524 -524
  58. package/es/common/reset.module.css +13 -13
  59. package/es/common/transition.module.css +146 -146
  60. package/es/semantic/Button/semanticButton.module.css +9 -9
  61. package/es/v1/Avatar/Avatar.js +5 -5
  62. package/es/v1/AvatarTeam/AvatarTeam.js +4 -4
  63. package/es/v1/Button/Button.js +4 -4
  64. package/es/v1/MultiSelect/MultiSelect.js +6 -7
  65. package/es/v1/Tab/v1TabContent.module.css +4 -4
  66. package/es/v1/Tag/Tag.js +8 -8
  67. package/es/v1/Typography/css/Typography.module.css +380 -380
  68. package/install.md +10 -10
  69. package/lib/AppContainer/AppContainer.module.css +18 -18
  70. package/lib/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +591 -591
  71. package/lib/AvatarTeam/AvatarTeam.js +7 -7
  72. package/lib/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +705 -705
  73. package/lib/Button/Button.js +4 -4
  74. package/lib/Buttongroup/Buttongroup.js +1 -1
  75. package/lib/Buttongroup/__tests__/__snapshots__/Buttongroup.spec.js.snap +191 -191
  76. package/lib/Card/Card.js +4 -4
  77. package/lib/Card/Card.module.css +20 -20
  78. package/lib/DateTime/DateWidget.module.css +38 -38
  79. package/lib/DropBox/DropBoxPositionMapping.json +144 -144
  80. package/lib/DropDown/DropDown.module.css +5 -5
  81. package/lib/DropDown/DropDownSearch.module.css +14 -14
  82. package/lib/DropDown/DropDownSeparator.module.css +7 -7
  83. package/lib/Heading/Heading.module.css +4 -4
  84. package/lib/Label/__tests__/__snapshots__/Label.spec.js.snap +312 -312
  85. package/lib/Layout/Layout.module.css +335 -335
  86. package/lib/ListItem/ListItem.js +2 -2
  87. package/lib/ListItem/ListItem.module.css +85 -18
  88. package/lib/ListItem/ListItemWithAvatar.js +3 -3
  89. package/lib/ListItem/ListItemWithIcon.js +2 -2
  90. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +7 -3
  91. package/lib/MultiSelect/AdvancedMultiSelect.js +3 -1
  92. package/lib/MultiSelect/MultiSelect.js +9 -5
  93. package/lib/MultiSelect/SelectedOptions.module.css +15 -15
  94. package/lib/MultiSelect/Suggestions.js +8 -4
  95. package/lib/MultiSelect/props/defaultProps.js +8 -5
  96. package/lib/MultiSelect/props/propTypes.js +8 -6
  97. package/lib/Popup/PositionMapping.json +73 -73
  98. package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -6
  99. package/lib/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +374 -374
  100. package/lib/RippleEffect/RippleEffect.module.css +92 -92
  101. package/lib/Select/GroupSelect.js +8 -3
  102. package/lib/Select/Select.module.css +134 -134
  103. package/lib/Select/SelectWithAvatar.js +8 -3
  104. package/lib/Select/SelectWithIcon.js +8 -3
  105. package/lib/Select/props/defaultProps.js +5 -3
  106. package/lib/Select/props/propTypes.js +6 -3
  107. package/lib/Stencils/Stencils.module.css +96 -96
  108. package/lib/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +89 -89
  109. package/lib/Switch/__tests__/__snapshots__/Switch.spec.js.snap +831 -831
  110. package/lib/Tab/TabContent.module.css +4 -4
  111. package/lib/Tab/Tabs.js +11 -11
  112. package/lib/Tag/Tag.js +8 -8
  113. package/lib/Tooltip/Tooltip.module.css +140 -140
  114. package/lib/common/a11y.module.css +3 -3
  115. package/lib/common/animation.module.css +624 -624
  116. package/lib/common/avatarsizes.module.css +48 -48
  117. package/lib/common/basic.module.css +33 -33
  118. package/lib/common/basicReset.module.css +40 -40
  119. package/lib/common/boxShadow.module.css +33 -33
  120. package/lib/common/common.module.css +524 -524
  121. package/lib/common/reset.module.css +13 -13
  122. package/lib/common/transition.module.css +146 -146
  123. package/lib/semantic/Button/semanticButton.module.css +9 -9
  124. package/lib/v1/Avatar/Avatar.js +5 -5
  125. package/lib/v1/AvatarTeam/AvatarTeam.js +4 -4
  126. package/lib/v1/Button/Button.js +4 -4
  127. package/lib/v1/MultiSelect/MultiSelect.js +6 -7
  128. package/lib/v1/Tab/v1TabContent.module.css +4 -4
  129. package/lib/v1/Tag/Tag.js +8 -8
  130. package/lib/v1/Typography/css/Typography.module.css +380 -380
  131. package/package.json +3 -3
  132. package/postPublish.js +8 -8
  133. package/prePublish.js +70 -70
  134. package/propValidationArg.json +11 -11
  135. package/react-cli.config.js +23 -23
  136. package/result.json +1 -1
@@ -1,4 +1,4 @@
1
- /* $Id$ */
2
- .container {
3
- position: relative;
4
- }
1
+ /* $Id$ */
2
+ .container {
3
+ position: relative;
4
+ }
package/lib/Tab/Tabs.js CHANGED
@@ -195,9 +195,9 @@ var Tabs = /*#__PURE__*/function (_React$Component) {
195
195
  tabKeys = _this$state.tabKeys;
196
196
 
197
197
  if (prevProps.children && children) {
198
- /**
199
- * To recalculate the dimensions of tabs we are checking the children length.
200
- * and also checking the tab id and their order.
198
+ /**
199
+ * To recalculate the dimensions of tabs we are checking the children length.
200
+ * and also checking the tab id and their order.
201
201
  */
202
202
  var newTabKeys = [];
203
203
 
@@ -382,14 +382,14 @@ var Tabs = /*#__PURE__*/function (_React$Component) {
382
382
  });
383
383
 
384
384
  if (selectedTabDimension > totalDimension) {
385
- /* let { align } = this.props;
386
- let newDim = `${remConvert(totalDimension)}rem`;
387
- let newTabs;
388
- if (align === 'vertical') {
389
- newTabs = mainTabs.map(tab => React.cloneElement(tab, { style: { maxWidth: newDim } }));
390
- } else {
391
- newTabs = mainTabs.map(tab => React.cloneElement(tab, { style: { maxHeight: newDim } }));
392
- }
385
+ /* let { align } = this.props;
386
+ let newDim = `${remConvert(totalDimension)}rem`;
387
+ let newTabs;
388
+ if (align === 'vertical') {
389
+ newTabs = mainTabs.map(tab => React.cloneElement(tab, { style: { maxWidth: newDim } }));
390
+ } else {
391
+ newTabs = mainTabs.map(tab => React.cloneElement(tab, { style: { maxHeight: newDim } }));
392
+ }
393
393
  mainTabs = newTabs; */
394
394
  this.setMaxDim(totalDimension);
395
395
  }
package/lib/Tag/Tag.js CHANGED
@@ -51,16 +51,16 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
51
51
 
52
52
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
53
53
 
54
- /*
55
- * eslint css-modules/no-unused-class: [2, { markAsUsed: ['small', 'medium',
56
- * 'closedanger', 'closeprimary', 'default', 'danger', 'secondary',
57
- * 'pureDotted', 'primaryDotted'] }]
54
+ /*
55
+ * eslint css-modules/no-unused-class: [2, { markAsUsed: ['small', 'medium',
56
+ * 'closedanger', 'closeprimary', 'default', 'danger', 'secondary',
57
+ * 'pureDotted', 'primaryDotted'] }]
58
58
  */
59
59
 
60
- /*
61
- * eslint css-modules/no-unused-class: [2, { markAsUsed: ['small', 'medium',
62
- * 'closedanger', 'closeprimary', 'default', 'danger', 'secondary',
63
- * 'pureDotted', 'primaryDotted'] }]
60
+ /*
61
+ * eslint css-modules/no-unused-class: [2, { markAsUsed: ['small', 'medium',
62
+ * 'closedanger', 'closeprimary', 'default', 'danger', 'secondary',
63
+ * 'pureDotted', 'primaryDotted'] }]
64
64
  */
65
65
  var Tag = /*#__PURE__*/function (_PureComponent) {
66
66
  _inherits(Tag, _PureComponent);
@@ -1,141 +1,141 @@
1
- .tooltiptext {
2
- position: fixed;
3
- z-index: 9999999;
4
- /*Hook for editor alert*/
5
- pointer-events: none;
6
- box-shadow: 0 4px 12px 0 var(--zdt_tooltip_default_box_shadow);
7
- border-radius: var(--zd_size4);
8
- }[dir=ltr] .tooltiptext {
9
- animation: tooltip-grow var(--zd_transition7) cubic-bezier(0.175, 0.885, 0.32, 1.15);
10
- }[dir=rtl] .tooltiptext {
11
- animation: tooltip-grow var(--zd_transition7) cubic-bezier(0.175, 0.885, 0.32, 1.15);
12
- }
13
-
14
- .tooltipcont {
15
- color: var(--zdt_tooltip_default_text);
16
- font-size: var(--zd_font_size13) ;
17
- font-family: var(--zd_semibold);
18
- word-break: break-word;
19
- max-width: var(--zd_size420) ;
20
- line-height: 1.5385;
21
- min-height: var(--zd_size24) ;
22
- overflow: hidden;
23
- background-color: var(--zdt_tooltip_default_bg);
24
- padding: 0 var(--zd_size10) ;
25
- border-style: solid;
26
- border-color: transparent;
27
- border-radius: var(--zd_size4);
28
- }
29
-
30
- .tooltipWrapCont {
31
- white-space: pre-wrap;
32
- }
33
-
34
- .tooltipNormalCont {
35
- white-space: normal;
36
- }
37
- .tooltiparrow {
38
- content: '';
39
- position: absolute;
40
- top: 0 ;
41
- border-top-left-radius: 3px;
42
- }
43
-
44
- .arrowUp,
45
- .arrowDown {
46
- /* Variable:Ignore */
47
- width: 11px;
48
- /* Variable:Ignore */
49
- height: 11px;
50
- border-top: solid 6px var(--zdt_tooltip_default_bg);
51
- border-left: solid 6px var(--zdt_tooltip_default_bg);
52
- border-right: solid 6px transparent;
53
- border-bottom: solid 6px transparent;
54
- box-shadow: 0 4px 12px 0 var(--zdt_tooltip_default_box_shadow);
55
- z-index: -1;
56
- }
57
-
58
- .arrowDown {
59
- /* Variable:Ignore */
60
- margin-top: -4px !important;
61
- /* put important because of '.wms-mainui *' have margin: 0; */
62
- }
63
-
64
- .arrowLeft,
65
- .arrowRight {
66
- /* Variable:Ignore */
67
- width: 11px;
68
- /* Variable:Ignore */
69
- height: 11px;
70
- border-top: solid 6px var(--zdt_tooltip_default_bg);
71
- border-left: solid 6px var(--zdt_tooltip_default_bg);
72
- border-right: solid 6px transparent;
73
- border-bottom: solid 6px transparent;
74
- box-shadow: 0 4px 12px 0 var(--zdt_tooltip_default_box_shadow);
75
- z-index: -1;
76
- }
77
-
78
- .arrowRight {
79
- /* Variable:Ignore */
80
- margin-left: -2px;
81
- }
82
-
83
- .arrowLeft {
84
- /* Variable:Ignore */
85
- margin-left: 1px;
86
- }
87
-
88
- .arrowUp {
89
- transform: rotate(45deg);
90
- }
91
-
92
- .arrowDown {
93
- transform: rotate(225deg);
94
- }
95
-
96
- .arrowLeft {
97
- transform: rotate(315deg) translateY(-50%);
98
- }
99
-
100
- .arrowRight {
101
- transform: rotate(135deg) translateY(50%);
102
- }
103
- @keyframes tooltip-grow {
104
- from {
105
- opacity: 0;
106
- }
107
-
108
- to {
109
- opacity: 1;
110
- }
111
- }
112
-
113
- @-webkit-keyframes tooltip-grow {
114
- from {
115
- opacity: 0;
116
- }
117
-
118
- to {
119
- opacity: 1;
120
- }
121
- }
122
-
123
- @-moz-keyframes tooltip-grow {
124
- from {
125
- opacity: 0;
126
- }
127
-
128
- to {
129
- opacity: 1;
130
- }
131
- }
132
-
133
- @-ms-keyframes tooltip-grow {
134
- from {
135
- opacity: 0;
136
- }
137
-
138
- to {
139
- opacity: 1;
140
- }
1
+ .tooltiptext {
2
+ position: fixed;
3
+ z-index: 9999999;
4
+ /*Hook for editor alert*/
5
+ pointer-events: none;
6
+ box-shadow: 0 4px 12px 0 var(--zdt_tooltip_default_box_shadow);
7
+ border-radius: var(--zd_size4);
8
+ }[dir=ltr] .tooltiptext {
9
+ animation: tooltip-grow var(--zd_transition7) cubic-bezier(0.175, 0.885, 0.32, 1.15);
10
+ }[dir=rtl] .tooltiptext {
11
+ animation: tooltip-grow var(--zd_transition7) cubic-bezier(0.175, 0.885, 0.32, 1.15);
12
+ }
13
+
14
+ .tooltipcont {
15
+ color: var(--zdt_tooltip_default_text);
16
+ font-size: var(--zd_font_size13) ;
17
+ font-family: var(--zd_semibold);
18
+ word-break: break-word;
19
+ max-width: var(--zd_size420) ;
20
+ line-height: 1.5385;
21
+ min-height: var(--zd_size24) ;
22
+ overflow: hidden;
23
+ background-color: var(--zdt_tooltip_default_bg);
24
+ padding: 0 var(--zd_size10) ;
25
+ border-style: solid;
26
+ border-color: transparent;
27
+ border-radius: var(--zd_size4);
28
+ }
29
+
30
+ .tooltipWrapCont {
31
+ white-space: pre-wrap;
32
+ }
33
+
34
+ .tooltipNormalCont {
35
+ white-space: normal;
36
+ }
37
+ .tooltiparrow {
38
+ content: '';
39
+ position: absolute;
40
+ top: 0 ;
41
+ border-top-left-radius: 3px;
42
+ }
43
+
44
+ .arrowUp,
45
+ .arrowDown {
46
+ /* Variable:Ignore */
47
+ width: 11px;
48
+ /* Variable:Ignore */
49
+ height: 11px;
50
+ border-top: solid 6px var(--zdt_tooltip_default_bg);
51
+ border-left: solid 6px var(--zdt_tooltip_default_bg);
52
+ border-right: solid 6px transparent;
53
+ border-bottom: solid 6px transparent;
54
+ box-shadow: 0 4px 12px 0 var(--zdt_tooltip_default_box_shadow);
55
+ z-index: -1;
56
+ }
57
+
58
+ .arrowDown {
59
+ /* Variable:Ignore */
60
+ margin-top: -4px !important;
61
+ /* put important because of '.wms-mainui *' have margin: 0; */
62
+ }
63
+
64
+ .arrowLeft,
65
+ .arrowRight {
66
+ /* Variable:Ignore */
67
+ width: 11px;
68
+ /* Variable:Ignore */
69
+ height: 11px;
70
+ border-top: solid 6px var(--zdt_tooltip_default_bg);
71
+ border-left: solid 6px var(--zdt_tooltip_default_bg);
72
+ border-right: solid 6px transparent;
73
+ border-bottom: solid 6px transparent;
74
+ box-shadow: 0 4px 12px 0 var(--zdt_tooltip_default_box_shadow);
75
+ z-index: -1;
76
+ }
77
+
78
+ .arrowRight {
79
+ /* Variable:Ignore */
80
+ margin-left: -2px;
81
+ }
82
+
83
+ .arrowLeft {
84
+ /* Variable:Ignore */
85
+ margin-left: 1px;
86
+ }
87
+
88
+ .arrowUp {
89
+ transform: rotate(45deg);
90
+ }
91
+
92
+ .arrowDown {
93
+ transform: rotate(225deg);
94
+ }
95
+
96
+ .arrowLeft {
97
+ transform: rotate(315deg) translateY(-50%);
98
+ }
99
+
100
+ .arrowRight {
101
+ transform: rotate(135deg) translateY(50%);
102
+ }
103
+ @keyframes tooltip-grow {
104
+ from {
105
+ opacity: 0;
106
+ }
107
+
108
+ to {
109
+ opacity: 1;
110
+ }
111
+ }
112
+
113
+ @-webkit-keyframes tooltip-grow {
114
+ from {
115
+ opacity: 0;
116
+ }
117
+
118
+ to {
119
+ opacity: 1;
120
+ }
121
+ }
122
+
123
+ @-moz-keyframes tooltip-grow {
124
+ from {
125
+ opacity: 0;
126
+ }
127
+
128
+ to {
129
+ opacity: 1;
130
+ }
131
+ }
132
+
133
+ @-ms-keyframes tooltip-grow {
134
+ from {
135
+ opacity: 0;
136
+ }
137
+
138
+ to {
139
+ opacity: 1;
140
+ }
141
141
  }
@@ -1,4 +1,4 @@
1
- :root {
2
- --lib_a11y_focusScope_focus_border: var(--zdt_a11y_focusScope_focus_border);
3
- --lib_a11y_focusScope_focus_bg: var(--zdt_listitem_highlight_bg);
1
+ :root {
2
+ --lib_a11y_focusScope_focus_border: var(--zdt_a11y_focusScope_focus_border);
3
+ --lib_a11y_focusScope_focus_bg: var(--zdt_listitem_highlight_bg);
4
4
  }