blue-react 7.9.0 → 7.10.2

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/dist/style.scss CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Blue React v7.9.0 (https://bruegmann.github.io/blue-react)
2
+ * Blue React v7.10.2 (https://bruegmann.github.io/blue-react)
3
3
  * Licensed under GNU General Public License v3.0 (https://github.com/bruegmann/blue-react/blob/master/LICENSE).
4
4
  */
5
5
 
@@ -26,7 +26,7 @@ $blue-actions-indicator-height: 2rem !default;
26
26
  }
27
27
 
28
28
  .blue-actions-indicator {
29
- padding-bottom: $spacer / 2;
29
+ padding-bottom: $spacer * 0.5;
30
30
  &::before {
31
31
  transform: rotate(45deg);
32
32
  -webkit-transform: rotate(45deg);
@@ -127,7 +127,7 @@ $blue-actions-indicator-height: 2rem !default;
127
127
  background-color: $theme;
128
128
  @extend .mt-1 !optional;
129
129
  @extend .me-1 !optional;
130
- border-radius: $blue-actions-indicator-height / 2;
130
+ border-radius: $blue-actions-indicator-height * 0.5;
131
131
  box-shadow: $box-shadow;
132
132
 
133
133
  &.closed {
@@ -1,5 +1,4 @@
1
1
  .blue-app-search {
2
- height: $normal-size;
3
2
  display: flex;
4
3
  align-items: center;
5
4
  border-radius: $input-border-radius;
@@ -1,14 +1,14 @@
1
1
  @mixin actions-break($width) {
2
2
  @media screen and (max-width: $width) {
3
3
  top: 0;
4
- border-radius: $blue-actions-indicator-height / 2;
4
+ border-radius: $blue-actions-indicator-height * 0.5;
5
5
  box-shadow: $box-shadow;
6
6
  background-color: $header-bg;
7
7
 
8
8
  .blue-actions-controls {
9
9
  & > * {
10
- margin-top: $spacer / 2;
11
- margin-bottom: $spacer / 2;
10
+ margin-top: $spacer * 0.5;
11
+ margin-bottom: $spacer * 0.5;
12
12
  }
13
13
  }
14
14
 
@@ -31,13 +31,13 @@
31
31
  .blue-actions-controls {
32
32
  background: transparent;
33
33
  display: flex;
34
- margin-left: -$spacer / 2;
35
- margin-right: -$spacer / 2;
34
+ margin-left: -$spacer * 0.5;
35
+ margin-right: -$spacer * 0.5;
36
36
  padding-right: $spacer;
37
37
 
38
38
  & > * {
39
- margin-left: $spacer / 2;
40
- margin-right: $spacer / 2;
39
+ margin-left: $spacer * 0.5;
40
+ margin-right: $spacer * 0.5;
41
41
  }
42
42
  }
43
43
 
@@ -54,7 +54,7 @@
54
54
  top: 50%;
55
55
  left: 50%;
56
56
  transform: translate(-50%, -50%);
57
- margin-left: ($slider-size / 2);
57
+ margin-left: ($slider-size * 0.5);
58
58
  transition: margin-left 0.4s;
59
59
  color: $color;
60
60
  }
@@ -74,7 +74,7 @@
74
74
 
75
75
  &::after {
76
76
  color: white;
77
- margin-left: ($slider-size / 2) * -1;
77
+ margin-left: ($slider-size * 0.5) * -1;
78
78
  }
79
79
  }
80
80
  }
@@ -70,17 +70,23 @@ export interface GridState {
70
70
  }
71
71
  /**
72
72
  * The main component. As soon this component is mounted, it is globally available under `window.blueGridRef`.
73
- * Also you can append your own event listeners with `blueGridRef.addEventListener(eventName, (prevProps, prevState) => { })`
74
- * and remove it with `blueGridRef.removeEventListener(eventName, listener)`.
73
+ * You can also append your own event listeners.
75
74
  *
76
- * Allowed event listeners:
75
+ * Allowed events:
77
76
  *
78
77
  * * **componentDidUpdate** - Component was updated.
79
- * Example: `blueGridRef.addEventListener("componentDidUpdate", (prevProps, prevState) => { })`
78
+ * Example: `window.blueGridRef.addEventListener("componentDidUpdate", (prevProps, prevState) => { })`
80
79
  * * **pageDidShowAgain** - Page appeared again with the same old state. In the callback function you can reinitialize things.
81
- * Example: `blueGridRef.addEventListener("pageDidShowAgain", "home", (prevProps, prevState) => { })`
80
+ * Example: `window.blueGridRef.addEventListener("pageDidShowAgain", "home", (prevProps, prevState) => { })`
82
81
  * * **pageDidHide** - This page disappeared and another page appears instead.
83
- * Example: `blueGridRef.addEventListener("pageDidHide", "home", (prevProps, prevState) => { })`
82
+ * Example: `window.blueGridRef.addEventListener("pageDidHide", "home", (prevProps, prevState) => { })`
83
+ *
84
+ * Method to add event listeners:
85
+ * * `window.blueGridRef.`**addEventListener**`(eventName: string, param2: any, param3: any, listenerId?: string)`
86
+ *
87
+ * Methods to remove event listeners:
88
+ * * `window.blueGridRef.`**removeEventListener**`(eventName: string, listenerId: string)`
89
+ * * `window.blueGridRef.`**removeDuplicatedEventListeners**`()` - Will automatically be called when running `addEventListener`
84
90
  */
85
91
  export default class Grid extends Component<GridProps, GridState> {
86
92
  defaultMatch: string[];
@@ -106,7 +112,8 @@ export default class Grid extends Component<GridProps, GridState> {
106
112
  toggleSidebar(event: any): void;
107
113
  hideSidebar(e: any): void;
108
114
  initMatch(): void;
109
- addEventListener(param1: any, param2: any, param3: any): void;
110
- removeEventListener(type: string, listener: any): void;
115
+ addEventListener(param1: any, param2: any, param3: any, listenerId?: string): void;
116
+ removeEventListener(type: string, listenerId: string): void;
117
+ removeDuplicatedEventListeners(): void;
111
118
  render(): JSX.Element;
112
119
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blue-react",
3
- "version": "7.9.0",
3
+ "version": "7.10.2",
4
4
  "description": "Blue React Components",
5
5
  "license": "LGPL-3.0-or-later",
6
6
  "main": "index.js",