@spear-ai/spectral 1.3.62 → 1.3.64
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 +205 -152
- package/dist/Accordion.d.ts +37 -0
- package/dist/Accordion.js +474 -0
- package/dist/Alert/AlertBase.js +2 -2
- package/dist/Alert.js +21 -11
- package/dist/Avatar.js +1 -1
- package/dist/Badge.d.ts +12 -2
- package/dist/Badge.js +28 -4
- package/dist/Button.d.ts +3 -3
- package/dist/Button.js +35 -28
- package/dist/ButtonGroup/ButtonGroupButton.d.ts +13 -0
- package/dist/ButtonGroup/ButtonGroupButton.js +51 -0
- package/dist/ButtonGroup.d.ts +29 -0
- package/dist/ButtonGroup.js +89 -0
- package/dist/ButtonIcon.js +11 -1
- package/dist/Card.d.ts +16 -0
- package/dist/Card.js +32 -0
- package/dist/Checkbox/CheckboxBase.js +1 -1
- package/dist/Checkbox.js +22 -14
- package/dist/Dialog/DialogBase.d.ts +6 -3
- package/dist/Dialog/DialogBase.js +113 -98
- package/dist/Dialog.d.ts +1 -1
- package/dist/Dialog.js +42 -36
- package/dist/Drawer.js +24 -1283
- package/dist/HoverCard.d.ts +29 -0
- package/dist/HoverCard.js +207 -0
- package/dist/Icons/AnalyzeIcon.d.ts +3 -0
- package/dist/Icons/AnalyzeIcon.js +73 -0
- package/dist/Icons/AnnotationsIcon.js +4 -4
- package/dist/Icons/ApprovedIcon.d.ts +3 -0
- package/dist/Icons/ApprovedIcon.js +43 -0
- package/dist/Icons/CalendarIcon.js +7 -7
- package/dist/Icons/CheckCircleIcon.js +14 -14
- package/dist/Icons/CheckSquareIcon.js +14 -14
- package/dist/Icons/CheckmarkIcon.js +9 -9
- package/dist/Icons/ChevronDownIcon.js +6 -6
- package/dist/Icons/ChevronUpIcon.js +7 -7
- package/dist/Icons/ClockIcon.js +10 -10
- package/dist/Icons/CloseCircleIcon.js +10 -10
- package/dist/Icons/CloseIcon.js +5 -5
- package/dist/Icons/DashboardIcon.js +4 -4
- package/dist/Icons/DatabaseIcon.d.ts +3 -0
- package/dist/Icons/DatabaseIcon.js +53 -0
- package/dist/Icons/DeleteIcon.js +24 -6
- package/dist/Icons/DurationIcon.js +7 -7
- package/dist/Icons/EmailIcon.js +4 -4
- package/dist/Icons/EraserIcon.js +20 -11
- package/dist/Icons/ErrorIcon.js +3 -3
- package/dist/Icons/EyeClosedIcon.js +2 -2
- package/dist/Icons/EyeClosedIcon2.js +18 -18
- package/dist/Icons/EyeOpenIcon.js +8 -8
- package/dist/Icons/GoToFirstIcon.js +1 -1
- package/dist/Icons/GoToLastIcon.js +3 -3
- package/dist/Icons/HarmonicCursorsIcon.js +4 -4
- package/dist/Icons/IconBase.d.ts +1 -1
- package/dist/Icons/IconBase.js +15 -17
- package/dist/Icons/InfoIcon.js +4 -4
- package/dist/Icons/LabelIcon.js +6 -6
- package/dist/Icons/LassoIcon.js +6 -6
- package/dist/Icons/LineToolIcon.js +22 -93
- package/dist/Icons/LineToolIcon2.d.ts +3 -0
- package/dist/Icons/LineToolIcon2.js +73 -0
- package/dist/Icons/LiveViewIcon.js +5 -5
- package/dist/Icons/LoaderIcon.js +5 -5
- package/dist/Icons/LocationIcon.js +5 -5
- package/dist/Icons/LogoutIcon.js +11 -11
- package/dist/Icons/MessagesIcon.d.ts +3 -0
- package/dist/Icons/MessagesIcon.js +34 -0
- package/dist/Icons/MetadataIcon.js +5 -5
- package/dist/Icons/MinusIcon.js +9 -9
- package/dist/Icons/OntologyIcon.js +74 -21
- package/dist/Icons/PanelIconClose.js +11 -11
- package/dist/Icons/PanelIconOpen.js +11 -11
- package/dist/Icons/PlayIcon.js +5 -5
- package/dist/Icons/PlusIcon.js +9 -8
- package/dist/Icons/ResetIcon.js +6 -6
- package/dist/Icons/ReviewedIcon.d.ts +3 -0
- package/dist/Icons/ReviewedIcon.js +44 -0
- package/dist/Icons/ScissorsIcon.js +9 -9
- package/dist/Icons/SettingsIcon.js +20 -22
- package/dist/Icons/SortAscendingIcon.d.ts +3 -0
- package/dist/Icons/SortAscendingIcon.js +73 -0
- package/dist/Icons/SortDescendingIcon.d.ts +3 -0
- package/dist/Icons/SortDescendingIcon.js +73 -0
- package/dist/Icons/StackIcon.d.ts +3 -0
- package/dist/Icons/StackIcon.js +43 -0
- package/dist/Icons/StarIcon.d.ts +3 -0
- package/dist/Icons/StarIcon.js +31 -0
- package/dist/Icons/TrashIcon.js +10 -10
- package/dist/Icons/UndoIcon.js +1 -1
- package/dist/Icons/UserIcon.js +1 -1
- package/dist/Icons/WarningIcon.js +9 -9
- package/dist/Icons/ZoomAllIcon.js +97 -57
- package/dist/Icons/ZoomXIcon.js +6 -6
- package/dist/Icons/ZoomYIcon.js +17 -8
- package/dist/Icons/index.d.ts +10 -0
- package/dist/Icons.js +114 -94
- package/dist/Input.d.ts +2 -0
- package/dist/Input.js +100 -82
- package/dist/InputGroup.d.ts +16 -0
- package/dist/InputGroup.js +129 -0
- package/dist/InputOTP.d.ts +0 -2
- package/dist/InputOTP.js +148 -143
- package/dist/Label.d.ts +3 -7
- package/dist/Label.js +11 -11
- package/dist/MultiSelect/MultiSelectBase.js +28 -28
- package/dist/Popover.d.ts +6 -7
- package/dist/Popover.js +60 -71
- package/dist/RadioButtonGroup/RadioButtonGroupBase.js +1 -1
- package/dist/RadioButtonGroup.js +1 -1
- package/dist/RadioGroup.d.ts +1 -1
- package/dist/RadioGroup.js +141 -134
- package/dist/Select.d.ts +12 -12
- package/dist/Select.js +106 -895
- package/dist/Separator.d.ts +12 -0
- package/dist/Separator.js +24 -0
- package/dist/Skeleton.js +3 -3
- package/dist/Slider.d.ts +15 -3
- package/dist/Slider.js +464 -40
- package/dist/Switch/SwitchBase.js +1 -1
- package/dist/Switch.js +2 -2
- package/dist/Tabs/TabsBase.js +1 -1
- package/dist/Tabs.js +16 -16
- package/dist/Textarea.js +58 -50
- package/dist/Toggle.js +2 -2
- package/dist/ToggleGroup.js +1 -1
- package/dist/Tooltip/TooltipBase.js +29 -29
- package/dist/Tooltip.js +15 -15
- package/dist/Tray/TrayStoriesData.d.ts +39 -0
- package/dist/Tray/TrayStoriesData.js +438 -0
- package/dist/Tray.d.ts +28 -0
- package/dist/Tray.js +236 -0
- package/dist/analyzer/network.webp +0 -0
- package/dist/analyzer/sunburst.webp +0 -0
- package/dist/analyzer/visual.webp +0 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/Accordion/Accordion.d.ts +37 -0
- package/dist/components/Accordion/Accordion.d.ts.map +1 -0
- package/dist/components/Badge/Badge.d.ts +12 -2
- package/dist/components/Badge/Badge.d.ts.map +1 -1
- package/dist/components/Button/Button.d.ts +3 -3
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +29 -0
- package/dist/components/ButtonGroup/ButtonGroup.d.ts.map +1 -0
- package/dist/components/ButtonGroup/ButtonGroupButton.d.ts +13 -0
- package/dist/components/ButtonGroup/ButtonGroupButton.d.ts.map +1 -0
- package/dist/components/Card/Card.d.ts +16 -0
- package/dist/components/Card/Card.d.ts.map +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.d.ts +1 -1
- package/dist/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/components/Dialog/DialogBase.d.ts +6 -3
- package/dist/components/Dialog/DialogBase.d.ts.map +1 -1
- package/dist/components/HoverCard/HoverCard.d.ts +29 -0
- package/dist/components/HoverCard/HoverCard.d.ts.map +1 -0
- package/dist/components/Icons/AnalyzeIcon.d.ts +3 -0
- package/dist/components/Icons/AnalyzeIcon.d.ts.map +1 -0
- package/dist/components/Icons/ApprovedIcon.d.ts +3 -0
- package/dist/components/Icons/ApprovedIcon.d.ts.map +1 -0
- package/dist/components/Icons/DatabaseIcon.d.ts +3 -0
- package/dist/components/Icons/DatabaseIcon.d.ts.map +1 -0
- package/dist/components/Icons/DeleteIcon.d.ts.map +1 -1
- package/dist/components/Icons/EraserIcon.d.ts.map +1 -1
- package/dist/components/Icons/IconBase.d.ts +1 -1
- package/dist/components/Icons/IconBase.d.ts.map +1 -1
- package/dist/components/Icons/LineToolIcon.d.ts.map +1 -1
- package/dist/components/Icons/LineToolIcon2.d.ts +3 -0
- package/dist/components/Icons/LineToolIcon2.d.ts.map +1 -0
- package/dist/components/Icons/MessagesIcon.d.ts +3 -0
- package/dist/components/Icons/MessagesIcon.d.ts.map +1 -0
- package/dist/components/Icons/OntologyIcon.d.ts.map +1 -1
- package/dist/components/Icons/PlusIcon.d.ts.map +1 -1
- package/dist/components/Icons/ReviewedIcon.d.ts +3 -0
- package/dist/components/Icons/ReviewedIcon.d.ts.map +1 -0
- package/dist/components/Icons/SettingsIcon.d.ts.map +1 -1
- package/dist/components/Icons/SortAscendingIcon.d.ts +3 -0
- package/dist/components/Icons/SortAscendingIcon.d.ts.map +1 -0
- package/dist/components/Icons/SortDescendingIcon.d.ts +3 -0
- package/dist/components/Icons/SortDescendingIcon.d.ts.map +1 -0
- package/dist/components/Icons/StackIcon.d.ts +3 -0
- package/dist/components/Icons/StackIcon.d.ts.map +1 -0
- package/dist/components/Icons/StarIcon.d.ts +3 -0
- package/dist/components/Icons/StarIcon.d.ts.map +1 -0
- package/dist/components/Icons/ZoomAllIcon.d.ts.map +1 -1
- package/dist/components/Icons/ZoomYIcon.d.ts.map +1 -1
- package/dist/components/Icons/index.d.ts +10 -0
- package/dist/components/Icons/index.d.ts.map +1 -1
- package/dist/components/Input/Input.d.ts +2 -0
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/components/InputGroup/InputGroup.d.ts +16 -0
- package/dist/components/InputGroup/InputGroup.d.ts.map +1 -0
- package/dist/components/InputOTP/InputOTP.d.ts +0 -2
- package/dist/components/InputOTP/InputOTP.d.ts.map +1 -1
- package/dist/components/Label/Label.d.ts +3 -7
- package/dist/components/Label/Label.d.ts.map +1 -1
- package/dist/components/Popover/Popover.d.ts +6 -7
- package/dist/components/Popover/Popover.d.ts.map +1 -1
- package/dist/components/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/components/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/dist/components/Select/Select.d.ts +12 -12
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Separator/Separator.d.ts +12 -0
- package/dist/components/Separator/Separator.d.ts.map +1 -0
- package/dist/components/Slider/Slider.d.ts +15 -3
- package/dist/components/Slider/Slider.d.ts.map +1 -1
- package/dist/components/Textarea/Textarea.d.ts.map +1 -1
- package/dist/components/Tray/Tray.d.ts +28 -0
- package/dist/components/Tray/Tray.d.ts.map +1 -0
- package/dist/components/Tray/TrayStoriesData.d.ts +39 -0
- package/dist/components/Tray/TrayStoriesData.d.ts.map +1 -0
- package/dist/{createLucideIcon-CI1yJrZf.js → createLucideIcon-B_8CJpcQ.js} +4 -4
- package/dist/features/AuthCard/ForgotPasswordEmailForm.js +13 -3
- package/dist/features/AuthCard/ForgotPasswordResetForm.js +9 -9
- package/dist/features/AuthCard/PasswordInput.js +87 -9
- package/dist/features/AuthCard/SignInForm.js +25 -15
- package/dist/features/AuthCard/SignUpForm.js +24 -14
- package/dist/features/AuthCard.js +2 -2
- package/dist/features/LabelingTools.js +16 -6
- package/dist/features/SensorMetadata.js +15 -5
- package/dist/features/SettingsPopover.js +22 -12
- package/dist/index-0ioNhtNM.js +10 -0
- package/dist/{index-CBwRmAsQ.js → index-6Abv_Flm.js} +1 -1
- package/dist/{index-DUK1rxhf.js → index-B-GQStVW.js} +6 -5
- package/dist/index-B2oBi8ng.js +142 -0
- package/dist/index-BIpuW_o8.js +146 -0
- package/dist/index-BZPx6jYI.js +8 -0
- package/dist/index-BhufZRa2.js +232 -0
- package/dist/index-CAKA12cC.js +1265 -0
- package/dist/{index-Cfyte2YO.js → index-CGALWSq_.js} +1 -1
- package/dist/index-CVSxKOPp.js +13 -0
- package/dist/index-CevVJ05e.js +822 -0
- package/dist/{index-CRBC94ik.js → index-D29mdTf5.js} +1 -1
- package/dist/{index-FeGk8zep.js → index-NzygPVvJ.js} +10 -9
- package/dist/index-UEFPWH8U.js +54 -0
- package/dist/index-rKs9bXHr.js +6 -0
- package/dist/{index-Cb7rjMhE.js → index-y6Br5T4h.js} +6 -6
- package/dist/index.d.ts +11 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/linear-cursor-small.png +0 -0
- package/dist/{loader-circle-CvdzOiQ_.js → loader-circle-CdRVlFhN.js} +2 -2
- package/dist/main.js +15630 -13510
- package/dist/message-alert-matte-glass-gradient.webp +0 -0
- package/dist/primitives/button.d.ts +10 -0
- package/dist/primitives/button.d.ts.map +1 -0
- package/dist/primitives/button.js +42 -0
- package/dist/primitives/input.d.ts +3 -0
- package/dist/primitives/input.d.ts.map +1 -0
- package/dist/primitives/input.js +18 -0
- package/dist/primitives/select.d.ts +16 -0
- package/dist/primitives/select.d.ts.map +1 -0
- package/dist/primitives/select.js +205 -0
- package/dist/primitives/slot.d.ts.map +1 -1
- package/dist/primitives/slot.js +21 -20
- package/dist/primitives/textarea.d.ts +3 -0
- package/dist/primitives/textarea.d.ts.map +1 -0
- package/dist/primitives/textarea.js +16 -0
- package/dist/{proxy-DD79Ok6n.js → proxy-C9AqCss6.js} +1 -1
- package/dist/speech-bubble-fluid-glass-gradient.webp +0 -0
- package/dist/styles/main.css +1 -1
- package/dist/utils/formFieldUtils.js +1 -1
- package/dist/utils/twUtils.js +2728 -2
- package/dist/{x-BBpi7a_7.js → x-Dl66o_vF.js} +2 -2
- package/package.json +28 -23
- package/dist/Accordion/AccordionBase.d.ts +0 -42
- package/dist/Accordion/AccordionBase.js +0 -225
- package/dist/Badge/BadgeBase.d.ts +0 -13
- package/dist/Badge/BadgeBase.js +0 -35
- package/dist/PasswordInput-ClY_hxuN.js +0 -261
- package/dist/components/Accordion/AccordionBase.d.ts +0 -42
- package/dist/components/Accordion/AccordionBase.d.ts.map +0 -1
- package/dist/components/Badge/BadgeBase.d.ts +0 -13
- package/dist/components/Badge/BadgeBase.d.ts.map +0 -1
- package/dist/index-CA7haECj.js +0 -248
- package/dist/index-CbXx14YO.js +0 -59
- package/dist/index-VXXKXen4.js +0 -15
- package/dist/index-cCg4yNa8.js +0 -132
- package/dist/primitives/label.d.ts +0 -5
- package/dist/primitives/label.d.ts.map +0 -1
- package/dist/primitives/label.js +0 -27
- package/dist/twUtils-CRiPKpXj.js +0 -2743
- /package/dist/{list.yml.webp → analyzer/list.yml.webp} +0 -0
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "../styles/main.css";
|
|
3
3
|
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
4
|
+
import "../Icons/AnalyzeIcon.js";
|
|
4
5
|
import "../Icons/AnnotationsIcon.js";
|
|
6
|
+
import "../Icons/ApprovedIcon.js";
|
|
5
7
|
import "../Icons/CalendarIcon.js";
|
|
6
8
|
import "../Icons/CheckCircleIcon.js";
|
|
7
9
|
import "../Icons/CheckSquareIcon.js";
|
|
@@ -12,6 +14,7 @@ import "../Icons/ClockIcon.js";
|
|
|
12
14
|
import "../Icons/CloseCircleIcon.js";
|
|
13
15
|
import "../Icons/CloseIcon.js";
|
|
14
16
|
import "../Icons/DashboardIcon.js";
|
|
17
|
+
import "../Icons/DatabaseIcon.js";
|
|
15
18
|
import "../Icons/DeleteIcon.js";
|
|
16
19
|
import "../Icons/DurationIcon.js";
|
|
17
20
|
import "../Icons/EmailIcon.js";
|
|
@@ -27,10 +30,12 @@ import "../Icons/InfoIcon.js";
|
|
|
27
30
|
import "../Icons/LabelIcon.js";
|
|
28
31
|
import "../Icons/LassoIcon.js";
|
|
29
32
|
import "../Icons/LineToolIcon.js";
|
|
33
|
+
import "../Icons/LineToolIcon2.js";
|
|
30
34
|
import { LiveViewIcon as O } from "../Icons/LiveViewIcon.js";
|
|
31
35
|
import "../Icons/LoaderIcon.js";
|
|
32
36
|
import "../Icons/LocationIcon.js";
|
|
33
37
|
import "../Icons/LogoutIcon.js";
|
|
38
|
+
import "../Icons/MessagesIcon.js";
|
|
34
39
|
import "../Icons/MetadataIcon.js";
|
|
35
40
|
import "../Icons/MinusIcon.js";
|
|
36
41
|
import "../Icons/OntologyIcon.js";
|
|
@@ -39,8 +44,13 @@ import "../Icons/PanelIconOpen.js";
|
|
|
39
44
|
import "../Icons/PlayIcon.js";
|
|
40
45
|
import "../Icons/PlusIcon.js";
|
|
41
46
|
import { ResetIcon as I } from "../Icons/ResetIcon.js";
|
|
47
|
+
import "../Icons/ReviewedIcon.js";
|
|
42
48
|
import "../Icons/ScissorsIcon.js";
|
|
43
49
|
import { SettingsIcon as V } from "../Icons/SettingsIcon.js";
|
|
50
|
+
import "../Icons/SortAscendingIcon.js";
|
|
51
|
+
import "../Icons/SortDescendingIcon.js";
|
|
52
|
+
import "../Icons/StackIcon.js";
|
|
53
|
+
import "../Icons/StarIcon.js";
|
|
44
54
|
import "../Icons/TrashIcon.js";
|
|
45
55
|
import "../Icons/UndoIcon.js";
|
|
46
56
|
import "../Icons/UserIcon.js";
|
|
@@ -50,15 +60,15 @@ import { ZoomXIcon as k } from "../Icons/ZoomXIcon.js";
|
|
|
50
60
|
import { ZoomYIcon as G } from "../Icons/ZoomYIcon.js";
|
|
51
61
|
import { Popover as R, PopoverTrigger as S, PopoverContent as A } from "../Popover.js";
|
|
52
62
|
import { RadioButtonGroup as h, RadioButtonGroupItem as i } from "../RadioButtonGroup.js";
|
|
53
|
-
import { RadioGroup as Z, RadioGroupItem as
|
|
63
|
+
import { RadioGroup as Z, RadioGroupItem as m } from "../RadioGroup.js";
|
|
54
64
|
import { Switch as P } from "../Switch.js";
|
|
55
|
-
import { Toggle as
|
|
65
|
+
import { Toggle as l } from "../Toggle.js";
|
|
56
66
|
import { Tooltip as s, TooltipTrigger as a, TooltipContent as n } from "../Tooltip.js";
|
|
57
67
|
import { useState as o } from "react";
|
|
58
|
-
const
|
|
68
|
+
const Je = () => {
|
|
59
69
|
const [f, b] = o("green-black"), [u, p] = o(""), [v, c] = o(!1), [g, w] = o(!1), [y, N] = o("");
|
|
60
70
|
return /* @__PURE__ */ r(R, { open: v, onOpenChange: c, children: [
|
|
61
|
-
/* @__PURE__ */ e(S, { children: /* @__PURE__ */ e(
|
|
71
|
+
/* @__PURE__ */ e(S, { children: /* @__PURE__ */ e(l, { pressed: !1, children: /* @__PURE__ */ e(V, {}) }) }),
|
|
62
72
|
/* @__PURE__ */ r(A, { side: "bottom", align: "end", width: 420, children: [
|
|
63
73
|
/* @__PURE__ */ r("div", { className: "mb-6 w-full", children: [
|
|
64
74
|
/* @__PURE__ */ e("p", { className: "text-md text-md mb-3 font-semibold", children: "Zoom Options" }),
|
|
@@ -88,7 +98,7 @@ const Be = () => {
|
|
|
88
98
|
}
|
|
89
99
|
),
|
|
90
100
|
/* @__PURE__ */ r(
|
|
91
|
-
|
|
101
|
+
l,
|
|
92
102
|
{
|
|
93
103
|
pressed: !1,
|
|
94
104
|
"aria-label": "Reset zoom",
|
|
@@ -120,7 +130,7 @@ const Be = () => {
|
|
|
120
130
|
}
|
|
121
131
|
)
|
|
122
132
|
] }),
|
|
123
|
-
/* @__PURE__ */ e("div", { className: "mt-4 flex w-full items-center justify-center gap-2", children: /* @__PURE__ */ r(
|
|
133
|
+
/* @__PURE__ */ e("div", { className: "mt-4 flex w-full items-center justify-center gap-2", children: /* @__PURE__ */ r(l, { className: "w-full", children: [
|
|
124
134
|
/* @__PURE__ */ e(z, { size: 16 }),
|
|
125
135
|
"Harmonic Cursors"
|
|
126
136
|
] }) })
|
|
@@ -138,19 +148,19 @@ const Be = () => {
|
|
|
138
148
|
},
|
|
139
149
|
variant: "unstyled",
|
|
140
150
|
children: [
|
|
141
|
-
/* @__PURE__ */ e(
|
|
151
|
+
/* @__PURE__ */ e(m, { value: "green-black", "aria-label": "green & black theme", children: /* @__PURE__ */ r(s, { children: [
|
|
142
152
|
/* @__PURE__ */ e(a, { children: /* @__PURE__ */ e("img", { src: "/themes/green-black-theme.webp", alt: "green & black theme", className: "h-8 w-8" }) }),
|
|
143
153
|
/* @__PURE__ */ e(n, { side: "bottom", sideOffset: 8, children: /* @__PURE__ */ e("p", { children: "Green & Black Theme" }) })
|
|
144
154
|
] }) }),
|
|
145
|
-
/* @__PURE__ */ e(
|
|
155
|
+
/* @__PURE__ */ e(m, { value: "grayscale", "aria-label": "grayscale theme", children: /* @__PURE__ */ r(s, { children: [
|
|
146
156
|
/* @__PURE__ */ e(a, { children: /* @__PURE__ */ e("img", { src: "/themes/grayscale-theme.webp", alt: "grayscale theme", className: "h-8 w-8" }) }),
|
|
147
157
|
/* @__PURE__ */ e(n, { side: "bottom", sideOffset: 8, children: /* @__PURE__ */ e("p", { children: "Grayscale Theme" }) })
|
|
148
158
|
] }) }),
|
|
149
|
-
/* @__PURE__ */ e(
|
|
159
|
+
/* @__PURE__ */ e(m, { value: "reverse-grayscale", "aria-label": "reverse grayscale theme", children: /* @__PURE__ */ r(s, { children: [
|
|
150
160
|
/* @__PURE__ */ e(a, { children: /* @__PURE__ */ e("img", { src: "/themes/reverse-grayscale-theme.webp", alt: "reverse grayscale theme", className: "h-8 w-8" }) }),
|
|
151
161
|
/* @__PURE__ */ e(n, { side: "bottom", sideOffset: 8, children: /* @__PURE__ */ e("p", { children: "Reverse Grayscale Theme" }) })
|
|
152
162
|
] }) }),
|
|
153
|
-
/* @__PURE__ */ e(
|
|
163
|
+
/* @__PURE__ */ e(m, { value: "viridis", "aria-label": "viridis theme", children: /* @__PURE__ */ r(s, { children: [
|
|
154
164
|
/* @__PURE__ */ e(a, { children: /* @__PURE__ */ e("img", { src: "/themes/viridis-theme.webp", alt: "viridis theme", className: "h-8 w-8" }) }),
|
|
155
165
|
/* @__PURE__ */ e(n, { side: "bottom", sideOffset: 8, children: /* @__PURE__ */ e("p", { children: "Viridis Theme" }) })
|
|
156
166
|
] }) })
|
|
@@ -160,7 +170,7 @@ const Be = () => {
|
|
|
160
170
|
] }),
|
|
161
171
|
/* @__PURE__ */ r("div", { className: "border-border-secondary mb-2 w-full border-t pt-4", children: [
|
|
162
172
|
/* @__PURE__ */ e("p", { className: "text-md text-md mb-3 font-semibold", children: "View Options" }),
|
|
163
|
-
/* @__PURE__ */ r(
|
|
173
|
+
/* @__PURE__ */ r(l, { className: "mb-4 w-full", children: [
|
|
164
174
|
/* @__PURE__ */ e(O, { size: 18 }),
|
|
165
175
|
"Realtime Stream"
|
|
166
176
|
] }),
|
|
@@ -190,5 +200,5 @@ const Be = () => {
|
|
|
190
200
|
] });
|
|
191
201
|
};
|
|
192
202
|
export {
|
|
193
|
-
|
|
203
|
+
Je as SettingsPopover
|
|
194
204
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import "./styles/main.css";
|
|
2
2
|
import * as u from "react";
|
|
3
3
|
import { useState as he } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { a as me, P as pe } from "./index-BhufZRa2.js";
|
|
5
|
+
import { u as z } from "./index-0ioNhtNM.js";
|
|
5
6
|
import { jsx as ge } from "react/jsx-runtime";
|
|
6
7
|
var U = "focusScope.autoFocusOnMount", _ = "focusScope.autoFocusOnUnmount", Z = { bubbles: !1, cancelable: !0 }, ye = "FocusScope", be = u.forwardRef((e, t) => {
|
|
7
8
|
const {
|
|
@@ -132,7 +133,7 @@ function ke(e) {
|
|
|
132
133
|
return e.filter((t) => t.tagName !== "A");
|
|
133
134
|
}
|
|
134
135
|
var j = 0;
|
|
135
|
-
function
|
|
136
|
+
function pt() {
|
|
136
137
|
u.useEffect(() => {
|
|
137
138
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
138
139
|
return document.body.insertAdjacentElement("afterbegin", e[0] ?? J()), document.body.insertAdjacentElement("beforeend", e[1] ?? J()), j++, () => {
|
|
@@ -658,7 +659,7 @@ var lt = function(e) {
|
|
|
658
659
|
M.set(f, v), i.set(f, h), v || (I.has(f) || f.removeAttribute(r), I.delete(f)), h || f.removeAttribute(n);
|
|
659
660
|
}), X--, X || (M = /* @__PURE__ */ new WeakMap(), M = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap(), x = {});
|
|
660
661
|
};
|
|
661
|
-
},
|
|
662
|
+
}, gt = function(e, t, n) {
|
|
662
663
|
n === void 0 && (n = "data-aria-hidden");
|
|
663
664
|
var r = Array.from(Array.isArray(e) ? e : [e]), c = lt(e);
|
|
664
665
|
return c ? (r.push.apply(r, Array.from(c.querySelectorAll("[aria-live], script"))), ft(r, c, n, "aria-hidden")) : function() {
|
|
@@ -668,6 +669,6 @@ var lt = function(e) {
|
|
|
668
669
|
export {
|
|
669
670
|
be as F,
|
|
670
671
|
it as R,
|
|
671
|
-
|
|
672
|
-
|
|
672
|
+
gt as h,
|
|
673
|
+
pt as u
|
|
673
674
|
};
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import "./styles/main.css";
|
|
2
|
+
import * as r from "react";
|
|
3
|
+
import { a as T, P as m, b as h, h as k, d as M } from "./index-BhufZRa2.js";
|
|
4
|
+
import { u as b } from "./index-0ioNhtNM.js";
|
|
5
|
+
import { jsx as P } from "react/jsx-runtime";
|
|
6
|
+
import U from "react-dom";
|
|
7
|
+
function z(n, e = globalThis?.document) {
|
|
8
|
+
const t = b(n);
|
|
9
|
+
r.useEffect(() => {
|
|
10
|
+
const i = (s) => {
|
|
11
|
+
s.key === "Escape" && t(s);
|
|
12
|
+
};
|
|
13
|
+
return e.addEventListener("keydown", i, { capture: !0 }), () => e.removeEventListener("keydown", i, { capture: !0 });
|
|
14
|
+
}, [t, e]);
|
|
15
|
+
}
|
|
16
|
+
var H = "DismissableLayer", p = "dismissableLayer.update", K = "dismissableLayer.pointerDownOutside", j = "dismissableLayer.focusOutside", R, B = r.createContext({
|
|
17
|
+
layers: /* @__PURE__ */ new Set(),
|
|
18
|
+
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
19
|
+
branches: /* @__PURE__ */ new Set()
|
|
20
|
+
}), X = r.forwardRef(
|
|
21
|
+
(n, e) => {
|
|
22
|
+
const {
|
|
23
|
+
disableOutsidePointerEvents: t = !1,
|
|
24
|
+
onEscapeKeyDown: i,
|
|
25
|
+
onPointerDownOutside: s,
|
|
26
|
+
onFocusOutside: a,
|
|
27
|
+
onInteractOutside: d,
|
|
28
|
+
onDismiss: l,
|
|
29
|
+
...E
|
|
30
|
+
} = n, c = r.useContext(B), [u, F] = r.useState(null), f = u?.ownerDocument ?? globalThis?.document, [, I] = r.useState({}), S = T(e, (o) => F(o)), D = Array.from(c.layers), [A] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), N = D.indexOf(A), O = u ? D.indexOf(u) : -1, W = c.layersWithOutsidePointerEventsDisabled.size > 0, L = O >= N, _ = G((o) => {
|
|
31
|
+
const v = o.target, w = [...c.branches].some((y) => y.contains(v));
|
|
32
|
+
!L || w || (s?.(o), d?.(o), o.defaultPrevented || l?.());
|
|
33
|
+
}, f), C = J((o) => {
|
|
34
|
+
const v = o.target;
|
|
35
|
+
[...c.branches].some((y) => y.contains(v)) || (a?.(o), d?.(o), o.defaultPrevented || l?.());
|
|
36
|
+
}, f);
|
|
37
|
+
return z((o) => {
|
|
38
|
+
O === c.layers.size - 1 && (i?.(o), !o.defaultPrevented && l && (o.preventDefault(), l()));
|
|
39
|
+
}, f), r.useEffect(() => {
|
|
40
|
+
if (u)
|
|
41
|
+
return t && (c.layersWithOutsidePointerEventsDisabled.size === 0 && (R = f.body.style.pointerEvents, f.body.style.pointerEvents = "none"), c.layersWithOutsidePointerEventsDisabled.add(u)), c.layers.add(u), g(), () => {
|
|
42
|
+
t && c.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents = R);
|
|
43
|
+
};
|
|
44
|
+
}, [u, f, t, c]), r.useEffect(() => () => {
|
|
45
|
+
u && (c.layers.delete(u), c.layersWithOutsidePointerEventsDisabled.delete(u), g());
|
|
46
|
+
}, [u, c]), r.useEffect(() => {
|
|
47
|
+
const o = () => I({});
|
|
48
|
+
return document.addEventListener(p, o), () => document.removeEventListener(p, o);
|
|
49
|
+
}, []), /* @__PURE__ */ P(
|
|
50
|
+
m.div,
|
|
51
|
+
{
|
|
52
|
+
...E,
|
|
53
|
+
ref: S,
|
|
54
|
+
style: {
|
|
55
|
+
pointerEvents: W ? L ? "auto" : "none" : void 0,
|
|
56
|
+
...n.style
|
|
57
|
+
},
|
|
58
|
+
onFocusCapture: h(n.onFocusCapture, C.onFocusCapture),
|
|
59
|
+
onBlurCapture: h(n.onBlurCapture, C.onBlurCapture),
|
|
60
|
+
onPointerDownCapture: h(
|
|
61
|
+
n.onPointerDownCapture,
|
|
62
|
+
_.onPointerDownCapture
|
|
63
|
+
)
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
X.displayName = H;
|
|
69
|
+
var Y = "DismissableLayerBranch", q = r.forwardRef((n, e) => {
|
|
70
|
+
const t = r.useContext(B), i = r.useRef(null), s = T(e, i);
|
|
71
|
+
return r.useEffect(() => {
|
|
72
|
+
const a = i.current;
|
|
73
|
+
if (a)
|
|
74
|
+
return t.branches.add(a), () => {
|
|
75
|
+
t.branches.delete(a);
|
|
76
|
+
};
|
|
77
|
+
}, [t.branches]), /* @__PURE__ */ P(m.div, { ...n, ref: s });
|
|
78
|
+
});
|
|
79
|
+
q.displayName = Y;
|
|
80
|
+
function G(n, e = globalThis?.document) {
|
|
81
|
+
const t = b(n), i = r.useRef(!1), s = r.useRef(() => {
|
|
82
|
+
});
|
|
83
|
+
return r.useEffect(() => {
|
|
84
|
+
const a = (l) => {
|
|
85
|
+
if (l.target && !i.current) {
|
|
86
|
+
let E = function() {
|
|
87
|
+
x(
|
|
88
|
+
K,
|
|
89
|
+
t,
|
|
90
|
+
c,
|
|
91
|
+
{ discrete: !0 }
|
|
92
|
+
);
|
|
93
|
+
};
|
|
94
|
+
const c = { originalEvent: l };
|
|
95
|
+
l.pointerType === "touch" ? (e.removeEventListener("click", s.current), s.current = E, e.addEventListener("click", s.current, { once: !0 })) : E();
|
|
96
|
+
} else
|
|
97
|
+
e.removeEventListener("click", s.current);
|
|
98
|
+
i.current = !1;
|
|
99
|
+
}, d = window.setTimeout(() => {
|
|
100
|
+
e.addEventListener("pointerdown", a);
|
|
101
|
+
}, 0);
|
|
102
|
+
return () => {
|
|
103
|
+
window.clearTimeout(d), e.removeEventListener("pointerdown", a), e.removeEventListener("click", s.current);
|
|
104
|
+
};
|
|
105
|
+
}, [e, t]), {
|
|
106
|
+
// ensures we check React component tree (not just DOM tree)
|
|
107
|
+
onPointerDownCapture: () => i.current = !0
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
function J(n, e = globalThis?.document) {
|
|
111
|
+
const t = b(n), i = r.useRef(!1);
|
|
112
|
+
return r.useEffect(() => {
|
|
113
|
+
const s = (a) => {
|
|
114
|
+
a.target && !i.current && x(j, t, { originalEvent: a }, {
|
|
115
|
+
discrete: !1
|
|
116
|
+
});
|
|
117
|
+
};
|
|
118
|
+
return e.addEventListener("focusin", s), () => e.removeEventListener("focusin", s);
|
|
119
|
+
}, [e, t]), {
|
|
120
|
+
onFocusCapture: () => i.current = !0,
|
|
121
|
+
onBlurCapture: () => i.current = !1
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
function g() {
|
|
125
|
+
const n = new CustomEvent(p);
|
|
126
|
+
document.dispatchEvent(n);
|
|
127
|
+
}
|
|
128
|
+
function x(n, e, t, { discrete: i }) {
|
|
129
|
+
const s = t.originalEvent.target, a = new CustomEvent(n, { bubbles: !1, cancelable: !0, detail: t });
|
|
130
|
+
e && s.addEventListener(n, e, { once: !0 }), i ? k(s, a) : s.dispatchEvent(a);
|
|
131
|
+
}
|
|
132
|
+
var Q = "Portal", V = r.forwardRef((n, e) => {
|
|
133
|
+
const { container: t, ...i } = n, [s, a] = r.useState(!1);
|
|
134
|
+
M(() => a(!0), []);
|
|
135
|
+
const d = t || s && globalThis?.document?.body;
|
|
136
|
+
return d ? U.createPortal(/* @__PURE__ */ P(m.div, { ...i, ref: e }), d) : null;
|
|
137
|
+
});
|
|
138
|
+
V.displayName = Q;
|
|
139
|
+
export {
|
|
140
|
+
X as D,
|
|
141
|
+
V as P
|
|
142
|
+
};
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import "./styles/main.css";
|
|
2
|
+
import { jsx as w, Fragment as N } from "react/jsx-runtime";
|
|
3
|
+
import * as v from "react";
|
|
4
|
+
import { useId as T, useRef as P, useContext as D, useInsertionEffect as S, useMemo as $, Children as U, isValidElement as V, useState as z } from "react";
|
|
5
|
+
import { M as X, i as _, u as W, P as B, a as F, b as G, L as O } from "./proxy-C9AqCss6.js";
|
|
6
|
+
function A(e, s) {
|
|
7
|
+
if (typeof e == "function")
|
|
8
|
+
return e(s);
|
|
9
|
+
e != null && (e.current = s);
|
|
10
|
+
}
|
|
11
|
+
function Y(...e) {
|
|
12
|
+
return (s) => {
|
|
13
|
+
let t = !1;
|
|
14
|
+
const o = e.map((r) => {
|
|
15
|
+
const n = A(r, s);
|
|
16
|
+
return !t && typeof n == "function" && (t = !0), n;
|
|
17
|
+
});
|
|
18
|
+
if (t)
|
|
19
|
+
return () => {
|
|
20
|
+
for (let r = 0; r < o.length; r++) {
|
|
21
|
+
const n = o[r];
|
|
22
|
+
typeof n == "function" ? n() : A(e[r], null);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
function q(...e) {
|
|
28
|
+
return v.useCallback(Y(...e), e);
|
|
29
|
+
}
|
|
30
|
+
class J extends v.Component {
|
|
31
|
+
getSnapshotBeforeUpdate(s) {
|
|
32
|
+
const t = this.props.childRef.current;
|
|
33
|
+
if (t && s.isPresent && !this.props.isPresent) {
|
|
34
|
+
const o = t.offsetParent, r = _(o) && o.offsetWidth || 0, n = this.props.sizeRef.current;
|
|
35
|
+
n.height = t.offsetHeight || 0, n.width = t.offsetWidth || 0, n.top = t.offsetTop, n.left = t.offsetLeft, n.right = r - n.width - n.left;
|
|
36
|
+
}
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Required with getSnapshotBeforeUpdate to stop React complaining.
|
|
41
|
+
*/
|
|
42
|
+
componentDidUpdate() {
|
|
43
|
+
}
|
|
44
|
+
render() {
|
|
45
|
+
return this.props.children;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function Q({ children: e, isPresent: s, anchorX: t, root: o }) {
|
|
49
|
+
const r = T(), n = P(null), p = P({
|
|
50
|
+
width: 0,
|
|
51
|
+
height: 0,
|
|
52
|
+
top: 0,
|
|
53
|
+
left: 0,
|
|
54
|
+
right: 0
|
|
55
|
+
}), { nonce: C } = D(X), x = q(n, e?.ref);
|
|
56
|
+
return S(() => {
|
|
57
|
+
const { width: i, height: g, top: c, left: u, right: a } = p.current;
|
|
58
|
+
if (s || !n.current || !i || !g)
|
|
59
|
+
return;
|
|
60
|
+
const h = t === "left" ? `left: ${u}` : `right: ${a}`;
|
|
61
|
+
n.current.dataset.motionPopId = r;
|
|
62
|
+
const l = document.createElement("style");
|
|
63
|
+
C && (l.nonce = C);
|
|
64
|
+
const R = o ?? document.head;
|
|
65
|
+
return R.appendChild(l), l.sheet && l.sheet.insertRule(`
|
|
66
|
+
[data-motion-pop-id="${r}"] {
|
|
67
|
+
position: absolute !important;
|
|
68
|
+
width: ${i}px !important;
|
|
69
|
+
height: ${g}px !important;
|
|
70
|
+
${h}px !important;
|
|
71
|
+
top: ${c}px !important;
|
|
72
|
+
}
|
|
73
|
+
`), () => {
|
|
74
|
+
R.contains(l) && R.removeChild(l);
|
|
75
|
+
};
|
|
76
|
+
}, [s]), w(J, { isPresent: s, childRef: n, sizeRef: p, children: v.cloneElement(e, { ref: x }) });
|
|
77
|
+
}
|
|
78
|
+
const Z = ({ children: e, initial: s, isPresent: t, onExitComplete: o, custom: r, presenceAffectsLayout: n, mode: p, anchorX: C, root: x }) => {
|
|
79
|
+
const i = W(ee), g = T();
|
|
80
|
+
let c = !0, u = $(() => (c = !1, {
|
|
81
|
+
id: g,
|
|
82
|
+
initial: s,
|
|
83
|
+
isPresent: t,
|
|
84
|
+
custom: r,
|
|
85
|
+
onExitComplete: (a) => {
|
|
86
|
+
i.set(a, !0);
|
|
87
|
+
for (const h of i.values())
|
|
88
|
+
if (!h)
|
|
89
|
+
return;
|
|
90
|
+
o && o();
|
|
91
|
+
},
|
|
92
|
+
register: (a) => (i.set(a, !1), () => i.delete(a))
|
|
93
|
+
}), [t, i, o]);
|
|
94
|
+
return n && c && (u = { ...u }), $(() => {
|
|
95
|
+
i.forEach((a, h) => i.set(h, !1));
|
|
96
|
+
}, [t]), v.useEffect(() => {
|
|
97
|
+
!t && !i.size && o && o();
|
|
98
|
+
}, [t]), p === "popLayout" && (e = w(Q, { isPresent: t, anchorX: C, root: x, children: e })), w(B.Provider, { value: u, children: e });
|
|
99
|
+
};
|
|
100
|
+
function ee() {
|
|
101
|
+
return /* @__PURE__ */ new Map();
|
|
102
|
+
}
|
|
103
|
+
const E = (e) => e.key || "";
|
|
104
|
+
function I(e) {
|
|
105
|
+
const s = [];
|
|
106
|
+
return U.forEach(e, (t) => {
|
|
107
|
+
V(t) && s.push(t);
|
|
108
|
+
}), s;
|
|
109
|
+
}
|
|
110
|
+
const oe = ({ children: e, custom: s, initial: t = !0, onExitComplete: o, presenceAffectsLayout: r = !0, mode: n = "sync", propagate: p = !1, anchorX: C = "left", root: x }) => {
|
|
111
|
+
const [i, g] = F(p), c = $(() => I(e), [e]), u = p && !i ? [] : c.map(E), a = P(!0), h = P(c), l = W(() => /* @__PURE__ */ new Map()), [R, j] = z(c), [m, b] = z(c);
|
|
112
|
+
G(() => {
|
|
113
|
+
a.current = !1, h.current = c;
|
|
114
|
+
for (let d = 0; d < m.length; d++) {
|
|
115
|
+
const f = E(m[d]);
|
|
116
|
+
u.includes(f) ? l.delete(f) : l.get(f) !== !0 && l.set(f, !1);
|
|
117
|
+
}
|
|
118
|
+
}, [m, u.length, u.join("-")]);
|
|
119
|
+
const M = [];
|
|
120
|
+
if (c !== R) {
|
|
121
|
+
let d = [...c];
|
|
122
|
+
for (let f = 0; f < m.length; f++) {
|
|
123
|
+
const y = m[f], L = E(y);
|
|
124
|
+
u.includes(L) || (d.splice(f, 0, y), M.push(y));
|
|
125
|
+
}
|
|
126
|
+
return n === "wait" && M.length && (d = M), b(I(d)), j(c), null;
|
|
127
|
+
}
|
|
128
|
+
process.env.NODE_ENV !== "production" && n === "wait" && m.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
|
|
129
|
+
const { forceRender: H } = D(O);
|
|
130
|
+
return w(N, { children: m.map((d) => {
|
|
131
|
+
const f = E(d), y = p && !i ? !1 : c === m || u.includes(f), L = () => {
|
|
132
|
+
if (l.has(f))
|
|
133
|
+
l.set(f, !0);
|
|
134
|
+
else
|
|
135
|
+
return;
|
|
136
|
+
let k = !0;
|
|
137
|
+
l.forEach((K) => {
|
|
138
|
+
K || (k = !1);
|
|
139
|
+
}), k && (H?.(), b(h.current), p && g?.(), o && o());
|
|
140
|
+
};
|
|
141
|
+
return w(Z, { isPresent: y, initial: !a.current || t ? void 0 : !1, custom: s, presenceAffectsLayout: r, mode: n, root: x, onExitComplete: y ? void 0 : L, anchorX: C, children: d }, f);
|
|
142
|
+
}) });
|
|
143
|
+
};
|
|
144
|
+
export {
|
|
145
|
+
oe as A
|
|
146
|
+
};
|