@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.
- package/AutoSuggest.d.ts +6 -5
- package/Bar.d.ts +4 -1
- package/Carousel.d.ts +2 -0
- package/ConfirmationDialog.d.ts +8 -1
- package/ContentLoader.d.ts +4 -1
- package/ExpanderList.d.ts +5 -5
- package/Fade.d.ts +10 -1
- package/FilePicker.d.ts +5 -1
- package/ListMenu.d.ts +6 -5
- package/Map.d.ts +10 -7
- package/MediaDialog.d.ts +8 -4
- package/MenuItem.d.ts +1 -1
- package/Multiselect.d.ts +11 -4
- package/NumberControl.d.ts +4 -1
- package/NumberInput.d.ts +4 -1
- package/OnboardingTip.d.ts +26 -1
- package/OverlayTrigger.d.ts +25 -1
- package/Popover.d.ts +7 -1
- package/Resizer.d.ts +9 -1
- package/ResponsiveVideo.d.ts +4 -1
- package/RuleConnector.d.ts +5 -1
- package/SaveDialog.d.ts +8 -1
- package/Select.d.ts +5 -5
- package/Sidebar.d.ts +7 -1
- package/SimpleDialog.d.ts +8 -1
- package/SimpleTooltip.d.ts +25 -1
- package/SplitDialog.d.ts +8 -1
- package/SteppedProgressBar.d.ts +5 -1
- package/Switch.d.ts +4 -1
- package/TagManager.d.ts +5 -5
- package/Tooltip.d.ts +28 -1
- package/components/dropdown/ButtonDropdown.js +9 -3
- package/components/rules/RuleConnector.js +4 -1
- 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/lib/es/AutoSuggest.d.ts +6 -5
- package/lib/es/Bar.d.ts +4 -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 +5 -1
- 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/dropdown/ButtonDropdown.js +9 -3
- package/lib/es/components/rules/RuleConnector.js +4 -1
- 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/styles/components/Dropdown.less +11 -2
- package/lib/es/styles/components/Select.less +5 -6
- 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/types.ts +16 -16
- package/lib/es/version.json +1 -1
- package/package.json +3 -2
- package/styles/components/Dropdown.less +11 -2
- package/styles/components/Select.less +5 -6
- 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/types.ts +16 -16
- package/version.json +1 -1
- package/BoxConnector.js +0 -2
- package/components/boxConnector/BoxConnector.js +0 -40
- package/lib/es/BoxConnector.js +0 -13
- package/lib/es/components/boxConnector/BoxConnector.js +0 -48
|
@@ -55,6 +55,9 @@ var RuleConnector = function RuleConnector(props) {
|
|
|
55
55
|
className: rightRoundedBoxBorderClipping
|
|
56
56
|
})));
|
|
57
57
|
};
|
|
58
|
+
RuleConnector.START = 'start';
|
|
59
|
+
RuleConnector.CENTER = 'center';
|
|
60
|
+
RuleConnector.END = 'end';
|
|
58
61
|
RuleConnector.defaultProps = {
|
|
59
62
|
placement: 'center',
|
|
60
63
|
icon: 'rioglyph-plus',
|
|
@@ -67,7 +70,7 @@ RuleConnector.defaultProps = {
|
|
|
67
70
|
className: ''
|
|
68
71
|
};
|
|
69
72
|
RuleConnector.propTypes = {
|
|
70
|
-
placement: _propTypes["default"].oneOf([
|
|
73
|
+
placement: _propTypes["default"].oneOf([RuleConnector.START, RuleConnector.CENTER, RuleConnector.END]),
|
|
71
74
|
icon: _propTypes["default"].string,
|
|
72
75
|
hidden: _propTypes["default"].bool,
|
|
73
76
|
background: _propTypes["default"].string,
|
|
@@ -110,33 +110,43 @@ var BaseDropdownMenu = /*#__PURE__*/function (_Component) {
|
|
|
110
110
|
value: function handleKeydown(event) {
|
|
111
111
|
switch (event.keyCode) {
|
|
112
112
|
case 27:
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
{
|
|
114
|
+
// close on esc key or on tab
|
|
115
|
+
this.closeMenu();
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
116
118
|
case 9:
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
119
|
+
{
|
|
120
|
+
// close on tab
|
|
121
|
+
this.closeMenu();
|
|
122
|
+
break;
|
|
123
|
+
}
|
|
120
124
|
case 13:
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
125
|
+
{
|
|
126
|
+
// select on enter
|
|
127
|
+
this.selectOptionOnEnter(event);
|
|
128
|
+
break;
|
|
129
|
+
}
|
|
124
130
|
case 38:
|
|
125
|
-
|
|
126
|
-
|
|
131
|
+
{
|
|
132
|
+
// prevent scrolling the page when dropdown menu is open
|
|
133
|
+
event.preventDefault();
|
|
127
134
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
135
|
+
// select above on arrow up key
|
|
136
|
+
this.focusOption(_scrollItemIntoView.UP);
|
|
137
|
+
(0, _scrollItemIntoView["default"])(_scrollItemIntoView.UP, this.getDropdownDOMNode(), this.getFocusedOptionNode());
|
|
138
|
+
break;
|
|
139
|
+
}
|
|
132
140
|
case 40:
|
|
133
|
-
|
|
134
|
-
|
|
141
|
+
{
|
|
142
|
+
// prevent scrolling the page when dropdown menu is open
|
|
143
|
+
event.preventDefault();
|
|
135
144
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
145
|
+
// select below on arrow down key
|
|
146
|
+
this.focusOption(_scrollItemIntoView.DOWN);
|
|
147
|
+
(0, _scrollItemIntoView["default"])(_scrollItemIntoView.DOWN, this.getDropdownDOMNode(), this.getFocusedOptionNode());
|
|
148
|
+
break;
|
|
149
|
+
}
|
|
140
150
|
default:
|
|
141
151
|
break;
|
|
142
152
|
}
|
|
@@ -148,11 +158,15 @@ var BaseDropdownMenu = /*#__PURE__*/function (_Component) {
|
|
|
148
158
|
var focusedItemIndex = this.state.focusedItemIndex;
|
|
149
159
|
switch (direction) {
|
|
150
160
|
case _scrollItemIntoView.UP:
|
|
151
|
-
|
|
152
|
-
|
|
161
|
+
{
|
|
162
|
+
nextFocusedItem = focusedItemIndex === 0 ? focusedItemIndex : focusedItemIndex - 1;
|
|
163
|
+
break;
|
|
164
|
+
}
|
|
153
165
|
case _scrollItemIntoView.DOWN:
|
|
154
|
-
|
|
155
|
-
|
|
166
|
+
{
|
|
167
|
+
nextFocusedItem = focusedItemIndex === this.props.options.length - 1 ? focusedItemIndex : focusedItemIndex + 1;
|
|
168
|
+
break;
|
|
169
|
+
}
|
|
156
170
|
default:
|
|
157
171
|
break;
|
|
158
172
|
}
|
|
@@ -342,7 +356,7 @@ BaseDropdownMenu.defaultProps = {
|
|
|
342
356
|
onSelect: function onSelect() {},
|
|
343
357
|
onClose: function onClose() {},
|
|
344
358
|
options: [],
|
|
345
|
-
autoDropDirection:
|
|
359
|
+
autoDropDirection: false,
|
|
346
360
|
pullRight: false,
|
|
347
361
|
useActiveClass: false,
|
|
348
362
|
keyboardUsed: false,
|
|
@@ -18,11 +18,15 @@ var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
|
18
18
|
var _reactOnclickoutside = _interopRequireDefault(require("react-onclickoutside"));
|
|
19
19
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
20
20
|
var _isEqual = _interopRequireDefault(require("lodash/fp/isEqual"));
|
|
21
|
+
var _logDeprecatedWarnings = _interopRequireDefault(require("../../utils/logDeprecatedWarnings"));
|
|
21
22
|
var _BaseDropdownMenu = require("./BaseDropdownMenu");
|
|
22
23
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
24
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
24
25
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
|
|
25
26
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
27
|
+
var warningProps = [{
|
|
28
|
+
prop: 'autoDropDirection'
|
|
29
|
+
}];
|
|
26
30
|
var Multiselect = /*#__PURE__*/function (_Component) {
|
|
27
31
|
(0, _inherits2["default"])(Multiselect, _Component);
|
|
28
32
|
var _super = _createSuper(Multiselect);
|
|
@@ -217,6 +221,7 @@ var Multiselect = /*#__PURE__*/function (_Component) {
|
|
|
217
221
|
placeholder = _this$props4.placeholder,
|
|
218
222
|
counterMessage = _this$props4.counterMessage,
|
|
219
223
|
renderCounterMessage = _this$props4.renderCounterMessage;
|
|
224
|
+
(0, _logDeprecatedWarnings["default"])(warningProps, this.props, 'Multiselect');
|
|
220
225
|
var classnames = (0, _classnames["default"])('dropdown-toggle', 'form-control', 'text-left', bsSize === 'large' && 'input-lg',
|
|
221
226
|
// TODO: deprecte since it's not consistent
|
|
222
227
|
bsSize === 'small' && 'input-sm',
|
|
@@ -250,7 +255,6 @@ var Multiselect = /*#__PURE__*/function (_Component) {
|
|
|
250
255
|
var _this6 = this;
|
|
251
256
|
var _this$props5 = this.props,
|
|
252
257
|
pullRight = _this$props5.pullRight,
|
|
253
|
-
autoDropDirection = _this$props5.autoDropDirection,
|
|
254
258
|
noItemMessage = _this$props5.noItemMessage;
|
|
255
259
|
var options = this.state.filteredOptions.map(function (option) {
|
|
256
260
|
option.selected = _this6.state.selectedItems.indexOf(option.id) !== -1;
|
|
@@ -265,7 +269,6 @@ var Multiselect = /*#__PURE__*/function (_Component) {
|
|
|
265
269
|
onSelect: this.onOptionChange,
|
|
266
270
|
onClose: this.closeMenu,
|
|
267
271
|
noItemMessage: noItemMessage,
|
|
268
|
-
autoDropDirection: autoDropDirection,
|
|
269
272
|
pullRight: pullRight,
|
|
270
273
|
useActiveClass: true
|
|
271
274
|
});
|
|
@@ -447,7 +450,6 @@ Multiselect.defaultProps = {
|
|
|
447
450
|
options: [],
|
|
448
451
|
selectedItems: [],
|
|
449
452
|
disabled: false,
|
|
450
|
-
autoDropDirection: true,
|
|
451
453
|
pullRight: false,
|
|
452
454
|
hasError: false,
|
|
453
455
|
useFilter: false,
|
|
@@ -19,6 +19,7 @@ var _reactOnclickoutside = _interopRequireDefault(require("react-onclickoutside"
|
|
|
19
19
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
20
20
|
var _isEqual = _interopRequireDefault(require("lodash/fp/isEqual"));
|
|
21
21
|
var _logPropError = _interopRequireDefault(require("../../utils/logPropError"));
|
|
22
|
+
var _logDeprecatedWarnings = _interopRequireDefault(require("../../utils/logDeprecatedWarnings"));
|
|
22
23
|
var _isNil = _interopRequireDefault(require("lodash/fp/isNil"));
|
|
23
24
|
var _BaseDropdownMenu = require("./BaseDropdownMenu");
|
|
24
25
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -29,6 +30,9 @@ var errorProps = [{
|
|
|
29
30
|
prop: 'toggleButtonLabel',
|
|
30
31
|
replacement: 'selectedOptionText'
|
|
31
32
|
}];
|
|
33
|
+
var warningProps = [{
|
|
34
|
+
prop: 'autoDropDirection'
|
|
35
|
+
}];
|
|
32
36
|
var DEFAULT_FOCUSED_ITEM_INDEX = -1;
|
|
33
37
|
var Select = /*#__PURE__*/function (_Component) {
|
|
34
38
|
(0, _inherits2["default"])(Select, _Component);
|
|
@@ -114,8 +118,8 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
114
118
|
var _this2 = this;
|
|
115
119
|
var _this$props = this.props,
|
|
116
120
|
className = _this$props.className,
|
|
117
|
-
hasError = _this$props.hasError
|
|
118
|
-
|
|
121
|
+
hasError = _this$props.hasError,
|
|
122
|
+
dropup = _this$props.dropup;
|
|
119
123
|
var classes = (0, _classnames["default"])('select', dropup && 'dropup', 'dropdown', hasError && 'has-error', this.state.isOpen && 'open', className && className);
|
|
120
124
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
121
125
|
className: classes,
|
|
@@ -195,6 +199,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
195
199
|
id = _this$props3$id === void 0 ? name : _this$props3$id,
|
|
196
200
|
selectedOptionText = _this$props3.selectedOptionText;
|
|
197
201
|
(0, _logPropError["default"])(errorProps, this.props, 'Select');
|
|
202
|
+
(0, _logDeprecatedWarnings["default"])(warningProps, this.props, 'Select');
|
|
198
203
|
var _this$state = this.state,
|
|
199
204
|
isOpen = _this$state.isOpen,
|
|
200
205
|
selectedItem = _this$state.selectedItem;
|
|
@@ -233,7 +238,6 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
233
238
|
|
|
234
239
|
var _this$props4 = this.props,
|
|
235
240
|
pullRight = _this$props4.pullRight,
|
|
236
|
-
autoDropDirection = _this$props4.autoDropDirection,
|
|
237
241
|
noItemMessage = _this$props4.noItemMessage,
|
|
238
242
|
dropdownClassName = _this$props4.dropdownClassName;
|
|
239
243
|
|
|
@@ -260,7 +264,6 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
260
264
|
onSelect: this.onOptionChange,
|
|
261
265
|
onClose: this.closeMenu,
|
|
262
266
|
noItemMessage: noItemMessage,
|
|
263
|
-
autoDropDirection: autoDropDirection,
|
|
264
267
|
pullRight: pullRight,
|
|
265
268
|
dropdownClassName: dropdownClassName,
|
|
266
269
|
requestItemDOMValues: this.state.requestItemDOMValues
|
|
@@ -400,7 +403,6 @@ Select.defaultProps = {
|
|
|
400
403
|
onChange: function onChange() {},
|
|
401
404
|
options: [],
|
|
402
405
|
disabled: false,
|
|
403
|
-
autoDropDirection: true,
|
|
404
406
|
pullRight: false,
|
|
405
407
|
dropup: false,
|
|
406
408
|
hasError: false,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'framer-motion';
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
@dropdown-max-height: 211px; // Used for Select and AutoSuggest components
|
|
2
2
|
|
|
3
|
-
.btn-group
|
|
4
|
-
|
|
3
|
+
.btn-group {
|
|
4
|
+
&.open .dropdown-toggle {
|
|
5
|
+
box-shadow: none !important;
|
|
6
|
+
}
|
|
5
7
|
}
|
|
6
8
|
|
|
7
9
|
.dropdown {
|
|
@@ -18,6 +20,7 @@
|
|
|
18
20
|
padding: 0;
|
|
19
21
|
position: absolute;
|
|
20
22
|
text-align: left;
|
|
23
|
+
//width: 100%;
|
|
21
24
|
z-index: @zindex-dropdown;
|
|
22
25
|
|
|
23
26
|
// closed by default
|
|
@@ -28,6 +31,12 @@
|
|
|
28
31
|
display: block;
|
|
29
32
|
}
|
|
30
33
|
|
|
34
|
+
.AutoSuggest &,
|
|
35
|
+
.select &,
|
|
36
|
+
.multiselect & {
|
|
37
|
+
width: 100%;
|
|
38
|
+
}
|
|
39
|
+
|
|
31
40
|
// portal style
|
|
32
41
|
#uikit-root > & {
|
|
33
42
|
display: block;
|
|
@@ -162,13 +162,17 @@
|
|
|
162
162
|
.dropdown-menu {
|
|
163
163
|
max-height: @dropdown-max-height;
|
|
164
164
|
overflow-x: hidden;
|
|
165
|
-
width: 100%; // not on dropdowns, only on selects
|
|
166
165
|
|
|
167
166
|
svg {
|
|
168
167
|
margin-right: 0.5em;
|
|
169
168
|
vertical-align: middle;
|
|
170
169
|
}
|
|
171
170
|
|
|
171
|
+
&.pull-right {
|
|
172
|
+
left: auto !important;
|
|
173
|
+
right: 0 !important;
|
|
174
|
+
}
|
|
175
|
+
|
|
172
176
|
> li {
|
|
173
177
|
> a.focus {
|
|
174
178
|
text-decoration: none;
|
|
@@ -189,11 +193,6 @@
|
|
|
189
193
|
}
|
|
190
194
|
}
|
|
191
195
|
|
|
192
|
-
&.pull-right {
|
|
193
|
-
left: auto !important;
|
|
194
|
-
right: 0 !important;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
196
|
&.dropup.open .dropdown-menu {
|
|
198
197
|
bottom: 0;
|
|
199
198
|
left: 0;
|
|
@@ -164,141 +164,141 @@
|
|
|
164
164
|
|
|
165
165
|
// SCANIA FONT
|
|
166
166
|
& when (@font-scania = true) {
|
|
167
|
-
@fontSCANIA: '
|
|
167
|
+
@fontSCANIA: 'cdn.digitaldesign.scania.com/fonts/scania-sans/1.0.0';
|
|
168
168
|
|
|
169
169
|
@font-face {
|
|
170
170
|
font-family: 'Scania Sans';
|
|
171
171
|
font-weight: bold;
|
|
172
172
|
unicode-range: U+0400-04FF;
|
|
173
|
-
src: url('
|
|
173
|
+
src: url('https://@{fontSCANIA}/cyrillic/ScaniaSansCY-Bold.woff') format('woff')
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
@font-face {
|
|
177
177
|
font-family: 'Scania Sans';
|
|
178
178
|
font-style: italic;
|
|
179
179
|
unicode-range: U+0400-04FF;
|
|
180
|
-
src: url('
|
|
180
|
+
src: url('https://@{fontSCANIA}/cyrillic/ScaniaSansCY-Italic.woff') format('woff')
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
@font-face {
|
|
184
184
|
font-family: 'Scania Sans';
|
|
185
185
|
unicode-range: U+0400-04FF;
|
|
186
|
-
src: url('
|
|
186
|
+
src: url('https://@{fontSCANIA}/cyrillic/ScaniaSansCY-Regular.woff') format('woff')
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
@font-face {
|
|
190
190
|
font-family: 'Scania Sans Condensed';
|
|
191
191
|
font-weight: bold;
|
|
192
192
|
unicode-range: U+0400-04FF;
|
|
193
|
-
src: url('
|
|
193
|
+
src: url('https://@{fontSCANIA}/cyrillic/ScaniaSansCYCondensed-Bold.woff') format('woff')
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
@font-face {
|
|
197
197
|
font-family: 'Scania Sans Condensed';
|
|
198
198
|
font-style: italic;
|
|
199
199
|
unicode-range: U+0400-04FF;
|
|
200
|
-
src: url('
|
|
200
|
+
src: url('https://@{fontSCANIA}/cyrillic/ScaniaSansCYCondensed-Italic.woff') format('woff')
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
@font-face {
|
|
204
204
|
font-family: 'Scania Sans Condensed';
|
|
205
205
|
unicode-range: U+0400-04FF;
|
|
206
|
-
src: url('
|
|
206
|
+
src: url('https://@{fontSCANIA}/cyrillic/ScaniaSansCYCondensed-Regular.woff') format('woff')
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
@font-face {
|
|
210
210
|
font-family: 'Scania Sans Headline';
|
|
211
211
|
font-weight: bold;
|
|
212
212
|
unicode-range: U+0400-04FF;
|
|
213
|
-
src: url('
|
|
213
|
+
src: url('https://@{fontSCANIA}/cyrillic/ScaniaSansCYHeadline-Bold.woff') format('woff')
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
@font-face {
|
|
217
217
|
font-family: 'Scania Sans Headline';
|
|
218
218
|
unicode-range: U+0400-04FF;
|
|
219
|
-
src: url('
|
|
219
|
+
src: url('https://@{fontSCANIA}/cyrillic/ScaniaSansCYHeadline-Regular.woff') format('woff')
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
@font-face {
|
|
223
223
|
font-family: 'Scania Sans Semi Condensed';
|
|
224
224
|
font-weight: bold;
|
|
225
225
|
unicode-range: U+0400-04FF;
|
|
226
|
-
src: url('
|
|
226
|
+
src: url('https://@{fontSCANIA}/cyrillic/ScaniaSansCYSemiCondensed-Bold.woff') format('woff')
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
@font-face {
|
|
230
230
|
font-family: 'Scania Sans Semi Condensed';
|
|
231
231
|
font-style: italic;
|
|
232
232
|
unicode-range: U+0400-04FF;
|
|
233
|
-
src: url('
|
|
233
|
+
src: url('https://@{fontSCANIA}/cyrillic/ScaniaSansCYSemiCondensed-Italic.woff') format('woff')
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
@font-face {
|
|
237
237
|
font-family: 'Scania Sans Semi Condensed';
|
|
238
238
|
unicode-range: U+0400-04FF;
|
|
239
|
-
src: url('
|
|
239
|
+
src: url('https://@{fontSCANIA}/cyrillic/ScaniaSansCYSemiCondensed-Regular.woff') format('woff')
|
|
240
240
|
}
|
|
241
241
|
|
|
242
242
|
@font-face {
|
|
243
243
|
font-family: 'Scania Sans';
|
|
244
244
|
font-weight: bold;
|
|
245
|
-
src: url('
|
|
245
|
+
src: url('https://@{fontSCANIA}/latin/ScaniaSans-Bold.woff') format('woff')
|
|
246
246
|
}
|
|
247
247
|
|
|
248
248
|
@font-face {
|
|
249
249
|
font-family: 'Scania Sans';
|
|
250
250
|
font-style: italic;
|
|
251
|
-
src: url('
|
|
251
|
+
src: url('https://@{fontSCANIA}/latin/ScaniaSans-Italic.woff') format('woff')
|
|
252
252
|
}
|
|
253
253
|
|
|
254
254
|
@font-face {
|
|
255
255
|
font-family: 'Scania Sans';
|
|
256
|
-
src: url('
|
|
256
|
+
src: url('https://@{fontSCANIA}/latin/ScaniaSans-Regular.woff') format('woff')
|
|
257
257
|
}
|
|
258
258
|
|
|
259
259
|
@font-face {
|
|
260
260
|
font-family: 'Scania Sans Condensed';
|
|
261
261
|
font-weight: bold;
|
|
262
|
-
src: url('
|
|
262
|
+
src: url('https://@{fontSCANIA}/latin/ScaniaSansCondensed-Bold.woff') format('woff')
|
|
263
263
|
}
|
|
264
264
|
|
|
265
265
|
@font-face {
|
|
266
266
|
font-family: 'Scania Sans Condensed';
|
|
267
267
|
font-style: italic;
|
|
268
|
-
src: url('
|
|
268
|
+
src: url('https://@{fontSCANIA}/latin/ScaniaSansCondensed-Italic.woff') format('woff')
|
|
269
269
|
}
|
|
270
270
|
|
|
271
271
|
@font-face {
|
|
272
272
|
font-family: 'Scania Sans Condensed';
|
|
273
|
-
src: url('
|
|
273
|
+
src: url('https://@{fontSCANIA}/latin/ScaniaSansCondensed-Regular.woff') format('woff')
|
|
274
274
|
}
|
|
275
275
|
|
|
276
276
|
@font-face {
|
|
277
277
|
font-family: 'Scania Sans Headline';
|
|
278
278
|
font-weight: bold;
|
|
279
|
-
src: url('
|
|
279
|
+
src: url('https://@{fontSCANIA}/latin/ScaniaSansHeadline-Bold.woff') format('woff')
|
|
280
280
|
}
|
|
281
281
|
|
|
282
282
|
@font-face {
|
|
283
283
|
font-family: 'Scania Sans Headline';
|
|
284
|
-
src: url('
|
|
284
|
+
src: url('https://@{fontSCANIA}/latin/ScaniaSansHeadline-Regular.woff') format('woff')
|
|
285
285
|
}
|
|
286
286
|
|
|
287
287
|
@font-face {
|
|
288
288
|
font-family: 'Scania Sans Semi Condensed';
|
|
289
289
|
font-weight: bold;
|
|
290
|
-
src: url('
|
|
290
|
+
src: url('https://@{fontSCANIA}/latin/ScaniaSansSemiCondensed-Bold.woff') format('woff')
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
@font-face {
|
|
294
294
|
font-family: 'Scania Sans Semi Condensed';
|
|
295
295
|
font-style: italic;
|
|
296
|
-
src: url('
|
|
296
|
+
src: url('https://@{fontSCANIA}/latin/ScaniaSansSemiCondensed-Italic.woff') format('woff')
|
|
297
297
|
}
|
|
298
298
|
|
|
299
299
|
@font-face {
|
|
300
300
|
font-family: 'Scania Sans Semi Condensed';
|
|
301
|
-
src: url('
|
|
301
|
+
src: url('https://@{fontSCANIA}/latin/ScaniaSansSemiCondensed-Regular.woff') format('woff')
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
304
|
|
|
@@ -34,6 +34,9 @@
|
|
|
34
34
|
.align-self-start@{suffix} { align-self: flex-start !important }
|
|
35
35
|
.align-self-stretch@{suffix} { align-self: stretch !important }
|
|
36
36
|
|
|
37
|
+
.place-items-center@{suffix} { place-items: center !important }
|
|
38
|
+
.place-self-center@{suffix} { place-self: center !important }
|
|
39
|
+
|
|
37
40
|
/* Flexbox - Helper */
|
|
38
41
|
.flex-0-1@{suffix} { flex: 0 1 auto !important }
|
|
39
42
|
.flex-1-0@{suffix} { flex: 1 0 auto !important }
|
|
@@ -70,9 +73,4 @@ each(@gridColumns, {
|
|
|
70
73
|
.grid-colspan-auto@{suffix} { grid-column: auto !important }
|
|
71
74
|
|
|
72
75
|
// AutoRows
|
|
73
|
-
.grid-auto-rows@{suffix} { grid-auto-rows: minmax(min-content, max-content)}
|
|
74
|
-
|
|
75
|
-
// Placement
|
|
76
|
-
.place-items-center@{suffix} {
|
|
77
|
-
place-items: center !important;
|
|
78
|
-
}
|
|
76
|
+
.grid-auto-rows@{suffix} { grid-auto-rows: minmax(min-content, max-content)}
|
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
.max-height-0@{suffix} { max-height: 0 !important }
|
|
11
11
|
.max-width-0@{suffix} { max-width: 0 !important }
|
|
12
12
|
|
|
13
|
+
.max-width-none@{suffix} { max-width: none !important }
|
|
14
|
+
.max-height-none@{suffix} { max-height: none !important }
|
|
15
|
+
|
|
13
16
|
// width/height px
|
|
14
17
|
each(@sizes-px, {
|
|
15
18
|
// width
|
package/lib/es/types.ts
CHANGED
|
@@ -588,7 +588,7 @@ export interface DomMarkerProps {
|
|
|
588
588
|
|
|
589
589
|
export interface DropdownSubmenuProps {
|
|
590
590
|
title?: string | React.ReactNode;
|
|
591
|
-
items?:
|
|
591
|
+
items?: MenuItem[];
|
|
592
592
|
disabled?: boolean;
|
|
593
593
|
className?: string;
|
|
594
594
|
}
|
|
@@ -769,15 +769,15 @@ export interface LineChartProps {
|
|
|
769
769
|
tooltip?: ChartTooltip | boolean;
|
|
770
770
|
}
|
|
771
771
|
|
|
772
|
-
export interface
|
|
772
|
+
export interface ListMenuItem {
|
|
773
773
|
group?: string | React.ReactNode;
|
|
774
774
|
groupNavItem?: React.ReactNode;
|
|
775
|
-
navItems:
|
|
775
|
+
navItems: NavItem[];
|
|
776
776
|
isSubItem?: boolean;
|
|
777
777
|
}
|
|
778
778
|
|
|
779
779
|
export interface ListMenuProps {
|
|
780
|
-
menuItems:
|
|
780
|
+
menuItems: ListMenuItem[];
|
|
781
781
|
enableFilter?: boolean;
|
|
782
782
|
focusFilter?: boolean;
|
|
783
783
|
filterKey?: string;
|
|
@@ -808,7 +808,7 @@ export type markerColor =
|
|
|
808
808
|
| 'bg-map-marker-geofence'
|
|
809
809
|
| 'bg-map-marker-route';
|
|
810
810
|
|
|
811
|
-
export interface
|
|
811
|
+
export interface MediaDialogMedia {
|
|
812
812
|
type: 'image' | 'video';
|
|
813
813
|
src: string;
|
|
814
814
|
title: string | React.ReactNode;
|
|
@@ -818,7 +818,7 @@ export interface MediaDialogMediaProps {
|
|
|
818
818
|
}
|
|
819
819
|
|
|
820
820
|
export interface MediaDialogProps extends BaseDialogProps {
|
|
821
|
-
media:
|
|
821
|
+
media: MediaDialogMedia[];
|
|
822
822
|
previousButtonText: string | React.ReactNode;
|
|
823
823
|
previousButtonCallback?: Function;
|
|
824
824
|
nextButtonText: string | React.ReactNode;
|
|
@@ -984,7 +984,7 @@ export interface MarkerLayerProps {
|
|
|
984
984
|
clusterDissolvable?: boolean;
|
|
985
985
|
}
|
|
986
986
|
|
|
987
|
-
export interface
|
|
987
|
+
export interface MenuItem {
|
|
988
988
|
value?: string | React.ReactNode;
|
|
989
989
|
disabled?: boolean;
|
|
990
990
|
divider?: boolean;
|
|
@@ -1005,7 +1005,7 @@ interface MultiselectCounterMessage {
|
|
|
1005
1005
|
many: string | React.ReactNode;
|
|
1006
1006
|
}
|
|
1007
1007
|
|
|
1008
|
-
interface MultiselectOption {
|
|
1008
|
+
export interface MultiselectOption {
|
|
1009
1009
|
id: string;
|
|
1010
1010
|
label: string | React.ReactNode;
|
|
1011
1011
|
selected?: boolean;
|
|
@@ -1023,7 +1023,7 @@ export interface MultiselectProps {
|
|
|
1023
1023
|
pullRight?: boolean;
|
|
1024
1024
|
autoDropDirection?: boolean;
|
|
1025
1025
|
value?: [];
|
|
1026
|
-
bsSize?: 'sm' | 'lg'
|
|
1026
|
+
bsSize?: 'sm' | 'lg';
|
|
1027
1027
|
disabled?: boolean;
|
|
1028
1028
|
className?: string;
|
|
1029
1029
|
tabIndex?: number;
|
|
@@ -1038,7 +1038,7 @@ export interface MultiselectProps {
|
|
|
1038
1038
|
|
|
1039
1039
|
// N --------------------------------------------------------------------------------------------------
|
|
1040
1040
|
|
|
1041
|
-
export interface
|
|
1041
|
+
export interface NavItem {
|
|
1042
1042
|
key: string;
|
|
1043
1043
|
item: React.ReactNode;
|
|
1044
1044
|
disabled?: boolean;
|
|
@@ -1083,7 +1083,7 @@ export interface NumberControlProps {
|
|
|
1083
1083
|
step?: number;
|
|
1084
1084
|
disabled?: boolean;
|
|
1085
1085
|
onValueChanged?: (value: number) => void;
|
|
1086
|
-
bsSize?: 'sm' | 'lg'
|
|
1086
|
+
bsSize?: 'sm' | 'lg';
|
|
1087
1087
|
className?: string;
|
|
1088
1088
|
unit?: string | React.ReactNode;
|
|
1089
1089
|
inputAddon?: string;
|
|
@@ -1097,7 +1097,7 @@ export interface NumberInputProps {
|
|
|
1097
1097
|
type?: string;
|
|
1098
1098
|
disabled?: boolean;
|
|
1099
1099
|
onValueChanged?: (value: number) => void;
|
|
1100
|
-
bsSize?: 'sm' | 'lg'
|
|
1100
|
+
bsSize?: 'sm' | 'lg';
|
|
1101
1101
|
className?: string;
|
|
1102
1102
|
unit?: string | React.ReactNode;
|
|
1103
1103
|
inputAddon?: string;
|
|
@@ -1557,7 +1557,7 @@ export interface SimpleButtonDropdownProps {
|
|
|
1557
1557
|
noCaret?: boolean;
|
|
1558
1558
|
splitButton?: boolean;
|
|
1559
1559
|
usePortal?: boolean;
|
|
1560
|
-
items:
|
|
1560
|
+
items: MenuItem[];
|
|
1561
1561
|
className?: string;
|
|
1562
1562
|
dropdownClassName?: string;
|
|
1563
1563
|
disabled?: boolean;
|
|
@@ -1891,15 +1891,15 @@ export interface TagListProps {
|
|
|
1891
1891
|
className?: string;
|
|
1892
1892
|
}
|
|
1893
1893
|
|
|
1894
|
-
export interface
|
|
1894
|
+
export interface TagManagerTag {
|
|
1895
1895
|
label?: string;
|
|
1896
1896
|
toAdd?: boolean;
|
|
1897
1897
|
toRemove?: boolean;
|
|
1898
1898
|
}
|
|
1899
1899
|
|
|
1900
1900
|
export interface TagManagerProps {
|
|
1901
|
-
tagList:
|
|
1902
|
-
tagSuggestions:
|
|
1901
|
+
tagList: TagManagerTag[];
|
|
1902
|
+
tagSuggestions: TagManagerTag[];
|
|
1903
1903
|
onTagListChange?: Function;
|
|
1904
1904
|
placeholder?: string;
|
|
1905
1905
|
customTagPlaceholder?: string;
|
package/lib/es/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rio-cloud/rio-uikit",
|
|
3
|
-
"version": "0.16.1
|
|
3
|
+
"version": "0.16.1",
|
|
4
4
|
"description": "The RIO UIKIT component library",
|
|
5
5
|
"repository": "https://collaboration.msi.audi.com/stash/projects/RIOFRONT/repos/uikit-web/browse",
|
|
6
6
|
"scripts": {
|
|
@@ -14,13 +14,14 @@
|
|
|
14
14
|
"build:style-core": "vite build --mode style-core",
|
|
15
15
|
"build:style-responsive": "vite build --mode style-responsive",
|
|
16
16
|
"build:style-print": "vite build --mode style-print",
|
|
17
|
-
"build:style-website": "vite build --mode style-website",
|
|
17
|
+
"build:style-website": "vite build --mode style-website && npm run fixCssMinified",
|
|
18
18
|
"build:style-buyButton": "vite build --mode style-buyButton",
|
|
19
19
|
"build:style-man": "vite build --mode style-man",
|
|
20
20
|
"build:style-vw": "vite build --mode style-vw",
|
|
21
21
|
"build:style-scania": "vite build --mode style-scania",
|
|
22
22
|
"build:style-xmas": "vite build --mode style-xmas",
|
|
23
23
|
"fixEsmImports": "node tools/fixEsmImportsInDeclarations.mjs",
|
|
24
|
+
"fixCssMinified": "node tools/fixCssMinified.mjs",
|
|
24
25
|
"copy-to-package": "copyfiles package.json README.md LICENSE package",
|
|
25
26
|
"test": "vitest run",
|
|
26
27
|
"test:ci": "vitest run --reporter=junit --outputFile.junit=./results/jest/junit.xml",
|