@spear-ai/spectral 1.3.22 → 1.3.24
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 +102 -95
- package/dist/App.js +9 -1
- package/dist/Badge.js +9 -1
- package/dist/Button.js +9 -1
- package/dist/Card.js +9 -1
- package/dist/Drawer.js +9 -1
- package/dist/Icons.js +9 -1
- package/dist/Label.js +9 -1
- package/dist/Popover.js +9 -1
- package/dist/RadioGroup.js +9 -1
- package/dist/Skeleton.js +9 -1
- package/dist/Slider.js +9 -1
- package/dist/Switch.js +9 -1
- package/dist/Toggle.js +9 -1
- package/dist/ToggleGroup.js +9 -1
- package/dist/Toolbar.js +9 -1
- package/dist/Tooltip.js +9 -1
- package/dist/features/SettingsPopover/SettingsPopover.d.ts.map +1 -1
- package/dist/features/SettingsPopover.js +38 -50
- package/dist/index.d.ts.map +1 -1
- package/dist/main.js +9 -2
- package/package.json +1 -2
package/dist/.js
CHANGED
|
@@ -1,99 +1,106 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
2
|
+
(function(){
|
|
3
|
+
if (typeof document === 'undefined') return;
|
|
4
|
+
if (document.querySelector('link[data-spectral-css]')) return;
|
|
5
|
+
var link = document.createElement('link');
|
|
6
|
+
link.rel = 'stylesheet';
|
|
7
|
+
link.setAttribute('data-spectral-css', '');
|
|
8
|
+
link.href = new URL('./assets/main.css', import.meta.url).href;
|
|
9
|
+
document.head.appendChild(link);
|
|
10
|
+
})();
|
|
11
|
+
import { Badge as t } from "./Badge.js";
|
|
12
|
+
import { Button as m } from "./Button.js";
|
|
13
|
+
import { Card as f } from "./Card.js";
|
|
14
|
+
import { Drawer as c } from "./Drawer.js";
|
|
15
|
+
import { Popover as a, PopoverContent as i, PopoverTrigger as l } from "./Popover.js";
|
|
16
|
+
import { RadioGroup as g, RadioGroupItem as T } from "./RadioGroup.js";
|
|
17
|
+
import { Skeleton as u } from "./Skeleton.js";
|
|
18
|
+
import { Slider as G } from "./Slider.js";
|
|
19
|
+
import { Switch as S } from "./Switch.js";
|
|
20
|
+
import { Toggle as P } from "./Toggle.js";
|
|
21
|
+
import { ToggleGroup as k, ToggleGroupItem as w } from "./ToggleGroup.js";
|
|
22
|
+
import { Toolbar as D } from "./Toolbar.js";
|
|
23
|
+
import { Tooltip as Z, TooltipContent as b, TooltipTrigger as y } from "./Tooltip.js";
|
|
24
|
+
import { AnnotationsIcon as O } from "./Icons/AnnotationsIcon.js";
|
|
25
|
+
import { CalendarIcon as F } from "./Icons/CalendarIcon.js";
|
|
26
|
+
import { ClockIcon as U } from "./Icons/ClockIcon.js";
|
|
27
|
+
import { DeleteIcon as X } from "./Icons/DeleteIcon.js";
|
|
28
|
+
import { DurationIcon as j } from "./Icons/DurationIcon.js";
|
|
29
|
+
import { EraserIcon as z } from "./Icons/EraserIcon.js";
|
|
30
|
+
import { GoToFirstIcon as J } from "./Icons/GoToFirstIcon.js";
|
|
31
|
+
import { GoToLastIcon as N } from "./Icons/GoToLastIcon.js";
|
|
32
|
+
import { InfoIcon as W } from "./Icons/InfoIcon.js";
|
|
33
|
+
import { LabelIcon as $ } from "./Icons/LabelIcon.js";
|
|
34
|
+
import { LassoIcon as ro } from "./Icons/LassoIcon.js";
|
|
35
|
+
import { LineToolIcon as to } from "./Icons/LineToolIcon.js";
|
|
36
|
+
import { LiveViewIcon as mo } from "./Icons/LiveViewIcon.js";
|
|
37
|
+
import { LocationIcon as fo } from "./Icons/LocationIcon.js";
|
|
38
|
+
import { MetadataIcon as co } from "./Icons/MetadataIcon.js";
|
|
39
|
+
import { OntologyIcon as ao } from "./Icons/OntologyIcon.js";
|
|
40
|
+
import { PlayIcon as lo } from "./Icons/PlayIcon.js";
|
|
41
|
+
import { PlusIcon as go } from "./Icons/PlusIcon.js";
|
|
42
|
+
import { ResetIcon as uo } from "./Icons/ResetIcon.js";
|
|
43
|
+
import { ScissorsIcon as Go } from "./Icons/ScissorsIcon.js";
|
|
44
|
+
import { SettingsIcon as So } from "./Icons/SettingsIcon.js";
|
|
45
|
+
import { TrashIcon as Po } from "./Icons/TrashIcon.js";
|
|
46
|
+
import { UndoIcon as ko } from "./Icons/UndoIcon.js";
|
|
47
|
+
import { ZoomAllIcon as Bo } from "./Icons/ZoomAllIcon.js";
|
|
48
|
+
import { ZoomXIcon as Ro } from "./Icons/ZoomXIcon.js";
|
|
49
|
+
import { ZoomYIcon as bo } from "./Icons/ZoomYIcon.js";
|
|
50
|
+
import { default as Ao, SvgIdContext as Oo } from "./Icons/IconBase.js";
|
|
43
51
|
import "react";
|
|
44
|
-
import { useOutsideClick as
|
|
45
|
-
import { useTheme as
|
|
46
|
-
import { c as
|
|
47
|
-
/* empty css */
|
|
52
|
+
import { useOutsideClick as Fo } from "./hooks/useOutsideClick.js";
|
|
53
|
+
import { useTheme as Uo } from "./hooks/useTheme.js";
|
|
54
|
+
import { c as Xo } from "./twUtils-CRiPKpXj.js";
|
|
48
55
|
export {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
56
|
+
O as AnnotationsIcon,
|
|
57
|
+
t as Badge,
|
|
58
|
+
m as Button,
|
|
59
|
+
F as CalendarIcon,
|
|
60
|
+
f as Card,
|
|
61
|
+
U as ClockIcon,
|
|
62
|
+
X as DeleteIcon,
|
|
63
|
+
c as Drawer,
|
|
64
|
+
j as DurationIcon,
|
|
65
|
+
z as EraserIcon,
|
|
66
|
+
J as GoToFirstIcon,
|
|
67
|
+
N as GoToLastIcon,
|
|
68
|
+
Ao as IconBase,
|
|
69
|
+
W as InfoIcon,
|
|
70
|
+
$ as LabelIcon,
|
|
71
|
+
ro as LassoIcon,
|
|
72
|
+
to as LineToolIcon,
|
|
73
|
+
mo as LiveViewIcon,
|
|
74
|
+
fo as LocationIcon,
|
|
75
|
+
co as MetadataIcon,
|
|
76
|
+
ao as OntologyIcon,
|
|
77
|
+
lo as PlayIcon,
|
|
78
|
+
go as PlusIcon,
|
|
79
|
+
a as Popover,
|
|
80
|
+
i as PopoverContent,
|
|
81
|
+
l as PopoverTrigger,
|
|
82
|
+
g as RadioGroup,
|
|
83
|
+
T as RadioGroupItem,
|
|
84
|
+
uo as ResetIcon,
|
|
85
|
+
Go as ScissorsIcon,
|
|
86
|
+
So as SettingsIcon,
|
|
87
|
+
u as Skeleton,
|
|
88
|
+
G as Slider,
|
|
89
|
+
Oo as SvgIdContext,
|
|
90
|
+
S as Switch,
|
|
91
|
+
P as Toggle,
|
|
92
|
+
k as ToggleGroup,
|
|
93
|
+
w as ToggleGroupItem,
|
|
94
|
+
D as Toolbar,
|
|
95
|
+
Z as Tooltip,
|
|
96
|
+
b as TooltipContent,
|
|
97
|
+
y as TooltipTrigger,
|
|
98
|
+
Po as TrashIcon,
|
|
99
|
+
ko as UndoIcon,
|
|
100
|
+
Bo as ZoomAllIcon,
|
|
101
|
+
Ro as ZoomXIcon,
|
|
102
|
+
bo as ZoomYIcon,
|
|
103
|
+
Xo as cn,
|
|
104
|
+
Fo as useOutsideClick,
|
|
105
|
+
Uo as useTheme
|
|
99
106
|
};
|
package/dist/App.js
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
(function(){
|
|
3
|
+
if (typeof document === 'undefined') return;
|
|
4
|
+
if (document.querySelector('link[data-spectral-css]')) return;
|
|
5
|
+
var link = document.createElement('link');
|
|
6
|
+
link.rel = 'stylesheet';
|
|
7
|
+
link.setAttribute('data-spectral-css', '');
|
|
8
|
+
link.href = new URL('./assets/main.css', import.meta.url).href;
|
|
9
|
+
document.head.appendChild(link);
|
|
10
|
+
})();
|
|
3
11
|
import { jsx as r } from "react/jsx-runtime";
|
|
4
12
|
function p() {
|
|
5
13
|
return /* @__PURE__ */ r("div", { children: "spectral | spear.ai" });
|
package/dist/Badge.js
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
(function(){
|
|
3
|
+
if (typeof document === 'undefined') return;
|
|
4
|
+
if (document.querySelector('link[data-spectral-css]')) return;
|
|
5
|
+
var link = document.createElement('link');
|
|
6
|
+
link.rel = 'stylesheet';
|
|
7
|
+
link.setAttribute('data-spectral-css', '');
|
|
8
|
+
link.href = new URL('./assets/main.css', import.meta.url).href;
|
|
9
|
+
document.head.appendChild(link);
|
|
10
|
+
})();
|
|
3
11
|
import { jsx as e } from "react/jsx-runtime";
|
|
4
12
|
import { BadgeBase as t } from "./Badge/BadgeBase.js";
|
|
5
13
|
const p = ({ children: r, ...o }) => /* @__PURE__ */ e(t, { ...o, children: r });
|
package/dist/Button.js
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
(function(){
|
|
3
|
+
if (typeof document === 'undefined') return;
|
|
4
|
+
if (document.querySelector('link[data-spectral-css]')) return;
|
|
5
|
+
var link = document.createElement('link');
|
|
6
|
+
link.rel = 'stylesheet';
|
|
7
|
+
link.setAttribute('data-spectral-css', '');
|
|
8
|
+
link.href = new URL('./assets/main.css', import.meta.url).href;
|
|
9
|
+
document.head.appendChild(link);
|
|
10
|
+
})();
|
|
3
11
|
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
4
12
|
import { c as u } from "./twUtils-CRiPKpXj.js";
|
|
5
13
|
import { c as f } from "./index-CRBC94ik.js";
|
package/dist/Card.js
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
(function(){
|
|
3
|
+
if (typeof document === 'undefined') return;
|
|
4
|
+
if (document.querySelector('link[data-spectral-css]')) return;
|
|
5
|
+
var link = document.createElement('link');
|
|
6
|
+
link.rel = 'stylesheet';
|
|
7
|
+
link.setAttribute('data-spectral-css', '');
|
|
8
|
+
link.href = new URL('./assets/main.css', import.meta.url).href;
|
|
9
|
+
document.head.appendChild(link);
|
|
10
|
+
})();
|
|
3
11
|
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
4
12
|
import { c as a } from "./twUtils-CRiPKpXj.js";
|
|
5
13
|
import { forwardRef as u } from "react";
|
package/dist/Drawer.js
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
(function(){
|
|
3
|
+
if (typeof document === 'undefined') return;
|
|
4
|
+
if (document.querySelector('link[data-spectral-css]')) return;
|
|
5
|
+
var link = document.createElement('link');
|
|
6
|
+
link.rel = 'stylesheet';
|
|
7
|
+
link.setAttribute('data-spectral-css', '');
|
|
8
|
+
link.href = new URL('./assets/main.css', import.meta.url).href;
|
|
9
|
+
document.head.appendChild(link);
|
|
10
|
+
})();
|
|
3
11
|
import { jsx as S, jsxs as gt, Fragment as te } from "react/jsx-runtime";
|
|
4
12
|
import * as O from "react";
|
|
5
13
|
import i, { useMemo as je, useLayoutEffect as qe, useEffect as Xe } from "react";
|
package/dist/Icons.js
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
(function(){
|
|
3
|
+
if (typeof document === 'undefined') return;
|
|
4
|
+
if (document.querySelector('link[data-spectral-css]')) return;
|
|
5
|
+
var link = document.createElement('link');
|
|
6
|
+
link.rel = 'stylesheet';
|
|
7
|
+
link.setAttribute('data-spectral-css', '');
|
|
8
|
+
link.href = new URL('./assets/main.css', import.meta.url).href;
|
|
9
|
+
document.head.appendChild(link);
|
|
10
|
+
})();
|
|
3
11
|
import { AnnotationsIcon as e } from "./Icons/AnnotationsIcon.js";
|
|
4
12
|
import { CalendarIcon as n } from "./Icons/CalendarIcon.js";
|
|
5
13
|
import { ClockIcon as m } from "./Icons/ClockIcon.js";
|
package/dist/Label.js
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
(function(){
|
|
3
|
+
if (typeof document === 'undefined') return;
|
|
4
|
+
if (document.querySelector('link[data-spectral-css]')) return;
|
|
5
|
+
var link = document.createElement('link');
|
|
6
|
+
link.rel = 'stylesheet';
|
|
7
|
+
link.setAttribute('data-spectral-css', '');
|
|
8
|
+
link.href = new URL('./assets/main.css', import.meta.url).href;
|
|
9
|
+
document.head.appendChild(link);
|
|
10
|
+
})();
|
|
3
11
|
import { jsx as l } from "react/jsx-runtime";
|
|
4
12
|
import { c as s } from "./twUtils-CRiPKpXj.js";
|
|
5
13
|
import { c as t } from "./index-CRBC94ik.js";
|
package/dist/Popover.js
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
(function(){
|
|
3
|
+
if (typeof document === 'undefined') return;
|
|
4
|
+
if (document.querySelector('link[data-spectral-css]')) return;
|
|
5
|
+
var link = document.createElement('link');
|
|
6
|
+
link.rel = 'stylesheet';
|
|
7
|
+
link.setAttribute('data-spectral-css', '');
|
|
8
|
+
link.href = new URL('./assets/main.css', import.meta.url).href;
|
|
9
|
+
document.head.appendChild(link);
|
|
10
|
+
})();
|
|
3
11
|
import { jsx as s } from "react/jsx-runtime";
|
|
4
12
|
import * as i from "react";
|
|
5
13
|
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";
|
package/dist/RadioGroup.js
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
(function(){
|
|
3
|
+
if (typeof document === 'undefined') return;
|
|
4
|
+
if (document.querySelector('link[data-spectral-css]')) return;
|
|
5
|
+
var link = document.createElement('link');
|
|
6
|
+
link.rel = 'stylesheet';
|
|
7
|
+
link.setAttribute('data-spectral-css', '');
|
|
8
|
+
link.href = new URL('./assets/main.css', import.meta.url).href;
|
|
9
|
+
document.head.appendChild(link);
|
|
10
|
+
})();
|
|
3
11
|
import { jsx as t, jsxs as d } from "react/jsx-runtime";
|
|
4
12
|
import { RadioGroup as l, RadioGroupItem as n, RadioGroupIndicator as m } from "./RadioGroup/RadioGroupBase.js";
|
|
5
13
|
import { c as e } from "./twUtils-CRiPKpXj.js";
|
package/dist/Skeleton.js
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
(function(){
|
|
3
|
+
if (typeof document === 'undefined') return;
|
|
4
|
+
if (document.querySelector('link[data-spectral-css]')) return;
|
|
5
|
+
var link = document.createElement('link');
|
|
6
|
+
link.rel = 'stylesheet';
|
|
7
|
+
link.setAttribute('data-spectral-css', '');
|
|
8
|
+
link.href = new URL('./assets/main.css', import.meta.url).href;
|
|
9
|
+
document.head.appendChild(link);
|
|
10
|
+
})();
|
|
3
11
|
import { jsx as o } from "react/jsx-runtime";
|
|
4
12
|
import { c as n } from "./twUtils-CRiPKpXj.js";
|
|
5
13
|
import "react";
|
package/dist/Slider.js
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
(function(){
|
|
3
|
+
if (typeof document === 'undefined') return;
|
|
4
|
+
if (document.querySelector('link[data-spectral-css]')) return;
|
|
5
|
+
var link = document.createElement('link');
|
|
6
|
+
link.rel = 'stylesheet';
|
|
7
|
+
link.setAttribute('data-spectral-css', '');
|
|
8
|
+
link.href = new URL('./assets/main.css', import.meta.url).href;
|
|
9
|
+
document.head.appendChild(link);
|
|
10
|
+
})();
|
|
3
11
|
import { jsxs as v, jsx as t } from "react/jsx-runtime";
|
|
4
12
|
import { SliderBase as w, SliderTrack as p, SliderRange as x, SliderThumb as k } from "./Slider/SliderBase.js";
|
|
5
13
|
import { c as a } from "./twUtils-CRiPKpXj.js";
|
package/dist/Switch.js
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
(function(){
|
|
3
|
+
if (typeof document === 'undefined') return;
|
|
4
|
+
if (document.querySelector('link[data-spectral-css]')) return;
|
|
5
|
+
var link = document.createElement('link');
|
|
6
|
+
link.rel = 'stylesheet';
|
|
7
|
+
link.setAttribute('data-spectral-css', '');
|
|
8
|
+
link.href = new URL('./assets/main.css', import.meta.url).href;
|
|
9
|
+
document.head.appendChild(link);
|
|
10
|
+
})();
|
|
3
11
|
import { jsxs as w, jsx as t } from "react/jsx-runtime";
|
|
4
12
|
import { Switch as p, SwitchThumb as k } from "./Switch/SwitchBase.js";
|
|
5
13
|
import { Label as r } from "./Label.js";
|
package/dist/Toggle.js
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
(function(){
|
|
3
|
+
if (typeof document === 'undefined') return;
|
|
4
|
+
if (document.querySelector('link[data-spectral-css]')) return;
|
|
5
|
+
var link = document.createElement('link');
|
|
6
|
+
link.rel = 'stylesheet';
|
|
7
|
+
link.setAttribute('data-spectral-css', '');
|
|
8
|
+
link.href = new URL('./assets/main.css', import.meta.url).href;
|
|
9
|
+
document.head.appendChild(link);
|
|
10
|
+
})();
|
|
3
11
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
12
|
import { ToggleBase as g } from "./Toggle/ToggleBase.js";
|
|
5
13
|
import { c as s } from "./twUtils-CRiPKpXj.js";
|
package/dist/ToggleGroup.js
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
(function(){
|
|
3
|
+
if (typeof document === 'undefined') return;
|
|
4
|
+
if (document.querySelector('link[data-spectral-css]')) return;
|
|
5
|
+
var link = document.createElement('link');
|
|
6
|
+
link.rel = 'stylesheet';
|
|
7
|
+
link.setAttribute('data-spectral-css', '');
|
|
8
|
+
link.href = new URL('./assets/main.css', import.meta.url).href;
|
|
9
|
+
document.head.appendChild(link);
|
|
10
|
+
})();
|
|
3
11
|
import { jsx as d } from "react/jsx-runtime";
|
|
4
12
|
import { ToggleGroupItemBase as p, ToggleGroupBase as f } from "./ToggleGroup/ToggleGroupBase.js";
|
|
5
13
|
import { toggleVariants as m } from "./Toggle.js";
|
package/dist/Toolbar.js
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
(function(){
|
|
3
|
+
if (typeof document === 'undefined') return;
|
|
4
|
+
if (document.querySelector('link[data-spectral-css]')) return;
|
|
5
|
+
var link = document.createElement('link');
|
|
6
|
+
link.rel = 'stylesheet';
|
|
7
|
+
link.setAttribute('data-spectral-css', '');
|
|
8
|
+
link.href = new URL('./assets/main.css', import.meta.url).href;
|
|
9
|
+
document.head.appendChild(link);
|
|
10
|
+
})();
|
|
3
11
|
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
4
12
|
import "react";
|
|
5
13
|
const c = ({ title: r, description: t, children: l }) => /* @__PURE__ */ s("div", { className: "bg-background text-text-primary border-border-primary flex h-[72px] w-full justify-between border-b", children: [
|
package/dist/Tooltip.js
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
(function(){
|
|
3
|
+
if (typeof document === 'undefined') return;
|
|
4
|
+
if (document.querySelector('link[data-spectral-css]')) return;
|
|
5
|
+
var link = document.createElement('link');
|
|
6
|
+
link.rel = 'stylesheet';
|
|
7
|
+
link.setAttribute('data-spectral-css', '');
|
|
8
|
+
link.href = new URL('./assets/main.css', import.meta.url).href;
|
|
9
|
+
document.head.appendChild(link);
|
|
10
|
+
})();
|
|
3
11
|
import { jsx as u, jsxs as S } from "react/jsx-runtime";
|
|
4
12
|
import * as a from "react";
|
|
5
13
|
import { e as H, c as J, a as Q, u as Z, P as j, b as ee, d as G, f as C, D as te, h as oe } from "./index-B7LSgz_k.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingsPopover.d.ts","sourceRoot":"","sources":["../../../src/features/SettingsPopover/SettingsPopover.tsx"],"names":[],"mappings":"AAkBA,eAAO,MAAM,eAAe,+
|
|
1
|
+
{"version":3,"file":"SettingsPopover.d.ts","sourceRoot":"","sources":["../../../src/features/SettingsPopover/SettingsPopover.tsx"],"names":[],"mappings":"AAkBA,eAAO,MAAM,eAAe,+CA4J3B,CAAA"}
|
|
@@ -26,18 +26,18 @@ import "../Icons/UndoIcon.js";
|
|
|
26
26
|
import { ZoomAllIcon as O } from "../Icons/ZoomAllIcon.js";
|
|
27
27
|
import { ZoomXIcon as I } from "../Icons/ZoomXIcon.js";
|
|
28
28
|
import { ZoomYIcon as k } from "../Icons/ZoomYIcon.js";
|
|
29
|
-
import { Popover as
|
|
30
|
-
import { RadioGroup as R, RadioGroupItem as
|
|
29
|
+
import { Popover as G, PopoverTrigger as V, PopoverContent as C } from "../Popover.js";
|
|
30
|
+
import { RadioGroup as R, RadioGroupItem as l } from "../RadioGroup.js";
|
|
31
31
|
import { Switch as S } from "../Switch.js";
|
|
32
|
-
import { Toggle as
|
|
33
|
-
import { ToggleGroup as h, ToggleGroupItem as
|
|
34
|
-
import { Tooltip as
|
|
35
|
-
import { useState as
|
|
32
|
+
import { Toggle as d } from "../Toggle.js";
|
|
33
|
+
import { ToggleGroup as h, ToggleGroupItem as o } from "../ToggleGroup.js";
|
|
34
|
+
import { Tooltip as a, TooltipTrigger as s, TooltipContent as m } from "../Tooltip.js";
|
|
35
|
+
import { useState as n } from "react";
|
|
36
36
|
const he = () => {
|
|
37
|
-
const [g, b] =
|
|
38
|
-
return /* @__PURE__ */ r(
|
|
39
|
-
/* @__PURE__ */ e(
|
|
40
|
-
/* @__PURE__ */ r(
|
|
37
|
+
const [g, b] = n("green-black"), [f, c] = n(""), [v, p] = n(!1), [u, y] = n(!1);
|
|
38
|
+
return /* @__PURE__ */ r(G, { open: v, onOpenChange: p, children: [
|
|
39
|
+
/* @__PURE__ */ e(V, { children: /* @__PURE__ */ e(d, { pressed: !1, children: /* @__PURE__ */ e(z, {}) }) }),
|
|
40
|
+
/* @__PURE__ */ r(C, { side: "bottom", align: "end", children: [
|
|
41
41
|
/* @__PURE__ */ r("div", { className: "mb-6 w-full", children: [
|
|
42
42
|
/* @__PURE__ */ e("p", { className: "text-md text-md mb-3 font-semibold", children: "Zoom Options" }),
|
|
43
43
|
/* @__PURE__ */ r(
|
|
@@ -47,19 +47,19 @@ const he = () => {
|
|
|
47
47
|
layout: "expanded",
|
|
48
48
|
value: f,
|
|
49
49
|
onValueChange: (t) => {
|
|
50
|
-
const
|
|
51
|
-
|
|
50
|
+
const i = typeof t == "string" ? t : "";
|
|
51
|
+
c(i), i && p(!1);
|
|
52
52
|
},
|
|
53
53
|
children: [
|
|
54
|
-
/* @__PURE__ */ r(
|
|
54
|
+
/* @__PURE__ */ r(o, { value: "zoom-all", children: [
|
|
55
55
|
/* @__PURE__ */ e(O, { size: 16 }),
|
|
56
56
|
"All"
|
|
57
57
|
] }),
|
|
58
|
-
/* @__PURE__ */ r(
|
|
58
|
+
/* @__PURE__ */ r(o, { value: "zoom-bearing", children: [
|
|
59
59
|
/* @__PURE__ */ e(I, { size: 16 }),
|
|
60
60
|
"Bearing"
|
|
61
61
|
] }),
|
|
62
|
-
/* @__PURE__ */ r(
|
|
62
|
+
/* @__PURE__ */ r(o, { value: "zoom-time", children: [
|
|
63
63
|
/* @__PURE__ */ e(k, { size: 16 }),
|
|
64
64
|
"Time"
|
|
65
65
|
] })
|
|
@@ -67,13 +67,13 @@ const he = () => {
|
|
|
67
67
|
}
|
|
68
68
|
),
|
|
69
69
|
/* @__PURE__ */ r(
|
|
70
|
-
|
|
70
|
+
d,
|
|
71
71
|
{
|
|
72
72
|
pressed: !1,
|
|
73
73
|
"aria-label": "Reset zoom",
|
|
74
74
|
className: "active:bg-selected-primary",
|
|
75
75
|
onClick: () => {
|
|
76
|
-
|
|
76
|
+
c("");
|
|
77
77
|
},
|
|
78
78
|
children: [
|
|
79
79
|
/* @__PURE__ */ e(x, { size: 16 }),
|
|
@@ -91,7 +91,7 @@ const he = () => {
|
|
|
91
91
|
{
|
|
92
92
|
checked: u,
|
|
93
93
|
onChange: (t) => {
|
|
94
|
-
y(t)
|
|
94
|
+
y(t);
|
|
95
95
|
},
|
|
96
96
|
labelText: "View Annotations",
|
|
97
97
|
hideLabel: !0,
|
|
@@ -109,26 +109,25 @@ const he = () => {
|
|
|
109
109
|
className: "flex items-center gap-3",
|
|
110
110
|
value: g,
|
|
111
111
|
onValueChange: (t) => {
|
|
112
|
-
|
|
113
|
-
b(o), o && i(!1);
|
|
112
|
+
b(typeof t == "string" ? t : "green-black");
|
|
114
113
|
},
|
|
115
114
|
variant: "unstyled",
|
|
116
115
|
children: [
|
|
117
|
-
/* @__PURE__ */ e(
|
|
118
|
-
/* @__PURE__ */ e(
|
|
119
|
-
/* @__PURE__ */ e(
|
|
116
|
+
/* @__PURE__ */ e(l, { value: "green-black", "aria-label": "green & black theme", children: /* @__PURE__ */ r(a, { children: [
|
|
117
|
+
/* @__PURE__ */ e(s, { children: /* @__PURE__ */ e("img", { src: "/themes/green-black-theme.webp", alt: "green & black theme", className: "h-8 w-8" }) }),
|
|
118
|
+
/* @__PURE__ */ e(m, { side: "bottom", sideOffset: 8, children: /* @__PURE__ */ e("p", { children: "Green & Black Theme" }) })
|
|
120
119
|
] }) }),
|
|
121
|
-
/* @__PURE__ */ e(
|
|
122
|
-
/* @__PURE__ */ e(
|
|
123
|
-
/* @__PURE__ */ e(
|
|
120
|
+
/* @__PURE__ */ e(l, { value: "grayscale", "aria-label": "grayscale theme", children: /* @__PURE__ */ r(a, { children: [
|
|
121
|
+
/* @__PURE__ */ e(s, { children: /* @__PURE__ */ e("img", { src: "/themes/grayscale-theme.webp", alt: "grayscale theme", className: "h-8 w-8" }) }),
|
|
122
|
+
/* @__PURE__ */ e(m, { side: "bottom", sideOffset: 8, children: /* @__PURE__ */ e("p", { children: "Grayscale Theme" }) })
|
|
124
123
|
] }) }),
|
|
125
|
-
/* @__PURE__ */ e(
|
|
126
|
-
/* @__PURE__ */ e(
|
|
127
|
-
/* @__PURE__ */ e(
|
|
124
|
+
/* @__PURE__ */ e(l, { value: "reverse-grayscale", "aria-label": "reverse grayscale theme", children: /* @__PURE__ */ r(a, { children: [
|
|
125
|
+
/* @__PURE__ */ e(s, { children: /* @__PURE__ */ e("img", { src: "/themes/reverse-grayscale-theme.webp", alt: "reverse grayscale theme", className: "h-8 w-8" }) }),
|
|
126
|
+
/* @__PURE__ */ e(m, { side: "bottom", sideOffset: 8, children: /* @__PURE__ */ e("p", { children: "Reverse Grayscale Theme" }) })
|
|
128
127
|
] }) }),
|
|
129
|
-
/* @__PURE__ */ e(
|
|
130
|
-
/* @__PURE__ */ e(
|
|
131
|
-
/* @__PURE__ */ e(
|
|
128
|
+
/* @__PURE__ */ e(l, { value: "viridis", "aria-label": "viridis theme", children: /* @__PURE__ */ r(a, { children: [
|
|
129
|
+
/* @__PURE__ */ e(s, { children: /* @__PURE__ */ e("img", { src: "/themes/viridis-theme.webp", alt: "viridis theme", className: "h-8 w-8" }) }),
|
|
130
|
+
/* @__PURE__ */ e(m, { side: "bottom", sideOffset: 8, children: /* @__PURE__ */ e("p", { children: "Viridis Theme" }) })
|
|
132
131
|
] }) })
|
|
133
132
|
]
|
|
134
133
|
}
|
|
@@ -136,32 +135,21 @@ const he = () => {
|
|
|
136
135
|
] }),
|
|
137
136
|
/* @__PURE__ */ r("div", { className: "border-border-secondary mb-2 w-full border-t pt-4", children: [
|
|
138
137
|
/* @__PURE__ */ e("p", { className: "text-md text-md mb-3 font-semibold", children: "View Options" }),
|
|
139
|
-
/* @__PURE__ */ r(
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
className: "active:bg-selected-primary mb-4 w-full",
|
|
144
|
-
onClick: () => {
|
|
145
|
-
i(!1);
|
|
146
|
-
},
|
|
147
|
-
children: [
|
|
148
|
-
/* @__PURE__ */ e(T, { size: 18 }),
|
|
149
|
-
"Realtime Stream"
|
|
150
|
-
]
|
|
151
|
-
}
|
|
152
|
-
),
|
|
138
|
+
/* @__PURE__ */ r(d, { pressed: !1, className: "active:bg-selected-primary mb-4 w-full", children: [
|
|
139
|
+
/* @__PURE__ */ e(T, { size: 18 }),
|
|
140
|
+
"Realtime Stream"
|
|
141
|
+
] }),
|
|
153
142
|
/* @__PURE__ */ r(
|
|
154
143
|
h,
|
|
155
144
|
{
|
|
156
145
|
type: "single",
|
|
157
146
|
layout: "expanded",
|
|
158
147
|
onValueChange: (t) => {
|
|
159
|
-
|
|
160
|
-
d(o), o && i(!1);
|
|
148
|
+
c(typeof t == "string" ? t : "");
|
|
161
149
|
},
|
|
162
150
|
children: [
|
|
163
151
|
/* @__PURE__ */ r(
|
|
164
|
-
|
|
152
|
+
o,
|
|
165
153
|
{
|
|
166
154
|
value: "zoom-time",
|
|
167
155
|
className: "active:bg-selected-primary data-[state=on]:bg-toggle-bg data-[state=on]:border-toggle-border",
|
|
@@ -172,7 +160,7 @@ const he = () => {
|
|
|
172
160
|
}
|
|
173
161
|
),
|
|
174
162
|
/* @__PURE__ */ r(
|
|
175
|
-
|
|
163
|
+
o,
|
|
176
164
|
{
|
|
177
165
|
value: "zoom-bearing",
|
|
178
166
|
className: "active:bg-selected-primary data-[state=on]:bg-toggle-bg data-[state=on]:border-toggle-border",
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAChD,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AACtF,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAA;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAA;AACzD,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AACnD,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,KAAK,gBAAgB,EAAE,MAAM,sCAAsC,CAAA;AAC1G,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,8BAA8B,CAAA;AACzE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAGtF,cAAc,oBAAoB,CAAA;AAClC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAC/E,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAGjF,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAG3C,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAChD,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AACtF,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAA;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAA;AACzD,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AACnD,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,KAAK,gBAAgB,EAAE,MAAM,sCAAsC,CAAA;AAC1G,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,8BAA8B,CAAA;AACzE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAGtF,cAAc,oBAAoB,CAAA;AAClC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAC/E,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAGjF,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAG3C,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAA"}
|
package/dist/main.js
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
(function(){
|
|
3
|
+
if (typeof document === 'undefined') return;
|
|
4
|
+
if (document.querySelector('link[data-spectral-css]')) return;
|
|
5
|
+
var link = document.createElement('link');
|
|
6
|
+
link.rel = 'stylesheet';
|
|
7
|
+
link.setAttribute('data-spectral-css', '');
|
|
8
|
+
link.href = new URL('./assets/main.css', import.meta.url).href;
|
|
9
|
+
document.head.appendChild(link);
|
|
10
|
+
})();
|
|
3
11
|
import { jsx as gS } from "react/jsx-runtime";
|
|
4
12
|
import qb from "./App.js";
|
|
5
|
-
/* empty css */
|
|
6
13
|
import RS, { StrictMode as Nb } from "react";
|
|
7
14
|
import OS from "react-dom";
|
|
8
15
|
var kp = { exports: {} }, Im = {}, Wp = { exports: {} }, gg = {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spear-ai/spectral",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.24",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"repository": {
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
"import": "./dist/*.js",
|
|
20
20
|
"types": "./dist/*.d.ts"
|
|
21
21
|
},
|
|
22
|
-
"./styles": "./dist/assets/main.css",
|
|
23
22
|
"./styles/base-colors.css": "./dist/styles/base-colors.css"
|
|
24
23
|
},
|
|
25
24
|
"typesVersions": {
|