@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,22 +1,20 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("styled-components"),o=require("@rubin-epo/epo-react-lib/styles"),a=e=>e&&e.__esModule?e:{default:e},t=a(i),n=t.default.section`
|
|
2
|
+
color: var(--neutral80, #404040);
|
|
2
3
|
container: colorTool / inline-size;
|
|
3
|
-
`,
|
|
4
|
-
--widget-areas: "
|
|
5
|
-
--controls-row: "controls image";
|
|
4
|
+
`,r=o.token("BREAK_LARGE_TABLET_MIN"),l=t.default.div`
|
|
5
|
+
--widget-areas: "image" "controls" "actions" "title";
|
|
6
6
|
display: grid;
|
|
7
|
-
gap: var(--PADDING_SMALL, 20px);
|
|
7
|
+
gap: var(--color-tool-padding, var(--PADDING_SMALL, 20px));
|
|
8
8
|
grid-template-areas: var(--widget-areas);
|
|
9
|
+
grid-template-columns: 1fr;
|
|
9
10
|
|
|
10
|
-
@container colorTool (min-width: ${
|
|
11
|
-
--widget-areas: "
|
|
12
|
-
|
|
11
|
+
@container colorTool (min-width: ${r}) {
|
|
12
|
+
--widget-areas: "controls image" "actions actions" "title title";
|
|
13
|
+
grid-template-columns: 1fr var(--image-width, 1fr);
|
|
13
14
|
}
|
|
14
|
-
|
|
15
|
+
`,d=t.default.dl`
|
|
15
16
|
grid-area: title;
|
|
16
17
|
margin: 0;
|
|
17
|
-
`;const f=t.default.dl`
|
|
18
|
-
grid-area: subtitle;
|
|
19
|
-
margin: 0;
|
|
20
18
|
font-size: 18px;
|
|
21
19
|
font-weight: var(--FONT_WEIGHT_NORMAL, 400);
|
|
22
20
|
|
|
@@ -39,31 +37,14 @@
|
|
|
39
37
|
white-space: pre;
|
|
40
38
|
}
|
|
41
39
|
}
|
|
42
|
-
`,
|
|
40
|
+
`,s=t.default.div`
|
|
43
41
|
display: grid;
|
|
44
42
|
grid-template-columns: max-content minmax(100px, 1fr) minmax(100px, 2fr);
|
|
45
43
|
grid-auto-rows: max-content;
|
|
46
44
|
grid-area: controls;
|
|
47
45
|
gap: 10px;
|
|
48
46
|
align-items: center;
|
|
49
|
-
`,
|
|
50
|
-
padding: 0;
|
|
51
|
-
width: 100%;
|
|
52
|
-
`,b=t.default.div`
|
|
53
|
-
position: relative;
|
|
54
|
-
aspect-ratio: 1 / 1;
|
|
55
|
-
grid-area: image;
|
|
56
|
-
background-color: rgba(0, 0, 0, 0.1);
|
|
57
|
-
`,h=t.default.img`
|
|
58
|
-
position: absolute;
|
|
59
|
-
top: 0;
|
|
60
|
-
right: 0;
|
|
61
|
-
bottom: 0;
|
|
62
|
-
left: 0;
|
|
63
|
-
display: ${({$filtersActive:e})=>e?"block":"none"};
|
|
64
|
-
width: 100%;
|
|
65
|
-
height: 100%;
|
|
66
|
-
`,x=t.default(d.default)`
|
|
47
|
+
`,c=t.default.canvas`
|
|
67
48
|
user-select: none;
|
|
68
49
|
position: absolute;
|
|
69
50
|
top: 0;
|
|
@@ -73,50 +54,13 @@
|
|
|
73
54
|
width: 100%;
|
|
74
55
|
height: 100%;
|
|
75
56
|
mix-blend-mode: screen;
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
`,v=t.default.div`
|
|
85
|
-
grid-column: span 3;
|
|
86
|
-
`,w=t.default.div`
|
|
57
|
+
opacity: var(--image-opacity, 0);
|
|
58
|
+
visibility: var(--image-visibility, hidden);
|
|
59
|
+
`,g=t.default.div`
|
|
60
|
+
position: absolute;
|
|
61
|
+
top: var(--color-tool-padding, var(--PADDING_SMALL, 20px));
|
|
62
|
+
left: var(--color-tool-padding, var(--PADDING_SMALL, 20px));
|
|
63
|
+
width: calc(100% - var(--color-tool-padding, var(--PADDING_SMALL, 20px)) * 2);
|
|
64
|
+
`,p=t.default.div`
|
|
87
65
|
font-weight: var(--FONT_WEIGHT_BOLD, 600);
|
|
88
|
-
|
|
89
|
-
grid-area: caption;
|
|
90
|
-
`,y=t.default(a.default)`
|
|
91
|
-
grid-area: reset;
|
|
92
|
-
text-align: left;
|
|
93
|
-
|
|
94
|
-
span {
|
|
95
|
-
text-align: left;
|
|
96
|
-
}
|
|
97
|
-
`,T=t.default(a.default)`
|
|
98
|
-
border-radius: 50%;
|
|
99
|
-
font-weight: var(--FONT_WEIGHT_MEDIUM, 500);
|
|
100
|
-
font-size: 22px;
|
|
101
|
-
text-transform: lowercase;
|
|
102
|
-
display: flex;
|
|
103
|
-
width: 38px;
|
|
104
|
-
height: 38px;
|
|
105
|
-
padding: 0;
|
|
106
|
-
|
|
107
|
-
${({$active:e})=>e?o.css`
|
|
108
|
-
background-color: var(--turquoise85, #12726c);
|
|
109
|
-
&:not(:disabled):not([aria-disabled="true"]):hover {
|
|
110
|
-
outline: 1px solid var(--white, #fff);
|
|
111
|
-
outline-offset: -3px;
|
|
112
|
-
}
|
|
113
|
-
`:o.css`
|
|
114
|
-
background-color: #f7f7f7;
|
|
115
|
-
border-color: #6c6e6e;
|
|
116
|
-
color: #6c6e6e !important;
|
|
117
|
-
&:not(:disabled):not([aria-disabled="true"]):hover {
|
|
118
|
-
outline: 2px solid #6c6e6e;
|
|
119
|
-
outline-offset: -2px;
|
|
120
|
-
}
|
|
121
|
-
`}
|
|
122
|
-
`;exports.BackgroundImage=h;exports.Caption=_;exports.ControlsContainer=p;exports.FilterToggleButton=T;exports.FilteredImage=x;exports.ImageContainer=b;exports.ResetButton=y;exports.SelectionContainer=v;exports.Slider=m;exports.Subtitle=f;exports.ToolsHeader=w;exports.WidgetContainer=c;exports.WidgetLayout=g;
|
|
66
|
+
`;exports.ControlsContainer=s;exports.Image=c;exports.SelectionContainer=g;exports.Title=d;exports.ToolsHeader=p;exports.WidgetContainer=n;exports.WidgetLayout=l;
|