@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.
Files changed (78) hide show
  1. package/dist/.js +84 -77
  2. package/dist/Button.js +1 -1
  3. package/dist/Card.js +4 -4
  4. package/dist/Drawer.js +15 -8
  5. package/dist/Icons/AnnotationsIcon.js +3 -3
  6. package/dist/Icons/CalendarIcon.js +8 -8
  7. package/dist/Icons/DeleteIcon.js +10 -10
  8. package/dist/Icons/DurationIcon.js +9 -9
  9. package/dist/Icons/EraserIcon.js +7 -7
  10. package/dist/Icons/GoToFirstIcon.js +10 -10
  11. package/dist/Icons/GoToLastIcon.js +8 -8
  12. package/dist/Icons/IconBase.js +8 -7
  13. package/dist/Icons/InfoIcon.js +32 -0
  14. package/dist/Icons/LabelIcon.js +6 -6
  15. package/dist/Icons/LassoIcon.js +3 -3
  16. package/dist/Icons/LineToolIcon.js +14 -14
  17. package/dist/Icons/LiveViewIcon.js +30 -30
  18. package/dist/Icons/LocationIcon.js +6 -6
  19. package/dist/Icons/MetadataIcon.js +8 -8
  20. package/dist/Icons/OntologyIcon.js +5 -5
  21. package/dist/Icons/PlayIcon.js +11 -11
  22. package/dist/Icons/PlusIcon.js +9 -9
  23. package/dist/Icons/ResetIcon.js +8 -8
  24. package/dist/Icons/ScissorsIcon.js +15 -15
  25. package/dist/Icons/SettingsIcon.js +42 -0
  26. package/dist/Icons/TrashIcon.js +1 -1
  27. package/dist/Icons/UndoIcon.js +5 -5
  28. package/dist/Icons/ZoomAllIcon.js +57 -25
  29. package/dist/Icons/ZoomXIcon.js +7 -7
  30. package/dist/Icons.js +38 -34
  31. package/dist/Popover.js +48 -42
  32. package/dist/RadioGroup/RadioGroupBase.js +120 -118
  33. package/dist/RadioGroup.js +41 -0
  34. package/dist/Slider/SliderBase.js +98 -99
  35. package/dist/Slider.js +3 -3
  36. package/dist/ToggleGroup.js +9 -9
  37. package/dist/assets/main.css +1 -1
  38. package/dist/components/Drawer/Drawer.d.ts +2 -0
  39. package/dist/components/Drawer/Drawer.d.ts.map +1 -1
  40. package/dist/components/Icons/IconBase.d.ts +5 -5
  41. package/dist/components/Icons/IconBase.d.ts.map +1 -1
  42. package/dist/components/Icons/InfoIcon.d.ts +3 -0
  43. package/dist/components/Icons/InfoIcon.d.ts.map +1 -0
  44. package/dist/components/Icons/SettingsIcon.d.ts +3 -0
  45. package/dist/components/Icons/SettingsIcon.d.ts.map +1 -0
  46. package/dist/components/Icons/ZoomAllIcon.d.ts.map +1 -1
  47. package/dist/components/Icons/index.d.ts +2 -0
  48. package/dist/components/Icons/index.d.ts.map +1 -1
  49. package/dist/components/Popover/Popover.d.ts +1 -1
  50. package/dist/components/Popover/Popover.d.ts.map +1 -1
  51. package/dist/components/RadioGroup/RadioGroup.d.ts +11 -0
  52. package/dist/components/RadioGroup/RadioGroup.d.ts.map +1 -0
  53. package/dist/components/RadioGroup/RadioGroupBase.d.ts +2 -0
  54. package/dist/components/RadioGroup/RadioGroupBase.d.ts.map +1 -1
  55. package/dist/components/Slider/Slider.d.ts +1 -1
  56. package/dist/components/Slider/Slider.d.ts.map +1 -1
  57. package/dist/components/Slider/SliderBase.d.ts +2 -2
  58. package/dist/components/Slider/SliderBase.d.ts.map +1 -1
  59. package/dist/{loader-circle-Btf6jOd5.js → createLucideIcon-CI1yJrZf.js} +9 -16
  60. package/dist/features/HorizonColorGrid/HorizonColorGrid.d.ts +3 -0
  61. package/dist/features/HorizonColorGrid/HorizonColorGrid.d.ts.map +1 -0
  62. package/dist/features/HorizonColorGrid.js +70 -0
  63. package/dist/features/LabelingTools.js +4 -2
  64. package/dist/features/SensorMetadata/SensorMetadata.d.ts +2 -0
  65. package/dist/features/SensorMetadata/SensorMetadata.d.ts.map +1 -0
  66. package/dist/features/SensorMetadata.js +85 -0
  67. package/dist/features/SettingsPopover/SettingsPopover.d.ts +2 -0
  68. package/dist/features/SettingsPopover/SettingsPopover.d.ts.map +1 -0
  69. package/dist/features/SettingsPopover.js +194 -0
  70. package/dist/index.d.ts +1 -0
  71. package/dist/index.d.ts.map +1 -1
  72. package/dist/loader-circle-CvdzOiQ_.js +11 -0
  73. package/dist/themes/grayscale-theme.webp +0 -0
  74. package/dist/themes/green-black-theme.webp +0 -0
  75. package/dist/themes/reverse-grayscale-theme.webp +0 -0
  76. package/dist/themes/viridis-theme.webp +0 -0
  77. package/package.json +5 -2
  78. 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 p } from "./Icons/DeleteIcon.js";
7
- import { DurationIcon as I } from "./Icons/DurationIcon.js";
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 { LabelIcon as Z } from "./Icons/LabelIcon.js";
12
- import { LassoIcon as y } from "./Icons/LassoIcon.js";
13
- import { LineToolIcon as C } from "./Icons/LineToolIcon.js";
14
- import { LiveViewIcon as G } from "./Icons/LiveViewIcon.js";
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 h } from "./Icons/MetadataIcon.js";
17
- import { OntologyIcon as v } from "./Icons/OntologyIcon.js";
18
- import { PlayIcon as E } from "./Icons/PlayIcon.js";
19
- import { PlusIcon as M } from "./Icons/PlusIcon.js";
20
- import { ResetIcon as R } from "./Icons/ResetIcon.js";
21
- import { ScissorsIcon as U } from "./Icons/ScissorsIcon.js";
22
- import { TrashIcon as X } from "./Icons/TrashIcon.js";
23
- import { UndoIcon as j } from "./Icons/UndoIcon.js";
24
- import { ZoomAllIcon as z } from "./Icons/ZoomAllIcon.js";
25
- import { ZoomXIcon as H } from "./Icons/ZoomXIcon.js";
26
- import { ZoomYIcon as K } from "./Icons/ZoomYIcon.js";
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
- p as DeleteIcon,
32
- I as DurationIcon,
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 LabelIcon,
37
- y as LassoIcon,
38
- C as LineToolIcon,
39
- G as LiveViewIcon,
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
- h as MetadataIcon,
42
- v as OntologyIcon,
43
- E as PlayIcon,
44
- M as PlusIcon,
45
- R as ResetIcon,
46
- U as ScissorsIcon,
47
- X as TrashIcon,
48
- j as UndoIcon,
49
- z as ZoomAllIcon,
50
- H as ZoomXIcon,
51
- K as ZoomYIcon
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 b, R as q, A as w, C as B, a as J } from "./index-sDEISz8i.js";
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
- b
11
- ]), g = b(), [X, l] = E(C), F = (e) => {
10
+ w
11
+ ]), g = w(), [X, l] = E(C), F = (e) => {
12
12
  const {
13
- __scopePopover: n,
13
+ __scopePopover: a,
14
14
  children: t,
15
- open: a,
15
+ open: n,
16
16
  defaultOpen: o,
17
17
  onOpenChange: r,
18
18
  modal: c = !1
19
- } = e, p = g(n), f = i.useRef(null), [v, h] = i.useState(!1), [m, u] = L({
20
- prop: a,
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: n,
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, n) => {
45
- const { __scopePopover: t, ...a } = e, o = l(N, t), r = g(t), { onCustomAnchorAdd: c, onCustomAnchorRemove: p } = o;
46
- return i.useEffect(() => (c(), () => p()), [c, p]), /* @__PURE__ */ s(w, { ...r, ...a, ref: n });
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, n) => {
52
- const { __scopePopover: t, ...a } = e, o = l(y, t), r = g(t), c = O(n, o.triggerRef), p = /* @__PURE__ */ s(
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
- ...a,
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(w, { asChild: !0, ...r, children: p });
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: n, forceMount: t, children: a, container: o } = e, r = l(A, n);
73
- return /* @__PURE__ */ s(Y, { scope: n, forceMount: t, children: /* @__PURE__ */ s(x, { present: t || r.open, children: /* @__PURE__ */ s(H, { asChild: !0, container: o, children: a }) }) });
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, n) => {
78
- const t = ee(d, e.__scopePopover), { forceMount: a = t.forceMount, ...o } = e, r = l(d, e.__scopePopover);
79
- return /* @__PURE__ */ s(x, { present: a || r.open, children: r.modal ? /* @__PURE__ */ s(te, { ...o, ref: n }) : /* @__PURE__ */ s(re, { ...o, ref: n }) });
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, n) => {
85
- const t = l(d, e.__scopePopover), a = i.useRef(null), o = O(n, a), r = i.useRef(!1);
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 = a.current;
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, n) => {
117
- const t = l(d, e.__scopePopover), a = i.useRef(!1), o = i.useRef(!1);
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: n,
122
+ ref: a,
123
123
  trapFocus: !1,
124
124
  disableOutsidePointerEvents: !1,
125
125
  onCloseAutoFocus: (r) => {
126
- e.onCloseAutoFocus?.(r), r.defaultPrevented || (a.current || t.triggerRef.current?.focus(), r.preventDefault()), a.current = !1, o.current = !1;
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 || (a.current = !0, r.detail.originalEvent.type === "pointerdown" && (o.current = !0));
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, n) => {
137
+ (e, a) => {
138
138
  const {
139
139
  __scopePopover: t,
140
- trapFocus: a,
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: a,
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: n,
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, n) => {
194
- const { __scopePopover: t, ...a } = e, o = l(I, 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
- ...a,
200
- ref: n,
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, n) => {
209
- const { __scopePopover: t, ...a } = e, o = g(t);
210
- return /* @__PURE__ */ s(J, { ...o, ...a, ref: n });
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({ className: e, align: n = "center", sideOffset: t = 4, width: a = 320, ...o }) {
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: n,
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: `${a}px` },
244
+ style: { width: `${n ? `${n}px` : "w-fit"}` },
239
245
  ...o
240
246
  }
241
247
  ) });