@geneui/components 2.11.1 → 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 (193) hide show
  1. package/{ActionableList.js → ActionableList/index.js} +83 -152
  2. package/{AdvancedSearch.js → AdvancedSearch/index.js} +291 -304
  3. package/{Alert.js → Alert/index.js} +19 -20
  4. package/Avatar/index.js +30 -0
  5. package/{Badge.js → Badge/index.js} +13 -14
  6. package/{Breadcrumb.js → Breadcrumb/index.js} +32 -31
  7. package/{BusyLoader.js → BusyLoader/index.js} +11 -12
  8. package/{Button.js → Button/index.js} +20 -21
  9. package/CHANGELOG.md +56 -0
  10. package/{Card.js → Card/index.js} +82 -94
  11. package/{CardList.js → CardList/index.js} +118 -165
  12. package/{CellMeasurerCache-c11cec83.js → CellMeasurerCache-bc2163c1.js} +2 -2
  13. package/{index-0cf65939.js → Charts/index.js} +17103 -30439
  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-5e722d91.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} +83 -73
  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.js → Image/index.js} +29 -30
  48. package/ImagePreview/index.js +481 -0
  49. package/{KeyValue.js → KeyValue/index.js} +11 -12
  50. package/LICENSE +21 -0
  51. package/{Label.js → Label/index.js} +8 -9
  52. package/LinkButton/index.js +67 -0
  53. package/{Menu.js → Menu/index.js} +39 -34
  54. package/{MobileNavigation.js → MobileNavigation/index.js} +19 -20
  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} +44 -35
  59. package/{Notification.js → Notification/index.js} +24 -25
  60. package/{Option.js → Option/index.js} +37 -39
  61. package/Overlay/index.js +189 -0
  62. package/{Overspread.js → Overspread/index.js} +65 -121
  63. package/{Pagination.js → Pagination/index.js} +35 -34
  64. package/Paper/index.js +96 -0
  65. package/{index-a4635754.js → Popover/index.js} +48 -58
  66. package/{index-702bf24a.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.js → Progress/index.js} +24 -25
  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-b7928765.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.js → SearchWithDropdown/index.js} +47 -104
  80. package/{Section.js → Section/index.js} +15 -16
  81. package/{SkeletonLoader.js → SkeletonLoader/index.js} +13 -14
  82. package/{Slider.js → Slider/index.js} +46 -43
  83. package/{Status.js → Status/index.js} +23 -24
  84. package/{Steps.js → Steps/index.js} +42 -41
  85. package/{index-5cea9a7d.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.js → Tabs/index.js} +27 -28
  90. package/{Tag.js → Tag/index.js} +17 -18
  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.js → Timeline/index.js} +19 -20
  96. package/{Title.js → Title/index.js} +13 -14
  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-d9e8a888.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-a59530cd.js → index-583e0b30.js} +1 -1
  136. package/{index-67f4d4d1.js → index-78d2ea5b.js} +684 -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/Avatar.js +0 -77
  154. package/Charts.js +0 -99
  155. package/ComboBox.js +0 -99
  156. package/Counter.js +0 -99
  157. package/DatePickerInput.js +0 -30
  158. package/Dropdown.js +0 -99
  159. package/Form.js +0 -116
  160. package/FormableCheckbox.js +0 -27
  161. package/FormableDatePicker.js +0 -39
  162. package/FormableDropdown.js +0 -105
  163. package/FormableEditor.js +0 -24
  164. package/FormableMultiSelectDropdown.js +0 -105
  165. package/FormableNumberInput.js +0 -31
  166. package/FormableRadio.js +0 -23
  167. package/FormableSwitcher.js +0 -23
  168. package/FormableTextInput.js +0 -31
  169. package/FormableUploader.js +0 -40
  170. package/GeneUIProvider.js +0 -256
  171. package/Holder.js +0 -99
  172. package/ImagePreview.js +0 -99
  173. package/LinkButton.js +0 -104
  174. package/ModuleTitle.js +0 -99
  175. package/Overlay.js +0 -99
  176. package/Paper.js +0 -97
  177. package/Popover.js +0 -20
  178. package/PopoverV2.js +0 -19
  179. package/Profile.js +0 -99
  180. package/Range.js +0 -14
  181. package/RichEditor.js +0 -13
  182. package/SuggestionList.js +0 -15
  183. package/Table.js +0 -102
  184. package/TimePicker.js +0 -99
  185. package/Uploader.js +0 -32
  186. package/ValidatableDropdown.js +0 -99
  187. package/ValidatableElements.js +0 -99
  188. package/ValidatableMultiSelectDropdown.js +0 -99
  189. package/Widget.js +0 -99
  190. package/globalStyling-9c60a159.js +0 -4
  191. package/index-b7a33c58.js +0 -11
  192. package/index-e0af0caf.js +0 -1182
  193. package/useMount-6fef51a5.js +0 -9
@@ -0,0 +1,143 @@
1
+ import { _ as _extends } from '../_rollupPluginBabelHelpers-e8fb2e5c.js';
2
+ import React__default from 'react';
3
+ import PropTypes from 'prop-types';
4
+ import { c as classnames } from '../index-6ff23041.js';
5
+ import { d as moduleTitleConfig } from '../configs-fed6ac34.js';
6
+ import { n as noop } from '../index-a0e4e333.js';
7
+ import Icon from '../Icon/index.js';
8
+ import Tooltip from '../Tooltip/index.js';
9
+ import { s as styleInject } from '../style-inject.es-746bb8ed.js';
10
+ import '../dateValidation-67caec66.js';
11
+ import '../_commonjsHelpers-24198af3.js';
12
+ import 'react-dom';
13
+ import '../Popover-f4d1cac0.js';
14
+ import '../hooks/useDeviceType.js';
15
+ import '../hooks/useWindowSize.js';
16
+ import '../GeneUIProvider/index.js';
17
+
18
+ var css_248z = "[data-gene-ui-version=\"2.12.1\"] .module-header{background:var(--background);display:flex;flex-shrink:0;height:5rem;padding:0 .5rem 0 2rem;width:100%}html[dir=rtl] .module-header{padding:0 2rem 0 .5rem}[data-gene-ui-version=\"2.12.1\"] .module-header.headerBorder.p-top{border-bottom:1px solid rgba(var(--background-sc-rgb),.1)}[data-gene-ui-version=\"2.12.1\"] .module-header.headerBorder.p-top.cr-position-radius{border-radius:2rem 2rem 0 0}[data-gene-ui-version=\"2.12.1\"] .module-header.headerBorder.p-bottom{border-top:1px solid rgba(var(--background-sc-rgb),.1)}[data-gene-ui-version=\"2.12.1\"] .module-header.headerBorder.p-bottom.cr-position-radius{border-radius:0 0 2rem 2rem}[data-gene-ui-version=\"2.12.1\"] .module-header.cr-full-radius{border-radius:2rem}[data-gene-ui-version=\"2.12.1\"] .module-header>li{align-items:center;display:flex}[data-gene-ui-version=\"2.12.1\"] .module-header>li.left-content{flex:auto;overflow:hidden;position:relative}[data-gene-ui-version=\"2.12.1\"] .module-header>li.left-content .left-inner{max-width:100%}[data-gene-ui-version=\"2.12.1\"] .module-header>li.left-content .left-inner:nth-last-child(2){max-width:calc(100% - 3.2rem)}[data-gene-ui-version=\"2.12.1\"] .module-header>li.left-content .left-inner-icon{margin-inline-start:.8rem}[data-gene-ui-version=\"2.12.1\"] .module-header>li.right-content{flex-shrink:0}[data-gene-ui-version=\"2.12.1\"] .module-header.s-small{height:3rem}[data-gene-ui-version=\"2.12.1\"] .module-header.s-small .module-description-title .m-title,[data-gene-ui-version=\"2.12.1\"] .module-header.s-small .module-title{font-size:1.2rem;line-height:normal}[data-gene-ui-version=\"2.12.1\"] .module-header.s-medium{height:4rem}[data-gene-ui-version=\"2.12.1\"] .module-header.s-extra-big{height:6rem}[data-gene-ui-version=\"2.12.1\"] .module-title{font:600 1.4rem/1.8rem var(--font-family)}[data-gene-ui-version=\"2.12.1\"] .module-title:before{background:var(--hero);content:\"\";display:block;height:.3rem;position:absolute;width:3.4rem}html:not([dir=rtl]) .module-title:before{left:0}html[dir=rtl] .module-title:before{right:0}[data-gene-ui-version=\"2.12.1\"] .p-top .module-title:before{bottom:0}[data-gene-ui-version=\"2.12.1\"] .p-bottom .module-title:before{top:0}[data-gene-ui-version=\"2.12.1\"] .module-title-without-border{font:600 1.4rem/1.8rem var(--font-family)}[data-gene-ui-version=\"2.12.1\"] .module-description-title{width:100%}[data-gene-ui-version=\"2.12.1\"] .module-description-title .m-description{font:600 1.2rem/1.6rem var(--font-family)}[data-gene-ui-version=\"2.12.1\"] .module-description-title .m-title{font:600 1.6rem/2.8rem var(--font-family)}";
19
+ styleInject(css_248z);
20
+
21
+ function IconWithTooltip(_ref) {
22
+ let {
23
+ toolTip,
24
+ children
25
+ } = _ref;
26
+ return toolTip ? /*#__PURE__*/React__default.createElement(Tooltip, {
27
+ title: toolTip
28
+ }, children) : children;
29
+ }
30
+ function ModuleTitle(_ref2) {
31
+ let {
32
+ size,
33
+ title,
34
+ color,
35
+ hideBeforeBorder,
36
+ position,
37
+ children,
38
+ className,
39
+ description,
40
+ cornerRadius,
41
+ headerBorder,
42
+ titleIcon,
43
+ titleIconTooltip,
44
+ onTitleIconClick,
45
+ ...restProps
46
+ } = _ref2;
47
+ return /*#__PURE__*/React__default.createElement("ul", _extends({
48
+ className: classnames('module-header', "cr-".concat(cornerRadius), "p-".concat(position), "s-".concat(size), className, {
49
+ headerBorder
50
+ })
51
+ }, restProps), /*#__PURE__*/React__default.createElement("li", {
52
+ className: "left-content",
53
+ style: {
54
+ '--hero': color || ''
55
+ }
56
+ }, /*#__PURE__*/React__default.createElement("div", {
57
+ className: "left-inner"
58
+ }, description ? /*#__PURE__*/React__default.createElement("div", {
59
+ className: "module-description-title"
60
+ }, /*#__PURE__*/React__default.createElement("div", {
61
+ className: "m-description ellipsis-text"
62
+ }, description), /*#__PURE__*/React__default.createElement("div", {
63
+ className: "m-title ellipsis-text"
64
+ }, title)) : title && /*#__PURE__*/React__default.createElement("div", {
65
+ className: classnames('ellipsis-text', {
66
+ 'module-title-without-border': hideBeforeBorder,
67
+ 'module-title': !hideBeforeBorder
68
+ }),
69
+ title: typeof title === 'string' ? title : ''
70
+ }, title)), titleIcon && /*#__PURE__*/React__default.createElement(IconWithTooltip, {
71
+ toolTip: titleIconTooltip
72
+ }, /*#__PURE__*/React__default.createElement("div", {
73
+ className: "left-inner-icon"
74
+ }, /*#__PURE__*/React__default.createElement(Icon, {
75
+ type: titleIcon,
76
+ onClick: onTitleIconClick
77
+ })))), /*#__PURE__*/React__default.createElement("li", {
78
+ className: "right-content"
79
+ }, children));
80
+ }
81
+ ModuleTitle.propTypes = {
82
+ /**
83
+ * Title property. Any valid React node.
84
+ */
85
+ title: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
86
+ /**
87
+ * Additonal description. Any valid React node
88
+ */
89
+ description: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
90
+ /**
91
+ * ModuleTitle sizing
92
+ */
93
+ size: PropTypes.oneOf(moduleTitleConfig.size),
94
+ /**
95
+ * Addional className
96
+ */
97
+ className: PropTypes.string,
98
+ /**
99
+ * Hide border after title
100
+ */
101
+ hideBeforeBorder: PropTypes.bool,
102
+ /**
103
+ * Hide header main border
104
+ */
105
+ headerBorder: PropTypes.bool,
106
+ /**
107
+ * ModuleTitle positioning
108
+ */
109
+ position: PropTypes.oneOf(moduleTitleConfig.position),
110
+ /**
111
+ * ModuleTitle corner radius
112
+ */
113
+ cornerRadius: PropTypes.oneOf(moduleTitleConfig.cornerRadius),
114
+ /**
115
+ * Module title content can be passed as child. Any valid React node.
116
+ */
117
+ children: PropTypes.node,
118
+ /**
119
+ * Use this prop to override ModuleTitle's underline color. Will not work when "descroiption" prop is specified
120
+ */
121
+ color: PropTypes.string,
122
+ /**
123
+ * Will add an "Icon" atom to the left side of ModuleTitle. Valid values are the same as "type" prop for "Icon" atom
124
+ */
125
+ titleIcon: PropTypes.string,
126
+ /**
127
+ * Tooltip for icon
128
+ */
129
+ titleIconTooltip: PropTypes.string,
130
+ /**
131
+ * Title Icon onClick event
132
+ */
133
+ onTitleIconClick: PropTypes.func
134
+ };
135
+ ModuleTitle.defaultProps = {
136
+ onTitleIconClick: noop,
137
+ headerBorder: true,
138
+ size: moduleTitleConfig.size[2],
139
+ position: moduleTitleConfig.position[0],
140
+ cornerRadius: moduleTitleConfig.cornerRadius[0]
141
+ };
142
+
143
+ export { ModuleTitle as default };
@@ -1,46 +1,48 @@
1
1
  import React__default, { memo, useState, useRef, useMemo, useCallback, useEffect } from 'react';
2
- import { p as propTypesExports } from './index-e0af0caf.js';
3
- import { n as noop } from './index-ac59cb10.js';
4
- import Icon from './Icon.js';
5
- import Option from './Option.js';
6
- import { P as Popover } from './index-a4635754.js';
7
- import { _ as _extends } from './_rollupPluginBabelHelpers-e8fb2e5c.js';
8
- import './dateValidation-67caec66.js';
9
- import { d as debounce } from './debounce-4419bc2f.js';
2
+ import PropTypes from 'prop-types';
3
+ import { n as noop } from '../index-a0e4e333.js';
4
+ import useDeviceType from '../hooks/useDeviceType.js';
5
+ import Icon from '../Icon/index.js';
6
+ import Option from '../Option/index.js';
7
+ import Popover from '../Popover/index.js';
8
+ import { _ as _extends } from '../_rollupPluginBabelHelpers-e8fb2e5c.js';
9
+ import '../dateValidation-67caec66.js';
10
+ import { d as debounce } from '../debounce-4419bc2f.js';
10
11
  import 'react-dom';
11
- import { u as useDeviceType } from './useDeviceType-dd51db38.js';
12
- import Menu from './Menu.js';
13
- import { s as styleInject } from './style-inject.es-746bb8ed.js';
14
- import './index-6ff23041.js';
15
- import './globalStyling-9c60a159.js';
16
- import './configs-91c86664.js';
17
- import './useEllipsisDetection-ef536015.js';
18
- import './Tooltip.js';
19
- import './Popover-f4d1cac0.js';
20
- import './_commonjsHelpers-24198af3.js';
21
- import './GeneUIProvider.js';
22
- import './useWindowSize-80369d76.js';
23
- import './index-122432cd.js';
24
- import './Portal.js';
25
- import './Scrollbar.js';
26
- import './guid-8ddf77b3.js';
12
+ import Menu from '../Menu/index.js';
13
+ import { s as styleInject } from '../style-inject.es-746bb8ed.js';
14
+ import '../configs-fed6ac34.js';
15
+ import '../hooks/useWindowSize.js';
16
+ import '../index-6ff23041.js';
17
+ import '../hooks/useEllipsisDetection.js';
18
+ import '../Tooltip/index.js';
19
+ import '../Popover-f4d1cac0.js';
20
+ import '../_commonjsHelpers-24198af3.js';
21
+ import '../GeneUIProvider/index.js';
22
+ import '../index-122432cd.js';
23
+ import '../hooks/useUpdatableRef.js';
24
+ import '../hooks/useForceUpdate.js';
25
+ import '../Portal/index.js';
26
+ import '../Scrollbar/index.js';
27
+ import '../guid-8ddf77b3.js';
27
28
 
28
29
  const getTitle = (id, data) => {
29
30
  if (data) {
30
31
  const matchedDatum = data.find(datum => datum.id === id);
31
- return matchedDatum && matchedDatum.title ? matchedDatum.title : data.map(datum => getTitle(id, datum.data)).filter(Boolean)[0];
32
+ return matchedDatum && matchedDatum.title ? matchedDatum : data.map(datum => getTitle(id, datum.data)).filter(Boolean)[0];
32
33
  }
33
34
  };
34
35
  const getTitlesArray = (ids, data) => ids.map(id => getTitle(id, data)).filter(Boolean);
35
- const navigationOptionsToMenuMenu = navigationOptions => navigationOptions.map(_ref => {
36
+ const navigationOptionsToMenu = (navigationOptions, optionId) => navigationOptions.map(_ref => {
36
37
  let {
37
38
  data,
38
39
  ...rest
39
40
  } = _ref;
40
41
  return {
41
42
  ...rest,
43
+ active: (optionId === null || optionId === void 0 ? void 0 : optionId.toString()) === rest.id.toString(),
42
44
  ...(data ? {
43
- children: navigationOptionsToMenuMenu(data)
45
+ children: navigationOptionsToMenu(data, optionId)
44
46
  } : {})
45
47
  };
46
48
  });
@@ -76,7 +78,7 @@ function NavigationMenuContent(_ref) {
76
78
  const isHovered = useRef(true);
77
79
  const optionId = useMemo(() => splitedValue === null || splitedValue === void 0 ? void 0 : splitedValue[depth], [depth, splitedValue]);
78
80
  const isActiveItem = useMemo(() => (activeItem === null || activeItem === void 0 ? void 0 : activeItem.id) && optionId === activeItem.id, [activeItem, optionId]);
79
- const mobileOptions = useMemo(() => options ? navigationOptionsToMenuMenu(options) : undefined, [options]);
81
+ const mobileOptions = useMemo(() => options ? navigationOptionsToMenu(options, optionId) : undefined, [options, optionId]);
80
82
  const initialIndexStack = useMemo(() => indexStackFromItems([], mobileOptions, optionId), [mobileOptions, activeItem]);
81
83
  const {
82
84
  isMobile
@@ -137,7 +139,7 @@ NavigationMenuContent.defaultProps = {
137
139
  };
138
140
  var NavigationMenuContent$1 = /*#__PURE__*/memo(NavigationMenuContent);
139
141
 
140
- var css_248z = "[data-gene-ui-version=\"2.11.0\"] .bc-navigation-menu{--size:3.6rem;align-items:center;border:1px solid #0000;border-radius:var(--button-external-size,var(--size));color:#fff;cursor:pointer;display:flex;font:600 1.4rem/2rem var(--font-family);justify-content:center;min-height:var(--button-external-size,var(--size));min-width:var(--button-external-size,var(--size));padding:0 1rem;position:relative;transition:color .3s,background .3s,opacity .2s;-webkit-user-select:none;user-select:none}@media (hover:hover){[data-gene-ui-version=\"2.11.0\"] .bc-navigation-menu:hover{background:#ffffff1a}}[data-gene-ui-version=\"2.11.0\"] .bc-navigation-menu.active{background:#ffffff1a}[data-gene-ui-version=\"2.11.0\"] .bc-navigation-menu:disabled{opacity:.5;pointer-events:none}[data-gene-ui-version=\"2.11.0\"] .bc-navigation-menu_head{align-items:center;display:flex;justify-content:center;pointer-events:none}[data-gene-ui-version=\"2.11.0\"] .bc-navigation-menu_layer{align-items:center;display:flex;margin:0 .8rem;opacity:.7}[data-gene-ui-version=\"2.11.0\"] .bc-navigation-menu_layer:last-child{opacity:1}[data-gene-ui-version=\"2.11.0\"] .bc-navigation-menu_layer:not(.bc-navigation-menu_layer:last-child):after{background-color:#fff;content:\"\";display:block;height:2.3rem;margin-left:1.5rem;transform:rotate(15deg);width:1px}[data-gene-ui-version=\"2.11.0\"] .bc-navigation-menu_layer.active{opacity:1}[data-gene-ui-version=\"2.11.0\"] .bc-navigation-menu_content{display:flex;padding:1rem 0}[data-gene-ui-version=\"2.11.0\"] .bc-navigation-menu_content-menu{width:25.8rem}[data-gene-ui-version=\"2.11.0\"] .bc-navigation-menu_content-menu:not(.bc-navigation-menu_content-menu:last-child){border-right:1px solid #0000001a}";
142
+ var css_248z = "[data-gene-ui-version=\"2.12.1\"] .bc-navigation-menu{--size:3.6rem;align-items:center;border:1px solid #0000;border-radius:var(--button-external-size,var(--size));color:#fff;cursor:pointer;display:flex;font:600 1.4rem/2rem var(--font-family);justify-content:center;min-height:var(--button-external-size,var(--size));min-width:var(--button-external-size,var(--size));padding:0 1rem;position:relative;transition:color .3s,background .3s,opacity .2s;-webkit-user-select:none;user-select:none}@media (hover:hover){[data-gene-ui-version=\"2.12.1\"] .bc-navigation-menu:hover{background:#ffffff1a}}[data-gene-ui-version=\"2.12.1\"] .bc-navigation-menu.active{background:#ffffff1a}[data-gene-ui-version=\"2.12.1\"] .bc-navigation-menu:disabled{opacity:.5;pointer-events:none}[data-gene-ui-version=\"2.12.1\"] .bc-navigation-menu_head{align-items:center;display:flex;justify-content:center;pointer-events:none}[data-gene-ui-version=\"2.12.1\"] .bc-navigation-menu_layer{align-items:center;display:flex;margin:0 .8rem;opacity:.7}[data-gene-ui-version=\"2.12.1\"] .bc-navigation-menu_layer.active,[data-gene-ui-version=\"2.12.1\"] .bc-navigation-menu_layer:last-child{opacity:1}[data-gene-ui-version=\"2.12.1\"] .bc-navigation-menu_content{display:flex;padding:1rem 0}[data-gene-ui-version=\"2.12.1\"] .bc-navigation-menu_content-menu{width:25.8rem}[data-gene-ui-version=\"2.12.1\"] .bc-navigation-menu_content-menu:not(.bc-navigation-menu_content-menu:last-child){border-right:1px solid #0000001a}[data-gene-ui-version=\"2.12.1\"] .bc-navigation-menu_title-wrapper{align-items:center;display:flex;justify-content:center}[data-gene-ui-version=\"2.12.1\"] .bc-navigation-menu_title-wrapper:not(.bc-navigation-menu_title-wrapper:last-child):after{background-color:#fff;content:\"\";display:block;height:2.3rem;margin-inline:.6rem;transform:rotate(15deg);width:1px}";
141
143
  styleInject(css_248z);
142
144
 
143
145
  function NavigationMenu(_ref) {
@@ -148,6 +150,9 @@ function NavigationMenu(_ref) {
148
150
  disabled
149
151
  } = _ref;
150
152
  const [isOpen, setIsOpen] = useState(false);
153
+ const {
154
+ isMobile
155
+ } = useDeviceType();
151
156
  const splitedValue = useMemo(() => value && value.split('/').filter(Boolean), [value]);
152
157
  const title = useMemo(() => getTitlesArray(splitedValue, data), [splitedValue, data]);
153
158
  const handleChange = useCallback(function () {
@@ -165,10 +170,14 @@ function NavigationMenu(_ref) {
165
170
  disabled: disabled
166
171
  }, /*#__PURE__*/React__default.createElement("div", {
167
172
  className: "bc-navigation-menu_head"
168
- }, title.map((item, index) => /*#__PURE__*/React__default.createElement("span", {
173
+ }, title.map((item, index) => /*#__PURE__*/React__default.createElement("div", {
174
+ className: "bc-navigation-menu_title-wrapper"
175
+ }, (item === null || item === void 0 ? void 0 : item.icon) && isMobile && /*#__PURE__*/React__default.createElement(Icon, {
176
+ type: item.icon
177
+ }), /*#__PURE__*/React__default.createElement("span", {
169
178
  key: index,
170
179
  className: "bc-navigation-menu_layer"
171
- }, item))), /*#__PURE__*/React__default.createElement(Icon, {
180
+ }, item.title)))), /*#__PURE__*/React__default.createElement(Icon, {
172
181
  type: "bc-icon-arrow-down"
173
182
  })),
174
183
  Content: /*#__PURE__*/React__default.createElement("div", {
@@ -186,24 +195,24 @@ NavigationMenu.propTypes = {
186
195
  * nested options, send the date to the option in the same structure as the options.
187
196
  * example => data={[{ id: 'item_1', title: 'Item 1', isHidden: false, data: [ { id: 'item_1_1', title: 'Item 1.1', isHidden: false } ]}]}
188
197
  */
189
- data: propTypesExports.arrayOf(propTypesExports.shape(Option.propTypes)).isRequired,
198
+ data: PropTypes.arrayOf(PropTypes.shape(Option.propTypes)).isRequired,
190
199
  /**
191
200
  * For value you need to send id selectable options id,
192
201
  * and if you select the nested option, then you need to send the id to the hierarchy.
193
202
  * example => 'item_1/item_1_1'
194
203
  */
195
- value: propTypesExports.string.isRequired,
204
+ value: PropTypes.string.isRequired,
196
205
  /**
197
206
  * onChange handler is called by clicking on the option
198
207
  * This callback gives you the option you clicked on and its id and
199
208
  * if it is nested then the give and parent option id are associated with a forward slash.
200
209
  * (id: NavigationMenu.value, item: Option) => void
201
210
  */
202
- onChange: propTypesExports.func,
211
+ onChange: PropTypes.func,
203
212
  /**
204
213
  * Disabled status for the navigation menu button
205
214
  */
206
- disabled: propTypesExports.bool
215
+ disabled: PropTypes.bool
207
216
  };
208
217
  NavigationMenu.defaultProps = {
209
218
  onChange: noop
@@ -1,18 +1,17 @@
1
- import { _ as _extends } from './_rollupPluginBabelHelpers-e8fb2e5c.js';
1
+ import { _ as _extends } from '../_rollupPluginBabelHelpers-e8fb2e5c.js';
2
2
  import React__default from 'react';
3
- import { c as classnames } from './index-6ff23041.js';
4
- import { p as propTypesExports } from './index-e0af0caf.js';
5
- import './dateValidation-67caec66.js';
3
+ import { c as classnames } from '../index-6ff23041.js';
4
+ import PropTypes from 'prop-types';
5
+ import '../dateValidation-67caec66.js';
6
6
  import 'react-dom';
7
- import { u as useDeviceType } from './useDeviceType-dd51db38.js';
8
- import { s as screenTypes } from './configs-91c86664.js';
9
- import Icon from './Icon.js';
10
- import './globalStyling-9c60a159.js';
11
- import { s as styleInject } from './style-inject.es-746bb8ed.js';
12
- import './_commonjsHelpers-24198af3.js';
13
- import './useWindowSize-80369d76.js';
7
+ import useDeviceType from '../hooks/useDeviceType.js';
8
+ import { s as screenTypes } from '../configs-fed6ac34.js';
9
+ import Icon from '../Icon/index.js';
10
+ import { s as styleInject } from '../style-inject.es-746bb8ed.js';
11
+ import '../_commonjsHelpers-24198af3.js';
12
+ import '../hooks/useWindowSize.js';
14
13
 
15
- var css_248z = "[data-gene-ui-version=\"2.11.0\"] .notifier-block{align-items:flex-start;background:var(--background);border:1px solid rgba(var(--background-sc-rgb),.1);border-radius:1rem;box-shadow:0 .2rem .4rem 0 #0000001a;cursor:pointer;display:flex;height:8.5rem;transition:border-color .3s;width:100%}[data-gene-ui-version=\"2.11.0\"] .notifier-block.mobile-view{border-radius:0;border-width:0 0 1px;box-shadow:none}[data-gene-ui-version=\"2.11.0\"] .notifier-block>li{flex-shrink:0}[data-gene-ui-version=\"2.11.0\"] .notifier-block>li.notifier-icon{align-self:stretch}[data-gene-ui-version=\"2.11.0\"] .notifier-block>li.notifier-content{flex:auto;overflow:hidden;padding:1.2rem 1.4rem;width:10rem}[data-gene-ui-version=\"2.11.0\"] .notifier-block>li.notifier-action{padding:1rem 1.5rem 0 0}html[dir=rtl] .notifier-block>li.notifier-action{padding:1rem 0 0 1.5rem}[data-gene-ui-version=\"2.11.0\"] .notifier-block>li.notifier-action .icon{cursor:pointer}@media (hover:hover){[data-gene-ui-version=\"2.11.0\"] .notifier-block>li.notifier-action .icon:hover{color:var(--hero)}[data-gene-ui-version=\"2.11.0\"] .notifier-block:hover{border-color:var(--hero)}}[data-gene-ui-version=\"2.11.0\"] .notifier-icon{align-items:center;background:rgba(var(--hero-rgb),.28);border-radius:.9rem 0 0 .9rem;color:var(--background);display:flex;font-size:4.2rem;justify-content:center;width:8.5rem}html[dir=rtl] .notifier-icon{border-radius:0 .9rem .9rem 0}[data-gene-ui-version=\"2.11.0\"] .notifier-block.mobile-view .notifier-icon{border-radius:0}[data-gene-ui-version=\"2.11.0\"] .type-clean .notifier-icon{background:none;color:rgba(var(--hero-rgb),.48)}html:not([dir=rtl]) .type-clean .notifier-icon{border-right:1px solid rgba(var(--background-sc-rgb),.1)}html[dir=rtl] .type-clean .notifier-icon{border-left:1px solid rgba(var(--background-sc-rgb),.1)}[data-gene-ui-version=\"2.11.0\"] .notifier-title{font:600 1.4rem/1.36 var(--font-family);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-gene-ui-version=\"2.11.0\"] .notifier-c-t{margin:.8rem 0 0}[data-gene-ui-version=\"2.11.0\"] .notifier-c-t>ul{display:grid;font:600 1.2rem/1.42 var(--font-family);grid-template-areas:\"c1 c2\";grid-template-columns:auto 1fr}[data-gene-ui-version=\"2.11.0\"] .notifier-c-t>ul>li{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-gene-ui-version=\"2.11.0\"] .notifier-c-t>ul>li:first-child{grid-area:c1;opacity:.5;width:6.4rem}[data-gene-ui-version=\"2.11.0\"] .notifier-c-t>ul>li:nth-child(2){grid-area:c2}";
14
+ var css_248z = "[data-gene-ui-version=\"2.12.1\"] .notifier-block{align-items:flex-start;background:var(--background);border:1px solid rgba(var(--background-sc-rgb),.1);border-radius:1rem;box-shadow:0 .2rem .4rem 0 #0000001a;cursor:pointer;display:flex;height:8.5rem;transition:border-color .3s;width:100%}[data-gene-ui-version=\"2.12.1\"] .notifier-block.mobile-view{border-radius:0;border-width:0 0 1px;box-shadow:none}[data-gene-ui-version=\"2.12.1\"] .notifier-block>li{flex-shrink:0}[data-gene-ui-version=\"2.12.1\"] .notifier-block>li.notifier-icon{align-self:stretch}[data-gene-ui-version=\"2.12.1\"] .notifier-block>li.notifier-content{flex:auto;overflow:hidden;padding:1.2rem 1.4rem;width:10rem}[data-gene-ui-version=\"2.12.1\"] .notifier-block>li.notifier-action{padding:1rem 1.5rem 0 0}html[dir=rtl] .notifier-block>li.notifier-action{padding:1rem 0 0 1.5rem}[data-gene-ui-version=\"2.12.1\"] .notifier-block>li.notifier-action .icon{cursor:pointer}@media (hover:hover){[data-gene-ui-version=\"2.12.1\"] .notifier-block>li.notifier-action .icon:hover{color:var(--hero)}[data-gene-ui-version=\"2.12.1\"] .notifier-block:hover{border-color:var(--hero)}}[data-gene-ui-version=\"2.12.1\"] .notifier-icon{align-items:center;background:rgba(var(--hero-rgb),.28);border-radius:.9rem 0 0 .9rem;color:var(--background);display:flex;font-size:4.2rem;justify-content:center;width:8.5rem}html[dir=rtl] .notifier-icon{border-radius:0 .9rem .9rem 0}[data-gene-ui-version=\"2.12.1\"] .notifier-block.mobile-view .notifier-icon{border-radius:0}[data-gene-ui-version=\"2.12.1\"] .type-clean .notifier-icon{background:none;color:rgba(var(--hero-rgb),.48)}html:not([dir=rtl]) .type-clean .notifier-icon{border-right:1px solid rgba(var(--background-sc-rgb),.1)}html[dir=rtl] .type-clean .notifier-icon{border-left:1px solid rgba(var(--background-sc-rgb),.1)}[data-gene-ui-version=\"2.12.1\"] .notifier-title{font:600 1.4rem/1.36 var(--font-family);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-gene-ui-version=\"2.12.1\"] .notifier-c-t{margin:.8rem 0 0}[data-gene-ui-version=\"2.12.1\"] .notifier-c-t>ul{display:grid;font:600 1.2rem/1.42 var(--font-family);grid-template-areas:\"c1 c2\";grid-template-columns:auto 1fr}[data-gene-ui-version=\"2.12.1\"] .notifier-c-t>ul>li{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-gene-ui-version=\"2.12.1\"] .notifier-c-t>ul>li:first-child{grid-area:c1;opacity:.5;width:6.4rem}[data-gene-ui-version=\"2.12.1\"] .notifier-c-t>ul>li:nth-child(2){grid-area:c2}";
16
15
  styleInject(css_248z);
17
16
 
18
17
  const notificationTypes = ['default', 'clean'];
@@ -60,57 +59,57 @@ Notification.propTypes = {
60
59
  /**
61
60
  * Type of the Notification component.
62
61
  */
63
- type: propTypesExports.oneOf(notificationTypes),
62
+ type: PropTypes.oneOf(notificationTypes),
64
63
  /**
65
64
  * If true displays close button
66
65
  */
67
- closable: propTypesExports.bool,
66
+ closable: PropTypes.bool,
68
67
  /**
69
68
  * CSS class name for element
70
69
  */
71
- className: propTypesExports.string,
70
+ className: PropTypes.string,
72
71
  /**
73
72
  * Fires event when user clicks on close button
74
73
  * (event: Event) => void
75
74
  */
76
- onClose: propTypesExports.func,
75
+ onClose: PropTypes.func,
77
76
  /**
78
77
  * Custom content form notification
79
78
  */
80
- content: propTypesExports.element,
79
+ content: PropTypes.element,
81
80
  /**
82
81
  * Fires when user click on notification modal
83
82
  * (event: Event) => void
84
83
  */
85
- onContentClick: propTypesExports.func,
84
+ onContentClick: PropTypes.func,
86
85
  /**
87
86
  * Heading text for notification modal
88
87
  */
89
- heading: propTypesExports.string,
88
+ heading: PropTypes.string,
90
89
  /**
91
90
  * Descriptions text fro notification
92
91
  */
93
- description: propTypesExports.string,
92
+ description: PropTypes.string,
94
93
  /**
95
94
  * Controls screen type
96
95
  */
97
- screenType: propTypesExports.oneOf(screenTypes),
96
+ screenType: PropTypes.oneOf(screenTypes),
98
97
  /**
99
98
  * Additional heading text for notification
100
99
  */
101
- additionalHeading: propTypesExports.string,
100
+ additionalHeading: PropTypes.string,
102
101
  /**
103
102
  * Notification icon
104
103
  */
105
- notificationIcon: propTypesExports.string.isRequired,
104
+ notificationIcon: PropTypes.string.isRequired,
106
105
  /**
107
106
  * Additional info for notification
108
107
  */
109
- additionalDescription: propTypesExports.string,
108
+ additionalDescription: PropTypes.string,
110
109
  /**
111
110
  * Title for notification
112
111
  */
113
- title: propTypesExports.string.isRequired
112
+ title: PropTypes.string.isRequired
114
113
  };
115
114
  Notification.defaultProps = {
116
115
  type: notificationTypes[0],
@@ -1,23 +1,22 @@
1
- import { _ as _extends } from './_rollupPluginBabelHelpers-e8fb2e5c.js';
1
+ import { _ as _extends } from '../_rollupPluginBabelHelpers-e8fb2e5c.js';
2
2
  import React__default, { useRef } from 'react';
3
- import { p as propTypesExports } from './index-e0af0caf.js';
4
- import { c as classnames } from './index-6ff23041.js';
5
- import { o as optionConfig, s as screenTypes } from './configs-91c86664.js';
6
- import './dateValidation-67caec66.js';
3
+ import PropTypes from 'prop-types';
4
+ import { c as classnames } from '../index-6ff23041.js';
5
+ import { o as optionConfig, s as screenTypes } from '../configs-fed6ac34.js';
6
+ import '../dateValidation-67caec66.js';
7
7
  import 'react-dom';
8
- import { u as useDeviceType } from './useDeviceType-dd51db38.js';
9
- import { u as useEllipsisDetection } from './useEllipsisDetection-ef536015.js';
10
- import Tooltip from './Tooltip.js';
11
- import Icon from './Icon.js';
12
- import './globalStyling-9c60a159.js';
13
- import { s as styleInject } from './style-inject.es-746bb8ed.js';
14
- import './_commonjsHelpers-24198af3.js';
15
- import './useWindowSize-80369d76.js';
16
- import './Popover-f4d1cac0.js';
17
- import './index-ac59cb10.js';
18
- import './GeneUIProvider.js';
8
+ import useDeviceType from '../hooks/useDeviceType.js';
9
+ import useEllipsisDetection from '../hooks/useEllipsisDetection.js';
10
+ import Icon from '../Icon/index.js';
11
+ import Tooltip from '../Tooltip/index.js';
12
+ import { s as styleInject } from '../style-inject.es-746bb8ed.js';
13
+ import '../_commonjsHelpers-24198af3.js';
14
+ import '../hooks/useWindowSize.js';
15
+ import '../Popover-f4d1cac0.js';
16
+ import '../index-a0e4e333.js';
17
+ import '../GeneUIProvider/index.js';
19
18
 
20
- var css_248z = "[data-gene-ui-version=\"2.11.0\"] .option-container{align-items:center;cursor:pointer;display:flex;min-height:4rem;overflow:hidden;padding:0 1.4rem;position:relative;transition:background .4s;-webkit-user-select:none;user-select:none;width:100%;z-index:0}[data-gene-ui-version=\"2.11.0\"] .option-container>*{transition:color .4s}[data-gene-ui-version=\"2.11.0\"] .option-container.mobile-view{min-height:4.8rem;padding:0 2rem}[data-gene-ui-version=\"2.11.0\"] .option-container.border-top{border-top:1px solid}[data-gene-ui-version=\"2.11.0\"] .option-container.border-bottom{border-bottom:1px solid}[data-gene-ui-version=\"2.11.0\"] .option-container.border-bottom,[data-gene-ui-version=\"2.11.0\"] .option-container.border-top{border-color:rgba(var(--background-sc-rgb),.1)}[data-gene-ui-version=\"2.11.0\"] .option-container.sticky-bottom,[data-gene-ui-version=\"2.11.0\"] .option-container.sticky-top{position:-webkit-sticky;position:sticky;z-index:1}[data-gene-ui-version=\"2.11.0\"] .option-container.sticky-top{top:0}[data-gene-ui-version=\"2.11.0\"] .option-container.sticky-bottom{bottom:0}@media (hover:hover){[data-gene-ui-version=\"2.11.0\"] .option-container.hovered:hover,[data-gene-ui-version=\"2.11.0\"] .option-container:hover:hover{background:rgba(var(--background-sc-rgb),.05)}}[data-gene-ui-version=\"2.11.0\"] .option-container.hovered{background:rgba(var(--background-sc-rgb),.05)}[data-gene-ui-version=\"2.11.0\"] .option-container.active,[data-gene-ui-version=\"2.11.0\"] .option-container.c-hero{color:var(--hero)}[data-gene-ui-version=\"2.11.0\"] .option-container.disabled{opacity:.5;pointer-events:none}[data-gene-ui-version=\"2.11.0\"] .option-container a{display:block;height:100%;left:0;line-height:4rem;overflow:hidden;padding:0 1.4rem;position:absolute;text-overflow:ellipsis;top:0;white-space:nowrap;width:100%;z-index:1}[data-gene-ui-version=\"2.11.0\"] .option-container a.active~*{color:var(--hero)}[data-gene-ui-version=\"2.11.0\"] .option-container-relative{position:relative}[data-gene-ui-version=\"2.11.0\"] .option-left-elements{align-items:center;display:flex;flex-shrink:0;justify-content:center;margin-inline-end:1.2rem;min-height:2.4rem;min-width:2.4rem}[data-gene-ui-version=\"2.11.0\"] .option-right-elements{flex-shrink:0;margin-inline-start:1.2rem}[data-gene-ui-version=\"2.11.0\"] .option-right-elements .bc-icon-selected{transition:transform .4s}[data-gene-ui-version=\"2.11.0\"] .option-container:not(.mobile-view) .option-right-elements .bc-icon-selected{margin-inline-end:-.4rem}[data-gene-ui-version=\"2.11.0\"] .option-container:not(.active) .option-right-elements .bc-icon-selected{transform:scale(0)}[data-gene-ui-version=\"2.11.0\"] .mobile-view .bc-icon-selected{margin-inline-end:.8rem!important}[data-gene-ui-version=\"2.11.0\"] .option-texts{align-items:center;display:flex;flex:auto;font:600 1.4rem/2rem var(--font-family);overflow:hidden}[data-gene-ui-version=\"2.11.0\"] .option-texts>li{flex-shrink:0}[data-gene-ui-version=\"2.11.0\"] .option-texts>li:first-child{flex:auto;overflow:hidden}[data-gene-ui-version=\"2.11.0\"] .option-texts>li.assigned-value{margin-inline-start:1rem;opacity:.7}[data-gene-ui-version=\"2.11.0\"] .option-description{font:600 1.2rem/1.6rem var(--font-family);opacity:.7}[data-gene-ui-version=\"2.11.0\"] .option-title-center{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}[data-gene-ui-version=\"2.11.0\"] .option-title-end{text-align:end}";
19
+ var css_248z = "[data-gene-ui-version=\"2.12.1\"] .option-container{align-items:center;cursor:pointer;display:flex;min-height:4rem;overflow:hidden;padding:0 1.4rem;position:relative;transition:background .4s;-webkit-user-select:none;user-select:none;width:100%;z-index:0}[data-gene-ui-version=\"2.12.1\"] .option-container>*{transition:color .4s}[data-gene-ui-version=\"2.12.1\"] .option-container.mobile-view{min-height:4.8rem;padding:0 2rem}[data-gene-ui-version=\"2.12.1\"] .option-container.border-top{border-top:1px solid}[data-gene-ui-version=\"2.12.1\"] .option-container.border-bottom{border-bottom:1px solid}[data-gene-ui-version=\"2.12.1\"] .option-container.border-bottom,[data-gene-ui-version=\"2.12.1\"] .option-container.border-top{border-color:rgba(var(--background-sc-rgb),.1)}[data-gene-ui-version=\"2.12.1\"] .option-container.sticky-bottom,[data-gene-ui-version=\"2.12.1\"] .option-container.sticky-top{position:-webkit-sticky;position:sticky;z-index:1}[data-gene-ui-version=\"2.12.1\"] .option-container.sticky-top{top:0}[data-gene-ui-version=\"2.12.1\"] .option-container.sticky-bottom{bottom:0}@media (hover:hover){[data-gene-ui-version=\"2.12.1\"] .option-container.hovered:hover,[data-gene-ui-version=\"2.12.1\"] .option-container:hover:hover{background:rgba(var(--background-sc-rgb),.05)}}[data-gene-ui-version=\"2.12.1\"] .option-container.hovered{background:rgba(var(--background-sc-rgb),.05)}[data-gene-ui-version=\"2.12.1\"] .option-container.active,[data-gene-ui-version=\"2.12.1\"] .option-container.c-hero{color:var(--hero)}[data-gene-ui-version=\"2.12.1\"] .option-container.disabled{opacity:.5;pointer-events:none}[data-gene-ui-version=\"2.12.1\"] .option-container a{display:block;line-height:4rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-gene-ui-version=\"2.12.1\"] .option-container a.active~*{color:var(--hero)}[data-gene-ui-version=\"2.12.1\"] .option-container-relative{position:relative}[data-gene-ui-version=\"2.12.1\"] .option-left-elements{align-items:center;display:flex;flex-shrink:0;justify-content:center;margin-inline-end:1.2rem;min-height:2.4rem;min-width:2.4rem}[data-gene-ui-version=\"2.12.1\"] .option-right-elements{flex-shrink:0;margin-inline-start:1.2rem}[data-gene-ui-version=\"2.12.1\"] .option-right-elements .bc-icon-selected{transition:transform .4s}[data-gene-ui-version=\"2.12.1\"] .option-container:not(.mobile-view) .option-right-elements .bc-icon-selected{margin-inline-end:-.4rem}[data-gene-ui-version=\"2.12.1\"] .option-container:not(.active) .option-right-elements .bc-icon-selected{transform:scale(0)}[data-gene-ui-version=\"2.12.1\"] .mobile-view .bc-icon-selected{margin-inline-end:.8rem!important}[data-gene-ui-version=\"2.12.1\"] .option-texts{align-items:center;display:flex;flex:auto;font:600 1.4rem/2rem var(--font-family);overflow:hidden}[data-gene-ui-version=\"2.12.1\"] .option-texts>li{flex-shrink:0}[data-gene-ui-version=\"2.12.1\"] .option-texts>li:first-child{flex:auto;overflow:hidden}[data-gene-ui-version=\"2.12.1\"] .option-texts>li.assigned-value{margin-inline-start:1rem;opacity:.7}[data-gene-ui-version=\"2.12.1\"] .option-description{font:600 1.2rem/1.6rem var(--font-family);opacity:.7}[data-gene-ui-version=\"2.12.1\"] .option-title-center{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}[data-gene-ui-version=\"2.12.1\"] .option-title-end{text-align:end}";
21
20
  styleInject(css_248z);
22
21
 
23
22
  function Option(props) {
@@ -101,86 +100,85 @@ Option.propTypes = {
101
100
  /**
102
101
  * Title of the option
103
102
  */
104
- title: propTypesExports.oneOfType([propTypesExports.string, propTypesExports.node]),
103
+ title: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
105
104
  /**
106
105
  * Description of the option which is displayed on the bottom of the title with small caps
107
106
  */
108
- description: propTypesExports.string,
107
+ description: PropTypes.string,
109
108
  /**
110
109
  * Adds additional className to the option
111
110
  */
112
- className: propTypesExports.string,
111
+ className: PropTypes.string,
113
112
  /**
114
113
  * Adds icon on the right side of the option
115
114
  */
116
- icon: propTypesExports.string,
115
+ icon: PropTypes.string,
117
116
  /**
118
117
  * Changes text colors
119
118
  */
120
- color: propTypesExports.oneOf(optionConfig.color),
119
+ color: PropTypes.oneOf(optionConfig.color),
121
120
  /**
122
121
  * Changes color to hero
123
122
  */
124
- active: propTypesExports.bool,
123
+ active: PropTypes.bool,
125
124
  /**
126
125
  * Adds check icon and displays it when the option is active
127
126
  */
128
- checkMark: propTypesExports.bool,
127
+ checkMark: PropTypes.bool,
129
128
  /**
130
129
  * Adds to right arrow icon
131
130
  */
132
- forwardMark: propTypesExports.bool,
131
+ forwardMark: PropTypes.bool,
133
132
  /**
134
133
  * Any element you can add to the left side
135
134
  */
136
- leftCustomElement: propTypesExports.any,
135
+ leftCustomElement: PropTypes.any,
137
136
  /**
138
137
  * Any element you can add to the right side
139
138
  */
140
- rightCustomElement: propTypesExports.any,
139
+ rightCustomElement: PropTypes.any,
141
140
  /**
142
141
  * Information you can display on the right side of the option
143
142
  */
144
- assignedValue: propTypesExports.string,
143
+ assignedValue: PropTypes.string,
145
144
  /**
146
145
  * Adds border to the option
147
146
  */
148
- border: propTypesExports.oneOf(optionConfig.border),
147
+ border: PropTypes.oneOf(optionConfig.border),
149
148
  /**
150
149
  * Makes item sticky to scrolling element based on the position you choose
151
150
  */
152
- sticky: propTypesExports.oneOf(optionConfig.sticky),
151
+ sticky: PropTypes.oneOf(optionConfig.sticky),
153
152
  /**
154
153
  * Additional elements for rendering in option
155
154
  */
156
- content: propTypesExports.any,
155
+ content: PropTypes.any,
157
156
  /**
158
157
  * Fires event when user click on one of the menu items;
159
158
  * (event: Event, item: Object) => void
160
159
  */
161
- onClick: propTypesExports.func,
160
+ onClick: PropTypes.func,
162
161
  /**
163
162
  * Controls screen type
164
163
  */
165
- screenType: propTypesExports.oneOf(screenTypes),
164
+ screenType: PropTypes.oneOf(screenTypes),
166
165
  /**
167
166
  * Controls button disable state
168
167
  */
169
- disabled: propTypesExports.bool,
168
+ disabled: PropTypes.bool,
170
169
  /**
171
170
  * ref for label
172
171
  */
173
- forwardedRef: propTypesExports.oneOfType([propTypesExports.func,
172
+ forwardedRef: PropTypes.oneOfType([PropTypes.func,
174
173
  // for callback ref
175
- propTypesExports.shape({
176
- current: propTypesExports.instanceOf(Element)
174
+ PropTypes.shape({
175
+ current: PropTypes.instanceOf(Element)
177
176
  }) // for createRef() object
178
177
  ]),
179
-
180
178
  /**
181
179
  * Chose position for title
182
180
  */
183
- titlePosition: propTypesExports.oneOf(['start', 'center', 'end'])
181
+ titlePosition: PropTypes.oneOf(['start', 'center', 'end'])
184
182
  };
185
183
 
186
184
  export { Option as default };