@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
|
@@ -0,0 +1,474 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "./styles/main.css";
|
|
3
|
+
import { jsx as i, jsxs as F } from "react/jsx-runtime";
|
|
4
|
+
import "./Icons/AnalyzeIcon.js";
|
|
5
|
+
import "./Icons/AnnotationsIcon.js";
|
|
6
|
+
import "./Icons/ApprovedIcon.js";
|
|
7
|
+
import "./Icons/CalendarIcon.js";
|
|
8
|
+
import "./Icons/CheckCircleIcon.js";
|
|
9
|
+
import "./Icons/CheckSquareIcon.js";
|
|
10
|
+
import "./Icons/CheckmarkIcon.js";
|
|
11
|
+
import { ChevronDownIcon as me } from "./Icons/ChevronDownIcon.js";
|
|
12
|
+
import "./Icons/ChevronUpIcon.js";
|
|
13
|
+
import "./Icons/ClockIcon.js";
|
|
14
|
+
import "./Icons/CloseCircleIcon.js";
|
|
15
|
+
import "./Icons/CloseIcon.js";
|
|
16
|
+
import "./Icons/DashboardIcon.js";
|
|
17
|
+
import "./Icons/DatabaseIcon.js";
|
|
18
|
+
import "./Icons/DeleteIcon.js";
|
|
19
|
+
import "./Icons/DurationIcon.js";
|
|
20
|
+
import "./Icons/EmailIcon.js";
|
|
21
|
+
import "./Icons/EraserIcon.js";
|
|
22
|
+
import "./Icons/ErrorIcon.js";
|
|
23
|
+
import "./Icons/EyeClosedIcon.js";
|
|
24
|
+
import "./Icons/EyeClosedIcon2.js";
|
|
25
|
+
import "./Icons/EyeOpenIcon.js";
|
|
26
|
+
import "./Icons/GoToFirstIcon.js";
|
|
27
|
+
import "./Icons/GoToLastIcon.js";
|
|
28
|
+
import "./Icons/HarmonicCursorsIcon.js";
|
|
29
|
+
import "./Icons/InfoIcon.js";
|
|
30
|
+
import "./Icons/LabelIcon.js";
|
|
31
|
+
import "./Icons/LassoIcon.js";
|
|
32
|
+
import "./Icons/LineToolIcon.js";
|
|
33
|
+
import "./Icons/LineToolIcon2.js";
|
|
34
|
+
import "./Icons/LiveViewIcon.js";
|
|
35
|
+
import "./Icons/LoaderIcon.js";
|
|
36
|
+
import "./Icons/LocationIcon.js";
|
|
37
|
+
import "./Icons/LogoutIcon.js";
|
|
38
|
+
import "./Icons/MessagesIcon.js";
|
|
39
|
+
import "./Icons/MetadataIcon.js";
|
|
40
|
+
import "./Icons/MinusIcon.js";
|
|
41
|
+
import "./Icons/OntologyIcon.js";
|
|
42
|
+
import "./Icons/PanelIconClose.js";
|
|
43
|
+
import "./Icons/PanelIconOpen.js";
|
|
44
|
+
import "./Icons/PlayIcon.js";
|
|
45
|
+
import "./Icons/PlusIcon.js";
|
|
46
|
+
import "./Icons/ResetIcon.js";
|
|
47
|
+
import "./Icons/ReviewedIcon.js";
|
|
48
|
+
import "./Icons/ScissorsIcon.js";
|
|
49
|
+
import "./Icons/SettingsIcon.js";
|
|
50
|
+
import "./Icons/SortAscendingIcon.js";
|
|
51
|
+
import "./Icons/SortDescendingIcon.js";
|
|
52
|
+
import "./Icons/StackIcon.js";
|
|
53
|
+
import "./Icons/StarIcon.js";
|
|
54
|
+
import "./Icons/TrashIcon.js";
|
|
55
|
+
import "./Icons/UndoIcon.js";
|
|
56
|
+
import "./Icons/UserIcon.js";
|
|
57
|
+
import "./Icons/WarningIcon.js";
|
|
58
|
+
import "./Icons/ZoomAllIcon.js";
|
|
59
|
+
import "./Icons/ZoomXIcon.js";
|
|
60
|
+
import "./Icons/ZoomYIcon.js";
|
|
61
|
+
import { useAccordionAutoScroll as ue } from "./hooks/useAccordionAutoScroll.js";
|
|
62
|
+
import * as u from "react";
|
|
63
|
+
import m, { createContext as fe, forwardRef as w, Children as ve, isValidElement as Ce, cloneElement as be, useContext as ge, useRef as Ae, useCallback as he } from "react";
|
|
64
|
+
import { c as z, u as V, P as R, b as B, a as U, d as xe } from "./index-BhufZRa2.js";
|
|
65
|
+
import { c as Ie, u as Re } from "./index-UEFPWH8U.js";
|
|
66
|
+
import { P as ye } from "./index-6Abv_Flm.js";
|
|
67
|
+
import { u as q } from "./index-CVSxKOPp.js";
|
|
68
|
+
import { cn as _ } from "./utils/twUtils.js";
|
|
69
|
+
var P = "Collapsible", [Ne, J] = z(P), [we, $] = Ne(P), Y = u.forwardRef(
|
|
70
|
+
(e, a) => {
|
|
71
|
+
const {
|
|
72
|
+
__scopeCollapsible: o,
|
|
73
|
+
open: t,
|
|
74
|
+
defaultOpen: r,
|
|
75
|
+
disabled: n,
|
|
76
|
+
onOpenChange: c,
|
|
77
|
+
...l
|
|
78
|
+
} = e, [s, p] = V({
|
|
79
|
+
prop: t,
|
|
80
|
+
defaultProp: r ?? !1,
|
|
81
|
+
onChange: c,
|
|
82
|
+
caller: P
|
|
83
|
+
});
|
|
84
|
+
return /* @__PURE__ */ i(
|
|
85
|
+
we,
|
|
86
|
+
{
|
|
87
|
+
scope: o,
|
|
88
|
+
disabled: n,
|
|
89
|
+
contentId: q(),
|
|
90
|
+
open: s,
|
|
91
|
+
onOpenToggle: u.useCallback(() => p((f) => !f), [p]),
|
|
92
|
+
children: /* @__PURE__ */ i(
|
|
93
|
+
R.div,
|
|
94
|
+
{
|
|
95
|
+
"data-state": L(s),
|
|
96
|
+
"data-disabled": n ? "" : void 0,
|
|
97
|
+
...l,
|
|
98
|
+
ref: a
|
|
99
|
+
}
|
|
100
|
+
)
|
|
101
|
+
}
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
);
|
|
105
|
+
Y.displayName = P;
|
|
106
|
+
var Q = "CollapsibleTrigger", W = u.forwardRef(
|
|
107
|
+
(e, a) => {
|
|
108
|
+
const { __scopeCollapsible: o, ...t } = e, r = $(Q, o);
|
|
109
|
+
return /* @__PURE__ */ i(
|
|
110
|
+
R.button,
|
|
111
|
+
{
|
|
112
|
+
type: "button",
|
|
113
|
+
"aria-controls": r.contentId,
|
|
114
|
+
"aria-expanded": r.open || !1,
|
|
115
|
+
"data-state": L(r.open),
|
|
116
|
+
"data-disabled": r.disabled ? "" : void 0,
|
|
117
|
+
disabled: r.disabled,
|
|
118
|
+
...t,
|
|
119
|
+
ref: a,
|
|
120
|
+
onClick: B(e.onClick, r.onOpenToggle)
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
);
|
|
125
|
+
W.displayName = Q;
|
|
126
|
+
var H = "CollapsibleContent", X = u.forwardRef(
|
|
127
|
+
(e, a) => {
|
|
128
|
+
const { forceMount: o, ...t } = e, r = $(H, e.__scopeCollapsible);
|
|
129
|
+
return /* @__PURE__ */ i(ye, { present: o || r.open, children: ({ present: n }) => /* @__PURE__ */ i(_e, { ...t, ref: a, present: n }) });
|
|
130
|
+
}
|
|
131
|
+
);
|
|
132
|
+
X.displayName = H;
|
|
133
|
+
var _e = u.forwardRef((e, a) => {
|
|
134
|
+
const { __scopeCollapsible: o, present: t, children: r, ...n } = e, c = $(H, o), [l, s] = u.useState(t), p = u.useRef(null), f = U(a, p), v = u.useRef(0), x = v.current, b = u.useRef(0), y = b.current, g = c.open || l, A = u.useRef(g), h = u.useRef(void 0);
|
|
135
|
+
return u.useEffect(() => {
|
|
136
|
+
const d = requestAnimationFrame(() => A.current = !1);
|
|
137
|
+
return () => cancelAnimationFrame(d);
|
|
138
|
+
}, []), xe(() => {
|
|
139
|
+
const d = p.current;
|
|
140
|
+
if (d) {
|
|
141
|
+
h.current = h.current || {
|
|
142
|
+
transitionDuration: d.style.transitionDuration,
|
|
143
|
+
animationName: d.style.animationName
|
|
144
|
+
}, d.style.transitionDuration = "0s", d.style.animationName = "none";
|
|
145
|
+
const I = d.getBoundingClientRect();
|
|
146
|
+
v.current = I.height, b.current = I.width, A.current || (d.style.transitionDuration = h.current.transitionDuration, d.style.animationName = h.current.animationName), s(t);
|
|
147
|
+
}
|
|
148
|
+
}, [c.open, t]), /* @__PURE__ */ i(
|
|
149
|
+
R.div,
|
|
150
|
+
{
|
|
151
|
+
"data-state": L(c.open),
|
|
152
|
+
"data-disabled": c.disabled ? "" : void 0,
|
|
153
|
+
id: c.contentId,
|
|
154
|
+
hidden: !g,
|
|
155
|
+
...n,
|
|
156
|
+
ref: f,
|
|
157
|
+
style: {
|
|
158
|
+
"--radix-collapsible-content-height": x ? `${x}px` : void 0,
|
|
159
|
+
"--radix-collapsible-content-width": y ? `${y}px` : void 0,
|
|
160
|
+
...e.style
|
|
161
|
+
},
|
|
162
|
+
children: g && r
|
|
163
|
+
}
|
|
164
|
+
);
|
|
165
|
+
});
|
|
166
|
+
function L(e) {
|
|
167
|
+
return e ? "open" : "closed";
|
|
168
|
+
}
|
|
169
|
+
var Pe = Y, Ee = W, Se = X, C = "Accordion", Oe = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [G, Te, ke] = Ie(C), [E] = z(C, [
|
|
170
|
+
ke,
|
|
171
|
+
J
|
|
172
|
+
]), K = J(), Z = m.forwardRef(
|
|
173
|
+
(e, a) => {
|
|
174
|
+
const { type: o, ...t } = e, r = t, n = t;
|
|
175
|
+
return /* @__PURE__ */ i(G.Provider, { scope: e.__scopeAccordion, children: o === "multiple" ? /* @__PURE__ */ i($e, { ...n, ref: a }) : /* @__PURE__ */ i(Ve, { ...r, ref: a }) });
|
|
176
|
+
}
|
|
177
|
+
);
|
|
178
|
+
Z.displayName = C;
|
|
179
|
+
var [ee, De] = E(C), [oe, Me] = E(
|
|
180
|
+
C,
|
|
181
|
+
{ collapsible: !1 }
|
|
182
|
+
), Ve = m.forwardRef(
|
|
183
|
+
(e, a) => {
|
|
184
|
+
const {
|
|
185
|
+
value: o,
|
|
186
|
+
defaultValue: t,
|
|
187
|
+
onValueChange: r = () => {
|
|
188
|
+
},
|
|
189
|
+
collapsible: n = !1,
|
|
190
|
+
...c
|
|
191
|
+
} = e, [l, s] = V({
|
|
192
|
+
prop: o,
|
|
193
|
+
defaultProp: t ?? "",
|
|
194
|
+
onChange: r,
|
|
195
|
+
caller: C
|
|
196
|
+
});
|
|
197
|
+
return /* @__PURE__ */ i(
|
|
198
|
+
ee,
|
|
199
|
+
{
|
|
200
|
+
scope: e.__scopeAccordion,
|
|
201
|
+
value: m.useMemo(() => l ? [l] : [], [l]),
|
|
202
|
+
onItemOpen: s,
|
|
203
|
+
onItemClose: m.useCallback(() => n && s(""), [n, s]),
|
|
204
|
+
children: /* @__PURE__ */ i(oe, { scope: e.__scopeAccordion, collapsible: n, children: /* @__PURE__ */ i(te, { ...c, ref: a }) })
|
|
205
|
+
}
|
|
206
|
+
);
|
|
207
|
+
}
|
|
208
|
+
), $e = m.forwardRef((e, a) => {
|
|
209
|
+
const {
|
|
210
|
+
value: o,
|
|
211
|
+
defaultValue: t,
|
|
212
|
+
onValueChange: r = () => {
|
|
213
|
+
},
|
|
214
|
+
...n
|
|
215
|
+
} = e, [c, l] = V({
|
|
216
|
+
prop: o,
|
|
217
|
+
defaultProp: t ?? [],
|
|
218
|
+
onChange: r,
|
|
219
|
+
caller: C
|
|
220
|
+
}), s = m.useCallback(
|
|
221
|
+
(f) => l((v = []) => [...v, f]),
|
|
222
|
+
[l]
|
|
223
|
+
), p = m.useCallback(
|
|
224
|
+
(f) => l((v = []) => v.filter((x) => x !== f)),
|
|
225
|
+
[l]
|
|
226
|
+
);
|
|
227
|
+
return /* @__PURE__ */ i(
|
|
228
|
+
ee,
|
|
229
|
+
{
|
|
230
|
+
scope: e.__scopeAccordion,
|
|
231
|
+
value: c,
|
|
232
|
+
onItemOpen: s,
|
|
233
|
+
onItemClose: p,
|
|
234
|
+
children: /* @__PURE__ */ i(oe, { scope: e.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ i(te, { ...n, ref: a }) })
|
|
235
|
+
}
|
|
236
|
+
);
|
|
237
|
+
}), [He, S] = E(C), te = m.forwardRef(
|
|
238
|
+
(e, a) => {
|
|
239
|
+
const { __scopeAccordion: o, disabled: t, dir: r, orientation: n = "vertical", ...c } = e, l = m.useRef(null), s = U(l, a), p = Te(o), v = Re(r) === "ltr", x = B(e.onKeyDown, (b) => {
|
|
240
|
+
if (!Oe.includes(b.key)) return;
|
|
241
|
+
const y = b.target, g = p().filter((D) => !D.ref.current?.disabled), A = g.findIndex((D) => D.ref.current === y), h = g.length;
|
|
242
|
+
if (A === -1) return;
|
|
243
|
+
b.preventDefault();
|
|
244
|
+
let d = A;
|
|
245
|
+
const I = 0, O = h - 1, T = () => {
|
|
246
|
+
d = A + 1, d > O && (d = I);
|
|
247
|
+
}, k = () => {
|
|
248
|
+
d = A - 1, d < I && (d = O);
|
|
249
|
+
};
|
|
250
|
+
switch (b.key) {
|
|
251
|
+
case "Home":
|
|
252
|
+
d = I;
|
|
253
|
+
break;
|
|
254
|
+
case "End":
|
|
255
|
+
d = O;
|
|
256
|
+
break;
|
|
257
|
+
case "ArrowRight":
|
|
258
|
+
n === "horizontal" && (v ? T() : k());
|
|
259
|
+
break;
|
|
260
|
+
case "ArrowDown":
|
|
261
|
+
n === "vertical" && T();
|
|
262
|
+
break;
|
|
263
|
+
case "ArrowLeft":
|
|
264
|
+
n === "horizontal" && (v ? k() : T());
|
|
265
|
+
break;
|
|
266
|
+
case "ArrowUp":
|
|
267
|
+
n === "vertical" && k();
|
|
268
|
+
break;
|
|
269
|
+
}
|
|
270
|
+
const pe = d % h;
|
|
271
|
+
g[pe].ref.current?.focus();
|
|
272
|
+
});
|
|
273
|
+
return /* @__PURE__ */ i(
|
|
274
|
+
He,
|
|
275
|
+
{
|
|
276
|
+
scope: o,
|
|
277
|
+
disabled: t,
|
|
278
|
+
direction: r,
|
|
279
|
+
orientation: n,
|
|
280
|
+
children: /* @__PURE__ */ i(G.Slot, { scope: o, children: /* @__PURE__ */ i(
|
|
281
|
+
R.div,
|
|
282
|
+
{
|
|
283
|
+
...c,
|
|
284
|
+
"data-orientation": n,
|
|
285
|
+
ref: s,
|
|
286
|
+
onKeyDown: t ? void 0 : x
|
|
287
|
+
}
|
|
288
|
+
) })
|
|
289
|
+
}
|
|
290
|
+
);
|
|
291
|
+
}
|
|
292
|
+
), N = "AccordionItem", [Le, j] = E(N), re = m.forwardRef(
|
|
293
|
+
(e, a) => {
|
|
294
|
+
const { __scopeAccordion: o, value: t, ...r } = e, n = S(N, o), c = De(N, o), l = K(o), s = q(), p = t && c.value.includes(t) || !1, f = n.disabled || e.disabled;
|
|
295
|
+
return /* @__PURE__ */ i(
|
|
296
|
+
Le,
|
|
297
|
+
{
|
|
298
|
+
scope: o,
|
|
299
|
+
open: p,
|
|
300
|
+
disabled: f,
|
|
301
|
+
triggerId: s,
|
|
302
|
+
children: /* @__PURE__ */ i(
|
|
303
|
+
Pe,
|
|
304
|
+
{
|
|
305
|
+
"data-orientation": n.orientation,
|
|
306
|
+
"data-state": se(p),
|
|
307
|
+
...l,
|
|
308
|
+
...r,
|
|
309
|
+
ref: a,
|
|
310
|
+
disabled: f,
|
|
311
|
+
open: p,
|
|
312
|
+
onOpenChange: (v) => {
|
|
313
|
+
v ? c.onItemOpen(t) : c.onItemClose(t);
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
)
|
|
317
|
+
}
|
|
318
|
+
);
|
|
319
|
+
}
|
|
320
|
+
);
|
|
321
|
+
re.displayName = N;
|
|
322
|
+
var ne = "AccordionHeader", ae = m.forwardRef(
|
|
323
|
+
(e, a) => {
|
|
324
|
+
const { __scopeAccordion: o, ...t } = e, r = S(C, o), n = j(ne, o);
|
|
325
|
+
return /* @__PURE__ */ i(
|
|
326
|
+
R.h3,
|
|
327
|
+
{
|
|
328
|
+
"data-orientation": r.orientation,
|
|
329
|
+
"data-state": se(n.open),
|
|
330
|
+
"data-disabled": n.disabled ? "" : void 0,
|
|
331
|
+
...t,
|
|
332
|
+
ref: a
|
|
333
|
+
}
|
|
334
|
+
);
|
|
335
|
+
}
|
|
336
|
+
);
|
|
337
|
+
ae.displayName = ne;
|
|
338
|
+
var M = "AccordionTrigger", ie = m.forwardRef(
|
|
339
|
+
(e, a) => {
|
|
340
|
+
const { __scopeAccordion: o, ...t } = e, r = S(C, o), n = j(M, o), c = Me(M, o), l = K(o);
|
|
341
|
+
return /* @__PURE__ */ i(G.ItemSlot, { scope: o, children: /* @__PURE__ */ i(
|
|
342
|
+
Ee,
|
|
343
|
+
{
|
|
344
|
+
"aria-disabled": n.open && !c.collapsible || void 0,
|
|
345
|
+
"data-orientation": r.orientation,
|
|
346
|
+
id: n.triggerId,
|
|
347
|
+
...l,
|
|
348
|
+
...t,
|
|
349
|
+
ref: a
|
|
350
|
+
}
|
|
351
|
+
) });
|
|
352
|
+
}
|
|
353
|
+
);
|
|
354
|
+
ie.displayName = M;
|
|
355
|
+
var ce = "AccordionContent", le = m.forwardRef(
|
|
356
|
+
(e, a) => {
|
|
357
|
+
const { __scopeAccordion: o, ...t } = e, r = S(C, o), n = j(ce, o), c = K(o);
|
|
358
|
+
return /* @__PURE__ */ i(
|
|
359
|
+
Se,
|
|
360
|
+
{
|
|
361
|
+
role: "region",
|
|
362
|
+
"aria-labelledby": n.triggerId,
|
|
363
|
+
"data-orientation": r.orientation,
|
|
364
|
+
...c,
|
|
365
|
+
...t,
|
|
366
|
+
ref: a,
|
|
367
|
+
style: {
|
|
368
|
+
"--radix-accordion-content-height": "var(--radix-collapsible-content-height)",
|
|
369
|
+
"--radix-accordion-content-width": "var(--radix-collapsible-content-width)",
|
|
370
|
+
...e.style
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
);
|
|
374
|
+
}
|
|
375
|
+
);
|
|
376
|
+
le.displayName = ce;
|
|
377
|
+
function se(e) {
|
|
378
|
+
return e ? "open" : "closed";
|
|
379
|
+
}
|
|
380
|
+
var Ge = Z, Ke = re, je = ae, Fe = ie, ze = le;
|
|
381
|
+
const Be = {
|
|
382
|
+
default: "shadow-none",
|
|
383
|
+
contained: "rounded-md border border-level-four",
|
|
384
|
+
separated: "rounded-none space-y-2"
|
|
385
|
+
}, Ue = {
|
|
386
|
+
default: "",
|
|
387
|
+
contained: "last:border-b-0",
|
|
388
|
+
separated: "rounded-md"
|
|
389
|
+
}, de = fe({ variant: "default" }), qe = w(({ variant: e = "default", ...a }, o) => {
|
|
390
|
+
const { autoScroll: t = "never", scrollPadding: r = -20, children: n, ...c } = a, l = {
|
|
391
|
+
autoScroll: t,
|
|
392
|
+
scrollPadding: r
|
|
393
|
+
}, s = {
|
|
394
|
+
...c,
|
|
395
|
+
ref: o
|
|
396
|
+
};
|
|
397
|
+
return /* @__PURE__ */ i(de.Provider, { value: { variant: e }, children: /* @__PURE__ */ i(
|
|
398
|
+
Ge,
|
|
399
|
+
{
|
|
400
|
+
...s,
|
|
401
|
+
"data-slot": "accordion",
|
|
402
|
+
"data-scroll-options": JSON.stringify(l),
|
|
403
|
+
"data-auto-scroll": t,
|
|
404
|
+
"data-scroll-padding": r,
|
|
405
|
+
...a.type === "single" ? { collapsible: !0 } : {},
|
|
406
|
+
className: _("accordion-wrapper flex flex-col", Be[e]),
|
|
407
|
+
children: ve.map(n, (p) => Ce(p) ? be(p, { variant: e }) : p)
|
|
408
|
+
}
|
|
409
|
+
) });
|
|
410
|
+
});
|
|
411
|
+
qe.displayName = "Accordion";
|
|
412
|
+
const Je = w(({ className: e, ...a }, o) => {
|
|
413
|
+
const { variant: t = "default" } = ge(de);
|
|
414
|
+
return /* @__PURE__ */ i(
|
|
415
|
+
Ke,
|
|
416
|
+
{
|
|
417
|
+
ref: o,
|
|
418
|
+
"data-slot": "accordion-item",
|
|
419
|
+
className: _("border-level-four w-full border-b p-4", Ue[t], e),
|
|
420
|
+
...a
|
|
421
|
+
}
|
|
422
|
+
);
|
|
423
|
+
});
|
|
424
|
+
Je.displayName = "AccordionItem";
|
|
425
|
+
const Ye = w(({ className: e, title: a, subtitle: o, ...t }, r) => {
|
|
426
|
+
const n = Ae(null), c = ue(n), l = he(
|
|
427
|
+
(s) => {
|
|
428
|
+
typeof r == "function" ? r(s) : r && (r.current = s), n.current = s;
|
|
429
|
+
},
|
|
430
|
+
[r]
|
|
431
|
+
);
|
|
432
|
+
return /* @__PURE__ */ i(je, { className: "m-0 flex", children: /* @__PURE__ */ F(
|
|
433
|
+
Fe,
|
|
434
|
+
{
|
|
435
|
+
ref: l,
|
|
436
|
+
"data-slot": "accordion-trigger",
|
|
437
|
+
className: _(
|
|
438
|
+
"text-text-primary flex flex-1 items-center justify-between text-sm font-normal transition-all hover:no-underline",
|
|
439
|
+
"disabled:cursor-not-allowed [&[data-state=open]>svg]:rotate-180",
|
|
440
|
+
e
|
|
441
|
+
),
|
|
442
|
+
onClick: c,
|
|
443
|
+
...t,
|
|
444
|
+
children: [
|
|
445
|
+
/* @__PURE__ */ F("div", { className: "flex w-full flex-col space-y-0.5 text-start", children: [
|
|
446
|
+
/* @__PURE__ */ i("div", { className: "text-text-primary text-base font-medium", children: a }),
|
|
447
|
+
o && /* @__PURE__ */ i("div", { className: "text-text-secondary text-sm font-normal", children: o })
|
|
448
|
+
] }),
|
|
449
|
+
/* @__PURE__ */ i(me, { className: "shrink-0 transition-transform duration-200" })
|
|
450
|
+
]
|
|
451
|
+
}
|
|
452
|
+
) });
|
|
453
|
+
});
|
|
454
|
+
Ye.displayName = "AccordionTrigger";
|
|
455
|
+
const Qe = w(({ className: e, children: a, ...o }, t) => /* @__PURE__ */ i(
|
|
456
|
+
ze,
|
|
457
|
+
{
|
|
458
|
+
ref: t,
|
|
459
|
+
"data-slot": "accordion-content",
|
|
460
|
+
className: _(
|
|
461
|
+
"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden pt-4 text-sm",
|
|
462
|
+
e
|
|
463
|
+
),
|
|
464
|
+
...o,
|
|
465
|
+
children: /* @__PURE__ */ i("div", { className: "px-1 pt-0 pb-4", "data-slot": "accordion-content-inner", children: a })
|
|
466
|
+
}
|
|
467
|
+
));
|
|
468
|
+
Qe.displayName = "AccordionContent";
|
|
469
|
+
export {
|
|
470
|
+
qe as Accordion,
|
|
471
|
+
Qe as AccordionContent,
|
|
472
|
+
Je as AccordionItem,
|
|
473
|
+
Ye as AccordionTrigger
|
|
474
|
+
};
|
package/dist/Alert/AlertBase.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "../styles/main.css";
|
|
3
3
|
import { jsx as s } from "react/jsx-runtime";
|
|
4
|
-
import {
|
|
5
|
-
import { c as i } from "../index-
|
|
4
|
+
import { cn as l } from "../utils/twUtils.js";
|
|
5
|
+
import { c as i } from "../index-D29mdTf5.js";
|
|
6
6
|
import { forwardRef as o, useState as n, useEffect as d } from "react";
|
|
7
7
|
import { createPortal as c } from "react-dom";
|
|
8
8
|
const g = i(
|
package/dist/Alert.js
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
import "./styles/main.css";
|
|
3
3
|
import { jsx as r, jsxs as m } from "react/jsx-runtime";
|
|
4
4
|
import { AlertPortal as v, AlertBase as w, AlertTitle as y, AlertDescription as I } from "./Alert/AlertBase.js";
|
|
5
|
+
import "./Icons/AnalyzeIcon.js";
|
|
5
6
|
import "./Icons/AnnotationsIcon.js";
|
|
7
|
+
import "./Icons/ApprovedIcon.js";
|
|
6
8
|
import "./Icons/CalendarIcon.js";
|
|
7
9
|
import "./Icons/CheckCircleIcon.js";
|
|
8
10
|
import { CheckSquareIcon as A } from "./Icons/CheckSquareIcon.js";
|
|
@@ -13,6 +15,7 @@ import "./Icons/ClockIcon.js";
|
|
|
13
15
|
import { CloseCircleIcon as b } from "./Icons/CloseCircleIcon.js";
|
|
14
16
|
import { CloseIcon as N } from "./Icons/CloseIcon.js";
|
|
15
17
|
import "./Icons/DashboardIcon.js";
|
|
18
|
+
import "./Icons/DatabaseIcon.js";
|
|
16
19
|
import "./Icons/DeleteIcon.js";
|
|
17
20
|
import "./Icons/DurationIcon.js";
|
|
18
21
|
import "./Icons/EmailIcon.js";
|
|
@@ -28,10 +31,12 @@ import { InfoIcon as C } from "./Icons/InfoIcon.js";
|
|
|
28
31
|
import "./Icons/LabelIcon.js";
|
|
29
32
|
import "./Icons/LassoIcon.js";
|
|
30
33
|
import "./Icons/LineToolIcon.js";
|
|
34
|
+
import "./Icons/LineToolIcon2.js";
|
|
31
35
|
import "./Icons/LiveViewIcon.js";
|
|
32
36
|
import "./Icons/LoaderIcon.js";
|
|
33
37
|
import "./Icons/LocationIcon.js";
|
|
34
38
|
import "./Icons/LogoutIcon.js";
|
|
39
|
+
import "./Icons/MessagesIcon.js";
|
|
35
40
|
import "./Icons/MetadataIcon.js";
|
|
36
41
|
import "./Icons/MinusIcon.js";
|
|
37
42
|
import "./Icons/OntologyIcon.js";
|
|
@@ -40,8 +45,13 @@ import "./Icons/PanelIconOpen.js";
|
|
|
40
45
|
import "./Icons/PlayIcon.js";
|
|
41
46
|
import "./Icons/PlusIcon.js";
|
|
42
47
|
import "./Icons/ResetIcon.js";
|
|
48
|
+
import "./Icons/ReviewedIcon.js";
|
|
43
49
|
import "./Icons/ScissorsIcon.js";
|
|
44
50
|
import "./Icons/SettingsIcon.js";
|
|
51
|
+
import "./Icons/SortAscendingIcon.js";
|
|
52
|
+
import "./Icons/SortDescendingIcon.js";
|
|
53
|
+
import "./Icons/StackIcon.js";
|
|
54
|
+
import "./Icons/StarIcon.js";
|
|
45
55
|
import "./Icons/TrashIcon.js";
|
|
46
56
|
import "./Icons/UndoIcon.js";
|
|
47
57
|
import "./Icons/UserIcon.js";
|
|
@@ -49,10 +59,10 @@ import { WarningIcon as E } from "./Icons/WarningIcon.js";
|
|
|
49
59
|
import "./Icons/ZoomAllIcon.js";
|
|
50
60
|
import "./Icons/ZoomXIcon.js";
|
|
51
61
|
import "./Icons/ZoomYIcon.js";
|
|
52
|
-
import {
|
|
62
|
+
import { cn as g } from "./utils/twUtils.js";
|
|
53
63
|
import { useRef as x, useEffect as R } from "react";
|
|
54
|
-
const
|
|
55
|
-
const t = x(null),
|
|
64
|
+
const Vr = ({ id: a, description: s, onClose: c, icon: l, title: d, className: u, variant: o = "default" }) => {
|
|
65
|
+
const t = x(null), i = l || {
|
|
56
66
|
info: /* @__PURE__ */ r(C, {}),
|
|
57
67
|
success: /* @__PURE__ */ r(A, {}),
|
|
58
68
|
warning: /* @__PURE__ */ r(E, {}),
|
|
@@ -60,19 +70,19 @@ const Rr = ({ id: a, description: s, onClose: c, icon: l, title: d, className: u
|
|
|
60
70
|
default: null
|
|
61
71
|
}[o];
|
|
62
72
|
R(() => {
|
|
63
|
-
const
|
|
64
|
-
|
|
73
|
+
const p = (n) => {
|
|
74
|
+
n.key === "Escape" && t.current && (n.preventDefault(), e());
|
|
65
75
|
};
|
|
66
|
-
return document.addEventListener("keydown",
|
|
67
|
-
document.removeEventListener("keydown",
|
|
76
|
+
return document.addEventListener("keydown", p), () => {
|
|
77
|
+
document.removeEventListener("keydown", p);
|
|
68
78
|
};
|
|
69
79
|
}, []);
|
|
70
|
-
const
|
|
80
|
+
const e = () => {
|
|
71
81
|
t.current && (t.current.style.opacity = "0", setTimeout(() => {
|
|
72
82
|
t.current && (t.current.style.display = "none"), c?.();
|
|
73
83
|
}, 300));
|
|
74
84
|
}, f = () => {
|
|
75
|
-
|
|
85
|
+
e();
|
|
76
86
|
}, h = (/* @__PURE__ */ new Set(["danger", "warning"])).has(o) ? "assertive" : "polite";
|
|
77
87
|
return /* @__PURE__ */ r(v, { children: /* @__PURE__ */ m(
|
|
78
88
|
w,
|
|
@@ -84,7 +94,7 @@ const Rr = ({ id: a, description: s, onClose: c, icon: l, title: d, className: u
|
|
|
84
94
|
"data-variant": o,
|
|
85
95
|
className: g("alert-wrapper tw-transition-opacity tw-duration-300 flex", u),
|
|
86
96
|
children: [
|
|
87
|
-
|
|
97
|
+
i && /* @__PURE__ */ r("div", { className: "icon-wrapper aria-hidden mr-2", children: i }),
|
|
88
98
|
/* @__PURE__ */ m("div", { className: "content-wrapper", children: [
|
|
89
99
|
/* @__PURE__ */ r(y, { children: d }),
|
|
90
100
|
/* @__PURE__ */ r(I, { children: s })
|
|
@@ -106,5 +116,5 @@ const Rr = ({ id: a, description: s, onClose: c, icon: l, title: d, className: u
|
|
|
106
116
|
) });
|
|
107
117
|
};
|
|
108
118
|
export {
|
|
109
|
-
|
|
119
|
+
Vr as Alert
|
|
110
120
|
};
|
package/dist/Avatar.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "./styles/main.css";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
-
import {
|
|
4
|
+
import { cn as i } from "./utils/twUtils.js";
|
|
5
5
|
import { useState as x, useEffect as g, isValidElement as w, cloneElement as u } from "react";
|
|
6
6
|
const y = {
|
|
7
7
|
small: "h-8 w-8",
|
package/dist/Badge.d.ts
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
export type BadgeProps = ComponentProps<'span'> & VariantProps<typeof badgeVariants> & {
|
|
4
|
+
asChild?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const badgeVariants: (props?: ({
|
|
7
|
+
variant?: "default" | "secondary" | "destructive" | "outline" | null | undefined;
|
|
8
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
|
+
export declare const Badge: ({ className, variant, asChild, ...props }: ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
|
|
10
|
+
asChild?: boolean;
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
3
13
|
//# sourceMappingURL=Badge.d.ts.map
|
package/dist/Badge.js
CHANGED
|
@@ -1,7 +1,31 @@
|
|
|
1
1
|
import "./styles/main.css";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import {
|
|
4
|
-
|
|
2
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
3
|
+
import { Slot as i } from "./primitives/slot.js";
|
|
4
|
+
import { cn as n } from "./utils/twUtils.js";
|
|
5
|
+
import { c as d } from "./index-D29mdTf5.js";
|
|
6
|
+
const s = d(
|
|
7
|
+
`inline-flex items-center justify-center rounded-sm px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none
|
|
8
|
+
focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-danger-200 aria-invalid:border-danger-200
|
|
9
|
+
transition-[color,box-shadow] overflow-hidden`,
|
|
10
|
+
{
|
|
11
|
+
variants: {
|
|
12
|
+
variant: {
|
|
13
|
+
default: "bg-badge-primary-bg text-text-primary [a&]:hover:bg-badge-primary-bg--hover group-data-[state=on]:bg-badge-primary-bg--active",
|
|
14
|
+
secondary: "bg-badge-secondary-bg text-badge-secondary-text [a&]:hover:bg-badge-secondary-bg--hover",
|
|
15
|
+
destructive: "bg-badge-destructive-bg text-text-primary [a&]:hover:bg-danger-400 focus-visible:ring-badge-destructive-border",
|
|
16
|
+
outline: "border border-badge-outline-border text-text-primary [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
defaultVariants: {
|
|
20
|
+
variant: "default"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
), m = ({
|
|
24
|
+
className: e,
|
|
25
|
+
variant: r,
|
|
26
|
+
asChild: a = !1,
|
|
27
|
+
...t
|
|
28
|
+
}) => /* @__PURE__ */ o(a ? i : "span", { "data-slot": "badge", className: n(s({ variant: r }), e), ...t });
|
|
5
29
|
export {
|
|
6
|
-
|
|
30
|
+
m as Badge
|
|
7
31
|
};
|
package/dist/Button.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { ButtonHTMLAttributes, MouseEvent, ReactNode } from 'react';
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "secondary" | "outline" | "primary" | "ghost" | null | undefined;
|
|
5
|
-
size?: "default" | "fullWidth" | null | undefined;
|
|
4
|
+
variant?: "secondary" | "outline" | "primary" | "ghost" | "card" | null | undefined;
|
|
5
|
+
size?: "default" | "card" | "fullWidth" | null | undefined;
|
|
6
6
|
state?: "default" | "error" | "loading" | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
8
|
export interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color'>, VariantProps<typeof buttonVariants> {
|
|
@@ -16,7 +16,7 @@ export interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement
|
|
|
16
16
|
readonly startIcon?: ReactNode;
|
|
17
17
|
readonly state?: 'default' | 'error' | 'loading';
|
|
18
18
|
readonly type?: 'button' | 'submit' | 'reset';
|
|
19
|
-
readonly variant?: 'primary' | 'secondary' | 'outline' | 'ghost';
|
|
19
|
+
readonly variant?: 'primary' | 'secondary' | 'outline' | 'ghost' | 'card';
|
|
20
20
|
}
|
|
21
21
|
export declare const Button: import('react').ForwardRefExoticComponent<ButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
22
22
|
export {};
|