@longline/aqua-ui 1.0.35 → 1.0.37

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.
@@ -1,6 +1,8 @@
1
1
  import { IGradientStop } from "../../Types";
2
2
  declare class PresetGradients {
3
- static Bathymetry: IGradientStop[];
4
- static Oxygen: IGradientStop[];
3
+ static Green: IGradientStop[];
4
+ static Blue: IGradientStop[];
5
+ static Red: IGradientStop[];
6
+ static Rainbow: IGradientStop[];
5
7
  }
6
8
  export { PresetGradients };
@@ -1,13 +1,33 @@
1
1
  var PresetGradients = /** @class */ (function () {
2
2
  function PresetGradients() {
3
3
  }
4
- PresetGradients.Bathymetry = [
5
- { pos: 0.0, color: '#0000ffff' },
6
- { pos: 1.0, color: '#000000ff' }
4
+ PresetGradients.Green = [
5
+ { pos: 0.00, color: '#bddb39' },
6
+ { pos: 0.25, color: '#78ca5a' },
7
+ { pos: 0.50, color: '#3eb373' },
8
+ { pos: 0.75, color: '#199980' },
9
+ { pos: 1.00, color: '#287d7d' },
7
10
  ];
8
- PresetGradients.Oxygen = [
9
- { pos: 0.0, color: 'red' },
10
- { pos: 1.0, color: 'crimson' }
11
+ PresetGradients.Blue = [
12
+ { pos: 0.00, color: '#04bfbf' },
13
+ { pos: 0.25, color: '#00a0c0' },
14
+ { pos: 0.50, color: '#0084ad' },
15
+ { pos: 0.75, color: '#006c99' },
16
+ { pos: 1.00, color: '#1510f0' },
17
+ ];
18
+ PresetGradients.Red = [
19
+ { pos: 0.00, color: '#450003' },
20
+ { pos: 0.25, color: '#6f111a' },
21
+ { pos: 0.50, color: '#9d262c' },
22
+ { pos: 0.75, color: '#cd3c3f' },
23
+ { pos: 1.00, color: '#ff5252' },
24
+ ];
25
+ PresetGradients.Rainbow = [
26
+ { pos: 0.00, color: '#00796b' },
27
+ { pos: 0.25, color: '#3993cb' },
28
+ { pos: 0.50, color: '#d494e3' },
29
+ { pos: 0.75, color: '#ffb7b2' },
30
+ { pos: 1.00, color: '#fff176' },
11
31
  ];
12
32
  return PresetGradients;
13
33
  }());
@@ -50,6 +50,12 @@ var ListViewBase = function (props) {
50
50
  React.useEffect(function () {
51
51
  setData(sortItems(props.data, sort, reverse));
52
52
  }, [props.data, sort, reverse]);
53
+ // If children change, then update columns state.
54
+ React.useEffect(function () {
55
+ setColumns(React.Children.toArray(children).map(function (c) {
56
+ return c.props;
57
+ }));
58
+ }, [props.children]);
53
59
  // Change sort:
54
60
  var handleSort = function (column) {
55
61
  var _a;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longline/aqua-ui",
3
- "version": "1.0.35",
3
+ "version": "1.0.37",
4
4
  "description": "AquaUI",
5
5
  "author": "Alexander van Oostenrijk / Longline Environment",
6
6
  "license": "Commercial",