@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
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ChangeEvent, ComponentProps, FocusEvent } from 'react';
|
|
2
|
+
export type TextareaState = 'default' | 'error' | 'disabled' | 'loading';
|
|
3
|
+
export type TextareaProps = ComponentProps<'textarea'> & {
|
|
4
|
+
className?: string;
|
|
5
|
+
state?: TextareaState;
|
|
6
|
+
errorMessage?: string;
|
|
7
|
+
name: string;
|
|
8
|
+
id?: string;
|
|
9
|
+
label: string;
|
|
10
|
+
value?: string;
|
|
11
|
+
maxLength?: number;
|
|
12
|
+
onFocus?: (e: FocusEvent<HTMLTextAreaElement>) => void;
|
|
13
|
+
onBlur?: (e: FocusEvent<HTMLTextAreaElement>) => void;
|
|
14
|
+
onChange?: (e: ChangeEvent<HTMLTextAreaElement>) => void;
|
|
15
|
+
};
|
|
16
|
+
export declare const Textarea: import('react').ForwardRefExoticComponent<Omit<TextareaProps, "ref"> & import('react').RefAttributes<HTMLTextAreaElement>>;
|
|
17
|
+
//# sourceMappingURL=Textarea.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/Textarea.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,cAAc,EAAE,KAAK,UAAU,EAA6B,MAAM,OAAO,CAAA;AAEzG,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;AAIxE,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC,UAAU,CAAC,GAAG;IACvD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAA;IACtD,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAA;IACrD,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,WAAW,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAA;CACzD,CAAA;AAyBD,eAAO,MAAM,QAAQ,4HAsHpB,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ChangeEvent, ClipboardEvent, FocusEvent } from 'react';
|
|
2
|
+
export type UseTextareaOptions = {
|
|
3
|
+
maxLength: number;
|
|
4
|
+
value: string;
|
|
5
|
+
onChange?: (e: ChangeEvent<HTMLTextAreaElement>) => void;
|
|
6
|
+
onFocus?: (e: FocusEvent<HTMLTextAreaElement>) => void;
|
|
7
|
+
onBlur?: (e: FocusEvent<HTMLTextAreaElement>) => void;
|
|
8
|
+
};
|
|
9
|
+
export type UseTextareaReturn = {
|
|
10
|
+
handleFocus: (e: FocusEvent<HTMLTextAreaElement>) => void;
|
|
11
|
+
handleBlur: (e: FocusEvent<HTMLTextAreaElement>) => void;
|
|
12
|
+
handleChange: (e: ChangeEvent<HTMLTextAreaElement>) => void;
|
|
13
|
+
handlePaste: (e: ClipboardEvent<HTMLTextAreaElement>) => void;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Custom hook for textarea functionality with character limits and event handling
|
|
17
|
+
*/
|
|
18
|
+
export declare const useTextarea: ({ maxLength, value, onChange, onFocus, onBlur }: UseTextareaOptions) => UseTextareaReturn;
|
|
19
|
+
//# sourceMappingURL=TextareaUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextareaUtils.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/TextareaUtils.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,cAAc,EAAE,KAAK,UAAU,EAAe,MAAM,OAAO,CAAA;AAE3F,MAAM,MAAM,kBAAkB,GAAG;IAC/B,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,WAAW,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAA;IACxD,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAA;IACtD,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAA;CACtD,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,WAAW,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAA;IACzD,UAAU,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAA;IACxD,YAAY,EAAE,CAAC,CAAC,EAAE,WAAW,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAA;IAC3D,WAAW,EAAE,CAAC,CAAC,EAAE,cAAc,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAA;CAC9D,CAAA;AAqED;;GAEG;AACH,eAAO,MAAM,WAAW,GAAI,iDAAiD,kBAAkB,KAAG,iBAmCjG,CAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ToggleBase } from './ToggleBase';
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
import { ComponentProps } from '
|
|
3
|
+
import { ComponentProps } from 'react';
|
|
4
4
|
export type ToggleProps = ComponentProps<typeof ToggleBase> & VariantProps<typeof toggleVariants>;
|
|
5
5
|
export declare const toggleVariants: (props?: ({
|
|
6
6
|
variant?: "default" | "outline" | null | undefined;
|
|
7
7
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
8
8
|
layout?: "default" | "expanded" | null | undefined;
|
|
9
9
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
|
-
export declare const Toggle: import('
|
|
10
|
+
export declare const Toggle: import('react').ForwardRefExoticComponent<Omit<ToggleProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
11
11
|
//# sourceMappingURL=Toggle.d.ts.map
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { AsChildProp } from '../../primitives/slot';
|
|
2
|
+
import { ButtonHTMLAttributes } from 'react';
|
|
3
|
+
export type ToggleProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onChange'> & AsChildProp & {
|
|
3
4
|
pressed?: boolean;
|
|
4
5
|
defaultPressed?: boolean;
|
|
5
6
|
onPressedChange?: (pressed: boolean) => void;
|
|
6
7
|
disabled?: boolean;
|
|
7
8
|
};
|
|
8
|
-
export declare const ToggleBase: import('
|
|
9
|
+
export declare const ToggleBase: import('react').ForwardRefExoticComponent<Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onChange"> & AsChildProp & {
|
|
9
10
|
pressed?: boolean;
|
|
10
11
|
defaultPressed?: boolean;
|
|
11
12
|
onPressedChange?: (pressed: boolean) => void;
|
|
12
13
|
disabled?: boolean;
|
|
13
|
-
} & import('
|
|
14
|
+
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
14
15
|
//# sourceMappingURL=ToggleBase.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToggleBase.d.ts","sourceRoot":"","sources":["../../../src/components/Toggle/ToggleBase.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ToggleBase.d.ts","sourceRoot":"","sources":["../../../src/components/Toggle/ToggleBase.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAE9D,OAAO,EAA2B,KAAK,oBAAoB,EAAuC,MAAM,OAAO,CAAA;AAE/G,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,UAAU,CAAC,GACjF,WAAW,GAAG;IACZ,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAEH,eAAO,MAAM,UAAU;cANT,OAAO;qBACA,OAAO;sBACN,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI;eACjC,OAAO;qDAkEpB,CAAA"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ToggleGroupBase } from './ToggleGroupBase';
|
|
2
2
|
import { toggleVariants } from '../Toggle/Toggle';
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
import { ComponentProps } from '
|
|
4
|
+
import { ComponentProps } from 'react';
|
|
5
5
|
export type ToggleGroupProps = ComponentProps<typeof ToggleGroupBase> & VariantProps<typeof toggleVariants>;
|
|
6
6
|
export declare const ToggleGroup: ({ className, variant, size, layout, children, ...props }: ToggleGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export declare const ToggleGroupItem: import('
|
|
7
|
+
export declare const ToggleGroupItem: import('react').ForwardRefExoticComponent<Omit<Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "pressed" | "defaultPressed" | "onPressedChange"> & import('./ToggleGroupBase').ItemRenderProps & import('react').RefAttributes<HTMLButtonElement> & VariantProps<(props?: ({
|
|
8
8
|
variant?: "default" | "outline" | null | undefined;
|
|
9
9
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
10
10
|
layout?: "default" | "expanded" | null | undefined;
|
|
11
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string>, "ref"> & import('
|
|
11
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string>, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
12
12
|
//# sourceMappingURL=ToggleGroup.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ButtonHTMLAttributes, HTMLAttributes, ReactNode } from '
|
|
1
|
+
import { ButtonHTMLAttributes, HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
type Orientation = 'horizontal' | 'vertical';
|
|
3
3
|
export type CommonGroupProps = {
|
|
4
4
|
orientation?: Orientation;
|
|
@@ -25,6 +25,6 @@ export type ItemRenderProps = {
|
|
|
25
25
|
};
|
|
26
26
|
export declare const ToggleGroupBase: (props: ToggleGroupProps & Record<`data-${string}`, any>) => import("react/jsx-runtime").JSX.Element;
|
|
27
27
|
export type ToggleGroupItemProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onChange' | 'onPressedChange' | 'pressed' | 'defaultPressed'> & ItemRenderProps;
|
|
28
|
-
export declare const ToggleGroupItemBase: import('
|
|
28
|
+
export declare const ToggleGroupItemBase: import('react').ForwardRefExoticComponent<Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "pressed" | "defaultPressed" | "onPressedChange"> & ItemRenderProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
29
29
|
export {};
|
|
30
30
|
//# sourceMappingURL=ToggleGroupBase.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentProps } from '
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
2
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
3
3
|
export declare const TooltipProvider: ({ delayDuration, ...props }: ComponentProps<typeof TooltipPrimitive.Provider>) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export declare const Tooltip: ({ ...props }: ComponentProps<typeof TooltipPrimitive.Root>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ReactNode } from '
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
type Side = 'top' | 'right' | 'bottom' | 'left';
|
|
3
3
|
type Align = 'start' | 'center' | 'end';
|
|
4
4
|
export type TooltipProviderProps = {
|
|
@@ -7,7 +7,7 @@ export type TooltipProviderProps = {
|
|
|
7
7
|
skipDelayDuration?: number;
|
|
8
8
|
disableHoverableContent?: boolean;
|
|
9
9
|
};
|
|
10
|
-
export declare const TooltipProviderBase: import('
|
|
10
|
+
export declare const TooltipProviderBase: import('react').ForwardRefExoticComponent<TooltipProviderProps & import('react').RefAttributes<HTMLElement>>;
|
|
11
11
|
export type TooltipRootProps = {
|
|
12
12
|
align?: Align;
|
|
13
13
|
alignOffset?: number;
|
|
@@ -24,28 +24,28 @@ export declare const TooltipRootBase: ({ children, open: openProp, defaultOpen,
|
|
|
24
24
|
export type TooltipTriggerProps = ComponentPropsWithoutRef<'button'> & {
|
|
25
25
|
asChild?: boolean;
|
|
26
26
|
};
|
|
27
|
-
export declare const TooltipTriggerBase: import('
|
|
27
|
+
export declare const TooltipTriggerBase: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
28
28
|
asChild?: boolean;
|
|
29
|
-
} & import('
|
|
29
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
30
30
|
export type TooltipContentProps = ComponentPropsWithoutRef<'div'> & {
|
|
31
31
|
forceMount?: boolean;
|
|
32
32
|
container?: Element | DocumentFragment | null | undefined;
|
|
33
33
|
arrowPadding?: number;
|
|
34
34
|
variant?: 'default' | 'outline';
|
|
35
35
|
};
|
|
36
|
-
export declare const TooltipContentBase: import('
|
|
36
|
+
export declare const TooltipContentBase: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
37
37
|
forceMount?: boolean;
|
|
38
38
|
container?: Element | DocumentFragment | null | undefined;
|
|
39
39
|
arrowPadding?: number;
|
|
40
40
|
variant?: "default" | "outline";
|
|
41
|
-
} & import('
|
|
41
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
42
42
|
export type TooltipArrowProps = ComponentPropsWithoutRef<'div'> & {
|
|
43
43
|
width?: number;
|
|
44
44
|
height?: number;
|
|
45
45
|
};
|
|
46
|
-
export declare const TooltipArrowBase: import('
|
|
46
|
+
export declare const TooltipArrowBase: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
47
47
|
width?: number;
|
|
48
48
|
height?: number;
|
|
49
|
-
} & import('
|
|
49
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
50
50
|
export {};
|
|
51
51
|
//# sourceMappingURL=TooltipBase.d.ts.map
|
|
@@ -3,19 +3,30 @@ import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
|
3
3
|
import { Badge as a } from "../Badge.js";
|
|
4
4
|
import "../Icons/AnnotationsIcon.js";
|
|
5
5
|
import "../Icons/CalendarIcon.js";
|
|
6
|
+
import "../Icons/CheckCircleIcon.js";
|
|
7
|
+
import "../Icons/CheckSquareIcon.js";
|
|
8
|
+
import "../Icons/ChevronDownIcon.js";
|
|
9
|
+
import "../Icons/ChevronUpIcon.js";
|
|
6
10
|
import "../Icons/ClockIcon.js";
|
|
11
|
+
import "../Icons/CloseCircleIcon.js";
|
|
12
|
+
import "../Icons/CloseIcon.js";
|
|
7
13
|
import "../Icons/DashboardIcon.js";
|
|
8
|
-
import { DeleteIcon as
|
|
14
|
+
import { DeleteIcon as m } from "../Icons/DeleteIcon.js";
|
|
9
15
|
import "../Icons/DurationIcon.js";
|
|
10
|
-
import { EraserIcon as
|
|
16
|
+
import { EraserIcon as n } from "../Icons/EraserIcon.js";
|
|
17
|
+
import "../Icons/ErrorIcon.js";
|
|
18
|
+
import "../Icons/EyeClosedIcon.js";
|
|
19
|
+
import "../Icons/EyeClosedIcon2.js";
|
|
20
|
+
import "../Icons/EyeOpenIcon.js";
|
|
11
21
|
import "../Icons/GoToFirstIcon.js";
|
|
12
22
|
import "../Icons/GoToLastIcon.js";
|
|
13
23
|
import "../Icons/HarmonicCursorsIcon.js";
|
|
14
24
|
import "../Icons/InfoIcon.js";
|
|
15
|
-
import { LabelIcon as
|
|
25
|
+
import { LabelIcon as c } from "../Icons/LabelIcon.js";
|
|
16
26
|
import { LassoIcon as g } from "../Icons/LassoIcon.js";
|
|
17
27
|
import { LineToolIcon as p } from "../Icons/LineToolIcon.js";
|
|
18
28
|
import "../Icons/LiveViewIcon.js";
|
|
29
|
+
import "../Icons/LoaderIcon.js";
|
|
19
30
|
import "../Icons/LocationIcon.js";
|
|
20
31
|
import "../Icons/LogoutIcon.js";
|
|
21
32
|
import { MetadataIcon as b } from "../Icons/MetadataIcon.js";
|
|
@@ -36,7 +47,7 @@ import "../Icons/ZoomYIcon.js";
|
|
|
36
47
|
import { Toggle as d } from "../Toggle.js";
|
|
37
48
|
import { ToggleGroup as s, ToggleGroupItem as l } from "../ToggleGroup.js";
|
|
38
49
|
import { Tooltip as i, TooltipTrigger as o, TooltipContent as t } from "../Tooltip.js";
|
|
39
|
-
const
|
|
50
|
+
const pe = () => /* @__PURE__ */ r("div", { className: "align-center flex gap-4", children: [
|
|
40
51
|
/* @__PURE__ */ e("div", { className: "flex", children: /* @__PURE__ */ r(s, { type: "single", variant: "outline", children: [
|
|
41
52
|
/* @__PURE__ */ r(i, { children: [
|
|
42
53
|
/* @__PURE__ */ e(o, { children: /* @__PURE__ */ r(l, { value: "crosshairs", children: [
|
|
@@ -82,7 +93,7 @@ const ie = () => /* @__PURE__ */ r("div", { className: "align-center flex gap-4"
|
|
|
82
93
|
value: "lasso",
|
|
83
94
|
className: "data-[state=on]:bg-toggle-bg data-[state=on]:border-toggle-border",
|
|
84
95
|
children: [
|
|
85
|
-
/* @__PURE__ */ e(
|
|
96
|
+
/* @__PURE__ */ e(c, { size: 22 }),
|
|
86
97
|
/* @__PURE__ */ e(a, { className: "group-data-[state=on]:bg-badge-primary-bg active:bg-badge-primary-bg--active ml-1", children: "⌘T" })
|
|
87
98
|
]
|
|
88
99
|
}
|
|
@@ -112,7 +123,7 @@ const ie = () => /* @__PURE__ */ r("div", { className: "align-center flex gap-4"
|
|
|
112
123
|
value: "delete",
|
|
113
124
|
className: "data-[state=on]:bg-toggle-bg data-[state=on]:border-toggle-border",
|
|
114
125
|
children: [
|
|
115
|
-
/* @__PURE__ */ e(
|
|
126
|
+
/* @__PURE__ */ e(m, { size: 22 }),
|
|
116
127
|
/* @__PURE__ */ e(a, { className: "group-data-[state=on]:bg-badge-primary-bg active:bg-badge-primary-bg--active ml-1", children: "⌫" })
|
|
117
128
|
]
|
|
118
129
|
}
|
|
@@ -126,7 +137,7 @@ const ie = () => /* @__PURE__ */ r("div", { className: "align-center flex gap-4"
|
|
|
126
137
|
value: "clear",
|
|
127
138
|
className: "data-[state=on]:bg-toggle-bg data-[state=on]:border-toggle-border",
|
|
128
139
|
children: [
|
|
129
|
-
/* @__PURE__ */ e(
|
|
140
|
+
/* @__PURE__ */ e(n, { size: 22 }),
|
|
130
141
|
/* @__PURE__ */ e(a, { className: "group-data-[state=on]:bg-badge-primary-bg active:bg-badge-primary-bg--active ml-1", children: "⌘⇧A" })
|
|
131
142
|
]
|
|
132
143
|
}
|
|
@@ -146,5 +157,5 @@ const ie = () => /* @__PURE__ */ r("div", { className: "align-center flex gap-4"
|
|
|
146
157
|
] })
|
|
147
158
|
] });
|
|
148
159
|
export {
|
|
149
|
-
|
|
160
|
+
pe as LabelingTools
|
|
150
161
|
};
|
|
@@ -3,22 +3,33 @@ import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
|
3
3
|
import { Drawer as r } from "../Drawer.js";
|
|
4
4
|
import "../Icons/AnnotationsIcon.js";
|
|
5
5
|
import "../Icons/CalendarIcon.js";
|
|
6
|
+
import "../Icons/CheckCircleIcon.js";
|
|
7
|
+
import "../Icons/CheckSquareIcon.js";
|
|
8
|
+
import "../Icons/ChevronDownIcon.js";
|
|
9
|
+
import "../Icons/ChevronUpIcon.js";
|
|
6
10
|
import { ClockIcon as i } from "../Icons/ClockIcon.js";
|
|
11
|
+
import "../Icons/CloseCircleIcon.js";
|
|
12
|
+
import "../Icons/CloseIcon.js";
|
|
7
13
|
import "../Icons/DashboardIcon.js";
|
|
8
14
|
import "../Icons/DeleteIcon.js";
|
|
9
|
-
import { DurationIcon as
|
|
15
|
+
import { DurationIcon as m } from "../Icons/DurationIcon.js";
|
|
10
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";
|
|
11
21
|
import "../Icons/GoToFirstIcon.js";
|
|
12
22
|
import "../Icons/GoToLastIcon.js";
|
|
13
23
|
import "../Icons/HarmonicCursorsIcon.js";
|
|
14
|
-
import { InfoIcon as
|
|
24
|
+
import { InfoIcon as a } from "../Icons/InfoIcon.js";
|
|
15
25
|
import "../Icons/LabelIcon.js";
|
|
16
26
|
import "../Icons/LassoIcon.js";
|
|
17
27
|
import "../Icons/LineToolIcon.js";
|
|
18
28
|
import "../Icons/LiveViewIcon.js";
|
|
19
|
-
import
|
|
29
|
+
import "../Icons/LoaderIcon.js";
|
|
30
|
+
import { LocationIcon as s } from "../Icons/LocationIcon.js";
|
|
20
31
|
import "../Icons/LogoutIcon.js";
|
|
21
|
-
import { MetadataIcon as
|
|
32
|
+
import { MetadataIcon as c } from "../Icons/MetadataIcon.js";
|
|
22
33
|
import "../Icons/OntologyIcon.js";
|
|
23
34
|
import "../Icons/PanelIcon.js";
|
|
24
35
|
import "../Icons/PlayIcon.js";
|
|
@@ -33,17 +44,17 @@ import "../Icons/WarningIcon.js";
|
|
|
33
44
|
import "../Icons/ZoomAllIcon.js";
|
|
34
45
|
import "../Icons/ZoomXIcon.js";
|
|
35
46
|
import "../Icons/ZoomYIcon.js";
|
|
36
|
-
const
|
|
47
|
+
const $ = () => /* @__PURE__ */ e(r, { description: "Recording Details", title: "Sensor Metadata", trigger: /* @__PURE__ */ e(c, {}), children: /* @__PURE__ */ t("div", { className: "flex flex-col gap-4", children: [
|
|
37
48
|
/* @__PURE__ */ t("div", { className: "bg-card-bg-secondary rounded-md px-4 py-5", children: [
|
|
38
49
|
/* @__PURE__ */ t("div", { className: "flex items-center gap-2 !text-sm font-semibold uppercase", children: [
|
|
39
|
-
/* @__PURE__ */ e(
|
|
50
|
+
/* @__PURE__ */ e(a, { size: 16 }),
|
|
40
51
|
"sensor type"
|
|
41
52
|
] }),
|
|
42
53
|
/* @__PURE__ */ e("div", { className: "!text-text-accent-primary mt-4 flex text-center !text-xl", children: "Omnidirectional Hydrophone Array" })
|
|
43
54
|
] }),
|
|
44
55
|
/* @__PURE__ */ t("div", { className: "bg-card-bg-secondary rounded-md px-4 py-5", children: [
|
|
45
56
|
/* @__PURE__ */ t("div", { className: "flex items-center gap-2 !text-sm font-semibold uppercase", children: [
|
|
46
|
-
/* @__PURE__ */ e(
|
|
57
|
+
/* @__PURE__ */ e(s, { size: 16 }),
|
|
47
58
|
"location"
|
|
48
59
|
] }),
|
|
49
60
|
/* @__PURE__ */ e("div", { className: "!text-text-accent-primary mt-4 flex justify-center !text-xl", children: "42.3601° N, 71.0589° W" }),
|
|
@@ -58,7 +69,7 @@ const G = () => /* @__PURE__ */ e(r, { description: "Recording Details", title:
|
|
|
58
69
|
/* @__PURE__ */ e("div", { className: "!text-sm font-medium uppercase", children: "water depth" })
|
|
59
70
|
] }) }),
|
|
60
71
|
/* @__PURE__ */ e("div", { className: "bg-card-bg-secondary w-1/2 rounded-md px-4 py-5", children: /* @__PURE__ */ t("div", { className: "flex flex-col items-center gap-1 font-semibold", children: [
|
|
61
|
-
/* @__PURE__ */ e("div", { className: "!text-
|
|
72
|
+
/* @__PURE__ */ e("div", { className: "!text-success-400 !text-lg font-semibold", children: "Active" }),
|
|
62
73
|
/* @__PURE__ */ e("div", { className: "!text-sm font-medium uppercase", children: "status" })
|
|
63
74
|
] }) })
|
|
64
75
|
] }),
|
|
@@ -78,7 +89,7 @@ const G = () => /* @__PURE__ */ e(r, { description: "Recording Details", title:
|
|
|
78
89
|
] }),
|
|
79
90
|
/* @__PURE__ */ t("div", { className: "bg-card-bg-secondary rounded-md px-4 py-5", children: [
|
|
80
91
|
/* @__PURE__ */ t("div", { className: "flex items-center gap-2 !text-sm font-semibold uppercase", children: [
|
|
81
|
-
/* @__PURE__ */ e(
|
|
92
|
+
/* @__PURE__ */ e(m, { size: 16 }),
|
|
82
93
|
"active duration"
|
|
83
94
|
] }),
|
|
84
95
|
/* @__PURE__ */ t("div", { className: "sb-unstyled mt-4 flex flex-col justify-between", children: [
|
|
@@ -88,5 +99,5 @@ const G = () => /* @__PURE__ */ e(r, { description: "Recording Details", title:
|
|
|
88
99
|
] })
|
|
89
100
|
] }) });
|
|
90
101
|
export {
|
|
91
|
-
|
|
102
|
+
$ as SensorMetadata
|
|
92
103
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingsPopover.d.ts","sourceRoot":"","sources":["../../../src/features/SettingsPopover/SettingsPopover.tsx"],"names":[],"mappings":"AAmBA,eAAO,MAAM,eAAe,+
|
|
1
|
+
{"version":3,"file":"SettingsPopover.d.ts","sourceRoot":"","sources":["../../../src/features/SettingsPopover/SettingsPopover.tsx"],"names":[],"mappings":"AAmBA,eAAO,MAAM,eAAe,+CA8J3B,CAAA"}
|
|
@@ -3,19 +3,30 @@ import "../styles/main.css";
|
|
|
3
3
|
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
4
4
|
import "../Icons/AnnotationsIcon.js";
|
|
5
5
|
import "../Icons/CalendarIcon.js";
|
|
6
|
+
import "../Icons/CheckCircleIcon.js";
|
|
7
|
+
import "../Icons/CheckSquareIcon.js";
|
|
8
|
+
import "../Icons/ChevronDownIcon.js";
|
|
9
|
+
import "../Icons/ChevronUpIcon.js";
|
|
6
10
|
import "../Icons/ClockIcon.js";
|
|
11
|
+
import "../Icons/CloseCircleIcon.js";
|
|
12
|
+
import "../Icons/CloseIcon.js";
|
|
7
13
|
import "../Icons/DashboardIcon.js";
|
|
8
14
|
import "../Icons/DeleteIcon.js";
|
|
9
15
|
import "../Icons/DurationIcon.js";
|
|
10
16
|
import "../Icons/EraserIcon.js";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
17
|
+
import "../Icons/ErrorIcon.js";
|
|
18
|
+
import "../Icons/EyeClosedIcon.js";
|
|
19
|
+
import "../Icons/EyeClosedIcon2.js";
|
|
20
|
+
import "../Icons/EyeOpenIcon.js";
|
|
21
|
+
import { GoToFirstIcon as x } from "../Icons/GoToFirstIcon.js";
|
|
22
|
+
import { GoToLastIcon as T } from "../Icons/GoToLastIcon.js";
|
|
13
23
|
import { HarmonicCursorsIcon as z } from "../Icons/HarmonicCursorsIcon.js";
|
|
14
24
|
import "../Icons/InfoIcon.js";
|
|
15
25
|
import "../Icons/LabelIcon.js";
|
|
16
26
|
import "../Icons/LassoIcon.js";
|
|
17
27
|
import "../Icons/LineToolIcon.js";
|
|
18
28
|
import { LiveViewIcon as O } from "../Icons/LiveViewIcon.js";
|
|
29
|
+
import "../Icons/LoaderIcon.js";
|
|
19
30
|
import "../Icons/LocationIcon.js";
|
|
20
31
|
import "../Icons/LogoutIcon.js";
|
|
21
32
|
import "../Icons/MetadataIcon.js";
|
|
@@ -37,20 +48,21 @@ import { Popover as R, PopoverTrigger as S, PopoverContent as A } from "../Popov
|
|
|
37
48
|
import { RadioButtonGroup as h, RadioButtonGroupItem as i } from "../RadioButtonGroup.js";
|
|
38
49
|
import { RadioGroup as Z, RadioGroupItem as l } from "../RadioGroup.js";
|
|
39
50
|
import { Switch as P } from "../Switch.js";
|
|
40
|
-
import { Toggle as
|
|
41
|
-
import { Tooltip as
|
|
51
|
+
import { Toggle as m } from "../Toggle.js";
|
|
52
|
+
import { Tooltip as s, TooltipTrigger as a, TooltipContent as n } from "../Tooltip.js";
|
|
42
53
|
import { useState as o } from "react";
|
|
43
|
-
const
|
|
44
|
-
const [f, b] = o("green-black"), [
|
|
45
|
-
return /* @__PURE__ */ r(R, { open:
|
|
46
|
-
/* @__PURE__ */ e(S, { children: /* @__PURE__ */ e(
|
|
54
|
+
const Ae = () => {
|
|
55
|
+
const [f, b] = o("green-black"), [u, p] = o(""), [v, c] = o(!1), [g, w] = o(!1), [y, N] = o("");
|
|
56
|
+
return /* @__PURE__ */ r(R, { open: v, onOpenChange: c, children: [
|
|
57
|
+
/* @__PURE__ */ e(S, { children: /* @__PURE__ */ e(m, { pressed: !1, children: /* @__PURE__ */ e(V, {}) }) }),
|
|
47
58
|
/* @__PURE__ */ r(A, { side: "bottom", align: "end", width: 420, children: [
|
|
48
59
|
/* @__PURE__ */ r("div", { className: "mb-6 w-full", children: [
|
|
49
60
|
/* @__PURE__ */ e("p", { className: "text-md text-md mb-3 font-semibold", children: "Zoom Options" }),
|
|
50
61
|
/* @__PURE__ */ r(
|
|
51
62
|
h,
|
|
52
63
|
{
|
|
53
|
-
value:
|
|
64
|
+
value: u,
|
|
65
|
+
expanded: !0,
|
|
54
66
|
isKeptActive: !0,
|
|
55
67
|
onValueChange: (t) => {
|
|
56
68
|
p(t), t && c(!1);
|
|
@@ -72,7 +84,7 @@ const Te = () => {
|
|
|
72
84
|
}
|
|
73
85
|
),
|
|
74
86
|
/* @__PURE__ */ r(
|
|
75
|
-
|
|
87
|
+
m,
|
|
76
88
|
{
|
|
77
89
|
pressed: !1,
|
|
78
90
|
"aria-label": "Reset zoom",
|
|
@@ -94,7 +106,7 @@ const Te = () => {
|
|
|
94
106
|
/* @__PURE__ */ e(
|
|
95
107
|
P,
|
|
96
108
|
{
|
|
97
|
-
checked:
|
|
109
|
+
checked: g,
|
|
98
110
|
onChange: (t) => {
|
|
99
111
|
w(t);
|
|
100
112
|
},
|
|
@@ -104,7 +116,7 @@ const Te = () => {
|
|
|
104
116
|
}
|
|
105
117
|
)
|
|
106
118
|
] }),
|
|
107
|
-
/* @__PURE__ */ e("div", { className: "mt-4 flex w-full items-center justify-center gap-2", children: /* @__PURE__ */ r(
|
|
119
|
+
/* @__PURE__ */ e("div", { className: "mt-4 flex w-full items-center justify-center gap-2", children: /* @__PURE__ */ r(m, { className: "w-full", children: [
|
|
108
120
|
/* @__PURE__ */ e(z, { size: 16 }),
|
|
109
121
|
"Harmonic Cursors"
|
|
110
122
|
] }) })
|
|
@@ -122,20 +134,20 @@ const Te = () => {
|
|
|
122
134
|
},
|
|
123
135
|
variant: "unstyled",
|
|
124
136
|
children: [
|
|
125
|
-
/* @__PURE__ */ e(l, { value: "green-black", "aria-label": "green & black theme", children: /* @__PURE__ */ r(
|
|
126
|
-
/* @__PURE__ */ e(
|
|
137
|
+
/* @__PURE__ */ e(l, { value: "green-black", "aria-label": "green & black theme", children: /* @__PURE__ */ r(s, { children: [
|
|
138
|
+
/* @__PURE__ */ e(a, { children: /* @__PURE__ */ e("img", { src: "/themes/green-black-theme.webp", alt: "green & black theme", className: "h-8 w-8" }) }),
|
|
127
139
|
/* @__PURE__ */ e(n, { side: "bottom", sideOffset: 8, children: /* @__PURE__ */ e("p", { children: "Green & Black Theme" }) })
|
|
128
140
|
] }) }),
|
|
129
|
-
/* @__PURE__ */ e(l, { value: "grayscale", "aria-label": "grayscale theme", children: /* @__PURE__ */ r(
|
|
130
|
-
/* @__PURE__ */ e(
|
|
141
|
+
/* @__PURE__ */ e(l, { value: "grayscale", "aria-label": "grayscale theme", children: /* @__PURE__ */ r(s, { children: [
|
|
142
|
+
/* @__PURE__ */ e(a, { children: /* @__PURE__ */ e("img", { src: "/themes/grayscale-theme.webp", alt: "grayscale theme", className: "h-8 w-8" }) }),
|
|
131
143
|
/* @__PURE__ */ e(n, { side: "bottom", sideOffset: 8, children: /* @__PURE__ */ e("p", { children: "Grayscale Theme" }) })
|
|
132
144
|
] }) }),
|
|
133
|
-
/* @__PURE__ */ e(l, { value: "reverse-grayscale", "aria-label": "reverse grayscale theme", children: /* @__PURE__ */ r(
|
|
134
|
-
/* @__PURE__ */ e(
|
|
145
|
+
/* @__PURE__ */ e(l, { value: "reverse-grayscale", "aria-label": "reverse grayscale theme", children: /* @__PURE__ */ r(s, { children: [
|
|
146
|
+
/* @__PURE__ */ e(a, { children: /* @__PURE__ */ e("img", { src: "/themes/reverse-grayscale-theme.webp", alt: "reverse grayscale theme", className: "h-8 w-8" }) }),
|
|
135
147
|
/* @__PURE__ */ e(n, { side: "bottom", sideOffset: 8, children: /* @__PURE__ */ e("p", { children: "Reverse Grayscale Theme" }) })
|
|
136
148
|
] }) }),
|
|
137
|
-
/* @__PURE__ */ e(l, { value: "viridis", "aria-label": "viridis theme", children: /* @__PURE__ */ r(
|
|
138
|
-
/* @__PURE__ */ e(
|
|
149
|
+
/* @__PURE__ */ e(l, { value: "viridis", "aria-label": "viridis theme", children: /* @__PURE__ */ r(s, { children: [
|
|
150
|
+
/* @__PURE__ */ e(a, { children: /* @__PURE__ */ e("img", { src: "/themes/viridis-theme.webp", alt: "viridis theme", className: "h-8 w-8" }) }),
|
|
139
151
|
/* @__PURE__ */ e(n, { side: "bottom", sideOffset: 8, children: /* @__PURE__ */ e("p", { children: "Viridis Theme" }) })
|
|
140
152
|
] }) })
|
|
141
153
|
]
|
|
@@ -144,7 +156,7 @@ const Te = () => {
|
|
|
144
156
|
] }),
|
|
145
157
|
/* @__PURE__ */ r("div", { className: "border-border-secondary mb-2 w-full border-t pt-4", children: [
|
|
146
158
|
/* @__PURE__ */ e("p", { className: "text-md text-md mb-3 font-semibold", children: "View Options" }),
|
|
147
|
-
/* @__PURE__ */ r(
|
|
159
|
+
/* @__PURE__ */ r(m, { className: "mb-4 w-full", children: [
|
|
148
160
|
/* @__PURE__ */ e(O, { size: 18 }),
|
|
149
161
|
"Realtime Stream"
|
|
150
162
|
] }),
|
|
@@ -159,11 +171,11 @@ const Te = () => {
|
|
|
159
171
|
},
|
|
160
172
|
children: [
|
|
161
173
|
/* @__PURE__ */ r(i, { value: "oldest-data", "aria-label": "oldest data", children: [
|
|
162
|
-
/* @__PURE__ */ e(
|
|
174
|
+
/* @__PURE__ */ e(x, { size: 16 }),
|
|
163
175
|
"Oldest Data"
|
|
164
176
|
] }),
|
|
165
177
|
/* @__PURE__ */ r(i, { value: "newest-data", "aria-label": "newest data", children: [
|
|
166
|
-
/* @__PURE__ */ e(
|
|
178
|
+
/* @__PURE__ */ e(T, { size: 16 }),
|
|
167
179
|
"Newest Data"
|
|
168
180
|
] })
|
|
169
181
|
]
|
|
@@ -174,5 +186,5 @@ const Te = () => {
|
|
|
174
186
|
] });
|
|
175
187
|
};
|
|
176
188
|
export {
|
|
177
|
-
|
|
189
|
+
Ae as SettingsPopover
|
|
178
190
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
export { Alert, type AlertProps } from './components/Alert/Alert';
|
|
1
2
|
export { Badge } from './components/Badge/Badge';
|
|
2
3
|
export { Button, type ButtonProps } from './components/Button/Button';
|
|
3
4
|
export { Drawer, type DrawerProps } from './components/Drawer/Drawer';
|
|
5
|
+
export { Input, type InputProps } from './components/Input/Input';
|
|
4
6
|
export { Popover, PopoverContent, PopoverTrigger } from './components/Popover/Popover';
|
|
5
7
|
export { RadioButtonGroup, RadioButtonGroupItem } from './components/RadioButtonGroup/RadioButtonGroup';
|
|
6
8
|
export { RadioGroup, RadioGroupItem } from './components/RadioGroup/RadioGroup';
|
|
@@ -13,7 +15,7 @@ export { ToggleGroup, ToggleGroupItem, type ToggleGroupProps } from './component
|
|
|
13
15
|
export { Tooltip, TooltipContent, TooltipTrigger } from './components/Tooltip/Tooltip';
|
|
14
16
|
export * from './components/Icons';
|
|
15
17
|
export { default as IconBase, SvgIdContext } from './components/Icons/IconBase';
|
|
16
|
-
export { useOutsideClick } from './hooks/useOutsideClick';
|
|
17
18
|
export { useTheme } from './hooks/useTheme';
|
|
19
|
+
export * from './utils/formFieldUtils';
|
|
18
20
|
export { cn } from './utils/twUtils';
|
|
19
21
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAChD,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AACtF,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAA;AACvG,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAA;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAA;AACzD,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,+BAA+B,CAAA;AAC5F,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AACnD,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,KAAK,gBAAgB,EAAE,MAAM,sCAAsC,CAAA;AAC1G,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAGtF,cAAc,oBAAoB,CAAA;AAClC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAG/E,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAChD,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AACtF,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAA;AACvG,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAA;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAA;AACzD,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,+BAA+B,CAAA;AAC5F,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AACnD,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,KAAK,gBAAgB,EAAE,MAAM,sCAAsC,CAAA;AAC1G,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAGtF,cAAc,oBAAoB,CAAA;AAClC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAG/E,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAG3C,cAAc,wBAAwB,CAAA;AACtC,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { c } from "./createLucideIcon-CI1yJrZf.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.542.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const e = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], a = c("loader-circle", e);
|
|
9
|
+
export {
|
|
10
|
+
a as L
|
|
11
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AsChildProp } from './slot';
|
|
2
|
-
import { LabelHTMLAttributes } from '
|
|
2
|
+
import { LabelHTMLAttributes } from 'react';
|
|
3
3
|
export type LabelProps = LabelHTMLAttributes<HTMLLabelElement> & AsChildProp;
|
|
4
|
-
export declare const Label: import('
|
|
4
|
+
export declare const Label: import('react').ForwardRefExoticComponent<LabelHTMLAttributes<HTMLLabelElement> & AsChildProp & import('react').RefAttributes<HTMLLabelElement>>;
|
|
5
5
|
//# sourceMappingURL=label.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { HTMLAttributes, ReactNode } from '
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
export declare function Slottable(props: {
|
|
3
3
|
children?: ReactNode;
|
|
4
4
|
}): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export declare const Slot: import('
|
|
5
|
+
export declare const Slot: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
6
6
|
children?: ReactNode;
|
|
7
|
-
} & import('
|
|
7
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
8
8
|
export type AsChildProp = {
|
|
9
9
|
asChild?: boolean;
|
|
10
10
|
};
|