@spear-ai/spectral 1.3.43 → 1.3.44
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 +142 -110
- package/dist/Alert.js +17 -12
- package/dist/Avatar.d.ts +2 -0
- package/dist/Avatar.js +1 -0
- package/dist/Button.js +24 -30
- package/dist/Dialog/DialogBase.d.ts +5 -5
- package/dist/Dialog/DialogBase.js +87 -86
- package/dist/Icons/CheckCircleIcon.d.ts +3 -0
- package/dist/Icons/CheckCircleIcon.js +29 -0
- package/dist/Icons/CheckSquareIcon.d.ts +3 -0
- package/dist/Icons/CheckSquareIcon.js +29 -0
- package/dist/Icons/ChevronDownIcon.d.ts +3 -0
- package/dist/Icons/ChevronDownIcon.js +28 -0
- package/dist/Icons/ChevronUpIcon.d.ts +3 -0
- package/dist/Icons/ChevronUpIcon.js +28 -0
- package/dist/Icons/{CheckIcon.d.ts → ErrorIcon.d.ts} +2 -2
- package/dist/Icons/ErrorIcon.js +30 -0
- package/dist/Icons/LoaderIcon.d.ts +3 -0
- package/dist/Icons/LoaderIcon.js +53 -0
- package/dist/Icons/index.d.ts +6 -1
- package/dist/Icons.js +82 -72
- package/dist/Input/InputUtils.d.ts +15 -0
- package/dist/Input/InputUtils.js +54 -0
- package/dist/Input.d.ts +24 -0
- package/dist/Input.js +170 -0
- package/dist/MultiSelect/MultiSelectBase.d.ts +34 -0
- package/dist/MultiSelect/MultiSelectBase.js +321 -0
- package/dist/MultiSelect/MutiSelect.d.ts +15 -0
- package/dist/MultiSelect/MutiSelect.js +30 -0
- package/dist/Popover.d.ts +1 -1
- package/dist/Popover.js +61 -59
- package/dist/RadioButtonGroup/RadioButtonGroupBase.js +18 -17
- package/dist/Select/SelectBase.d.ts +26 -0
- package/dist/Select/SelectBase.js +233 -0
- package/dist/Select.d.ts +50 -0
- package/dist/Select.js +136 -0
- package/dist/Textarea/TextareaUtils.d.ts +19 -0
- package/dist/Textarea/TextareaUtils.js +54 -0
- package/dist/Textarea.d.ts +17 -0
- package/dist/Textarea.js +160 -0
- package/dist/chevron-down-UbkgS76q.js +19 -0
- package/dist/components/Avatar/Avatar.d.ts +2 -0
- package/dist/components/Avatar/Avatar.d.ts.map +1 -0
- package/dist/components/Dialog/DialogBase.d.ts +5 -5
- package/dist/components/Dialog/DialogBase.d.ts.map +1 -1
- package/dist/components/Icons/CheckCircleIcon.d.ts +3 -0
- package/dist/components/Icons/CheckCircleIcon.d.ts.map +1 -0
- package/dist/components/Icons/CheckSquareIcon.d.ts +3 -0
- package/dist/components/Icons/CheckSquareIcon.d.ts.map +1 -0
- package/dist/components/Icons/ChevronDownIcon.d.ts +3 -0
- package/dist/components/Icons/ChevronDownIcon.d.ts.map +1 -0
- package/dist/components/Icons/ChevronUpIcon.d.ts +3 -0
- package/dist/components/Icons/ChevronUpIcon.d.ts.map +1 -0
- package/dist/components/Icons/{CheckIcon.d.ts → ErrorIcon.d.ts} +2 -2
- package/dist/components/Icons/ErrorIcon.d.ts.map +1 -0
- package/dist/components/Icons/LoaderIcon.d.ts +3 -0
- package/dist/components/Icons/LoaderIcon.d.ts.map +1 -0
- package/dist/components/Icons/index.d.ts +6 -1
- package/dist/components/Icons/index.d.ts.map +1 -1
- package/dist/components/Input/Input.d.ts +24 -0
- package/dist/components/Input/Input.d.ts.map +1 -0
- package/dist/components/Input/InputUtils.d.ts +15 -0
- package/dist/components/Input/InputUtils.d.ts.map +1 -0
- package/dist/components/MultiSelect/MultiSelectBase.d.ts +34 -0
- package/dist/components/MultiSelect/MultiSelectBase.d.ts.map +1 -0
- package/dist/components/MultiSelect/MutiSelect.d.ts +15 -0
- package/dist/components/MultiSelect/MutiSelect.d.ts.map +1 -0
- package/dist/components/Popover/Popover.d.ts +1 -1
- package/dist/components/Popover/Popover.d.ts.map +1 -1
- package/dist/components/RadioButtonGroup/RadioButtonGroupBase.d.ts.map +1 -1
- package/dist/components/Select/Select.d.ts +50 -0
- package/dist/components/Select/Select.d.ts.map +1 -0
- package/dist/components/Select/SelectBase.d.ts +26 -0
- package/dist/components/Select/SelectBase.d.ts.map +1 -0
- package/dist/components/Textarea/Textarea.d.ts +17 -0
- package/dist/components/Textarea/Textarea.d.ts.map +1 -0
- package/dist/components/Textarea/TextareaUtils.d.ts +19 -0
- package/dist/components/Textarea/TextareaUtils.d.ts.map +1 -0
- package/dist/features/LabelingTools.js +8 -3
- package/dist/features/SensorMetadata.js +12 -7
- package/dist/features/SettingsPopover.js +18 -13
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/loader-circle-CvdzOiQ_.js +11 -0
- package/dist/styles/base-colors.css +33 -33
- package/dist/styles/main.css +1 -1
- package/dist/utils/formFieldUtils.d.ts +70 -0
- package/dist/utils/formFieldUtils.d.ts.map +1 -0
- package/dist/utils/formFieldUtils.js +178 -0
- package/dist/x-BBpi7a_7.js +14 -0
- package/package.json +1 -1
- package/dist/Icons/CheckIcon.js +0 -29
- package/dist/components/Icons/CheckIcon.d.ts.map +0 -1
package/dist/.js
CHANGED
|
@@ -2,121 +2,153 @@ import { Alert as e } from "./Alert.js";
|
|
|
2
2
|
import { Badge as p } from "./Badge.js";
|
|
3
3
|
import { Button as m } from "./Button.js";
|
|
4
4
|
import { Drawer as x } from "./Drawer.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
5
|
+
import { Input as c } from "./Input.js";
|
|
6
|
+
import { Popover as a, PopoverContent as l, PopoverTrigger as i } from "./Popover.js";
|
|
7
|
+
import { RadioButtonGroup as C, RadioButtonGroupItem as d } from "./RadioButtonGroup.js";
|
|
8
|
+
import { RadioGroup as S, RadioGroupItem as T } from "./RadioGroup.js";
|
|
9
|
+
import { Skeleton as L } from "./Skeleton.js";
|
|
10
|
+
import { Slider as G } from "./Slider.js";
|
|
11
|
+
import { Switch as h } from "./Switch.js";
|
|
11
12
|
import { Toggle as y } from "./Toggle.js";
|
|
12
|
-
import { ToggleGroup as
|
|
13
|
-
import { Tooltip as
|
|
14
|
-
import { AnnotationsIcon as
|
|
15
|
-
import { CalendarIcon as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
13
|
+
import { ToggleGroup as w, ToggleGroupItem as B } from "./ToggleGroup.js";
|
|
14
|
+
import { Tooltip as R, TooltipContent as Z, TooltipTrigger as k } from "./Tooltip.js";
|
|
15
|
+
import { AnnotationsIcon as _ } from "./Icons/AnnotationsIcon.js";
|
|
16
|
+
import { CalendarIcon as b } from "./Icons/CalendarIcon.js";
|
|
17
|
+
import { CheckCircleIcon as U } from "./Icons/CheckCircleIcon.js";
|
|
18
|
+
import { CheckSquareIcon as X } from "./Icons/CheckSquareIcon.js";
|
|
19
|
+
import { ChevronDownIcon as H } from "./Icons/ChevronDownIcon.js";
|
|
20
|
+
import { ChevronUpIcon as W } from "./Icons/ChevronUpIcon.js";
|
|
21
|
+
import { ClockIcon as j } from "./Icons/ClockIcon.js";
|
|
22
|
+
import { CloseCircleIcon as J } from "./Icons/CloseCircleIcon.js";
|
|
23
|
+
import { CloseIcon as $ } from "./Icons/CloseIcon.js";
|
|
24
|
+
import { DashboardIcon as ro } from "./Icons/DashboardIcon.js";
|
|
25
|
+
import { DeleteIcon as to } from "./Icons/DeleteIcon.js";
|
|
26
|
+
import { DurationIcon as no } from "./Icons/DurationIcon.js";
|
|
27
|
+
import { EraserIcon as fo } from "./Icons/EraserIcon.js";
|
|
28
|
+
import { ErrorIcon as Io } from "./Icons/ErrorIcon.js";
|
|
29
|
+
import { EyeClosedIcon as so } from "./Icons/EyeClosedIcon.js";
|
|
30
|
+
import { EyeClosedIcon2 as lo } from "./Icons/EyeClosedIcon2.js";
|
|
31
|
+
import { EyeOpenIcon as go } from "./Icons/EyeOpenIcon.js";
|
|
32
|
+
import { GoToFirstIcon as uo } from "./Icons/GoToFirstIcon.js";
|
|
33
|
+
import { GoToLastIcon as To } from "./Icons/GoToLastIcon.js";
|
|
34
|
+
import { HarmonicCursorsIcon as Lo } from "./Icons/HarmonicCursorsIcon.js";
|
|
35
|
+
import { InfoIcon as Go } from "./Icons/InfoIcon.js";
|
|
36
|
+
import { LabelIcon as ho } from "./Icons/LabelIcon.js";
|
|
37
|
+
import { LassoIcon as yo } from "./Icons/LassoIcon.js";
|
|
38
|
+
import { LineToolIcon as wo } from "./Icons/LineToolIcon.js";
|
|
39
|
+
import { LiveViewIcon as Do } from "./Icons/LiveViewIcon.js";
|
|
40
|
+
import { LoaderIcon as Zo } from "./Icons/LoaderIcon.js";
|
|
41
|
+
import { LocationIcon as Ao } from "./Icons/LocationIcon.js";
|
|
42
|
+
import { LogoutIcon as No } from "./Icons/LogoutIcon.js";
|
|
43
|
+
import { MetadataIcon as Mo } from "./Icons/MetadataIcon.js";
|
|
44
|
+
import { OntologyIcon as Vo } from "./Icons/OntologyIcon.js";
|
|
45
|
+
import { PanelIcon as qo } from "./Icons/PanelIcon.js";
|
|
46
|
+
import { PlayIcon as Ko } from "./Icons/PlayIcon.js";
|
|
47
|
+
import { PlusIcon as Yo } from "./Icons/PlusIcon.js";
|
|
48
|
+
import { ResetIcon as zo } from "./Icons/ResetIcon.js";
|
|
49
|
+
import { ScissorsIcon as Qo } from "./Icons/ScissorsIcon.js";
|
|
50
|
+
import { SettingsIcon as or } from "./Icons/SettingsIcon.js";
|
|
51
|
+
import { TrashIcon as er } from "./Icons/TrashIcon.js";
|
|
52
|
+
import { UndoIcon as pr } from "./Icons/UndoIcon.js";
|
|
53
|
+
import { UserIcon as mr } from "./Icons/UserIcon.js";
|
|
54
|
+
import { WarningIcon as xr } from "./Icons/WarningIcon.js";
|
|
55
|
+
import { ZoomAllIcon as cr } from "./Icons/ZoomAllIcon.js";
|
|
56
|
+
import { ZoomXIcon as ar } from "./Icons/ZoomXIcon.js";
|
|
57
|
+
import { ZoomYIcon as ir } from "./Icons/ZoomYIcon.js";
|
|
58
|
+
import { default as Cr, SvgIdContext as dr } from "./Icons/IconBase.js";
|
|
59
|
+
import { useTheme as Sr } from "./hooks/useTheme.js";
|
|
60
|
+
import { EmptyState as Er, ErrorMessage as Lr, ICON_SIZE as vr, LARGE_ICON_SIZE as Gr, LoadingState as Pr, XL_ICON_SIZE as hr, getAriaProps as Or, getBaseTriggerClasses as yr, getDropdownClasses as Fr, getErrorMessageId as wr, getFormFieldCSSProperties as Br, getInputClasses as Dr, getOptionClasses as Rr, getStateClasses as Zr, getTextareaClasses as kr, groupOptions as Ar, scrollIntoView as _r, useClickOutside as Nr, useFormFieldId as br, useFormFieldState as Mr, useKeyboardNavigation as Ur } from "./utils/formFieldUtils.js";
|
|
61
|
+
import { c as Xr } from "./twUtils-CRiPKpXj.js";
|
|
62
|
+
import { SpectralProvider as Hr } from "./SpectralProvider.js";
|
|
57
63
|
export {
|
|
58
64
|
e as Alert,
|
|
59
|
-
|
|
65
|
+
_ as AnnotationsIcon,
|
|
60
66
|
p as Badge,
|
|
61
67
|
m as Button,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
68
|
+
b as CalendarIcon,
|
|
69
|
+
U as CheckCircleIcon,
|
|
70
|
+
X as CheckSquareIcon,
|
|
71
|
+
H as ChevronDownIcon,
|
|
72
|
+
W as ChevronUpIcon,
|
|
73
|
+
j as ClockIcon,
|
|
74
|
+
J as CloseCircleIcon,
|
|
75
|
+
$ as CloseIcon,
|
|
76
|
+
ro as DashboardIcon,
|
|
77
|
+
to as DeleteIcon,
|
|
69
78
|
x as Drawer,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
wo as
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
79
|
+
no as DurationIcon,
|
|
80
|
+
Er as EmptyState,
|
|
81
|
+
fo as EraserIcon,
|
|
82
|
+
Io as ErrorIcon,
|
|
83
|
+
Lr as ErrorMessage,
|
|
84
|
+
so as EyeClosedIcon,
|
|
85
|
+
lo as EyeClosedIcon2,
|
|
86
|
+
go as EyeOpenIcon,
|
|
87
|
+
uo as GoToFirstIcon,
|
|
88
|
+
To as GoToLastIcon,
|
|
89
|
+
Lo as HarmonicCursorsIcon,
|
|
90
|
+
vr as ICON_SIZE,
|
|
91
|
+
Cr as IconBase,
|
|
92
|
+
Go as InfoIcon,
|
|
93
|
+
c as Input,
|
|
94
|
+
Gr as LARGE_ICON_SIZE,
|
|
95
|
+
ho as LabelIcon,
|
|
96
|
+
yo as LassoIcon,
|
|
97
|
+
wo as LineToolIcon,
|
|
98
|
+
Do as LiveViewIcon,
|
|
99
|
+
Zo as LoaderIcon,
|
|
100
|
+
Pr as LoadingState,
|
|
101
|
+
Ao as LocationIcon,
|
|
102
|
+
No as LogoutIcon,
|
|
103
|
+
Mo as MetadataIcon,
|
|
104
|
+
Vo as OntologyIcon,
|
|
105
|
+
qo as PanelIcon,
|
|
106
|
+
Ko as PlayIcon,
|
|
107
|
+
Yo as PlusIcon,
|
|
108
|
+
a as Popover,
|
|
109
|
+
l as PopoverContent,
|
|
110
|
+
i as PopoverTrigger,
|
|
111
|
+
C as RadioButtonGroup,
|
|
112
|
+
d as RadioButtonGroupItem,
|
|
113
|
+
S as RadioGroup,
|
|
114
|
+
T as RadioGroupItem,
|
|
115
|
+
zo as ResetIcon,
|
|
116
|
+
Qo as ScissorsIcon,
|
|
117
|
+
or as SettingsIcon,
|
|
118
|
+
L as Skeleton,
|
|
119
|
+
G as Slider,
|
|
120
|
+
Hr as SpectralProvider,
|
|
121
|
+
dr as SvgIdContext,
|
|
122
|
+
h as Switch,
|
|
106
123
|
y as Toggle,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
124
|
+
w as ToggleGroup,
|
|
125
|
+
B as ToggleGroupItem,
|
|
126
|
+
R as Tooltip,
|
|
127
|
+
Z as TooltipContent,
|
|
128
|
+
k as TooltipTrigger,
|
|
129
|
+
er as TrashIcon,
|
|
130
|
+
pr as UndoIcon,
|
|
131
|
+
mr as UserIcon,
|
|
132
|
+
xr as WarningIcon,
|
|
133
|
+
hr as XL_ICON_SIZE,
|
|
134
|
+
cr as ZoomAllIcon,
|
|
135
|
+
ar as ZoomXIcon,
|
|
136
|
+
ir as ZoomYIcon,
|
|
137
|
+
Xr as cn,
|
|
138
|
+
Or as getAriaProps,
|
|
139
|
+
yr as getBaseTriggerClasses,
|
|
140
|
+
Fr as getDropdownClasses,
|
|
141
|
+
wr as getErrorMessageId,
|
|
142
|
+
Br as getFormFieldCSSProperties,
|
|
143
|
+
Dr as getInputClasses,
|
|
144
|
+
Rr as getOptionClasses,
|
|
145
|
+
Zr as getStateClasses,
|
|
146
|
+
kr as getTextareaClasses,
|
|
147
|
+
Ar as groupOptions,
|
|
148
|
+
_r as scrollIntoView,
|
|
149
|
+
Nr as useClickOutside,
|
|
150
|
+
br as useFormFieldId,
|
|
151
|
+
Mr as useFormFieldState,
|
|
152
|
+
Ur as useKeyboardNavigation,
|
|
153
|
+
Sr as useTheme
|
|
122
154
|
};
|
package/dist/Alert.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import "./styles/main.css";
|
|
2
|
-
import { jsx as r, jsxs as
|
|
2
|
+
import { jsx as r, jsxs as n } from "react/jsx-runtime";
|
|
3
3
|
import { AlertPortal as h, AlertBase as w, AlertTitle as v, AlertDescription as I } from "./Alert/AlertBase.js";
|
|
4
4
|
import "./Icons/AnnotationsIcon.js";
|
|
5
5
|
import "./Icons/CalendarIcon.js";
|
|
6
|
-
import
|
|
6
|
+
import "./Icons/CheckCircleIcon.js";
|
|
7
|
+
import { CheckSquareIcon as y } from "./Icons/CheckSquareIcon.js";
|
|
8
|
+
import "./Icons/ChevronDownIcon.js";
|
|
9
|
+
import "./Icons/ChevronUpIcon.js";
|
|
7
10
|
import "./Icons/ClockIcon.js";
|
|
8
11
|
import { CloseCircleIcon as A } from "./Icons/CloseCircleIcon.js";
|
|
9
12
|
import { CloseIcon as b } from "./Icons/CloseIcon.js";
|
|
@@ -11,6 +14,7 @@ import "./Icons/DashboardIcon.js";
|
|
|
11
14
|
import "./Icons/DeleteIcon.js";
|
|
12
15
|
import "./Icons/DurationIcon.js";
|
|
13
16
|
import "./Icons/EraserIcon.js";
|
|
17
|
+
import "./Icons/ErrorIcon.js";
|
|
14
18
|
import "./Icons/EyeClosedIcon.js";
|
|
15
19
|
import "./Icons/EyeClosedIcon2.js";
|
|
16
20
|
import "./Icons/EyeOpenIcon.js";
|
|
@@ -22,6 +26,7 @@ import "./Icons/LabelIcon.js";
|
|
|
22
26
|
import "./Icons/LassoIcon.js";
|
|
23
27
|
import "./Icons/LineToolIcon.js";
|
|
24
28
|
import "./Icons/LiveViewIcon.js";
|
|
29
|
+
import "./Icons/LoaderIcon.js";
|
|
25
30
|
import "./Icons/LocationIcon.js";
|
|
26
31
|
import "./Icons/LogoutIcon.js";
|
|
27
32
|
import "./Icons/MetadataIcon.js";
|
|
@@ -42,28 +47,28 @@ import "./Icons/ZoomYIcon.js";
|
|
|
42
47
|
import { SpectralProvider as C } from "./SpectralProvider.js";
|
|
43
48
|
import { c as x } from "./twUtils-CRiPKpXj.js";
|
|
44
49
|
import "react";
|
|
45
|
-
const
|
|
46
|
-
const e =
|
|
50
|
+
const Nr = ({ id: a, description: m, onClose: s, icon: l, title: c, className: d, variant: i = "default" }) => {
|
|
51
|
+
const e = l || {
|
|
47
52
|
info: /* @__PURE__ */ r(N, {}),
|
|
48
53
|
success: /* @__PURE__ */ r(y, {}),
|
|
49
54
|
warning: /* @__PURE__ */ r(T, {}),
|
|
50
55
|
danger: /* @__PURE__ */ r(A, {}),
|
|
51
56
|
default: null
|
|
52
|
-
}[i],
|
|
57
|
+
}[i], p = (t) => {
|
|
53
58
|
t.style.opacity = "0", setTimeout(() => {
|
|
54
|
-
t.style.display = "none",
|
|
59
|
+
t.style.display = "none", s?.();
|
|
55
60
|
}, 300);
|
|
56
61
|
}, f = (t) => {
|
|
57
62
|
const o = t.currentTarget.closest(".alert-wrapper");
|
|
58
|
-
o &&
|
|
63
|
+
o && p(o);
|
|
59
64
|
}, u = (t) => {
|
|
60
65
|
if (t.key === "Enter" || t.key === " ") {
|
|
61
66
|
t.preventDefault();
|
|
62
67
|
const o = t.currentTarget.closest(".alert-wrapper");
|
|
63
|
-
o &&
|
|
68
|
+
o && p(o);
|
|
64
69
|
}
|
|
65
70
|
}, g = (/* @__PURE__ */ new Set(["danger", "warning"])).has(i) ? "assertive" : "polite";
|
|
66
|
-
return /* @__PURE__ */ r(C, { children: /* @__PURE__ */ r(h, { children: /* @__PURE__ */
|
|
71
|
+
return /* @__PURE__ */ r(C, { children: /* @__PURE__ */ r(h, { children: /* @__PURE__ */ n(
|
|
67
72
|
w,
|
|
68
73
|
{
|
|
69
74
|
id: a,
|
|
@@ -73,9 +78,9 @@ const vr = ({ id: a, description: s, onClose: l, icon: m, title: c, className: d
|
|
|
73
78
|
className: x("alert-wrapper tw-transition-opacity tw-duration-300 flex", d),
|
|
74
79
|
children: [
|
|
75
80
|
e && /* @__PURE__ */ r("div", { className: "icon-wrapper mr-2", children: e }),
|
|
76
|
-
/* @__PURE__ */
|
|
81
|
+
/* @__PURE__ */ n("div", { className: "content-wrapper", children: [
|
|
77
82
|
/* @__PURE__ */ r(v, { children: c }),
|
|
78
|
-
/* @__PURE__ */ r(I, { children:
|
|
83
|
+
/* @__PURE__ */ r(I, { children: m })
|
|
79
84
|
] }),
|
|
80
85
|
/* @__PURE__ */ r("div", { className: "close-icon-wrapper focus-visible:ring-ring absolute top-2 right-2 cursor-pointer outline-transparent focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-none", children: /* @__PURE__ */ r(
|
|
81
86
|
b,
|
|
@@ -93,5 +98,5 @@ const vr = ({ id: a, description: s, onClose: l, icon: m, title: c, className: d
|
|
|
93
98
|
) }) });
|
|
94
99
|
};
|
|
95
100
|
export {
|
|
96
|
-
|
|
101
|
+
Nr as Alert
|
|
97
102
|
};
|
package/dist/Avatar.d.ts
ADDED
package/dist/Avatar.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/dist/Button.js
CHANGED
|
@@ -4,14 +4,8 @@ import { jsxs as l, jsx as n } from "react/jsx-runtime";
|
|
|
4
4
|
import { c as u } from "./twUtils-CRiPKpXj.js";
|
|
5
5
|
import { c as v } from "./index-CRBC94ik.js";
|
|
6
6
|
import { forwardRef as h } from "react";
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
* @license lucide-react v0.542.0 - ISC
|
|
10
|
-
*
|
|
11
|
-
* This source code is licensed under the ISC license.
|
|
12
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
13
|
-
*/
|
|
14
|
-
const w = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], _ = N("loader-circle", w), j = v(
|
|
7
|
+
import { L as N } from "./loader-circle-CvdzOiQ_.js";
|
|
8
|
+
const w = v(
|
|
15
9
|
`
|
|
16
10
|
!font-sans flex relative items-center justify-center gap-2 whitespace-nowrap transition-colors cursor-pointer rounded-lg border font-semibold disabled:pointer-events-none
|
|
17
11
|
focus:outline-none focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0
|
|
@@ -41,18 +35,18 @@ const w = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], _ = N
|
|
|
41
35
|
size: "default"
|
|
42
36
|
}
|
|
43
37
|
}
|
|
44
|
-
),
|
|
38
|
+
), j = h(
|
|
45
39
|
({
|
|
46
|
-
className:
|
|
47
|
-
variant:
|
|
48
|
-
label:
|
|
49
|
-
endIcon:
|
|
40
|
+
className: g,
|
|
41
|
+
variant: r,
|
|
42
|
+
label: o,
|
|
43
|
+
endIcon: i,
|
|
50
44
|
state: t,
|
|
51
|
-
errorMessage:
|
|
52
|
-
startIcon:
|
|
45
|
+
errorMessage: a,
|
|
46
|
+
startIcon: d,
|
|
53
47
|
disabled: s,
|
|
54
|
-
type:
|
|
55
|
-
dataTestId:
|
|
48
|
+
type: p = "button",
|
|
49
|
+
dataTestId: c = `button-${r}`,
|
|
56
50
|
size: e,
|
|
57
51
|
children: x,
|
|
58
52
|
...m
|
|
@@ -71,11 +65,11 @@ const w = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], _ = N
|
|
|
71
65
|
ghost: "bg-transparent text-button-ghost-text--disabled pointer-events-none"
|
|
72
66
|
}
|
|
73
67
|
}, f = u(
|
|
74
|
-
|
|
75
|
-
t === "error" && b.error[
|
|
76
|
-
t === "loading" && b.loading[
|
|
68
|
+
w({ variant: r, state: t, size: e }),
|
|
69
|
+
t === "error" && b.error[r || "primary"],
|
|
70
|
+
t === "loading" && b.loading[r || "primary"],
|
|
77
71
|
e,
|
|
78
|
-
|
|
72
|
+
g
|
|
79
73
|
);
|
|
80
74
|
return /* @__PURE__ */ l("div", { className: u("flex flex-col justify-items-center", e), children: [
|
|
81
75
|
/* @__PURE__ */ l(
|
|
@@ -83,26 +77,26 @@ const w = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], _ = N
|
|
|
83
77
|
{
|
|
84
78
|
className: f,
|
|
85
79
|
ref: y,
|
|
86
|
-
type:
|
|
80
|
+
type: p,
|
|
87
81
|
"aria-disabled": s,
|
|
88
82
|
disabled: s,
|
|
89
|
-
"data-testid":
|
|
83
|
+
"data-testid": c,
|
|
90
84
|
...m,
|
|
91
85
|
"data-state": t,
|
|
92
86
|
children: [
|
|
93
|
-
|
|
94
|
-
e === "icon" ? /* @__PURE__ */ n("span", { className: "sr-only", children:
|
|
95
|
-
t === "loading" && /* @__PURE__ */ n(
|
|
96
|
-
|
|
87
|
+
d && /* @__PURE__ */ n("span", { className: "flex pr-2", "aria-hidden": !0, children: d }),
|
|
88
|
+
e === "icon" ? /* @__PURE__ */ n("span", { className: "sr-only", children: o }) : o,
|
|
89
|
+
t === "loading" && /* @__PURE__ */ n(N, { className: "ml-2 animate-spin", size: 16 }),
|
|
90
|
+
i && t !== "loading" && /* @__PURE__ */ n("span", { className: "flex pl-2", "aria-hidden": !0, children: i }),
|
|
97
91
|
e === "icon" && x
|
|
98
92
|
]
|
|
99
93
|
}
|
|
100
94
|
),
|
|
101
|
-
t === "error" &&
|
|
95
|
+
t === "error" && a && /* @__PURE__ */ n("p", { className: "text-danger-100 mt-2 text-xs", role: "alert", "aria-live": "assertive", children: a })
|
|
102
96
|
] });
|
|
103
97
|
}
|
|
104
98
|
);
|
|
105
|
-
|
|
99
|
+
j.displayName = "Button";
|
|
106
100
|
export {
|
|
107
|
-
|
|
101
|
+
j as Button
|
|
108
102
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { ReactElement, ReactNode } from 'react';
|
|
3
3
|
export type DialogBaseProps = {
|
|
4
|
-
|
|
4
|
+
isOpen?: boolean;
|
|
5
5
|
defaultOpen?: boolean;
|
|
6
|
-
onOpenChange?: (
|
|
6
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
7
7
|
children: ReactNode;
|
|
8
8
|
};
|
|
9
9
|
export type DialogContextValue = {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
isOpen: boolean;
|
|
11
|
+
setIsOpen: (isOpen: boolean) => void;
|
|
12
12
|
contentId: string;
|
|
13
13
|
titleId: string;
|
|
14
14
|
descriptionId: string;
|
|
@@ -17,7 +17,7 @@ export type TriggerableElement = ReactElement<{
|
|
|
17
17
|
onClick?: () => void;
|
|
18
18
|
}>;
|
|
19
19
|
export declare function useDialogContext(): DialogContextValue;
|
|
20
|
-
export declare function DialogBase({
|
|
20
|
+
export declare function DialogBase({ isOpen: controlledOpen, defaultOpen, onOpenChange, children }: DialogBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
21
21
|
type DialogTriggerProps = {
|
|
22
22
|
children: ReactNode;
|
|
23
23
|
asChild?: boolean;
|