@geneui/components 2.11.2 → 2.12.2

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 (213) hide show
  1. package/{ActionableList.js → ActionableList/index.js} +83 -152
  2. package/{AdvancedSearch.js → AdvancedSearch/index.js} +290 -304
  3. package/Alert/index.js +97 -0
  4. package/Avatar/index.js +30 -0
  5. package/Badge/index.js +75 -0
  6. package/{Breadcrumb.js → Breadcrumb/index.js} +32 -31
  7. package/BusyLoader/index.js +68 -0
  8. package/Button/index.js +129 -0
  9. package/CHANGELOG.md +53 -0
  10. package/{Card.js → Card/index.js} +82 -94
  11. package/{CardList.js → CardList/index.js} +120 -165
  12. package/{CellMeasurerCache-b786dd93.js → CellMeasurerCache-3741d716.js} +2 -2
  13. package/{index-9164a86d.js → Charts/index.js} +17103 -30447
  14. package/{Checkbox.js → Checkbox/index.js} +37 -38
  15. package/{CheckboxGroup.js → CheckboxGroup/index.js} +41 -42
  16. package/{CheckboxGroupWithSearch.js → CheckboxGroupWithSearch/index.js} +64 -65
  17. package/{Collapse.js → Collapse/index.js} +28 -29
  18. package/{ColorPicker.js → ColorPicker/index.js} +16 -16
  19. package/ComboBox/index.js +525 -0
  20. package/Counter/index.js +310 -0
  21. package/{DateFilter.js → DateFilter/index.js} +45 -43
  22. package/{DatePicker.js → DatePicker/index.js} +106 -108
  23. package/{index-0199942c.js → DatePickerInput/index.js} +114 -100
  24. package/{Divider.js → Divider/index.js} +9 -10
  25. package/{Drawer.js → Drawer/index.js} +40 -41
  26. package/Dropdown/index.js +41 -0
  27. package/{Editor.js → Editor/index.js} +165 -164
  28. package/{Empty.js → Empty/index.js} +12 -13
  29. package/{ExtendedInput.js → ExtendedInput/index.js} +81 -71
  30. package/Form/index.js +83 -0
  31. package/{FormContainer.js → FormContainer/index.js} +25 -26
  32. package/FormableCheckbox/index.js +26 -0
  33. package/FormableDatePicker/index.js +41 -0
  34. package/FormableDropdown/index.js +48 -0
  35. package/FormableEditor/index.js +24 -0
  36. package/{FormableHOC-21051057.js → FormableHOC-55263162.js} +3 -3
  37. package/FormableMultiSelectDropdown/index.js +48 -0
  38. package/FormableNumberInput/index.js +32 -0
  39. package/FormableRadio/index.js +22 -0
  40. package/FormableSwitcher/index.js +22 -0
  41. package/FormableTextInput/index.js +32 -0
  42. package/FormableUploader/index.js +42 -0
  43. package/GeneUIProvider/index.js +282 -0
  44. package/{Grid.js → Grid/index.js} +27 -27
  45. package/Holder/index.js +261 -0
  46. package/{Icon.js → Icon/index.js} +9 -10
  47. package/Image/index.js +129 -0
  48. package/ImagePreview/index.js +481 -0
  49. package/{KeyValue.js → KeyValue/index.js} +11 -12
  50. package/LICENSE +21 -0
  51. package/Label/index.js +57 -0
  52. package/LinkButton/index.js +67 -0
  53. package/{Menu.js → Menu/index.js} +27 -28
  54. package/MobileNavigation/index.js +94 -0
  55. package/{MobilePopup.js → MobilePopup/index.js} +42 -41
  56. package/{Modal.js → Modal/index.js} +39 -40
  57. package/ModuleTitle/index.js +143 -0
  58. package/{NavigationMenu.js → NavigationMenu/index.js} +30 -29
  59. package/Notification/index.js +119 -0
  60. package/Option/index.js +184 -0
  61. package/Overlay/index.js +189 -0
  62. package/Overspread/index.js +289 -0
  63. package/{Pagination.js → Pagination/index.js} +35 -34
  64. package/Paper/index.js +96 -0
  65. package/{index-084588e9.js → Popover/index.js} +48 -58
  66. package/PopoverV2/index.js +18 -0
  67. package/{Portal.js → Portal/index.js} +7 -8
  68. package/{Products.js → Products/index.js} +20 -21
  69. package/Profile/index.js +585 -0
  70. package/Progress/index.js +199 -0
  71. package/{QRCode.js → QRCode/index.js} +4 -6
  72. package/{Radio.js → Radio/index.js} +25 -26
  73. package/{RadioGroup.js → RadioGroup/index.js} +17 -18
  74. package/{index-00fe8887.js → Range/index.js} +29 -32
  75. package/RichEditor/index.js +13 -0
  76. package/{RichEditor-98accead.js → RichEditor-8b0f7ccd.js} +18 -18
  77. package/{Scrollbar.js → Scrollbar/index.js} +15 -17
  78. package/{Search.js → Search/index.js} +25 -24
  79. package/SearchWithDropdown/index.js +138 -0
  80. package/Section/index.js +61 -0
  81. package/{SkeletonLoader.js → SkeletonLoader/index.js} +13 -14
  82. package/{Slider.js → Slider/index.js} +46 -43
  83. package/Status/index.js +103 -0
  84. package/Steps/index.js +313 -0
  85. package/{index-897d8240.js → SuggestionList/index.js} +15 -38
  86. package/{Switcher.js → Switcher/index.js} +30 -31
  87. package/Table/index.js +53 -0
  88. package/{TableCompositions.js → TableCompositions/index.js} +131 -168
  89. package/Tabs/index.js +235 -0
  90. package/Tag/index.js +102 -0
  91. package/{TextLink.js → TextLink/index.js} +3 -3
  92. package/{Textarea.js → Textarea/index.js} +66 -65
  93. package/{Time.js → Time/index.js} +13 -14
  94. package/TimePicker/index.js +555 -0
  95. package/Timeline/index.js +113 -0
  96. package/Title/index.js +65 -0
  97. package/{Toaster.js → Toaster/index.js} +19 -20
  98. package/{Tooltip.js → Tooltip/index.js} +27 -28
  99. package/{TransferList.js → TransferList/index.js} +44 -55
  100. package/{index-135b9d17.js → Uploader/index.js} +119 -116
  101. package/{ValidatableCheckbox.js → ValidatableCheckbox/index.js} +23 -24
  102. package/{ValidatableDatePicker.js → ValidatableDatePicker/index.js} +44 -42
  103. package/ValidatableDropdown/index.js +139 -0
  104. package/ValidatableElements/index.js +65 -0
  105. package/ValidatableMultiSelectDropdown/index.js +150 -0
  106. package/{ValidatableNumberInput.js → ValidatableNumberInput/index.js} +41 -33
  107. package/{ValidatableRadio.js → ValidatableRadio/index.js} +19 -20
  108. package/{ValidatableSwitcher.js → ValidatableSwitcher/index.js} +19 -20
  109. package/{ValidatableTextInput.js → ValidatableTextInput/index.js} +32 -31
  110. package/{ValidatableTimeInput.js → ValidatableTimeInput/index.js} +31 -30
  111. package/{ValidatableUploader.js → ValidatableUploader/index.js} +36 -34
  112. package/Widget/index.js +227 -0
  113. package/config-0ca92874.js +31 -0
  114. package/{configs-91c86664.js → configs-fed6ac34.js} +28 -1
  115. package/hooks/useBodyScroll.js +16 -0
  116. package/hooks/useClick.js +18 -0
  117. package/{useClickOutside-5183e396.js → hooks/useClickOutside.js} +1 -1
  118. package/hooks/useDebounceHook.js +16 -0
  119. package/{useDeviceType-dd51db38.js → hooks/useDeviceType.js} +4 -3
  120. package/hooks/useDidMount.js +15 -0
  121. package/{useEllipsisDetection-ef536015.js → hooks/useEllipsisDetection.js} +1 -1
  122. package/hooks/useForceUpdate.js +8 -0
  123. package/hooks/useImgDownload.js +18 -0
  124. package/{useKeyDown-38102ae7.js → hooks/useKeyDown.js} +1 -1
  125. package/hooks/useMount.js +13 -0
  126. package/hooks/useMutationObserver.js +21 -0
  127. package/hooks/usePrevious.js +10 -0
  128. package/hooks/useThrottle.js +16 -0
  129. package/hooks/useToggle.js +11 -0
  130. package/hooks/useUpdatableRef.js +14 -0
  131. package/hooks/useUpdate.js +10 -0
  132. package/{useWidth-9f4647f8.js → hooks/useWidth.js} +2 -2
  133. package/{useWindowSize-80369d76.js → hooks/useWindowSize.js} +1 -1
  134. package/{index-8c98317a.js → index-11eea761.js} +678 -752
  135. package/index-2ad83e03.js +4 -0
  136. package/index-34e47647.js +10054 -0
  137. package/index-45eafea6.js +90 -0
  138. package/{index-5e96cb4d.js → index-462461c0.js} +50 -48
  139. package/{index-ac59cb10.js → index-a0e4e333.js} +6 -6
  140. package/{index-e8776f3d.js → index-b1e429a7.js} +1 -1
  141. package/index.d.ts +115 -0
  142. package/index.js +137 -113
  143. package/index.mobile.d.ts +16 -0
  144. package/lib/atoms/Avatar/Avatar.d.ts +34 -0
  145. package/lib/atoms/Avatar/index.d.ts +1 -0
  146. package/lib/atoms/LinkButton/LinkButton.d.ts +46 -0
  147. package/lib/atoms/LinkButton/index.d.ts +1 -0
  148. package/{objectWithoutPropertiesLoose-299691d8.js → objectWithoutPropertiesLoose-d8a4a68c.js} +12 -12
  149. package/package.json +42 -22
  150. package/{rangeAndSlider-20599da4.js → rangeAndSlider-0301a458.js} +220 -375
  151. package/{react-beautiful-dnd.esm-38c37304.js → react-beautiful-dnd.esm-04c14563.js} +9 -9
  152. package/react-lifecycles-compat.es-6e1f3768.js +158 -0
  153. package/Alert.js +0 -98
  154. package/Avatar.js +0 -77
  155. package/Badge.js +0 -76
  156. package/BusyLoader.js +0 -69
  157. package/Button.js +0 -130
  158. package/Charts.js +0 -99
  159. package/ComboBox.js +0 -99
  160. package/Counter.js +0 -99
  161. package/DatePickerInput.js +0 -30
  162. package/Dropdown.js +0 -99
  163. package/Form.js +0 -116
  164. package/FormableCheckbox.js +0 -27
  165. package/FormableDatePicker.js +0 -39
  166. package/FormableDropdown.js +0 -105
  167. package/FormableEditor.js +0 -24
  168. package/FormableMultiSelectDropdown.js +0 -105
  169. package/FormableNumberInput.js +0 -31
  170. package/FormableRadio.js +0 -23
  171. package/FormableSwitcher.js +0 -23
  172. package/FormableTextInput.js +0 -31
  173. package/FormableUploader.js +0 -40
  174. package/GeneUIProvider.js +0 -256
  175. package/Holder.js +0 -99
  176. package/Image.js +0 -130
  177. package/ImagePreview.js +0 -99
  178. package/Label.js +0 -58
  179. package/LinkButton.js +0 -104
  180. package/MobileNavigation.js +0 -95
  181. package/ModuleTitle.js +0 -99
  182. package/Notification.js +0 -120
  183. package/Option.js +0 -186
  184. package/Overlay.js +0 -99
  185. package/Overspread.js +0 -343
  186. package/Paper.js +0 -97
  187. package/Popover.js +0 -20
  188. package/PopoverV2.js +0 -19
  189. package/Profile.js +0 -99
  190. package/Progress.js +0 -200
  191. package/Range.js +0 -14
  192. package/RichEditor.js +0 -13
  193. package/SearchWithDropdown.js +0 -195
  194. package/Section.js +0 -62
  195. package/Status.js +0 -104
  196. package/Steps.js +0 -312
  197. package/SuggestionList.js +0 -15
  198. package/Table.js +0 -102
  199. package/Tabs.js +0 -236
  200. package/Tag.js +0 -103
  201. package/TimePicker.js +0 -99
  202. package/Timeline.js +0 -114
  203. package/Title.js +0 -66
  204. package/Uploader.js +0 -32
  205. package/ValidatableDropdown.js +0 -99
  206. package/ValidatableElements.js +0 -99
  207. package/ValidatableMultiSelectDropdown.js +0 -99
  208. package/Widget.js +0 -99
  209. package/globalStyling-9c60a159.js +0 -4
  210. package/index-2030e31c.js +0 -4
  211. package/index-b7a33c58.js +0 -11
  212. package/index-e0af0caf.js +0 -1182
  213. package/useMount-6fef51a5.js +0 -9
@@ -1,106 +1,63 @@
1
- import { _ as _extends } from './_rollupPluginBabelHelpers-e8fb2e5c.js';
1
+ import { _ as _extends } from '../_rollupPluginBabelHelpers-e8fb2e5c.js';
2
2
  import React__default, { useMemo, useState, useEffect, useCallback, useRef } from 'react';
3
- import { c as classnames } from './index-6ff23041.js';
4
- import { p as propTypesExports } from './index-e0af0caf.js';
5
- import { M as ModuleTitle, m as Dropdown } from './index-9164a86d.js';
6
- import SearchWithDropdown from './SearchWithDropdown.js';
7
- import { s as styleInject } from './style-inject.es-746bb8ed.js';
8
- import Paper from './Paper.js';
9
- import { L as Logger, n as noop } from './index-ac59cb10.js';
10
- import Pagination from './Pagination.js';
11
- import { T as Table, s as searchConfigs, a as sortHandler, u as useThrottle, b as useSortConfigs } from './index-8c98317a.js';
12
- import './globalStyling-9c60a159.js';
13
- import './configs-91c86664.js';
14
- import Button from './Button.js';
15
- import { P as PopoverV2 } from './index-5e96cb4d.js';
16
- import { c as commonjsGlobal } from './_commonjsHelpers-24198af3.js';
17
- import Icon from './Icon.js';
18
- import Option from './Option.js';
19
- import Tooltip from './Tooltip.js';
20
- import { s as stopEvent } from './index-b7a33c58.js';
21
- import Divider from './Divider.js';
22
- import './Editor.js';
3
+ import { c as classnames } from '../index-6ff23041.js';
4
+ import PropTypes from 'prop-types';
5
+ import ModuleTitle from '../ModuleTitle/index.js';
6
+ import SearchWithDropdown from '../SearchWithDropdown/index.js';
7
+ import { s as styleInject } from '../style-inject.es-746bb8ed.js';
8
+ import Paper from '../Paper/index.js';
9
+ import { L as Logger, n as noop } from '../index-a0e4e333.js';
10
+ import Pagination from '../Pagination/index.js';
11
+ import { D as Dropdown } from '../index-34e47647.js';
12
+ import { T as Table, s as searchConfigs, a as sortHandler, u as useSortConfigs } from '../index-11eea761.js';
13
+ import '../configs-fed6ac34.js';
14
+ import useThrottle from '../hooks/useThrottle.js';
15
+ import Button from '../Button/index.js';
16
+ import Divider from '../Divider/index.js';
17
+ import Tooltip from '../Tooltip/index.js';
18
+ import { c as commonjsGlobal } from '../_commonjsHelpers-24198af3.js';
19
+ import { P as PopoverV2 } from '../index-462461c0.js';
20
+ import '../dateValidation-67caec66.js';
23
21
  import 'react-dom';
24
- import './useMount-6fef51a5.js';
25
- import './useDeviceType-dd51db38.js';
26
- import './useWindowSize-80369d76.js';
27
- import './dateValidation-67caec66.js';
28
- import './ValidatableUploader.js';
29
- import './index-135b9d17.js';
30
- import './Grid.js';
31
- import './useWidth-9f4647f8.js';
32
- import './useKeyDown-38102ae7.js';
33
- import './BusyLoader.js';
34
- import './Image.js';
35
- import './Empty.js';
36
- import './Checkbox.js';
37
- import './checkboxRadioSwitcher-5b69d7bd.js';
38
- import './guid-8ddf77b3.js';
39
- import './Popover-f4d1cac0.js';
40
- import './GeneUIProvider.js';
41
- import './ExtendedInput.js';
42
- import './index-897d8240.js';
43
- import './useClickOutside-5183e396.js';
44
- import './Scrollbar.js';
45
- import './ValidatableRadio.js';
46
- import './RadioGroup.js';
47
- import './Radio.js';
48
- import './ValidatableCheckbox.js';
49
- import './ValidatableSwitcher.js';
50
- import './Switcher.js';
51
- import './ValidatableNumberInput.js';
52
- import './ValidatableTextInput.js';
53
- import './ValidatableDatePicker.js';
54
- import './index-0199942c.js';
55
- import './DatePicker.js';
56
- import './localization-4ba17032.js';
57
- import './checkTimeValidation-e56771be.js';
58
- import './index-122432cd.js';
59
- import './debounce-4419bc2f.js';
60
- import './useEllipsisDetection-ef536015.js';
61
- import './Tabs.js';
62
- import './Steps.js';
63
- import './index-084588e9.js';
64
- import './Portal.js';
65
- import './Timeline.js';
66
- import './Card.js';
67
- import './MobilePopup.js';
68
- import './Menu.js';
69
- import './SkeletonLoader.js';
70
- import './KeyValue.js';
71
- import './configs.js';
72
- import './Tag.js';
73
- import './Alert.js';
74
- import './index-00fe8887.js';
75
- import './rangeAndSlider-20599da4.js';
76
- import './Slider.js';
77
- import './objectWithoutPropertiesLoose-299691d8.js';
78
- import './clsx.m-2bb6df4b.js';
79
- import './index-2030e31c.js';
80
- import './Notification.js';
81
- import './Modal.js';
82
- import './Collapse.js';
83
- import './Status.js';
84
- import './Avatar.js';
85
- import './Search.js';
86
- import './TextLink.js';
87
- import './Label.js';
88
- import './Badge.js';
89
- import './Time.js';
90
- import './Title.js';
91
- import './QRCode.js';
92
- import './Progress.js';
93
- import './MobileNavigation.js';
94
- import './Products.js';
95
- import './Breadcrumb.js';
96
- import './Section.js';
97
- import './ColorPicker.js';
98
- import './NavigationMenu.js';
99
- import './Textarea.js';
100
- import './AdvancedSearch.js';
101
- import './LinkButton.js';
102
- import './CellMeasurerCache-b786dd93.js';
103
- import './index-e8776f3d.js';
22
+ import Icon from '../Icon/index.js';
23
+ import Option from '../Option/index.js';
24
+ import '../Popover-f4d1cac0.js';
25
+ import '../hooks/useDeviceType.js';
26
+ import '../hooks/useWindowSize.js';
27
+ import '../GeneUIProvider/index.js';
28
+ import '../Search/index.js';
29
+ import '../ExtendedInput/index.js';
30
+ import '../hooks/useEllipsisDetection.js';
31
+ import '../SuggestionList/index.js';
32
+ import '../hooks/useKeyDown.js';
33
+ import '../hooks/useClickOutside.js';
34
+ import '../config-0ca92874.js';
35
+ import '../Scrollbar/index.js';
36
+ import '../objectWithoutPropertiesLoose-d8a4a68c.js';
37
+ import '../react-lifecycles-compat.es-6e1f3768.js';
38
+ import '../clsx.m-2bb6df4b.js';
39
+ import '../hooks/useMount.js';
40
+ import '../hooks/useClick.js';
41
+ import '../hooks/useUpdatableRef.js';
42
+ import '../hooks/useForceUpdate.js';
43
+ import '../BusyLoader/index.js';
44
+ import '../Empty/index.js';
45
+ import '../index-122432cd.js';
46
+ import '../debounce-4419bc2f.js';
47
+ import '../Checkbox/index.js';
48
+ import '../checkboxRadioSwitcher-5b69d7bd.js';
49
+ import '../guid-8ddf77b3.js';
50
+ import '../index-2ad83e03.js';
51
+ import '../Tag/index.js';
52
+ import '../ValidatableTextInput/index.js';
53
+ import '../CellMeasurerCache-3741d716.js';
54
+ import '../hooks/useUpdate.js';
55
+ import '../hooks/useMutationObserver.js';
56
+ import '../index-b1e429a7.js';
57
+ import '../SkeletonLoader/index.js';
58
+ import '../Popover/index.js';
59
+ import '../Portal/index.js';
60
+ import '../Menu/index.js';
104
61
 
105
62
  function WithTitle(_ref) {
106
63
  let {
@@ -115,12 +72,12 @@ function WithTitle(_ref) {
115
72
  }, restProps), actions), children);
116
73
  }
117
74
  WithTitle.propTypes = {
118
- name: propTypesExports.oneOfType([propTypesExports.string, propTypesExports.node]).isRequired,
119
- actions: propTypesExports.node,
120
- children: propTypesExports.node
75
+ name: PropTypes.oneOfType([PropTypes.string, PropTypes.node]).isRequired,
76
+ actions: PropTypes.node,
77
+ children: PropTypes.node
121
78
  };
122
79
 
123
- var css_248z$2 = "[data-gene-ui-version=\"1.0.0\"] .paper-actions{align-items:center;display:flex;flex-shrink:0}[data-gene-ui-version=\"1.0.0\"] .paper-actions>li{align-items:center;display:flex;padding:2rem}[data-gene-ui-version=\"1.0.0\"] .paper-actions .paper-left-actions{flex:auto}[data-gene-ui-version=\"1.0.0\"] .paper-actions .paper-left-actions>.dropdown-holder,[data-gene-ui-version=\"1.0.0\"] .paper-actions .paper-left-actions>.input-holder{max-width:25.5rem}html:not([dir=rtl]) .paper-actions .paper-left-actions>*+*{margin-left:2rem}html[dir=rtl] .paper-actions .paper-left-actions>*+*{margin-right:2rem}[data-gene-ui-version=\"1.0.0\"] .paper-actions .paper-right-actions{flex-shrink:0}html:not([dir=rtl]) .paper-actions .paper-right-actions>:not(.btn)+:not(.btn){margin-left:1.6rem}html[dir=rtl] .paper-actions .paper-right-actions>:not(.btn)+:not(.btn){margin-right:1.6rem}";
80
+ var css_248z$2 = "[data-gene-ui-version=\"2.12.2\"] .paper-actions{align-items:center;display:flex;flex-shrink:0}[data-gene-ui-version=\"2.12.2\"] .paper-actions>li{align-items:center;display:flex;padding:2rem}[data-gene-ui-version=\"2.12.2\"] .paper-actions .paper-left-actions{flex:auto}[data-gene-ui-version=\"2.12.2\"] .paper-actions .paper-left-actions>.dropdown-holder,[data-gene-ui-version=\"2.12.2\"] .paper-actions .paper-left-actions>.input-holder{max-width:25.5rem}html:not([dir=rtl]) .paper-actions .paper-left-actions>*+*{margin-left:2rem}html[dir=rtl] .paper-actions .paper-left-actions>*+*{margin-right:2rem}[data-gene-ui-version=\"2.12.2\"] .paper-actions .paper-right-actions{flex-shrink:0}html:not([dir=rtl]) .paper-actions .paper-right-actions>:not(.btn)+:not(.btn){margin-left:1.6rem}html[dir=rtl] .paper-actions .paper-right-actions>:not(.btn)+:not(.btn){margin-right:1.6rem}";
124
81
  styleInject(css_248z$2);
125
82
 
126
83
  function WithHeader(_ref) {
@@ -174,12 +131,12 @@ function WithHeader(_ref) {
174
131
  }, actions)), children);
175
132
  }
176
133
  WithHeader.propTypes = {
177
- withSearch: propTypesExports.bool,
178
- actions: propTypesExports.node,
179
- leftHeaderActions: propTypesExports.node,
180
- handleSearch: propTypesExports.func,
181
- dropDownData: propTypesExports.arrayOf(propTypesExports.object),
182
- checkAllText: propTypesExports.string
134
+ withSearch: PropTypes.bool,
135
+ actions: PropTypes.node,
136
+ leftHeaderActions: PropTypes.node,
137
+ handleSearch: PropTypes.func,
138
+ dropDownData: PropTypes.arrayOf(PropTypes.object),
139
+ checkAllText: PropTypes.string
183
140
  };
184
141
  WithHeader.defaultProps = {
185
142
  withSearch: false,
@@ -203,10 +160,10 @@ function PaperWrapper(_ref) {
203
160
  }, restProps), children);
204
161
  }
205
162
  PaperWrapper.propTypes = {
206
- className: propTypesExports.string,
207
- children: propTypesExports.node.isRequired,
208
- cornerRadius: propTypesExports.string,
209
- shadow: propTypesExports.bool
163
+ className: PropTypes.string,
164
+ children: PropTypes.node.isRequired,
165
+ cornerRadius: PropTypes.string,
166
+ shadow: PropTypes.bool
210
167
  };
211
168
  PaperWrapper.defaultProps = {
212
169
  shadow: true,
@@ -214,7 +171,7 @@ PaperWrapper.defaultProps = {
214
171
  paperDirection: 'column'
215
172
  };
216
173
 
217
- var css_248z$1 = "[data-gene-ui-version=\"1.0.0\"] .pagination-drop{align-items:center;display:flex}html:not([dir=rtl]) .pagination-drop>*+*{margin-left:2rem}html[dir=rtl] .pagination-drop>*+*{margin-right:2rem}[data-gene-ui-version=\"1.0.0\"] .pagination-drop>p{font-weight:600}[data-gene-ui-version=\"1.0.0\"] .ta-pagination-holder{align-items:center;border-top:1px solid rgba(var(--background-sc-rgb),.1);display:flex;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end;padding:1rem;width:100%}[data-gene-ui-version=\"1.0.0\"] .ta-pagination-holder>li{padding:1rem}[data-gene-ui-version=\"1.0.0\"] .ta-pagination-holder>li:first-child{flex:auto}[data-gene-ui-version=\"1.0.0\"] .ta-pagination-holder>li:last-child{flex-shrink:0}";
174
+ var css_248z$1 = "[data-gene-ui-version=\"2.12.2\"] .pagination-drop{align-items:center;display:flex}html:not([dir=rtl]) .pagination-drop>*+*{margin-left:2rem}html[dir=rtl] .pagination-drop>*+*{margin-right:2rem}[data-gene-ui-version=\"2.12.2\"] .pagination-drop>p{font-weight:600}[data-gene-ui-version=\"2.12.2\"] .ta-pagination-holder{align-items:center;border-top:1px solid rgba(var(--background-sc-rgb),.1);display:flex;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end;padding:1rem;width:100%}[data-gene-ui-version=\"2.12.2\"] .ta-pagination-holder>li{padding:1rem}[data-gene-ui-version=\"2.12.2\"] .ta-pagination-holder>li:first-child{flex:auto}[data-gene-ui-version=\"2.12.2\"] .ta-pagination-holder>li:last-child{flex-shrink:0}";
218
175
  styleInject(css_248z$1);
219
176
 
220
177
  function PaginationSelector(_ref) {
@@ -270,12 +227,12 @@ function PaginationSelector(_ref) {
270
227
  }, controlledProps, paginationProps))));
271
228
  }
272
229
  PaginationSelector.propTypes = {
273
- showSelector: propTypesExports.bool,
274
- defaultOpenedPage: propTypesExports.number,
275
- showPagination: propTypesExports.bool,
276
- noItemsText: propTypesExports.string,
277
- totalCount: propTypesExports.number.isRequired,
278
- fabricateSelectorLabel: propTypesExports.func
230
+ showSelector: PropTypes.bool,
231
+ defaultOpenedPage: PropTypes.number,
232
+ showPagination: PropTypes.bool,
233
+ noItemsText: PropTypes.string,
234
+ totalCount: PropTypes.number.isRequired,
235
+ fabricateSelectorLabel: PropTypes.func
279
236
  };
280
237
  PaginationSelector.defaultProps = {
281
238
  defaultOpenedPage: 1,
@@ -286,7 +243,7 @@ PaginationSelector.defaultProps = {
286
243
  fabricateSelectorLabel: noop
287
244
  };
288
245
 
289
- var css_248z = "[data-gene-ui-version=\"1.0.0\"] .table-actions{align-items:center;display:flex;padding:1rem}[data-gene-ui-version=\"1.0.0\"] .table-actions>li{padding:1rem}[data-gene-ui-version=\"1.0.0\"] .table-actions .table-left-actions{flex:auto}[data-gene-ui-version=\"1.0.0\"] .table-actions .table-right-actions{flex-shrink:0}";
246
+ var css_248z = "[data-gene-ui-version=\"2.12.2\"] .table-actions{align-items:center;display:flex;padding:1rem}[data-gene-ui-version=\"2.12.2\"] .table-actions>li{padding:1rem}[data-gene-ui-version=\"2.12.2\"] .table-actions .table-left-actions{flex:auto}[data-gene-ui-version=\"2.12.2\"] .table-actions .table-right-actions{flex-shrink:0}";
290
247
  styleInject(css_248z);
291
248
 
292
249
  function TableHeader(_ref) {
@@ -316,11 +273,11 @@ TableHeader.propTypes = {
316
273
  /**
317
274
  * Define is search bar will shown or no
318
275
  */
319
- withSearch: propTypesExports.bool,
276
+ withSearch: PropTypes.bool,
320
277
  /**
321
278
  * Any valid react node
322
279
  */
323
- headerActions: propTypesExports.node
280
+ headerActions: PropTypes.node
324
281
  };
325
282
 
326
283
  function WrapperTableWithHeader(_ref) {
@@ -350,15 +307,15 @@ TableTitle.propTypes = {
350
307
  /**
351
308
  * Any valid react node
352
309
  */
353
- titleActions: propTypesExports.node,
310
+ titleActions: PropTypes.node,
354
311
  /**
355
312
  * Value for title
356
313
  */
357
- name: propTypesExports.string.isRequired,
314
+ name: PropTypes.string.isRequired,
358
315
  /**
359
316
  * Callback for refresh icon click
360
317
  */
361
- onRefreshClick: propTypesExports.func
318
+ onRefreshClick: PropTypes.func
362
319
  };
363
320
 
364
321
  function WrapperTableTitle(_ref) {
@@ -537,31 +494,31 @@ PaginationTable.propTypes = {
537
494
  /**
538
495
  * Page number that must be opened by default
539
496
  */
540
- defaultOpenedPage: propTypesExports.number,
497
+ defaultOpenedPage: PropTypes.number,
541
498
  /**
542
499
  * Rows total count
543
500
  */
544
- rowsCount: propTypesExports.number,
501
+ rowsCount: PropTypes.number,
545
502
  /**
546
503
  * Data for selector dropdown
547
504
  */
548
- selectorData: propTypesExports.array,
505
+ selectorData: PropTypes.array,
549
506
  /**
550
507
  * Define pagination will be shown or no.
551
508
  */
552
- withPagination: propTypesExports.bool,
509
+ withPagination: PropTypes.bool,
553
510
  /**
554
511
  * Define page selector will be shown or no.
555
512
  */
556
- withPageSelector: propTypesExports.bool,
513
+ withPageSelector: PropTypes.bool,
557
514
  /**
558
515
  * Default value for selector dropdown
559
516
  */
560
- selectorDefaultValue: propTypesExports.number,
517
+ selectorDefaultValue: PropTypes.number,
561
518
  /**
562
519
  * Value for selector dropdown
563
520
  */
564
- selectorValue: propTypesExports.number
521
+ selectorValue: PropTypes.number
565
522
  };
566
523
  PaginationTable.defaultProps = {
567
524
  withPageSelector: true,
@@ -606,9 +563,9 @@ function WrapperTableContainer(_ref) {
606
563
  }, headerProps))));
607
564
  }
608
565
  WrapperTableContainer.propTypes = {
609
- name: propTypesExports.string.isRequired,
610
- titleActions: propTypesExports.node,
611
- headerActions: propTypesExports.node,
566
+ name: PropTypes.string.isRequired,
567
+ titleActions: PropTypes.node,
568
+ headerActions: PropTypes.node,
612
569
  ...TableHeader.propTypes
613
570
  };
614
571
 
@@ -16558,6 +16515,12 @@ const exportToCSV = async (fileName, data, columns) => {
16558
16515
  return await createFile(file, fileName, 'csv');
16559
16516
  };
16560
16517
 
16518
+ const stopEvent = function (event) {
16519
+ let isPreventNeeded = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
16520
+ event.stopPropagation();
16521
+ isPreventNeeded && event.preventDefault();
16522
+ };
16523
+
16561
16524
  function ExportItem(_ref) {
16562
16525
  let {
16563
16526
  type,
@@ -16720,14 +16683,14 @@ function Export(_ref) {
16720
16683
  }, exportButtonText));
16721
16684
  }
16722
16685
  Export.propTypes = {
16723
- fileName: propTypesExports.string.isRequired,
16724
- exportButtonText: propTypesExports.string,
16725
- exportButtonTooltipText: propTypesExports.string,
16726
- csvIconTooltipText: propTypesExports.string,
16727
- xlsIconTooltipText: propTypesExports.string,
16728
- isDisable: propTypesExports.bool,
16729
- tableColumns: propTypesExports.arrayOf(propTypesExports.object).isRequired,
16730
- getDataForExport: propTypesExports.func
16686
+ fileName: PropTypes.string.isRequired,
16687
+ exportButtonText: PropTypes.string,
16688
+ exportButtonTooltipText: PropTypes.string,
16689
+ csvIconTooltipText: PropTypes.string,
16690
+ xlsIconTooltipText: PropTypes.string,
16691
+ isDisable: PropTypes.bool,
16692
+ tableColumns: PropTypes.arrayOf(PropTypes.object).isRequired,
16693
+ getDataForExport: PropTypes.func
16731
16694
  };
16732
16695
  Export.defaultProps = {
16733
16696
  isDisable: false,
@@ -16912,92 +16875,92 @@ ComboTable.propTypes = {
16912
16875
  * Fires event when edit button is clicked,
16913
16876
  * (event: Event) => void
16914
16877
  */
16915
- onEdit: propTypesExports.func,
16878
+ onEdit: PropTypes.func,
16916
16879
  /**
16917
16880
  * Fires event when clicked on `Save` or `Cancel` buttons
16918
16881
  * (save: Boolean) => void
16919
16882
  */
16920
- onSaveChanges: propTypesExports.func,
16883
+ onSaveChanges: PropTypes.func,
16921
16884
  /**
16922
16885
  * Enables searchbar with dropdown on top left corner under the title of the table
16923
16886
  */
16924
- withSearch: propTypesExports.bool,
16887
+ withSearch: PropTypes.bool,
16925
16888
  /**
16926
16889
  * Enables export dropdown on the top right corner of the table
16927
16890
  */
16928
- withExport: propTypesExports.bool,
16891
+ withExport: PropTypes.bool,
16929
16892
  /**
16930
16893
  * Disable Save button if false
16931
16894
  */
16932
- isSaveActive: propTypesExports.bool,
16895
+ isSaveActive: PropTypes.bool,
16933
16896
  /**
16934
16897
  * Enable Edit mode from outside
16935
16898
  */
16936
- editActiveOutside: propTypesExports.bool,
16899
+ editActiveOutside: PropTypes.bool,
16937
16900
  /**
16938
16901
  * Any valid React node,
16939
16902
  * Displays on the right corner of the table's title
16940
16903
  */
16941
- titleActions: propTypesExports.node,
16904
+ titleActions: PropTypes.node,
16942
16905
  /**
16943
16906
  * Any valid React node,
16944
16907
  * Displays on the right top corner above table's title
16945
16908
  */
16946
- headerActions: propTypesExports.node,
16909
+ headerActions: PropTypes.node,
16947
16910
  /**
16948
16911
  * Displays refresh button and handles click event,
16949
16912
  * (event: Event) => void
16950
16913
  */
16951
- onRefreshClick: propTypesExports.func,
16914
+ onRefreshClick: PropTypes.func,
16952
16915
  /**
16953
16916
  * Custom text for edit button
16954
16917
  */
16955
- editButtonText: propTypesExports.string,
16918
+ editButtonText: PropTypes.string,
16956
16919
  /**
16957
16920
  * Table's name
16958
16921
  */
16959
- name: propTypesExports.node.isRequired,
16922
+ name: PropTypes.node.isRequired,
16960
16923
  /**
16961
16924
  * Custom text for approving button in edit mode
16962
16925
  */
16963
- editApprovalText: propTypesExports.string,
16926
+ editApprovalText: PropTypes.string,
16964
16927
  /**
16965
16928
  * Custom text for rejecting button in edit mode
16966
16929
  */
16967
- editRejectionText: propTypesExports.string,
16930
+ editRejectionText: PropTypes.string,
16968
16931
  /**
16969
16932
  * additional className which will apply to table loader container
16970
16933
  */
16971
- className: propTypesExports.string,
16934
+ className: PropTypes.string,
16972
16935
  /**
16973
16936
  * Hides dropdown on search if true
16974
16937
  */
16975
- hideSearchDropdown: propTypesExports.bool,
16938
+ hideSearchDropdown: PropTypes.bool,
16976
16939
  /**
16977
16940
  * Displays refresh button on top right corner
16978
16941
  */
16979
- showRefreshButton: propTypesExports.bool,
16942
+ showRefreshButton: PropTypes.bool,
16980
16943
  /**
16981
16944
  * Initial sort state
16982
16945
  */
16983
- defaultSortType: propTypesExports.oneOf(['asc', 'desc']),
16946
+ defaultSortType: PropTypes.oneOf(['asc', 'desc']),
16984
16947
  /**
16985
16948
  * Initially sorted column
16986
16949
  */
16987
- defaultSortedColumn: propTypesExports.string,
16950
+ defaultSortedColumn: PropTypes.string,
16988
16951
  /**
16989
16952
  * Exporting file name
16990
16953
  */
16991
- exportedFileName: propTypesExports.string,
16954
+ exportedFileName: PropTypes.string,
16992
16955
  /**
16993
16956
  * Text for refresh button tooltip
16994
16957
  */
16995
- refreshButtonTooltipText: propTypesExports.string,
16958
+ refreshButtonTooltipText: PropTypes.string,
16996
16959
  /**
16997
16960
  * Customize pagination selectors' label text
16998
16961
  * (currentValue: Number, totalCount: Number) => void
16999
16962
  */
17000
- fabricateSelectorLabel: propTypesExports.func,
16963
+ fabricateSelectorLabel: PropTypes.func,
17001
16964
  /**
17002
16965
  * getDataForExport: (type: string) => array || object
17003
16966
  * with the help of these functions you can modify the exported data in two ways
@@ -17007,7 +16970,7 @@ ComboTable.propTypes = {
17007
16970
  * (but don't forget, there's still exportedFileName, so if you add name to exportedFileName will be useless and will not be used)
17008
16971
  * return { columns: [{...}, ...], data: [{...}, ...], name: 'file name' }
17009
16972
  */
17010
- getDataForExport: propTypesExports.func,
16973
+ getDataForExport: PropTypes.func,
17011
16974
  ...PaginationTable.propTypes
17012
16975
  };
17013
16976
  ComboTable.defaultProps = {