@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
package/Holder.js DELETED
@@ -1,99 +0,0 @@
1
- import './_rollupPluginBabelHelpers-e8fb2e5c.js';
2
- import 'react';
3
- import './index-e0af0caf.js';
4
- import './index-6ff23041.js';
5
- import './index-ac59cb10.js';
6
- import './configs-91c86664.js';
7
- import './Icon.js';
8
- import './Button.js';
9
- import './Portal.js';
10
- import './Scrollbar.js';
11
- export { H as default } from './index-9164a86d.js';
12
- import './Tooltip.js';
13
- import './globalStyling-9c60a159.js';
14
- import './dateValidation-67caec66.js';
15
- import './_commonjsHelpers-24198af3.js';
16
- import 'react-dom';
17
- import './style-inject.es-746bb8ed.js';
18
- import './GeneUIProvider.js';
19
- import './Editor.js';
20
- import './useMount-6fef51a5.js';
21
- import './useDeviceType-dd51db38.js';
22
- import './useWindowSize-80369d76.js';
23
- import './ValidatableUploader.js';
24
- import './index-135b9d17.js';
25
- import './Grid.js';
26
- import './useWidth-9f4647f8.js';
27
- import './useKeyDown-38102ae7.js';
28
- import './BusyLoader.js';
29
- import './Image.js';
30
- import './Empty.js';
31
- import './Checkbox.js';
32
- import './checkboxRadioSwitcher-5b69d7bd.js';
33
- import './guid-8ddf77b3.js';
34
- import './Popover-f4d1cac0.js';
35
- import './ExtendedInput.js';
36
- import './index-897d8240.js';
37
- import './useClickOutside-5183e396.js';
38
- import './ValidatableRadio.js';
39
- import './RadioGroup.js';
40
- import './Radio.js';
41
- import './ValidatableCheckbox.js';
42
- import './ValidatableSwitcher.js';
43
- import './Switcher.js';
44
- import './ValidatableNumberInput.js';
45
- import './ValidatableTextInput.js';
46
- import './ValidatableDatePicker.js';
47
- import './index-0199942c.js';
48
- import './index-5e96cb4d.js';
49
- import './index-122432cd.js';
50
- import './debounce-4419bc2f.js';
51
- import './DatePicker.js';
52
- import './localization-4ba17032.js';
53
- import './checkTimeValidation-e56771be.js';
54
- import './useEllipsisDetection-ef536015.js';
55
- import './Tabs.js';
56
- import './Steps.js';
57
- import './index-084588e9.js';
58
- import './Timeline.js';
59
- import './Card.js';
60
- import './MobilePopup.js';
61
- import './Menu.js';
62
- import './Option.js';
63
- import './SkeletonLoader.js';
64
- import './KeyValue.js';
65
- import './configs.js';
66
- import './Tag.js';
67
- import './Alert.js';
68
- import './index-00fe8887.js';
69
- import './rangeAndSlider-20599da4.js';
70
- import './Slider.js';
71
- import './Pagination.js';
72
- import './Divider.js';
73
- import './objectWithoutPropertiesLoose-299691d8.js';
74
- import './clsx.m-2bb6df4b.js';
75
- import './index-2030e31c.js';
76
- import './Notification.js';
77
- import './Modal.js';
78
- import './Collapse.js';
79
- import './Status.js';
80
- import './Avatar.js';
81
- import './Search.js';
82
- import './TextLink.js';
83
- import './Label.js';
84
- import './Paper.js';
85
- import './Badge.js';
86
- import './Time.js';
87
- import './Title.js';
88
- import './index-b7a33c58.js';
89
- import './QRCode.js';
90
- import './Progress.js';
91
- import './MobileNavigation.js';
92
- import './Products.js';
93
- import './Breadcrumb.js';
94
- import './Section.js';
95
- import './ColorPicker.js';
96
- import './NavigationMenu.js';
97
- import './Textarea.js';
98
- import './AdvancedSearch.js';
99
- import './LinkButton.js';
package/Image.js DELETED
@@ -1,130 +0,0 @@
1
- import { _ as _extends } from './_rollupPluginBabelHelpers-e8fb2e5c.js';
2
- import React__default, { useMemo } from 'react';
3
- import { p as propTypesExports } from './index-e0af0caf.js';
4
- import { c as classnames } from './index-6ff23041.js';
5
- import Empty from './Empty.js';
6
- import Tooltip from './Tooltip.js';
7
- import Checkbox from './Checkbox.js';
8
- import './globalStyling-9c60a159.js';
9
- import { s as styleInject } from './style-inject.es-746bb8ed.js';
10
- import './Popover-f4d1cac0.js';
11
- import './_commonjsHelpers-24198af3.js';
12
- import 'react-dom';
13
- import './configs-91c86664.js';
14
- import './index-ac59cb10.js';
15
- import './dateValidation-67caec66.js';
16
- import './useDeviceType-dd51db38.js';
17
- import './useWindowSize-80369d76.js';
18
- import './GeneUIProvider.js';
19
- import './checkboxRadioSwitcher-5b69d7bd.js';
20
- import './guid-8ddf77b3.js';
21
-
22
- var css_248z = "[data-gene-ui-version=\"1.0.0\"] .image-holder{--image-border-radius:1rem;padding:100% 0 0;position:relative;transition:box-shadow .4s;-webkit-user-select:none;user-select:none;width:100%}[data-gene-ui-version=\"1.0.0\"] .image-holder.with-border{--distance:0.8rem;--image-border-radius:0.6rem;border-radius:1rem;box-shadow:inset 0 0 0 1px rgba(var(--background-sc-rgb),.2)}[data-gene-ui-version=\"1.0.0\"] .image-holder.with-border:hover{box-shadow:inset 0 0 0 1px rgba(var(--background-sc-rgb),.5)}[data-gene-ui-version=\"1.0.0\"] .image-holder.with-border.error{box-shadow:inset 0 0 0 1px rgba(var(--danger-rgb),.5)}[data-gene-ui-version=\"1.0.0\"] .image-holder.with-border.error:hover{box-shadow:inset 0 0 0 1px var(--danger)}[data-gene-ui-version=\"1.0.0\"] .image-content{bottom:var(--distance,0);left:var(--distance,0);position:absolute;right:var(--distance,0);top:var(--distance,0)}[data-gene-ui-version=\"1.0.0\"] .image-content img{border-radius:var(--image-border-radius);display:block;height:100%;object-fit:cover;width:100%}[data-gene-ui-version=\"1.0.0\"] .image-label-holder{background:#0003;border-radius:var(--image-border-radius);cursor:pointer;height:100%;left:0;position:absolute;top:0;width:100%}[data-gene-ui-version=\"1.0.0\"] .image-heading{align-items:center;display:flex;left:0;padding:0 .7rem;position:absolute;top:1.2rem;width:100%}[data-gene-ui-version=\"1.0.0\"] .image-heading>li{margin:0 .5rem}[data-gene-ui-version=\"1.0.0\"] .image-heading>li.image-cra{background:#fff;border-radius:.3rem;flex-shrink:0}[data-gene-ui-version=\"1.0.0\"] .image-heading>li.image-title{color:#fff;flex:auto;font:700 1.2rem/2rem var(--font-family)}[data-gene-ui-version=\"1.0.0\"] .image-actions-holder{align-items:center;background:#0009;border-radius:var(--image-border-radius);display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;transition:opacity .4s,visibility .4s;width:100%}[data-gene-ui-version=\"1.0.0\"] .image-holder:not(:hover) .image-actions-holder{opacity:0;visibility:hidden}[data-gene-ui-version=\"1.0.0\"] .image-actions{align-items:center;display:flex}[data-gene-ui-version=\"1.0.0\"] .image-actions>*{box-shadow:inset 0 0 0 5rem #ffffffe6}html:not([dir=rtl]) .image-actions>*+*{margin-left:.5rem}html[dir=rtl] .image-actions>*+*{margin-right:.5rem}[data-gene-ui-version=\"1.0.0\"] .image-empty-state-holder{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}";
23
- styleInject(css_248z);
24
-
25
- function Image(_ref) {
26
- let {
27
- src,
28
- withBorder,
29
- selectMode,
30
- actions,
31
- title,
32
- imageProps,
33
- checkboxProps,
34
- className,
35
- isValid,
36
- tooltipTitle,
37
- emptyText,
38
- ...restProps
39
- } = _ref;
40
- const isValidSource = useMemo(() => typeof src === 'string' && src !== '', [src]);
41
- return /*#__PURE__*/React__default.createElement(Tooltip, {
42
- title: tooltipTitle
43
- }, /*#__PURE__*/React__default.createElement("div", _extends({
44
- className: classnames('image-holder', className, {
45
- 'with-border': withBorder,
46
- error: !isValid
47
- })
48
- }, restProps), isValidSource ? /*#__PURE__*/React__default.createElement("div", {
49
- className: "image-content"
50
- }, /*#__PURE__*/React__default.createElement("img", _extends({
51
- src: src,
52
- alt: title
53
- }, imageProps)), selectMode && /*#__PURE__*/React__default.createElement("label", {
54
- className: "image-label-holder"
55
- }, /*#__PURE__*/React__default.createElement("ul", {
56
- className: "image-heading"
57
- }, /*#__PURE__*/React__default.createElement("li", {
58
- className: "image-cra"
59
- }, /*#__PURE__*/React__default.createElement(Checkbox, _extends({
60
- size: "big"
61
- }, checkboxProps))), title && /*#__PURE__*/React__default.createElement("li", {
62
- className: "image-title ellipsis-text"
63
- }, title))), actions && !selectMode && /*#__PURE__*/React__default.createElement("div", {
64
- className: "image-actions-holder"
65
- }, title && /*#__PURE__*/React__default.createElement("ul", {
66
- className: "image-heading"
67
- }, /*#__PURE__*/React__default.createElement("li", {
68
- className: "image-title ellipsis-text"
69
- }, title)), /*#__PURE__*/React__default.createElement("div", {
70
- className: "image-actions"
71
- }, actions))) : /*#__PURE__*/React__default.createElement(Empty, {
72
- type: "data",
73
- title: emptyText,
74
- className: "image-empty-state-holder"
75
- })));
76
- }
77
- Image.propTypes = {
78
- /**
79
- * Image path to display
80
- */
81
- src: propTypesExports.string.isRequired,
82
- /**
83
- * Will add a border when set to "true"
84
- */
85
- withBorder: propTypesExports.bool,
86
- /**
87
- * The property will add a checkbox and an overlay over the image.
88
- */
89
- selectMode: propTypesExports.bool,
90
- /**
91
- * Customize checkbox(will be rendered only when "selectMode" is set to "true").
92
- */
93
- checkboxProps: propTypesExports.object,
94
- /**
95
- * Customize image tag with this property.
96
- */
97
- imageProps: propTypesExports.object,
98
- /**
99
- * The property will render "actions" when "selectMode" is not setted to "true". Any valid React node
100
- */
101
- actions: propTypesExports.node,
102
- /**
103
- * Will add a title to the top of Image atom. Any valid React node
104
- */
105
- title: propTypesExports.oneOfType([propTypesExports.string, propTypesExports.node]),
106
- /**
107
- * Title for 'Tooltip'.
108
- */
109
- tooltipTitle: propTypesExports.oneOfType([propTypesExports.string, propTypesExports.node]),
110
- /**
111
- * Addional className
112
- */
113
- className: propTypesExports.string,
114
- /**
115
- * Image atom also can be included in "Form" organism. It can be validated as other "Form" elements
116
- */
117
- isValid: propTypesExports.bool,
118
- /**
119
- * Empty state text for component
120
- */
121
- emptyText: propTypesExports.string
122
- };
123
- Image.defaultProps = {
124
- withBorder: false,
125
- selectMode: false,
126
- isValid: true,
127
- emptyText: 'No image to display'
128
- };
129
-
130
- export { Image as default };
package/ImagePreview.js DELETED
@@ -1,99 +0,0 @@
1
- import './_rollupPluginBabelHelpers-e8fb2e5c.js';
2
- import 'react';
3
- import './index-e0af0caf.js';
4
- export { I as default } from './index-9164a86d.js';
5
- import './Portal.js';
6
- import './index-b7a33c58.js';
7
- import './Editor.js';
8
- import './_commonjsHelpers-24198af3.js';
9
- import 'react-dom';
10
- import './index-6ff23041.js';
11
- import './index-ac59cb10.js';
12
- import './dateValidation-67caec66.js';
13
- import './useMount-6fef51a5.js';
14
- import './useDeviceType-dd51db38.js';
15
- import './configs-91c86664.js';
16
- import './useWindowSize-80369d76.js';
17
- import './Button.js';
18
- import './Icon.js';
19
- import './globalStyling-9c60a159.js';
20
- import './style-inject.es-746bb8ed.js';
21
- import './ValidatableUploader.js';
22
- import './index-135b9d17.js';
23
- import './Grid.js';
24
- import './useWidth-9f4647f8.js';
25
- import './useKeyDown-38102ae7.js';
26
- import './BusyLoader.js';
27
- import './Image.js';
28
- import './Empty.js';
29
- import './Tooltip.js';
30
- import './Popover-f4d1cac0.js';
31
- import './GeneUIProvider.js';
32
- import './Checkbox.js';
33
- import './checkboxRadioSwitcher-5b69d7bd.js';
34
- import './guid-8ddf77b3.js';
35
- import './ExtendedInput.js';
36
- import './index-897d8240.js';
37
- import './useClickOutside-5183e396.js';
38
- import './Scrollbar.js';
39
- import './ValidatableRadio.js';
40
- import './RadioGroup.js';
41
- import './Radio.js';
42
- import './ValidatableCheckbox.js';
43
- import './ValidatableSwitcher.js';
44
- import './Switcher.js';
45
- import './ValidatableNumberInput.js';
46
- import './ValidatableTextInput.js';
47
- import './ValidatableDatePicker.js';
48
- import './index-0199942c.js';
49
- import './index-5e96cb4d.js';
50
- import './index-122432cd.js';
51
- import './debounce-4419bc2f.js';
52
- import './DatePicker.js';
53
- import './localization-4ba17032.js';
54
- import './checkTimeValidation-e56771be.js';
55
- import './useEllipsisDetection-ef536015.js';
56
- import './Tabs.js';
57
- import './Steps.js';
58
- import './index-084588e9.js';
59
- import './Timeline.js';
60
- import './Card.js';
61
- import './MobilePopup.js';
62
- import './Menu.js';
63
- import './Option.js';
64
- import './SkeletonLoader.js';
65
- import './KeyValue.js';
66
- import './configs.js';
67
- import './Tag.js';
68
- import './Alert.js';
69
- import './index-00fe8887.js';
70
- import './rangeAndSlider-20599da4.js';
71
- import './Slider.js';
72
- import './Pagination.js';
73
- import './Divider.js';
74
- import './objectWithoutPropertiesLoose-299691d8.js';
75
- import './clsx.m-2bb6df4b.js';
76
- import './index-2030e31c.js';
77
- import './Notification.js';
78
- import './Modal.js';
79
- import './Collapse.js';
80
- import './Status.js';
81
- import './Avatar.js';
82
- import './Search.js';
83
- import './TextLink.js';
84
- import './Label.js';
85
- import './Paper.js';
86
- import './Badge.js';
87
- import './Time.js';
88
- import './Title.js';
89
- import './QRCode.js';
90
- import './Progress.js';
91
- import './MobileNavigation.js';
92
- import './Products.js';
93
- import './Breadcrumb.js';
94
- import './Section.js';
95
- import './ColorPicker.js';
96
- import './NavigationMenu.js';
97
- import './Textarea.js';
98
- import './AdvancedSearch.js';
99
- import './LinkButton.js';
package/Label.js DELETED
@@ -1,58 +0,0 @@
1
- import React__default from 'react';
2
- import { p as propTypesExports } from './index-e0af0caf.js';
3
- import { c as classnames } from './index-6ff23041.js';
4
- import './globalStyling-9c60a159.js';
5
- import { s as styleInject } from './style-inject.es-746bb8ed.js';
6
-
7
- var css_248z = "[data-gene-ui-version=\"1.0.0\"] .label{display:inline-block;font-weight:400;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:top;white-space:nowrap}[data-gene-ui-version=\"1.0.0\"] .label.bold{font-weight:bolder}[data-gene-ui-version=\"1.0.0\"] .label.semiBold{font-weight:700}";
8
- styleInject(css_248z);
9
-
10
- const labels = {
11
- headingExtraLarge: 'h1',
12
- headingLarge: 'h1',
13
- headingBig: 'h2',
14
- heading: 'h3',
15
- bodyBig: 'h4',
16
- body: 'h5',
17
- bodySmall: 'h6',
18
- content: 'p'
19
- };
20
- function Label(_ref) {
21
- let {
22
- children,
23
- className,
24
- size,
25
- font,
26
- ...restProps
27
- } = _ref;
28
- return /*#__PURE__*/React__default.createElement(labels[size], {
29
- className: classnames('label', className, font, {
30
- large: size === 'headingExtraLarge'
31
- }),
32
- ...restProps
33
- }, children);
34
- }
35
- Label.propTypes = {
36
- /**
37
- * Any valid React node.
38
- */
39
- children: propTypesExports.string.isRequired,
40
- /**
41
- * Label sizing
42
- */
43
- size: propTypesExports.oneOf(['headingExtraLarge', 'headingLarge', 'headingBig', 'heading', 'bodyBig', 'body', 'bodySmall', 'content']),
44
- /**
45
- * Label font to be used
46
- */
47
- font: propTypesExports.oneOf(['regular', 'semiBold', 'bold']),
48
- /**
49
- * Addional className
50
- */
51
- className: propTypesExports.string
52
- };
53
- Label.defaultProps = {
54
- size: 'content',
55
- font: 'regular'
56
- };
57
-
58
- export { Label as default };
package/LinkButton.js DELETED
@@ -1,104 +0,0 @@
1
- import { _ as _extends } from './_rollupPluginBabelHelpers-e8fb2e5c.js';
2
- import React__default, { useCallback, useMemo } from 'react';
3
- import { p as propTypesExports } from './index-e0af0caf.js';
4
- import { c as classnames } from './index-6ff23041.js';
5
- import { s as styleInject } from './style-inject.es-746bb8ed.js';
6
- import Icon from './Icon.js';
7
- import { n as noop } from './index-b7a33c58.js';
8
- import './globalStyling-9c60a159.js';
9
- import './dateValidation-67caec66.js';
10
- import './_commonjsHelpers-24198af3.js';
11
- import 'react-dom';
12
-
13
- var css_248z = "[data-gene-ui-version=\"1.0.0\"] .linkButton{align-items:center;color:var(--hero);cursor:pointer;display:flex;max-width:-webkit-fit-content;max-width:-moz-fit-content;max-width:fit-content;padding:0 .8rem}[data-gene-ui-version=\"1.0.0\"] .linkButton:focus-visible{border-radius:.4rem;outline:.2rem var(--hero) solid}[data-gene-ui-version=\"1.0.0\"] .linkButton__icon{display:inline-block}[data-gene-ui-version=\"1.0.0\"] .linkButton-disable{opacity:.3;pointer-events:none}";
14
- styleInject(css_248z);
15
-
16
- function LinkButton(_ref) {
17
- let {
18
- href,
19
- onClick,
20
- children,
21
- iconAfter,
22
- className,
23
- iconBefore,
24
- isDisabled,
25
- onMouseDown,
26
- ariaLabel,
27
- ...restProps
28
- } = _ref;
29
- const onClickHandler = useCallback(e => onClick(e), [href]);
30
- const onMouseDownHandler = useCallback(e => onMouseDown(e), [href]);
31
- const attributes = useMemo(() => ({
32
- className: classnames('linkButton', {
33
- 'linkButton-disable': isDisabled
34
- }, className),
35
- onMouseDown: onMouseDownHandler,
36
- onClick: onClickHandler,
37
- ...(ariaLabel ? {
38
- 'aria-label': ariaLabel
39
- } : {}),
40
- ...restProps
41
- }), [isDisabled, className, onMouseDownHandler, onClickHandler, restProps]);
42
- const content = useMemo(() => /*#__PURE__*/React__default.createElement(React__default.Fragment, null, iconBefore && /*#__PURE__*/React__default.createElement(Icon, {
43
- type: iconBefore,
44
- className: "linkButton__icon"
45
- }), children, iconAfter && /*#__PURE__*/React__default.createElement(Icon, {
46
- type: iconAfter,
47
- className: "linkButton__icon"
48
- })), [iconBefore, children, iconAfter]);
49
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, href ? /*#__PURE__*/React__default.createElement("a", _extends({}, attributes, {
50
- href: href
51
- }), content) : /*#__PURE__*/React__default.createElement("button", _extends({}, attributes, {
52
- type: "button"
53
- }), content));
54
- }
55
- LinkButton.propTypes = {
56
- /**
57
- * Href for <code>\<a\></code> tag if you don't pass instead of <code>\<a\></code> tag will be <code>\<button\></code> tag .
58
- */
59
- href: propTypesExports.string,
60
- /**
61
- * Fires event when user click on LinkButton.
62
- * <br>
63
- * <code>(event: Event) => void </code>
64
- */
65
- onClick: propTypesExports.func,
66
- /**
67
- * Fires event when the element has been pressed.
68
- * <br>
69
- * <code>(event: Event) => void</code>
70
- */
71
- onMouseDown: propTypesExports.func,
72
- /**
73
- * The LinkButton additional className.
74
- */
75
- className: propTypesExports.string,
76
- /**
77
- * Any valid React node.
78
- */
79
- children: propTypesExports.node,
80
- /**
81
- * Icon to render before the LinkButton. Should be an icon component's type.
82
- */
83
- iconBefore: propTypesExports.string,
84
- /**
85
- * Icon to render after the LinkButton. Should be an icon component's type.
86
- */
87
- iconAfter: propTypesExports.string,
88
- /**
89
- * Makes the LinkButton disabled.
90
- */
91
- isDisabled: propTypesExports.bool,
92
- /**
93
- * aria-label for button or LinkButton.
94
- */
95
- ariaLabel: propTypesExports.string
96
- };
97
- LinkButton.defaultProps = {
98
- children: 'LinkButton example',
99
- isDisabled: false,
100
- onMouseDown: noop
101
- };
102
- LinkButton.displayName = 'LinkButton';
103
-
104
- export { LinkButton as default };
@@ -1,95 +0,0 @@
1
- import { _ as _extends } from './_rollupPluginBabelHelpers-e8fb2e5c.js';
2
- import React__default from 'react';
3
- import { p as propTypesExports } from './index-e0af0caf.js';
4
- import { c as classnames } from './index-6ff23041.js';
5
- import Badge from './Badge.js';
6
- import Icon from './Icon.js';
7
- import './globalStyling-9c60a159.js';
8
- import { s as styleInject } from './style-inject.es-746bb8ed.js';
9
- import './configs.js';
10
-
11
- var css_248z = "[data-gene-ui-version=\"1.0.0\"] .mob-navigation-bar{background:var(--background);border-top:1px solid rgba(var(--background-sc-rgb),.06);bottom:0;font:600 1rem/1.4rem var(--font-family);left:0;position:fixed;text-align:center;width:100%;z-index:200}[data-gene-ui-version=\"1.0.0\"] .mob-navigation-bar>ul{display:table;table-layout:fixed;width:100%}[data-gene-ui-version=\"1.0.0\"] .mob-navigation-bar>ul>li{display:table-cell;overflow:hidden;padding:.8rem 0 .4rem;position:relative;transition:color .3s,opacity .3s}[data-gene-ui-version=\"1.0.0\"] .mob-navigation-bar>ul>li .badge{margin:0 auto;position:absolute;top:.8rem;width:5.2rem}[data-gene-ui-version=\"1.0.0\"] .mob-navigation-bar>ul>li .badge-right .badge{right:calc(50% - 2.5rem)}[data-gene-ui-version=\"1.0.0\"] .mob-navigation-bar>ul>li .badge-left .badge{left:calc(50% - 2.5rem)}[data-gene-ui-version=\"1.0.0\"] .mob-navigation-bar>ul>li:before{background:var(--hero);border-radius:0 0 .5rem .5rem;content:\"\";display:block;height:.3rem;left:calc(50% - 2.6rem);position:absolute;top:0;transform:translateY(-100%);transition:transform .3s;width:5.2rem}[data-gene-ui-version=\"1.0.0\"] .mob-navigation-bar>ul>li.active{color:var(--hero)}[data-gene-ui-version=\"1.0.0\"] .mob-navigation-bar>ul>li.active:before{transform:translateY(0)}[data-gene-ui-version=\"1.0.0\"] .mob-navigation-bar>ul>li.disabled{opacity:.5;pointer-events:none}[data-gene-ui-version=\"1.0.0\"] .mob-navigation-bar .icon{margin:0 0 .2rem}";
12
- styleInject(css_248z);
13
-
14
- function MobileNavigation(_ref) {
15
- let {
16
- list,
17
- activeSlug,
18
- onChange,
19
- className,
20
- ...restProps
21
- } = _ref;
22
- const handleClick = event => {
23
- const {
24
- index
25
- } = event.currentTarget.dataset;
26
- const item = list[index];
27
- onChange && onChange(item);
28
- };
29
- return /*#__PURE__*/React__default.createElement("div", _extends({
30
- className: classnames('mob-navigation-bar', className)
31
- }, restProps), /*#__PURE__*/React__default.createElement("ul", null, list.map((item, index) => /*#__PURE__*/React__default.createElement("li", {
32
- key: item.slug,
33
- "data-index": index,
34
- className: classnames({
35
- active: item.slug === activeSlug,
36
- disabled: item.disabled
37
- }),
38
- onClick: !item.disabled ? handleClick : null
39
- }, item.badge && /*#__PURE__*/React__default.createElement("div", {
40
- className: "badge-".concat(item.badge.position || 'right')
41
- }, /*#__PURE__*/React__default.createElement(Badge, {
42
- size: "default",
43
- maxCount: item.badge.maxCount,
44
- count: item.badge.count
45
- })), /*#__PURE__*/React__default.createElement(Icon, {
46
- type: item.icon
47
- }), /*#__PURE__*/React__default.createElement("p", {
48
- className: "ellipsis-text"
49
- }, item.title)))));
50
- }
51
- MobileNavigation.propTypes = {
52
- /**
53
- * Array of menu items data
54
- */
55
- list: propTypesExports.arrayOf(propTypesExports.shape({
56
- /**
57
- * Title for navigation item
58
- */
59
- title: propTypesExports.string,
60
- /**
61
- *
62
- */
63
- slug: propTypesExports.string,
64
- /**
65
- * Icon for navigation item
66
- */
67
- icon: propTypesExports.string,
68
- /**
69
- * Notification Badge
70
- * count - the value of badge
71
- * maxCount - if the count is greater than the max count, the Badge shows maxCount+
72
- * position - position of Badge
73
- */
74
- badge: propTypesExports.shape({
75
- count: propTypesExports.number,
76
- maxCount: propTypesExports.number,
77
- position: propTypesExports.oneOf(['left', 'right'])
78
- })
79
- }).isRequired),
80
- /**
81
- * Initially selected item
82
- */
83
- activeSlug: propTypesExports.string,
84
- /**
85
- * CSS class name for element
86
- */
87
- className: propTypesExports.string,
88
- /**
89
- * Fires event when user click on one of the items
90
- * (item: Object) => void
91
- */
92
- onChange: propTypesExports.func
93
- };
94
-
95
- export { MobileNavigation as default };