@rio-cloud/rio-uikit 0.16.1-beta.23 → 0.16.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 (299) hide show
  1. package/ActionBarItem.d.ts +1 -1
  2. package/ActionBarItemList.d.ts +1 -1
  3. package/ActionBarItemListItem.d.ts +1 -1
  4. package/ActionBarItemListSeparator.d.ts +1 -1
  5. package/Activity.d.ts +1 -1
  6. package/AnimatedNumber.d.ts +1 -1
  7. package/AppNavigationBar.d.ts +1 -1
  8. package/ApplicationHeader.d.ts +1 -1
  9. package/ApplicationLayout.d.ts +1 -1
  10. package/ApplicationLayoutBodyBanner.d.ts +1 -1
  11. package/ApplicationLayoutBodyBottomBar.d.ts +1 -1
  12. package/ApplicationLayoutBodyNavigation.d.ts +1 -1
  13. package/Area.d.ts +1 -1
  14. package/AreaChart.d.ts +1 -1
  15. package/AreaGradient.d.ts +1 -1
  16. package/AssetTree.d.ts +1 -1
  17. package/AutoSuggest.d.ts +6 -5
  18. package/Bar.d.ts +5 -2
  19. package/BarChart.d.ts +1 -1
  20. package/BottomSheet.d.ts +1 -1
  21. package/BrowserWarning.d.ts +1 -1
  22. package/Button.d.ts +24 -2
  23. package/ButtonDropdown.d.ts +1 -1
  24. package/Carousel.d.ts +3 -1
  25. package/ChartNeedle.d.ts +1 -1
  26. package/ChartTooltip.d.ts +1 -1
  27. package/Checkbox.d.ts +1 -1
  28. package/Circle.d.ts +1 -1
  29. package/ClearableInput.d.ts +1 -1
  30. package/ClusterLayer.d.ts +1 -1
  31. package/ClusterMapMarker.d.ts +1 -1
  32. package/ClusterUtils.d.ts +1 -1
  33. package/Collapse.d.ts +1 -1
  34. package/Colors.d.ts +1 -1
  35. package/ConfirmationDialog.d.ts +9 -2
  36. package/ContentLoader.d.ts +5 -2
  37. package/ContextMenu.d.ts +1 -1
  38. package/ContextMenuItem.d.ts +1 -1
  39. package/CustomState.d.ts +1 -1
  40. package/DataTab.d.ts +1 -1
  41. package/DataTabs.d.ts +1 -1
  42. package/DatePicker.d.ts +1 -1
  43. package/DateRangePicker.d.ts +1 -1
  44. package/DeviceUtils.d.ts +1 -1
  45. package/Dialog.d.ts +1 -1
  46. package/DomMarker.d.ts +1 -1
  47. package/DropdownSubmenu.d.ts +1 -1
  48. package/EmptyState.d.ts +1 -1
  49. package/EnhancedMapEvent.d.ts +1 -1
  50. package/ErrorState.d.ts +1 -1
  51. package/EventUtils.d.ts +1 -1
  52. package/ExpanderList.d.ts +5 -5
  53. package/ExpanderPanel.d.ts +1 -1
  54. package/Fade.d.ts +11 -2
  55. package/FilePicker.d.ts +6 -2
  56. package/ForbiddenState.d.ts +1 -1
  57. package/ImagePreloader.d.ts +1 -1
  58. package/IncidentsLayer.d.ts +1 -1
  59. package/InfoDialog.d.ts +1 -1
  60. package/Legend.d.ts +1 -1
  61. package/Line.d.ts +1 -1
  62. package/LineChart.d.ts +1 -1
  63. package/ListMenu.d.ts +6 -5
  64. package/LoadMoreButton.d.ts +1 -1
  65. package/MaintenanceState.d.ts +1 -1
  66. package/Map.d.ts +10 -7
  67. package/MapBoundingBoxButton.d.ts +1 -1
  68. package/MapCenterMarkerButton.d.ts +1 -1
  69. package/MapClusterSettings.d.ts +1 -1
  70. package/MapCustomerPoiSettingsItem.d.ts +1 -1
  71. package/MapLayerGroup.d.ts +1 -1
  72. package/MapLayerIncidentsItem.d.ts +1 -1
  73. package/MapLayerRoadRestrictionsItem.d.ts +1 -1
  74. package/MapLayerSettings.d.ts +1 -1
  75. package/MapLayerTrafficItem.d.ts +1 -1
  76. package/MapLockMarkerButton.d.ts +1 -1
  77. package/MapSettings.d.ts +1 -1
  78. package/MapSettingsItem.d.ts +1 -1
  79. package/MapSettingsPanel.d.ts +1 -1
  80. package/MapSettingsTile.d.ts +1 -1
  81. package/MapTypeSettings.d.ts +1 -1
  82. package/MapWorkshopPoiSettingsItem.d.ts +1 -1
  83. package/Marker.d.ts +1 -1
  84. package/MarkerLayer.d.ts +1 -1
  85. package/MediaDialog.d.ts +8 -4
  86. package/MenuItem.d.ts +2 -2
  87. package/Multiselect.d.ts +11 -4
  88. package/NoData.d.ts +1 -1
  89. package/NotBookedState.d.ts +1 -1
  90. package/NotFoundState.d.ts +1 -1
  91. package/Notification.d.ts +1 -1
  92. package/NotificationsContainer.d.ts +1 -1
  93. package/NumberControl.d.ts +5 -2
  94. package/NumberInput.d.ts +5 -2
  95. package/OnboardingTip.d.ts +27 -2
  96. package/OverlayTrigger.d.ts +26 -2
  97. package/Pager.d.ts +1 -1
  98. package/PieChart.d.ts +1 -1
  99. package/Polygon.d.ts +1 -1
  100. package/Polyline.d.ts +1 -1
  101. package/Popover.d.ts +8 -2
  102. package/Position.d.ts +1 -1
  103. package/PositionUtils.d.ts +1 -1
  104. package/RadialBarChart.d.ts +1 -1
  105. package/RadioButton.d.ts +1 -1
  106. package/RangeSlider.d.ts +1 -1
  107. package/ReleaseNotes.d.ts +1 -1
  108. package/ReleaseNotesDialog.d.ts +1 -1
  109. package/Resizer.d.ts +10 -2
  110. package/ResponsiveVideo.d.ts +5 -2
  111. package/Route.d.ts +1 -1
  112. package/RuleConnector.d.ts +9 -0
  113. package/RuleConnector.js +2 -0
  114. package/RuleContainer.d.ts +5 -0
  115. package/RuleContainer.js +2 -0
  116. package/RulesWrapper.d.ts +5 -0
  117. package/RulesWrapper.js +2 -0
  118. package/SaveDialog.d.ts +9 -2
  119. package/Select.d.ts +5 -5
  120. package/Sidebar.d.ts +8 -2
  121. package/SimpleButtonDropdown.d.ts +1 -1
  122. package/SimpleClusterLayer.d.ts +1 -1
  123. package/SimpleDialog.d.ts +9 -2
  124. package/SimpleTooltip.d.ts +26 -2
  125. package/SingleButtonDropdown.d.ts +1 -1
  126. package/SingleMapMarker.d.ts +1 -1
  127. package/Slider.d.ts +1 -1
  128. package/SortArrowDown.d.ts +1 -1
  129. package/SortArrowUp.d.ts +1 -1
  130. package/SortArrows.d.ts +1 -1
  131. package/SortDirection.d.ts +1 -1
  132. package/SortUtils.d.ts +1 -1
  133. package/Spinner.d.ts +1 -1
  134. package/SplitButtonDropdown.d.ts +1 -1
  135. package/SplitDialog.d.ts +9 -2
  136. package/StatsWidget.d.ts +1 -1
  137. package/StatsWidgetNumber.d.ts +1 -1
  138. package/StatsWidgetSpacer.d.ts +1 -1
  139. package/StatsWidgets.d.ts +1 -1
  140. package/StatusBar.d.ts +1 -1
  141. package/SteppedProgressBar.d.ts +6 -2
  142. package/SubNavigation.d.ts +1 -1
  143. package/Switch.d.ts +5 -2
  144. package/TableCardsSorting.d.ts +1 -1
  145. package/TableSearch.d.ts +1 -1
  146. package/TableSettingsDialog.d.ts +1 -1
  147. package/TableToolbar.d.ts +1 -1
  148. package/TableViewToggles.d.ts +1 -1
  149. package/Tag.d.ts +1 -1
  150. package/TagList.d.ts +1 -1
  151. package/TagManager.d.ts +5 -5
  152. package/Teaser.d.ts +1 -1
  153. package/TeaserContainer.d.ts +1 -1
  154. package/TextMarker.d.ts +1 -1
  155. package/TimePicker.d.ts +1 -1
  156. package/ToggleButton.d.ts +1 -1
  157. package/Tooltip.d.ts +29 -2
  158. package/TrafficLayer.d.ts +1 -1
  159. package/Tree.d.ts +1 -1
  160. package/TreeCategory.d.ts +1 -1
  161. package/TreeOption.d.ts +1 -1
  162. package/TreeSearch.d.ts +1 -1
  163. package/TreeSummary.d.ts +1 -1
  164. package/TruckLayer.d.ts +1 -1
  165. package/TypeCounter.d.ts +1 -1
  166. package/VolkswagenApplicationHeader.d.ts +1 -1
  167. package/components/button/Button.js +6 -3
  168. package/components/datepicker/DatePicker.js +5 -2
  169. package/components/dialog/SplitDialog.js +5 -2
  170. package/components/dropdown/ButtonDropdown.js +9 -3
  171. package/components/map/components/Map.js +24 -1
  172. package/components/overlay/OverlayTrigger.js +2 -1
  173. package/components/rules/RuleConnector.js +76 -0
  174. package/components/rules/RuleContainer.js +68 -0
  175. package/components/rules/RulesWrapper.js +17 -0
  176. package/components/selects/BaseDropdownMenu.js +40 -26
  177. package/components/selects/Multiselect.js +5 -3
  178. package/components/selects/Select.js +7 -5
  179. package/framer-motion.d.ts +1 -0
  180. package/index.d.ts +7 -1
  181. package/index.js +6 -0
  182. package/lib/es/AutoSuggest.d.ts +6 -5
  183. package/lib/es/Bar.d.ts +4 -1
  184. package/lib/es/Button.d.ts +23 -1
  185. package/lib/es/Carousel.d.ts +2 -0
  186. package/lib/es/ConfirmationDialog.d.ts +8 -1
  187. package/lib/es/ContentLoader.d.ts +4 -1
  188. package/lib/es/ExpanderList.d.ts +5 -5
  189. package/lib/es/Fade.d.ts +10 -1
  190. package/lib/es/FilePicker.d.ts +5 -1
  191. package/lib/es/ListMenu.d.ts +6 -5
  192. package/lib/es/Map.d.ts +10 -7
  193. package/lib/es/MediaDialog.d.ts +8 -4
  194. package/lib/es/MenuItem.d.ts +1 -1
  195. package/lib/es/Multiselect.d.ts +11 -4
  196. package/lib/es/NumberControl.d.ts +4 -1
  197. package/lib/es/NumberInput.d.ts +4 -1
  198. package/lib/es/OnboardingTip.d.ts +26 -1
  199. package/lib/es/OverlayTrigger.d.ts +25 -1
  200. package/lib/es/Popover.d.ts +7 -1
  201. package/lib/es/Resizer.d.ts +9 -1
  202. package/lib/es/ResponsiveVideo.d.ts +4 -1
  203. package/lib/es/RuleConnector.d.ts +9 -0
  204. package/lib/es/RuleConnector.js +13 -0
  205. package/lib/es/RuleContainer.d.ts +5 -0
  206. package/lib/es/RuleContainer.js +13 -0
  207. package/lib/es/RulesWrapper.d.ts +5 -0
  208. package/lib/es/RulesWrapper.js +13 -0
  209. package/lib/es/SaveDialog.d.ts +8 -1
  210. package/lib/es/Select.d.ts +5 -5
  211. package/lib/es/Sidebar.d.ts +7 -1
  212. package/lib/es/SimpleDialog.d.ts +8 -1
  213. package/lib/es/SimpleTooltip.d.ts +25 -1
  214. package/lib/es/SplitDialog.d.ts +8 -1
  215. package/lib/es/SteppedProgressBar.d.ts +5 -1
  216. package/lib/es/Switch.d.ts +4 -1
  217. package/lib/es/TagManager.d.ts +5 -5
  218. package/lib/es/Tooltip.d.ts +28 -1
  219. package/lib/es/components/button/Button.js +6 -3
  220. package/lib/es/components/datepicker/DatePicker.js +3 -3
  221. package/lib/es/components/dialog/SplitDialog.js +5 -2
  222. package/lib/es/components/dropdown/ButtonDropdown.js +9 -3
  223. package/lib/es/components/map/components/Map.js +24 -1
  224. package/lib/es/components/overlay/OverlayTrigger.js +2 -1
  225. package/lib/es/components/rules/RuleConnector.js +84 -0
  226. package/lib/es/components/rules/RuleContainer.js +76 -0
  227. package/lib/es/components/rules/RulesWrapper.js +25 -0
  228. package/lib/es/components/selects/BaseDropdownMenu.js +40 -26
  229. package/lib/es/components/selects/Multiselect.js +5 -3
  230. package/lib/es/components/selects/Select.js +7 -5
  231. package/lib/es/framer-motion.d.ts +1 -0
  232. package/lib/es/index.d.ts +8 -2
  233. package/lib/es/index.js +24 -0
  234. package/lib/es/styles/components/Dialog.less +10 -0
  235. package/lib/es/styles/components/Dropdown.less +11 -2
  236. package/lib/es/styles/components/Select.less +5 -6
  237. package/lib/es/styles/design/box-sizing.less +8 -0
  238. package/lib/es/styles/design/fonts.less +23 -23
  239. package/lib/es/styles/design/normalize.less +0 -2
  240. package/lib/es/styles/design/responsive/flexgrid.less +4 -6
  241. package/lib/es/styles/design/responsive/sizing.less +3 -0
  242. package/lib/es/styles/design/tables.less +5 -0
  243. package/lib/es/styles/mixins/panels.less +3 -3
  244. package/lib/es/styles/print/print.less +36 -4
  245. package/lib/es/styles/rio-uikit-core.less +2 -1
  246. package/lib/es/styles/rio-uikit-print-utilities.less +1 -0
  247. package/lib/es/themes/Website/styles/rio-website.less +2 -2
  248. package/lib/es/types.ts +40 -16
  249. package/lib/es/utils/init.js +1 -1
  250. package/lib/es/version.json +1 -1
  251. package/package.json +13 -11
  252. package/styles/components/Dialog.less +10 -0
  253. package/styles/components/Dropdown.less +11 -2
  254. package/styles/components/Select.less +5 -6
  255. package/styles/design/box-sizing.less +8 -0
  256. package/styles/design/fonts.less +23 -23
  257. package/styles/design/normalize.less +0 -2
  258. package/styles/design/responsive/flexgrid.less +4 -6
  259. package/styles/design/responsive/sizing.less +3 -0
  260. package/styles/design/tables.less +5 -0
  261. package/styles/mixins/panels.less +3 -3
  262. package/styles/print/print.less +36 -4
  263. package/styles/rio-uikit-core.less +2 -1
  264. package/styles/rio-uikit-print-utilities.less +1 -0
  265. package/themes/Website/styles/rio-website.less +2 -2
  266. package/types.ts +40 -16
  267. package/useAfterMount.d.ts +1 -1
  268. package/useClickOutside.d.ts +1 -1
  269. package/useClipboard.d.ts +1 -1
  270. package/useDebugInfo.d.ts +1 -1
  271. package/useEffectOnce.d.ts +1 -1
  272. package/useElementSize.d.ts +1 -1
  273. package/useEsc.d.ts +1 -1
  274. package/useEvent.d.ts +1 -1
  275. package/useFullscreen.d.ts +1 -1
  276. package/useInterval.d.ts +1 -1
  277. package/useKey.d.ts +1 -1
  278. package/useLocalStorage.d.ts +1 -1
  279. package/useOnScreen.d.ts +1 -1
  280. package/useOnlineStatus.d.ts +1 -1
  281. package/useRenderCount.d.ts +1 -1
  282. package/useResizeObserver.d.ts +1 -1
  283. package/useSessionStorage.d.ts +1 -1
  284. package/useStateWithValidation.d.ts +1 -1
  285. package/useTimeout.d.ts +1 -1
  286. package/useWindowResize.d.ts +1 -1
  287. package/utils/init.js +1 -1
  288. package/version.json +1 -1
  289. package/.DS_Store +0 -0
  290. package/components/.DS_Store +0 -0
  291. package/components/map/.DS_Store +0 -0
  292. package/lib/.DS_Store +0 -0
  293. package/lib/es/.DS_Store +0 -0
  294. package/lib/es/components/.DS_Store +0 -0
  295. package/lib/es/styles/.DS_Store +0 -0
  296. package/lib/es/themes/.DS_Store +0 -0
  297. package/styles/.DS_Store +0 -0
  298. package/themes/.DS_Store +0 -0
  299. package/themes/Volkswagen/.DS_Store +0 -0
@@ -0,0 +1,68 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["show", "unchecked", "background", "borderColor", "hideConnector", "customConnector", "className", "children"];
4
+ import React from 'react';
5
+ import PropTypes from 'prop-types';
6
+ import classNames from 'classnames';
7
+ import { AnimatePresence, motion } from 'framer-motion';
8
+ import RuleConnector from './RuleConnector';
9
+ var RuleContainer = function RuleContainer(props) {
10
+ var show = props.show,
11
+ unchecked = props.unchecked,
12
+ background = props.background,
13
+ borderColor = props.borderColor,
14
+ hideConnector = props.hideConnector,
15
+ customConnector = props.customConnector,
16
+ className = props.className,
17
+ children = props.children,
18
+ remainingProps = _objectWithoutProperties(props, _excluded);
19
+ if (!show) {
20
+ return null;
21
+ }
22
+ var boxClassNames = classNames('RuleContainerBox', 'position-relative', 'rounded padding-20', background, unchecked && "border border-width border-style-dashed ".concat(borderColor), className);
23
+ return /*#__PURE__*/React.createElement("div", _extends({
24
+ className: "RuleContainer"
25
+ }, remainingProps), /*#__PURE__*/React.createElement("div", {
26
+ className: boxClassNames,
27
+ "data-testid": "ruleContainerBox"
28
+ }, /*#__PURE__*/React.createElement(AnimatePresence, {
29
+ exitBeforeEnter: true
30
+ }, React.Children.map(children, function (child) {
31
+ var _child$type;
32
+ // In case there are multiple children of RuleContainer, use the
33
+ // type name or the type itself as a key to animate between the two children
34
+ return /*#__PURE__*/React.createElement(motion.div, {
35
+ key: ((_child$type = child.type) === null || _child$type === void 0 ? void 0 : _child$type.name) || child.type,
36
+ initial: {
37
+ opacity: 0
38
+ },
39
+ animate: {
40
+ opacity: 1
41
+ },
42
+ exit: {
43
+ opacity: 0
44
+ }
45
+ // transition={{ delay: 1, duration: 2 }}
46
+ }, child);
47
+ }))), customConnector ? customConnector : /*#__PURE__*/React.createElement(RuleConnector, {
48
+ hidden: unchecked || hideConnector
49
+ }));
50
+ };
51
+ RuleContainer.defaultProps = {
52
+ show: true,
53
+ unchecked: false,
54
+ background: 'bg-lightest',
55
+ borderColor: '',
56
+ hideConnector: false,
57
+ className: ''
58
+ };
59
+ RuleContainer.propTypes = {
60
+ show: PropTypes.bool,
61
+ unchecked: PropTypes.bool,
62
+ background: PropTypes.string,
63
+ borderColor: PropTypes.string,
64
+ hideConnector: PropTypes.bool,
65
+ customConnector: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
66
+ className: PropTypes.string
67
+ };
68
+ export default RuleContainer;
@@ -0,0 +1,17 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["children"];
4
+ import React from 'react';
5
+ import { AnimatePresence, motion } from 'framer-motion';
6
+ var RuleWrapper = function RuleWrapper(_ref) {
7
+ var children = _ref.children,
8
+ remainigProps = _objectWithoutProperties(_ref, _excluded);
9
+ return /*#__PURE__*/React.createElement(motion.div, _extends({
10
+ initial: false,
11
+ layout: true
12
+ }, remainigProps), /*#__PURE__*/React.createElement(AnimatePresence, null, /*#__PURE__*/React.createElement(motion.div, {
13
+ layout: "position"
14
+ }, children)));
15
+ };
16
+ RuleWrapper.defaultProps = {};
17
+ export default RuleWrapper;
@@ -101,33 +101,43 @@ export var BaseDropdownMenu = /*#__PURE__*/function (_Component) {
101
101
  value: function handleKeydown(event) {
102
102
  switch (event.keyCode) {
103
103
  case 27:
104
- // close on esc key or on tab
105
- this.closeMenu();
106
- break;
104
+ {
105
+ // close on esc key or on tab
106
+ this.closeMenu();
107
+ break;
108
+ }
107
109
  case 9:
108
- // close on tab
109
- this.closeMenu();
110
- break;
110
+ {
111
+ // close on tab
112
+ this.closeMenu();
113
+ break;
114
+ }
111
115
  case 13:
112
- // select on enter
113
- this.selectOptionOnEnter(event);
114
- break;
116
+ {
117
+ // select on enter
118
+ this.selectOptionOnEnter(event);
119
+ break;
120
+ }
115
121
  case 38:
116
- // prevent scrolling the page when dropdown menu is open
117
- event.preventDefault();
122
+ {
123
+ // prevent scrolling the page when dropdown menu is open
124
+ event.preventDefault();
118
125
 
119
- // select above on arrow up key
120
- this.focusOption(UP);
121
- scrollItemIntoView(UP, this.getDropdownDOMNode(), this.getFocusedOptionNode());
122
- break;
126
+ // select above on arrow up key
127
+ this.focusOption(UP);
128
+ scrollItemIntoView(UP, this.getDropdownDOMNode(), this.getFocusedOptionNode());
129
+ break;
130
+ }
123
131
  case 40:
124
- // prevent scrolling the page when dropdown menu is open
125
- event.preventDefault();
132
+ {
133
+ // prevent scrolling the page when dropdown menu is open
134
+ event.preventDefault();
126
135
 
127
- // select below on arrow down key
128
- this.focusOption(DOWN);
129
- scrollItemIntoView(DOWN, this.getDropdownDOMNode(), this.getFocusedOptionNode());
130
- break;
136
+ // select below on arrow down key
137
+ this.focusOption(DOWN);
138
+ scrollItemIntoView(DOWN, this.getDropdownDOMNode(), this.getFocusedOptionNode());
139
+ break;
140
+ }
131
141
  default:
132
142
  break;
133
143
  }
@@ -139,11 +149,15 @@ export var BaseDropdownMenu = /*#__PURE__*/function (_Component) {
139
149
  var focusedItemIndex = this.state.focusedItemIndex;
140
150
  switch (direction) {
141
151
  case UP:
142
- nextFocusedItem = focusedItemIndex === 0 ? focusedItemIndex : focusedItemIndex - 1;
143
- break;
152
+ {
153
+ nextFocusedItem = focusedItemIndex === 0 ? focusedItemIndex : focusedItemIndex - 1;
154
+ break;
155
+ }
144
156
  case DOWN:
145
- nextFocusedItem = focusedItemIndex === this.props.options.length - 1 ? focusedItemIndex : focusedItemIndex + 1;
146
- break;
157
+ {
158
+ nextFocusedItem = focusedItemIndex === this.props.options.length - 1 ? focusedItemIndex : focusedItemIndex + 1;
159
+ break;
160
+ }
147
161
  default:
148
162
  break;
149
163
  }
@@ -332,7 +346,7 @@ BaseDropdownMenu.defaultProps = {
332
346
  onSelect: function onSelect() {},
333
347
  onClose: function onClose() {},
334
348
  options: [],
335
- autoDropDirection: true,
349
+ autoDropDirection: false,
336
350
  pullRight: false,
337
351
  useActiveClass: false,
338
352
  keyboardUsed: false,
@@ -12,7 +12,11 @@ import ReactDOM from 'react-dom';
12
12
  import onClickOutside from 'react-onclickoutside';
13
13
  import classname from 'classnames';
14
14
  import isEqual from 'lodash/fp/isEqual';
15
+ import logDeprecatedWarnings from '../../utils/logDeprecatedWarnings';
15
16
  import { BaseDropdownMenu } from './BaseDropdownMenu';
17
+ var warningProps = [{
18
+ prop: 'autoDropDirection'
19
+ }];
16
20
  export var Multiselect = /*#__PURE__*/function (_Component) {
17
21
  _inherits(Multiselect, _Component);
18
22
  var _super = _createSuper(Multiselect);
@@ -207,6 +211,7 @@ export var Multiselect = /*#__PURE__*/function (_Component) {
207
211
  placeholder = _this$props4.placeholder,
208
212
  counterMessage = _this$props4.counterMessage,
209
213
  renderCounterMessage = _this$props4.renderCounterMessage;
214
+ logDeprecatedWarnings(warningProps, this.props, 'Multiselect');
210
215
  var classnames = classname('dropdown-toggle', 'form-control', 'text-left', bsSize === 'large' && 'input-lg',
211
216
  // TODO: deprecte since it's not consistent
212
217
  bsSize === 'small' && 'input-sm',
@@ -240,7 +245,6 @@ export var Multiselect = /*#__PURE__*/function (_Component) {
240
245
  var _this6 = this;
241
246
  var _this$props5 = this.props,
242
247
  pullRight = _this$props5.pullRight,
243
- autoDropDirection = _this$props5.autoDropDirection,
244
248
  noItemMessage = _this$props5.noItemMessage;
245
249
  var options = this.state.filteredOptions.map(function (option) {
246
250
  option.selected = _this6.state.selectedItems.indexOf(option.id) !== -1;
@@ -255,7 +259,6 @@ export var Multiselect = /*#__PURE__*/function (_Component) {
255
259
  onSelect: this.onOptionChange,
256
260
  onClose: this.closeMenu,
257
261
  noItemMessage: noItemMessage,
258
- autoDropDirection: autoDropDirection,
259
262
  pullRight: pullRight,
260
263
  useActiveClass: true
261
264
  });
@@ -436,7 +439,6 @@ Multiselect.defaultProps = {
436
439
  options: [],
437
440
  selectedItems: [],
438
441
  disabled: false,
439
- autoDropDirection: true,
440
442
  pullRight: false,
441
443
  hasError: false,
442
444
  useFilter: false,
@@ -13,12 +13,16 @@ import onClickOutside from 'react-onclickoutside';
13
13
  import classNames from 'classnames';
14
14
  import isEqual from 'lodash/fp/isEqual';
15
15
  import logPropError from '../../utils/logPropError';
16
+ import logDeprecatedWarnings from '../../utils/logDeprecatedWarnings';
16
17
  import isNil from 'lodash/fp/isNil';
17
18
  import { BaseDropdownMenu } from './BaseDropdownMenu';
18
19
  var errorProps = [{
19
20
  prop: 'toggleButtonLabel',
20
21
  replacement: 'selectedOptionText'
21
22
  }];
23
+ var warningProps = [{
24
+ prop: 'autoDropDirection'
25
+ }];
22
26
  var DEFAULT_FOCUSED_ITEM_INDEX = -1;
23
27
  export var Select = /*#__PURE__*/function (_Component) {
24
28
  _inherits(Select, _Component);
@@ -104,8 +108,8 @@ export var Select = /*#__PURE__*/function (_Component) {
104
108
  var _this2 = this;
105
109
  var _this$props = this.props,
106
110
  className = _this$props.className,
107
- hasError = _this$props.hasError;
108
- var dropup = this.isAutoDropActive() ? this.state.dropup : this.props.dropup;
111
+ hasError = _this$props.hasError,
112
+ dropup = _this$props.dropup;
109
113
  var classes = classNames('select', dropup && 'dropup', 'dropdown', hasError && 'has-error', this.state.isOpen && 'open', className && className);
110
114
  return /*#__PURE__*/React.createElement("div", {
111
115
  className: classes,
@@ -185,6 +189,7 @@ export var Select = /*#__PURE__*/function (_Component) {
185
189
  id = _this$props3$id === void 0 ? name : _this$props3$id,
186
190
  selectedOptionText = _this$props3.selectedOptionText;
187
191
  logPropError(errorProps, this.props, 'Select');
192
+ logDeprecatedWarnings(warningProps, this.props, 'Select');
188
193
  var _this$state = this.state,
189
194
  isOpen = _this$state.isOpen,
190
195
  selectedItem = _this$state.selectedItem;
@@ -223,7 +228,6 @@ export var Select = /*#__PURE__*/function (_Component) {
223
228
 
224
229
  var _this$props4 = this.props,
225
230
  pullRight = _this$props4.pullRight,
226
- autoDropDirection = _this$props4.autoDropDirection,
227
231
  noItemMessage = _this$props4.noItemMessage,
228
232
  dropdownClassName = _this$props4.dropdownClassName;
229
233
 
@@ -250,7 +254,6 @@ export var Select = /*#__PURE__*/function (_Component) {
250
254
  onSelect: this.onOptionChange,
251
255
  onClose: this.closeMenu,
252
256
  noItemMessage: noItemMessage,
253
- autoDropDirection: autoDropDirection,
254
257
  pullRight: pullRight,
255
258
  dropdownClassName: dropdownClassName,
256
259
  requestItemDOMValues: this.state.requestItemDOMValues
@@ -389,7 +392,6 @@ Select.defaultProps = {
389
392
  onChange: function onChange() {},
390
393
  options: [],
391
394
  disabled: false,
392
- autoDropDirection: true,
393
395
  pullRight: false,
394
396
  dropup: false,
395
397
  hasError: false,
@@ -0,0 +1 @@
1
+ export * from 'framer-motion';
package/index.d.ts CHANGED
@@ -74,6 +74,9 @@ declare module '@rio-cloud/rio-uikit' {
74
74
  ReleaseNotesDialogProps,
75
75
  ResizerProps,
76
76
  ResponsiveVideoProps,
77
+ RulesWrapperProps,
78
+ RuleContainerProps,
79
+ RuleConnectorProps,
77
80
  SaveDialogProps,
78
81
  SelectProps,
79
82
  SidebarProps,
@@ -201,6 +204,9 @@ declare module '@rio-cloud/rio-uikit' {
201
204
  export class ReleaseNotesDialog extends React.Component<ReleaseNotesDialogProps> {}
202
205
  export class Resizer extends React.Component<ResizerProps> {}
203
206
  export class ResponsiveVideo extends React.Component<ResponsiveVideoProps> {}
207
+ export class RulesWrapper extends React.Component<RulesWrapperProps> {}
208
+ export class RuleContainer extends React.Component<RuleContainerProps> {}
209
+ export class RuleConnector extends React.Component<RuleConnectorProps> {}
204
210
  export class SaveDialog extends React.Component<SaveDialogProps> {}
205
211
  export class Select extends React.Component<SelectProps> {}
206
212
  export class Sidebar extends React.Component<SidebarProps> {}
@@ -261,5 +267,5 @@ declare module '@rio-cloud/rio-uikit' {
261
267
  ResizerPosition,
262
268
  SortDirection,
263
269
  TableViewTogglesValues,
264
- }
270
+ };
265
271
  }
package/index.js CHANGED
@@ -205,6 +205,12 @@ import { default as _BrowserWarning } from './components/browserWarning/BrowserW
205
205
  export { _BrowserWarning as BrowserWarning };
206
206
  import { default as _Pager } from './components/pager/Pager';
207
207
  export { _Pager as Pager };
208
+ import { default as _RuleConnector } from './components/rules/RuleConnector';
209
+ export { _RuleConnector as RuleConnector };
210
+ import { default as _RuleContainer } from './components/rules/RuleContainer';
211
+ export { _RuleContainer as RuleContainer };
212
+ import { default as _RulesWrapper } from './components/rules/RulesWrapper';
213
+ export { _RulesWrapper as RulesWrapper };
208
214
  import { toggleSupportMarker as _toggleSupportMarker, enableSupportMarker as _enableSupportMarker, SUPPORT_MARKER_CLASS as _SUPPORT_MARKER_CLASS } from './components/supportMarker/toggleSupportMarker';
209
215
  export { _toggleSupportMarker as toggleSupportMarker, _enableSupportMarker as enableSupportMarker, _SUPPORT_MARKER_CLASS as SUPPORT_MARKER_CLASS };
210
216
  import { default as _Carousel } from './components/carousel/Carousel';
@@ -1,5 +1,6 @@
1
- declare module '@rio-cloud/rio-uikit/lib/es/AutoSuggest' {
2
- import React from 'react';
3
- import { AutoSuggestProps } from './types';
4
- export default class AutoSuggest extends React.Component<AutoSuggestProps> {}
5
- }
1
+ import React from 'react';
2
+ import { AutoSuggestProps } from './types';
3
+
4
+ export { AutoSuggestInputProps } from './types';
5
+ export { AutoSuggestSuggestion } from './types';
6
+ export default class AutoSuggest extends React.Component<AutoSuggestProps> {}
package/lib/es/Bar.d.ts CHANGED
@@ -1,5 +1,8 @@
1
1
  declare module '@rio-cloud/rio-uikit/lib/es/Bar' {
2
2
  import React from 'react';
3
3
  import { Bar as BarProps } from './types';
4
- export default class Bar extends React.Component<BarProps> {}
4
+ export default class Bar extends React.Component<BarProps> {
5
+ static HORIZONTAL = 'horizontal';
6
+ static VERTICAL = 'vertical';
7
+ }
5
8
  }
@@ -1,5 +1,27 @@
1
1
  declare module '@rio-cloud/rio-uikit/lib/es/Button' {
2
2
  import React from 'react';
3
3
  import { ButtonProps } from './types';
4
- export default class Button extends React.Component<ButtonProps> {}
4
+ export default class Button extends React.Component<ButtonProps> {
5
+ // Button styles
6
+ static DEFAULT = 'default';
7
+ static PRIMARY = 'primary';
8
+ static SECONDARY = 'secondary';
9
+ static INFO = 'info';
10
+ static WARNING = 'warning';
11
+ static DANGER = 'danger';
12
+ static SUCCESS = 'success';
13
+ static MUTED = 'muted';
14
+
15
+ // Button Type
16
+ static VARIANT_LINK = 'link';
17
+ static VARIANT_LINK_INLINE = 'link-inline';
18
+ static VARIANT_OUTLINE = 'outline';
19
+ static VARIANT_ACTION = 'action';
20
+
21
+ // Button Size
22
+ static XS = 'xs';
23
+ static SM = 'sm';
24
+ static MD = 'md';
25
+ static LG = 'lg';
26
+ }
5
27
  }
@@ -5,5 +5,7 @@ declare module '@rio-cloud/rio-uikit/lib/es/Carousel' {
5
5
  export default class Carousel extends React.Component<CarouselProps> {
6
6
  static Item: React.ComponentClass<CarouselItemProps>;
7
7
  static Caption: React.ComponentClass<any>;
8
+ static PREV = 'prev';
9
+ static NEXT = 'next';
8
10
  }
9
11
  }
@@ -1,5 +1,12 @@
1
1
  declare module '@rio-cloud/rio-uikit/lib/es/ConfirmationDialog' {
2
2
  import React from 'react';
3
3
  import { ConfirmationDialogProps } from './types';
4
- export default class ConfirmationDialog extends React.Component<ConfirmationDialogProps> {}
4
+ export default class ConfirmationDialog extends React.Component<ConfirmationDialogProps> {
5
+ static SIZE_SM = 'sm';
6
+ static SIZE_MD = 'md';
7
+ static SIZE_LG = 'lg';
8
+ static SIZE_XL = 'xl';
9
+ static SIZE_FULL = 'full';
10
+ static SIZE_FULL_SCREEN = 'fullscreen';
11
+ }
5
12
  }
@@ -1,5 +1,8 @@
1
1
  declare module '@rio-cloud/rio-uikit/lib/es/ContentLoader' {
2
2
  import React from 'react';
3
3
  import { ContentLoaderProps } from './types';
4
- export default class ContentLoader extends React.Component<ContentLoaderProps> {}
4
+ export default class ContentLoader extends React.Component<ContentLoaderProps> {
5
+ static RECT = 'rect';
6
+ static CIRCLE = 'circle';
7
+ }
5
8
  }
@@ -1,5 +1,5 @@
1
- declare module '@rio-cloud/rio-uikit/lib/es/ExpanderList' {
2
- import React from 'react';
3
- import { ExpanderListProps } from './types';
4
- export default class ExpanderList extends React.Component<ExpanderListProps> {}
5
- }
1
+ import React from 'react';
2
+ import { ExpanderListProps } from './types';
3
+
4
+ export { ExpanderListItem } from './types';
5
+ export default class ExpanderList extends React.Component<ExpanderListProps> {}
package/lib/es/Fade.d.ts CHANGED
@@ -1,5 +1,14 @@
1
1
  declare module '@rio-cloud/rio-uikit/lib/es/Fade' {
2
2
  import React from 'react';
3
3
  import { FadeProps } from './types';
4
- export default class Fade extends React.Component<FadeProps> {}
4
+ export default class Fade extends React.Component<FadeProps> {
5
+ static FADE = 'fade';
6
+ static FROM_LEFT = 'fromLeft';
7
+ static FROM_RIGHT = 'fromRight';
8
+ static FROM_TOP = 'fromTop';
9
+ static FROM_BOTTOM = 'fromBottom';
10
+ static TABS = 'tabs';
11
+ static PAGE = 'page';
12
+ static PAGE_BACK = 'pageBack';
13
+ }
5
14
  }
@@ -1,5 +1,9 @@
1
1
  declare module '@rio-cloud/rio-uikit/lib/es/FilePicker' {
2
2
  import React from 'react';
3
3
  import { FilePickerProps } from './types';
4
- export default class FilePicker extends React.Component<FilePickerProps> {}
4
+ export default class FilePicker extends React.Component<FilePickerProps> {
5
+ static DISPLAY_MODE_BUTTON = 'button';
6
+ static DISPLAY_MODE_DROPZONE = 'dropzone';
7
+ static DISPLAY_MODE_FULL = 'full';
8
+ }
5
9
  }
@@ -1,5 +1,6 @@
1
- declare module '@rio-cloud/rio-uikit/lib/es/ListMenu' {
2
- import React from 'react';
3
- import { ListMenuProps } from './types';
4
- export default class ListMenu extends React.Component<ListMenuProps> {}
5
- }
1
+ import React from 'react';
2
+ import { ListMenuProps } from './types';
3
+
4
+ export { ListMenuItem } from './types';
5
+ export { NavItem } from './types';
6
+ export default class ListMenu extends React.Component<ListMenuProps> {}
package/lib/es/Map.d.ts CHANGED
@@ -1,8 +1,11 @@
1
- declare module '@rio-cloud/rio-uikit/lib/es/Map' {
2
- import React from 'react';
3
- import { MapProps } from './types';
4
- export default class Map extends React.Component<MapProps> {
5
- static TYPE_TERRAIN: string;
6
- static TYPE_DEFAULT: string;
7
- }
1
+ import React from 'react';
2
+ import { MapProps } from './types';
3
+
4
+ export { BoundingBox } from './types';
5
+
6
+ export default class Map extends React.Component<MapProps> {
7
+ static TYPE_DEFAULT = 'DEFAULT';
8
+ static TYPE_FLEET_STYLE = 'FLEET_STYLE';
9
+ static TYPE_SATELLITE = 'SATELLITE';
10
+ static TYPE_TERRAIN = 'TERRAIN';
8
11
  }
@@ -1,5 +1,9 @@
1
- declare module '@rio-cloud/rio-uikit/lib/es/MediaDialog' {
2
- import React from 'react';
3
- import { MediaDialogProps } from './types';
4
- export default class MediaDialog extends React.Component<MediaDialogProps> {}
1
+ import React from 'react';
2
+ import { MediaDialogProps } from './types';
3
+
4
+ export { MediaDialogMedia } from './types';
5
+
6
+ export default class MediaDialog extends React.Component<MediaDialogProps> {
7
+ static MEDIA_TYPE_IMAGE = 'image';
8
+ static MEDIA_TYPE_VIDEO = 'video';
5
9
  }
@@ -1,5 +1,5 @@
1
1
  declare module '@rio-cloud/rio-uikit/lib/es/MenuItem' {
2
2
  import React from 'react';
3
- import { MenuItemProps } from './types';
3
+ import { MenuItem as MenuItemProps } from './types';
4
4
  export default class MenuItem extends React.Component<MenuItemProps> {}
5
5
  }
@@ -1,5 +1,12 @@
1
- declare module '@rio-cloud/rio-uikit/lib/es/Multiselect' {
2
- import React from 'react';
3
- import { MultiselectProps } from './types';
4
- export default class Multiselect extends React.Component<MultiselectProps> {}
1
+ import React from 'react';
2
+ import { MultiselectProps } from './types';
3
+
4
+ export { MultiselectOption } from './types';
5
+ export { MultiselectCounterMessage } from './types';
6
+
7
+ export default class Multiselect extends React.Component<MultiselectProps> {
8
+ static SIZE_SM = 'sm';
9
+ static SIZE_LG = 'lg';
10
+ static SIZE_SMALL = 'small';
11
+ static SIZE_LARGE = 'large';
5
12
  }
@@ -1,5 +1,8 @@
1
1
  declare module '@rio-cloud/rio-uikit/lib/es/NumberControl' {
2
2
  import React from 'react';
3
3
  import { NumberControlProps } from './types';
4
- export default class NumberControl extends React.Component<NumberControlProps> {}
4
+ export default class NumberControl extends React.Component<NumberControlProps> {
5
+ static SIZE_SM = 'sm';
6
+ static SIZE_LG = 'lg';
7
+ }
5
8
  }
@@ -1,5 +1,8 @@
1
1
  declare module '@rio-cloud/rio-uikit/lib/es/NumberInput' {
2
2
  import React from 'react';
3
3
  import { NumberInputProps } from './types';
4
- export default class NumberInput extends React.Component<NumberInputProps> {}
4
+ export default class NumberInput extends React.Component<NumberInputProps> {
5
+ static SIZE_SM = 'sm';
6
+ static SIZE_LG = 'lg';
7
+ }
5
8
  }
@@ -1,5 +1,30 @@
1
1
  declare module '@rio-cloud/rio-uikit/lib/es/OnboardingTip' {
2
2
  import React from 'react';
3
3
  import { OnboardingTipProps } from './types';
4
- export default class OnboardingTip extends React.Component<OnboardingTipProps> {}
4
+
5
+ export default class OnboardingTip extends React.Component<OnboardingTipProps> {
6
+ static AUTO_START = 'auto-start';
7
+ static AUTO = 'auto';
8
+ static AUTO_END = 'auto-end';
9
+
10
+ static TOP_START = 'top-start';
11
+ static TOP = 'top';
12
+ static TOP_END = 'top-end';
13
+
14
+ static BOTTOM_START = 'bottom-start';
15
+ static BOTTOM = 'bottom';
16
+ static BOTTOM_END = 'bottom-end';
17
+
18
+ static RIGHT_START = 'right-start';
19
+ static RIGHT = 'right';
20
+ static RIGHT_END = 'right-end';
21
+
22
+ static LEFT_START = 'left-start';
23
+ static LEFT = 'left';
24
+ static LEFT_END = 'left-end';
25
+
26
+ static TEXT_ALIGNMENT_LEFT = 'left';
27
+ static TEXT_ALIGNMENT_CENTER = 'center';
28
+ static TEXT_ALIGNMENT_RIGHT = 'right';
29
+ }
5
30
  }
@@ -1,5 +1,29 @@
1
1
  declare module '@rio-cloud/rio-uikit/lib/es/OverlayTrigger' {
2
2
  import React from 'react';
3
3
  import { OverlayTriggerProps } from './types';
4
- export default class OverlayTrigger extends React.Component<OverlayTriggerProps> {}
4
+ export default class OverlayTrigger extends React.Component<OverlayTriggerProps> {
5
+ static TRIGGER_CLICK = 'click';
6
+ static TRIGGER_HOVER = 'hover';
7
+ static TRIGGER_FOCUS = 'focus';
8
+
9
+ static AUTO_START = 'auto-start';
10
+ static AUTO = 'auto';
11
+ static AUTO_END = 'auto-end';
12
+
13
+ static TOP_START = 'top-start';
14
+ static TOP = 'top';
15
+ static TOP_END = 'top-end';
16
+
17
+ static BOTTOM_START = 'bottom-start';
18
+ static BOTTOM = 'bottom';
19
+ static BOTTOM_END = 'bottom-end';
20
+
21
+ static RIGHT_START = 'right-start';
22
+ static RIGHT = 'right';
23
+ static RIGHT_END = 'right-end';
24
+
25
+ static LEFT_START = 'left-start';
26
+ static LEFT = 'left';
27
+ static LEFT_END = 'left-end';
28
+ }
5
29
  }
@@ -1,5 +1,11 @@
1
1
  declare module '@rio-cloud/rio-uikit/lib/es/Popover' {
2
2
  import React from 'react';
3
3
  import { PopoverProps } from './types';
4
- export default class Popover extends React.Component<PopoverProps> {}
4
+ export default class Popover extends React.Component<PopoverProps> {
5
+ static AUTO = 'auto';
6
+ static TOP = 'top';
7
+ static BOTTOM = 'bottom';
8
+ static RIGHT = 'right';
9
+ static LEFT = 'left';
10
+ }
5
11
  }
@@ -1,5 +1,13 @@
1
1
  declare module '@rio-cloud/rio-uikit/lib/es/Resizer' {
2
2
  import React from 'react';
3
3
  import { ResizerProps } from './types';
4
- export default class Resizer extends React.Component<ResizerProps> {}
4
+ export default class Resizer extends React.Component<ResizerProps> {
5
+ static HORIZONTAL = 'x';
6
+ static VERTICAL = 'y';
7
+
8
+ static LEFT = 'left';
9
+ static RIGHT = 'right';
10
+ static TOP = 'top';
11
+ static BOTTOM = 'bottom';
12
+ }
5
13
  }