@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.
- package/ActionBarItem.d.ts +1 -1
- package/ActionBarItemList.d.ts +1 -1
- package/ActionBarItemListItem.d.ts +1 -1
- package/ActionBarItemListSeparator.d.ts +1 -1
- package/Activity.d.ts +1 -1
- package/AnimatedNumber.d.ts +1 -1
- package/AppNavigationBar.d.ts +1 -1
- package/ApplicationHeader.d.ts +1 -1
- package/ApplicationLayout.d.ts +1 -1
- package/ApplicationLayoutBodyBanner.d.ts +1 -1
- package/ApplicationLayoutBodyBottomBar.d.ts +1 -1
- package/ApplicationLayoutBodyNavigation.d.ts +1 -1
- package/Area.d.ts +1 -1
- package/AreaChart.d.ts +1 -1
- package/AreaGradient.d.ts +1 -1
- package/AssetTree.d.ts +1 -1
- package/AutoSuggest.d.ts +6 -5
- package/Bar.d.ts +5 -2
- package/BarChart.d.ts +1 -1
- package/BottomSheet.d.ts +1 -1
- package/BrowserWarning.d.ts +1 -1
- package/Button.d.ts +24 -2
- package/ButtonDropdown.d.ts +1 -1
- package/Carousel.d.ts +3 -1
- package/ChartNeedle.d.ts +1 -1
- package/ChartTooltip.d.ts +1 -1
- package/Checkbox.d.ts +1 -1
- package/Circle.d.ts +1 -1
- package/ClearableInput.d.ts +1 -1
- package/ClusterLayer.d.ts +1 -1
- package/ClusterMapMarker.d.ts +1 -1
- package/ClusterUtils.d.ts +1 -1
- package/Collapse.d.ts +1 -1
- package/Colors.d.ts +1 -1
- package/ConfirmationDialog.d.ts +9 -2
- package/ContentLoader.d.ts +5 -2
- package/ContextMenu.d.ts +1 -1
- package/ContextMenuItem.d.ts +1 -1
- package/CustomState.d.ts +1 -1
- package/DataTab.d.ts +1 -1
- package/DataTabs.d.ts +1 -1
- package/DatePicker.d.ts +1 -1
- package/DateRangePicker.d.ts +1 -1
- package/DeviceUtils.d.ts +1 -1
- package/Dialog.d.ts +1 -1
- package/DomMarker.d.ts +1 -1
- package/DropdownSubmenu.d.ts +1 -1
- package/EmptyState.d.ts +1 -1
- package/EnhancedMapEvent.d.ts +1 -1
- package/ErrorState.d.ts +1 -1
- package/EventUtils.d.ts +1 -1
- package/ExpanderList.d.ts +5 -5
- package/ExpanderPanel.d.ts +1 -1
- package/Fade.d.ts +11 -2
- package/FilePicker.d.ts +6 -2
- package/ForbiddenState.d.ts +1 -1
- package/ImagePreloader.d.ts +1 -1
- package/IncidentsLayer.d.ts +1 -1
- package/InfoDialog.d.ts +1 -1
- package/Legend.d.ts +1 -1
- package/Line.d.ts +1 -1
- package/LineChart.d.ts +1 -1
- package/ListMenu.d.ts +6 -5
- package/LoadMoreButton.d.ts +1 -1
- package/MaintenanceState.d.ts +1 -1
- package/Map.d.ts +10 -7
- package/MapBoundingBoxButton.d.ts +1 -1
- package/MapCenterMarkerButton.d.ts +1 -1
- package/MapClusterSettings.d.ts +1 -1
- package/MapCustomerPoiSettingsItem.d.ts +1 -1
- package/MapLayerGroup.d.ts +1 -1
- package/MapLayerIncidentsItem.d.ts +1 -1
- package/MapLayerRoadRestrictionsItem.d.ts +1 -1
- package/MapLayerSettings.d.ts +1 -1
- package/MapLayerTrafficItem.d.ts +1 -1
- package/MapLockMarkerButton.d.ts +1 -1
- package/MapSettings.d.ts +1 -1
- package/MapSettingsItem.d.ts +1 -1
- package/MapSettingsPanel.d.ts +1 -1
- package/MapSettingsTile.d.ts +1 -1
- package/MapTypeSettings.d.ts +1 -1
- package/MapWorkshopPoiSettingsItem.d.ts +1 -1
- package/Marker.d.ts +1 -1
- package/MarkerLayer.d.ts +1 -1
- package/MediaDialog.d.ts +8 -4
- package/MenuItem.d.ts +2 -2
- package/Multiselect.d.ts +11 -4
- package/NoData.d.ts +1 -1
- package/NotBookedState.d.ts +1 -1
- package/NotFoundState.d.ts +1 -1
- package/Notification.d.ts +1 -1
- package/NotificationsContainer.d.ts +1 -1
- package/NumberControl.d.ts +5 -2
- package/NumberInput.d.ts +5 -2
- package/OnboardingTip.d.ts +27 -2
- package/OverlayTrigger.d.ts +26 -2
- package/Pager.d.ts +1 -1
- package/PieChart.d.ts +1 -1
- package/Polygon.d.ts +1 -1
- package/Polyline.d.ts +1 -1
- package/Popover.d.ts +8 -2
- package/Position.d.ts +1 -1
- package/PositionUtils.d.ts +1 -1
- package/RadialBarChart.d.ts +1 -1
- package/RadioButton.d.ts +1 -1
- package/RangeSlider.d.ts +1 -1
- package/ReleaseNotes.d.ts +1 -1
- package/ReleaseNotesDialog.d.ts +1 -1
- package/Resizer.d.ts +10 -2
- package/ResponsiveVideo.d.ts +5 -2
- package/Route.d.ts +1 -1
- package/RuleConnector.d.ts +9 -0
- package/RuleConnector.js +2 -0
- package/RuleContainer.d.ts +5 -0
- package/RuleContainer.js +2 -0
- package/RulesWrapper.d.ts +5 -0
- package/RulesWrapper.js +2 -0
- package/SaveDialog.d.ts +9 -2
- package/Select.d.ts +5 -5
- package/Sidebar.d.ts +8 -2
- package/SimpleButtonDropdown.d.ts +1 -1
- package/SimpleClusterLayer.d.ts +1 -1
- package/SimpleDialog.d.ts +9 -2
- package/SimpleTooltip.d.ts +26 -2
- package/SingleButtonDropdown.d.ts +1 -1
- package/SingleMapMarker.d.ts +1 -1
- package/Slider.d.ts +1 -1
- package/SortArrowDown.d.ts +1 -1
- package/SortArrowUp.d.ts +1 -1
- package/SortArrows.d.ts +1 -1
- package/SortDirection.d.ts +1 -1
- package/SortUtils.d.ts +1 -1
- package/Spinner.d.ts +1 -1
- package/SplitButtonDropdown.d.ts +1 -1
- package/SplitDialog.d.ts +9 -2
- package/StatsWidget.d.ts +1 -1
- package/StatsWidgetNumber.d.ts +1 -1
- package/StatsWidgetSpacer.d.ts +1 -1
- package/StatsWidgets.d.ts +1 -1
- package/StatusBar.d.ts +1 -1
- package/SteppedProgressBar.d.ts +6 -2
- package/SubNavigation.d.ts +1 -1
- package/Switch.d.ts +5 -2
- package/TableCardsSorting.d.ts +1 -1
- package/TableSearch.d.ts +1 -1
- package/TableSettingsDialog.d.ts +1 -1
- package/TableToolbar.d.ts +1 -1
- package/TableViewToggles.d.ts +1 -1
- package/Tag.d.ts +1 -1
- package/TagList.d.ts +1 -1
- package/TagManager.d.ts +5 -5
- package/Teaser.d.ts +1 -1
- package/TeaserContainer.d.ts +1 -1
- package/TextMarker.d.ts +1 -1
- package/TimePicker.d.ts +1 -1
- package/ToggleButton.d.ts +1 -1
- package/Tooltip.d.ts +29 -2
- package/TrafficLayer.d.ts +1 -1
- package/Tree.d.ts +1 -1
- package/TreeCategory.d.ts +1 -1
- package/TreeOption.d.ts +1 -1
- package/TreeSearch.d.ts +1 -1
- package/TreeSummary.d.ts +1 -1
- package/TruckLayer.d.ts +1 -1
- package/TypeCounter.d.ts +1 -1
- package/VolkswagenApplicationHeader.d.ts +1 -1
- package/components/button/Button.js +6 -3
- package/components/datepicker/DatePicker.js +5 -2
- package/components/dialog/SplitDialog.js +5 -2
- package/components/dropdown/ButtonDropdown.js +9 -3
- package/components/map/components/Map.js +24 -1
- package/components/overlay/OverlayTrigger.js +2 -1
- package/components/rules/RuleConnector.js +76 -0
- package/components/rules/RuleContainer.js +68 -0
- package/components/rules/RulesWrapper.js +17 -0
- package/components/selects/BaseDropdownMenu.js +40 -26
- package/components/selects/Multiselect.js +5 -3
- package/components/selects/Select.js +7 -5
- package/framer-motion.d.ts +1 -0
- package/index.d.ts +7 -1
- package/index.js +6 -0
- package/lib/es/AutoSuggest.d.ts +6 -5
- package/lib/es/Bar.d.ts +4 -1
- package/lib/es/Button.d.ts +23 -1
- package/lib/es/Carousel.d.ts +2 -0
- package/lib/es/ConfirmationDialog.d.ts +8 -1
- package/lib/es/ContentLoader.d.ts +4 -1
- package/lib/es/ExpanderList.d.ts +5 -5
- package/lib/es/Fade.d.ts +10 -1
- package/lib/es/FilePicker.d.ts +5 -1
- package/lib/es/ListMenu.d.ts +6 -5
- package/lib/es/Map.d.ts +10 -7
- package/lib/es/MediaDialog.d.ts +8 -4
- package/lib/es/MenuItem.d.ts +1 -1
- package/lib/es/Multiselect.d.ts +11 -4
- package/lib/es/NumberControl.d.ts +4 -1
- package/lib/es/NumberInput.d.ts +4 -1
- package/lib/es/OnboardingTip.d.ts +26 -1
- package/lib/es/OverlayTrigger.d.ts +25 -1
- package/lib/es/Popover.d.ts +7 -1
- package/lib/es/Resizer.d.ts +9 -1
- package/lib/es/ResponsiveVideo.d.ts +4 -1
- package/lib/es/RuleConnector.d.ts +9 -0
- package/lib/es/RuleConnector.js +13 -0
- package/lib/es/RuleContainer.d.ts +5 -0
- package/lib/es/RuleContainer.js +13 -0
- package/lib/es/RulesWrapper.d.ts +5 -0
- package/lib/es/RulesWrapper.js +13 -0
- package/lib/es/SaveDialog.d.ts +8 -1
- package/lib/es/Select.d.ts +5 -5
- package/lib/es/Sidebar.d.ts +7 -1
- package/lib/es/SimpleDialog.d.ts +8 -1
- package/lib/es/SimpleTooltip.d.ts +25 -1
- package/lib/es/SplitDialog.d.ts +8 -1
- package/lib/es/SteppedProgressBar.d.ts +5 -1
- package/lib/es/Switch.d.ts +4 -1
- package/lib/es/TagManager.d.ts +5 -5
- package/lib/es/Tooltip.d.ts +28 -1
- package/lib/es/components/button/Button.js +6 -3
- package/lib/es/components/datepicker/DatePicker.js +3 -3
- package/lib/es/components/dialog/SplitDialog.js +5 -2
- package/lib/es/components/dropdown/ButtonDropdown.js +9 -3
- package/lib/es/components/map/components/Map.js +24 -1
- package/lib/es/components/overlay/OverlayTrigger.js +2 -1
- package/lib/es/components/rules/RuleConnector.js +84 -0
- package/lib/es/components/rules/RuleContainer.js +76 -0
- package/lib/es/components/rules/RulesWrapper.js +25 -0
- package/lib/es/components/selects/BaseDropdownMenu.js +40 -26
- package/lib/es/components/selects/Multiselect.js +5 -3
- package/lib/es/components/selects/Select.js +7 -5
- package/lib/es/framer-motion.d.ts +1 -0
- package/lib/es/index.d.ts +8 -2
- package/lib/es/index.js +24 -0
- package/lib/es/styles/components/Dialog.less +10 -0
- package/lib/es/styles/components/Dropdown.less +11 -2
- package/lib/es/styles/components/Select.less +5 -6
- package/lib/es/styles/design/box-sizing.less +8 -0
- package/lib/es/styles/design/fonts.less +23 -23
- package/lib/es/styles/design/normalize.less +0 -2
- package/lib/es/styles/design/responsive/flexgrid.less +4 -6
- package/lib/es/styles/design/responsive/sizing.less +3 -0
- package/lib/es/styles/design/tables.less +5 -0
- package/lib/es/styles/mixins/panels.less +3 -3
- package/lib/es/styles/print/print.less +36 -4
- package/lib/es/styles/rio-uikit-core.less +2 -1
- package/lib/es/styles/rio-uikit-print-utilities.less +1 -0
- package/lib/es/themes/Website/styles/rio-website.less +2 -2
- package/lib/es/types.ts +40 -16
- package/lib/es/utils/init.js +1 -1
- package/lib/es/version.json +1 -1
- package/package.json +13 -11
- package/styles/components/Dialog.less +10 -0
- package/styles/components/Dropdown.less +11 -2
- package/styles/components/Select.less +5 -6
- package/styles/design/box-sizing.less +8 -0
- package/styles/design/fonts.less +23 -23
- package/styles/design/normalize.less +0 -2
- package/styles/design/responsive/flexgrid.less +4 -6
- package/styles/design/responsive/sizing.less +3 -0
- package/styles/design/tables.less +5 -0
- package/styles/mixins/panels.less +3 -3
- package/styles/print/print.less +36 -4
- package/styles/rio-uikit-core.less +2 -1
- package/styles/rio-uikit-print-utilities.less +1 -0
- package/themes/Website/styles/rio-website.less +2 -2
- package/types.ts +40 -16
- package/useAfterMount.d.ts +1 -1
- package/useClickOutside.d.ts +1 -1
- package/useClipboard.d.ts +1 -1
- package/useDebugInfo.d.ts +1 -1
- package/useEffectOnce.d.ts +1 -1
- package/useElementSize.d.ts +1 -1
- package/useEsc.d.ts +1 -1
- package/useEvent.d.ts +1 -1
- package/useFullscreen.d.ts +1 -1
- package/useInterval.d.ts +1 -1
- package/useKey.d.ts +1 -1
- package/useLocalStorage.d.ts +1 -1
- package/useOnScreen.d.ts +1 -1
- package/useOnlineStatus.d.ts +1 -1
- package/useRenderCount.d.ts +1 -1
- package/useResizeObserver.d.ts +1 -1
- package/useSessionStorage.d.ts +1 -1
- package/useStateWithValidation.d.ts +1 -1
- package/useTimeout.d.ts +1 -1
- package/useWindowResize.d.ts +1 -1
- package/utils/init.js +1 -1
- package/version.json +1 -1
- package/.DS_Store +0 -0
- package/components/.DS_Store +0 -0
- package/components/map/.DS_Store +0 -0
- package/lib/.DS_Store +0 -0
- package/lib/es/.DS_Store +0 -0
- package/lib/es/components/.DS_Store +0 -0
- package/lib/es/styles/.DS_Store +0 -0
- package/lib/es/themes/.DS_Store +0 -0
- package/styles/.DS_Store +0 -0
- package/themes/.DS_Store +0 -0
- 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
|
-
|
|
105
|
-
|
|
106
|
-
|
|
104
|
+
{
|
|
105
|
+
// close on esc key or on tab
|
|
106
|
+
this.closeMenu();
|
|
107
|
+
break;
|
|
108
|
+
}
|
|
107
109
|
case 9:
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
110
|
+
{
|
|
111
|
+
// close on tab
|
|
112
|
+
this.closeMenu();
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
111
115
|
case 13:
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
116
|
+
{
|
|
117
|
+
// select on enter
|
|
118
|
+
this.selectOptionOnEnter(event);
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
115
121
|
case 38:
|
|
116
|
-
|
|
117
|
-
|
|
122
|
+
{
|
|
123
|
+
// prevent scrolling the page when dropdown menu is open
|
|
124
|
+
event.preventDefault();
|
|
118
125
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
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
|
-
|
|
125
|
-
|
|
132
|
+
{
|
|
133
|
+
// prevent scrolling the page when dropdown menu is open
|
|
134
|
+
event.preventDefault();
|
|
126
135
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
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
|
-
|
|
143
|
-
|
|
152
|
+
{
|
|
153
|
+
nextFocusedItem = focusedItemIndex === 0 ? focusedItemIndex : focusedItemIndex - 1;
|
|
154
|
+
break;
|
|
155
|
+
}
|
|
144
156
|
case DOWN:
|
|
145
|
-
|
|
146
|
-
|
|
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:
|
|
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
|
-
|
|
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';
|
package/lib/es/AutoSuggest.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
}
|
package/lib/es/Button.d.ts
CHANGED
|
@@ -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
|
}
|
package/lib/es/Carousel.d.ts
CHANGED
|
@@ -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
|
}
|
package/lib/es/ExpanderList.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
}
|
package/lib/es/FilePicker.d.ts
CHANGED
|
@@ -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
|
}
|
package/lib/es/ListMenu.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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/lib/es/MediaDialog.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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/lib/es/MenuItem.d.ts
CHANGED
package/lib/es/Multiselect.d.ts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
}
|
package/lib/es/NumberInput.d.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
}
|
package/lib/es/Popover.d.ts
CHANGED
|
@@ -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
|
}
|
package/lib/es/Resizer.d.ts
CHANGED
|
@@ -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
|
}
|