@manufac/react-components-potli 1.0.2 → 1.0.3

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.
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Select } from "@mantine/core";
3
+ export function CustomColorSelect(props) {
4
+ return _jsx(Select, { ...props });
5
+ }
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/CustomColorPalette/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAQvC,MAAM,UAAU,iBAAiB,CAAC,KAAkB;IAClD,OAAO,KAAC,MAAM,OAAK,KAAK,GAAI,CAAC;AAC/B,CAAC"}
@@ -0,0 +1,46 @@
1
+ import { schemeAccent, schemeBlues, schemeBrBG, schemeBuPu, schemeCategory10, schemeDark2, schemeGreens, schemeGreys, schemeObservable10, schemeOranges, schemeOrRd, schemePaired, schemePiYG, schemePRGn, schemePuBuGn, schemePuOr, schemePurples, schemeRdBu, schemeRdGy, schemeRdYlBu, schemeRdYlGn, schemeReds, schemeSet1, schemeSet2, schemeSpectral, schemeTableau10, schemeYlOrBr, schemeYlOrRd, } from "d3-scale-chromatic";
2
+ export const ColorSchemeMap = {
3
+ Categorical: {
4
+ "color-scheme-category-10": schemeCategory10,
5
+ "color-scheme-accent": schemeAccent,
6
+ "color-scheme-dark-2": schemeDark2,
7
+ "color-scheme-observable-10": schemeObservable10,
8
+ "color-scheme-paired": schemePaired,
9
+ "color-scheme-set-1": schemeSet1,
10
+ "color-scheme-set-2": schemeSet2,
11
+ "color-scheme-tableau-10": schemeTableau10,
12
+ },
13
+ SequentialSingleHue: {
14
+ "color-scheme-blues": schemeBlues[9],
15
+ "color-scheme-greens": schemeGreens[9],
16
+ "color-scheme-greys": schemeGreys[9],
17
+ "color-scheme-oranges": schemeOranges[9],
18
+ "color-scheme-purples": schemePurples[9],
19
+ "color-scheme-reds": schemeReds[9],
20
+ },
21
+ SequentialMultiHue: {
22
+ "color-scheme-yellow-orange-brown": schemeYlOrBr[9],
23
+ "color-scheme-yellow-orange-red": schemeYlOrRd[9],
24
+ "color-scheme-orange-red": schemeOrRd[9],
25
+ "color-scheme-purple-blue-green": schemePuBuGn[9],
26
+ "color-scheme-blue-purple": schemeBuPu[9],
27
+ },
28
+ Diverging: {
29
+ "color-scheme-brown-blue-green": schemeBrBG[11],
30
+ "color-scheme-purple-green": schemePRGn[11],
31
+ "color-scheme-pink-yellow-green": schemePiYG[11],
32
+ "color-scheme-purple-orange": schemePuOr[11],
33
+ "color-scheme-red-blue": schemeRdBu[11],
34
+ "color-scheme-red-grey": schemeRdGy[11],
35
+ "color-scheme-red-yellow-blue": schemeRdYlBu[11],
36
+ "color-scheme-red-yellow-green": schemeRdYlGn[11],
37
+ "color-scheme-spectral": schemeSpectral[11],
38
+ },
39
+ };
40
+ export const ColorPalette = {
41
+ ...ColorSchemeMap.Categorical,
42
+ ...ColorSchemeMap.SequentialSingleHue,
43
+ ...ColorSchemeMap.SequentialMultiHue,
44
+ ...ColorSchemeMap.Diverging,
45
+ };
46
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/components/CustomColorPalette/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,WAAW,EACX,UAAU,EACV,UAAU,EACV,gBAAgB,EAChB,WAAW,EACX,YAAY,EACZ,WAAW,EACX,kBAAkB,EAClB,aAAa,EACb,UAAU,EACV,YAAY,EACZ,UAAU,EACV,UAAU,EACV,YAAY,EACZ,UAAU,EACV,aAAa,EACb,UAAU,EACV,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,UAAU,EACV,UAAU,EACV,cAAc,EACd,eAAe,EACf,YAAY,EACZ,YAAY,GACb,MAAM,oBAAoB,CAAC;AA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,CAAC;KAC5C;CACO,CAAC;AAQX,MAAM,CAAC,MAAM,YAAY,GAA+C;IACtE,GAAG,cAAc,CAAC,WAAW;IAC7B,GAAG,cAAc,CAAC,mBAAmB;IACrC,GAAG,cAAc,CAAC,kBAAkB;IACpC,GAAG,cAAc,CAAC,SAAS;CAC5B,CAAC"}
@@ -49,12 +49,12 @@ export function EventTimelineChart({ theme, data }) {
49
49
  hour: "2-digit",
50
50
  minute: "2-digit",
51
51
  });
52
- return `
53
- <div style="padding:6px">
54
- <b>${format.encodeHTML(event.event.toUpperCase())}</b><br/>
55
- Start: ${format.encodeHTML(startTime)}<br/>
56
- End: ${format.encodeHTML(endTime)}<br/>
57
- </div>
52
+ return `
53
+ <div style="padding:6px">
54
+ <b>${format.encodeHTML(event.event.toUpperCase())}</b><br/>
55
+ Start: ${format.encodeHTML(startTime)}<br/>
56
+ End: ${format.encodeHTML(endTime)}<br/>
57
+ </div>
58
58
  `;
59
59
  },
60
60
  },
package/dist/tsc/index.js CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from "./components/CustomEventTimelineChart";
2
2
  export * from "./components/CustomTable";
3
+ export * from "./components/CustomColorPalette";
3
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC;AACtD,cAAc,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC;AACtD,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC"}