@rubin-epo/epo-widget-lib 0.4.3 → 0.5.1-alpha.1

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 (101) hide show
  1. package/dist/CameraFilter.cjs +1 -1
  2. package/dist/CameraFilter.js +27 -27
  3. package/dist/ColorTool.cjs +1 -1
  4. package/dist/ColorTool.js +70 -78
  5. package/dist/SourceSelector.cjs +1 -1
  6. package/dist/SourceSelector.js +70 -69
  7. package/dist/atomic/Blinker/Blinker.cjs +1 -1
  8. package/dist/atomic/Blinker/Blinker.js +44 -50
  9. package/dist/atomic/Blinker/Image/Image.cjs +1 -1
  10. package/dist/atomic/Blinker/Image/Image.js +15 -15
  11. package/dist/atomic/Blinker/Image/styles.cjs +3 -8
  12. package/dist/atomic/Blinker/Image/styles.js +4 -9
  13. package/dist/atomic/Blinker/Images/Images.cjs +1 -1
  14. package/dist/atomic/Blinker/Images/Images.js +38 -31
  15. package/dist/atomic/Blinker/Images/styles.cjs +3 -8
  16. package/dist/atomic/Blinker/Images/styles.js +6 -11
  17. package/dist/atomic/Blinker/styles.cjs +14 -15
  18. package/dist/atomic/Blinker/styles.js +20 -20
  19. package/dist/favicon/apple-touch-icon.png +0 -0
  20. package/dist/favicon/favicon-16x16.png +0 -0
  21. package/dist/favicon/favicon-32x32.png +0 -0
  22. package/dist/types/CameraFilter.d.ts +6 -0
  23. package/dist/types/ColorTool.d.ts +45 -0
  24. package/dist/types/FilterTool.d.ts +16 -0
  25. package/dist/types/SourceSelector.d.ts +28 -0
  26. package/dist/types/cjs/CameraFilter.d.cts +1 -0
  27. package/dist/types/cjs/ColorTool.d.cts +1 -0
  28. package/dist/types/cjs/FilterTool.d.cts +1 -0
  29. package/dist/types/cjs/SourceSelector.d.cts +1 -0
  30. package/dist/{atomic/Blinker/Blinker.d.ts → types/cjs/atomic/Blinker/Blinker.d.cts} +4 -4
  31. package/dist/{atomic/Blinker/Image/Image.d.ts → types/cjs/atomic/Blinker/Image/Image.d.cts} +1 -1
  32. package/dist/types/cjs/atomic/Blinker/Image/styles.d.cts +283 -0
  33. package/dist/{atomic/Blinker/Images/styles.d.ts → types/cjs/atomic/Blinker/Images/styles.d.cts} +272 -4
  34. package/dist/types/cjs/atomic/Blinker/_mocks/index.d.cts +2 -0
  35. package/dist/{widgets/ColorTool/ColorTool.d.ts → types/cjs/widgets/ColorTool/ColorTool.d.cts} +2 -1
  36. package/dist/{widgets/ColorTool/FilterControls/FilterControls.d.ts → types/cjs/widgets/ColorTool/FilterControls/FilterControls.d.cts} +1 -1
  37. package/dist/{widgets/ColorTool/styles.d.ts → types/cjs/widgets/ColorTool/styles.d.cts} +544 -4
  38. package/dist/{widgets/SourceSelector/SourceSelector.d.ts → types/cjs/widgets/SourceSelector/SourceSelector.d.cts} +1 -1
  39. package/dist/{widgets/SourceSelector/utilities.d.ts → types/cjs/widgets/SourceSelector/utilities.d.cts} +1 -1
  40. package/dist/widgets/ColorTool/styles.cjs +26 -33
  41. package/dist/widgets/ColorTool/styles.js +36 -41
  42. package/dist/widgets/ColorTool/utilities.cjs +1 -1
  43. package/dist/widgets/ColorTool/utilities.js +23 -27
  44. package/dist/widgets/SourceSelector/utilities.cjs +1 -1
  45. package/dist/widgets/SourceSelector/utilities.js +7 -4
  46. package/package.json +43 -7
  47. package/dist/CameraFilter.d.ts +0 -3
  48. package/dist/ColorTool.d.ts +0 -3
  49. package/dist/FilterTool.d.ts +0 -3
  50. package/dist/SourceSelector.d.ts +0 -3
  51. package/dist/atomic/Blinker/Image/styles.d.ts +0 -4
  52. package/dist/atomic/Blinker/_mocks/index.d.ts +0 -2
  53. package/dist/atomic/Blinker/styles.d.ts +0 -278
  54. package/dist/widgets/SourceSelector/styles.d.ts +0 -299
  55. /package/dist/{atomic/Blinker/Controls/Controls.d.ts → types/cjs/atomic/Blinker/Controls/Controls.d.cts} +0 -0
  56. /package/dist/{atomic/Blinker/Controls/styles.d.ts → types/cjs/atomic/Blinker/Controls/styles.d.cts} +0 -0
  57. /package/dist/{atomic/Blinker/Images/Images.d.ts → types/cjs/atomic/Blinker/Images/Images.d.cts} +0 -0
  58. /package/dist/{atomic/Blinker/index.d.ts → types/cjs/atomic/Blinker/index.d.cts} +0 -0
  59. /package/dist/{atomic/ElapsedTime/ElapsedTime.d.ts → types/cjs/atomic/ElapsedTime/ElapsedTime.d.cts} +0 -0
  60. /package/dist/{atomic/ElapsedTime/index.d.ts → types/cjs/atomic/ElapsedTime/index.d.cts} +0 -0
  61. /package/dist/{atomic/ElapsedTime/styles.d.ts → types/cjs/atomic/ElapsedTime/styles.d.cts} +0 -0
  62. /package/dist/{atomic/PlaybackControl/PlaybackControl.d.ts → types/cjs/atomic/PlaybackControl/PlaybackControl.d.cts} +0 -0
  63. /package/dist/{atomic/PlaybackControl/index.d.ts → types/cjs/atomic/PlaybackControl/index.d.cts} +0 -0
  64. /package/dist/{atomic/PlaybackControl/styles.d.ts → types/cjs/atomic/PlaybackControl/styles.d.cts} +0 -0
  65. /package/dist/{hooks/useInterval.d.ts → types/cjs/hooks/useInterval.d.cts} +0 -0
  66. /package/dist/{lib/utils.d.ts → types/cjs/lib/utils.d.cts} +0 -0
  67. /package/dist/{lib/utils.test.d.ts → types/cjs/lib/utils.test.d.cts} +0 -0
  68. /package/dist/{styles/svg.d.ts → types/cjs/styles/svg.d.cts} +0 -0
  69. /package/dist/{widgets/CameraFilter/CameraFilter.d.ts → types/cjs/widgets/CameraFilter/CameraFilter.d.cts} +0 -0
  70. /package/dist/{widgets/CameraFilter/CondensedFilterRanges/CondensedFilterRanges.d.ts → types/cjs/widgets/CameraFilter/CondensedFilterRanges/CondensedFilterRanges.d.cts} +0 -0
  71. /package/dist/{widgets/CameraFilter/CondensedFilterRanges/index.d.ts → types/cjs/widgets/CameraFilter/CondensedFilterRanges/index.d.cts} +0 -0
  72. /package/dist/{widgets/CameraFilter/SpectrumDisplay/ColorLabels/ColorLabels.d.ts → types/cjs/widgets/CameraFilter/SpectrumDisplay/ColorLabels/ColorLabels.d.cts} +0 -0
  73. /package/dist/{widgets/CameraFilter/SpectrumDisplay/ColorLabels/index.d.ts → types/cjs/widgets/CameraFilter/SpectrumDisplay/ColorLabels/index.d.cts} +0 -0
  74. /package/dist/{widgets/CameraFilter/SpectrumDisplay/SpectrumDisplay.d.ts → types/cjs/widgets/CameraFilter/SpectrumDisplay/SpectrumDisplay.d.cts} +0 -0
  75. /package/dist/{widgets/CameraFilter/SpectrumDisplay/SpectrumLabels/SpectrumLabels.d.ts → types/cjs/widgets/CameraFilter/SpectrumDisplay/SpectrumLabels/SpectrumLabels.d.cts} +0 -0
  76. /package/dist/{widgets/CameraFilter/SpectrumDisplay/SpectrumLabels/index.d.ts → types/cjs/widgets/CameraFilter/SpectrumDisplay/SpectrumLabels/index.d.cts} +0 -0
  77. /package/dist/{widgets/CameraFilter/SpectrumDisplay/index.d.ts → types/cjs/widgets/CameraFilter/SpectrumDisplay/index.d.cts} +0 -0
  78. /package/dist/{widgets/CameraFilter/data.d.ts → types/cjs/widgets/CameraFilter/data.d.cts} +0 -0
  79. /package/dist/{widgets/CameraFilter/index.d.ts → types/cjs/widgets/CameraFilter/index.d.cts} +0 -0
  80. /package/dist/{widgets/CameraFilter/styles.d.ts → types/cjs/widgets/CameraFilter/styles.d.cts} +0 -0
  81. /package/dist/{widgets/ColorTool/FilterControls/index.d.ts → types/cjs/widgets/ColorTool/FilterControls/index.d.cts} +0 -0
  82. /package/dist/{widgets/ColorTool/FilterImage/FilterImage.d.ts → types/cjs/widgets/ColorTool/FilterImage/FilterImage.d.cts} +0 -0
  83. /package/dist/{widgets/ColorTool/FilterImage/index.d.ts → types/cjs/widgets/ColorTool/FilterImage/index.d.cts} +0 -0
  84. /package/dist/{widgets/ColorTool/ImageComposite/ImageComposite.d.ts → types/cjs/widgets/ColorTool/ImageComposite/ImageComposite.d.cts} +0 -0
  85. /package/dist/{widgets/ColorTool/ImageComposite/index.d.ts → types/cjs/widgets/ColorTool/ImageComposite/index.d.cts} +0 -0
  86. /package/dist/{widgets/ColorTool/index.d.ts → types/cjs/widgets/ColorTool/index.d.cts} +0 -0
  87. /package/dist/{widgets/ColorTool/utilities.d.ts → types/cjs/widgets/ColorTool/utilities.d.cts} +0 -0
  88. /package/dist/{widgets/FilterTool/FilterTool.d.ts → types/cjs/widgets/FilterTool/FilterTool.d.cts} +0 -0
  89. /package/dist/{widgets/FilterTool/index.d.ts → types/cjs/widgets/FilterTool/index.d.cts} +0 -0
  90. /package/dist/{widgets/FilterTool/styles.d.ts → types/cjs/widgets/FilterTool/styles.d.cts} +0 -0
  91. /package/dist/{widgets/SourceSelector/Message/Message.d.ts → types/cjs/widgets/SourceSelector/Message/Message.d.cts} +0 -0
  92. /package/dist/{widgets/SourceSelector/Message/index.d.ts → types/cjs/widgets/SourceSelector/Message/index.d.cts} +0 -0
  93. /package/dist/{widgets/SourceSelector/Message/styles.d.ts → types/cjs/widgets/SourceSelector/Message/styles.d.cts} +0 -0
  94. /package/dist/{widgets/SourceSelector/Point/Point.d.ts → types/cjs/widgets/SourceSelector/Point/Point.d.cts} +0 -0
  95. /package/dist/{widgets/SourceSelector/Point/index.d.ts → types/cjs/widgets/SourceSelector/Point/index.d.cts} +0 -0
  96. /package/dist/{widgets/SourceSelector/Point/styles.d.ts → types/cjs/widgets/SourceSelector/Point/styles.d.cts} +0 -0
  97. /package/dist/{widgets/SourceSelector/Points/Points.d.ts → types/cjs/widgets/SourceSelector/Points/Points.d.cts} +0 -0
  98. /package/dist/{widgets/SourceSelector/Points/index.d.ts → types/cjs/widgets/SourceSelector/Points/index.d.cts} +0 -0
  99. /package/dist/{widgets/SourceSelector/index.d.ts → types/cjs/widgets/SourceSelector/index.d.cts} +0 -0
  100. /package/dist/{widgets/SourceSelector/mocks/index.d.ts → types/cjs/widgets/SourceSelector/mocks/index.d.cts} +0 -0
  101. /package/dist/{widgets/SourceSelector/utilities.test.d.ts → types/cjs/widgets/SourceSelector/utilities.test.d.cts} +0 -0
@@ -1,68 +1,62 @@
1
- import { jsxs as O, jsx as x } from "react/jsx-runtime";
2
- import { useState as i, useEffect as B } from "react";
3
- import { tokens as P } from "@rubin-epo/epo-react-lib/styles";
4
- import R from "../../hooks/useInterval.js";
5
- import w from "use-resize-observer";
6
- import { BlinkerContainer as z, BlinkerImages as D, BlinkerControls as K } from "./styles.js";
7
- import { getClampedArrayIndex as M } from "../../lib/utils.js";
8
- const I = ({
9
- images: t = [],
10
- activeIndex: k = 0,
11
- autoplay: h = !0,
12
- loop: v = !0,
13
- interval: g = 200,
14
- blinkCallback: l,
15
- loadedCallback: d,
16
- className: C
1
+ import { jsxs as N, jsx as m } from "react/jsx-runtime";
2
+ import { useState as p } from "react";
3
+ import P from "../../hooks/useInterval.js";
4
+ import { BlinkerContainer as v, BlinkerImages as D, BlinkerControls as L } from "./styles.js";
5
+ import { getClampedArrayIndex as $ } from "../../lib/utils.js";
6
+ const u = ({
7
+ images: n = [],
8
+ activeIndex: s = 0,
9
+ autoplay: B = !0,
10
+ loop: x = !0,
11
+ interval: h = 200,
12
+ blinkCallback: e,
13
+ loadedCallback: l,
14
+ className: g,
15
+ children: k
17
16
  }) => {
18
- const { ref: y, width: A = 1 } = w(), [c, a] = i(h), [n, f] = i(k), [s, E] = i(!1), { BREAK_MOBILE: S } = P, o = t.length > 1, m = A < parseInt(S);
19
- B(() => {
20
- l && l(n);
21
- }, [n]), B(() => {
22
- s && d && d();
23
- }, [s]);
24
- const p = (e = 0) => {
25
- const N = t.length - 1;
26
- return M(n + e, N);
27
- }, u = () => {
17
+ const [i, a] = p(B), [d, y] = p(!1), o = n.length > 1, c = (t = 0) => {
18
+ const A = n.length - 1;
19
+ return $(s + t, A);
20
+ }, f = () => {
28
21
  if (o) {
29
- const e = p(1);
30
- v === !1 && e === t.length - 1 && r(), f(e);
22
+ const t = c(1);
23
+ x === !1 && t === n.length - 1 && r(), e && e(t);
31
24
  }
32
25
  }, r = () => {
33
26
  a(!1);
34
- }, $ = () => {
35
- a((e) => !e);
27
+ }, I = () => {
28
+ a((t) => !t);
29
+ }, S = () => {
30
+ r(), f();
36
31
  }, j = () => {
37
- r(), u();
38
- }, L = () => {
39
- r(), f(p(-1));
32
+ r(), e && e(c(-1));
40
33
  };
41
- return R(u, o && s && c ? g : null), /* @__PURE__ */ O(z, { className: C, ref: y, children: [
42
- /* @__PURE__ */ x(
34
+ return P(f, o && d && i ? h : null), /* @__PURE__ */ N(v, { className: g, children: [
35
+ /* @__PURE__ */ m(
43
36
  D,
44
37
  {
45
- loadedCallback: () => E(!0),
46
- images: t,
47
- activeIndex: n,
48
- $isCondensed: m
38
+ loadedCallback: () => {
39
+ y(!0), l && l();
40
+ },
41
+ images: n,
42
+ activeIndex: s
49
43
  }
50
44
  ),
51
- o && /* @__PURE__ */ x(
52
- K,
45
+ k,
46
+ o && /* @__PURE__ */ m(
47
+ L,
53
48
  {
54
- isDisabled: !s,
55
- playing: c,
56
- handleStartStop: $,
57
- handleNext: j,
58
- handlePrevious: L,
59
- $isCondensed: m
49
+ isDisabled: !d,
50
+ playing: i,
51
+ handleStartStop: I,
52
+ handleNext: S,
53
+ handlePrevious: j
60
54
  }
61
55
  )
62
56
  ] });
63
57
  };
64
- I.displayName = "Atomic.Blinker";
65
- const Q = I;
58
+ u.displayName = "Atomic.Blinker";
59
+ const F = u;
66
60
  export {
67
- Q as default
61
+ F as default
68
62
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react/jsx-runtime"),n=require("./styles.cjs"),e=({image:t,active:r,loadCallback:l})=>{const{url:s,altText:a}=t;return i.jsx(n.BlinkerImage,{alt:a,src:s,onLoad:l,$active:r})};e.displayName="Atomic.Blinker.Image";const o=e;exports.default=o;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react/jsx-runtime"),o=require("./styles.cjs"),t=({image:i,active:s,loadCallback:e})=>{const{url:r,altText:l}=i;return n.jsx(o.BlinkerImage,{alt:l,src:r,onLoad:()=>e&&e(),style:{"--image-visibility":s?"visible":"hidden"}})};t.displayName="Atomic.Blinker.Image";const u=t;exports.default=u;
@@ -1,23 +1,23 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import { BlinkerImage as l } from "./styles.js";
3
- const e = ({
4
- image: a,
5
- active: r,
6
- loadCallback: t
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { BlinkerImage as s } from "./styles.js";
3
+ const i = ({
4
+ image: r,
5
+ active: t,
6
+ loadCallback: e
7
7
  }) => {
8
- const { url: m, altText: o } = a;
9
- return /* @__PURE__ */ i(
10
- l,
8
+ const { url: m, altText: a } = r;
9
+ return /* @__PURE__ */ n(
10
+ s,
11
11
  {
12
- alt: o,
12
+ alt: a,
13
13
  src: m,
14
- onLoad: t,
15
- $active: r
14
+ onLoad: () => e && e(),
15
+ style: { "--image-visibility": t ? "visible" : "hidden" }
16
16
  }
17
17
  );
18
18
  };
19
- e.displayName = "Atomic.Blinker.Image";
20
- const c = e;
19
+ i.displayName = "Atomic.Blinker.Image";
20
+ const g = i;
21
21
  export {
22
- c as default
22
+ g as default
23
23
  };
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("styled-components"),s=e=>e&&e.__esModule?e:{default:e},i=s(t),n=i.default.img`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("styled-components"),n=e=>e&&e.__esModule?e:{default:e},o=n(t),i=o.default.img`
2
2
  position: absolute;
3
3
  top: 0;
4
4
  right: 0;
@@ -13,10 +13,5 @@
13
13
  -o-user-drag: none;
14
14
  -ms-user-drag: none;
15
15
  user-drag: none;
16
-
17
- ${({$active:e})=>e?t.css`
18
- visibility: visible;
19
- `:t.css`
20
- visibility: hidden;
21
- `}
22
- `;exports.BlinkerImage=n;
16
+ visibility: var(--image-visibility, hidden);
17
+ `;exports.BlinkerImage=i;
@@ -1,5 +1,5 @@
1
- import o, { css as e } from "styled-components";
2
- const r = o.img`
1
+ import e from "styled-components";
2
+ const o = e.img`
3
3
  position: absolute;
4
4
  top: 0;
5
5
  right: 0;
@@ -14,13 +14,8 @@ const r = o.img`
14
14
  -o-user-drag: none;
15
15
  -ms-user-drag: none;
16
16
  user-drag: none;
17
-
18
- ${({ $active: i }) => i ? e`
19
- visibility: visible;
20
- ` : e`
21
- visibility: hidden;
22
- `}
17
+ visibility: var(--image-visibility, hidden);
23
18
  `;
24
19
  export {
25
- r as BlinkerImage
20
+ o as BlinkerImage
26
21
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),i=require("react"),j=require("@rubin-epo/epo-react-lib/CircularLoader"),o=require("./styles.cjs"),I=require("../Image/Image.cjs"),q=e=>e&&e.__esModule?e:{default:e},x=q(j),u=({images:e=[],activeIndex:c,className:l,loadedCallback:n})=>{const[r,d]=i.useState(0),[t,g]=i.useState(!0),f=()=>{d(s=>s+1)};return i.useEffect(()=>{g(r!==e.length),t||n&&n()},[r,t]),a.jsxs(o.BlinkContainer,{"data-testid":"blinker-images",className:l,children:[!r&&a.jsx(x.default,{isVisible:t}),a.jsx(o.LoadingContainer,{$isLoading:t,children:e.map((s,m)=>{const{url:L}=s,_=c===m;return a.jsx(I.default,{image:s,active:_,loadCallback:f},L)})})]})};u.displayName="Atomic.Blinker.Images";const b=u;exports.default=b;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),r=require("react"),j=require("@rubin-epo/epo-react-lib/CircularLoader"),o=require("./styles.cjs"),L=require("../Image/Image.cjs"),b=e=>e&&e.__esModule?e:{default:e},p=b(j),l=({images:e=[],activeIndex:u,className:c,loadedCallback:i})=>{const[n,d]=r.useState(0),t=n!==e.length,g=r.useCallback(()=>d(s=>s+1),[]);return r.useEffect(()=>{t||i&&i()},[t]),a.jsxs(o.BlinkContainer,{"data-testid":"blinker-images",className:c,children:[!n&&a.jsx(p.default,{isVisible:t}),a.jsx(o.LoadingContainer,{style:{"--loading-opacity":t?0:1},children:e.map((s,f)=>{const{url:m}=s,_=u===f;return a.jsx(L.default,{image:s,active:_,loadCallback:g},m)})})]})};l.displayName="Atomic.Blinker.Images";const q=l;exports.default=q;
@@ -1,37 +1,44 @@
1
- import { jsxs as u, jsx as o } from "react/jsx-runtime";
2
- import { useState as a, useEffect as L } from "react";
1
+ import { jsxs as g, jsx as i } from "react/jsx-runtime";
2
+ import { useState as p, useCallback as u, useEffect as k } from "react";
3
3
  import I from "@rubin-epo/epo-react-lib/CircularLoader";
4
- import { BlinkContainer as k, LoadingContainer as h } from "./styles.js";
5
- import x from "../Image/Image.js";
6
- const n = ({
7
- images: r = [],
8
- activeIndex: m,
9
- className: c,
10
- loadedCallback: s
4
+ import { BlinkContainer as L, LoadingContainer as C } from "./styles.js";
5
+ import b from "../Image/Image.js";
6
+ const s = ({
7
+ images: o = [],
8
+ activeIndex: n,
9
+ className: m,
10
+ loadedCallback: a
11
11
  }) => {
12
- const [i, d] = a(0), [e, l] = a(!0), g = () => {
13
- d((t) => t + 1);
14
- };
15
- return L(() => {
16
- l(i !== r.length), e || s && s();
17
- }, [i, e]), /* @__PURE__ */ u(k, { "data-testid": "blinker-images", className: c, children: [
18
- !i && /* @__PURE__ */ o(I, { isVisible: e }),
19
- /* @__PURE__ */ o(h, { $isLoading: e, children: r.map((t, f) => {
20
- const { url: p } = t;
21
- return /* @__PURE__ */ o(
22
- x,
23
- {
24
- image: t,
25
- active: m === f,
26
- loadCallback: g
27
- },
28
- p
29
- );
30
- }) })
12
+ const [r, c] = p(0), e = r !== o.length, l = u(
13
+ () => c((t) => t + 1),
14
+ []
15
+ );
16
+ return k(() => {
17
+ e || a && a();
18
+ }, [e]), /* @__PURE__ */ g(L, { "data-testid": "blinker-images", className: m, children: [
19
+ !r && /* @__PURE__ */ i(I, { isVisible: e }),
20
+ /* @__PURE__ */ i(
21
+ C,
22
+ {
23
+ style: { "--loading-opacity": e ? 0 : 1 },
24
+ children: o.map((t, d) => {
25
+ const { url: f } = t;
26
+ return /* @__PURE__ */ i(
27
+ b,
28
+ {
29
+ image: t,
30
+ active: n === d,
31
+ loadCallback: l
32
+ },
33
+ f
34
+ );
35
+ })
36
+ }
37
+ )
31
38
  ] });
32
39
  };
33
- n.displayName = "Atomic.Blinker.Images";
34
- const y = n;
40
+ s.displayName = "Atomic.Blinker.Images";
41
+ const A = s;
35
42
  export {
36
- y as default
43
+ A as default
37
44
  };
@@ -1,15 +1,10 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("styled-components"),i=t=>t&&t.__esModule?t:{default:t},n=i(e),o=n.default.div`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("styled-components"),i=t=>t&&t.__esModule?t:{default:t},e=i(n),o=e.default.div`
2
2
  background-color: var(--neutral95, #1f2121);
3
3
  display: flex;
4
4
  justify-content: center;
5
5
  align-items: center;
6
6
  position: relative;
7
- `,a=n.default.div`
7
+ `,a=e.default.div`
8
+ opacity: var(--loading-opacity, 0);
8
9
  transition: opacity ease var(--DURATION_SLOW, 0.4s);
9
-
10
- ${({$isLoading:t})=>t?e.css`
11
- opacity: 0;
12
- `:e.css`
13
- opacity: 1;
14
- `}
15
10
  `;exports.BlinkContainer=o;exports.LoadingContainer=a;
@@ -1,20 +1,15 @@
1
- import i, { css as t } from "styled-components";
2
- const e = i.div`
1
+ import t from "styled-components";
2
+ const n = t.div`
3
3
  background-color: var(--neutral95, #1f2121);
4
4
  display: flex;
5
5
  justify-content: center;
6
6
  align-items: center;
7
7
  position: relative;
8
- `, a = i.div`
8
+ `, o = t.div`
9
+ opacity: var(--loading-opacity, 0);
9
10
  transition: opacity ease var(--DURATION_SLOW, 0.4s);
10
-
11
- ${({ $isLoading: n }) => n ? t`
12
- opacity: 0;
13
- ` : t`
14
- opacity: 1;
15
- `}
16
11
  `;
17
12
  export {
18
- e as BlinkContainer,
19
- a as LoadingContainer
13
+ n as BlinkContainer,
14
+ o as LoadingContainer
20
15
  };
@@ -1,26 +1,25 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("styled-components"),s=require("./Controls/Controls.cjs"),i=require("./Images/Images.cjs"),o=t=>t&&t.__esModule?t:{default:t},r=o(e),n=r.default.div`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("styled-components"),r=require("@rubin-epo/epo-react-lib/styles"),o=require("./Controls/Controls.cjs"),l=require("./Images/Images.cjs"),s=e=>e&&e.__esModule?e:{default:e},t=s(n),a=t.default.div`
2
+ container: blinker / inline-size;
2
3
  display: grid;
3
4
  grid-template-columns: 1fr;
4
5
  grid-template-rows: 1fr min-content;
5
6
  justify-items: center;
6
7
  position: relative;
7
8
  height: 100%;
8
- `,l=r.default(s.default)`
9
+ `,i=r.token("BREAK_MOBILE"),d=t.default(o.default)`
9
10
  grid-row: 2;
11
+ margin-block-start: var(--PADDING_SMALL, 20px);
10
12
 
11
- ${({$isCondensed:t})=>t?e.css`
12
- margin-block-start: var(--PADDING_SMALL, 20px);
13
- `:e.css`
14
- margin-block-end: var(--PADDING_SMALL, 20px);
15
- `}
16
- `,a=r.default(i.default)`
13
+ @container blinker (min-width: ${i}) {
14
+ margin-block-end: var(--PADDING_SMALL, 20px);
15
+ }
16
+ `,c=t.default(l.default)`
17
17
  aspect-ratio: 1;
18
+ grid-row: 1;
18
19
  width: 100%;
19
20
 
20
- ${({$isCondensed:t})=>t?e.css`
21
- grid-row: 1;
22
- `:e.css`
23
- position: absolute;
24
- grid-row: span 2;
25
- `};
26
- `;exports.BlinkerContainer=n;exports.BlinkerControls=l;exports.BlinkerImages=a;
21
+ @container blinker (min-width: ${i}) {
22
+ position: absolute;
23
+ grid-row: span 2;
24
+ }
25
+ `;exports.BlinkerContainer=a;exports.BlinkerControls=d;exports.BlinkerImages=c;
@@ -1,34 +1,34 @@
1
- import o, { css as r } from "styled-components";
2
- import i from "./Controls/Controls.js";
3
- import e from "./Images/Images.js";
4
- const m = o.div`
1
+ import i from "styled-components";
2
+ import { token as t } from "@rubin-epo/epo-react-lib/styles";
3
+ import n from "./Controls/Controls.js";
4
+ import o from "./Images/Images.js";
5
+ const l = i.div`
6
+ container: blinker / inline-size;
5
7
  display: grid;
6
8
  grid-template-columns: 1fr;
7
9
  grid-template-rows: 1fr min-content;
8
10
  justify-items: center;
9
11
  position: relative;
10
12
  height: 100%;
11
- `, l = o(i)`
13
+ `, r = t("BREAK_MOBILE"), p = i(n)`
12
14
  grid-row: 2;
15
+ margin-block-start: var(--PADDING_SMALL, 20px);
13
16
 
14
- ${({ $isCondensed: t }) => t ? r`
15
- margin-block-start: var(--PADDING_SMALL, 20px);
16
- ` : r`
17
- margin-block-end: var(--PADDING_SMALL, 20px);
18
- `}
19
- `, p = o(e)`
17
+ @container blinker (min-width: ${r}) {
18
+ margin-block-end: var(--PADDING_SMALL, 20px);
19
+ }
20
+ `, c = i(o)`
20
21
  aspect-ratio: 1;
22
+ grid-row: 1;
21
23
  width: 100%;
22
24
 
23
- ${({ $isCondensed: t }) => t ? r`
24
- grid-row: 1;
25
- ` : r`
26
- position: absolute;
27
- grid-row: span 2;
28
- `};
25
+ @container blinker (min-width: ${r}) {
26
+ position: absolute;
27
+ grid-row: span 2;
28
+ }
29
29
  `;
30
30
  export {
31
- m as BlinkerContainer,
32
- l as BlinkerControls,
33
- p as BlinkerImages
31
+ l as BlinkerContainer,
32
+ p as BlinkerControls,
33
+ c as BlinkerImages
34
34
  };
Binary file
Binary file
@@ -0,0 +1,6 @@
1
+ import { FunctionComponent } from 'react';
2
+
3
+ declare const CameraFilter: FunctionComponent;
4
+ export default CameraFilter;
5
+
6
+ export { }
@@ -0,0 +1,45 @@
1
+ import { FunctionComponent } from 'react';
2
+ import { ListboxOption } from '@rubin-epo/epo-react-lib/SelectListbox';
3
+ import { Option as Option_2 } from '@rubin-epo/epo-react-lib/Select';
4
+
5
+ export declare interface AstroCategory {
6
+ type: string;
7
+ objects: AstroObject[];
8
+ }
9
+
10
+ export declare interface AstroObject {
11
+ name: string;
12
+ caption?: string;
13
+ filters: ImageFilter[];
14
+ }
15
+
16
+ declare const ColorTool: FunctionComponent<ColorToolProps>;
17
+ export default ColorTool;
18
+
19
+ declare interface ColorToolProps {
20
+ selectionCallback: (selectedData: AstroObject) => void;
21
+ data: AstroCategory[];
22
+ selectedData: AstroObject;
23
+ objectOptions?: Option_2[];
24
+ colorOptions?: ListboxOption[];
25
+ isDisabled?: boolean;
26
+ isDisplayOnly?: boolean;
27
+ hideImage?: boolean;
28
+ hideSubtitle?: boolean;
29
+ }
30
+
31
+ export declare interface ImageFilter {
32
+ label: string;
33
+ defaultColor?: string;
34
+ color?: string;
35
+ active: boolean;
36
+ image: string;
37
+ isDisabled: boolean;
38
+ value: number;
39
+ defaultValue?: number;
40
+ min: number;
41
+ max: number;
42
+ brightness?: number;
43
+ }
44
+
45
+ export { }
@@ -0,0 +1,16 @@
1
+ import { FunctionComponent } from 'react';
2
+
3
+ declare type FilterColor = "violet" | "blue" | "green" | "yellow" | "orange" | "red";
4
+
5
+ declare const FilterTool: FunctionComponent<FilterToolProps>;
6
+ export default FilterTool;
7
+
8
+ declare interface FilterToolProps {
9
+ selectionCallback?: (color: FilterColor) => void;
10
+ selectedColor?: FilterColor | "none";
11
+ isDisabled?: boolean;
12
+ id?: string;
13
+ labelledById?: string;
14
+ }
15
+
16
+ export { }
@@ -0,0 +1,28 @@
1
+ import { Alert } from '../../types/astro';
2
+ import { FunctionComponent } from 'react';
3
+ import { ImageShape } from '@rubin-epo/epo-react-lib/Image';
4
+ import { Source } from '../../types/astro';
5
+
6
+ declare interface BlinkConfig {
7
+ autoplay?: boolean;
8
+ loop?: boolean;
9
+ duration?: number;
10
+ }
11
+
12
+ declare const SourceSelector: FunctionComponent<SourceSelectorProps>;
13
+ export default SourceSelector;
14
+
15
+ declare interface SourceSelectorProps {
16
+ width?: number;
17
+ height?: number;
18
+ sources: Source[];
19
+ alerts?: Alert[];
20
+ selectedSource?: Source[];
21
+ images: ImageShape[];
22
+ selectionCallback?: (data: Source[]) => void;
23
+ blinkConfig?: BlinkConfig;
24
+ color?: string;
25
+ isDisplayOnly?: boolean;
26
+ }
27
+
28
+ export { }
@@ -0,0 +1 @@
1
+ export * from './widgets/CameraFilter/CameraFilter'
@@ -0,0 +1 @@
1
+ export * from './widgets/ColorTool/ColorTool'
@@ -0,0 +1 @@
1
+ export * from './widgets/FilterTool/FilterTool'
@@ -0,0 +1 @@
1
+ export * from './widgets/SourceSelector/SourceSelector'
@@ -1,8 +1,8 @@
1
- import { FunctionComponent } from "react";
2
- import { ImageShape } from "@rubin-epo/epo-react-lib";
1
+ import { FunctionComponent, PropsWithChildren } from "react";
2
+ import { ImageShape } from "@rubin-epo/epo-react-lib/Image";
3
3
  export interface BlinkerProps {
4
4
  images: ImageShape[];
5
- activeIndex?: number;
5
+ activeIndex: number;
6
6
  autoplay?: boolean;
7
7
  loop?: boolean;
8
8
  interval?: number;
@@ -10,5 +10,5 @@ export interface BlinkerProps {
10
10
  loadedCallback?: () => void;
11
11
  className?: string;
12
12
  }
13
- declare const Blinker: FunctionComponent<BlinkerProps>;
13
+ declare const Blinker: FunctionComponent<PropsWithChildren<BlinkerProps>>;
14
14
  export default Blinker;
@@ -1,4 +1,4 @@
1
- import { ImageShape } from "@rubin-epo/epo-react-lib";
1
+ import { ImageShape } from "@rubin-epo/epo-react-lib/Image";
2
2
  import { FunctionComponent } from "react";
3
3
  interface ImageProps {
4
4
  image: ImageShape;