@zohodesk/components 1.0.0-alpha-259 → 1.0.0-alpha-261

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 (141) hide show
  1. package/README.md +21 -5
  2. package/es/DateTime/DateTimePopupHeader.js +1 -1
  3. package/es/DateTime/DateWidget.js +3 -4
  4. package/es/DateTime/YearView.js +1 -1
  5. package/es/DateTime/index.js +1 -1
  6. package/es/DropDown/index.js +7 -0
  7. package/es/Layout/index.js +9 -9
  8. package/es/ListItem/ListItem.js +1 -1
  9. package/es/ListItem/ListItemWithAvatar.js +1 -1
  10. package/es/ListItem/ListItemWithIcon.js +1 -1
  11. package/es/ListItem/index.js +6 -0
  12. package/es/MultiSelect/AdvancedGroupMultiSelect.js +1 -1
  13. package/es/MultiSelect/AdvancedMultiSelect.js +1 -1
  14. package/es/MultiSelect/MultiSelect.js +1 -1
  15. package/es/MultiSelect/MultiSelectWithAvatar.js +1 -1
  16. package/es/MultiSelect/Suggestions.js +4 -2
  17. package/es/MultiSelect/index.js +4 -0
  18. package/es/PopOver/index.js +3 -0
  19. package/es/Popup/Popup.js +2 -2
  20. package/es/Provider/IdProvider.js +8 -7
  21. package/es/Provider/index.js +4 -0
  22. package/es/Responsive/index.js +11 -8
  23. package/es/Select/GroupSelect.js +1 -1
  24. package/es/Select/Select.js +1 -1
  25. package/es/Select/SelectWithIcon.js +1 -1
  26. package/es/Select/index.js +4 -0
  27. package/es/Tab/Tab.module.css +0 -1
  28. package/es/Tab/Tabs.js +1 -1
  29. package/es/Tab/Tabs.module.css +0 -1
  30. package/es/Tag/Tag.js +1 -1
  31. package/es/TextBoxIcon/TextBoxIcon.js +21 -4
  32. package/es/VelocityAnimation/index.js +2 -0
  33. package/es/index.js +30 -146
  34. package/es/semantic/index.js +1 -0
  35. package/es/utils/Common.js +17 -2
  36. package/es/utils/css/compileClassNames.js +23 -0
  37. package/es/utils/css/mergeStyle.js +42 -0
  38. package/es/utils/css/utils.js +23 -0
  39. package/es/utils/index.js +3 -0
  40. package/lib/Accordion/Accordion.js +3 -1
  41. package/lib/Accordion/AccordionItem.js +3 -1
  42. package/lib/Animation/Animation.js +3 -1
  43. package/lib/AppContainer/AppContainer.js +3 -1
  44. package/lib/Avatar/Avatar.js +4 -2
  45. package/lib/AvatarTeam/AvatarTeam.js +3 -1
  46. package/lib/Button/Button.js +3 -1
  47. package/lib/Buttongroup/Buttongroup.js +5 -2
  48. package/lib/Card/Card.js +3 -1
  49. package/lib/CheckBox/CheckBox.js +3 -1
  50. package/lib/DateTime/CalendarView.js +5 -2
  51. package/lib/DateTime/DateTime.js +5 -3
  52. package/lib/DateTime/DateTimePopupFooter.js +3 -1
  53. package/lib/DateTime/DateTimePopupHeader.js +7 -5
  54. package/lib/DateTime/DateWidget.js +6 -6
  55. package/lib/DateTime/DaysRow.js +3 -1
  56. package/lib/DateTime/Time.js +3 -1
  57. package/lib/DateTime/YearView.js +5 -3
  58. package/lib/DateTime/dateFormatUtils/timeChange.js +2 -2
  59. package/lib/DateTime/index.js +1 -1
  60. package/lib/DateTime/validator.js +4 -4
  61. package/lib/DropBox/DropBox.js +3 -1
  62. package/lib/DropDown/DropDown.js +5 -2
  63. package/lib/DropDown/DropDownHeading.js +3 -1
  64. package/lib/DropDown/DropDownItem.js +3 -1
  65. package/lib/DropDown/DropDownSearch.js +5 -2
  66. package/lib/DropDown/DropDownSeparator.js +3 -1
  67. package/lib/DropDown/index.js +56 -0
  68. package/lib/DropDown/props/propTypes.js +4 -1
  69. package/lib/Heading/Heading.js +4 -2
  70. package/lib/Label/Label.js +3 -1
  71. package/lib/Layout/index.js +1 -11
  72. package/lib/ListItem/ListItem.js +5 -3
  73. package/lib/ListItem/ListItemWithAvatar.js +5 -3
  74. package/lib/ListItem/ListItemWithCheckBox.js +3 -1
  75. package/lib/ListItem/ListItemWithIcon.js +6 -4
  76. package/lib/ListItem/ListItemWithRadio.js +3 -1
  77. package/lib/ListItem/index.js +48 -0
  78. package/lib/ListItem/props/propTypes.js +4 -1
  79. package/lib/Modal/Modal.js +3 -1
  80. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +8 -6
  81. package/lib/MultiSelect/AdvancedMultiSelect.js +6 -4
  82. package/lib/MultiSelect/EmptyState.js +3 -1
  83. package/lib/MultiSelect/MultiSelect.js +7 -5
  84. package/lib/MultiSelect/MultiSelectHeader.js +3 -1
  85. package/lib/MultiSelect/MultiSelectWithAvatar.js +5 -3
  86. package/lib/MultiSelect/SelectedOptions.js +5 -2
  87. package/lib/MultiSelect/Suggestions.js +9 -5
  88. package/lib/MultiSelect/index.js +34 -0
  89. package/lib/PopOver/PopOver.js +3 -1
  90. package/lib/PopOver/index.js +27 -0
  91. package/lib/Popup/Popup.js +5 -3
  92. package/lib/Popup/__tests__/Popup.spec.js +3 -1
  93. package/lib/Provider/IdProvider.js +8 -8
  94. package/lib/Provider/LibraryContext.js +5 -3
  95. package/lib/Provider/NumberGenerator/NumberGenerator.js +1 -1
  96. package/lib/Provider/index.js +76 -0
  97. package/lib/Radio/Radio.js +3 -1
  98. package/lib/Responsive/CustomResponsive.js +6 -4
  99. package/lib/Responsive/RefWrapper.js +4 -2
  100. package/lib/Responsive/ResizeComponent.js +9 -4
  101. package/lib/Responsive/ResizeObserver.js +4 -1
  102. package/lib/Responsive/Responsive.js +6 -4
  103. package/lib/Responsive/index.js +45 -22
  104. package/lib/Responsive/sizeObservers.js +4 -2
  105. package/lib/ResponsiveDropBox/ResponsiveDropBox.js +3 -1
  106. package/lib/Ribbon/Ribbon.js +3 -1
  107. package/lib/Select/GroupSelect.js +7 -5
  108. package/lib/Select/Select.js +5 -3
  109. package/lib/Select/SelectWithAvatar.js +3 -1
  110. package/lib/Select/SelectWithIcon.js +6 -4
  111. package/lib/Select/__tests__/Select.spec.js +2 -2
  112. package/lib/Select/index.js +34 -0
  113. package/lib/Select/props/defaultProps.js +4 -1
  114. package/lib/Stencils/Stencils.js +3 -1
  115. package/lib/Switch/Switch.js +3 -1
  116. package/lib/Tab/Tab.module.css +0 -1
  117. package/lib/Tab/TabWrapper.js +2 -2
  118. package/lib/Tab/Tabs.js +6 -4
  119. package/lib/Tab/Tabs.module.css +0 -1
  120. package/lib/Tag/Tag.js +6 -4
  121. package/lib/TextBox/TextBox.js +3 -1
  122. package/lib/TextBox/props/propTypes.js +4 -1
  123. package/lib/TextBoxIcon/TextBoxIcon.js +27 -7
  124. package/lib/Textarea/Textarea.js +3 -1
  125. package/lib/Tooltip/Tooltip.js +3 -1
  126. package/lib/Tooltip/__tests__/Tooltip.spec.js +3 -1
  127. package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +3 -1
  128. package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +4 -2
  129. package/lib/VelocityAnimation/index.js +20 -0
  130. package/lib/deprecated/PortalLayer/PortalLayer.js +3 -1
  131. package/lib/index.js +157 -210
  132. package/lib/semantic/Button/Button.js +3 -1
  133. package/lib/semantic/index.js +13 -0
  134. package/lib/utils/Common.js +18 -2
  135. package/lib/utils/constructFullName.js +2 -2
  136. package/lib/utils/css/compileClassNames.js +31 -0
  137. package/lib/utils/css/mergeStyle.js +52 -0
  138. package/lib/utils/css/utils.js +33 -0
  139. package/lib/utils/dropDownUtils.js +5 -3
  140. package/lib/utils/index.js +117 -0
  141. package/package.json +3 -3
package/es/index.js CHANGED
@@ -1,157 +1,41 @@
1
- // export { default as React } from 'react';
2
- // export { default as ReactDOM } from 'react-dom';
3
- // export { renderToStaticMarkup } from 'react-dom/server';
4
- export * from './Layout';
5
- // export { default as Layout__default } from './Layout/docs/Layout__default.docs';
6
- // export { default as Layout__two_Column } from './Layout/docs/Layout__two_Column.docs';
7
- // export { default as Layout__three_Column } from './Layout/docs/Layout__three_Column.docs';
8
- // export { default as Layout__four_Column } from './Layout/docs/Layout__four_Column.docs';
9
- // export { default as Layout__Hidden } from './Layout/docs/Layout__Hidden.docs';
10
- export { default as AppContainer } from './AppContainer/AppContainer';
11
- // export { default as AppContainer__default } from './AppContainer/docs/AppContainer__default.docs';
12
- export { default as Accordion } from './Accordion/Accordion';
13
- // export { default as Accordion__Demo } from './Accordion/docs/Accordion__Demo.docs';
1
+ export * from './Accordion';
14
2
  export { default as Animation } from './Animation/Animation';
15
- // export { default as Animation__default } from './Animation/docs/Animation__default.docs';
16
- // export { default as Animation__fadeIn } from './Animation/docs/Animation__fadeIn.docs';
17
- // export { default as Animation__scaleIn } from './Animation/docs/Animation__scaleIn.docs';
18
- // export { default as Animation__slideDown } from './Animation/docs/Animation__slideDown.docs';
19
- // export { default as Animation__slideLeft } from './Animation/docs/Animation__slideLeft.docs';
20
- // export { default as Animation__zoomIn } from './Animation/docs/Animation__zoomIn.docs';
21
- // export { default as Animation__skewIn } from './Animation/docs/Animation__skewIn.docs';
22
- export { default as Card } from './Card/Card';
23
- // export { default as Card__Default } from './Card/docs/Card__Default.docs';
24
- // export { default as Card__Scroll } from './Card/docs/Card__Scroll.docs';
25
- // export { default as Card__Custom } from './Card/docs/Card__Custom.docs';
3
+ export { default as AppContainer } from './AppContainer/AppContainer';
26
4
  export { default as Avatar } from './Avatar/Avatar';
27
- // export { default as Avatar__default } from './Avatar/docs/Avatar__default.docs';
28
- // export { default as Avatar__palette } from './Avatar/docs/Avatar__palette.docs';
29
- // export { default as Avatar__text } from './Avatar/docs/Avatar__text.docs';
30
- // export { default as Avatar__custom } from './Avatar/docs/Avatar__custom.docs';
31
5
  export { default as AvatarTeam } from './AvatarTeam/AvatarTeam';
32
- // export { default as AvatarTeam__default } from './AvatarTeam/docs/AvatarTeam__default.docs';
33
- // export { default as AvatarTeam__size } from './AvatarTeam/docs/AvatarTeam__size.docs';
34
- // export { default as AvatarTeam__palette } from './AvatarTeam/docs/AvatarTeam__palette.docs';
35
- // export { default as AvatarTeam__custom } from './AvatarTeam/docs/AvatarTeam__custom.docs';
36
6
  export { default as Button } from './Button/Button';
37
- // export { default as Button__default } from './Button/docs/Button__default.docs';
38
- // export { default as Button__custom } from './Button/docs/Button__custom.docs';
39
7
  export { default as Buttongroup } from './Buttongroup/Buttongroup';
40
- // export { default as Buttongroup__footer } from './Buttongroup/docs/Buttongroup__footer.docs';
41
- // export { default as Buttongroup__header } from './Buttongroup/docs/Buttongroup__header.docs';
42
- // export { default as Buttongroup__custom } from './Buttongroup/docs/Buttongroup__custom.docs';
43
- export { default as Switch } from './Switch/Switch';
44
- // export { default as Switch__default } from './Switch/docs/Switch__default.docs';
45
- // export { default as Switch__custom } from './Switch/docs/Switch__custom.docs';
46
- export { default as Radio } from './Radio/Radio';
47
- // export { default as Radio__default } from './Radio/docs/Radio__default.docs';
48
- // export { default as Radio__custom } from './Radio/docs/Radio__custom.docs';
49
- export { default as Textarea } from './Textarea/Textarea';
50
- // export { default as Textarea__default } from './Textarea/docs/Textarea__default.docs';
51
- // export { default as Textarea__animated } from './Textarea/docs/Textarea__animated.docs';
52
- // export { default as Textarea__disabled } from './Textarea/docs/Textarea__disabled.docs';
53
- // export { default as Textarea__custom } from './Textarea/docs/Textarea__custom.docs';
54
- export { default as Label } from './Label/Label';
55
- // export { default as Label__palette } from './Label/docs/Label__palette.docs';
56
- // export { default as Label__size } from './Label/docs/Label__size.docs';
57
- // export { default as Label__clipped } from './Label/docs/Label__clipped.docs';
58
- // export { default as Label__type } from './Label/docs/Label__type.docs';
59
- // export { default as Label__custom } from './Label/docs/Label__custom.docs';
60
- export { default as DropDownHeading } from './DropDown/DropDownHeading';
61
- // export { default as DropDownHeading__Heading } from './DropDown/docs/DropDownHeading__default.docs';
62
- // export { default as DropDownHeading__Custom } from './DropDown/docs/DropDownHeading__custom.docs';
8
+ export * from './Card';
63
9
  export { default as CheckBox } from './CheckBox/CheckBox';
64
- // export { default as CheckBox__default } from './CheckBox/docs/CheckBox__default.docs';
65
- // export { default as CheckBox__custom } from './CheckBox/docs/CheckBox__custom.docs';
10
+ export * from './DateTime';
11
+ export { default as DropBox } from './DropBox/DropBox';
12
+ export * from './DropDown';
13
+ export { default as Heading } from './Heading/Heading';
14
+ export { default as Label } from './Label/Label';
15
+ export * from './Layout';
16
+ export * from './ListItem';
17
+ export { default as Modal } from './Modal/Modal';
18
+ export * from './MultiSelect';
19
+ import * as _PopOver from './PopOver';
20
+ export { _PopOver as PopOver };
21
+ export { default as Popup } from './Popup/Popup';
22
+ import * as _Providers from './Provider';
23
+ export { _Providers as Providers };
24
+ export { default as Radio } from './Radio/Radio';
25
+ export * from './Responsive';
26
+ export { default as ResponsiveDropBox } from './ResponsiveDropBox/ResponsiveDropBox';
66
27
  export { default as Ribbon } from './Ribbon/Ribbon';
67
- // export { default as Ribbon__default } from './Ribbon/docs/Ribbon__default.docs';
68
- // export { default as Ribbon__custom } from './Ribbon/docs/Ribbon__custom.docs';
69
- export { default as Tag } from './Tag/Tag';
70
- // export { default as Tag__default } from './Tag/docs/Tag__default.docs';
71
- // export { default as Tag__custom } from './Tag/docs/Tag__custom.docs';
28
+ export { default as RippleEffect } from './RippleEffect/RippleEffect';
29
+ export * from './Select';
30
+ export { default as Stencils } from './Stencils/Stencils';
31
+ export { default as Switch } from './Switch/Switch';
72
32
  export * from './Tab';
73
- // export { default as Tab__default } from './Tab/docs/Tab__default.docs';
33
+ export { default as Tag } from './Tag/Tag';
34
+ export { default as Textarea } from './Textarea/Textarea';
74
35
  export { default as TextBox } from './TextBox/TextBox';
75
- // export { default as TextBox__default } from './TextBox/docs/TextBox__default.docs';
76
- // export { default as TextBox__size } from './TextBox/docs/TextBox__size.docs';
77
- // export { default as TextBox__variant } from './TextBox/docs/TextBox__variant.docs';
78
- // export { default as TextBox__custom } from './TextBox/docs/TextBox__custom.docs';
79
36
  export { default as TextBoxIcon } from './TextBoxIcon/TextBoxIcon';
80
- // export { default as TextBoxIcon__default } from './TextBoxIcon/docs/TextBoxIcon__default.docs';
81
- // export { default as TextBoxIcon__custom } from './TextBoxIcon/docs/TextBoxIcon__custom.docs';
82
37
  export { default as Tooltip } from './Tooltip/Tooltip';
83
- // export { default as Tooltip__default } from './Tooltip/docs/Tooltip__default.docs';
84
- export { default as Select } from './Select/Select';
85
- // export { default as Select__Select } from './Select/docs/Select__default.docs';
86
- export { default as SelectWithIcon } from './Select/SelectWithIcon';
87
- // export { default as SelectWithIcon__SelectWithIcon } from './Select/docs/SelectWithIcon__default.docs';
88
- export { default as GroupSelect } from './Select/GroupSelect';
89
- // export { default as GroupSelect__GroupSelect } from './Select/docs/GroupSelect__default.docs';
90
- export { default as SelectWithAvatar } from './Select/SelectWithAvatar';
91
- // export { default as SelectWithAvatar__SelectWithAvatar } from './Select/docs/SelectWithAvatar__default.docs';
92
- export { default as MultiSelect } from './MultiSelect/MultiSelect';
93
- // export { default as MultiSelect__MultiSelect } from './MultiSelect/docs/MultiSelect__default.docs';
94
- export { default as AdvancedMultiSelect } from './MultiSelect/AdvancedMultiSelect';
95
- // export { default as AdvancedMultiSelect__AdvancedMultiSelect } from './MultiSelect/docs/AdvancedMultiSelect__default.docs';
96
- export { default as AdvancedGroupMultiSelect } from './MultiSelect/AdvancedGroupMultiSelect';
97
- // export { default as AdvancedGroupMultiSelect__AdvancedGroupMultiSelect } from './MultiSelect/docs/AdvancedGroupMultiSelect__default.docs';
98
- export { default as MultiSelectWithAvatar } from './MultiSelect/MultiSelectWithAvatar';
99
- // export { default as MultiSelectWithAvatar__MultiSelectWithAvatar } from './MultiSelect/docs/MultiSelectWithAvatar__default.docs';
100
- export { default as DateWidget } from './DateTime/DateWidget';
101
- // export { default as DateWidget__dateWidget } from './DateTime/docs/DateWidget__default.docs';
102
- // export { default as DateWidget__datetime } from './DateTime/docs/DateTime__default.docs';
103
- export { default as ListItem } from './ListItem/ListItem';
104
- // export { default as ListItem__default } from './ListItem/docs/ListItem__default.docs';
105
- // export { default as ListItem__custom } from './ListItem/docs/ListItem__custom.docs';
106
- export { default as ListItemWithIcon } from './ListItem/ListItemWithIcon';
107
- // export { default as ListItemWithIcon__default } from './ListItem/docs/ListItemWithIcon__default.docs';
108
- // export { default as ListItemWithIcon__custom } from './ListItem/docs/ListItemWithIcon__custom.docs';
109
- export { default as ListItemWithCheckBox } from './ListItem/ListItemWithCheckBox';
110
- // export { default as ListItemWithCheckBox__default } from './ListItem/docs/ListItemWithCheckBox__default.docs';
111
- // export { default as ListItemWithCheckBox__custom } from './ListItem/docs/ListItemWithCheckBox__custom.docs';
112
- export { default as ListItemWithRadio } from './ListItem/ListItemWithRadio';
113
- // export { default as ListItemWithRadio__default } from './ListItem/docs/ListItemWithRadio__default.docs';
114
- // export { default as ListItemWithRadio__custom } from './ListItem/docs/ListItemWithRadio__custom.docs';
115
- export { default as ListItemWithAvatar } from './ListItem/ListItemWithAvatar';
116
- // export { default as ListItemWithAvatar__default } from './ListItem/docs/ListItemWithAvatar__default.docs';
117
- // export { default as ListItemWithAvatar__custom } from './ListItem/docs/ListItemWithAvatar__custom.docs';
118
- export { default as DropBox } from './DropBox/DropBox';
119
- // export { default as DropBox__position } from './DropBox/docs/DropBox__position.docs';
120
- // export { default as DropBox__size } from './DropBox/docs/DropBox__size.docs';
121
- // export { default as DropBox__custom } from './DropBox/docs/DropBox__custom.docs';
122
- // export { default as DropBox__customOrder } from './DropBox/docs/DropBox__customOrder.docs.js';
123
- // export { default as DropBox__fixedPosition } from './DropBox/docs/DropBox__fixedPosition.docs.js';
124
- export { default as PopOver } from './PopOver/PopOver';
125
- // export { default as PopOver__default } from './PopOver/docs/PopOver__default.docs.js';
126
- export { default as Stencils } from './Stencils/Stencils';
127
- // export { default as Stencils__default } from './Stencils/docs/Stencils__default.docs';
128
- // export { default as Stencils__custom } from './Stencils/docs/Stencils__custom.docs';
129
- export { default as Modal } from './Modal/Modal';
130
- // export { default as Modal__default } from './Modal/__docs__/Modal__default.docs';
131
- export * from './Responsive';
132
- // export { default as Responsive__Custom } from './Responsive/docs/Responsive__Custom.docs';
133
- // export { default as Responsive__default } from './Responsive/docs/Responsive__default.docs';
134
- export { default as RippleEffect } from './RippleEffect/RippleEffect';
135
- // export { default as RippleEffect__default } from './RippleEffect/docs/RippleEffect__default.docs';
136
- export { default as PortalLayer } from './deprecated/PortalLayer/PortalLayer';
137
- // export { default as PortalLayer__default } from './deprecated/PortalLayer/docs/PortalLayer__default.docs';
138
-
139
- export { default as VelocityAnimation } from './VelocityAnimation/VelocityAnimation/VelocityAnimation';
140
- // export { default as VelocityAnimation__VelocityAnimation } from './VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs';
141
- export { default as VelocityAnimationGroup } from './VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup';
142
- // export { default as VelocityAnimationGroup__VelocityAnimationGroup } from './VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs';
143
-
144
- export { Provider } from './Provider/IdProvider';
145
- // export { default as Provider__Id_For_ClassComponent } from './Provider/docs/Provider_Id__Class.docs';
146
- // export { default as Provider__Id_For_FunctionComponent } from './Provider/docs/Provider_Id__Function.docs';
147
- // export { default as Provider__Zindex_For_ClassComponent } from './Provider/docs/Provider_Zindex__Class.docs';
148
- // export { default as Provider__Zindex_For_FunctionComponent } from './Provider/docs/Provider_Zindex__Function.docs';
149
-
150
- //semantic//
151
- export { default as SemanticButton } from './semantic/Button/Button';
152
- // export { default as SemanticButton__default } from './semantic/Button/docs/Button__default.docs.js';
153
-
154
- // export { default as LightNightMode__AlternativeColors } from './LightNightMode/docs/AlternativeColors.docs';
155
- export { default as ResponsiveDropBox } from './ResponsiveDropBox/ResponsiveDropBox';
156
- export { default as Heading } from './Heading/Heading';
157
- // export { default as Heading__default } from './Heading/docs/Heading__default.docs.js';
38
+ import * as _utils from './utils';
39
+ export { _utils as utils };
40
+ export * from './VelocityAnimation';
41
+ export * from './semantic';
@@ -0,0 +1 @@
1
+ export { default as SemanticButton } from './Button/Button';
@@ -338,8 +338,23 @@ export function findScrollEnd(element) {
338
338
  if (scrollHeight <= Math.ceil(scrollTop + offsetHeight)) {
339
339
  return true;
340
340
  }
341
- } else {
342
- throw 'Is scroll not present in this element';
341
+ }
342
+ // else {
343
+
344
+ // throw 'Is scroll not present in this element';
345
+ // }
346
+ return false;
347
+ }
348
+ export function isTextSelected() {
349
+ let selectedText = '';
350
+ if (window.getSelection) {
351
+ selectedText = window.getSelection().toString();
352
+ console.log(selectedText, 'selectedText');
353
+ } else if (document.getSelection) {
354
+ selectedText = document.getSelection().toString();
355
+ }
356
+ if (selectedText !== '') {
357
+ return true;
343
358
  }
344
359
  return false;
345
360
  }
@@ -0,0 +1,23 @@
1
+ import { dataTypes, isDataTypeOf } from './utils';
2
+ const collectClassNames = function (processedClassNameList) {
3
+ for (let index = 0; index < (arguments.length <= 1 ? 0 : arguments.length - 1); index++) {
4
+ let classInfo = index + 1 < 1 || arguments.length <= index + 1 ? undefined : arguments[index + 1];
5
+ if (!classInfo) {
6
+ continue;
7
+ } else if (isDataTypeOf(classInfo, dataTypes.object)) {
8
+ for (let property in classInfo) {
9
+ if (Object.hasOwnProperty.call(classInfo, property) && property !== 'undefined' && property !== 'null' && classInfo[property] && !processedClassNameList.includes(property)) {
10
+ processedClassNameList.push(property);
11
+ }
12
+ }
13
+ }
14
+ }
15
+ };
16
+ export default function compileClassNames() {
17
+ let resultClassNameList = [];
18
+ for (var _len = arguments.length, classinfoList = new Array(_len), _key = 0; _key < _len; _key++) {
19
+ classinfoList[_key] = arguments[_key];
20
+ }
21
+ collectClassNames(resultClassNameList, ...classinfoList);
22
+ return resultClassNameList.filter(a => a !== '').join(' ');
23
+ }
@@ -0,0 +1,42 @@
1
+ const REPLACER_SYMBOL = '$';
2
+
3
+ // $ startWith is used for replace the existing style.
4
+ // all other will be append
5
+
6
+ export default function mergeStyle(defaultStyle, customStyle) {
7
+ let additionalStyle = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
8
+ // if(!Object.keys(defaultStyle).includes('base')) {
9
+ // throw new Error(`STYLE CUSTOMIZATION RULE - Your style sheet should have "base" class name for customization`);
10
+ // }
11
+
12
+ return Object.keys(customStyle).reduce((res, next) => {
13
+ if (next.startsWith(REPLACER_SYMBOL)) {
14
+ let styleValue = customStyle[next];
15
+ let styleName = next.replace(REPLACER_SYMBOL, '');
16
+ if (!defaultStyle[styleName] && !additionalStyle.includes(styleName)) {
17
+ // return res;
18
+ throw new Error(`UNKNOWN CLASSNAME DETECTED - Given customStyle's key "${styleName}" is not available in that component style`);
19
+ }
20
+ let val = defaultStyle[styleName];
21
+ Object.keys(res).map(keyName => {
22
+ let styleKey = res[keyName];
23
+ if (styleKey.includes(val)) {
24
+ res[keyName] = styleKey.replace(val, styleValue);
25
+ }
26
+ });
27
+ } else if (defaultStyle[next] || additionalStyle.includes(next)) {
28
+ let val = defaultStyle[next];
29
+ Object.keys(res).map(keyName => {
30
+ if (res[keyName].includes(val)) {
31
+ res[keyName] = res[keyName] + ' ' + customStyle[next];
32
+ }
33
+ });
34
+ } else if (!defaultStyle[next] && !additionalStyle.includes(next)) {
35
+ // res[next] = customStyle[next];
36
+ `UNKNOWN CLASSNAME DETECTED - Given customStyle's key "${next}" is not available in that component style`;
37
+ }
38
+ return res;
39
+ }, {
40
+ ...defaultStyle
41
+ });
42
+ }
@@ -0,0 +1,23 @@
1
+ export const dataTypes = {
2
+ number: 'number',
3
+ array: 'array',
4
+ string: 'string',
5
+ object: 'object',
6
+ bigint: 'bigint',
7
+ symbol: 'symbol',
8
+ undefined: 'undefined',
9
+ function: 'function',
10
+ boolean: 'boolean'
11
+ };
12
+ export const getDataType = data => {
13
+ let typeofData = typeof data;
14
+ let isArrayDataType = Array.isArray(data);
15
+ if (isArrayDataType) {
16
+ return dataTypes.array;
17
+ } else {
18
+ return dataTypes[typeofData];
19
+ }
20
+ };
21
+ export const isDataTypeOf = (data, type) => {
22
+ return getDataType(data) === type;
23
+ };
@@ -0,0 +1,3 @@
1
+ export { default as compileClassNames } from './css/compileClassNames';
2
+ export { default as mergeStyle } from './css/mergeStyle';
3
+ export { stopAllEventPropagation, capitalize, getFullName, bytesToSize, getMemSize, checkIsImageFile, getFullDateString, format12Hour, getDateOnly, doAfterScrollEnd, debounce, throttle, getElementSpace, getSearchString, findScrollEnd, isTextSelected } from './Common';
@@ -10,8 +10,10 @@ var _defaultProps = require("./props/defaultProps");
10
10
  var _propTypes = require("./props/propTypes");
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12
12
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
13
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
13
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
14
14
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
15
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
16
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
15
17
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
16
18
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
17
19
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -12,8 +12,10 @@ var _VelocityAnimation = _interopRequireDefault(require("../VelocityAnimation/Ve
12
12
  var _VelocityAnimationGroup = _interopRequireDefault(require("../VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup"));
13
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
14
14
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
15
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
15
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
16
16
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
17
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
18
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
17
19
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
18
20
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
19
21
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -12,8 +12,10 @@ var _reactTransitionGroup = require("react-transition-group");
12
12
  var _transitionModule = _interopRequireDefault(require("../common/transition.module.css"));
13
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
14
14
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
15
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
15
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
16
16
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
17
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
18
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
17
19
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
18
20
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
19
21
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -24,8 +24,10 @@ var _Config = require("../Provider/Config");
24
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
25
  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); }
26
26
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
27
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
27
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
28
28
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
29
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
30
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
29
31
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
30
32
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
31
33
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -18,10 +18,12 @@ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread n
18
18
  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); }
19
19
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
20
20
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
21
- 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; }
21
+ 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; }
22
22
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
23
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
23
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
24
24
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
26
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
25
27
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
26
28
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
27
29
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -13,8 +13,10 @@ var _AvatarTeamModule = _interopRequireDefault(require("./AvatarTeam.module.css"
13
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
14
14
  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); }
15
15
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
16
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
16
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
17
17
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
18
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
19
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
18
20
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
19
21
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
20
22
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -12,8 +12,10 @@ var _ButtonModule = _interopRequireDefault(require("./Button.module.css"));
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
13
  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); }
14
14
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
15
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
15
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
16
16
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
17
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
18
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
17
19
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
18
20
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
19
21
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -11,8 +11,10 @@ var _propTypes = require("./props/propTypes");
11
11
  var _ButtongroupModule = _interopRequireDefault(require("./Buttongroup.module.css"));
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
13
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
14
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
14
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
15
15
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
16
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
17
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
16
18
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
17
19
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
18
20
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -21,7 +23,8 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
21
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; } }
22
24
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
23
25
  /* eslint css-modules/no-unused-class: [2, { markAsUsed: ['footer','header',
24
- 'tab','alignleft','alignright','aligncenter' ] }] */var Buttongroup = /*#__PURE__*/function (_React$Component) {
26
+ 'tab','alignleft','alignright','aligncenter' ] }] */
27
+ var Buttongroup = /*#__PURE__*/function (_React$Component) {
25
28
  _inherits(Buttongroup, _React$Component);
26
29
  var _super = _createSuper(Buttongroup);
27
30
  function Buttongroup() {
package/lib/Card/Card.js CHANGED
@@ -15,8 +15,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
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
17
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
18
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
18
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
19
19
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
20
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
21
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
20
22
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
21
23
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
22
24
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -15,8 +15,10 @@ var _CheckBoxModule = _interopRequireDefault(require("./CheckBox.module.css"));
15
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
16
16
  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
17
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
18
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
18
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
19
19
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
20
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
21
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
20
22
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
21
23
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
22
24
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -14,8 +14,10 @@ var _common = require("../utils/datetime/common");
14
14
  var _DaysRow = _interopRequireDefault(require("./DaysRow"));
15
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
16
16
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
17
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
17
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
18
18
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
19
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
20
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
19
21
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
20
22
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
21
23
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -23,7 +25,8 @@ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) ===
23
25
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
24
26
  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; } }
25
27
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
26
- /* eslint css-modules/no-unused-class: [0, { markAsUsed: ['container', 'header', 'thArrowConatainer', 'thArrow', 'thMonYear', 'days', 'daysStr', 'timesection', 'timeStr', 'dropDownContainer', 'dropDown', 'footer', 'space'] }] */var CalendarView = /*#__PURE__*/function (_React$PureComponent) {
28
+ /* eslint css-modules/no-unused-class: [0, { markAsUsed: ['container', 'header', 'thArrowConatainer', 'thArrow', 'thMonYear', 'days', 'daysStr', 'timesection', 'timeStr', 'dropDownContainer', 'dropDown', 'footer', 'space'] }] */
29
+ var CalendarView = /*#__PURE__*/function (_React$PureComponent) {
27
30
  _inherits(CalendarView, _React$PureComponent);
28
31
  var _super = _createSuper(CalendarView);
29
32
  function CalendarView(props) {
@@ -26,12 +26,14 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
26
26
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
27
27
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
28
28
  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); }
29
- 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; }
30
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
29
+ 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; }
30
+ 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; } }
31
31
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
32
32
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
33
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
33
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
34
34
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
35
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
36
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
35
37
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
36
38
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
37
39
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -13,8 +13,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
13
13
  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); }
14
14
  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; }
15
15
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
16
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
16
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
17
17
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
18
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
19
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
18
20
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
19
21
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
20
22
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }