@rubin-epo/epo-widget-lib 0.9.2 → 0.9.4

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 (37) hide show
  1. package/dist/charts/Base/index.cjs +1 -1
  2. package/dist/charts/Base/index.js +30 -35
  3. package/dist/charts/Base/styles.cjs +40 -22
  4. package/dist/charts/Base/styles.d.ts +2035 -675
  5. package/dist/charts/Base/styles.js +49 -25
  6. package/dist/charts/ForeignObject/index.cjs +1 -1
  7. package/dist/charts/ForeignObject/index.d.ts +2 -0
  8. package/dist/charts/ForeignObject/index.js +7 -7
  9. package/dist/charts/Tooltip/index.cjs +1 -1
  10. package/dist/charts/Tooltip/index.js +17 -12
  11. package/dist/charts/Tooltip/styles.cjs +1 -1
  12. package/dist/charts/Tooltip/styles.d.ts +4 -0
  13. package/dist/charts/Tooltip/styles.js +1 -1
  14. package/dist/lib/utils.cjs +1 -1
  15. package/dist/lib/utils.d.ts +1 -0
  16. package/dist/lib/utils.js +21 -17
  17. package/dist/widgets/LightCurvePlot/DM15Display/index.cjs +1 -1
  18. package/dist/widgets/LightCurvePlot/DM15Display/index.js +6 -6
  19. package/dist/widgets/LightCurvePlot/DM15Display/styles.cjs +8 -6
  20. package/dist/widgets/LightCurvePlot/DM15Display/styles.d.ts +272 -0
  21. package/dist/widgets/LightCurvePlot/DM15Display/styles.js +10 -7
  22. package/dist/widgets/LightCurvePlot/MagnitudeSlider/index.cjs +1 -1
  23. package/dist/widgets/LightCurvePlot/MagnitudeSlider/index.d.ts +2 -0
  24. package/dist/widgets/LightCurvePlot/MagnitudeSlider/index.js +19 -18
  25. package/dist/widgets/LightCurvePlot/MagnitudeSlider/styles.cjs +7 -8
  26. package/dist/widgets/LightCurvePlot/MagnitudeSlider/styles.js +8 -9
  27. package/dist/widgets/LightCurvePlot/PlotWithCurve/index.cjs +1 -1
  28. package/dist/widgets/LightCurvePlot/PlotWithCurve/index.js +29 -27
  29. package/dist/widgets/LightCurvePlot/PlotWithCurve/styles.cjs +4 -3
  30. package/dist/widgets/LightCurvePlot/PlotWithCurve/styles.js +2 -1
  31. package/dist/widgets/LightCurvePlot/ScatterPlot/index.cjs +1 -1
  32. package/dist/widgets/LightCurvePlot/ScatterPlot/index.d.ts +2 -1
  33. package/dist/widgets/LightCurvePlot/ScatterPlot/index.js +161 -145
  34. package/dist/widgets/LightCurvePlot/ScatterPlot/styles.cjs +25 -11
  35. package/dist/widgets/LightCurvePlot/ScatterPlot/styles.d.ts +544 -0
  36. package/dist/widgets/LightCurvePlot/ScatterPlot/styles.js +25 -9
  37. package/package.json +1 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),s=require("./styles.cjs"),u=({width:r=900,height:i=300,xMin:c=0,yMin:l=0,verticalLabel:t,verticalLabelId:a,horizontalLabel:n,horizontalLabelId:d,title:o,children:x,className:j})=>e.jsxs(s.ChartContainer,{children:[o&&e.jsx(s.Title,{children:o}),t&&e.jsx(s.VerticalLabel,{id:a,"aria-hidden":!!a,children:t}),e.jsx(s.SVG,{preserveAspectRatio:"xMidYMid meet",viewBox:`${c} ${l} ${r} ${i}`,className:j,style:{"--aspect-ratio":`${r} / ${i}`,"--min-width":`${r}px`},role:"group",children:x}),n&&e.jsx(s.HorizontalLabel,{id:d,"aria-hidden":!!d,children:n})]});u.displayName="Charts.Base";const p=u;exports.default=p;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),r=require("./styles.cjs"),c=({width:s=900,height:i=300,xMin:o=0,yMin:x=0,verticalLabel:a,verticalLabelId:t,horizontalLabel:n,horizontalLabelId:l,title:d,children:j,className:p})=>e.jsxs(r.ChartContainer,{children:[d&&e.jsx(r.TitleWrapper,{children:e.jsx(r.Title,{children:d})}),a&&e.jsxs(e.Fragment,{children:[e.jsx(r.VerticalLabelWrapper,{children:e.jsx(r.Label,{id:t,"aria-hidden":!!t,children:a})}),e.jsx(r.Filler,{})]}),e.jsx(r.SVG,{preserveAspectRatio:"xMidYMid meet",viewBox:`${o} ${x} ${s} ${i}`,className:p,style:{"--aspect-ratio":`${s} / ${i}`},role:"group",children:j}),n&&e.jsx(r.HorizontalLabelWrapper,{children:e.jsx(r.Label,{id:l,"aria-hidden":!!l,children:n})})]});c.displayName="Charts.Base";const u=c;exports.default=u;
@@ -1,52 +1,47 @@
1
- import { jsxs as x, jsx as e } from "react/jsx-runtime";
2
- import { ChartContainer as h, Title as l, VerticalLabel as B, SVG as C, HorizontalLabel as f } from "./styles.js";
3
- const o = ({
4
- width: r = 900,
1
+ import { jsxs as t, jsx as r, Fragment as x } from "react/jsx-runtime";
2
+ import { ChartContainer as B, TitleWrapper as C, Title as f, VerticalLabelWrapper as u, Label as l, Filler as W, SVG as j, HorizontalLabelWrapper as y } from "./styles.js";
3
+ const c = ({
4
+ width: e = 900,
5
5
  height: i = 300,
6
- xMin: p = 0,
7
- yMin: c = 0,
8
- verticalLabel: s,
9
- verticalLabelId: a,
10
- horizontalLabel: t,
11
- horizontalLabelId: d,
12
- title: n,
6
+ xMin: o = 0,
7
+ yMin: h = 0,
8
+ verticalLabel: a,
9
+ verticalLabelId: d,
10
+ horizontalLabel: n,
11
+ horizontalLabelId: s,
12
+ title: p,
13
13
  children: m,
14
14
  className: $
15
- }) => /* @__PURE__ */ x(h, { children: [
16
- n && /* @__PURE__ */ e(l, { children: n }),
17
- s && /* @__PURE__ */ e(
18
- B,
19
- {
20
- id: a,
21
- "aria-hidden": !!a,
22
- children: s
23
- }
24
- ),
25
- /* @__PURE__ */ e(
26
- C,
15
+ }) => /* @__PURE__ */ t(B, { children: [
16
+ p && /* @__PURE__ */ r(C, { children: /* @__PURE__ */ r(f, { children: p }) }),
17
+ a && /* @__PURE__ */ t(x, { children: [
18
+ /* @__PURE__ */ r(u, { children: /* @__PURE__ */ r(l, { id: d, "aria-hidden": !!d, children: a }) }),
19
+ /* @__PURE__ */ r(W, {})
20
+ ] }),
21
+ /* @__PURE__ */ r(
22
+ j,
27
23
  {
28
24
  preserveAspectRatio: "xMidYMid meet",
29
- viewBox: `${p} ${c} ${r} ${i}`,
25
+ viewBox: `${o} ${h} ${e} ${i}`,
30
26
  className: $,
31
27
  style: {
32
- "--aspect-ratio": `${r} / ${i}`,
33
- "--min-width": `${r}px`
28
+ "--aspect-ratio": `${e} / ${i}`
34
29
  },
35
30
  role: "group",
36
31
  children: m
37
32
  }
38
33
  ),
39
- t && /* @__PURE__ */ e(
40
- f,
34
+ n && /* @__PURE__ */ r(y, { children: /* @__PURE__ */ r(
35
+ l,
41
36
  {
42
- id: d,
43
- "aria-hidden": !!d,
44
- children: t
37
+ id: s,
38
+ "aria-hidden": !!s,
39
+ children: n
45
40
  }
46
- )
41
+ ) })
47
42
  ] });
48
- o.displayName = "Charts.Base";
49
- const y = o;
43
+ c.displayName = "Charts.Base";
44
+ const T = c;
50
45
  export {
51
- y as default
46
+ T as default
52
47
  };
@@ -1,36 +1,54 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("styled-components"),l=t=>t&&t.__esModule?t:{default:t},e=l(a),r=e.default.div`
2
- --label-gutter: 2em;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("styled-components"),a=t=>t&&t.__esModule?t:{default:t},e=a(l),i=e.default.div`
2
+ --label-height: 3em;
3
+ --label-gutter: calc(var(--label-height) / 2);
3
4
 
4
5
  display: grid;
5
- grid-template-columns: var(--label-gutter) 1fr;
6
- grid-template-rows: auto 1fr var(--label-gutter);
6
+ grid-template-columns: min-content 1fr min-content;
7
+ grid-template-rows: min-content 1fr min-content;
7
8
  grid-template-areas:
8
- "title title"
9
- "vertical-label chart"
10
- ". horizontal-label";
11
- padding-inline-end: calc(var(--label-gutter) / 2);
12
- `,i=e.default.span`
13
- font-size: 80%;
14
- grid-area: horizontal-label;
9
+ "title title title"
10
+ "vertical-label chart filler"
11
+ ". horizontal-label filler";
12
+ /* for Safari */
13
+ align-items: center;
14
+ width: 100%;
15
+ `;e.default.div`
15
16
  place-self: center;
16
17
  align-self: center;
17
- `,n=e.default.span`
18
- font-size: 80%;
19
- grid-area: vertical-label;
18
+ `;e.default.div`
19
+ display: flex;
20
+ align-items: center;
20
21
  place-self: center;
21
22
  align-self: center;
22
- writing-mode: vertical-rl;
23
- transform: rotate(180deg);
24
- `,o=e.default.svg`
23
+ `;const r=e.default.div`
24
+ grid-area: filler;
25
+ width: var(--label-height);
26
+ `,n=e.default.svg`
25
27
  grid-area: chart;
26
- height: 100%;
27
28
  max-width: 100%;
29
+ max-height: 100%;
28
30
  aspect-ratio: var(--aspect-ratio);
29
- `,c=e.default.h3`
31
+ `,d=e.default.div`
30
32
  display: flex;
31
33
  align-items: center;
32
34
  grid-area: title;
33
- height: var(--label-gutter);
34
- padding-inline: calc(var(--label-gutter) / 2);
35
+ height: var(--label-height);
36
+ padding-inline: var(--label-gutter);
37
+ `,c=e.default.h3`
35
38
  margin: 0;
36
- `;exports.ChartContainer=r;exports.HorizontalLabel=i;exports.SVG=o;exports.Title=c;exports.VerticalLabel=n;
39
+ `,o=e.default.div`
40
+ width: var(--label-height);
41
+ writing-mode: vertical-rl;
42
+ transform: rotate(180deg);
43
+ grid-area: vertical-label;
44
+ `,s=e.default.div`
45
+ height: var(--label-height);
46
+ grid-area: horizontal-label;
47
+ `,g=e.default.span`
48
+ display: flex;
49
+ align-items: center;
50
+ justify-content: center;
51
+ height: 100%;
52
+ width: 100%;
53
+ font-size: 80%;
54
+ `;exports.ChartContainer=i;exports.Filler=r;exports.HorizontalLabelWrapper=s;exports.Label=g;exports.SVG=n;exports.Title=c;exports.TitleWrapper=d;exports.VerticalLabelWrapper=o;