@spear-ai/spectral 1.3.42 → 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 +152 -106
- package/dist/Accordion/AccordionBase.d.ts +8 -8
- package/dist/Alert/AlertBase.d.ts +14 -0
- package/dist/Alert/AlertBase.js +63 -0
- package/dist/Alert.d.ts +12 -0
- package/dist/Alert.js +102 -0
- package/dist/Avatar.d.ts +2 -0
- package/dist/Avatar.js +1 -0
- package/dist/Badge/BadgeBase.d.ts +1 -1
- package/dist/Button.d.ts +2 -2
- package/dist/Button.js +24 -30
- package/dist/Checkbox/CheckboxBase.d.ts +5 -5
- package/dist/Dialog/DialogBase.d.ts +7 -7
- package/dist/Dialog/DialogBase.js +87 -86
- package/dist/Dialog.d.ts +1 -1
- package/dist/Drawer.d.ts +1 -1
- package/dist/Drawer.js +141 -139
- package/dist/Icons/AnnotationsIcon.d.ts +1 -1
- package/dist/Icons/AnnotationsIcon.js +8 -7
- package/dist/Icons/CalendarIcon.d.ts +1 -1
- package/dist/Icons/CalendarIcon.js +9 -8
- 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/ClockIcon.d.ts +1 -1
- package/dist/Icons/ClockIcon.js +9 -8
- package/dist/Icons/CloseCircleIcon.d.ts +3 -0
- package/dist/Icons/CloseCircleIcon.js +29 -0
- package/dist/Icons/CloseIcon.d.ts +3 -0
- package/dist/Icons/CloseIcon.js +28 -0
- package/dist/Icons/DashboardIcon.d.ts +1 -1
- package/dist/Icons/DashboardIcon.js +9 -8
- package/dist/Icons/DeleteIcon.d.ts +1 -1
- package/dist/Icons/DeleteIcon.js +9 -8
- package/dist/Icons/DurationIcon.d.ts +1 -1
- package/dist/Icons/DurationIcon.js +9 -8
- package/dist/Icons/EraserIcon.d.ts +1 -1
- package/dist/Icons/EraserIcon.js +9 -8
- package/dist/Icons/ErrorIcon.d.ts +3 -0
- package/dist/Icons/ErrorIcon.js +30 -0
- package/dist/Icons/EyeClosedIcon.d.ts +3 -0
- package/dist/Icons/EyeClosedIcon.js +32 -0
- package/dist/Icons/EyeClosedIcon2.d.ts +3 -0
- package/dist/Icons/EyeClosedIcon2.js +30 -0
- package/dist/Icons/EyeOpenIcon.d.ts +3 -0
- package/dist/Icons/EyeOpenIcon.js +28 -0
- package/dist/Icons/GoToFirstIcon.d.ts +1 -1
- package/dist/Icons/GoToFirstIcon.js +9 -8
- package/dist/Icons/GoToLastIcon.d.ts +1 -1
- package/dist/Icons/GoToLastIcon.js +9 -8
- package/dist/Icons/HarmonicCursorsIcon.d.ts +1 -1
- package/dist/Icons/HarmonicCursorsIcon.js +9 -8
- package/dist/Icons/IconBase.d.ts +3 -3
- package/dist/Icons/InfoIcon.d.ts +1 -1
- package/dist/Icons/InfoIcon.js +9 -8
- package/dist/Icons/LabelIcon.d.ts +1 -1
- package/dist/Icons/LabelIcon.js +8 -7
- package/dist/Icons/LassoIcon.d.ts +1 -1
- package/dist/Icons/LassoIcon.js +9 -8
- package/dist/Icons/LineToolIcon.d.ts +1 -1
- package/dist/Icons/LineToolIcon.js +9 -8
- package/dist/Icons/LiveViewIcon.d.ts +1 -1
- package/dist/Icons/LiveViewIcon.js +9 -8
- package/dist/Icons/LoaderIcon.d.ts +3 -0
- package/dist/Icons/LoaderIcon.js +53 -0
- package/dist/Icons/LocationIcon.d.ts +1 -1
- package/dist/Icons/LocationIcon.js +9 -8
- package/dist/Icons/LogoutIcon.d.ts +1 -1
- package/dist/Icons/LogoutIcon.js +8 -7
- package/dist/Icons/MetadataIcon.d.ts +1 -1
- package/dist/Icons/MetadataIcon.js +8 -7
- package/dist/Icons/OntologyIcon.d.ts +1 -1
- package/dist/Icons/OntologyIcon.js +9 -8
- package/dist/Icons/PanelIcon.d.ts +1 -1
- package/dist/Icons/PanelIcon.js +9 -8
- package/dist/Icons/PlayIcon.d.ts +1 -1
- package/dist/Icons/PlayIcon.js +8 -7
- package/dist/Icons/PlusIcon.d.ts +1 -1
- package/dist/Icons/PlusIcon.js +8 -7
- package/dist/Icons/ResetIcon.d.ts +1 -1
- package/dist/Icons/ResetIcon.js +8 -7
- package/dist/Icons/ScissorsIcon.d.ts +1 -1
- package/dist/Icons/ScissorsIcon.js +9 -8
- package/dist/Icons/SettingsIcon.d.ts +1 -1
- package/dist/Icons/SettingsIcon.js +9 -8
- package/dist/Icons/TrashIcon.d.ts +1 -1
- package/dist/Icons/TrashIcon.js +8 -7
- package/dist/Icons/UndoIcon.d.ts +1 -1
- package/dist/Icons/UndoIcon.js +8 -7
- package/dist/Icons/UserIcon.d.ts +1 -1
- package/dist/Icons/UserIcon.js +8 -7
- package/dist/Icons/WarningIcon.d.ts +1 -1
- package/dist/Icons/WarningIcon.js +8 -7
- package/dist/Icons/ZoomAllIcon.d.ts +1 -1
- package/dist/Icons/ZoomAllIcon.js +9 -8
- package/dist/Icons/ZoomXIcon.d.ts +1 -1
- package/dist/Icons/ZoomXIcon.js +9 -8
- package/dist/Icons/ZoomYIcon.d.ts +1 -1
- package/dist/Icons/ZoomYIcon.js +9 -8
- package/dist/Icons/index.d.ts +11 -0
- package/dist/Icons.js +82 -60
- 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/Label.d.ts +2 -2
- 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 +2 -2
- package/dist/Popover.js +61 -59
- package/dist/RadioButtonGroup/RadioButtonGroupBase.d.ts +5 -3
- package/dist/RadioButtonGroup/RadioButtonGroupBase.js +43 -40
- package/dist/RadioButtonGroup.d.ts +2 -2
- package/dist/RadioButtonGroup.js +6 -6
- package/dist/RadioGroup/RadioGroupBase.d.ts +7 -7
- package/dist/RadioGroup.d.ts +1 -1
- 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/Skeleton.d.ts +1 -1
- package/dist/Slider/SliderBase.d.ts +7 -7
- package/dist/SpectralProvider.d.ts +1 -1
- package/dist/Switch/SwitchBase.d.ts +4 -4
- package/dist/Switch.d.ts +2 -2
- 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/Toggle/ToggleBase.d.ts +5 -4
- package/dist/Toggle/ToggleBase.js +30 -28
- package/dist/Toggle.d.ts +2 -2
- package/dist/ToggleGroup/ToggleGroupBase.d.ts +2 -2
- package/dist/ToggleGroup.d.ts +3 -3
- package/dist/Tooltip/TooltipBase.d.ts +8 -8
- package/dist/Tooltip.d.ts +1 -1
- package/dist/chevron-down-UbkgS76q.js +19 -0
- package/dist/components/Accordion/AccordionBase.d.ts +8 -8
- package/dist/components/Alert/Alert.d.ts +12 -0
- package/dist/components/Alert/Alert.d.ts.map +1 -0
- package/dist/components/Alert/AlertBase.d.ts +14 -0
- package/dist/components/Alert/AlertBase.d.ts.map +1 -0
- package/dist/components/Avatar/Avatar.d.ts +2 -0
- package/dist/components/Avatar/Avatar.d.ts.map +1 -0
- package/dist/components/Badge/BadgeBase.d.ts +1 -1
- package/dist/components/Button/Button.d.ts +2 -2
- package/dist/components/Checkbox/CheckboxBase.d.ts +5 -5
- package/dist/components/Dialog/Dialog.d.ts +1 -1
- package/dist/components/Dialog/DialogBase.d.ts +7 -7
- package/dist/components/Dialog/DialogBase.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.d.ts +1 -1
- package/dist/components/Drawer/Drawer.d.ts.map +1 -1
- package/dist/components/Icons/AnnotationsIcon.d.ts +1 -1
- package/dist/components/Icons/AnnotationsIcon.d.ts.map +1 -1
- package/dist/components/Icons/CalendarIcon.d.ts +1 -1
- package/dist/components/Icons/CalendarIcon.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/ClockIcon.d.ts +1 -1
- package/dist/components/Icons/ClockIcon.d.ts.map +1 -1
- package/dist/components/Icons/CloseCircleIcon.d.ts +3 -0
- package/dist/components/Icons/CloseCircleIcon.d.ts.map +1 -0
- package/dist/components/Icons/CloseIcon.d.ts +3 -0
- package/dist/components/Icons/CloseIcon.d.ts.map +1 -0
- package/dist/components/Icons/DashboardIcon.d.ts +1 -1
- package/dist/components/Icons/DashboardIcon.d.ts.map +1 -1
- package/dist/components/Icons/DeleteIcon.d.ts +1 -1
- package/dist/components/Icons/DeleteIcon.d.ts.map +1 -1
- package/dist/components/Icons/DurationIcon.d.ts +1 -1
- package/dist/components/Icons/DurationIcon.d.ts.map +1 -1
- package/dist/components/Icons/EraserIcon.d.ts +1 -1
- package/dist/components/Icons/EraserIcon.d.ts.map +1 -1
- package/dist/components/Icons/ErrorIcon.d.ts +3 -0
- package/dist/components/Icons/ErrorIcon.d.ts.map +1 -0
- package/dist/components/Icons/EyeClosedIcon.d.ts +3 -0
- package/dist/components/Icons/EyeClosedIcon.d.ts.map +1 -0
- package/dist/components/Icons/EyeClosedIcon2.d.ts +3 -0
- package/dist/components/Icons/EyeClosedIcon2.d.ts.map +1 -0
- package/dist/components/Icons/EyeOpenIcon.d.ts +3 -0
- package/dist/components/Icons/EyeOpenIcon.d.ts.map +1 -0
- package/dist/components/Icons/GoToFirstIcon.d.ts +1 -1
- package/dist/components/Icons/GoToFirstIcon.d.ts.map +1 -1
- package/dist/components/Icons/GoToLastIcon.d.ts +1 -1
- package/dist/components/Icons/GoToLastIcon.d.ts.map +1 -1
- package/dist/components/Icons/HarmonicCursorsIcon.d.ts +1 -1
- package/dist/components/Icons/HarmonicCursorsIcon.d.ts.map +1 -1
- package/dist/components/Icons/IconBase.d.ts +3 -3
- package/dist/components/Icons/InfoIcon.d.ts +1 -1
- package/dist/components/Icons/InfoIcon.d.ts.map +1 -1
- package/dist/components/Icons/LabelIcon.d.ts +1 -1
- package/dist/components/Icons/LabelIcon.d.ts.map +1 -1
- package/dist/components/Icons/LassoIcon.d.ts +1 -1
- package/dist/components/Icons/LassoIcon.d.ts.map +1 -1
- package/dist/components/Icons/LineToolIcon.d.ts +1 -1
- package/dist/components/Icons/LineToolIcon.d.ts.map +1 -1
- package/dist/components/Icons/LiveViewIcon.d.ts +1 -1
- package/dist/components/Icons/LiveViewIcon.d.ts.map +1 -1
- package/dist/components/Icons/LoaderIcon.d.ts +3 -0
- package/dist/components/Icons/LoaderIcon.d.ts.map +1 -0
- package/dist/components/Icons/LocationIcon.d.ts +1 -1
- package/dist/components/Icons/LocationIcon.d.ts.map +1 -1
- package/dist/components/Icons/LogoutIcon.d.ts +1 -1
- package/dist/components/Icons/LogoutIcon.d.ts.map +1 -1
- package/dist/components/Icons/MetadataIcon.d.ts +1 -1
- package/dist/components/Icons/MetadataIcon.d.ts.map +1 -1
- package/dist/components/Icons/OntologyIcon.d.ts +1 -1
- package/dist/components/Icons/OntologyIcon.d.ts.map +1 -1
- package/dist/components/Icons/PanelIcon.d.ts +1 -1
- package/dist/components/Icons/PanelIcon.d.ts.map +1 -1
- package/dist/components/Icons/PlayIcon.d.ts +1 -1
- package/dist/components/Icons/PlayIcon.d.ts.map +1 -1
- package/dist/components/Icons/PlusIcon.d.ts +1 -1
- package/dist/components/Icons/PlusIcon.d.ts.map +1 -1
- package/dist/components/Icons/ResetIcon.d.ts +1 -1
- package/dist/components/Icons/ResetIcon.d.ts.map +1 -1
- package/dist/components/Icons/ScissorsIcon.d.ts +1 -1
- package/dist/components/Icons/ScissorsIcon.d.ts.map +1 -1
- package/dist/components/Icons/SettingsIcon.d.ts +1 -1
- package/dist/components/Icons/SettingsIcon.d.ts.map +1 -1
- package/dist/components/Icons/TrashIcon.d.ts +1 -1
- package/dist/components/Icons/TrashIcon.d.ts.map +1 -1
- package/dist/components/Icons/UndoIcon.d.ts +1 -1
- package/dist/components/Icons/UndoIcon.d.ts.map +1 -1
- package/dist/components/Icons/UserIcon.d.ts +1 -1
- package/dist/components/Icons/UserIcon.d.ts.map +1 -1
- package/dist/components/Icons/WarningIcon.d.ts +1 -1
- package/dist/components/Icons/WarningIcon.d.ts.map +1 -1
- package/dist/components/Icons/ZoomAllIcon.d.ts +1 -1
- package/dist/components/Icons/ZoomAllIcon.d.ts.map +1 -1
- package/dist/components/Icons/ZoomXIcon.d.ts +1 -1
- package/dist/components/Icons/ZoomXIcon.d.ts.map +1 -1
- package/dist/components/Icons/ZoomYIcon.d.ts +1 -1
- package/dist/components/Icons/ZoomYIcon.d.ts.map +1 -1
- package/dist/components/Icons/iconTypes.d.ts +3 -3
- package/dist/components/Icons/iconTypes.d.ts.map +1 -1
- package/dist/components/Icons/index.d.ts +11 -0
- 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/Label/Label.d.ts +2 -2
- 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 +2 -2
- package/dist/components/Popover/Popover.d.ts.map +1 -1
- package/dist/components/RadioButtonGroup/RadioButtonGroup.d.ts +2 -2
- package/dist/components/RadioButtonGroup/RadioButtonGroup.d.ts.map +1 -1
- package/dist/components/RadioButtonGroup/RadioButtonGroupBase.d.ts +5 -3
- package/dist/components/RadioButtonGroup/RadioButtonGroupBase.d.ts.map +1 -1
- package/dist/components/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/components/RadioGroup/RadioGroupBase.d.ts +7 -7
- 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/Skeleton/Skeleton.d.ts +1 -1
- package/dist/components/Slider/SliderBase.d.ts +7 -7
- package/dist/components/SpectralProvider/SpectralProvider.d.ts +1 -1
- package/dist/components/Switch/Switch.d.ts +2 -2
- package/dist/components/Switch/SwitchBase.d.ts +4 -4
- 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/components/Toggle/Toggle.d.ts +2 -2
- package/dist/components/Toggle/ToggleBase.d.ts +5 -4
- package/dist/components/Toggle/ToggleBase.d.ts.map +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +3 -3
- package/dist/components/ToggleGroup/ToggleGroupBase.d.ts +2 -2
- package/dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/Tooltip/TooltipBase.d.ts +8 -8
- package/dist/features/HorizonColorGrid/HorizonColorGrid.d.ts +1 -1
- package/dist/features/LabelingToolbar/LabelingToolbar.d.ts +1 -1
- package/dist/features/LabelingTools.js +19 -8
- package/dist/features/SensorMetadata.js +21 -10
- package/dist/features/SettingsPopover/SettingsPopover.d.ts.map +1 -1
- package/dist/features/SettingsPopover.js +36 -24
- package/dist/hooks/useAccordionAutoScroll.d.ts +1 -1
- package/dist/hooks/useOutsideClick.d.ts +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/loader-circle-CvdzOiQ_.js +11 -0
- package/dist/primitives/label.d.ts +2 -2
- package/dist/primitives/slot.d.ts +3 -3
- package/dist/styles/base-colors.css +52 -42
- 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/utils/refs.d.ts +1 -1
- package/dist/x-BBpi7a_7.js +14 -0
- package/package.json +2 -1
package/dist/.js
CHANGED
|
@@ -1,108 +1,154 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
1
|
+
import { Alert as e } from "./Alert.js";
|
|
2
|
+
import { Badge as p } from "./Badge.js";
|
|
3
|
+
import { Button as m } from "./Button.js";
|
|
4
|
+
import { Drawer as x } from "./Drawer.js";
|
|
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";
|
|
12
|
+
import { Toggle as y } from "./Toggle.js";
|
|
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";
|
|
50
63
|
export {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
p as
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
j as
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
64
|
+
e as Alert,
|
|
65
|
+
_ as AnnotationsIcon,
|
|
66
|
+
p as Badge,
|
|
67
|
+
m as Button,
|
|
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,
|
|
78
|
+
x as Drawer,
|
|
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,
|
|
123
|
+
y as Toggle,
|
|
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
|
|
108
154
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AsChildProp } from '../../primitives/slot';
|
|
2
|
-
import { ButtonHTMLAttributes, HTMLAttributes } from '
|
|
2
|
+
import { ButtonHTMLAttributes, HTMLAttributes } from 'react';
|
|
3
3
|
type Dir = 'ltr' | 'rtl';
|
|
4
4
|
type AccordionType = 'single' | 'multiple';
|
|
5
5
|
export type AccordionProps = HTMLAttributes<HTMLDivElement> & {
|
|
@@ -12,7 +12,7 @@ export type AccordionProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
rovingFocus?: boolean;
|
|
14
14
|
};
|
|
15
|
-
export declare const Accordion: import('
|
|
15
|
+
export declare const Accordion: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
16
16
|
type?: AccordionType;
|
|
17
17
|
value?: string | string[];
|
|
18
18
|
defaultValue?: string | string[];
|
|
@@ -21,22 +21,22 @@ export declare const Accordion: import('../../../node_modules/react').ForwardRef
|
|
|
21
21
|
dir?: Dir;
|
|
22
22
|
disabled?: boolean;
|
|
23
23
|
rovingFocus?: boolean;
|
|
24
|
-
} & import('
|
|
24
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
25
25
|
export type AccordionItemProps = HTMLAttributes<HTMLDivElement> & {
|
|
26
26
|
value: string;
|
|
27
27
|
disabled?: boolean;
|
|
28
28
|
};
|
|
29
|
-
export declare const AccordionItem: import('
|
|
29
|
+
export declare const AccordionItem: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
30
30
|
value: string;
|
|
31
31
|
disabled?: boolean;
|
|
32
|
-
} & import('
|
|
32
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
33
33
|
export type AccordionTriggerProps = ButtonHTMLAttributes<HTMLButtonElement> & AsChildProp;
|
|
34
|
-
export declare const AccordionTrigger: import('
|
|
34
|
+
export declare const AccordionTrigger: import('react').ForwardRefExoticComponent<ButtonHTMLAttributes<HTMLButtonElement> & AsChildProp & import('react').RefAttributes<HTMLButtonElement>>;
|
|
35
35
|
export type AccordionContentProps = HTMLAttributes<HTMLDivElement> & AsChildProp & {
|
|
36
36
|
forceMount?: boolean;
|
|
37
37
|
};
|
|
38
|
-
export declare const AccordionContent: import('
|
|
38
|
+
export declare const AccordionContent: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & AsChildProp & {
|
|
39
39
|
forceMount?: boolean;
|
|
40
|
-
} & import('
|
|
40
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
41
41
|
export {};
|
|
42
42
|
//# sourceMappingURL=AccordionBase.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
3
|
+
export declare const AlertBase: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
4
|
+
variant?: "default" | "success" | "warning" | "danger" | "info" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string> & import('react').RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export declare const AlertTitle: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLHeadingElement> & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
7
|
+
export declare const AlertDescription: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
8
|
+
type AlertPortalProps = {
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
container?: Element | DocumentFragment;
|
|
11
|
+
};
|
|
12
|
+
export declare function AlertPortal({ children, container }: AlertPortalProps): import('react').ReactPortal | null;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=AlertBase.d.ts.map
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "../styles/main.css";
|
|
3
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
4
|
+
import { c as l } from "../twUtils-CRiPKpXj.js";
|
|
5
|
+
import { c as i } from "../index-CRBC94ik.js";
|
|
6
|
+
import { forwardRef as o, useState as n, useEffect as d } from "react";
|
|
7
|
+
import { createPortal as c } from "react-dom";
|
|
8
|
+
const g = i(
|
|
9
|
+
`fixed top-2 left-1/2 -translate-x-1/2 z-50 w-full max-w-md rounded-md border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4
|
|
10
|
+
[&>svg]:translate-y-0.5 [&>svg]:text-current transform transition-all duration-300 ease-in-out translate-y-0 opacity-100 scale-100 animate-in slide-in-from-top-full fade-in duration-300`,
|
|
11
|
+
{
|
|
12
|
+
variants: {
|
|
13
|
+
variant: {
|
|
14
|
+
default: "bg-alert-bg text-alert-text border-alert-border",
|
|
15
|
+
success: "bg-alert-success-bg text-alert-success-text border-alert-success-border",
|
|
16
|
+
warning: "bg-alert-warning-bg text-alert-warning-text border-alert-warning-border",
|
|
17
|
+
danger: "bg-alert-danger-bg text-alert-danger-text border-alert-danger-border",
|
|
18
|
+
info: "bg-alert-info-bg text-alert-info-text border-alert-info-border"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
defaultVariants: {
|
|
22
|
+
variant: "default"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
), f = o(({ className: t, variant: e, ...r }, a) => /* @__PURE__ */ s("div", { "data-slot": "alert", role: "alert", className: l(g({ variant: e }), t), ref: a, ...r }));
|
|
26
|
+
f.displayName = "AlertBase";
|
|
27
|
+
const m = o(
|
|
28
|
+
({ className: t, ...e }, r) => /* @__PURE__ */ s(
|
|
29
|
+
"div",
|
|
30
|
+
{
|
|
31
|
+
"data-slot": "alert-title",
|
|
32
|
+
ref: r,
|
|
33
|
+
className: l("col-start-2 line-clamp-1 min-h-4 text-base font-semibold tracking-tight", t),
|
|
34
|
+
...e
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
);
|
|
38
|
+
m.displayName = "AlertTitle";
|
|
39
|
+
const u = o(
|
|
40
|
+
({ className: t, ...e }, r) => /* @__PURE__ */ s(
|
|
41
|
+
"div",
|
|
42
|
+
{
|
|
43
|
+
"data-slot": "alert-description",
|
|
44
|
+
className: l(
|
|
45
|
+
"text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",
|
|
46
|
+
t
|
|
47
|
+
),
|
|
48
|
+
ref: r,
|
|
49
|
+
...e
|
|
50
|
+
}
|
|
51
|
+
)
|
|
52
|
+
);
|
|
53
|
+
u.displayName = "AlertDescription";
|
|
54
|
+
function w({ children: t, container: e }) {
|
|
55
|
+
const [r, a] = n(!1);
|
|
56
|
+
return d(() => (a(!0), () => a(!1)), []), r ? c(t, e ?? document.body) : null;
|
|
57
|
+
}
|
|
58
|
+
export {
|
|
59
|
+
f as AlertBase,
|
|
60
|
+
u as AlertDescription,
|
|
61
|
+
w as AlertPortal,
|
|
62
|
+
m as AlertTitle
|
|
63
|
+
};
|
package/dist/Alert.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface AlertProps {
|
|
3
|
+
id: string | undefined;
|
|
4
|
+
description: string | ReactNode | undefined;
|
|
5
|
+
onClose?: () => void;
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
title: string | undefined;
|
|
8
|
+
className?: string;
|
|
9
|
+
variant?: 'default' | 'info' | 'success' | 'warning' | 'danger';
|
|
10
|
+
}
|
|
11
|
+
export declare const Alert: ({ id, description, onClose, icon, title, className, variant }: AlertProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=Alert.d.ts.map
|
package/dist/Alert.js
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import "./styles/main.css";
|
|
2
|
+
import { jsx as r, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
import { AlertPortal as h, AlertBase as w, AlertTitle as v, AlertDescription as I } from "./Alert/AlertBase.js";
|
|
4
|
+
import "./Icons/AnnotationsIcon.js";
|
|
5
|
+
import "./Icons/CalendarIcon.js";
|
|
6
|
+
import "./Icons/CheckCircleIcon.js";
|
|
7
|
+
import { CheckSquareIcon as y } from "./Icons/CheckSquareIcon.js";
|
|
8
|
+
import "./Icons/ChevronDownIcon.js";
|
|
9
|
+
import "./Icons/ChevronUpIcon.js";
|
|
10
|
+
import "./Icons/ClockIcon.js";
|
|
11
|
+
import { CloseCircleIcon as A } from "./Icons/CloseCircleIcon.js";
|
|
12
|
+
import { CloseIcon as b } from "./Icons/CloseIcon.js";
|
|
13
|
+
import "./Icons/DashboardIcon.js";
|
|
14
|
+
import "./Icons/DeleteIcon.js";
|
|
15
|
+
import "./Icons/DurationIcon.js";
|
|
16
|
+
import "./Icons/EraserIcon.js";
|
|
17
|
+
import "./Icons/ErrorIcon.js";
|
|
18
|
+
import "./Icons/EyeClosedIcon.js";
|
|
19
|
+
import "./Icons/EyeClosedIcon2.js";
|
|
20
|
+
import "./Icons/EyeOpenIcon.js";
|
|
21
|
+
import "./Icons/GoToFirstIcon.js";
|
|
22
|
+
import "./Icons/GoToLastIcon.js";
|
|
23
|
+
import "./Icons/HarmonicCursorsIcon.js";
|
|
24
|
+
import { InfoIcon as N } from "./Icons/InfoIcon.js";
|
|
25
|
+
import "./Icons/LabelIcon.js";
|
|
26
|
+
import "./Icons/LassoIcon.js";
|
|
27
|
+
import "./Icons/LineToolIcon.js";
|
|
28
|
+
import "./Icons/LiveViewIcon.js";
|
|
29
|
+
import "./Icons/LoaderIcon.js";
|
|
30
|
+
import "./Icons/LocationIcon.js";
|
|
31
|
+
import "./Icons/LogoutIcon.js";
|
|
32
|
+
import "./Icons/MetadataIcon.js";
|
|
33
|
+
import "./Icons/OntologyIcon.js";
|
|
34
|
+
import "./Icons/PanelIcon.js";
|
|
35
|
+
import "./Icons/PlayIcon.js";
|
|
36
|
+
import "./Icons/PlusIcon.js";
|
|
37
|
+
import "./Icons/ResetIcon.js";
|
|
38
|
+
import "./Icons/ScissorsIcon.js";
|
|
39
|
+
import "./Icons/SettingsIcon.js";
|
|
40
|
+
import "./Icons/TrashIcon.js";
|
|
41
|
+
import "./Icons/UndoIcon.js";
|
|
42
|
+
import "./Icons/UserIcon.js";
|
|
43
|
+
import { WarningIcon as T } from "./Icons/WarningIcon.js";
|
|
44
|
+
import "./Icons/ZoomAllIcon.js";
|
|
45
|
+
import "./Icons/ZoomXIcon.js";
|
|
46
|
+
import "./Icons/ZoomYIcon.js";
|
|
47
|
+
import { SpectralProvider as C } from "./SpectralProvider.js";
|
|
48
|
+
import { c as x } from "./twUtils-CRiPKpXj.js";
|
|
49
|
+
import "react";
|
|
50
|
+
const Nr = ({ id: a, description: m, onClose: s, icon: l, title: c, className: d, variant: i = "default" }) => {
|
|
51
|
+
const e = l || {
|
|
52
|
+
info: /* @__PURE__ */ r(N, {}),
|
|
53
|
+
success: /* @__PURE__ */ r(y, {}),
|
|
54
|
+
warning: /* @__PURE__ */ r(T, {}),
|
|
55
|
+
danger: /* @__PURE__ */ r(A, {}),
|
|
56
|
+
default: null
|
|
57
|
+
}[i], p = (t) => {
|
|
58
|
+
t.style.opacity = "0", setTimeout(() => {
|
|
59
|
+
t.style.display = "none", s?.();
|
|
60
|
+
}, 300);
|
|
61
|
+
}, f = (t) => {
|
|
62
|
+
const o = t.currentTarget.closest(".alert-wrapper");
|
|
63
|
+
o && p(o);
|
|
64
|
+
}, u = (t) => {
|
|
65
|
+
if (t.key === "Enter" || t.key === " ") {
|
|
66
|
+
t.preventDefault();
|
|
67
|
+
const o = t.currentTarget.closest(".alert-wrapper");
|
|
68
|
+
o && p(o);
|
|
69
|
+
}
|
|
70
|
+
}, g = (/* @__PURE__ */ new Set(["danger", "warning"])).has(i) ? "assertive" : "polite";
|
|
71
|
+
return /* @__PURE__ */ r(C, { children: /* @__PURE__ */ r(h, { children: /* @__PURE__ */ n(
|
|
72
|
+
w,
|
|
73
|
+
{
|
|
74
|
+
id: a,
|
|
75
|
+
"aria-live": g,
|
|
76
|
+
variant: i,
|
|
77
|
+
"data-variant": i,
|
|
78
|
+
className: x("alert-wrapper tw-transition-opacity tw-duration-300 flex", d),
|
|
79
|
+
children: [
|
|
80
|
+
e && /* @__PURE__ */ r("div", { className: "icon-wrapper mr-2", children: e }),
|
|
81
|
+
/* @__PURE__ */ n("div", { className: "content-wrapper", children: [
|
|
82
|
+
/* @__PURE__ */ r(v, { children: c }),
|
|
83
|
+
/* @__PURE__ */ r(I, { children: m })
|
|
84
|
+
] }),
|
|
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(
|
|
86
|
+
b,
|
|
87
|
+
{
|
|
88
|
+
size: 20,
|
|
89
|
+
onClick: f,
|
|
90
|
+
onKeyDown: u,
|
|
91
|
+
"aria-label": "Close alert",
|
|
92
|
+
tabIndex: 0,
|
|
93
|
+
"data-testid": "alert-close-button"
|
|
94
|
+
}
|
|
95
|
+
) })
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
) }) });
|
|
99
|
+
};
|
|
100
|
+
export {
|
|
101
|
+
Nr as Alert
|
|
102
|
+
};
|
package/dist/Avatar.d.ts
ADDED
package/dist/Avatar.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import { ComponentProps } from '
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
3
|
export type BadgeProps = ComponentProps<'span'> & VariantProps<typeof badgeVariants> & {
|
|
4
4
|
asChild?: boolean;
|
|
5
5
|
};
|
package/dist/Button.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import { ButtonHTMLAttributes, MouseEvent, ReactNode } from '
|
|
2
|
+
import { ButtonHTMLAttributes, MouseEvent, ReactNode } from 'react';
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
4
|
variant?: "secondary" | "outline" | "primary" | "ghost" | null | undefined;
|
|
5
5
|
size?: "default" | "icon" | "fullWidth" | null | undefined;
|
|
@@ -18,6 +18,6 @@ export interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement
|
|
|
18
18
|
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
19
19
|
children?: ReactNode;
|
|
20
20
|
}
|
|
21
|
-
export declare const Button: import('
|
|
21
|
+
export declare const Button: import('react').ForwardRefExoticComponent<ButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
22
22
|
export {};
|
|
23
23
|
//# sourceMappingURL=Button.d.ts.map
|
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
|
};
|