@rubin-epo/epo-widget-lib 0.7.0-rc.2 → 0.8.0

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 (98) hide show
  1. package/dist/Atomic.cjs +1 -1
  2. package/dist/Atomic.js +6 -4
  3. package/dist/SupernovaThreeVector.cjs +1 -0
  4. package/dist/SupernovaThreeVector.d.ts +3 -0
  5. package/dist/SupernovaThreeVector.js +100 -0
  6. package/dist/atomic/Blinker/Blinker.cjs +1 -1
  7. package/dist/atomic/Blinker/Blinker.js +18 -18
  8. package/dist/atomic/Blinker/styles.cjs +1 -1
  9. package/dist/atomic/Blinker/styles.js +7 -7
  10. package/dist/atomic/Button/index.d.ts +1 -0
  11. package/dist/atomic/Button/patterns/Reset.cjs +1 -0
  12. package/dist/atomic/Button/patterns/Reset.d.ts +8 -0
  13. package/dist/atomic/Button/patterns/Reset.js +29 -0
  14. package/dist/atomic/ImageStack/index.cjs +1 -0
  15. package/dist/atomic/ImageStack/index.d.ts +16 -0
  16. package/dist/atomic/ImageStack/index.js +68 -0
  17. package/dist/atomic/ImageStack/styles.cjs +31 -0
  18. package/dist/atomic/ImageStack/styles.js +39 -0
  19. package/dist/atomic/index.d.ts +1 -0
  20. package/dist/charts/Bars/index.cjs +1 -1
  21. package/dist/charts/Bars/index.d.ts +2 -2
  22. package/dist/charts/Bars/index.js +31 -37
  23. package/dist/charts/Base/index.cjs +1 -1
  24. package/dist/charts/Base/index.d.ts +4 -0
  25. package/dist/charts/Base/index.js +33 -25
  26. package/dist/charts/Base/styles.cjs +22 -2
  27. package/dist/charts/Base/styles.d.ts +816 -0
  28. package/dist/charts/Base/styles.js +26 -3
  29. package/dist/charts/Guidelines/index.cjs +1 -1
  30. package/dist/charts/Guidelines/index.d.ts +2 -2
  31. package/dist/charts/Guidelines/index.js +19 -18
  32. package/dist/charts/Points/index.cjs +1 -1
  33. package/dist/charts/Points/index.js +15 -15
  34. package/dist/charts/Tooltip/index.cjs +1 -1
  35. package/dist/charts/Tooltip/index.d.ts +5 -4
  36. package/dist/charts/Tooltip/index.js +38 -40
  37. package/dist/charts/Tooltip/styles.cjs +19 -13
  38. package/dist/charts/Tooltip/styles.d.ts +417 -1801
  39. package/dist/charts/Tooltip/styles.js +21 -17
  40. package/dist/charts/XAxis/index.cjs +1 -1
  41. package/dist/charts/XAxis/index.js +31 -36
  42. package/dist/charts/YAxis/index.cjs +1 -1
  43. package/dist/charts/YAxis/index.d.ts +5 -0
  44. package/dist/charts/YAxis/index.js +28 -35
  45. package/dist/images/lunar_phase/first-quarter.webp +0 -0
  46. package/dist/images/lunar_phase/full.webp +0 -0
  47. package/dist/images/lunar_phase/new-moon.webp +0 -0
  48. package/dist/images/lunar_phase/third-quarter.webp +0 -0
  49. package/dist/images/lunar_phase/waning-crescent.webp +0 -0
  50. package/dist/images/lunar_phase/waning-gibbous.webp +0 -0
  51. package/dist/images/lunar_phase/waxing-crescent.webp +0 -0
  52. package/dist/images/lunar_phase/waxing-gibbous.webp +0 -0
  53. package/dist/images/supernovae_skymap/range0_500.png +0 -0
  54. package/dist/images/supernovae_skymap/range1000_2500.png +0 -0
  55. package/dist/images/supernovae_skymap/range500_1000.png +0 -0
  56. package/dist/localeStrings/en/epo-widget-lib.json +19 -0
  57. package/dist/widgets/ColorTool/Actions/index.cjs +1 -1
  58. package/dist/widgets/ColorTool/Actions/index.js +37 -27
  59. package/dist/widgets/ColorTool/FilterControls/FilterControls.cjs +1 -1
  60. package/dist/widgets/ColorTool/FilterControls/FilterControls.js +11 -11
  61. package/dist/widgets/SupernovaThreeVector/Histogram/index.cjs +1 -0
  62. package/dist/widgets/SupernovaThreeVector/Histogram/index.d.ts +19 -0
  63. package/dist/widgets/SupernovaThreeVector/Histogram/index.js +106 -0
  64. package/dist/widgets/SupernovaThreeVector/Histogram/styles.cjs +5 -0
  65. package/dist/widgets/SupernovaThreeVector/Histogram/styles.d.ts +482 -0
  66. package/dist/widgets/SupernovaThreeVector/Histogram/styles.js +10 -0
  67. package/dist/widgets/SupernovaThreeVector/LiveLabel/index.cjs +1 -0
  68. package/dist/widgets/SupernovaThreeVector/LiveLabel/index.d.ts +11 -0
  69. package/dist/widgets/SupernovaThreeVector/LiveLabel/index.js +36 -0
  70. package/dist/widgets/SupernovaThreeVector/LiveLabel/styles.cjs +10 -0
  71. package/dist/widgets/SupernovaThreeVector/LiveLabel/styles.d.ts +272 -0
  72. package/dist/widgets/SupernovaThreeVector/LiveLabel/styles.js +15 -0
  73. package/dist/widgets/SupernovaThreeVector/Skymap/index.cjs +1 -0
  74. package/dist/widgets/SupernovaThreeVector/Skymap/index.d.ts +18 -0
  75. package/dist/widgets/SupernovaThreeVector/Skymap/index.js +122 -0
  76. package/dist/widgets/SupernovaThreeVector/Skymap/styles.cjs +24 -0
  77. package/dist/widgets/SupernovaThreeVector/Skymap/styles.d.ts +3374 -0
  78. package/dist/widgets/SupernovaThreeVector/Skymap/styles.js +35 -0
  79. package/dist/widgets/SupernovaThreeVector/index.d.ts +12 -0
  80. package/dist/widgets/SupernovaThreeVector/styles.cjs +78 -0
  81. package/dist/widgets/SupernovaThreeVector/styles.js +94 -0
  82. package/package.json +5 -2
  83. package/dist/atomic/Blinker/Image/Image.cjs +0 -1
  84. package/dist/atomic/Blinker/Image/Image.d.ts +0 -9
  85. package/dist/atomic/Blinker/Image/Image.js +0 -23
  86. package/dist/atomic/Blinker/Image/styles.cjs +0 -17
  87. package/dist/atomic/Blinker/Image/styles.d.ts +0 -283
  88. package/dist/atomic/Blinker/Image/styles.js +0 -22
  89. package/dist/atomic/Blinker/Images/Images.cjs +0 -1
  90. package/dist/atomic/Blinker/Images/Images.d.ts +0 -8
  91. package/dist/atomic/Blinker/Images/Images.js +0 -45
  92. package/dist/atomic/Blinker/Images/styles.cjs +0 -10
  93. package/dist/atomic/Blinker/Images/styles.d.ts +0 -544
  94. package/dist/atomic/Blinker/Images/styles.js +0 -16
  95. package/dist/widgets/ColorTool/Actions/Reset/index.cjs +0 -1
  96. package/dist/widgets/ColorTool/Actions/Reset/index.d.ts +0 -9
  97. package/dist/widgets/ColorTool/Actions/Reset/index.js +0 -39
  98. package/dist/widgets/ColorTool/FilterControls/styles.d.ts +0 -1232
@@ -1,10 +1,33 @@
1
1
  "use client";
2
- import t from "styled-components";
3
- const a = t.svg`
2
+ import e from "styled-components";
3
+ const a = e.div`
4
+ display: grid;
5
+ grid-template-columns: min-content 1fr;
6
+ grid-template-rows: 1fr min-content;
7
+ grid-template-areas:
8
+ "vertical-label chart"
9
+ ". horizontal-label";
10
+ `, r = e.span`
11
+ font-size: 80%;
12
+ grid-area: horizontal-label;
13
+ place-self: center;
14
+ align-self: center;
15
+ `, l = e.span`
16
+ font-size: 80%;
17
+ grid-area: vertical-label;
18
+ place-self: center;
19
+ align-self: center;
20
+ writing-mode: vertical-rl;
21
+ transform: rotate(180deg);
22
+ `, i = e.svg`
23
+ grid-area: chart;
4
24
  height: 100%;
5
25
  max-width: 100%;
6
26
  aspect-ratio: var(--aspect-ratio);
7
27
  `;
8
28
  export {
9
- a as SVG
29
+ a as ChartContainer,
30
+ r as HorizontalLabel,
31
+ i as SVG,
32
+ l as VerticalLabel
10
33
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("react/jsx-runtime"),$=require("../styles.cjs"),h=({guides:n=0,direction:s="horizontal",xScale:r=t=>t,xDomain:l=[0,1],yScale:u=t=>t,yDomain:i=[0,1],padding:e=0,className:j})=>{if(n===0)return null;const t=s==="horizontal"?i:l,v=s==="horizontal"?u:r,z=(t[1]-t[0])/n;return c.jsx("g",{className:j,children:Array(n+1).fill(void 0).map((d,a)=>{const f=t[0]+z*a,o=v(f),G=s==="horizontal"?[r(l[0])-e,o]:[o-e,u(i[0])],_=s==="horizontal"?[r(l[1])+e,o]:[o,u(i[1])+e];return c.jsx($.Guide,{points:`${G.join()} ${_.join()}`},a)})})};h.displayName="Charts.Guidelines";const b=h;exports.default=b;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),b=require("d3-array"),G=require("../styles.cjs"),c=({guides:u=0,direction:s="horizontal",xScale:e=t=>t,xDomain:r=[0,1],yScale:i=t=>t,yDomain:l=[0,1],margin:d,className:h})=>{if(u===0)return null;const t=s==="horizontal"?l:r,f=s==="horizontal"?i:e,o={...{top:0,right:0,bottom:0,left:0},...d},g=b.ticks(t[1],t[0],u);return a.jsx("g",{className:h,children:g.map((p,j)=>{const n=f(p),z=s==="horizontal"?[e(r[0])-o.left,n]:[n-o.top,i(l[0])],M=s==="horizontal"?[e(r[1])+o.right,n]:[n,i(l[1])+o.bottom];return a.jsx(G.Guide,{points:`${z.join()} ${M.join()}`},j)})})};c.displayName="Charts.Guidelines";const m=c;exports.default=m;
@@ -1,5 +1,5 @@
1
1
  import { FunctionComponent } from "react";
2
- import { Domain, ScaleFunction } from "../types";
2
+ import { ChartMargin, Domain, ScaleFunction } from "../types";
3
3
  export interface GuidelinesProps {
4
4
  guides: number;
5
5
  direction?: "horizontal" | "vertical";
@@ -7,7 +7,7 @@ export interface GuidelinesProps {
7
7
  xDomain: Domain;
8
8
  yScale: ScaleFunction;
9
9
  yDomain: Domain;
10
- padding?: number;
10
+ margin?: ChartMargin;
11
11
  className?: string;
12
12
  }
13
13
  declare const Guidelines: FunctionComponent<GuidelinesProps>;
@@ -1,25 +1,26 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { Guide as v } from "../styles.js";
3
- const f = ({
4
- guides: s = 0,
5
- direction: t = "horizontal",
6
- xScale: l = (o) => o,
1
+ import { jsx as f } from "react/jsx-runtime";
2
+ import { ticks as j } from "d3-array";
3
+ import { Guide as M } from "../styles.js";
4
+ const p = ({
5
+ guides: e = 0,
6
+ direction: o = "horizontal",
7
+ xScale: s = (t) => t,
7
8
  xDomain: i = [0, 1],
8
- yScale: e = (o) => o,
9
- yDomain: u = [0, 1],
10
- padding: n = 0,
11
- className: z
9
+ yScale: l = (t) => t,
10
+ yDomain: a = [0, 1],
11
+ margin: u,
12
+ className: h
12
13
  }) => {
13
- if (s === 0)
14
+ if (e === 0)
14
15
  return null;
15
- const o = t === "horizontal" ? u : i, c = t === "horizontal" ? e : l, p = (o[1] - o[0]) / s;
16
- return /* @__PURE__ */ a("g", { className: z, children: Array(s + 1).fill(void 0).map(($, h) => {
17
- const G = o[0] + p * h, r = c(G), j = t === "horizontal" ? [l(i[0]) - n, r] : [r - n, e(u[0])], m = t === "horizontal" ? [l(i[1]) + n, r] : [r, e(u[1]) + n];
18
- return /* @__PURE__ */ a(v, { points: `${j.join()} ${m.join()}` }, h);
16
+ const t = o === "horizontal" ? a : i, c = o === "horizontal" ? l : s, n = { ...{ top: 0, right: 0, bottom: 0, left: 0 }, ...u }, d = j(t[1], t[0], e);
17
+ return /* @__PURE__ */ f("g", { className: h, children: d.map((m, g) => {
18
+ const r = c(m), z = o === "horizontal" ? [s(i[0]) - n.left, r] : [r - n.top, l(a[0])], G = o === "horizontal" ? [s(i[1]) + n.right, r] : [r, l(a[1]) + n.bottom];
19
+ return /* @__PURE__ */ f(M, { points: `${z.join()} ${G.join()}` }, g);
19
20
  }) });
20
21
  };
21
- f.displayName = "Charts.Guidelines";
22
- const N = f;
22
+ p.displayName = "Charts.Guidelines";
23
+ const C = p;
23
24
  export {
24
- N as default
25
+ C as default
25
26
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),s=({data:e,xScale:i,yScale:l,yDomain:t,className:n})=>e.length===0?null:r.jsx("g",{className:n,children:e.map(({stroke:o,fill:u,width:c=4,x:a,y:d,props:f},p)=>r.jsx("circle",{cx:i(a),cy:l(t[1]-t[0]-d),r:c/2,fill:u||"var(--point-fill, #12726D)",stroke:o||"var(--point-stroke, #12726D)",...f},p))});s.displayName="Charts.Points";const g=s;exports.default=g;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),r=({data:e,xScale:i,yScale:n,yDomain:p,className:s})=>e.length===0?null:t.jsx("g",{className:s,children:e.map(({stroke:l,fill:o,width:u=4,x:c,y:a,props:d},f)=>t.jsx("circle",{cx:i(c),cy:n(a),r:u/2,fill:o||"var(--point-fill, #12726D)",stroke:l||"var(--point-stroke, #12726D)",...d},f))});r.displayName="Charts.Points";const m=r;exports.default=m;
@@ -1,24 +1,24 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- const e = ({
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ const n = ({
3
3
  data: r,
4
4
  xScale: i,
5
- yScale: l,
6
- yDomain: t,
7
- className: o
8
- }) => r.length === 0 ? null : /* @__PURE__ */ n("g", { className: o, children: r.map(({ stroke: s, fill: c, width: p = 4, x: a, y: f, props: u }, h) => /* @__PURE__ */ n(
5
+ yScale: o,
6
+ yDomain: u,
7
+ className: e
8
+ }) => r.length === 0 ? null : /* @__PURE__ */ t("g", { className: e, children: r.map(({ stroke: l, fill: s, width: a = 4, x: c, y: p, props: f }, m) => /* @__PURE__ */ t(
9
9
  "circle",
10
10
  {
11
- cx: i(a),
12
- cy: l(t[1] - t[0] - f),
13
- r: p / 2,
14
- fill: c || "var(--point-fill, #12726D)",
15
- stroke: s || "var(--point-stroke, #12726D)",
16
- ...u
11
+ cx: i(c),
12
+ cy: o(p),
13
+ r: a / 2,
14
+ fill: s || "var(--point-fill, #12726D)",
15
+ stroke: l || "var(--point-stroke, #12726D)",
16
+ ...f
17
17
  },
18
- h
18
+ m
19
19
  )) });
20
- e.displayName = "Charts.Points";
21
- const x = e;
20
+ n.displayName = "Charts.Points";
21
+ const x = n;
22
22
  export {
23
23
  x as default
24
24
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),l=require("./styles.cjs"),c=({value:u,x:a,y:t,height:o=16,className:d})=>{const i=String(u),r=Math.max(i.length*8,20),n=6,s=a+r/2;return e.jsxs(l.Tooltip,{transform:`translate(-${r/2} -${o*1.5})`,className:d,children:[e.jsx(l.TooltipBackground,{rx:4,width:r,height:o,x:a,y:t}),e.jsx(l.TooltipArrow,{points:`${s-n} ${t+o} ${s+n} ${t+o} ${s} ${t+o+n}`}),e.jsx(l.TooltipText,{width:r,height:o,x:s,y:t+o/2,children:i})]})};c.displayName="Charts.Tooltip";const p=c;exports.default=p;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react/jsx-runtime"),u=require("./styles.cjs"),m=(e,t)=>e.includes("left")?`calc(0% + ${t}px)`:e.includes("right")?`calc(-100% - ${t}px)`:(e.includes("center"),"-50%"),w=(e,t)=>e.includes("top")?`calc(0% + ${t}px)`:e.includes("bottom")?`calc(-100% - ${t}px)`:(e.includes("center"),"-50%"),y=e=>{let t="0",r="0",n="0",l="0",s="0deg";return e.includes("center")&&(t="50%",r="50%",n="-50%",l="-50%"),e.includes("top")&&(r="0",l="-100%",s="180deg"),e.includes("right")&&(t="100%",n="-25%",s="-90deg"),e.includes("left")&&(t="0",n="-75%",s="90deg"),e.includes("bottom")&&(r="100%",l="0"),{left:t,top:r,transform:`translate(${n}, ${l}) rotate(${s})`}},d=({x:e,y:t,visible:r=!0,offset:n=5,origin:l="center bottom",children:s,className:a})=>{if(typeof e>"u"||typeof t>"u")return null;const f="center center",c=[...l.split(" "),...f.split(" ")].slice(0,2).join(" "),i=6,p=m(c,i+n),$=w(c,i+n),h=c.includes("center")&&c.split(" ").filter(g=>g!=="center").length===1,x=y(c);return o.jsx("foreignObject",{x:0,y:0,width:"100%",height:"100%",pointerEvents:"none",children:o.jsxs(u.Tooltip,{className:a,style:{transform:`translate(calc(${p} + ${e}px), calc(${$} + ${t}px))`},hidden:!r,children:[s,h&&o.jsx(u.Arrow,{style:{"--arrow-size":`${i}px`,...x}})]})})};d.displayName="Charts.Tooltip";const O=d;exports.default=O;
@@ -1,10 +1,11 @@
1
- import { FunctionComponent } from "react";
1
+ import { FunctionComponent, PropsWithChildren } from "react";
2
2
  export interface TooltipProps {
3
- value: number | string;
4
3
  x: number;
5
4
  y: number;
6
- height?: number;
5
+ visible: boolean;
6
+ offset?: number;
7
+ origin?: string;
7
8
  className?: string;
8
9
  }
9
- declare const Tooltip: FunctionComponent<TooltipProps>;
10
+ declare const Tooltip: FunctionComponent<PropsWithChildren<TooltipProps>>;
10
11
  export default Tooltip;
@@ -1,51 +1,49 @@
1
- import { jsxs as T, jsx as s } from "react/jsx-runtime";
2
- import { Tooltip as d, TooltipBackground as m, TooltipArrow as x, TooltipText as e } from "./styles.js";
3
- const i = ({
4
- value: $,
5
- x: a,
6
- y: t,
7
- height: o = 16,
8
- className: c
1
+ import { jsx as i, jsxs as m } from "react/jsx-runtime";
2
+ import { Tooltip as w, Arrow as O } from "./styles.js";
3
+ const g = (t, e) => t.includes("left") ? `calc(0% + ${e}px)` : t.includes("right") ? `calc(-100% - ${e}px)` : (t.includes("center"), "-50%"), y = (t, e) => t.includes("top") ? `calc(0% + ${e}px)` : t.includes("bottom") ? `calc(-100% - ${e}px)` : (t.includes("center"), "-50%"), T = (t) => {
4
+ let e = "0", r = "0", n = "0", l = "0", s = "0deg";
5
+ return t.includes("center") && (e = "50%", r = "50%", n = "-50%", l = "-50%"), t.includes("top") && (r = "0", l = "-100%", s = "180deg"), t.includes("right") && (e = "100%", n = "-25%", s = "-90deg"), t.includes("left") && (e = "0", n = "-75%", s = "90deg"), t.includes("bottom") && (r = "100%", l = "0"), {
6
+ left: e,
7
+ top: r,
8
+ transform: `translate(${n}, ${l}) rotate(${s})`
9
+ };
10
+ }, f = ({
11
+ x: t,
12
+ y: e,
13
+ visible: r = !0,
14
+ offset: n = 5,
15
+ origin: l = "center bottom",
16
+ children: s,
17
+ className: u
9
18
  }) => {
10
- const p = String($), r = Math.max(p.length * 8, 20), n = 6, l = a + r / 2;
11
- return /* @__PURE__ */ T(
12
- d,
19
+ if (typeof t > "u" || typeof e > "u")
20
+ return null;
21
+ const d = "center center", c = [...l.split(" "), ...d.split(" ")].slice(0, 2).join(" "), o = 6, a = g(c, o + n), p = y(c, o + n), $ = c.includes("center") && c.split(" ").filter((x) => x !== "center").length === 1, h = T(c);
22
+ return /* @__PURE__ */ i("foreignObject", { x: 0, y: 0, width: "100%", height: "100%", pointerEvents: "none", children: /* @__PURE__ */ m(
23
+ w,
13
24
  {
14
- transform: `translate(-${r / 2} -${o * 1.5})`,
15
- className: c,
25
+ className: u,
26
+ style: {
27
+ transform: `translate(calc(${a} + ${t}px), calc(${p} + ${e}px))`
28
+ },
29
+ hidden: !r,
16
30
  children: [
17
- /* @__PURE__ */ s(
18
- m,
31
+ s,
32
+ $ && /* @__PURE__ */ i(
33
+ O,
19
34
  {
20
- rx: 4,
21
- width: r,
22
- height: o,
23
- x: a,
24
- y: t
25
- }
26
- ),
27
- /* @__PURE__ */ s(
28
- x,
29
- {
30
- points: `${l - n} ${t + o} ${l + n} ${t + o} ${l} ${t + o + n}`
31
- }
32
- ),
33
- /* @__PURE__ */ s(
34
- e,
35
- {
36
- width: r,
37
- height: o,
38
- x: l,
39
- y: t + o / 2,
40
- children: p
35
+ style: {
36
+ "--arrow-size": `${o}px`,
37
+ ...h
38
+ }
41
39
  }
42
40
  )
43
41
  ]
44
42
  }
45
- );
43
+ ) });
46
44
  };
47
- i.displayName = "Charts.Tooltip";
48
- const w = i;
45
+ f.displayName = "Charts.Tooltip";
46
+ const A = f;
49
47
  export {
50
- w as default
48
+ A as default
51
49
  };
@@ -1,13 +1,19 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("styled-components"),e=t=>t&&t.__esModule?t:{default:t},o=e(l),c=o.default.g`
2
- cursor: default;
3
- `,i=o.default.rect`
4
- fill: #dce0e3;
5
- `,r=o.default.text`
6
- font-size: 12px;
7
- color: var(--black, #000);
8
- dominant-baseline: central;
9
- text-anchor: middle;
10
- fill: var(--black, #000);
11
- `,a=o.default.polygon`
12
- fill: #dce0e3;
13
- `;exports.Tooltip=c;exports.TooltipArrow=a;exports.TooltipBackground=i;exports.TooltipText=r;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("styled-components"),r=t=>t&&t.__esModule?t:{default:t},e=r(o),i=e.default.div`
2
+ background-color: #dce0e3;
3
+ border-radius: 4px;
4
+ font-size: 0.5em;
5
+ line-height: 1;
6
+ padding: 2px 4px;
7
+ text-align: center;
8
+ position: absolute;
9
+ `,d=e.default.div`
10
+ width: 0;
11
+ height: 0;
12
+ border-left: var(--arrow-width, 6px) solid transparent;
13
+ border-right: var(--arrow-width, 6px) solid transparent;
14
+
15
+ border-top: var(--arrow-width, 6px) solid #dce0e3;
16
+
17
+ position: absolute;
18
+ left: 0;
19
+ `;exports.Arrow=d;exports.Tooltip=i;