@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
package/AutoSuggest.d.ts CHANGED
@@ -1,5 +1,6 @@
1
- declare module '@rio-cloud/rio-uikit/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/Bar.d.ts CHANGED
@@ -1,5 +1,8 @@
1
1
  declare module '@rio-cloud/rio-uikit/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
  }
package/Carousel.d.ts CHANGED
@@ -5,5 +5,7 @@ declare module '@rio-cloud/rio-uikit/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/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/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
  }
package/ExpanderList.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- declare module '@rio-cloud/rio-uikit/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/Fade.d.ts CHANGED
@@ -1,5 +1,14 @@
1
1
  declare module '@rio-cloud/rio-uikit/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
  }
package/FilePicker.d.ts CHANGED
@@ -1,5 +1,9 @@
1
1
  declare module '@rio-cloud/rio-uikit/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
  }
package/ListMenu.d.ts CHANGED
@@ -1,5 +1,6 @@
1
- declare module '@rio-cloud/rio-uikit/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/Map.d.ts CHANGED
@@ -1,8 +1,11 @@
1
- declare module '@rio-cloud/rio-uikit/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
  }
package/MediaDialog.d.ts CHANGED
@@ -1,5 +1,9 @@
1
- declare module '@rio-cloud/rio-uikit/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
  }
package/MenuItem.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  declare module '@rio-cloud/rio-uikit/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
  }
package/Multiselect.d.ts CHANGED
@@ -1,5 +1,12 @@
1
- declare module '@rio-cloud/rio-uikit/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/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
  }
package/NumberInput.d.ts CHANGED
@@ -1,5 +1,8 @@
1
1
  declare module '@rio-cloud/rio-uikit/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/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/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
  }
package/Popover.d.ts CHANGED
@@ -1,5 +1,11 @@
1
1
  declare module '@rio-cloud/rio-uikit/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
  }
package/Resizer.d.ts CHANGED
@@ -1,5 +1,13 @@
1
1
  declare module '@rio-cloud/rio-uikit/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/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/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
  }
package/SaveDialog.d.ts CHANGED
@@ -1,5 +1,12 @@
1
1
  declare module '@rio-cloud/rio-uikit/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
  }
package/Select.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- declare module '@rio-cloud/rio-uikit/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> {}
package/Sidebar.d.ts CHANGED
@@ -1,5 +1,11 @@
1
1
  declare module '@rio-cloud/rio-uikit/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
  }
package/SimpleDialog.d.ts CHANGED
@@ -1,5 +1,12 @@
1
1
  declare module '@rio-cloud/rio-uikit/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/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
  }
package/SplitDialog.d.ts CHANGED
@@ -1,5 +1,12 @@
1
1
  declare module '@rio-cloud/rio-uikit/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/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
  }
package/Switch.d.ts CHANGED
@@ -1,5 +1,8 @@
1
1
  declare module '@rio-cloud/rio-uikit/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
  }
package/TagManager.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- declare module '@rio-cloud/rio-uikit/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> {}
package/Tooltip.d.ts CHANGED
@@ -1,5 +1,32 @@
1
1
  declare module '@rio-cloud/rio-uikit/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
  }
@@ -65,11 +65,16 @@ var ButtonDropdown = function ButtonDropdown(props) {
65
65
  _React$useState4 = _slicedToArray(_React$useState3, 2),
66
66
  refDropdownMenu = _React$useState4[0],
67
67
  setRefDropdownMenu = _React$useState4[1];
68
+ var _React$useState5 = React.useState(null),
69
+ _React$useState6 = _slicedToArray(_React$useState5, 2),
70
+ refSplitButtonToggle = _React$useState6[0],
71
+ setRefSplitButtonToggle = _React$useState6[1];
68
72
  var defaultPopperConfig = {
69
73
  placement: getPlacement(pullRight, dropup),
70
74
  modifiers: []
71
75
  };
72
- var _usePopper = usePopper(refDropdownToggle, refDropdownMenu, popperConfig || defaultPopperConfig),
76
+ var popperParentRef = splitButton && pullRight ? refSplitButtonToggle : refDropdownToggle;
77
+ var _usePopper = usePopper(popperParentRef, refDropdownMenu, popperConfig || defaultPopperConfig),
73
78
  styles = _usePopper.styles,
74
79
  attributes = _usePopper.attributes;
75
80
  var wrapperRef = useClickOutside(function () {
@@ -111,7 +116,7 @@ var ButtonDropdown = function ButtonDropdown(props) {
111
116
  var handleDropdownButtonClick = splitButton ? handleSplitLabelButtonClick : toggleOpen;
112
117
  var isOpen = isUncontrolled ? internalOpen : open;
113
118
  var wrapperClasses = classNames('dropdown', 'btn-group', isOpen && 'open', className);
114
- var dropdownClasses = classNames(usePortal && 'dropdown-portal', dropdownClassName);
119
+ var dropdownClasses = classNames(usePortal && 'dropdown-portal', splitButton && pullRight && 'pull-right', dropdownClassName);
115
120
  var dropdownMenu = /*#__PURE__*/React.createElement(MenuItems, _extends({
116
121
  className: dropdownClasses,
117
122
  ref: setRefDropdownMenu,
@@ -135,7 +140,8 @@ var ButtonDropdown = function ButtonDropdown(props) {
135
140
  bsStyle: bsStyle,
136
141
  disabled: disabled,
137
142
  className: toggleClassName,
138
- onClick: toggleOpen
143
+ onClick: toggleOpen,
144
+ ref: setRefSplitButtonToggle
139
145
  }), isOpen && usePortal && /*#__PURE__*/ReactDOM.createPortal(dropdownMenu, dropdownRoot), isOpen && !usePortal && dropdownMenu);
140
146
  };
141
147
  ButtonDropdown.defaultProps = {
@@ -48,6 +48,9 @@ var RuleConnector = function RuleConnector(props) {
48
48
  className: rightRoundedBoxBorderClipping
49
49
  })));
50
50
  };
51
+ RuleConnector.START = 'start';
52
+ RuleConnector.CENTER = 'center';
53
+ RuleConnector.END = 'end';
51
54
  RuleConnector.defaultProps = {
52
55
  placement: 'center',
53
56
  icon: 'rioglyph-plus',
@@ -60,7 +63,7 @@ RuleConnector.defaultProps = {
60
63
  className: ''
61
64
  };
62
65
  RuleConnector.propTypes = {
63
- placement: PropTypes.oneOf(['start', 'center', 'end']),
66
+ placement: PropTypes.oneOf([RuleConnector.START, RuleConnector.CENTER, RuleConnector.END]),
64
67
  icon: PropTypes.string,
65
68
  hidden: PropTypes.bool,
66
69
  background: PropTypes.string,
@@ -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,