@rubin-epo/epo-widget-lib 0.5.1-alpha.0 → 0.6.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.
- package/dist/CameraFilter.d.ts +3 -0
- package/dist/ColorTool.cjs +1 -1
- package/dist/ColorTool.d.ts +3 -0
- package/dist/ColorTool.js +115 -79
- package/dist/FilterTool.d.ts +3 -0
- package/dist/SourceSelector.d.ts +3 -0
- package/dist/atomic/Blinker/Blinker.d.ts +14 -0
- package/dist/atomic/Blinker/Controls/Controls.d.ts +11 -0
- package/dist/atomic/Blinker/Controls/styles.d.ts +272 -0
- package/dist/atomic/Blinker/Image/Image.d.ts +9 -0
- package/dist/atomic/Blinker/Image/styles.d.ts +283 -0
- package/dist/atomic/Blinker/Images/Images.d.ts +8 -0
- package/dist/atomic/Blinker/Images/styles.d.ts +544 -0
- package/dist/atomic/Blinker/_mocks/index.d.ts +2 -0
- package/dist/atomic/Blinker/index.d.ts +1 -0
- package/dist/atomic/ElapsedTime/ElapsedTime.d.ts +10 -0
- package/dist/atomic/ElapsedTime/index.d.ts +1 -0
- package/dist/atomic/ElapsedTime/styles.d.ts +1633 -0
- package/dist/atomic/PlaybackControl/PlaybackControl.d.ts +9 -0
- package/dist/atomic/PlaybackControl/index.d.ts +1 -0
- package/dist/atomic/PlaybackControl/styles.d.ts +554 -0
- package/dist/hooks/useImage.cjs +1 -0
- package/dist/hooks/useImage.d.ts +10 -0
- package/dist/hooks/useImage.js +30 -0
- package/dist/hooks/useInterval.d.ts +1 -0
- package/dist/lib/reimg.cjs +1 -0
- package/dist/lib/reimg.d.ts +7 -0
- package/dist/lib/reimg.js +60 -0
- package/dist/lib/utils.d.ts +13 -0
- package/dist/lib/utils.test.d.ts +1 -0
- package/dist/styles/svg.d.ts +272 -0
- package/dist/{types → widgets/CameraFilter}/CameraFilter.d.ts +3 -6
- package/dist/widgets/CameraFilter/CondensedFilterRanges/CondensedFilterRanges.d.ts +9 -0
- package/dist/widgets/CameraFilter/CondensedFilterRanges/index.d.ts +1 -0
- package/dist/widgets/CameraFilter/SpectrumDisplay/ColorLabels/ColorLabels.d.ts +10 -0
- package/dist/widgets/CameraFilter/SpectrumDisplay/ColorLabels/index.d.ts +1 -0
- package/dist/widgets/CameraFilter/SpectrumDisplay/SpectrumDisplay.d.ts +11 -0
- package/dist/widgets/CameraFilter/SpectrumDisplay/SpectrumLabels/SpectrumLabels.d.ts +14 -0
- package/dist/widgets/CameraFilter/SpectrumDisplay/SpectrumLabels/index.d.ts +1 -0
- package/dist/widgets/CameraFilter/SpectrumDisplay/index.d.ts +1 -0
- package/dist/widgets/CameraFilter/data.d.ts +39 -0
- package/dist/widgets/CameraFilter/index.d.ts +1 -0
- package/dist/widgets/CameraFilter/styles.d.ts +4398 -0
- package/dist/widgets/ColorTool/Actions/Export/index.cjs +1 -0
- package/dist/widgets/ColorTool/Actions/Export/index.d.ts +12 -0
- package/dist/widgets/ColorTool/Actions/Export/index.js +36 -0
- package/dist/widgets/ColorTool/Actions/Reset/index.cjs +1 -0
- package/dist/widgets/ColorTool/Actions/Reset/index.d.ts +9 -0
- package/dist/widgets/ColorTool/Actions/Reset/index.js +39 -0
- package/dist/widgets/ColorTool/Actions/index.cjs +1 -0
- package/dist/widgets/ColorTool/Actions/index.d.ts +13 -0
- package/dist/widgets/ColorTool/Actions/index.js +55 -0
- package/dist/widgets/ColorTool/Actions/styles.cjs +5 -0
- package/dist/widgets/ColorTool/Actions/styles.d.ts +272 -0
- package/dist/widgets/ColorTool/Actions/styles.js +9 -0
- package/dist/{types → widgets/ColorTool}/ColorTool.d.ts +44 -45
- package/dist/widgets/ColorTool/FilterControls/FilterControls.cjs +1 -1
- package/dist/widgets/ColorTool/FilterControls/FilterControls.d.ts +14 -0
- package/dist/widgets/ColorTool/FilterControls/FilterControls.js +43 -41
- package/dist/widgets/ColorTool/FilterControls/index.d.ts +1 -0
- package/dist/widgets/ColorTool/FilterControls/styles.cjs +58 -0
- package/dist/widgets/ColorTool/FilterControls/styles.d.ts +956 -0
- package/dist/widgets/ColorTool/FilterControls/styles.js +67 -0
- package/dist/widgets/ColorTool/FilterImage/FilterImage.cjs +1 -1
- package/dist/widgets/ColorTool/FilterImage/FilterImage.d.ts +16 -0
- package/dist/widgets/ColorTool/FilterImage/FilterImage.js +40 -31
- package/dist/widgets/ColorTool/FilterImage/index.d.ts +1 -0
- package/dist/widgets/ColorTool/ImageComposite/ImageComposite.cjs +1 -1
- package/dist/widgets/ColorTool/ImageComposite/ImageComposite.d.ts +12 -0
- package/dist/widgets/ColorTool/ImageComposite/ImageComposite.js +54 -29
- package/dist/widgets/ColorTool/ImageComposite/index.d.ts +1 -0
- package/dist/widgets/ColorTool/ImageComposite/styles.cjs +19 -0
- package/dist/widgets/ColorTool/ImageComposite/styles.d.ts +544 -0
- package/dist/widgets/ColorTool/ImageComposite/styles.js +24 -0
- package/dist/widgets/ColorTool/index.d.ts +1 -0
- package/dist/widgets/ColorTool/styles.cjs +21 -77
- package/dist/widgets/ColorTool/styles.d.ts +1906 -0
- package/dist/widgets/ColorTool/styles.js +29 -96
- package/dist/widgets/ColorTool/utilities.cjs +1 -1
- package/dist/widgets/ColorTool/utilities.d.ts +22 -0
- package/dist/widgets/ColorTool/utilities.js +30 -29
- package/dist/{types → widgets/FilterTool}/FilterTool.d.ts +11 -16
- package/dist/widgets/FilterTool/index.d.ts +1 -0
- package/dist/widgets/FilterTool/styles.d.ts +3710 -0
- package/dist/widgets/SourceSelector/Message/Message.d.ts +10 -0
- package/dist/widgets/SourceSelector/Message/index.d.ts +1 -0
- package/dist/widgets/SourceSelector/Message/styles.d.ts +5 -0
- package/dist/widgets/SourceSelector/Point/Point.d.ts +15 -0
- package/dist/widgets/SourceSelector/Point/index.d.ts +1 -0
- package/dist/widgets/SourceSelector/Point/styles.d.ts +4 -0
- package/dist/widgets/SourceSelector/Points/Points.d.ts +13 -0
- package/dist/widgets/SourceSelector/Points/index.d.ts +1 -0
- package/dist/{types → widgets/SourceSelector}/SourceSelector.d.ts +22 -28
- package/dist/widgets/SourceSelector/index.d.ts +1 -0
- package/dist/widgets/SourceSelector/mocks/index.d.ts +7 -0
- package/dist/widgets/SourceSelector/utilities.d.ts +1 -0
- package/dist/widgets/SourceSelector/utilities.test.d.ts +1 -0
- package/package.json +7 -23
|
@@ -1,63 +1,65 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as i, Fragment as B, jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import I from "@rubin-epo/epo-react-lib/SelectListbox";
|
|
3
3
|
import { getBrightnessValue as j } from "../utilities.js";
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import {
|
|
6
|
-
const
|
|
4
|
+
import { useTranslation as C } from "react-i18next";
|
|
5
|
+
import { FilterLabel as L, HiddenCheckbox as S, FilterToggle as W, Slider as w } from "./styles.js";
|
|
6
|
+
const d = ({
|
|
7
7
|
filter: t,
|
|
8
|
-
colorOptions:
|
|
8
|
+
colorOptions: c,
|
|
9
9
|
isDisabled: r,
|
|
10
|
-
onChangeFilterCallback:
|
|
11
|
-
buttonLabelledById:
|
|
12
|
-
selectLabelledById:
|
|
13
|
-
sliderLabelledById:
|
|
10
|
+
onChangeFilterCallback: e,
|
|
11
|
+
buttonLabelledById: m,
|
|
12
|
+
selectLabelledById: h,
|
|
13
|
+
sliderLabelledById: p
|
|
14
14
|
}) => {
|
|
15
|
-
const { t:
|
|
15
|
+
const { t: b } = C(), { label: n, color: a = "", value: x, active: s, min: g, max: u } = t, y = () => e && e({ ...t, active: !s }), f = (o) => o && e && e({ ...t, color: o }), v = (o) => e && e({
|
|
16
16
|
...t,
|
|
17
|
-
brightness: j(
|
|
18
|
-
value:
|
|
19
|
-
}),
|
|
20
|
-
return /* @__PURE__ */ B
|
|
21
|
-
/* @__PURE__ */
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
17
|
+
brightness: j(g, u, o),
|
|
18
|
+
value: o
|
|
19
|
+
}), T = b("colorTool.actions.select_filter");
|
|
20
|
+
return /* @__PURE__ */ i(B, { children: [
|
|
21
|
+
/* @__PURE__ */ i(L, { "aria-labelledby": m, children: [
|
|
22
|
+
/* @__PURE__ */ l(
|
|
23
|
+
S,
|
|
24
|
+
{
|
|
25
|
+
disabled: r,
|
|
26
|
+
checked: s,
|
|
27
|
+
type: "checkbox",
|
|
28
|
+
onChange: y
|
|
29
|
+
}
|
|
30
|
+
),
|
|
31
|
+
/* @__PURE__ */ l(W, { as: "span", children: n })
|
|
32
|
+
] }),
|
|
33
|
+
/* @__PURE__ */ l(
|
|
32
34
|
I,
|
|
33
35
|
{
|
|
34
36
|
isDisabled: r,
|
|
35
|
-
placeholder:
|
|
36
|
-
value:
|
|
37
|
-
options:
|
|
38
|
-
onChangeCallback:
|
|
37
|
+
placeholder: T,
|
|
38
|
+
value: a,
|
|
39
|
+
options: c,
|
|
40
|
+
onChangeCallback: f,
|
|
39
41
|
width: "100%",
|
|
40
42
|
maxWidth: "100%",
|
|
41
|
-
labelledById:
|
|
43
|
+
labelledById: h
|
|
42
44
|
}
|
|
43
45
|
),
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
|
|
46
|
+
/* @__PURE__ */ l(
|
|
47
|
+
w,
|
|
46
48
|
{
|
|
47
49
|
min: 1,
|
|
48
50
|
max: 100,
|
|
49
|
-
onChangeCallback:
|
|
50
|
-
isDisabled: !
|
|
51
|
-
labelledbyId:
|
|
52
|
-
value:
|
|
53
|
-
label:
|
|
54
|
-
color:
|
|
51
|
+
onChangeCallback: v,
|
|
52
|
+
isDisabled: !s,
|
|
53
|
+
labelledbyId: p,
|
|
54
|
+
value: x,
|
|
55
|
+
label: n,
|
|
56
|
+
color: a
|
|
55
57
|
}
|
|
56
58
|
)
|
|
57
59
|
] });
|
|
58
60
|
};
|
|
59
|
-
|
|
60
|
-
const
|
|
61
|
+
d.displayName = "Widgets.ColorTool.FilterControls";
|
|
62
|
+
const _ = d;
|
|
61
63
|
export {
|
|
62
|
-
|
|
64
|
+
_ as default
|
|
63
65
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./FilterControls";
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("styled-components"),l=require("@rubin-epo/epo-react-lib/HorizontalSlider"),n=require("@rubin-epo/epo-react-lib/Button"),o=e=>e&&e.__esModule?e:{default:e},t=o(i),d=o(l),r=o(n),s=t.default.input`
|
|
2
|
+
position: absolute;
|
|
3
|
+
left: -999px;
|
|
4
|
+
width: 1px;
|
|
5
|
+
height: 1px;
|
|
6
|
+
top: auto;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
`,u=t.default(r.default)`
|
|
9
|
+
background-color: var(--filter-toggle-background, #f7f7f7);
|
|
10
|
+
border: 1px solid;
|
|
11
|
+
color: var(--filter-toggle-color, #6c6e6e);
|
|
12
|
+
display: flex;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
border-radius: 50%;
|
|
15
|
+
font-weight: var(--FONT_WEIGHT_MEDIUM, 500);
|
|
16
|
+
font-size: 22px;
|
|
17
|
+
text-transform: lowercase;
|
|
18
|
+
width: 38px;
|
|
19
|
+
height: 38px;
|
|
20
|
+
padding: 0;
|
|
21
|
+
user-select: none;
|
|
22
|
+
`,a=t.default.label`
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
|
|
25
|
+
input:not(:disabled) + span {
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
|
|
28
|
+
&:hover {
|
|
29
|
+
outline: 2px solid #6c6e6e;
|
|
30
|
+
outline-offset: -2px;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
input:not(:disabled):focus + span,
|
|
35
|
+
input:not(:disabled):focus-visible + span {
|
|
36
|
+
outline: 2px solid #6c6e6e;
|
|
37
|
+
outline-offset: -2px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
input:not(:disabled):checked + span {
|
|
41
|
+
--filter-toggle-background: var(--turquoise85, #12726c);
|
|
42
|
+
--filter-toggle-color: var(--white, #fff);
|
|
43
|
+
|
|
44
|
+
&:hover {
|
|
45
|
+
outline: 1px solid var(--white, #fff);
|
|
46
|
+
outline-offset: -3px;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
input:not(:disabled):checked:focus + span,
|
|
51
|
+
input:not(:disabled):checked:focus-visible + span {
|
|
52
|
+
outline: 1px solid var(--white, #fff);
|
|
53
|
+
outline-offset: -3px;
|
|
54
|
+
}
|
|
55
|
+
`,f=t.default(d.default)`
|
|
56
|
+
padding: 0;
|
|
57
|
+
width: 100%;
|
|
58
|
+
`;exports.FilterLabel=a;exports.FilterToggle=u;exports.HiddenCheckbox=s;exports.Slider=f;
|