@emerson-eps/color-tables 0.2.12 → 0.2.15

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 (120) hide show
  1. package/dist/component/ColorSelector/ColorSelectorAccordion.js +2 -2
  2. package/dist/component/ColorSelector/ColorSelectorAccordion.js.map +1 -1
  3. package/dist/component/ColorSelector/ColorSelectorComponent.d.ts +1 -2
  4. package/dist/component/ColorSelector/ColorSelectorComponent.js +7 -7
  5. package/dist/component/ColorSelector/ColorSelectorComponent.js.map +1 -1
  6. package/dist/component/ColorSelector/ColorSelectorWrapper.d.ts +6 -1
  7. package/dist/component/ColorSelector/ColorSelectorWrapper.js +9 -10
  8. package/dist/component/ColorSelector/ColorSelectorWrapper.js.map +1 -1
  9. package/dist/component/Legend/ColorLegend.js +2 -2
  10. package/dist/component/Legend/ColorLegend.js.map +1 -1
  11. package/dist/component/Legend/ContinuousLegend.d.ts +1 -1
  12. package/dist/component/Legend/ContinuousLegend.js.map +1 -1
  13. package/dist/component/Legend/DiscreteLegend.d.ts +1 -1
  14. package/dist/component/Legend/DiscreteLegend.js +4 -8
  15. package/dist/component/Legend/DiscreteLegend.js.map +1 -1
  16. package/dist/component/Utils/continousLegend.d.ts +1 -1
  17. package/dist/component/Utils/discreteLegend.js +14 -27
  18. package/dist/component/Utils/discreteLegend.js.map +1 -1
  19. package/dist/component/{Utils/ColorTableTypes.d.ts → colorTableTypes.d.ts} +0 -0
  20. package/dist/component/colorTableTypes.js +2 -0
  21. package/dist/component/colorTableTypes.js.map +1 -0
  22. package/dist/index.d.ts +7 -5
  23. package/dist/index.js +3 -4
  24. package/dist/index.js.map +1 -1
  25. package/package.json +6 -3
  26. package/.storybook/main.js +0 -11
  27. package/.storybook/preview.js +0 -9
  28. package/.vscode/settings.json +0 -3
  29. package/dist/component/Utils/ColorTableTypes.js +0 -2
  30. package/dist/component/Utils/ColorTableTypes.js.map +0 -1
  31. package/dist/stories/ColorLegends/ColorSelector/Selector.stories.d.ts +0 -7
  32. package/dist/stories/ColorLegends/ColorSelector/Selector.stories.js +0 -11
  33. package/dist/stories/ColorLegends/ColorSelector/Selector.stories.js.map +0 -1
  34. package/dist/stories/ColorLegends/ContinousLegends/MD.stories.d.ts +0 -7
  35. package/dist/stories/ColorLegends/ContinousLegends/MD.stories.js +0 -38
  36. package/dist/stories/ColorLegends/ContinousLegends/MD.stories.js.map +0 -1
  37. package/dist/stories/ColorLegends/ContinousLegends/NTG.stories.d.ts +0 -7
  38. package/dist/stories/ColorLegends/ContinousLegends/NTG.stories.js +0 -38
  39. package/dist/stories/ColorLegends/ContinousLegends/NTG.stories.js.map +0 -1
  40. package/dist/stories/ColorLegends/ContinousLegends/PermTot.stories.d.ts +0 -7
  41. package/dist/stories/ColorLegends/ContinousLegends/PermTot.stories.js +0 -38
  42. package/dist/stories/ColorLegends/ContinousLegends/PermTot.stories.js.map +0 -1
  43. package/dist/stories/ColorLegends/ContinousLegends/Permeability.stories.d.ts +0 -7
  44. package/dist/stories/ColorLegends/ContinousLegends/Permeability.stories.js +0 -38
  45. package/dist/stories/ColorLegends/ContinousLegends/Permeability.stories.js.map +0 -1
  46. package/dist/stories/ColorLegends/ContinousLegends/PoroTot.stories.d.ts +0 -7
  47. package/dist/stories/ColorLegends/ContinousLegends/PoroTot.stories.js +0 -38
  48. package/dist/stories/ColorLegends/ContinousLegends/PoroTot.stories.js.map +0 -1
  49. package/dist/stories/ColorLegends/ContinousLegends/Porosity.stories.d.ts +0 -7
  50. package/dist/stories/ColorLegends/ContinousLegends/Porosity.stories.js +0 -38
  51. package/dist/stories/ColorLegends/ContinousLegends/Porosity.stories.js.map +0 -1
  52. package/dist/stories/ColorLegends/ContinousLegends/SW.stories.d.ts +0 -7
  53. package/dist/stories/ColorLegends/ContinousLegends/SW.stories.js +0 -38
  54. package/dist/stories/ColorLegends/ContinousLegends/SW.stories.js.map +0 -1
  55. package/dist/stories/ColorLegends/DiscreteLegends/Facies.stories.d.ts +0 -7
  56. package/dist/stories/ColorLegends/DiscreteLegends/Facies.stories.js +0 -47
  57. package/dist/stories/ColorLegends/DiscreteLegends/Facies.stories.js.map +0 -1
  58. package/dist/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.d.ts +0 -7
  59. package/dist/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.js +0 -47
  60. package/dist/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.js.map +0 -1
  61. package/dist/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.d.ts +0 -7
  62. package/dist/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.js +0 -39
  63. package/dist/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.js.map +0 -1
  64. package/dist/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.d.ts +0 -7
  65. package/dist/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.js +0 -39
  66. package/dist/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.js.map +0 -1
  67. package/dist/stories/ColorLegends/DiscreteLegends/RDE.stories.d.ts +0 -7
  68. package/dist/stories/ColorLegends/DiscreteLegends/RDE.stories.js +0 -42
  69. package/dist/stories/ColorLegends/DiscreteLegends/RDE.stories.js.map +0 -1
  70. package/dist/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.d.ts +0 -7
  71. package/dist/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.js +0 -53
  72. package/dist/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.js.map +0 -1
  73. package/dist/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.d.ts +0 -7
  74. package/dist/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.js +0 -42
  75. package/dist/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.js.map +0 -1
  76. package/dist/stories/ColorLegends/DiscreteLegends/Zonelog.stories.d.ts +0 -7
  77. package/dist/stories/ColorLegends/DiscreteLegends/Zonelog.stories.js +0 -52
  78. package/dist/stories/ColorLegends/DiscreteLegends/Zonelog.stories.js.map +0 -1
  79. package/dist/stories/ColorLegends/LegendWithSelector/DiscreteLegendWithSelector.stories.d.ts +0 -7
  80. package/dist/stories/ColorLegends/LegendWithSelector/DiscreteLegendWithSelector.stories.js +0 -52
  81. package/dist/stories/ColorLegends/LegendWithSelector/DiscreteLegendWithSelector.stories.js.map +0 -1
  82. package/dist/stories/ColorLegends/LegendWithSelector/LegendWithSelector.stories.d.ts +0 -7
  83. package/dist/stories/ColorLegends/LegendWithSelector/LegendWithSelector.stories.js +0 -38
  84. package/dist/stories/ColorLegends/LegendWithSelector/LegendWithSelector.stories.js.map +0 -1
  85. package/dist/stories/ColorLegends/SingleComponent/Single.stories.d.ts +0 -7
  86. package/dist/stories/ColorLegends/SingleComponent/Single.stories.js +0 -58
  87. package/dist/stories/ColorLegends/SingleComponent/Single.stories.js.map +0 -1
  88. package/src/component/ColorSelector/ColorSelectorAccordion.tsx +0 -54
  89. package/src/component/ColorSelector/ColorSelectorComponent.tsx +0 -312
  90. package/src/component/ColorSelector/ColorSelectorWrapper.tsx +0 -119
  91. package/src/component/Legend/ColorLegend.tsx +0 -106
  92. package/src/component/Legend/ContinuousLegend.tsx +0 -233
  93. package/src/component/Legend/DiscreteLegend.tsx +0 -209
  94. package/src/component/Utils/ColorTableTypes.ts +0 -6
  95. package/src/component/Utils/continousLegend.ts +0 -73
  96. package/src/component/Utils/d3ColorScale.ts +0 -84
  97. package/src/component/Utils/discreteLegend.ts +0 -84
  98. package/src/component/color-tables.json +0 -203
  99. package/src/custom.d.ts +0 -1
  100. package/src/index.ts +0 -26
  101. package/src/stories/ColorLegends/ColorSelector/Selector.stories.jsx +0 -12
  102. package/src/stories/ColorLegends/ContinousLegends/MD.stories.jsx +0 -29
  103. package/src/stories/ColorLegends/ContinousLegends/NTG.stories.jsx +0 -29
  104. package/src/stories/ColorLegends/ContinousLegends/PermTot.stories.jsx +0 -29
  105. package/src/stories/ColorLegends/ContinousLegends/Permeability.stories.jsx +0 -29
  106. package/src/stories/ColorLegends/ContinousLegends/PoroTot.stories.jsx +0 -29
  107. package/src/stories/ColorLegends/ContinousLegends/Porosity.stories.jsx +0 -29
  108. package/src/stories/ColorLegends/ContinousLegends/SW.stories.jsx +0 -29
  109. package/src/stories/ColorLegends/DiscreteLegends/Facies.stories.jsx +0 -39
  110. package/src/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.jsx +0 -39
  111. package/src/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.jsx +0 -31
  112. package/src/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.jsx +0 -31
  113. package/src/stories/ColorLegends/DiscreteLegends/RDE.stories.jsx +0 -34
  114. package/src/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.jsx +0 -45
  115. package/src/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.jsx +0 -34
  116. package/src/stories/ColorLegends/DiscreteLegends/Zonelog.stories.jsx +0 -46
  117. package/src/stories/ColorLegends/LegendWithSelector/DiscreteLegendWithSelector.stories.jsx +0 -44
  118. package/src/stories/ColorLegends/LegendWithSelector/LegendWithSelector.stories.jsx +0 -30
  119. package/src/stories/ColorLegends/SingleComponent/Single.stories.jsx +0 -51
  120. package/tsconfig.json +0 -23
@@ -1,34 +0,0 @@
1
- import React from "react";
2
- import {DiscreteColorLegend} from "../../../component/Legend/DiscreteLegend";
3
- import colorTables from "../../../component/color-tables.json";
4
-
5
- export default {
6
- component: DiscreteColorLegend,
7
- title: "Legends/DiscreteColorLegend",
8
- };
9
-
10
- const discreteData = {
11
- "0": [[], 0],
12
- "4": [[], 4],
13
- "UPPER": [[], 1],
14
- "MID": [[], 2],
15
- "LOWER": [[], 3]
16
- };
17
- const dataObjectName = "Wells / ZONE_MAIN";
18
- const position = [16, 10];
19
- const horizontal = true;
20
- const colorName = "Stratigraphy";
21
-
22
- const Template = (args) => {
23
- return <DiscreteColorLegend {...args} />;
24
- };
25
-
26
- export const ZoneMainTemplate = Template.bind({});
27
- ZoneMainTemplate.args = {
28
- discreteData,
29
- dataObjectName,
30
- position,
31
- colorName,
32
- colorTables,
33
- horizontal,
34
- };
@@ -1,46 +0,0 @@
1
- import React from "react";
2
- import {DiscreteColorLegend} from "../../../component/Legend/DiscreteLegend";
3
- import colorTables from "../../../component/color-tables.json";
4
-
5
- export default {
6
- component: DiscreteColorLegend,
7
- title: "Legends/DiscreteColorLegend",
8
- };
9
-
10
- const discreteData = {
11
- "Above_BCU": [[], 0],
12
- "ABOVE": [[], 1],
13
- "H12": [[], 2],
14
- "H11": [[], 3],
15
- "H10": [[], 4],
16
- "H9": [[], 5],
17
- "H8": [[], 6],
18
- "H7": [[], 7],
19
- "H6": [[], 8],
20
- "H5": [[], 9],
21
- "H4": [[], 10],
22
- "H3": [[], 11],
23
- "H2": [[], 12],
24
- "H1": [[], 13],
25
- "BELOW": [[], 14]
26
- };
27
- const dataObjectName = "Wells / ZONELOG";
28
- const position = [16, 10];
29
- const horizontal = true;
30
- const colorName = "Stratigraphy";
31
-
32
- const Template = (args) => {
33
- return <DiscreteColorLegend {...args} />;
34
- };
35
-
36
- export const ZonelogTemplate = Template.bind({});
37
- ZonelogTemplate.args = {
38
- discreteData,
39
- dataObjectName,
40
- position,
41
- colorName,
42
- colorTables,
43
- horizontal,
44
- };
45
-
46
-
@@ -1,44 +0,0 @@
1
- import React from "react";
2
- import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
3
- import colorTables from "../../../component/color-tables.json";
4
-
5
- export default {
6
- component: DiscreteColorLegend,
7
- title: "Legends/DiscreteLegendWithSelector",
8
- };
9
-
10
- const discreteData = {
11
- "Above_BCU": [[], 0],
12
- "ABOVE": [[], 1],
13
- "H12": [[], 2],
14
- "H11": [[], 3],
15
- "H10": [[], 4],
16
- "H9": [[], 5],
17
- "H8": [[], 6],
18
- "H7": [[], 7],
19
- "H6": [[], 8],
20
- "H5": [[], 9],
21
- "H4": [[], 10],
22
- "H3": [[], 11],
23
- "H2": [[], 12],
24
- "H1": [[], 13],
25
- "BELOW": [[], 14]
26
- };
27
- const dataObjectName = "Wells / ZONELOG";
28
- const position = [16, 10];
29
- const horizontal = true;
30
- const colorName = "Stratigraphy";
31
-
32
- const Template = (args) => {
33
- return <DiscreteColorLegend {...args} />;
34
- };
35
-
36
- export const discreteLegendWithSelector = Template.bind({});
37
- discreteLegendWithSelector.args = {
38
- discreteData,
39
- dataObjectName,
40
- position,
41
- horizontal,
42
- colorName,
43
- colorTables,
44
- };
@@ -1,30 +0,0 @@
1
- import React from "react";
2
- import { ContinuousLegend } from "../../../component/Legend/ContinuousLegend";
3
- import colorTables from "../../../component/color-tables.json";
4
-
5
- export default {
6
- component: ContinuousLegend,
7
- title: "Legends/LegendWithSelector",
8
- };
9
-
10
- const min = 0;
11
- const max = 0.35;
12
- const dataObjectName = "Legend";
13
- const position = [16, 10];
14
- const horizontal = true;
15
- const colorName = "Time/Depth";
16
-
17
- const Template = (args) => {
18
- return <ContinuousLegend {...args} />;
19
- };
20
-
21
- export const legendWithSelector = Template.bind({});
22
- legendWithSelector.args = {
23
- min,
24
- max,
25
- dataObjectName,
26
- position,
27
- horizontal,
28
- colorName,
29
- colorTables,
30
- };
@@ -1,51 +0,0 @@
1
- import React from "react";
2
- import colorTables from "../../../component/color-tables.json";
3
- import {ColorLegend} from "../../../component/Legend/ColorLegend";
4
-
5
- export default {
6
- component: ColorLegend,
7
- title: "Legends/SingleComponent",
8
- };
9
-
10
- // prop for continous legend
11
- const min = 0;
12
- const max = 0.35;
13
- const dataObjectName = "Legend";
14
- const position = [16, 10];
15
- const horizontal = true;
16
- const colorName = "Pastel1";
17
-
18
- // prop for discrete data
19
- const discreteData = {
20
- "Above_BCU": [[], 0],
21
- "ABOVE": [[], 1],
22
- "H12": [[], 2],
23
- "H11": [[], 3],
24
- "H10": [[], 4],
25
- "H9": [[], 5],
26
- "H8": [[], 6],
27
- "H7": [[], 7],
28
- "H6": [[], 8],
29
- "H5": [[], 9],
30
- "H4": [[], 10],
31
- "H3": [[], 11],
32
- "H2": [[], 12],
33
- "H1": [[], 13],
34
- "BELOW": [[], 14]
35
- };
36
-
37
- const Template = (args) => {
38
- return <ColorLegend {...args} />;
39
- };
40
-
41
- export const legendWithSelector = Template.bind({});
42
- legendWithSelector.args = {
43
- min,
44
- max,
45
- dataObjectName,
46
- position,
47
- horizontal,
48
- colorName,
49
- colorTables,
50
- discreteData,
51
- };
package/tsconfig.json DELETED
@@ -1,23 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "outDir": "dist",
4
- "module": "es6",
5
- "target": "es5",
6
- "sourceMap": true,
7
- "allowJs": true,
8
- "jsx": "react",
9
- "declaration": true,
10
- "moduleResolution": "node",
11
- "forceConsistentCasingInFileNames": true,
12
- "noImplicitReturns": false,
13
- "noImplicitThis": true,
14
- "noImplicitAny": true,
15
- "strictNullChecks": true,
16
- "suppressImplicitAnyIndexErrors": true,
17
- "noUnusedLocals": false,
18
- "noUnusedParameters": false,
19
- "resolveJsonModule": true,
20
- },
21
- "include": ["src", "./src/custom.d.ts"],
22
- "exclude": ["node_modules"]
23
- }