@zohodesk/components 1.0.0-temp-154 → 1.0.0-temp-155

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 (114) hide show
  1. package/README.md +4 -0
  2. package/es/Avatar/Avatar.module.css +8 -8
  3. package/es/AvatarTeam/AvatarTeam.module.css +33 -32
  4. package/es/Button/css/Button.module.css +49 -48
  5. package/es/Buttongroup/Buttongroup.module.css +10 -10
  6. package/es/CheckBox/CheckBox.module.css +14 -14
  7. package/es/DateTime/DateTime.module.css +32 -32
  8. package/es/DateTime/YearView.module.css +12 -12
  9. package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +42 -41
  10. package/es/DropDown/DropDown.module.css +2 -2
  11. package/es/DropDown/DropDownHeading.module.css +5 -5
  12. package/es/DropDown/DropDownItem.module.css +7 -7
  13. package/es/DropDown/DropDownSearch.module.css +3 -3
  14. package/es/DropDown/DropDownSeparator.module.css +2 -2
  15. package/es/Label/Label.module.css +6 -6
  16. package/es/ListItem/ListItem.module.css +37 -37
  17. package/es/MultiSelect/MultiSelect.module.css +25 -24
  18. package/es/MultiSelect/SelectedOptions.module.css +4 -4
  19. package/es/Radio/Radio.module.css +9 -9
  20. package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +1 -1
  21. package/es/Ribbon/Ribbon.module.css +44 -42
  22. package/es/Select/Select.module.css +19 -19
  23. package/es/Stencils/Stencils.module.css +13 -13
  24. package/es/Switch/Switch.module.css +22 -22
  25. package/es/Tab/Tab.module.css +10 -10
  26. package/es/Tab/Tabs.module.css +12 -12
  27. package/es/Tag/Tag.module.css +20 -20
  28. package/es/TextBox/TextBox.module.css +15 -14
  29. package/es/TextBoxIcon/TextBoxIcon.module.css +2 -1
  30. package/es/Textarea/Textarea.module.css +21 -21
  31. package/es/Tooltip/Tooltip.module.css +10 -3
  32. package/es/common/avatarsizes.module.css +16 -16
  33. package/es/common/boxShadow.module.css +1 -3
  34. package/es/common/customscroll.module.css +2 -0
  35. package/es/common/reset.module.css +1 -0
  36. package/es/deprecated/AdvancedMultiSelect.module.css +16 -16
  37. package/lib/Avatar/Avatar.module.css +8 -8
  38. package/lib/AvatarTeam/AvatarTeam.module.css +33 -32
  39. package/lib/Button/css/Button.module.css +49 -48
  40. package/lib/Buttongroup/Buttongroup.module.css +10 -10
  41. package/lib/CheckBox/CheckBox.module.css +14 -14
  42. package/lib/DateTime/DateTime.js +1 -1
  43. package/lib/DateTime/DateTime.module.css +32 -32
  44. package/lib/DateTime/DateTimePopupFooter.js +1 -1
  45. package/lib/DateTime/DateTimePopupHeader.js +1 -1
  46. package/lib/DateTime/DateWidget.js +1 -1
  47. package/lib/DateTime/DaysRow.js +1 -1
  48. package/lib/DateTime/Time.js +1 -1
  49. package/lib/DateTime/YearView.js +1 -1
  50. package/lib/DateTime/YearView.module.css +12 -12
  51. package/lib/DateTime/dateFormatUtils/timeChange.js +1 -1
  52. package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +42 -41
  53. package/lib/DropDown/DropDown.module.css +2 -2
  54. package/lib/DropDown/DropDownHeading.module.css +5 -5
  55. package/lib/DropDown/DropDownItem.module.css +7 -7
  56. package/lib/DropDown/DropDownSearch.module.css +3 -3
  57. package/lib/DropDown/DropDownSeparator.module.css +2 -2
  58. package/lib/Label/Label.js +3 -1
  59. package/lib/Label/Label.module.css +6 -6
  60. package/lib/ListItem/ListContainer.js +1 -1
  61. package/lib/ListItem/ListItem.js +1 -1
  62. package/lib/ListItem/ListItem.module.css +37 -37
  63. package/lib/ListItem/ListItemWithAvatar.js +1 -1
  64. package/lib/ListItem/ListItemWithIcon.js +1 -1
  65. package/lib/Modal/Modal.js +1 -1
  66. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +1 -1
  67. package/lib/MultiSelect/AdvancedMultiSelect.js +1 -2
  68. package/lib/MultiSelect/EmptyState.js +1 -1
  69. package/lib/MultiSelect/MultiSelect.js +1 -2
  70. package/lib/MultiSelect/MultiSelect.module.css +25 -24
  71. package/lib/MultiSelect/MultiSelectHeader.js +1 -1
  72. package/lib/MultiSelect/MultiSelectWithAvatar.js +1 -1
  73. package/lib/MultiSelect/SelectedOptions.js +1 -1
  74. package/lib/MultiSelect/SelectedOptions.module.css +4 -4
  75. package/lib/MultiSelect/Suggestions.js +1 -1
  76. package/lib/Popup/Popup.js +1 -1
  77. package/lib/Popup/__tests__/Popup.spec.js +1 -1
  78. package/lib/Radio/Radio.js +1 -1
  79. package/lib/Radio/Radio.module.css +9 -9
  80. package/lib/Responsive/CustomResponsive.js +0 -1
  81. package/lib/Responsive/ResizeComponent.js +3 -1
  82. package/lib/Responsive/Responsive.js +1 -1
  83. package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +1 -1
  84. package/lib/Ribbon/Ribbon.js +1 -1
  85. package/lib/Ribbon/Ribbon.module.css +44 -42
  86. package/lib/Select/GroupSelect.js +1 -1
  87. package/lib/Select/Select.js +1 -2
  88. package/lib/Select/Select.module.css +19 -19
  89. package/lib/Select/SelectWithAvatar.js +1 -1
  90. package/lib/Select/SelectWithIcon.js +1 -1
  91. package/lib/Select/__tests__/Select.spec.js +1 -1
  92. package/lib/Stencils/Stencils.js +1 -1
  93. package/lib/Stencils/Stencils.module.css +13 -13
  94. package/lib/Switch/Switch.module.css +22 -22
  95. package/lib/Tab/Tab.js +1 -1
  96. package/lib/Tab/Tab.module.css +10 -10
  97. package/lib/Tab/Tabs.js +7 -1
  98. package/lib/Tab/Tabs.module.css +12 -12
  99. package/lib/Tag/Tag.module.css +20 -20
  100. package/lib/TextBox/TextBox.js +1 -1
  101. package/lib/TextBox/TextBox.module.css +15 -14
  102. package/lib/TextBoxIcon/TextBoxIcon.module.css +2 -1
  103. package/lib/TextBoxIcon/__tests__/TextBoxIcon.spec.js +0 -1
  104. package/lib/Textarea/Textarea.js +1 -1
  105. package/lib/Textarea/Textarea.module.css +21 -21
  106. package/lib/Tooltip/Tooltip.module.css +10 -3
  107. package/lib/common/avatarsizes.module.css +16 -16
  108. package/lib/common/boxShadow.module.css +1 -3
  109. package/lib/common/customscroll.module.css +2 -0
  110. package/lib/common/reset.module.css +1 -0
  111. package/lib/deprecated/AdvancedMultiSelect.module.css +16 -16
  112. package/lib/deprecated/PortalLayer/PortalLayer.js +1 -1
  113. package/lib/utils/dropDownUtils.js +1 -1
  114. package/package.json +20 -13
@@ -21,7 +21,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
21
21
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
22
22
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
23
23
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
24
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
24
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } /* eslint css-modules/no-unused-class: [2, { markAsUsed: [default, flag, plain, ribbon, box, stamp, sticker, small, medium, large, xlarge, palette_default, palette_danger, palette_primary, palette_secondary, palette_info, palette_dark, plain_default, plain_danger, plain_primary, plain_secondary, plain_info, plain_dark, tag] }] */
25
25
  var Ribbon = /*#__PURE__*/function (_React$Component) {
26
26
  _inherits(Ribbon, _React$Component);
27
27
  var _super = _createSuper(Ribbon);
@@ -3,7 +3,7 @@
3
3
  --ribbon_padding: 0;
4
4
  --ribbon_text_color: var(--zdt_ribbon_default_text);
5
5
  --ribbon_text_transform: none;
6
- --ribbon_font_size: var(--zd_font_size13);
6
+ --ribbon_font_size: 13px;
7
7
  --ribbon_bg_color: var(--zdt_ribbon_default_bg);
8
8
  --ribbon_box_shadow: none;
9
9
  --ribbon_border_width: 0;
@@ -13,22 +13,22 @@
13
13
  /* flag ribbon default variable */
14
14
 
15
15
  /* tag ribbon default variables */
16
- --ribbon_tag_before_top: var(--zd_size3);
16
+ --ribbon_tag_before_top: 3px;
17
17
  --ribbon_tag_before_border_style: solid;
18
18
  --ribbon_tag_before_border_color: var(--zdt_ribbon_default_tag_border);
19
- --ribbon_tag_before_width: var(--zd_size20);
20
- --ribbon_tag_before_height: var(--zd_size20);
21
- --ribbon_tag_before_left: calc(var(--zd_size10) * -1);
19
+ --ribbon_tag_before_width: 20px;
20
+ --ribbon_tag_before_height: 20px;
21
+ --ribbon_tag_before_left: calc(10px * -1);
22
22
  --ribbon_tag_before_border_radius: 3px 0 0 0;
23
23
  }[dir=ltr] .varClass {
24
- --ribbon_flag_border_width: var(--zd_size14) var(--zd_size12) var(--zd_size14) 0
25
- /*rtl: var(--zd_size14) 0 var(--zd_size14) var(--zd_size12)*/
24
+ --ribbon_flag_border_width: 14px 12px 14px 0
25
+ /*rtl: 14px 0 14px 12px*/
26
26
  ;
27
27
  --ribbon_tag_before_border_width: 1px 0 0 1px
28
28
  /*rtl: 1px 1px 0 0*/
29
29
  ;
30
30
  }[dir=rtl] .varClass {
31
- --ribbon_flag_border_width: var(--zd_size14) var(--zd_size12) var(--zd_size14) 0 ;
31
+ --ribbon_flag_border_width: 14px 12px 14px 0 ;
32
32
  --ribbon_tag_before_border_width: 1px 0 0 1px ;
33
33
  }
34
34
 
@@ -60,26 +60,26 @@
60
60
  .default {
61
61
  composes: semibold from '../common/common.module.css';
62
62
  display: block;
63
- --ribbon_padding: var(--zd_size5) var(--zd_size20);
63
+ --ribbon_padding: 5px 20px;
64
64
  --ribbon_text_color: var(--zdt_ribbon_white_text);
65
65
  --ribbon_text_transform: uppercase;
66
66
  text-align: center;
67
67
  }
68
68
 
69
69
  .small {
70
- --ribbon_font_size: var(--zd_font_size9);
70
+ --ribbon_font_size: 9px;
71
71
  }
72
72
 
73
73
  .medium {
74
- --ribbon_font_size: var(--zd_font_size11);
74
+ --ribbon_font_size: 11px;
75
75
  }
76
76
 
77
77
  .large {
78
- --ribbon_font_size: var(--zd_font_size13);
78
+ --ribbon_font_size: 13px;
79
79
  }
80
80
 
81
81
  .xlarge {
82
- --ribbon_font_size: var(--zd_font_size14);
82
+ --ribbon_font_size: 14px;
83
83
  }
84
84
 
85
85
  .palette_default {
@@ -212,26 +212,29 @@
212
212
  composes: dotted from '../common/common.module.css';
213
213
  display: block;
214
214
  --ribbon_text_color: var(--zdt_ribbon_white_text);
215
- --ribbon_line_height: var(--zd_size20);
215
+ --ribbon_line_height: 20px;
216
216
  --ribbon_text_transform: uppercase;
217
217
  }
218
218
 
219
219
  [dir=ltr] .flag {
220
- --ribbon_padding: var(--zd_size4) var(--zd_size24) var(--zd_size4) var(--zd_size6)
221
- /*rtl: var(--zd_size4) var(--zd_size6) var(--zd_size4) var(--zd_size24)*/
220
+ --ribbon_padding: 4px 24px 4px 6px
221
+ /*rtl: 4px 6px 4px 24px*/
222
222
  ;
223
223
  }
224
224
 
225
225
  [dir=rtl] .flag {
226
- --ribbon_padding: var(--zd_size4) var(--zd_size24) var(--zd_size4) var(--zd_size6) ;
226
+ --ribbon_padding: 4px 24px 4px 6px ;
227
227
  }
228
228
 
229
229
  .flag::after {
230
230
  position: absolute;
231
+ /* Variable:Ignore */
231
232
  top: -1px;
233
+ /* Variable:Ignore */
234
+ /* Variable:Ignore */
232
235
  bottom: -1px;
233
236
  content: '';
234
- width: var(--zd_size12);
237
+ width: 12px;
235
238
  border-style: solid;
236
239
  transform: translateZ(0);
237
240
  border-width: var(--ribbon_flag_border_width);
@@ -257,8 +260,8 @@
257
260
  display: block;
258
261
  --ribbon_text_color: var(--zdt_ribbon_white_text);
259
262
  --ribbon_text_transform: uppercase;
260
- --ribbon_padding: var(--zd_size6) var(--zd_size10);
261
- --ribbon_line_height: var(--zd_size20);
263
+ --ribbon_padding: 6px 10px;
264
+ --ribbon_line_height: 20px;
262
265
  text-align: center;
263
266
  }
264
267
 
@@ -267,8 +270,8 @@
267
270
  position: absolute;
268
271
  content: '';
269
272
  top: 100%;
270
- height: var(--zd_size10);
271
- width: var(--zd_size10);
273
+ height: 10px;
274
+ width: 10px;
272
275
  }
273
276
 
274
277
  .ribbon::after, .ribbon::before {
@@ -306,7 +309,7 @@
306
309
  .tag {
307
310
  composes: semibold from '../common/common.module.css';
308
311
  display: inline-block;
309
- height: var(--zd_size28);
312
+ height: 28px;
310
313
  border-style: solid;
311
314
  border-color: var(--zdt_ribbon_default_tag_border);
312
315
  }
@@ -318,17 +321,16 @@
318
321
  border-radius: 0 3px 3px 0
319
322
  /*rtl: 3px 0 0 3px*/
320
323
  ;
321
- margin-left: var(--zd_size13);
322
- padding: var(--zd_size6) var(--zd_size8) var(--zd_size6) var(--zd_size5)
323
- /*rtl: var(--zd_size6) var(--zd_size5) var(--zd_size6) var(--zd_size8)*/
324
- ;
324
+ margin-left: 13px;
325
+ padding: 6px 8px 6px 5px
326
+ ;
325
327
  }
326
328
 
327
329
  [dir=rtl] .tag {
328
330
  border-width: 1px 0 1px 1px ;
329
331
  border-radius: 3px 0 0 3px ;
330
- margin-right: var(--zd_size13);
331
- padding: var(--zd_size6) var(--zd_size5) var(--zd_size6) var(--zd_size8) ;
332
+ margin-right: 13px;
333
+ padding: 6px 5px 6px 8px;
332
334
  }
333
335
 
334
336
  .tag::before {
@@ -357,19 +359,19 @@
357
359
  .box {
358
360
  display: inline-block;
359
361
  --ribbon_bg_color: var(--zdt_ribbon_white_bg);
360
- --ribbon_padding: var(--zd_size5) var(--zd_size8);
362
+ --ribbon_padding: 5px 8px;
361
363
  border-radius: 3px;
362
364
  }
363
365
 
364
366
  .stamp {
365
367
  display: inline-block;
366
- --ribbon_padding: var(--zd_size3) var(--zd_size5);
368
+ --ribbon_padding: 3px 5px;
367
369
  --ribbon_text_transform: uppercase;
368
370
  }
369
371
 
370
372
  .sticker {
371
373
  display: block;
372
- height: var(--zd_size18);
374
+ height: 18px;
373
375
  line-height: var(--zd_size11);
374
376
  --ribbon_text_color: var(--zdt_ribbon_white_text);
375
377
  --ribbon_text_transform: uppercase;
@@ -377,7 +379,7 @@
377
379
  border-width: 1px 0;
378
380
  border-style: solid;
379
381
  border-color: var(--zdt_ribbon_flag_white_border);
380
- padding: var(--zd_size3) var(--zd_size10);
382
+ padding: 3px 10px;
381
383
  }
382
384
 
383
385
  .after,
@@ -385,23 +387,23 @@
385
387
  position: absolute;
386
388
  top: 0;
387
389
  bottom: 0;
388
- width: var(--zd_size10);
390
+ width: 10px;
389
391
  }
390
392
 
391
393
  [dir=ltr] .after {
392
- right: calc(var(--zd_size2) * -1);
394
+ right: -2px;
393
395
  }
394
396
 
395
397
  [dir=rtl] .after {
396
- left: calc(var(--zd_size2) * -1);
398
+ left: -2px;
397
399
  }
398
400
 
399
401
  [dir=ltr] .before {
400
- left: calc(var(--zd_size8) * -1);
402
+ left: -8px;
401
403
  }
402
404
 
403
405
  [dir=rtl] .before {
404
- right: calc(var(--zd_size8) * -1);
406
+ right: -8px;
405
407
  }
406
408
 
407
409
  .after::after,
@@ -409,8 +411,8 @@
409
411
  .before::after,
410
412
  .before::before {
411
413
  position: absolute;
412
- height: var(--zd_size7);
413
- width: var(--zd_size7);
414
+ height: 7px;
415
+ width: 7px;
414
416
  content: '';
415
417
  }
416
418
 
@@ -443,11 +445,11 @@
443
445
  }
444
446
 
445
447
  [dir=ltr] .children {
446
- margin-right: var(--zd_size4);
448
+ margin-right: 4px;
447
449
  }
448
450
 
449
451
  [dir=rtl] .children {
450
- margin-left: var(--zd_size4);
452
+ margin-left: 4px;
451
453
  }
452
454
 
453
455
  .childText {
@@ -44,7 +44,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
44
44
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
45
45
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
46
46
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
47
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
47
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } /**** Libraries ****/ /**** Components ****/ /**** Methods ****/
48
48
  /* eslint-disable react/no-unused-prop-types */
49
49
  /* eslint-disable react/sort-prop-types */
50
50
  /* eslint-disable react/forbid-component-props */
@@ -39,10 +39,9 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
39
39
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
40
40
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
41
41
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
42
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
42
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } /**** Libraries ****/ /**** Components ****/ /**** Methods ****/ /**** CSS ****/
43
43
  /* eslint-disable react/no-deprecated */
44
44
  /* eslint-disable react/no-unused-prop-types */
45
-
46
45
  var dummyArray = [];
47
46
  var SelectComponent = /*#__PURE__*/function (_Component) {
48
47
  _inherits(SelectComponent, _Component);
@@ -2,24 +2,24 @@
2
2
  cursor: pointer;
3
3
  }
4
4
  .small {
5
- max-height: var(--zd_size200);
5
+ max-height: 200px;
6
6
  }
7
7
  .medium {
8
- max-height: var(--zd_size350);
8
+ max-height: 350px;
9
9
  }
10
10
  .large {
11
- max-height: var(--zd_size400);
11
+ max-height: 400px;
12
12
  }
13
13
  .emptyState {
14
- font-size: var(--zd_font_size14);
14
+ font-size: 14px;
15
15
  color: var(--zdt_select_emptystate_text);
16
16
  composes: semibold from '../common/common.module.css';
17
17
  }
18
18
  .box_small .emptyState {
19
- padding: var(--zd_size12) var(--zd_size6);
19
+ padding: 12px 6px;
20
20
  }
21
21
  .box_medium .emptyState {
22
- padding: var(--zd_size12) var(--zd_size15);
22
+ padding: 12px 15px;
23
23
  }
24
24
  .hide {
25
25
  composes: vishidden from '../common/common.module.css';
@@ -28,26 +28,26 @@
28
28
  position: relative;
29
29
  }
30
30
  .arrowIcon {
31
- height: var(--zd_size8);
31
+ height: 8px;
32
32
  line-height: var(--zd_size8);
33
33
  }
34
34
  .small.search {
35
- padding: 0 var(--zd_size5);
35
+ padding: 0 5px;
36
36
  }
37
37
  .medium.search {
38
- padding: var(--zd_size3) var(--zd_size20) 0;
38
+ padding: 3px 20px 0;
39
39
  }
40
40
  .title {
41
- margin-bottom: var(--zd_size6);
41
+ margin-bottom: 6px;
42
42
  }
43
43
  .groupTitle {
44
- margin: var(--zd_size6) 0;
44
+ margin: 6px 0;
45
45
  }
46
46
  .listItemContainer {
47
- padding: var(--zd_size10) 0;
47
+ padding: 10px 0;
48
48
  }
49
49
  .responsivelistItemContainer {
50
- padding: var(--zd_size10) 0 0;
50
+ padding: 10px 0 0;
51
51
  }
52
52
  .readonly {
53
53
  --textboxicon_icon_cursor: not-allowed;
@@ -68,7 +68,7 @@
68
68
  position: absolute;
69
69
  top: 0;
70
70
  bottom: 0;
71
- width: var(--zd_size30);
71
+ width: 30px;
72
72
  }
73
73
 
74
74
  [dir=ltr] .leftIcon {
@@ -79,17 +79,17 @@
79
79
  right: 0;
80
80
  }
81
81
  [dir=ltr] .iconSelect {
82
- padding-left: var(--zd_size30);
82
+ padding-left: 30px;
83
83
  }
84
84
  [dir=rtl] .iconSelect {
85
- padding-right: var(--zd_size30);
85
+ padding-right: 30px;
86
86
  }
87
87
 
88
88
  .dropBoxList {
89
- padding: var(--zd_size10) 0;
89
+ padding: 10px 0;
90
90
  }
91
91
  .responsivedropBoxList{
92
- padding: var(--zd_size10) 0 0 0;
92
+ padding: 10px 0 0 0;
93
93
  }
94
94
  .rotate {
95
95
  transform: rotateX(180deg);
@@ -105,5 +105,5 @@
105
105
  visibility: visible;
106
106
  }
107
107
  .loader {
108
- padding: var(--zd_size10);
108
+ padding: 10px;
109
109
  }
@@ -38,7 +38,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
38
38
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
39
39
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
40
40
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
41
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
41
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } /**** Libraries ****/ /**** Components ****/ /**** CSS ****/
42
42
  var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
43
43
  _inherits(SelectWithAvatarComponent, _SelectComponent);
44
44
  var _super = _createSuper(SelectWithAvatarComponent);
@@ -35,7 +35,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
35
35
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
36
36
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
37
37
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
38
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
38
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } /**** Components ****/ /**** Methods ****/ /**** CSS ****/
39
39
  var SelectWithIcon = /*#__PURE__*/function (_Component) {
40
40
  _inherits(SelectWithIcon, _Component);
41
41
  var _super = _createSuper(SelectWithIcon);
@@ -9,7 +9,7 @@ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructur
9
9
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
10
10
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
11
11
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
12
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
12
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /* eslint-disable no-undef */ /**** Libraries ****/ /**** Components ****/
13
13
  describe('Select component conditions', function () {
14
14
  it('Select component with down arrow', function () {
15
15
  var _setup = setup(_Select["default"], {
@@ -21,7 +21,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
21
21
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
22
22
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
23
23
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
24
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
24
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } /* eslint css-modules/no-unused-class: [2, { markAsUsed: [primary, secondary, small, default, medium, large, clarge, cmedium, cdefault, csmall] }] */
25
25
  var Stencils = /*#__PURE__*/function (_React$PureComponent) {
26
26
  _inherits(Stencils, _React$PureComponent);
27
27
  var _super = _createSuper(Stencils);
@@ -1,8 +1,8 @@
1
1
  .varClass {
2
2
  /* stencils default variables */
3
- --stencil_height: var(--zd_size9);
3
+ --stencil_height: 9px;
4
4
  --stencil_width: 100%;
5
- --stencil_border_radius: var(--zd_size5);
5
+ --stencil_border_radius: 5px;
6
6
  }
7
7
  .container {
8
8
  composes: varClass;
@@ -48,8 +48,8 @@
48
48
 
49
49
  .rectangular {
50
50
  composes: stencil;
51
- --stencil_height: var(--zd_size9);
52
- --stencil_border_radius: var(--zd_size5);
51
+ --stencil_height: 9px;
52
+ --stencil_border_radius: 5px;
53
53
  }
54
54
  .primary {
55
55
  background-color: var(--zdt_stencil_primary_bg);
@@ -65,16 +65,16 @@
65
65
  }
66
66
 
67
67
  .small {
68
- --stencil_width: var(--zd_size110);
68
+ --stencil_width: 110px;
69
69
  }
70
70
  .default {
71
71
  --stencil_width: 100%;
72
72
  }
73
73
  .medium {
74
- --stencil_width: var(--zd_size170);
74
+ --stencil_width: 170px;
75
75
  }
76
76
  .large {
77
- --stencil_width: var(--zd_size220);
77
+ --stencil_width: 220px;
78
78
  }
79
79
 
80
80
  .circle {
@@ -82,15 +82,15 @@
82
82
  --stencil_border_radius: 50%;
83
83
  }
84
84
  .clarge {
85
- --stencil_width: var(--zd_size42);
86
- --stencil_height: var(--zd_size42);
85
+ --stencil_width: 42px;
86
+ --stencil_height: 42px;
87
87
  }
88
88
  .cmedium,
89
89
  .cdefault {
90
- --stencil_width: var(--zd_size30);
91
- --stencil_height: var(--zd_size30);
90
+ --stencil_width: 30px;
91
+ --stencil_height: 30px;
92
92
  }
93
93
  .csmall {
94
- --stencil_width: var(--zd_size20);
95
- --stencil_height: var(--zd_size20);
94
+ --stencil_width: 20px;
95
+ --stencil_height: 20px;
96
96
  }
@@ -53,7 +53,7 @@
53
53
  }
54
54
 
55
55
  .checked+.label:after {
56
- right: calc(var(--zd_size1) * -1);
56
+ right: -1px;
57
57
  }
58
58
 
59
59
  .input {
@@ -61,35 +61,35 @@
61
61
  }
62
62
 
63
63
  .small {
64
- height: var(--zd_size14);
65
- width: var(--zd_size28);
64
+ height: 14px;
65
+ width: 28px;
66
66
  }
67
67
  .switch_smallLabel {
68
- height: var(--zd_size9);
69
- width: var(--zd_size22);
70
- top: calc(var(--zd_size2) * -1);
71
- left: var(--zd_size2);
68
+ height: 9px;
69
+ width: 22px;
70
+ top: -2px;
71
+ left: 2px;
72
72
  }
73
73
  .switch_smallLabel:after {
74
- width: var(--zd_size12);
75
- height: var(--zd_size12);
76
- top: calc(var(--zd_size2) * -1);
74
+ width: 12px;
75
+ height: 12px;
76
+ top: -2px;
77
77
  }
78
78
 
79
79
  .medium {
80
- height: var(--zd_size18);
81
- width: var(--zd_size34);
80
+ height: 18px;
81
+ width: 34px;
82
82
  }
83
83
  .switch_mediumLabel {
84
- height: var(--zd_size13);
85
- width: var(--zd_size31);
86
- top: var(--zd_size2);
87
- left: var(--zd_size2);
84
+ height: 13px;
85
+ width: 31px;
86
+ top: 2px;
87
+ left: 2px;
88
88
  }
89
89
  .switch_mediumLabel:after {
90
- width: var(--zd_size18);
91
- height: var(--zd_size18);
92
- top: calc(var(--zd_size3) * -1);
90
+ width: 18px;
91
+ height: 18px;
92
+ top: -3px;
93
93
  }
94
94
 
95
95
  .input:disabled+.label {
@@ -116,13 +116,13 @@
116
116
 
117
117
  .switch+label {
118
118
  position: relative;
119
- top: calc(var(--zd_size1) * -1);
119
+ top: -1px;
120
120
  }
121
121
 
122
122
  [dir=ltr] .switch+label {
123
- margin-left: var(--zd_size12);
123
+ margin-left: 12px;
124
124
  }
125
125
 
126
126
  [dir=rtl] .switch+label {
127
- margin-right: var(--zd_size12);
127
+ margin-right: 12px;
128
128
  }
package/lib/Tab/Tab.js CHANGED
@@ -14,7 +14,7 @@ var _TabModule = _interopRequireDefault(require("./Tab.module.css"));
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
15
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
16
16
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
- 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); }
17
+ 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); } /* eslint-disable react/forbid-component-props */ /* eslint css-modules/no-unused-class: [2, { markAsUsed: ['text', 'tabAlpha', 'alphaActive', 'gammaActive', 'betaActive', 'deltaActive', 'tabGamma', 'tabBeta', 'tabDelta',', 'specialActive', 'tabSpecial', 'alphaActive_border', 'gammaActive_border', 'betaActive_border', 'deltaActive_border'] }] */
18
18
  var tabTypes = {
19
19
  alpha: {
20
20
  active: 'alphaActive',
@@ -31,9 +31,9 @@
31
31
  transition: all var(--zd_transition2);
32
32
  }
33
33
  .alpha {
34
- font-size: var(--zd_font_size11);
34
+ font-size: 11px;
35
35
  line-height: var(--zd_size33);
36
- padding: 0 var(--zd_size18);
36
+ padding: 0 18px;
37
37
  }
38
38
  .tabAlpha {
39
39
  composes: alpha;
@@ -54,16 +54,16 @@
54
54
  border-color: var(--zdt_tab_delta_active_border);
55
55
  }
56
56
  .beta {
57
- font-size: var(--zd_font_size14);
57
+ font-size: 14px;
58
58
  line-height: var(--zd_size60);
59
59
  text-transform: capitalize;
60
- padding: 0 var(--zd_size4);
60
+ padding: 0 4px;
61
61
  }
62
62
  [dir=ltr] .beta {
63
- margin-right: var(--zd_size40);
63
+ margin-right: 40px;
64
64
  }
65
65
  [dir=rtl] .beta {
66
- margin-left: var(--zd_size40);
66
+ margin-left: 40px;
67
67
  }
68
68
  .tabBeta {
69
69
  composes: beta;
@@ -77,15 +77,15 @@
77
77
  color: var(--zdt_tab_alpha_hover_text);
78
78
  }
79
79
  .delta {
80
- font-size: var(--zd_font_size11);
80
+ font-size: 11px;
81
81
  line-height: var(--zd_size33);
82
- padding: 0 var(--zd_size4);
82
+ padding: 0 4px;
83
83
  }
84
84
  [dir=ltr] .delta {
85
- margin-right: var(--zd_size10);
85
+ margin-right: 10px;
86
86
  }
87
87
  [dir=rtl] .delta {
88
- margin-left: var(--zd_size10);
88
+ margin-left: 10px;
89
89
  }
90
90
  .tabDelta {
91
91
  composes: delta;
package/lib/Tab/Tabs.js CHANGED
@@ -35,7 +35,13 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
35
35
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
36
36
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
37
37
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
38
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
38
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } /* eslint-disable react/forbid-component-props */ /* eslint css-modules/no-unused-class: [2, {
39
+ markAsUsed: [
40
+ 'hidden','alpha','gamma','beta','delta','special','text','maxWidth','widgetList','menuContainer','border','tabText','block','tabAlpha','alphaActive','gammaActive','betaActive','deltaActive','tabGamma','tabBeta','tabDelta','specialActive','tabSpecial',
41
+ 'alpha_padding','alpha_border','gamma_padding','gamma_border','beta_padding','beta_border','delta_padding','delta_border','textContainer','disabled','alphaActive_border','gammaActive_border','betaActive_border','deltaActive_border'
42
+ ]
43
+ }]
44
+ */
39
45
  var Tabs = /*#__PURE__*/function (_React$Component) {
40
46
  _inherits(Tabs, _React$Component);
41
47
  var _super = _createSuper(Tabs);