@rio-cloud/rio-uikit 0.16.1-beta.24 → 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 (95) hide show
  1. package/AutoSuggest.d.ts +6 -5
  2. package/Bar.d.ts +4 -1
  3. package/Carousel.d.ts +2 -0
  4. package/ConfirmationDialog.d.ts +8 -1
  5. package/ContentLoader.d.ts +4 -1
  6. package/ExpanderList.d.ts +5 -5
  7. package/Fade.d.ts +10 -1
  8. package/FilePicker.d.ts +5 -1
  9. package/ListMenu.d.ts +6 -5
  10. package/Map.d.ts +10 -7
  11. package/MediaDialog.d.ts +8 -4
  12. package/MenuItem.d.ts +1 -1
  13. package/Multiselect.d.ts +11 -4
  14. package/NumberControl.d.ts +4 -1
  15. package/NumberInput.d.ts +4 -1
  16. package/OnboardingTip.d.ts +26 -1
  17. package/OverlayTrigger.d.ts +25 -1
  18. package/Popover.d.ts +7 -1
  19. package/Resizer.d.ts +9 -1
  20. package/ResponsiveVideo.d.ts +4 -1
  21. package/RuleConnector.d.ts +5 -1
  22. package/SaveDialog.d.ts +8 -1
  23. package/Select.d.ts +5 -5
  24. package/Sidebar.d.ts +7 -1
  25. package/SimpleDialog.d.ts +8 -1
  26. package/SimpleTooltip.d.ts +25 -1
  27. package/SplitDialog.d.ts +8 -1
  28. package/SteppedProgressBar.d.ts +5 -1
  29. package/Switch.d.ts +4 -1
  30. package/TagManager.d.ts +5 -5
  31. package/Tooltip.d.ts +28 -1
  32. package/components/dropdown/ButtonDropdown.js +9 -3
  33. package/components/rules/RuleConnector.js +4 -1
  34. package/components/selects/BaseDropdownMenu.js +40 -26
  35. package/components/selects/Multiselect.js +5 -3
  36. package/components/selects/Select.js +7 -5
  37. package/framer-motion.d.ts +1 -0
  38. package/lib/es/AutoSuggest.d.ts +6 -5
  39. package/lib/es/Bar.d.ts +4 -1
  40. package/lib/es/Carousel.d.ts +2 -0
  41. package/lib/es/ConfirmationDialog.d.ts +8 -1
  42. package/lib/es/ContentLoader.d.ts +4 -1
  43. package/lib/es/ExpanderList.d.ts +5 -5
  44. package/lib/es/Fade.d.ts +10 -1
  45. package/lib/es/FilePicker.d.ts +5 -1
  46. package/lib/es/ListMenu.d.ts +6 -5
  47. package/lib/es/Map.d.ts +10 -7
  48. package/lib/es/MediaDialog.d.ts +8 -4
  49. package/lib/es/MenuItem.d.ts +1 -1
  50. package/lib/es/Multiselect.d.ts +11 -4
  51. package/lib/es/NumberControl.d.ts +4 -1
  52. package/lib/es/NumberInput.d.ts +4 -1
  53. package/lib/es/OnboardingTip.d.ts +26 -1
  54. package/lib/es/OverlayTrigger.d.ts +25 -1
  55. package/lib/es/Popover.d.ts +7 -1
  56. package/lib/es/Resizer.d.ts +9 -1
  57. package/lib/es/ResponsiveVideo.d.ts +4 -1
  58. package/lib/es/RuleConnector.d.ts +5 -1
  59. package/lib/es/SaveDialog.d.ts +8 -1
  60. package/lib/es/Select.d.ts +5 -5
  61. package/lib/es/Sidebar.d.ts +7 -1
  62. package/lib/es/SimpleDialog.d.ts +8 -1
  63. package/lib/es/SimpleTooltip.d.ts +25 -1
  64. package/lib/es/SplitDialog.d.ts +8 -1
  65. package/lib/es/SteppedProgressBar.d.ts +5 -1
  66. package/lib/es/Switch.d.ts +4 -1
  67. package/lib/es/TagManager.d.ts +5 -5
  68. package/lib/es/Tooltip.d.ts +28 -1
  69. package/lib/es/components/dropdown/ButtonDropdown.js +9 -3
  70. package/lib/es/components/rules/RuleConnector.js +4 -1
  71. package/lib/es/components/selects/BaseDropdownMenu.js +40 -26
  72. package/lib/es/components/selects/Multiselect.js +5 -3
  73. package/lib/es/components/selects/Select.js +7 -5
  74. package/lib/es/framer-motion.d.ts +1 -0
  75. package/lib/es/styles/components/Dropdown.less +11 -2
  76. package/lib/es/styles/components/Select.less +5 -6
  77. package/lib/es/styles/design/fonts.less +23 -23
  78. package/lib/es/styles/design/normalize.less +0 -2
  79. package/lib/es/styles/design/responsive/flexgrid.less +4 -6
  80. package/lib/es/styles/design/responsive/sizing.less +3 -0
  81. package/lib/es/types.ts +16 -16
  82. package/lib/es/version.json +1 -1
  83. package/package.json +3 -2
  84. package/styles/components/Dropdown.less +11 -2
  85. package/styles/components/Select.less +5 -6
  86. package/styles/design/fonts.less +23 -23
  87. package/styles/design/normalize.less +0 -2
  88. package/styles/design/responsive/flexgrid.less +4 -6
  89. package/styles/design/responsive/sizing.less +3 -0
  90. package/types.ts +16 -16
  91. package/version.json +1 -1
  92. package/BoxConnector.js +0 -2
  93. package/components/boxConnector/BoxConnector.js +0 -40
  94. package/lib/es/BoxConnector.js +0 -13
  95. package/lib/es/components/boxConnector/BoxConnector.js +0 -48
@@ -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';
@@ -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
  }
@@ -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
  }
@@ -1,5 +1,8 @@
1
1
  declare module '@rio-cloud/rio-uikit/lib/es/ResponsiveVideo' {
2
2
  import React from 'react';
3
3
  import { ResponsiveVideoProps } from './types';
4
- export default class ResponsiveVideo extends React.Component<ResponsiveVideoProps> {}
4
+ export default class ResponsiveVideo extends React.Component<ResponsiveVideoProps> {
5
+ static ASPECT_RATIO_4_BY_3 = '4by3';
6
+ static ASPECT_RATIO_16_BY_9 = '16by9';
7
+ }
5
8
  }
@@ -1,5 +1,9 @@
1
1
  declare module '@rio-cloud/rio-uikit/lib/es/RuleConnector' {
2
2
  import React from 'react';
3
3
  import { RuleConnectorProps } from './types';
4
- export default class RuleConnector extends React.Component<RuleConnectorProps> {}
4
+ export default class RuleConnector extends React.Component<RuleConnectorProps> {
5
+ static START = 'start';
6
+ static CENTER = 'center';
7
+ static END = 'end';
8
+ }
5
9
  }
@@ -1,5 +1,12 @@
1
1
  declare module '@rio-cloud/rio-uikit/lib/es/SaveDialog' {
2
2
  import React from 'react';
3
3
  import { SaveDialogProps } from './types';
4
- export default class SaveDialog extends React.Component<SaveDialogProps> {}
4
+ export default class SaveDialog extends React.Component<SaveDialogProps> {
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,5 @@
1
- declare module '@rio-cloud/rio-uikit/lib/es/Select' {
2
- import React from 'react';
3
- import { SelectProps } from './types';
4
- export default class Select extends React.Component<SelectProps> {}
5
- }
1
+ import React from 'react';
2
+ import { SelectProps } from './types';
3
+
4
+ export { SelectOption } from './types';
5
+ export default class Select extends React.Component<SelectProps> {}
@@ -1,5 +1,11 @@
1
1
  declare module '@rio-cloud/rio-uikit/lib/es/Sidebar' {
2
2
  import React from 'react';
3
3
  import { SidebarProps } from './types';
4
- export default class Sidebar extends React.Component<SidebarProps> {}
4
+ export default class Sidebar extends React.Component<SidebarProps> {
5
+ static LEFT = 'left';
6
+ static RIGHT = 'right';
7
+
8
+ static MODE_FLY = 'fly';
9
+ static MODE_FLUID = 'fluid';
10
+ }
5
11
  }
@@ -1,5 +1,12 @@
1
1
  declare module '@rio-cloud/rio-uikit/lib/es/SimpleDialog' {
2
2
  import React from 'react';
3
3
  import { SimpleDialogProps } from './types';
4
- export default class SimpleDialog extends React.Component<SimpleDialogProps> {}
4
+ export default class SimpleDialog extends React.Component<SimpleDialogProps> {
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,29 @@
1
1
  declare module '@rio-cloud/rio-uikit/lib/es/SimpleTooltip' {
2
2
  import React from 'react';
3
3
  import { SimpleTooltipProps } from './types';
4
- export default class SimpleTooltip extends React.Component<SimpleTooltipProps> {}
4
+ export default class SimpleTooltip extends React.Component<SimpleTooltipProps> {
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,12 @@
1
1
  declare module '@rio-cloud/rio-uikit/lib/es/SplitDialog' {
2
2
  import React from 'react';
3
3
  import { SplitDialogProps } from './types';
4
- export default class SplitDialog extends React.Component<SplitDialogProps> {}
4
+ export default class SplitDialog extends React.Component<SplitDialogProps> {
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,9 @@
1
1
  declare module '@rio-cloud/rio-uikit/lib/es/SteppedProgressBar' {
2
2
  import React from 'react';
3
3
  import { SteppedProgressBarProps } from './types';
4
- export default class SteppedProgressBar extends React.Component<SteppedProgressBarProps> {}
4
+ export default class SteppedProgressBar extends React.Component<SteppedProgressBarProps> {
5
+ static VARIANT_CIRCLE = 'circle';
6
+ static VARIANT_RECTANGLE = 'rectangle';
7
+ static VARIANT_ROADSIGN = 'roadsign';
8
+ }
5
9
  }
@@ -1,5 +1,8 @@
1
1
  declare module '@rio-cloud/rio-uikit/lib/es/Switch' {
2
2
  import React from 'react';
3
3
  import { SwitchProps } from './types';
4
- export default class Switch extends React.Component<SwitchProps> {}
4
+ export default class Switch extends React.Component<SwitchProps> {
5
+ static LABEL_POSITION_LEFT = 'left';
6
+ static LABEL_POSITION_RIGHT = 'right';
7
+ }
5
8
  }
@@ -1,5 +1,5 @@
1
- declare module '@rio-cloud/rio-uikit/lib/es/TagManager' {
2
- import React from 'react';
3
- import { TagManagerProps } from './types';
4
- export default class TagManager extends React.Component<TagManagerProps> {}
5
- }
1
+ import React from 'react';
2
+ import { TagManagerProps } from './types';
3
+
4
+ export { TagManagerTag } from './types';
5
+ export default class TagManager extends React.Component<TagManagerProps> {}
@@ -1,5 +1,32 @@
1
1
  declare module '@rio-cloud/rio-uikit/lib/es/Tooltip' {
2
2
  import React from 'react';
3
3
  import { TooltipProps } from './types';
4
- export default class Tooltip extends React.Component<TooltipProps> {}
4
+ export default class Tooltip extends React.Component<TooltipProps> {
5
+ static STYLE_DEFAULT = 'default';
6
+ static STYLE_ONBOARDING = 'onboarding';
7
+
8
+ static AUTO_START = 'auto-start';
9
+ static AUTO = 'auto';
10
+ static AUTO_END = 'auto-end';
11
+
12
+ static TOP_START = 'top-start';
13
+ static TOP = 'top';
14
+ static TOP_END = 'top-end';
15
+
16
+ static BOTTOM_START = 'bottom-start';
17
+ static BOTTOM = 'bottom';
18
+ static BOTTOM_END = 'bottom-end';
19
+
20
+ static RIGHT_START = 'right-start';
21
+ static RIGHT = 'right';
22
+ static RIGHT_END = 'right-end';
23
+
24
+ static LEFT_START = 'left-start';
25
+ static LEFT = 'left';
26
+ static LEFT_END = 'left-end';
27
+
28
+ static TEXT_ALIGNMENT_LEFT = 'left';
29
+ static TEXT_ALIGNMENT_CENTER = 'center';
30
+ static TEXT_ALIGNMENT_RIGHT = 'right';
31
+ }
5
32
  }
@@ -75,11 +75,16 @@ var ButtonDropdown = function ButtonDropdown(props) {
75
75
  _React$useState4 = (0, _slicedToArray2["default"])(_React$useState3, 2),
76
76
  refDropdownMenu = _React$useState4[0],
77
77
  setRefDropdownMenu = _React$useState4[1];
78
+ var _React$useState5 = _react["default"].useState(null),
79
+ _React$useState6 = (0, _slicedToArray2["default"])(_React$useState5, 2),
80
+ refSplitButtonToggle = _React$useState6[0],
81
+ setRefSplitButtonToggle = _React$useState6[1];
78
82
  var defaultPopperConfig = {
79
83
  placement: getPlacement(pullRight, dropup),
80
84
  modifiers: []
81
85
  };
82
- var _usePopper = (0, _reactPopper.usePopper)(refDropdownToggle, refDropdownMenu, popperConfig || defaultPopperConfig),
86
+ var popperParentRef = splitButton && pullRight ? refSplitButtonToggle : refDropdownToggle;
87
+ var _usePopper = (0, _reactPopper.usePopper)(popperParentRef, refDropdownMenu, popperConfig || defaultPopperConfig),
83
88
  styles = _usePopper.styles,
84
89
  attributes = _usePopper.attributes;
85
90
  var wrapperRef = (0, _useClickOutside["default"])(function () {
@@ -121,7 +126,7 @@ var ButtonDropdown = function ButtonDropdown(props) {
121
126
  var handleDropdownButtonClick = splitButton ? handleSplitLabelButtonClick : toggleOpen;
122
127
  var isOpen = isUncontrolled ? internalOpen : open;
123
128
  var wrapperClasses = (0, _classnames["default"])('dropdown', 'btn-group', isOpen && 'open', className);
124
- var dropdownClasses = (0, _classnames["default"])(usePortal && 'dropdown-portal', dropdownClassName);
129
+ var dropdownClasses = (0, _classnames["default"])(usePortal && 'dropdown-portal', splitButton && pullRight && 'pull-right', dropdownClassName);
125
130
  var dropdownMenu = /*#__PURE__*/_react["default"].createElement(_MenuItems["default"], (0, _extends2["default"])({
126
131
  className: dropdownClasses,
127
132
  ref: setRefDropdownMenu,
@@ -145,7 +150,8 @@ var ButtonDropdown = function ButtonDropdown(props) {
145
150
  bsStyle: bsStyle,
146
151
  disabled: disabled,
147
152
  className: toggleClassName,
148
- onClick: toggleOpen
153
+ onClick: toggleOpen,
154
+ ref: setRefSplitButtonToggle
149
155
  }), isOpen && usePortal && /*#__PURE__*/_reactDom["default"].createPortal(dropdownMenu, dropdownRoot), isOpen && !usePortal && dropdownMenu);
150
156
  };
151
157
  ButtonDropdown.defaultProps = {