@rio-cloud/rio-uikit 0.16.1-beta-6 → 0.16.1-beta-9

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 (48) hide show
  1. package/lib/components/applicationHeader/ApplicationHeader.js +9 -7
  2. package/lib/components/applicationHeader/NavItems.js +8 -8
  3. package/lib/components/applicationLayout/ApplicationLayout.js +5 -8
  4. package/lib/components/applicationLayout/ApplicationLayoutBody.js +1 -3
  5. package/lib/components/applicationLayout/ApplicationLayoutSidebar.js +1 -2
  6. package/lib/components/applicationLayout/SubNavigation.js +60 -0
  7. package/lib/components/assetTree/Tree.js +151 -35
  8. package/lib/components/assetTree/TreeSelectAll.js +1 -1
  9. package/lib/components/assetTree/TreeSummary.js +11 -6
  10. package/lib/components/assetTree/TypeCounter.js +47 -8
  11. package/lib/components/charts/AreaChart.js +5 -3
  12. package/lib/components/charts/BarChart.js +5 -3
  13. package/lib/components/charts/ChartTooltip.js +14 -0
  14. package/lib/components/charts/LineChart.js +4 -2
  15. package/lib/components/charts/PieChart.js +5 -3
  16. package/lib/components/charts/RadialBarChart.js +4 -4
  17. package/lib/components/navigation/AppNavigationBar.js +64 -0
  18. package/lib/components/sidebars/Sidebar.js +16 -68
  19. package/lib/es/AppNavigationBar.d.ts +5 -0
  20. package/lib/es/AppNavigationBar.js +15 -0
  21. package/lib/es/ChartTooltip.d.ts +5 -0
  22. package/lib/es/ChartTooltip.js +15 -0
  23. package/lib/es/DeviceUtils.d.ts +6 -0
  24. package/lib/es/SubNavigation.d.ts +5 -0
  25. package/lib/es/SubNavigation.js +15 -0
  26. package/lib/es/deviceUtils.js +36 -0
  27. package/lib/es/useResizeObserver.d.ts +4 -0
  28. package/lib/es/useResizeObserver.js +15 -0
  29. package/lib/hooks/useClickOutside.js +2 -1
  30. package/lib/hooks/useResizeObserver.js +54 -0
  31. package/lib/hooks/useWindowResize.js +8 -5
  32. package/lib/style/css/_exports/rio-website.less +58 -6
  33. package/lib/style/css/_exports/vw-uikit.less +1 -1
  34. package/lib/style/css/animations/_imports.less +1 -0
  35. package/lib/style/css/animations/pulsing.less +5 -0
  36. package/lib/style/css/components/ApplicationHeader.less +244 -245
  37. package/lib/style/css/components/ApplicationLayout.less +10 -6
  38. package/lib/style/css/components/AssetTree.less +0 -4
  39. package/lib/style/css/design/buttons.less +4 -1
  40. package/lib/style/css/design/rioglyph.less +1 -12
  41. package/lib/style/fonts/rioglyph/rioglyph.less +56 -1
  42. package/lib/style/fonts/rioglyph/rioglyph.svg +68 -2
  43. package/lib/style/fonts/rioglyph/rioglyph.ttf +0 -0
  44. package/lib/style/fonts/rioglyph/rioglyph.woff +0 -0
  45. package/lib/types.ts +34 -10
  46. package/lib/utils/deviceUtils.js +19 -2
  47. package/lib/version.json +1 -1
  48. package/package.json +5 -3
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = void 0;
9
+
10
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
+
12
+ var _react = require("react");
13
+
14
+ // inspired from https://tobbelindstrom.com/blog/resize-observer-hook/
15
+ var useResizeObserver = function useResizeObserver() {
16
+ var _useState = (0, _react.useState)({}),
17
+ _useState2 = (0, _slicedToArray2.default)(_useState, 2),
18
+ observerEntry = _useState2[0],
19
+ setObserverEntry = _useState2[1];
20
+
21
+ var _useState3 = (0, _react.useState)(null),
22
+ _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
23
+ node = _useState4[0],
24
+ setNode = _useState4[1];
25
+
26
+ var observer = (0, _react.useRef)(null);
27
+ var disconnect = (0, _react.useCallback)(function () {
28
+ var _observer$current;
29
+
30
+ return (_observer$current = observer.current) === null || _observer$current === void 0 ? void 0 : _observer$current.disconnect();
31
+ }, []);
32
+ var observe = (0, _react.useCallback)(function () {
33
+ observer.current = new ResizeObserver(function (_ref) {
34
+ var _ref2 = (0, _slicedToArray2.default)(_ref, 1),
35
+ entry = _ref2[0];
36
+
37
+ return setObserverEntry(entry);
38
+ });
39
+
40
+ if (node) {
41
+ observer.current.observe(node);
42
+ }
43
+ }, [node]);
44
+ (0, _react.useLayoutEffect)(function () {
45
+ observe();
46
+ return function () {
47
+ return disconnect();
48
+ };
49
+ }, [disconnect, observe]);
50
+ return [setNode, observerEntry];
51
+ };
52
+
53
+ var _default = useResizeObserver;
54
+ exports.default = _default;
@@ -5,19 +5,22 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.default = useWindowResize;
8
+ exports.default = void 0;
9
9
 
10
10
  var _react = require("react");
11
11
 
12
12
  var _throttle = _interopRequireDefault(require("lodash/fp/throttle"));
13
13
 
14
- function useWindowResize(onResizeCallback) {
14
+ var useWindowResize = function useWindowResize(onResizeCallback) {
15
15
  var timeout = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 300;
16
16
  (0, _react.useEffect)(function () {
17
17
  var throttledCallback = (0, _throttle.default)(timeout, onResizeCallback);
18
- window.addEventListener('resize', throttledCallback, false);
18
+ window.addEventListener('resize', throttledCallback);
19
19
  return function () {
20
- return window.removeEventListener('resize', throttledCallback, true);
20
+ window.removeEventListener('resize', throttledCallback);
21
21
  };
22
22
  }, [onResizeCallback, timeout]);
23
- }
23
+ };
24
+
25
+ var _default = useWindowResize;
26
+ exports.default = _default;
@@ -195,6 +195,10 @@ body .module-content {
195
195
  background-size: cover;
196
196
  }
197
197
 
198
+ .SubmoduleNavigation .SubmoduleNavigation {
199
+ padding-left: 0;
200
+ }
201
+
198
202
  html.show-handheld-navigation & {
199
203
  position: fixed;
200
204
  top: 0;
@@ -222,7 +226,9 @@ body .module-content {
222
226
  }
223
227
 
224
228
  .SubmoduleNavigation {
229
+ border-bottom: none;
225
230
  display: block;
231
+ height: auto;
226
232
  margin: 50px 0;
227
233
  padding-left: 0;
228
234
  text-align: center;
@@ -329,6 +335,7 @@ body .module-content {
329
335
  @media (min-width: @screen-ls) {
330
336
  > .SubmoduleNavigation {
331
337
  max-height: calc(~"100vh - 100px");
338
+ height: auto;
332
339
  overflow: auto;
333
340
  -webkit-overflow-scrolling: touch;
334
341
  }
@@ -554,6 +561,29 @@ body .module-content {
554
561
  }
555
562
  }
556
563
 
564
+ &.btn-default {
565
+ .btn {
566
+ .button-variant(
567
+ ~'!important';
568
+ @btn-default-bg;
569
+ @btn-default-border;
570
+ @btn-default-color;
571
+ @btn-default-color;
572
+ @btn-default-color;
573
+ @btn-default-color;
574
+ darken(@btn-default-color, 17%);
575
+ darken(@btn-default-border, 12%);
576
+ darken(@btn-default-border, 12%);
577
+ darken(@btn-default-border, 25%);
578
+ darken(@btn-default-border, 25%);
579
+ @btn-default-bg;
580
+ @btn-default-bg;
581
+ @btn-default-bg;
582
+ @btn-default-bg;
583
+ );
584
+ }
585
+ }
586
+
557
587
  &.btn-white {
558
588
  .btn {
559
589
  .button-variant(
@@ -1544,6 +1574,26 @@ body .module-content {
1544
1574
  }
1545
1575
  }
1546
1576
  }
1577
+
1578
+ &-always {
1579
+ .section-layout {
1580
+ padding-left: 0;
1581
+ padding-right: 0;
1582
+
1583
+ .section-layout-container {
1584
+ max-width: none;
1585
+ padding-left: 0;
1586
+ padding-right: 0;
1587
+
1588
+ .section-layout-container-row {
1589
+ .section-content-container-col {
1590
+ padding-left: 0;
1591
+ padding-right: 0;
1592
+ }
1593
+ }
1594
+ }
1595
+ }
1596
+ }
1547
1597
  }
1548
1598
 
1549
1599
  &-marketplace-details-panel {
@@ -1612,6 +1662,14 @@ body .module-content {
1612
1662
  }
1613
1663
  }
1614
1664
 
1665
+ &-hide-background-on-mobile {
1666
+ @media (max-width: @screen-ls) {
1667
+ .section-wrapper-background-image {
1668
+ display: none;
1669
+ }
1670
+ }
1671
+ }
1672
+
1615
1673
  &-overlay-light {
1616
1674
  .section-wrapper-background-image,
1617
1675
  .section-content-container-background-image {
@@ -1852,12 +1910,6 @@ blockquote {
1852
1910
  .anchor {
1853
1911
  margin-top: -50px;
1854
1912
  }
1855
-
1856
- // .preset-rimless {
1857
- // > .anchor {
1858
- // margin-top: -50px;
1859
- // }
1860
- // }
1861
1913
  }
1862
1914
 
1863
1915
  .ApplicationLayoutBody {
@@ -173,7 +173,7 @@
173
173
  display: none;
174
174
  }
175
175
 
176
- .navbar-nav {
176
+ .nav {
177
177
  display: flex;
178
178
  justify-content: center !important;
179
179
 
@@ -1,6 +1,7 @@
1
1
  @import (less) "collapse.less";
2
2
  @import (less) "fade.less";
3
3
  @import (less) "pinging.less";
4
+ @import (less) "pulsing.less";
4
5
  @import (less) "rotate.less";
5
6
  @import (less) "scale.less";
6
7
  @import (less) "slide.less";
@@ -0,0 +1,5 @@
1
+ @keyframes pulsing {
2
+ 50% {
3
+ opacity:.5
4
+ }
5
+ }