@spear-ai/spectral 1.3.20 → 1.3.22
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/.js +84 -77
- package/dist/Button.js +1 -1
- package/dist/Card.js +4 -4
- package/dist/Drawer.js +15 -8
- package/dist/Icons/AnnotationsIcon.js +3 -3
- package/dist/Icons/CalendarIcon.js +8 -8
- package/dist/Icons/DeleteIcon.js +10 -10
- package/dist/Icons/DurationIcon.js +9 -9
- package/dist/Icons/EraserIcon.js +7 -7
- package/dist/Icons/GoToFirstIcon.js +10 -10
- package/dist/Icons/GoToLastIcon.js +8 -8
- package/dist/Icons/IconBase.js +8 -7
- package/dist/Icons/InfoIcon.js +32 -0
- package/dist/Icons/LabelIcon.js +6 -6
- package/dist/Icons/LassoIcon.js +3 -3
- package/dist/Icons/LineToolIcon.js +14 -14
- package/dist/Icons/LiveViewIcon.js +30 -30
- package/dist/Icons/LocationIcon.js +6 -6
- package/dist/Icons/MetadataIcon.js +8 -8
- package/dist/Icons/OntologyIcon.js +5 -5
- package/dist/Icons/PlayIcon.js +11 -11
- package/dist/Icons/PlusIcon.js +9 -9
- package/dist/Icons/ResetIcon.js +8 -8
- package/dist/Icons/ScissorsIcon.js +15 -15
- package/dist/Icons/SettingsIcon.js +42 -0
- package/dist/Icons/TrashIcon.js +1 -1
- package/dist/Icons/UndoIcon.js +5 -5
- package/dist/Icons/ZoomAllIcon.js +57 -25
- package/dist/Icons/ZoomXIcon.js +7 -7
- package/dist/Icons.js +38 -34
- package/dist/Popover.js +48 -42
- package/dist/RadioGroup/RadioGroupBase.js +120 -118
- package/dist/RadioGroup.js +41 -0
- package/dist/Slider/SliderBase.js +98 -99
- package/dist/Slider.js +3 -3
- package/dist/ToggleGroup.js +9 -9
- package/dist/assets/main.css +1 -1
- package/dist/components/Drawer/Drawer.d.ts +2 -0
- package/dist/components/Drawer/Drawer.d.ts.map +1 -1
- package/dist/components/Icons/IconBase.d.ts +5 -5
- package/dist/components/Icons/IconBase.d.ts.map +1 -1
- package/dist/components/Icons/InfoIcon.d.ts +3 -0
- package/dist/components/Icons/InfoIcon.d.ts.map +1 -0
- package/dist/components/Icons/SettingsIcon.d.ts +3 -0
- package/dist/components/Icons/SettingsIcon.d.ts.map +1 -0
- package/dist/components/Icons/ZoomAllIcon.d.ts.map +1 -1
- package/dist/components/Icons/index.d.ts +2 -0
- package/dist/components/Icons/index.d.ts.map +1 -1
- package/dist/components/Popover/Popover.d.ts +1 -1
- package/dist/components/Popover/Popover.d.ts.map +1 -1
- package/dist/components/RadioGroup/RadioGroup.d.ts +11 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts.map +1 -0
- package/dist/components/RadioGroup/RadioGroupBase.d.ts +2 -0
- package/dist/components/RadioGroup/RadioGroupBase.d.ts.map +1 -1
- package/dist/components/Slider/Slider.d.ts +1 -1
- package/dist/components/Slider/Slider.d.ts.map +1 -1
- package/dist/components/Slider/SliderBase.d.ts +2 -2
- package/dist/components/Slider/SliderBase.d.ts.map +1 -1
- package/dist/{loader-circle-Btf6jOd5.js → createLucideIcon-CI1yJrZf.js} +9 -16
- package/dist/features/HorizonColorGrid/HorizonColorGrid.d.ts +3 -0
- package/dist/features/HorizonColorGrid/HorizonColorGrid.d.ts.map +1 -0
- package/dist/features/HorizonColorGrid.js +70 -0
- package/dist/features/LabelingTools.js +4 -2
- package/dist/features/SensorMetadata/SensorMetadata.d.ts +2 -0
- package/dist/features/SensorMetadata/SensorMetadata.d.ts.map +1 -0
- package/dist/features/SensorMetadata.js +85 -0
- package/dist/features/SettingsPopover/SettingsPopover.d.ts +2 -0
- package/dist/features/SettingsPopover/SettingsPopover.d.ts.map +1 -0
- package/dist/features/SettingsPopover.js +194 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/loader-circle-CvdzOiQ_.js +11 -0
- package/dist/themes/grayscale-theme.webp +0 -0
- package/dist/themes/green-black-theme.webp +0 -0
- package/dist/themes/reverse-grayscale-theme.webp +0 -0
- package/dist/themes/viridis-theme.webp +0 -0
- package/package.json +5 -2
- package/src/styles/main.css +1 -0
package/dist/Icons.js
CHANGED
|
@@ -3,50 +3,54 @@ import './assets/main.css';
|
|
|
3
3
|
import { AnnotationsIcon as e } from "./Icons/AnnotationsIcon.js";
|
|
4
4
|
import { CalendarIcon as n } from "./Icons/CalendarIcon.js";
|
|
5
5
|
import { ClockIcon as m } from "./Icons/ClockIcon.js";
|
|
6
|
-
import { DeleteIcon as
|
|
7
|
-
import { DurationIcon as
|
|
6
|
+
import { DeleteIcon as I } from "./Icons/DeleteIcon.js";
|
|
7
|
+
import { DurationIcon as x } from "./Icons/DurationIcon.js";
|
|
8
8
|
import { EraserIcon as s } from "./Icons/EraserIcon.js";
|
|
9
9
|
import { GoToFirstIcon as i } from "./Icons/GoToFirstIcon.js";
|
|
10
10
|
import { GoToLastIcon as T } from "./Icons/GoToLastIcon.js";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
11
|
+
import { InfoIcon as Z } from "./Icons/InfoIcon.js";
|
|
12
|
+
import { LabelIcon as u } from "./Icons/LabelIcon.js";
|
|
13
|
+
import { LassoIcon as A } from "./Icons/LassoIcon.js";
|
|
14
|
+
import { LineToolIcon as D } from "./Icons/LineToolIcon.js";
|
|
15
|
+
import { LiveViewIcon as P } from "./Icons/LiveViewIcon.js";
|
|
15
16
|
import { LocationIcon as b } from "./Icons/LocationIcon.js";
|
|
16
|
-
import { MetadataIcon as
|
|
17
|
-
import { OntologyIcon as
|
|
18
|
-
import { PlayIcon as
|
|
19
|
-
import { PlusIcon as
|
|
20
|
-
import { ResetIcon as
|
|
21
|
-
import { ScissorsIcon as
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
17
|
+
import { MetadataIcon as k } from "./Icons/MetadataIcon.js";
|
|
18
|
+
import { OntologyIcon as w } from "./Icons/OntologyIcon.js";
|
|
19
|
+
import { PlayIcon as F } from "./Icons/PlayIcon.js";
|
|
20
|
+
import { PlusIcon as O } from "./Icons/PlusIcon.js";
|
|
21
|
+
import { ResetIcon as U } from "./Icons/ResetIcon.js";
|
|
22
|
+
import { ScissorsIcon as X } from "./Icons/ScissorsIcon.js";
|
|
23
|
+
import { SettingsIcon as j } from "./Icons/SettingsIcon.js";
|
|
24
|
+
import { TrashIcon as z } from "./Icons/TrashIcon.js";
|
|
25
|
+
import { UndoIcon as H } from "./Icons/UndoIcon.js";
|
|
26
|
+
import { ZoomAllIcon as K } from "./Icons/ZoomAllIcon.js";
|
|
27
|
+
import { ZoomXIcon as Q } from "./Icons/ZoomXIcon.js";
|
|
28
|
+
import { ZoomYIcon as _ } from "./Icons/ZoomYIcon.js";
|
|
27
29
|
export {
|
|
28
30
|
e as AnnotationsIcon,
|
|
29
31
|
n as CalendarIcon,
|
|
30
32
|
m as ClockIcon,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
I as DeleteIcon,
|
|
34
|
+
x as DurationIcon,
|
|
33
35
|
s as EraserIcon,
|
|
34
36
|
i as GoToFirstIcon,
|
|
35
37
|
T as GoToLastIcon,
|
|
36
|
-
Z as
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
Z as InfoIcon,
|
|
39
|
+
u as LabelIcon,
|
|
40
|
+
A as LassoIcon,
|
|
41
|
+
D as LineToolIcon,
|
|
42
|
+
P as LiveViewIcon,
|
|
40
43
|
b as LocationIcon,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
44
|
+
k as MetadataIcon,
|
|
45
|
+
w as OntologyIcon,
|
|
46
|
+
F as PlayIcon,
|
|
47
|
+
O as PlusIcon,
|
|
48
|
+
U as ResetIcon,
|
|
49
|
+
X as ScissorsIcon,
|
|
50
|
+
j as SettingsIcon,
|
|
51
|
+
z as TrashIcon,
|
|
52
|
+
H as UndoIcon,
|
|
53
|
+
K as ZoomAllIcon,
|
|
54
|
+
Q as ZoomXIcon,
|
|
55
|
+
_ as ZoomYIcon
|
|
52
56
|
};
|
package/dist/Popover.js
CHANGED
|
@@ -4,20 +4,20 @@ import { jsx as s } from "react/jsx-runtime";
|
|
|
4
4
|
import * as i from "react";
|
|
5
5
|
import { u as L, c as z, a as G, P as x, b as H, d as O, e as _, f as P, g as K, D as j } from "./index-B7LSgz_k.js";
|
|
6
6
|
import { h as U, R as V, u as W, F as Z } from "./index-gg2zpNk0.js";
|
|
7
|
-
import { c as
|
|
7
|
+
import { c as w, R as q, A as b, C as B, a as J } from "./index-sDEISz8i.js";
|
|
8
8
|
import { c as Q } from "./twUtils-CRiPKpXj.js";
|
|
9
9
|
var C = "Popover", [E, he] = z(C, [
|
|
10
|
-
|
|
11
|
-
]), g =
|
|
10
|
+
w
|
|
11
|
+
]), g = w(), [X, l] = E(C), F = (e) => {
|
|
12
12
|
const {
|
|
13
|
-
__scopePopover:
|
|
13
|
+
__scopePopover: a,
|
|
14
14
|
children: t,
|
|
15
|
-
open:
|
|
15
|
+
open: n,
|
|
16
16
|
defaultOpen: o,
|
|
17
17
|
onOpenChange: r,
|
|
18
18
|
modal: c = !1
|
|
19
|
-
} = e, p = g(
|
|
20
|
-
prop:
|
|
19
|
+
} = e, p = g(a), f = i.useRef(null), [v, h] = i.useState(!1), [m, u] = L({
|
|
20
|
+
prop: n,
|
|
21
21
|
defaultProp: o ?? !1,
|
|
22
22
|
onChange: r,
|
|
23
23
|
caller: C
|
|
@@ -25,7 +25,7 @@ var C = "Popover", [E, he] = z(C, [
|
|
|
25
25
|
return /* @__PURE__ */ s(q, { ...p, children: /* @__PURE__ */ s(
|
|
26
26
|
X,
|
|
27
27
|
{
|
|
28
|
-
scope:
|
|
28
|
+
scope: a,
|
|
29
29
|
contentId: G(),
|
|
30
30
|
triggerRef: f,
|
|
31
31
|
open: m,
|
|
@@ -41,15 +41,15 @@ var C = "Popover", [E, he] = z(C, [
|
|
|
41
41
|
};
|
|
42
42
|
F.displayName = C;
|
|
43
43
|
var N = "PopoverAnchor", S = i.forwardRef(
|
|
44
|
-
(e,
|
|
45
|
-
const { __scopePopover: t, ...
|
|
46
|
-
return i.useEffect(() => (c(), () => p()), [c, p]), /* @__PURE__ */ s(
|
|
44
|
+
(e, a) => {
|
|
45
|
+
const { __scopePopover: t, ...n } = e, o = l(N, t), r = g(t), { onCustomAnchorAdd: c, onCustomAnchorRemove: p } = o;
|
|
46
|
+
return i.useEffect(() => (c(), () => p()), [c, p]), /* @__PURE__ */ s(b, { ...r, ...n, ref: a });
|
|
47
47
|
}
|
|
48
48
|
);
|
|
49
49
|
S.displayName = N;
|
|
50
50
|
var y = "PopoverTrigger", D = i.forwardRef(
|
|
51
|
-
(e,
|
|
52
|
-
const { __scopePopover: t, ...
|
|
51
|
+
(e, a) => {
|
|
52
|
+
const { __scopePopover: t, ...n } = e, o = l(y, t), r = g(t), c = O(a, o.triggerRef), p = /* @__PURE__ */ s(
|
|
53
53
|
_.button,
|
|
54
54
|
{
|
|
55
55
|
type: "button",
|
|
@@ -57,34 +57,34 @@ var y = "PopoverTrigger", D = i.forwardRef(
|
|
|
57
57
|
"aria-expanded": o.open,
|
|
58
58
|
"aria-controls": o.contentId,
|
|
59
59
|
"data-state": $(o.open),
|
|
60
|
-
...
|
|
60
|
+
...n,
|
|
61
61
|
ref: c,
|
|
62
62
|
onClick: P(e.onClick, o.onOpenToggle)
|
|
63
63
|
}
|
|
64
64
|
);
|
|
65
|
-
return o.hasCustomAnchor ? p : /* @__PURE__ */ s(
|
|
65
|
+
return o.hasCustomAnchor ? p : /* @__PURE__ */ s(b, { asChild: !0, ...r, children: p });
|
|
66
66
|
}
|
|
67
67
|
);
|
|
68
68
|
D.displayName = y;
|
|
69
69
|
var A = "PopoverPortal", [Y, ee] = E(A, {
|
|
70
70
|
forceMount: void 0
|
|
71
71
|
}), M = (e) => {
|
|
72
|
-
const { __scopePopover:
|
|
73
|
-
return /* @__PURE__ */ s(Y, { scope:
|
|
72
|
+
const { __scopePopover: a, forceMount: t, children: n, container: o } = e, r = l(A, a);
|
|
73
|
+
return /* @__PURE__ */ s(Y, { scope: a, forceMount: t, children: /* @__PURE__ */ s(x, { present: t || r.open, children: /* @__PURE__ */ s(H, { asChild: !0, container: o, children: n }) }) });
|
|
74
74
|
};
|
|
75
75
|
M.displayName = A;
|
|
76
76
|
var d = "PopoverContent", T = i.forwardRef(
|
|
77
|
-
(e,
|
|
78
|
-
const t = ee(d, e.__scopePopover), { forceMount:
|
|
79
|
-
return /* @__PURE__ */ s(x, { present:
|
|
77
|
+
(e, a) => {
|
|
78
|
+
const t = ee(d, e.__scopePopover), { forceMount: n = t.forceMount, ...o } = e, r = l(d, e.__scopePopover);
|
|
79
|
+
return /* @__PURE__ */ s(x, { present: n || r.open, children: r.modal ? /* @__PURE__ */ s(te, { ...o, ref: a }) : /* @__PURE__ */ s(re, { ...o, ref: a }) });
|
|
80
80
|
}
|
|
81
81
|
);
|
|
82
82
|
T.displayName = d;
|
|
83
83
|
var oe = K("PopoverContent.RemoveScroll"), te = i.forwardRef(
|
|
84
|
-
(e,
|
|
85
|
-
const t = l(d, e.__scopePopover),
|
|
84
|
+
(e, a) => {
|
|
85
|
+
const t = l(d, e.__scopePopover), n = i.useRef(null), o = O(a, n), r = i.useRef(!1);
|
|
86
86
|
return i.useEffect(() => {
|
|
87
|
-
const c =
|
|
87
|
+
const c = n.current;
|
|
88
88
|
if (c) return U(c);
|
|
89
89
|
}, []), /* @__PURE__ */ s(V, { as: oe, allowPinchZoom: !0, children: /* @__PURE__ */ s(
|
|
90
90
|
k,
|
|
@@ -113,20 +113,20 @@ var oe = K("PopoverContent.RemoveScroll"), te = i.forwardRef(
|
|
|
113
113
|
) });
|
|
114
114
|
}
|
|
115
115
|
), re = i.forwardRef(
|
|
116
|
-
(e,
|
|
117
|
-
const t = l(d, e.__scopePopover),
|
|
116
|
+
(e, a) => {
|
|
117
|
+
const t = l(d, e.__scopePopover), n = i.useRef(!1), o = i.useRef(!1);
|
|
118
118
|
return /* @__PURE__ */ s(
|
|
119
119
|
k,
|
|
120
120
|
{
|
|
121
121
|
...e,
|
|
122
|
-
ref:
|
|
122
|
+
ref: a,
|
|
123
123
|
trapFocus: !1,
|
|
124
124
|
disableOutsidePointerEvents: !1,
|
|
125
125
|
onCloseAutoFocus: (r) => {
|
|
126
|
-
e.onCloseAutoFocus?.(r), r.defaultPrevented || (
|
|
126
|
+
e.onCloseAutoFocus?.(r), r.defaultPrevented || (n.current || t.triggerRef.current?.focus(), r.preventDefault()), n.current = !1, o.current = !1;
|
|
127
127
|
},
|
|
128
128
|
onInteractOutside: (r) => {
|
|
129
|
-
e.onInteractOutside?.(r), r.defaultPrevented || (
|
|
129
|
+
e.onInteractOutside?.(r), r.defaultPrevented || (n.current = !0, r.detail.originalEvent.type === "pointerdown" && (o.current = !0));
|
|
130
130
|
const c = r.target;
|
|
131
131
|
t.triggerRef.current?.contains(c) && r.preventDefault(), r.detail.originalEvent.type === "focusin" && o.current && r.preventDefault();
|
|
132
132
|
}
|
|
@@ -134,10 +134,10 @@ var oe = K("PopoverContent.RemoveScroll"), te = i.forwardRef(
|
|
|
134
134
|
);
|
|
135
135
|
}
|
|
136
136
|
), k = i.forwardRef(
|
|
137
|
-
(e,
|
|
137
|
+
(e, a) => {
|
|
138
138
|
const {
|
|
139
139
|
__scopePopover: t,
|
|
140
|
-
trapFocus:
|
|
140
|
+
trapFocus: n,
|
|
141
141
|
onOpenAutoFocus: o,
|
|
142
142
|
onCloseAutoFocus: r,
|
|
143
143
|
disableOutsidePointerEvents: c,
|
|
@@ -152,7 +152,7 @@ var oe = K("PopoverContent.RemoveScroll"), te = i.forwardRef(
|
|
|
152
152
|
{
|
|
153
153
|
asChild: !0,
|
|
154
154
|
loop: !0,
|
|
155
|
-
trapped:
|
|
155
|
+
trapped: n,
|
|
156
156
|
onMountAutoFocus: o,
|
|
157
157
|
onUnmountAutoFocus: r,
|
|
158
158
|
children: /* @__PURE__ */ s(
|
|
@@ -173,7 +173,7 @@ var oe = K("PopoverContent.RemoveScroll"), te = i.forwardRef(
|
|
|
173
173
|
id: u.contentId,
|
|
174
174
|
...R,
|
|
175
175
|
...m,
|
|
176
|
-
ref:
|
|
176
|
+
ref: a,
|
|
177
177
|
style: {
|
|
178
178
|
...m.style,
|
|
179
179
|
"--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
@@ -190,14 +190,14 @@ var oe = K("PopoverContent.RemoveScroll"), te = i.forwardRef(
|
|
|
190
190
|
);
|
|
191
191
|
}
|
|
192
192
|
), I = "PopoverClose", ne = i.forwardRef(
|
|
193
|
-
(e,
|
|
194
|
-
const { __scopePopover: t, ...
|
|
193
|
+
(e, a) => {
|
|
194
|
+
const { __scopePopover: t, ...n } = e, o = l(I, t);
|
|
195
195
|
return /* @__PURE__ */ s(
|
|
196
196
|
_.button,
|
|
197
197
|
{
|
|
198
198
|
type: "button",
|
|
199
|
-
...
|
|
200
|
-
ref:
|
|
199
|
+
...n,
|
|
200
|
+
ref: a,
|
|
201
201
|
onClick: P(e.onClick, () => o.onOpenChange(!1))
|
|
202
202
|
}
|
|
203
203
|
);
|
|
@@ -205,9 +205,9 @@ var oe = K("PopoverContent.RemoveScroll"), te = i.forwardRef(
|
|
|
205
205
|
);
|
|
206
206
|
ne.displayName = I;
|
|
207
207
|
var ae = "PopoverArrow", se = i.forwardRef(
|
|
208
|
-
(e,
|
|
209
|
-
const { __scopePopover: t, ...
|
|
210
|
-
return /* @__PURE__ */ s(J, { ...o, ...
|
|
208
|
+
(e, a) => {
|
|
209
|
+
const { __scopePopover: t, ...n } = e, o = g(t);
|
|
210
|
+
return /* @__PURE__ */ s(J, { ...o, ...n, ref: a });
|
|
211
211
|
}
|
|
212
212
|
);
|
|
213
213
|
se.displayName = ae;
|
|
@@ -221,12 +221,18 @@ function me({ ...e }) {
|
|
|
221
221
|
function Ce({ ...e }) {
|
|
222
222
|
return /* @__PURE__ */ s(pe, { asChild: !0, "data-slot": "popover-trigger", ...e });
|
|
223
223
|
}
|
|
224
|
-
function Re({
|
|
224
|
+
function Re({
|
|
225
|
+
className: e,
|
|
226
|
+
align: a = "center",
|
|
227
|
+
sideOffset: t = 4,
|
|
228
|
+
width: n = "w-fit",
|
|
229
|
+
...o
|
|
230
|
+
}) {
|
|
225
231
|
return /* @__PURE__ */ s(le, { children: /* @__PURE__ */ s(
|
|
226
232
|
ue,
|
|
227
233
|
{
|
|
228
234
|
"data-slot": "popover-content",
|
|
229
|
-
align:
|
|
235
|
+
align: a,
|
|
230
236
|
sideOffset: t,
|
|
231
237
|
className: Q(
|
|
232
238
|
"bg-popover-bg text-popover-text data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0",
|
|
@@ -235,7 +241,7 @@ function Re({ className: e, align: n = "center", sideOffset: t = 4, width: a = 3
|
|
|
235
241
|
"max-h-[var(--radix-popover-content-max-height)] origin-(--radix-popover-content-transform-origin) rounded-lg border-none p-4 shadow-md outline-hidden",
|
|
236
242
|
e
|
|
237
243
|
),
|
|
238
|
-
style: { width: `${
|
|
244
|
+
style: { width: `${n ? `${n}px` : "w-fit"}` },
|
|
239
245
|
...o
|
|
240
246
|
}
|
|
241
247
|
) });
|