@geneui/components 2.11.2 → 2.12.1

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} +291 -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 +40 -0
  10. package/{Card.js → Card/index.js} +82 -94
  11. package/{CardList.js → CardList/index.js} +118 -165
  12. package/{CellMeasurerCache-b786dd93.js → CellMeasurerCache-bc2163c1.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} +46 -43
  22. package/{DatePicker.js → DatePicker/index.js} +106 -108
  23. package/{index-0199942c.js → DatePickerInput/index.js} +103 -89
  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 +86 -0
  31. package/{FormContainer.js → FormContainer/index.js} +25 -26
  32. package/FormableCheckbox/index.js +26 -0
  33. package/FormableDatePicker/index.js +42 -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 +287 -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/{index-5e96cb4d.js → PopoverV2/index.js} +57 -1006
  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-8b9c3afa.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} +132 -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 +556 -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} +45 -42
  103. package/ValidatableDropdown/index.js +139 -0
  104. package/ValidatableElements/index.js +68 -0
  105. package/ValidatableMultiSelectDropdown/index.js +150 -0
  106. package/{ValidatableNumberInput.js → ValidatableNumberInput/index.js} +34 -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-45eafea6.js +90 -0
  135. package/index-583e0b30.js +4 -0
  136. package/{index-8c98317a.js → index-78d2ea5b.js} +678 -752
  137. package/{index-ac59cb10.js → index-a0e4e333.js} +6 -6
  138. package/{index-e8776f3d.js → index-b1e429a7.js} +1 -1
  139. package/index-bd525a3a.js +10054 -0
  140. package/index.d.ts +115 -0
  141. package/index.js +138 -113
  142. package/index.mobile.d.ts +16 -0
  143. package/jsx-runtime-57b40d9e.js +957 -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,64 @@
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-bd525a3a.js';
12
+ import { T as Table, s as searchConfigs, a as sortHandler, u as useSortConfigs } from '../index-78d2ea5b.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 PopoverV2 from '../PopoverV2/index.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 '../Popover/index.js';
46
+ import '../index-122432cd.js';
47
+ import '../Portal/index.js';
48
+ import '../guid-8ddf77b3.js';
49
+ import '../Checkbox/index.js';
50
+ import '../checkboxRadioSwitcher-5b69d7bd.js';
51
+ import '../index-583e0b30.js';
52
+ import '../Tag/index.js';
53
+ import '../ValidatableTextInput/index.js';
54
+ import '../CellMeasurerCache-bc2163c1.js';
55
+ import '../hooks/useUpdate.js';
56
+ import '../hooks/useMutationObserver.js';
57
+ import '../index-b1e429a7.js';
58
+ import '../SkeletonLoader/index.js';
59
+ import '../Menu/index.js';
60
+ import '../debounce-4419bc2f.js';
61
+ import '../jsx-runtime-57b40d9e.js';
104
62
 
105
63
  function WithTitle(_ref) {
106
64
  let {
@@ -115,12 +73,12 @@ function WithTitle(_ref) {
115
73
  }, restProps), actions), children);
116
74
  }
117
75
  WithTitle.propTypes = {
118
- name: propTypesExports.oneOfType([propTypesExports.string, propTypesExports.node]).isRequired,
119
- actions: propTypesExports.node,
120
- children: propTypesExports.node
76
+ name: PropTypes.oneOfType([PropTypes.string, PropTypes.node]).isRequired,
77
+ actions: PropTypes.node,
78
+ children: PropTypes.node
121
79
  };
122
80
 
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}";
81
+ var css_248z$2 = "[data-gene-ui-version=\"2.12.1\"] .paper-actions{align-items:center;display:flex;flex-shrink:0}[data-gene-ui-version=\"2.12.1\"] .paper-actions>li{align-items:center;display:flex;padding:2rem}[data-gene-ui-version=\"2.12.1\"] .paper-actions .paper-left-actions{flex:auto}[data-gene-ui-version=\"2.12.1\"] .paper-actions .paper-left-actions>.dropdown-holder,[data-gene-ui-version=\"2.12.1\"] .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.1\"] .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
82
  styleInject(css_248z$2);
125
83
 
126
84
  function WithHeader(_ref) {
@@ -174,12 +132,12 @@ function WithHeader(_ref) {
174
132
  }, actions)), children);
175
133
  }
176
134
  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
135
+ withSearch: PropTypes.bool,
136
+ actions: PropTypes.node,
137
+ leftHeaderActions: PropTypes.node,
138
+ handleSearch: PropTypes.func,
139
+ dropDownData: PropTypes.arrayOf(PropTypes.object),
140
+ checkAllText: PropTypes.string
183
141
  };
184
142
  WithHeader.defaultProps = {
185
143
  withSearch: false,
@@ -203,10 +161,10 @@ function PaperWrapper(_ref) {
203
161
  }, restProps), children);
204
162
  }
205
163
  PaperWrapper.propTypes = {
206
- className: propTypesExports.string,
207
- children: propTypesExports.node.isRequired,
208
- cornerRadius: propTypesExports.string,
209
- shadow: propTypesExports.bool
164
+ className: PropTypes.string,
165
+ children: PropTypes.node.isRequired,
166
+ cornerRadius: PropTypes.string,
167
+ shadow: PropTypes.bool
210
168
  };
211
169
  PaperWrapper.defaultProps = {
212
170
  shadow: true,
@@ -214,7 +172,7 @@ PaperWrapper.defaultProps = {
214
172
  paperDirection: 'column'
215
173
  };
216
174
 
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}";
175
+ var css_248z$1 = "[data-gene-ui-version=\"2.12.1\"] .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.1\"] .pagination-drop>p{font-weight:600}[data-gene-ui-version=\"2.12.1\"] .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.1\"] .ta-pagination-holder>li{padding:1rem}[data-gene-ui-version=\"2.12.1\"] .ta-pagination-holder>li:first-child{flex:auto}[data-gene-ui-version=\"2.12.1\"] .ta-pagination-holder>li:last-child{flex-shrink:0}";
218
176
  styleInject(css_248z$1);
219
177
 
220
178
  function PaginationSelector(_ref) {
@@ -270,12 +228,12 @@ function PaginationSelector(_ref) {
270
228
  }, controlledProps, paginationProps))));
271
229
  }
272
230
  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
231
+ showSelector: PropTypes.bool,
232
+ defaultOpenedPage: PropTypes.number,
233
+ showPagination: PropTypes.bool,
234
+ noItemsText: PropTypes.string,
235
+ totalCount: PropTypes.number.isRequired,
236
+ fabricateSelectorLabel: PropTypes.func
279
237
  };
280
238
  PaginationSelector.defaultProps = {
281
239
  defaultOpenedPage: 1,
@@ -286,7 +244,7 @@ PaginationSelector.defaultProps = {
286
244
  fabricateSelectorLabel: noop
287
245
  };
288
246
 
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}";
247
+ var css_248z = "[data-gene-ui-version=\"2.12.1\"] .table-actions{align-items:center;display:flex;padding:1rem}[data-gene-ui-version=\"2.12.1\"] .table-actions>li{padding:1rem}[data-gene-ui-version=\"2.12.1\"] .table-actions .table-left-actions{flex:auto}[data-gene-ui-version=\"2.12.1\"] .table-actions .table-right-actions{flex-shrink:0}";
290
248
  styleInject(css_248z);
291
249
 
292
250
  function TableHeader(_ref) {
@@ -316,11 +274,11 @@ TableHeader.propTypes = {
316
274
  /**
317
275
  * Define is search bar will shown or no
318
276
  */
319
- withSearch: propTypesExports.bool,
277
+ withSearch: PropTypes.bool,
320
278
  /**
321
279
  * Any valid react node
322
280
  */
323
- headerActions: propTypesExports.node
281
+ headerActions: PropTypes.node
324
282
  };
325
283
 
326
284
  function WrapperTableWithHeader(_ref) {
@@ -350,15 +308,15 @@ TableTitle.propTypes = {
350
308
  /**
351
309
  * Any valid react node
352
310
  */
353
- titleActions: propTypesExports.node,
311
+ titleActions: PropTypes.node,
354
312
  /**
355
313
  * Value for title
356
314
  */
357
- name: propTypesExports.string.isRequired,
315
+ name: PropTypes.string.isRequired,
358
316
  /**
359
317
  * Callback for refresh icon click
360
318
  */
361
- onRefreshClick: propTypesExports.func
319
+ onRefreshClick: PropTypes.func
362
320
  };
363
321
 
364
322
  function WrapperTableTitle(_ref) {
@@ -537,31 +495,31 @@ PaginationTable.propTypes = {
537
495
  /**
538
496
  * Page number that must be opened by default
539
497
  */
540
- defaultOpenedPage: propTypesExports.number,
498
+ defaultOpenedPage: PropTypes.number,
541
499
  /**
542
500
  * Rows total count
543
501
  */
544
- rowsCount: propTypesExports.number,
502
+ rowsCount: PropTypes.number,
545
503
  /**
546
504
  * Data for selector dropdown
547
505
  */
548
- selectorData: propTypesExports.array,
506
+ selectorData: PropTypes.array,
549
507
  /**
550
508
  * Define pagination will be shown or no.
551
509
  */
552
- withPagination: propTypesExports.bool,
510
+ withPagination: PropTypes.bool,
553
511
  /**
554
512
  * Define page selector will be shown or no.
555
513
  */
556
- withPageSelector: propTypesExports.bool,
514
+ withPageSelector: PropTypes.bool,
557
515
  /**
558
516
  * Default value for selector dropdown
559
517
  */
560
- selectorDefaultValue: propTypesExports.number,
518
+ selectorDefaultValue: PropTypes.number,
561
519
  /**
562
520
  * Value for selector dropdown
563
521
  */
564
- selectorValue: propTypesExports.number
522
+ selectorValue: PropTypes.number
565
523
  };
566
524
  PaginationTable.defaultProps = {
567
525
  withPageSelector: true,
@@ -606,9 +564,9 @@ function WrapperTableContainer(_ref) {
606
564
  }, headerProps))));
607
565
  }
608
566
  WrapperTableContainer.propTypes = {
609
- name: propTypesExports.string.isRequired,
610
- titleActions: propTypesExports.node,
611
- headerActions: propTypesExports.node,
567
+ name: PropTypes.string.isRequired,
568
+ titleActions: PropTypes.node,
569
+ headerActions: PropTypes.node,
612
570
  ...TableHeader.propTypes
613
571
  };
614
572
 
@@ -16558,6 +16516,12 @@ const exportToCSV = async (fileName, data, columns) => {
16558
16516
  return await createFile(file, fileName, 'csv');
16559
16517
  };
16560
16518
 
16519
+ const stopEvent = function (event) {
16520
+ let isPreventNeeded = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
16521
+ event.stopPropagation();
16522
+ isPreventNeeded && event.preventDefault();
16523
+ };
16524
+
16561
16525
  function ExportItem(_ref) {
16562
16526
  let {
16563
16527
  type,
@@ -16720,14 +16684,14 @@ function Export(_ref) {
16720
16684
  }, exportButtonText));
16721
16685
  }
16722
16686
  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
16687
+ fileName: PropTypes.string.isRequired,
16688
+ exportButtonText: PropTypes.string,
16689
+ exportButtonTooltipText: PropTypes.string,
16690
+ csvIconTooltipText: PropTypes.string,
16691
+ xlsIconTooltipText: PropTypes.string,
16692
+ isDisable: PropTypes.bool,
16693
+ tableColumns: PropTypes.arrayOf(PropTypes.object).isRequired,
16694
+ getDataForExport: PropTypes.func
16731
16695
  };
16732
16696
  Export.defaultProps = {
16733
16697
  isDisable: false,
@@ -16912,92 +16876,92 @@ ComboTable.propTypes = {
16912
16876
  * Fires event when edit button is clicked,
16913
16877
  * (event: Event) => void
16914
16878
  */
16915
- onEdit: propTypesExports.func,
16879
+ onEdit: PropTypes.func,
16916
16880
  /**
16917
16881
  * Fires event when clicked on `Save` or `Cancel` buttons
16918
16882
  * (save: Boolean) => void
16919
16883
  */
16920
- onSaveChanges: propTypesExports.func,
16884
+ onSaveChanges: PropTypes.func,
16921
16885
  /**
16922
16886
  * Enables searchbar with dropdown on top left corner under the title of the table
16923
16887
  */
16924
- withSearch: propTypesExports.bool,
16888
+ withSearch: PropTypes.bool,
16925
16889
  /**
16926
16890
  * Enables export dropdown on the top right corner of the table
16927
16891
  */
16928
- withExport: propTypesExports.bool,
16892
+ withExport: PropTypes.bool,
16929
16893
  /**
16930
16894
  * Disable Save button if false
16931
16895
  */
16932
- isSaveActive: propTypesExports.bool,
16896
+ isSaveActive: PropTypes.bool,
16933
16897
  /**
16934
16898
  * Enable Edit mode from outside
16935
16899
  */
16936
- editActiveOutside: propTypesExports.bool,
16900
+ editActiveOutside: PropTypes.bool,
16937
16901
  /**
16938
16902
  * Any valid React node,
16939
16903
  * Displays on the right corner of the table's title
16940
16904
  */
16941
- titleActions: propTypesExports.node,
16905
+ titleActions: PropTypes.node,
16942
16906
  /**
16943
16907
  * Any valid React node,
16944
16908
  * Displays on the right top corner above table's title
16945
16909
  */
16946
- headerActions: propTypesExports.node,
16910
+ headerActions: PropTypes.node,
16947
16911
  /**
16948
16912
  * Displays refresh button and handles click event,
16949
16913
  * (event: Event) => void
16950
16914
  */
16951
- onRefreshClick: propTypesExports.func,
16915
+ onRefreshClick: PropTypes.func,
16952
16916
  /**
16953
16917
  * Custom text for edit button
16954
16918
  */
16955
- editButtonText: propTypesExports.string,
16919
+ editButtonText: PropTypes.string,
16956
16920
  /**
16957
16921
  * Table's name
16958
16922
  */
16959
- name: propTypesExports.node.isRequired,
16923
+ name: PropTypes.node.isRequired,
16960
16924
  /**
16961
16925
  * Custom text for approving button in edit mode
16962
16926
  */
16963
- editApprovalText: propTypesExports.string,
16927
+ editApprovalText: PropTypes.string,
16964
16928
  /**
16965
16929
  * Custom text for rejecting button in edit mode
16966
16930
  */
16967
- editRejectionText: propTypesExports.string,
16931
+ editRejectionText: PropTypes.string,
16968
16932
  /**
16969
16933
  * additional className which will apply to table loader container
16970
16934
  */
16971
- className: propTypesExports.string,
16935
+ className: PropTypes.string,
16972
16936
  /**
16973
16937
  * Hides dropdown on search if true
16974
16938
  */
16975
- hideSearchDropdown: propTypesExports.bool,
16939
+ hideSearchDropdown: PropTypes.bool,
16976
16940
  /**
16977
16941
  * Displays refresh button on top right corner
16978
16942
  */
16979
- showRefreshButton: propTypesExports.bool,
16943
+ showRefreshButton: PropTypes.bool,
16980
16944
  /**
16981
16945
  * Initial sort state
16982
16946
  */
16983
- defaultSortType: propTypesExports.oneOf(['asc', 'desc']),
16947
+ defaultSortType: PropTypes.oneOf(['asc', 'desc']),
16984
16948
  /**
16985
16949
  * Initially sorted column
16986
16950
  */
16987
- defaultSortedColumn: propTypesExports.string,
16951
+ defaultSortedColumn: PropTypes.string,
16988
16952
  /**
16989
16953
  * Exporting file name
16990
16954
  */
16991
- exportedFileName: propTypesExports.string,
16955
+ exportedFileName: PropTypes.string,
16992
16956
  /**
16993
16957
  * Text for refresh button tooltip
16994
16958
  */
16995
- refreshButtonTooltipText: propTypesExports.string,
16959
+ refreshButtonTooltipText: PropTypes.string,
16996
16960
  /**
16997
16961
  * Customize pagination selectors' label text
16998
16962
  * (currentValue: Number, totalCount: Number) => void
16999
16963
  */
17000
- fabricateSelectorLabel: propTypesExports.func,
16964
+ fabricateSelectorLabel: PropTypes.func,
17001
16965
  /**
17002
16966
  * getDataForExport: (type: string) => array || object
17003
16967
  * with the help of these functions you can modify the exported data in two ways
@@ -17007,7 +16971,7 @@ ComboTable.propTypes = {
17007
16971
  * (but don't forget, there's still exportedFileName, so if you add name to exportedFileName will be useless and will not be used)
17008
16972
  * return { columns: [{...}, ...], data: [{...}, ...], name: 'file name' }
17009
16973
  */
17010
- getDataForExport: propTypesExports.func,
16974
+ getDataForExport: PropTypes.func,
17011
16975
  ...PaginationTable.propTypes
17012
16976
  };
17013
16977
  ComboTable.defaultProps = {