@rubin-epo/epo-widget-lib 1.1.0 → 1.1.2
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.
- package/README.MD +1 -1
- package/dist/ViewIndicator.cjs +1 -1
- package/dist/ViewIndicator.js +50 -44
- package/dist/atomic/Blinker/Controls/styles.d.ts +1 -273
- package/dist/atomic/Blinker/styles.d.ts +2 -545
- package/dist/atomic/ElapsedTime/styles.d.ts +6 -1634
- package/dist/atomic/ImageStack/index.d.ts +2 -2
- package/dist/atomic/LiveRegion/styles.d.ts +1 -273
- package/dist/atomic/Loader/styles.d.ts +1 -273
- package/dist/atomic/PlaybackControl/styles.d.ts +2 -555
- package/dist/atomic/PlotWrapper/styles.d.ts +1 -273
- package/dist/charts/Base/styles.d.ts +10 -2931
- package/dist/charts/Readout/index.cjs +1 -1
- package/dist/charts/Readout/index.js +18 -25
- package/dist/charts/Readout/styles.d.ts +2 -548
- package/dist/charts/ScatterPlot/index.cjs +1 -1
- package/dist/charts/ScatterPlot/index.js +50 -53
- package/dist/charts/ScatterPlot/styles.d.ts +2 -14
- package/dist/charts/Tooltip/styles.d.ts +6 -548
- package/dist/charts/styles.d.ts +6 -2893
- package/dist/layout/AspectRatio/styles.d.ts +1 -273
- package/dist/layout/Controls/styles.d.ts +12 -1918
- package/dist/styles/svg.d.ts +1 -273
- package/dist/widgets/CameraFilter/styles.d.ts +18 -5224
- package/dist/widgets/ColorTool/FilterControls/styles.d.ts +7 -1257
- package/dist/widgets/FilterTool/styles.d.ts +11 -3444
- package/dist/widgets/LightCurvePlot/Plot/styles.d.ts +3 -817
- package/dist/widgets/LightCurvePlot/PlotWithCurve/A11Y/LightCurveLabel/styles.d.ts +1 -276
- package/dist/widgets/LightCurvePlot/PlotWithCurve/MagnitudeSlider/index.d.ts +2 -1
- package/dist/widgets/LightCurvePlot/PlotWithCurve/MagnitudeSlider/styles.d.ts +6 -0
- package/dist/widgets/LightCurvePlot/PlotWithCurve/index.d.ts +1 -1
- package/dist/widgets/LightCurvePlot/PlotWithCurve/styles.d.ts +6 -820
- package/dist/widgets/SourceSelector/Message/styles.d.ts +2 -2
- package/dist/widgets/SourceSelector/SelectionList/styles.d.ts +3 -817
- package/dist/widgets/SourceSelector/SourceMap/styles.d.ts +2 -965
- package/dist/widgets/SourceSelector/styles.d.ts +2 -17
- package/dist/widgets/SupernovaThreeVector/Histogram/styles.d.ts +1 -483
- package/dist/widgets/SupernovaThreeVector/Skymap/index.cjs +1 -1
- package/dist/widgets/SupernovaThreeVector/Skymap/index.js +39 -45
- package/dist/widgets/SupernovaThreeVector/Skymap/styles.d.ts +7 -3375
- package/dist/widgets/ViewIndicator/styles.cjs +9 -24
- package/dist/widgets/ViewIndicator/styles.d.ts +4 -4401
- package/dist/widgets/ViewIndicator/styles.js +10 -32
- package/package.json +22 -22
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),u=require("@rubin-epo/epo-react-lib/styles"),o=require("./styles.cjs"),d=require("../ForeignObject/index.cjs"),y=require("../Viewport/index.cjs"),j=(n="")=>{const r=["top","right"],a=["center","center"],s=n?[...n.split(" "),...a].slice(0,2):r,e={justifyContent:null,alignItems:null};return s.forEach(i=>{switch(i){case"center":e.alignItems=e.alignItems??"center",e.justifyContent=e.justifyContent??"center";break;case"top":e.alignItems="start";break;case"right":e.justifyContent="end";break;case"bottom":e.alignItems="end";break;case"left":e.justifyContent="start";break}}),e},c=({className:n,children:r,position:a,viewport:s,forIds:e,forScreenreaders:i})=>{const l=t.jsx(d.default,{children:t.jsx(o.DisplayContainer,{style:j(a),children:t.jsxs(o.Display,{form:Array.isArray(e)?e.join(" "):e,className:n,children:[t.jsx("span",{"aria-hidden":!!i,children:r}),t.jsx(u.ScreenreaderText,{children:i})]})})});return s?t.jsx(y.default,{...s,children:l}):l};c.displayName="Charts.Readout";exports.default=c;
|
|
@@ -1,22 +1,15 @@
|
|
|
1
1
|
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import { ScreenreaderText as c } from "@rubin-epo/epo-react-lib/styles";
|
|
3
|
-
import "
|
|
4
|
-
import "../
|
|
5
|
-
import "../
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import "../Bars/index.js";
|
|
9
|
-
import m from "../Viewport/index.js";
|
|
10
|
-
import p from "../ForeignObject/index.js";
|
|
11
|
-
import "../ScatterPlot/index.js";
|
|
12
|
-
import { DisplayContainer as f, Display as u } from "./styles.js";
|
|
13
|
-
const d = (i = "") => {
|
|
14
|
-
const o = ["top", "right"], s = ["center", "center"], r = i ? [...i.split(" "), ...s].slice(0, 2) : o, t = {
|
|
3
|
+
import { DisplayContainer as m, Display as f } from "./styles.js";
|
|
4
|
+
import u from "../ForeignObject/index.js";
|
|
5
|
+
import d from "../Viewport/index.js";
|
|
6
|
+
const p = (n = "") => {
|
|
7
|
+
const s = ["top", "right"], o = ["center", "center"], i = n ? [...n.split(" "), ...o].slice(0, 2) : s, t = {
|
|
15
8
|
justifyContent: null,
|
|
16
9
|
alignItems: null
|
|
17
10
|
};
|
|
18
|
-
return
|
|
19
|
-
switch (
|
|
11
|
+
return i.forEach((r) => {
|
|
12
|
+
switch (r) {
|
|
20
13
|
case "center":
|
|
21
14
|
t.alignItems = t.alignItems ?? "center", t.justifyContent = t.justifyContent ?? "center";
|
|
22
15
|
break;
|
|
@@ -35,25 +28,25 @@ const d = (i = "") => {
|
|
|
35
28
|
}
|
|
36
29
|
}), t;
|
|
37
30
|
}, y = ({
|
|
38
|
-
className:
|
|
39
|
-
children:
|
|
40
|
-
position:
|
|
41
|
-
viewport:
|
|
31
|
+
className: n,
|
|
32
|
+
children: s,
|
|
33
|
+
position: o,
|
|
34
|
+
viewport: i,
|
|
42
35
|
forIds: t,
|
|
43
|
-
forScreenreaders:
|
|
36
|
+
forScreenreaders: r
|
|
44
37
|
}) => {
|
|
45
|
-
const a = /* @__PURE__ */ e(
|
|
46
|
-
|
|
38
|
+
const a = /* @__PURE__ */ e(u, { children: /* @__PURE__ */ e(m, { style: p(o), children: /* @__PURE__ */ l(
|
|
39
|
+
f,
|
|
47
40
|
{
|
|
48
41
|
form: Array.isArray(t) ? t.join(" ") : t,
|
|
49
|
-
className:
|
|
42
|
+
className: n,
|
|
50
43
|
children: [
|
|
51
|
-
/* @__PURE__ */ e("span", { "aria-hidden": !!
|
|
52
|
-
/* @__PURE__ */ e(c, { children:
|
|
44
|
+
/* @__PURE__ */ e("span", { "aria-hidden": !!r, children: s }),
|
|
45
|
+
/* @__PURE__ */ e(c, { children: r })
|
|
53
46
|
]
|
|
54
47
|
}
|
|
55
48
|
) }) });
|
|
56
|
-
return
|
|
49
|
+
return i ? /* @__PURE__ */ e(d, { ...i, children: a }) : a;
|
|
57
50
|
};
|
|
58
51
|
y.displayName = "Charts.Readout";
|
|
59
52
|
export {
|