@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 CHANGED
@@ -1,99 +1,106 @@
1
1
  "use client";
2
- import './assets/main.css';
3
- import { Badge as p } from "./Badge.js";
4
- import { Button as n } from "./Button.js";
5
- import { Card as x } from "./Card.js";
6
- import { Drawer as I } from "./Drawer.js";
7
- import { Popover as i, PopoverContent as l, PopoverTrigger as s } from "./Popover.js";
8
- import { RadioGroup as T, RadioGroupItem as d } from "./RadioGroup.js";
9
- import { Skeleton as C } from "./Skeleton.js";
10
- import { Slider as L } from "./Slider.js";
11
- import { Switch as v } from "./Switch.js";
12
- import { Toggle as h } from "./Toggle.js";
13
- import { ToggleGroup as w, ToggleGroupItem as B } from "./ToggleGroup.js";
14
- import { Toolbar as R } from "./Toolbar.js";
15
- import { Tooltip as b, TooltipContent as y, TooltipTrigger as A } from "./Tooltip.js";
16
- import { AnnotationsIcon as E } from "./Icons/AnnotationsIcon.js";
17
- import { CalendarIcon as M } from "./Icons/CalendarIcon.js";
18
- import { ClockIcon as V } from "./Icons/ClockIcon.js";
19
- import { DeleteIcon as Y } from "./Icons/DeleteIcon.js";
20
- import { DurationIcon as q } from "./Icons/DurationIcon.js";
21
- import { EraserIcon as H } from "./Icons/EraserIcon.js";
22
- import { GoToFirstIcon as K } from "./Icons/GoToFirstIcon.js";
23
- import { GoToLastIcon as Q } from "./Icons/GoToLastIcon.js";
24
- import { InfoIcon as _ } from "./Icons/InfoIcon.js";
25
- import { LabelIcon as oo } from "./Icons/LabelIcon.js";
26
- import { LassoIcon as eo } from "./Icons/LassoIcon.js";
27
- import { LineToolIcon as po } from "./Icons/LineToolIcon.js";
28
- import { LiveViewIcon as no } from "./Icons/LiveViewIcon.js";
29
- import { LocationIcon as xo } from "./Icons/LocationIcon.js";
30
- import { MetadataIcon as Io } from "./Icons/MetadataIcon.js";
31
- import { OntologyIcon as io } from "./Icons/OntologyIcon.js";
32
- import { PlayIcon as so } from "./Icons/PlayIcon.js";
33
- import { PlusIcon as To } from "./Icons/PlusIcon.js";
34
- import { ResetIcon as Co } from "./Icons/ResetIcon.js";
35
- import { ScissorsIcon as Lo } from "./Icons/ScissorsIcon.js";
36
- import { SettingsIcon as vo } from "./Icons/SettingsIcon.js";
37
- import { TrashIcon as ho } from "./Icons/TrashIcon.js";
38
- import { UndoIcon as wo } from "./Icons/UndoIcon.js";
39
- import { ZoomAllIcon as Do } from "./Icons/ZoomAllIcon.js";
40
- import { ZoomXIcon as Zo } from "./Icons/ZoomXIcon.js";
41
- import { ZoomYIcon as yo } from "./Icons/ZoomYIcon.js";
42
- import { default as Oo, SvgIdContext as Eo } from "./Icons/IconBase.js";
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 Mo } from "./hooks/useOutsideClick.js";
45
- import { useTheme as Vo } from "./hooks/useTheme.js";
46
- import { c as Yo } from "./twUtils-CRiPKpXj.js";
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
- E as AnnotationsIcon,
50
- p as Badge,
51
- n as Button,
52
- M as CalendarIcon,
53
- x as Card,
54
- V as ClockIcon,
55
- Y as DeleteIcon,
56
- I as Drawer,
57
- q as DurationIcon,
58
- H as EraserIcon,
59
- K as GoToFirstIcon,
60
- Q as GoToLastIcon,
61
- Oo as IconBase,
62
- _ as InfoIcon,
63
- oo as LabelIcon,
64
- eo as LassoIcon,
65
- po as LineToolIcon,
66
- no as LiveViewIcon,
67
- xo as LocationIcon,
68
- Io as MetadataIcon,
69
- io as OntologyIcon,
70
- so as PlayIcon,
71
- To as PlusIcon,
72
- i as Popover,
73
- l as PopoverContent,
74
- s as PopoverTrigger,
75
- T as RadioGroup,
76
- d as RadioGroupItem,
77
- Co as ResetIcon,
78
- Lo as ScissorsIcon,
79
- vo as SettingsIcon,
80
- C as Skeleton,
81
- L as Slider,
82
- Eo as SvgIdContext,
83
- v as Switch,
84
- h as Toggle,
85
- w as ToggleGroup,
86
- B as ToggleGroupItem,
87
- R as Toolbar,
88
- b as Tooltip,
89
- y as TooltipContent,
90
- A as TooltipTrigger,
91
- ho as TrashIcon,
92
- wo as UndoIcon,
93
- Do as ZoomAllIcon,
94
- Zo as ZoomXIcon,
95
- yo as ZoomYIcon,
96
- Yo as cn,
97
- Mo as useOutsideClick,
98
- Vo as useTheme
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
- import './assets/main.css';
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
- import './assets/main.css';
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
- import './assets/main.css';
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
- import './assets/main.css';
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
- import './assets/main.css';
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
- import './assets/main.css';
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
- import './assets/main.css';
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
- import './assets/main.css';
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";
@@ -1,5 +1,13 @@
1
1
  "use client";
2
- import './assets/main.css';
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
- import './assets/main.css';
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
- import './assets/main.css';
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
- import './assets/main.css';
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
- import './assets/main.css';
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";
@@ -1,5 +1,13 @@
1
1
  "use client";
2
- import './assets/main.css';
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
- import './assets/main.css';
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
- import './assets/main.css';
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,+CAqK3B,CAAA"}
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 C, PopoverTrigger as G, PopoverContent as V } from "../Popover.js";
30
- import { RadioGroup as R, RadioGroupItem as a } from "../RadioGroup.js";
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 p } from "../Toggle.js";
33
- import { ToggleGroup as h, ToggleGroupItem as l } from "../ToggleGroup.js";
34
- import { Tooltip as s, TooltipTrigger as m, TooltipContent as n } from "../Tooltip.js";
35
- import { useState as c } from "react";
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] = c("green-black"), [f, d] = c(""), [v, i] = c(!1), [u, y] = c(!1);
38
- return /* @__PURE__ */ r(C, { open: v, onOpenChange: i, children: [
39
- /* @__PURE__ */ e(G, { children: /* @__PURE__ */ e(p, { pressed: !1, children: /* @__PURE__ */ e(z, {}) }) }),
40
- /* @__PURE__ */ r(V, { side: "bottom", align: "end", children: [
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 o = typeof t == "string" ? t : "";
51
- d(o), o && i(!1);
50
+ const i = typeof t == "string" ? t : "";
51
+ c(i), i && p(!1);
52
52
  },
53
53
  children: [
54
- /* @__PURE__ */ r(l, { value: "zoom-all", children: [
54
+ /* @__PURE__ */ r(o, { value: "zoom-all", children: [
55
55
  /* @__PURE__ */ e(O, { size: 16 }),
56
56
  "All"
57
57
  ] }),
58
- /* @__PURE__ */ r(l, { value: "zoom-bearing", children: [
58
+ /* @__PURE__ */ r(o, { value: "zoom-bearing", children: [
59
59
  /* @__PURE__ */ e(I, { size: 16 }),
60
60
  "Bearing"
61
61
  ] }),
62
- /* @__PURE__ */ r(l, { value: "zoom-time", children: [
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
- p,
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
- d("");
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), t && i(!1);
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
- const o = typeof t == "string" ? t : "green-black";
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(a, { value: "green-black", "aria-label": "green & black theme", children: /* @__PURE__ */ r(s, { children: [
118
- /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e("img", { src: "/themes/green-black-theme.webp", alt: "green & black theme", className: "h-8 w-8" }) }),
119
- /* @__PURE__ */ e(n, { side: "bottom", sideOffset: 8, children: /* @__PURE__ */ e("p", { children: "Green & Black Theme" }) })
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(a, { value: "grayscale", "aria-label": "grayscale theme", children: /* @__PURE__ */ r(s, { children: [
122
- /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e("img", { src: "/themes/grayscale-theme.webp", alt: "grayscale theme", className: "h-8 w-8" }) }),
123
- /* @__PURE__ */ e(n, { side: "bottom", sideOffset: 8, children: /* @__PURE__ */ e("p", { children: "Grayscale Theme" }) })
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(a, { value: "reverse-grayscale", "aria-label": "reverse grayscale theme", children: /* @__PURE__ */ r(s, { children: [
126
- /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e("img", { src: "/themes/reverse-grayscale-theme.webp", alt: "reverse grayscale theme", className: "h-8 w-8" }) }),
127
- /* @__PURE__ */ e(n, { side: "bottom", sideOffset: 8, children: /* @__PURE__ */ e("p", { children: "Reverse Grayscale Theme" }) })
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(a, { value: "viridis", "aria-label": "viridis theme", children: /* @__PURE__ */ r(s, { children: [
130
- /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e("img", { src: "/themes/viridis-theme.webp", alt: "viridis theme", className: "h-8 w-8" }) }),
131
- /* @__PURE__ */ e(n, { side: "bottom", sideOffset: 8, children: /* @__PURE__ */ e("p", { children: "Viridis Theme" }) })
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
- p,
141
- {
142
- pressed: !1,
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
- const o = typeof t == "string" ? t : "";
160
- d(o), o && i(!1);
148
+ c(typeof t == "string" ? t : "");
161
149
  },
162
150
  children: [
163
151
  /* @__PURE__ */ r(
164
- l,
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
- l,
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",
@@ -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;AAGpC,OAAO,mBAAmB,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
- import './assets/main.css';
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.22",
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": {