@rubin-epo/epo-widget-lib 0.9.10 → 0.9.12
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.cjs +1 -1
- package/dist/CameraFilter.js +14 -15
- package/dist/FilterTool.cjs +1 -1
- package/dist/FilterTool.js +1 -1
- package/dist/atomic/Blinker/Blinker.cjs +1 -1
- package/dist/atomic/Blinker/Blinker.js +43 -41
- package/dist/atomic/Blinker/styles.cjs +19 -4
- package/dist/atomic/Blinker/styles.d.ts +272 -0
- package/dist/atomic/Blinker/styles.js +23 -6
- package/dist/atomic/Loader/index.cjs +1 -0
- package/dist/atomic/Loader/index.d.ts +6 -0
- package/dist/atomic/Loader/index.js +8 -0
- package/dist/atomic/Loader/styles.cjs +10 -0
- package/dist/atomic/Loader/styles.d.ts +272 -0
- package/dist/atomic/Loader/styles.js +15 -0
- package/dist/charts/Base/styles.d.ts +1 -1
- package/dist/charts/styles.d.ts +6 -6
- package/dist/layout/Controls/styles.cjs +14 -19
- package/dist/layout/Controls/styles.js +20 -25
- package/dist/widgets/CameraFilter/styles.cjs +21 -20
- package/dist/widgets/CameraFilter/styles.d.ts +13 -4
- package/dist/widgets/CameraFilter/styles.js +50 -47
- package/dist/widgets/FilterTool/styles.d.ts +6 -6
- package/dist/widgets/SourceSelector/Point/Point.cjs +1 -1
- package/dist/widgets/SourceSelector/Point/Point.d.ts +2 -7
- package/dist/widgets/SourceSelector/Point/Point.js +36 -32
- package/dist/widgets/SourceSelector/Point/styles.cjs +4 -6
- package/dist/widgets/SourceSelector/Point/styles.d.ts +482 -4
- package/dist/widgets/SourceSelector/Point/styles.js +5 -7
- package/dist/widgets/SourceSelector/PointSelector/index.cjs +1 -1
- package/dist/widgets/SourceSelector/PointSelector/index.js +35 -34
- package/dist/widgets/SourceSelector/SourceSelector.cjs +1 -1
- package/dist/widgets/SourceSelector/SourceSelector.d.ts +1 -0
- package/dist/widgets/SourceSelector/SourceSelector.js +78 -56
- package/dist/widgets/SourceSelector/styles.cjs +5 -9
- package/dist/widgets/SourceSelector/styles.js +6 -12
- package/dist/widgets/SupernovaThreeVector/Histogram/styles.d.ts +1 -1
- package/dist/widgets/SupernovaThreeVector/Skymap/styles.d.ts +7 -7
- package/package.json +2 -2
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("styled-components"),t=require("@rubin-epo/epo-react-lib/styles"),o=n=>n&&n.__esModule?n:{default:n},e=
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("styled-components"),t=require("@rubin-epo/epo-react-lib/styles"),o=require("../../layout/AspectRatio/index.cjs"),a=n=>n&&n.__esModule?n:{default:n},e=a(i),l=e.default(o.default)`
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
`,r=e.default.div`
|
|
2
5
|
container-type: inline-size;
|
|
3
|
-
container-name: camera-filter;
|
|
4
6
|
|
|
5
7
|
display: grid;
|
|
6
8
|
grid-template-columns: 1fr;
|
|
7
9
|
grid-auto-rows: min-content;
|
|
8
10
|
text-align: center;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
`,l=e.default.h3`
|
|
11
|
+
width: 100%;
|
|
12
|
+
`,s=e.default.h3`
|
|
12
13
|
margin: 0;
|
|
13
|
-
`,
|
|
14
|
+
`,d=e.default.table`
|
|
14
15
|
border-collapse: collapse;
|
|
15
16
|
text-align: center;
|
|
16
17
|
margin-inline-start: var(--filter-table-margin-inline-start);
|
|
@@ -19,16 +20,16 @@
|
|
|
19
20
|
@container (min-width: ${t.token("BREAK_TABLET")}) {
|
|
20
21
|
margin-block-start: var(--PADDING_SMALL, 20px);
|
|
21
22
|
}
|
|
22
|
-
`,
|
|
23
|
+
`,c=e.default.tbody`
|
|
23
24
|
display: table-header-group;
|
|
24
|
-
`,
|
|
25
|
+
`,f=e.default.thead`
|
|
25
26
|
display: table-row-group;
|
|
26
|
-
`,
|
|
27
|
+
`,m=e.default.td`
|
|
27
28
|
line-height: 1.2;
|
|
28
29
|
font-size: 80%;
|
|
29
|
-
`,
|
|
30
|
+
`,u=e.default.span`
|
|
30
31
|
font-size: 80%;
|
|
31
|
-
`,
|
|
32
|
+
`,p=e.default.th`
|
|
32
33
|
font-size: 120%;
|
|
33
34
|
font-weight: var(--FONT_WEIGHT_NORMAL, 400);
|
|
34
35
|
border: var(--filter-name-border);
|
|
@@ -37,15 +38,15 @@
|
|
|
37
38
|
@container (min-width: ${t.token("BREAK_TABLET")}) {
|
|
38
39
|
border-width: 3px;
|
|
39
40
|
}
|
|
40
|
-
`,
|
|
41
|
+
`,g=e.default.div`
|
|
41
42
|
min-width: 20ch;
|
|
42
43
|
width: 50%;
|
|
43
44
|
max-width: 30ch;
|
|
44
45
|
justify-self: center;
|
|
45
46
|
text-align: left;
|
|
46
|
-
`,
|
|
47
|
+
`,h=e.default.label`
|
|
47
48
|
font-size: 0.75em;
|
|
48
|
-
`,
|
|
49
|
+
`,w=e.default.text`
|
|
49
50
|
font-size: 2em;
|
|
50
51
|
|
|
51
52
|
@container (min-width: ${t.token("BREAK_MOBILE")}) {
|
|
@@ -55,7 +56,7 @@
|
|
|
55
56
|
@container (min-width: ${t.token("BREAK_PHABLET_MIN")}) {
|
|
56
57
|
font-size: 0.75em;
|
|
57
58
|
}
|
|
58
|
-
`,
|
|
59
|
+
`,b=e.default.tspan`
|
|
59
60
|
font-size: 2em;
|
|
60
61
|
|
|
61
62
|
@container (min-width: ${t.token("BREAK_MOBILE")}) {
|
|
@@ -65,7 +66,7 @@
|
|
|
65
66
|
@container (min-width: ${t.token("BREAK_PHABLET_MIN")}) {
|
|
66
67
|
font-size: 0.75em;
|
|
67
68
|
}
|
|
68
|
-
`,
|
|
69
|
+
`,_=e.default.tspan`
|
|
69
70
|
font-size: 1.5em;
|
|
70
71
|
|
|
71
72
|
@container (min-width: ${t.token("BREAK_MOBILE")}) {
|
|
@@ -75,7 +76,7 @@
|
|
|
75
76
|
@container (min-width: ${t.token("BREAK_PHABLET_MIN")}) {
|
|
76
77
|
font-size: 0.5em;
|
|
77
78
|
}
|
|
78
|
-
`,
|
|
79
|
+
`,A=e.default.tspan`
|
|
79
80
|
font-size: 1.3em;
|
|
80
81
|
|
|
81
82
|
@container (min-width: ${t.token("BREAK_MOBILE")}) {
|
|
@@ -85,7 +86,7 @@
|
|
|
85
86
|
@container (min-width: ${t.token("BREAK_PHABLET_MIN")}) {
|
|
86
87
|
font-size: 0.4em;
|
|
87
88
|
}
|
|
88
|
-
`,
|
|
89
|
+
`,B=e.default.ul`
|
|
89
90
|
display: flex;
|
|
90
91
|
justify-content: space-between;
|
|
91
92
|
line-height: 1.2;
|
|
@@ -93,7 +94,7 @@
|
|
|
93
94
|
margin: var(--PADDING_SMALL, 20px) 0 0;
|
|
94
95
|
padding: 0;
|
|
95
96
|
list-style-type: none;
|
|
96
|
-
`,
|
|
97
|
+
`,E=e.default.li`
|
|
97
98
|
list-style-type: none;
|
|
98
99
|
margin: 0;
|
|
99
100
|
padding: 0;
|
|
@@ -101,4 +102,4 @@
|
|
|
101
102
|
&:before {
|
|
102
103
|
content: "\200B";
|
|
103
104
|
}
|
|
104
|
-
`;exports.ColorName=
|
|
105
|
+
`;exports.ColorName=b;exports.ColorSpectrum=_;exports.ColorSpectrumUnit=A;exports.CondensedRange=E;exports.CondensedRangeRow=B;exports.FilterContainer=r;exports.FilterName=p;exports.FilterNames=f;exports.FilterRange=m;exports.FilterRanges=c;exports.FilterTable=d;exports.FilterTitle=s;exports.FilterWrapper=l;exports.SelectContainer=g;exports.SelectLabel=h;exports.SpectrumLabel=w;exports.Wavelength=u;
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import AspectRatio from '../../layout/AspectRatio';
|
|
3
|
+
export declare const FilterWrapper: import("styled-components").IStyledComponent<"web", {
|
|
4
|
+
ratio: AspectRatio;
|
|
5
|
+
medScreenRatio?: AspectRatio | undefined;
|
|
6
|
+
smallScreenRatio?: AspectRatio | undefined;
|
|
7
|
+
className?: string | undefined;
|
|
8
|
+
children?: import("react").ReactNode;
|
|
9
|
+
}> & import("react").FunctionComponent<import("react").PropsWithChildren<import('../../layout/AspectRatio').AspectRatioProps>>;
|
|
1
10
|
export declare const FilterContainer: import("styled-components").IStyledComponent<"web", {
|
|
2
11
|
ref?: import("react").LegacyRef<HTMLDivElement> | undefined;
|
|
3
12
|
key?: import("react").Key | null | undefined;
|
|
@@ -2941,7 +2950,7 @@ export declare const SpectrumLabel: import("styled-components").IStyledComponent
|
|
|
2941
2950
|
stroke?: string | undefined;
|
|
2942
2951
|
strokeDasharray?: string | number | undefined;
|
|
2943
2952
|
strokeDashoffset?: string | number | undefined;
|
|
2944
|
-
strokeLinecap?: "inherit" | "
|
|
2953
|
+
strokeLinecap?: "inherit" | "square" | "butt" | "round" | undefined;
|
|
2945
2954
|
strokeLinejoin?: "inherit" | "round" | "miter" | "bevel" | undefined;
|
|
2946
2955
|
strokeMiterlimit?: string | number | undefined;
|
|
2947
2956
|
strokeOpacity?: string | number | undefined;
|
|
@@ -3423,7 +3432,7 @@ export declare const ColorName: import("styled-components").IStyledComponent<"we
|
|
|
3423
3432
|
stroke?: string | undefined;
|
|
3424
3433
|
strokeDasharray?: string | number | undefined;
|
|
3425
3434
|
strokeDashoffset?: string | number | undefined;
|
|
3426
|
-
strokeLinecap?: "inherit" | "
|
|
3435
|
+
strokeLinecap?: "inherit" | "square" | "butt" | "round" | undefined;
|
|
3427
3436
|
strokeLinejoin?: "inherit" | "round" | "miter" | "bevel" | undefined;
|
|
3428
3437
|
strokeMiterlimit?: string | number | undefined;
|
|
3429
3438
|
strokeOpacity?: string | number | undefined;
|
|
@@ -3905,7 +3914,7 @@ export declare const ColorSpectrum: import("styled-components").IStyledComponent
|
|
|
3905
3914
|
stroke?: string | undefined;
|
|
3906
3915
|
strokeDasharray?: string | number | undefined;
|
|
3907
3916
|
strokeDashoffset?: string | number | undefined;
|
|
3908
|
-
strokeLinecap?: "inherit" | "
|
|
3917
|
+
strokeLinecap?: "inherit" | "square" | "butt" | "round" | undefined;
|
|
3909
3918
|
strokeLinejoin?: "inherit" | "round" | "miter" | "bevel" | undefined;
|
|
3910
3919
|
strokeMiterlimit?: string | number | undefined;
|
|
3911
3920
|
strokeOpacity?: string | number | undefined;
|
|
@@ -4387,7 +4396,7 @@ export declare const ColorSpectrumUnit: import("styled-components").IStyledCompo
|
|
|
4387
4396
|
stroke?: string | undefined;
|
|
4388
4397
|
strokeDasharray?: string | number | undefined;
|
|
4389
4398
|
strokeDashoffset?: string | number | undefined;
|
|
4390
|
-
strokeLinecap?: "inherit" | "
|
|
4399
|
+
strokeLinecap?: "inherit" | "square" | "butt" | "round" | undefined;
|
|
4391
4400
|
strokeLinejoin?: "inherit" | "round" | "miter" | "bevel" | undefined;
|
|
4392
4401
|
strokeMiterlimit?: string | number | undefined;
|
|
4393
4402
|
strokeOpacity?: string | number | undefined;
|
|
@@ -1,94 +1,96 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
import { token as
|
|
4
|
-
|
|
2
|
+
import t from "styled-components";
|
|
3
|
+
import { token as e } from "@rubin-epo/epo-react-lib/styles";
|
|
4
|
+
import n from "../../layout/AspectRatio/index.js";
|
|
5
|
+
const a = t(n)`
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
`, s = t.div`
|
|
5
9
|
container-type: inline-size;
|
|
6
|
-
container-name: camera-filter;
|
|
7
10
|
|
|
8
11
|
display: grid;
|
|
9
12
|
grid-template-columns: 1fr;
|
|
10
13
|
grid-auto-rows: min-content;
|
|
11
14
|
text-align: center;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
`, r = e.h3`
|
|
15
|
+
width: 100%;
|
|
16
|
+
`, l = t.h3`
|
|
15
17
|
margin: 0;
|
|
16
|
-
`,
|
|
18
|
+
`, c = t.table`
|
|
17
19
|
border-collapse: collapse;
|
|
18
20
|
text-align: center;
|
|
19
21
|
margin-inline-start: var(--filter-table-margin-inline-start);
|
|
20
22
|
width: var(--filter-table-width);
|
|
21
23
|
|
|
22
|
-
@container (min-width: ${
|
|
24
|
+
@container (min-width: ${e("BREAK_TABLET")}) {
|
|
23
25
|
margin-block-start: var(--PADDING_SMALL, 20px);
|
|
24
26
|
}
|
|
25
|
-
`,
|
|
27
|
+
`, m = t.tbody`
|
|
26
28
|
display: table-header-group;
|
|
27
|
-
`,
|
|
29
|
+
`, d = t.thead`
|
|
28
30
|
display: table-row-group;
|
|
29
|
-
`,
|
|
31
|
+
`, p = t.td`
|
|
30
32
|
line-height: 1.2;
|
|
31
33
|
font-size: 80%;
|
|
32
|
-
`,
|
|
34
|
+
`, f = t.span`
|
|
33
35
|
font-size: 80%;
|
|
34
|
-
`,
|
|
36
|
+
`, h = t.th`
|
|
35
37
|
font-size: 120%;
|
|
36
38
|
font-weight: var(--FONT_WEIGHT_NORMAL, 400);
|
|
37
39
|
border: var(--filter-name-border);
|
|
38
40
|
border-width: 1px;
|
|
39
41
|
|
|
40
|
-
@container (min-width: ${
|
|
42
|
+
@container (min-width: ${e("BREAK_TABLET")}) {
|
|
41
43
|
border-width: 3px;
|
|
42
44
|
}
|
|
43
|
-
`,
|
|
45
|
+
`, g = t.div`
|
|
44
46
|
min-width: 20ch;
|
|
45
47
|
width: 50%;
|
|
46
48
|
max-width: 30ch;
|
|
47
49
|
justify-self: center;
|
|
48
50
|
text-align: left;
|
|
49
|
-
`,
|
|
51
|
+
`, w = t.label`
|
|
50
52
|
font-size: 0.75em;
|
|
51
|
-
`,
|
|
53
|
+
`, A = t.text`
|
|
52
54
|
font-size: 2em;
|
|
53
55
|
|
|
54
|
-
@container (min-width: ${
|
|
56
|
+
@container (min-width: ${e("BREAK_MOBILE")}) {
|
|
55
57
|
font-size: 1.25em;
|
|
56
58
|
}
|
|
57
59
|
|
|
58
|
-
@container (min-width: ${
|
|
60
|
+
@container (min-width: ${e("BREAK_PHABLET_MIN")}) {
|
|
59
61
|
font-size: 0.75em;
|
|
60
62
|
}
|
|
61
|
-
`,
|
|
63
|
+
`, B = t.tspan`
|
|
62
64
|
font-size: 2em;
|
|
63
65
|
|
|
64
|
-
@container (min-width: ${
|
|
66
|
+
@container (min-width: ${e("BREAK_MOBILE")}) {
|
|
65
67
|
font-size: 1.25em;
|
|
66
68
|
}
|
|
67
69
|
|
|
68
|
-
@container (min-width: ${
|
|
70
|
+
@container (min-width: ${e("BREAK_PHABLET_MIN")}) {
|
|
69
71
|
font-size: 0.75em;
|
|
70
72
|
}
|
|
71
|
-
`,
|
|
73
|
+
`, E = t.tspan`
|
|
72
74
|
font-size: 1.5em;
|
|
73
75
|
|
|
74
|
-
@container (min-width: ${
|
|
76
|
+
@container (min-width: ${e("BREAK_MOBILE")}) {
|
|
75
77
|
font-size: 1em;
|
|
76
78
|
}
|
|
77
79
|
|
|
78
|
-
@container (min-width: ${
|
|
80
|
+
@container (min-width: ${e("BREAK_PHABLET_MIN")}) {
|
|
79
81
|
font-size: 0.5em;
|
|
80
82
|
}
|
|
81
|
-
`,
|
|
83
|
+
`, b = t.tspan`
|
|
82
84
|
font-size: 1.3em;
|
|
83
85
|
|
|
84
|
-
@container (min-width: ${
|
|
86
|
+
@container (min-width: ${e("BREAK_MOBILE")}) {
|
|
85
87
|
font-size: 0.8em;
|
|
86
88
|
}
|
|
87
89
|
|
|
88
|
-
@container (min-width: ${
|
|
90
|
+
@container (min-width: ${e("BREAK_PHABLET_MIN")}) {
|
|
89
91
|
font-size: 0.4em;
|
|
90
92
|
}
|
|
91
|
-
`,
|
|
93
|
+
`, z = t.ul`
|
|
92
94
|
display: flex;
|
|
93
95
|
justify-content: space-between;
|
|
94
96
|
line-height: 1.2;
|
|
@@ -96,7 +98,7 @@ const o = e.div`
|
|
|
96
98
|
margin: var(--PADDING_SMALL, 20px) 0 0;
|
|
97
99
|
padding: 0;
|
|
98
100
|
list-style-type: none;
|
|
99
|
-
`,
|
|
101
|
+
`, _ = t.li`
|
|
100
102
|
list-style-type: none;
|
|
101
103
|
margin: 0;
|
|
102
104
|
padding: 0;
|
|
@@ -106,20 +108,21 @@ const o = e.div`
|
|
|
106
108
|
}
|
|
107
109
|
`;
|
|
108
110
|
export {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
111
|
+
B as ColorName,
|
|
112
|
+
E as ColorSpectrum,
|
|
113
|
+
b as ColorSpectrumUnit,
|
|
114
|
+
_ as CondensedRange,
|
|
115
|
+
z as CondensedRangeRow,
|
|
116
|
+
s as FilterContainer,
|
|
117
|
+
h as FilterName,
|
|
118
|
+
d as FilterNames,
|
|
119
|
+
p as FilterRange,
|
|
120
|
+
m as FilterRanges,
|
|
121
|
+
c as FilterTable,
|
|
122
|
+
l as FilterTitle,
|
|
123
|
+
a as FilterWrapper,
|
|
124
|
+
g as SelectContainer,
|
|
125
|
+
w as SelectLabel,
|
|
126
|
+
A as SpectrumLabel,
|
|
127
|
+
f as Wavelength
|
|
125
128
|
};
|
|
@@ -750,7 +750,7 @@ export declare const PrismSVG: import("styled-components").IStyledComponent<"web
|
|
|
750
750
|
stroke?: string | undefined;
|
|
751
751
|
strokeDasharray?: string | number | undefined;
|
|
752
752
|
strokeDashoffset?: string | number | undefined;
|
|
753
|
-
strokeLinecap?: "inherit" | "
|
|
753
|
+
strokeLinecap?: "inherit" | "square" | "butt" | "round" | undefined;
|
|
754
754
|
strokeLinejoin?: "inherit" | "round" | "miter" | "bevel" | undefined;
|
|
755
755
|
strokeMiterlimit?: string | number | undefined;
|
|
756
756
|
strokeOpacity?: string | number | undefined;
|
|
@@ -1232,7 +1232,7 @@ export declare const WhiteLine: import("styled-components").IStyledComponent<"we
|
|
|
1232
1232
|
stroke?: string | undefined;
|
|
1233
1233
|
strokeDasharray?: string | number | undefined;
|
|
1234
1234
|
strokeDashoffset?: string | number | undefined;
|
|
1235
|
-
strokeLinecap?: "inherit" | "
|
|
1235
|
+
strokeLinecap?: "inherit" | "square" | "butt" | "round" | undefined;
|
|
1236
1236
|
strokeLinejoin?: "inherit" | "round" | "miter" | "bevel" | undefined;
|
|
1237
1237
|
strokeMiterlimit?: string | number | undefined;
|
|
1238
1238
|
strokeOpacity?: string | number | undefined;
|
|
@@ -1714,7 +1714,7 @@ export declare const Ray: import("styled-components").IStyledComponent<"web", {
|
|
|
1714
1714
|
stroke?: string | undefined;
|
|
1715
1715
|
strokeDasharray?: string | number | undefined;
|
|
1716
1716
|
strokeDashoffset?: string | number | undefined;
|
|
1717
|
-
strokeLinecap?: "inherit" | "
|
|
1717
|
+
strokeLinecap?: "inherit" | "square" | "butt" | "round" | undefined;
|
|
1718
1718
|
strokeLinejoin?: "inherit" | "round" | "miter" | "bevel" | undefined;
|
|
1719
1719
|
strokeMiterlimit?: string | number | undefined;
|
|
1720
1720
|
strokeOpacity?: string | number | undefined;
|
|
@@ -2196,7 +2196,7 @@ export declare const Arrow: import("styled-components").IStyledComponent<"web",
|
|
|
2196
2196
|
stroke?: string | undefined;
|
|
2197
2197
|
strokeDasharray?: string | number | undefined;
|
|
2198
2198
|
strokeDashoffset?: string | number | undefined;
|
|
2199
|
-
strokeLinecap?: "inherit" | "
|
|
2199
|
+
strokeLinecap?: "inherit" | "square" | "butt" | "round" | undefined;
|
|
2200
2200
|
strokeLinejoin?: "inherit" | "round" | "miter" | "bevel" | undefined;
|
|
2201
2201
|
strokeMiterlimit?: string | number | undefined;
|
|
2202
2202
|
strokeOpacity?: string | number | undefined;
|
|
@@ -2678,7 +2678,7 @@ export declare const PrismOutline: import("styled-components").IStyledComponent<
|
|
|
2678
2678
|
stroke?: string | undefined;
|
|
2679
2679
|
strokeDasharray?: string | number | undefined;
|
|
2680
2680
|
strokeDashoffset?: string | number | undefined;
|
|
2681
|
-
strokeLinecap?: "inherit" | "
|
|
2681
|
+
strokeLinecap?: "inherit" | "square" | "butt" | "round" | undefined;
|
|
2682
2682
|
strokeLinejoin?: "inherit" | "round" | "miter" | "bevel" | undefined;
|
|
2683
2683
|
strokeMiterlimit?: string | number | undefined;
|
|
2684
2684
|
strokeOpacity?: string | number | undefined;
|
|
@@ -3160,7 +3160,7 @@ export declare const Filter: import("styled-components").IStyledComponent<"web",
|
|
|
3160
3160
|
stroke?: string | undefined;
|
|
3161
3161
|
strokeDasharray?: string | number | undefined;
|
|
3162
3162
|
strokeDashoffset?: string | number | undefined;
|
|
3163
|
-
strokeLinecap?: "inherit" | "
|
|
3163
|
+
strokeLinecap?: "inherit" | "square" | "butt" | "round" | undefined;
|
|
3164
3164
|
strokeLinejoin?: "inherit" | "round" | "miter" | "bevel" | undefined;
|
|
3165
3165
|
strokeMiterlimit?: string | number | undefined;
|
|
3166
3166
|
strokeOpacity?: string | number | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("react/jsx-runtime"),g=require("./styles.cjs"),y=(e,t)=>{const r={supernova:20,galaxy:60,galaxyFilter:25};if(t)return typeof t=="number"?Math.abs(t):t;const{[e]:n=8}=r;return n},m=(e,t,r)=>e?"#fed828":t?r:"transparent",o=({type:e,isActive:t,isSelected:r,x:n,y:s,radius:i,className:a,color:l,onClickCallback:u,id:c})=>{const f=y(e,i);return d.jsx(g.Point,{onClick:u,cx:n,cy:s,fill:"transparent",stroke:m(t,r,l),strokeWidth:3,transform:`scale(${t?1.2:1})`,tabIndex:0,role:"listitem",className:a,r:f,id:c})};o.displayName="Widgets.SourceSelector.Point";const p=o;exports.default=p;
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Source } from '../../../types/astro';
|
|
2
2
|
import { FunctionComponent, MouseEventHandler } from "react";
|
|
3
|
-
export interface PointProps {
|
|
4
|
-
type: SourceType;
|
|
3
|
+
export interface PointProps extends Source {
|
|
5
4
|
isSelected: boolean;
|
|
6
5
|
isActive: boolean;
|
|
7
|
-
x: number;
|
|
8
|
-
y: number;
|
|
9
|
-
radius?: number;
|
|
10
6
|
className?: string;
|
|
11
|
-
color: string;
|
|
12
7
|
onClickCallback?: MouseEventHandler<SVGCircleElement>;
|
|
13
8
|
}
|
|
14
9
|
declare const Point: FunctionComponent<PointProps>;
|
|
@@ -1,44 +1,48 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Point as
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
isActive: n,
|
|
6
|
-
isSelected: a,
|
|
7
|
-
x: c,
|
|
8
|
-
y: l,
|
|
9
|
-
radius: u,
|
|
10
|
-
className: d,
|
|
11
|
-
color: f,
|
|
12
|
-
onClickCallback: m
|
|
13
|
-
}) => {
|
|
14
|
-
const p = {
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { Point as p } from "./styles.js";
|
|
3
|
+
const d = (r, t) => {
|
|
4
|
+
const e = {
|
|
15
5
|
supernova: 20,
|
|
16
6
|
galaxy: 60,
|
|
17
7
|
galaxyFilter: 25
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
8
|
+
};
|
|
9
|
+
if (t)
|
|
10
|
+
return typeof t == "number" ? Math.abs(t) : t;
|
|
11
|
+
const { [r]: n = 8 } = e;
|
|
12
|
+
return n;
|
|
13
|
+
}, x = (r, t, e) => r ? "#fed828" : t ? e : "transparent", o = ({
|
|
14
|
+
type: r,
|
|
15
|
+
isActive: t,
|
|
16
|
+
isSelected: e,
|
|
17
|
+
x: n,
|
|
18
|
+
y: a,
|
|
19
|
+
radius: s,
|
|
20
|
+
className: i,
|
|
21
|
+
color: l,
|
|
22
|
+
onClickCallback: c,
|
|
23
|
+
id: f
|
|
24
|
+
}) => {
|
|
25
|
+
const u = d(r, s);
|
|
26
|
+
return /* @__PURE__ */ m(
|
|
27
|
+
p,
|
|
26
28
|
{
|
|
27
|
-
onClick:
|
|
28
|
-
cx:
|
|
29
|
-
cy:
|
|
30
|
-
r: n ? P : o,
|
|
29
|
+
onClick: c,
|
|
30
|
+
cx: n,
|
|
31
|
+
cy: a,
|
|
31
32
|
fill: "transparent",
|
|
32
|
-
stroke:
|
|
33
|
+
stroke: x(t, e, l),
|
|
34
|
+
strokeWidth: 3,
|
|
35
|
+
transform: `scale(${t ? 1.2 : 1})`,
|
|
33
36
|
tabIndex: 0,
|
|
34
37
|
role: "listitem",
|
|
35
|
-
|
|
36
|
-
|
|
38
|
+
className: i,
|
|
39
|
+
r: u,
|
|
40
|
+
id: f
|
|
37
41
|
}
|
|
38
42
|
);
|
|
39
43
|
};
|
|
40
|
-
|
|
41
|
-
const
|
|
44
|
+
o.displayName = "Widgets.SourceSelector.Point";
|
|
45
|
+
const P = o;
|
|
42
46
|
export {
|
|
43
|
-
|
|
47
|
+
P as default
|
|
44
48
|
};
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("styled-components"),o=t=>t&&t.__esModule?t:{default:t},
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("styled-components"),o=t=>t&&t.__esModule?t:{default:t},n=o(e),r=n.default.circle`
|
|
2
2
|
cursor: pointer;
|
|
3
|
-
transition:
|
|
4
|
-
|
|
5
|
-
stroke-width: 3;
|
|
6
|
-
`}
|
|
3
|
+
transition: transform ease var(--DURATION, 0.2s);
|
|
4
|
+
transform-origin: center;
|
|
7
5
|
|
|
8
6
|
&:focus {
|
|
9
7
|
outline: none;
|
|
10
8
|
}
|
|
11
|
-
`;exports.Point=
|
|
9
|
+
`;exports.Point=r;
|