@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
|
@@ -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 Orientation = 'horizontal' | 'vertical';
|
|
4
4
|
type Dir = 'ltr' | 'rtl';
|
|
5
5
|
export type SliderBaseProps = HTMLAttributes<HTMLDivElement> & AsChildProp & {
|
|
@@ -18,7 +18,7 @@ export type SliderBaseProps = HTMLAttributes<HTMLDivElement> & AsChildProp & {
|
|
|
18
18
|
form?: string;
|
|
19
19
|
required?: boolean;
|
|
20
20
|
};
|
|
21
|
-
export declare const SliderBase: import('
|
|
21
|
+
export declare const SliderBase: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & AsChildProp & {
|
|
22
22
|
value?: number[];
|
|
23
23
|
defaultValue?: number[];
|
|
24
24
|
onValueChange?: (values: number[]) => void;
|
|
@@ -33,22 +33,22 @@ export declare const SliderBase: import('../../../node_modules/react').ForwardRe
|
|
|
33
33
|
name?: string;
|
|
34
34
|
form?: string;
|
|
35
35
|
required?: boolean;
|
|
36
|
-
} & import('
|
|
36
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
37
37
|
export type SliderTrackProps = HTMLAttributes<HTMLDivElement> & AsChildProp;
|
|
38
|
-
export declare const SliderTrack: import('
|
|
38
|
+
export declare const SliderTrack: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & AsChildProp & import('react').RefAttributes<HTMLDivElement>>;
|
|
39
39
|
export type SliderRangeProps = HTMLAttributes<HTMLDivElement> & AsChildProp;
|
|
40
|
-
export declare const SliderRange: import('
|
|
40
|
+
export declare const SliderRange: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & AsChildProp & import('react').RefAttributes<HTMLDivElement>>;
|
|
41
41
|
export type SliderThumbProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'value'> & AsChildProp & {
|
|
42
42
|
index?: number;
|
|
43
43
|
'aria-label'?: string;
|
|
44
44
|
'aria-labelledby'?: string;
|
|
45
45
|
'aria-valuetext'?: string;
|
|
46
46
|
};
|
|
47
|
-
export declare const SliderThumb: import('
|
|
47
|
+
export declare const SliderThumb: import('react').ForwardRefExoticComponent<Omit<ButtonHTMLAttributes<HTMLButtonElement>, "value"> & AsChildProp & {
|
|
48
48
|
index?: number;
|
|
49
49
|
'aria-label'?: string;
|
|
50
50
|
'aria-labelledby'?: string;
|
|
51
51
|
'aria-valuetext'?: string;
|
|
52
|
-
} & import('
|
|
52
|
+
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
53
53
|
export {};
|
|
54
54
|
//# sourceMappingURL=SliderBase.d.ts.map
|
|
@@ -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 BaseButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onChange' | 'value'>;
|
|
4
4
|
export type SwitchProps = BaseButtonProps & AsChildProp & {
|
|
5
5
|
checked?: boolean;
|
|
@@ -10,7 +10,7 @@ export type SwitchProps = BaseButtonProps & AsChildProp & {
|
|
|
10
10
|
required?: boolean;
|
|
11
11
|
form?: string;
|
|
12
12
|
};
|
|
13
|
-
export declare const Switch: import('
|
|
13
|
+
export declare const Switch: import('react').ForwardRefExoticComponent<BaseButtonProps & AsChildProp & {
|
|
14
14
|
checked?: boolean;
|
|
15
15
|
defaultChecked?: boolean;
|
|
16
16
|
onCheckedChange?: (checked: boolean) => void;
|
|
@@ -18,8 +18,8 @@ export declare const Switch: import('../../../node_modules/react').ForwardRefExo
|
|
|
18
18
|
value?: string;
|
|
19
19
|
required?: boolean;
|
|
20
20
|
form?: string;
|
|
21
|
-
} & import('
|
|
21
|
+
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
22
22
|
export type SwitchThumbProps = HTMLAttributes<HTMLSpanElement> & AsChildProp;
|
|
23
|
-
export declare const SwitchThumb: import('
|
|
23
|
+
export declare const SwitchThumb: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & AsChildProp & import('react').RefAttributes<HTMLSpanElement>>;
|
|
24
24
|
export {};
|
|
25
25
|
//# sourceMappingURL=SwitchBase.d.ts.map
|
package/dist/Switch.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SwitchProps as SwitchBaseProps } from './SwitchBase';
|
|
2
|
-
export declare const Switch: import('
|
|
2
|
+
export declare const Switch: import('react').ForwardRefExoticComponent<Omit<SwitchBaseProps, "onCheckedChange"> & {
|
|
3
3
|
labelPosition?: "left" | "right";
|
|
4
4
|
labelText: string;
|
|
5
5
|
id: string;
|
|
@@ -8,5 +8,5 @@ export declare const Switch: import('../../../node_modules/react').ForwardRefExo
|
|
|
8
8
|
required?: boolean;
|
|
9
9
|
value?: string;
|
|
10
10
|
variant?: "default" | "squared";
|
|
11
|
-
} & import('
|
|
11
|
+
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
12
12
|
//# sourceMappingURL=Switch.d.ts.map
|
|
@@ -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,54 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useCallback as i } from "react";
|
|
3
|
+
const v = (t, s, a) => {
|
|
4
|
+
t.target.value.length <= s && a?.(t);
|
|
5
|
+
}, V = (t, s, a, r) => {
|
|
6
|
+
const c = t.clipboardData.getData("text"), o = s || "", n = t.currentTarget, l = n.selectionStart || 0, u = n.selectionEnd || 0, e = o.substring(0, l), d = o.substring(u);
|
|
7
|
+
if ((e + c + d).length > a) {
|
|
8
|
+
t.preventDefault();
|
|
9
|
+
const b = u - l, f = a - o.length + b, p = c.substring(0, Math.max(0, f)), g = e + p + d, T = {
|
|
10
|
+
target: { value: g, name: n.name },
|
|
11
|
+
currentTarget: { value: g, name: n.name },
|
|
12
|
+
type: "change",
|
|
13
|
+
preventDefault: () => {
|
|
14
|
+
},
|
|
15
|
+
stopPropagation: () => {
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
r?.(T), setTimeout(() => {
|
|
19
|
+
const h = l + p.length;
|
|
20
|
+
n.setSelectionRange(h, h);
|
|
21
|
+
}, 0);
|
|
22
|
+
}
|
|
23
|
+
}, m = ({ maxLength: t, value: s, onChange: a, onFocus: r, onBlur: c }) => {
|
|
24
|
+
const o = i(
|
|
25
|
+
(e) => {
|
|
26
|
+
r?.(e);
|
|
27
|
+
},
|
|
28
|
+
[r]
|
|
29
|
+
), n = i(
|
|
30
|
+
(e) => {
|
|
31
|
+
c?.(e);
|
|
32
|
+
},
|
|
33
|
+
[c]
|
|
34
|
+
), l = i(
|
|
35
|
+
(e) => {
|
|
36
|
+
v(e, t, a);
|
|
37
|
+
},
|
|
38
|
+
[t, a]
|
|
39
|
+
), u = i(
|
|
40
|
+
(e) => {
|
|
41
|
+
V(e, s, t, a);
|
|
42
|
+
},
|
|
43
|
+
[s, t, a]
|
|
44
|
+
);
|
|
45
|
+
return {
|
|
46
|
+
handleFocus: o,
|
|
47
|
+
handleBlur: n,
|
|
48
|
+
handleChange: l,
|
|
49
|
+
handlePaste: u
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export {
|
|
53
|
+
m as useTextarea
|
|
54
|
+
};
|
|
@@ -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
|
package/dist/Textarea.js
ADDED
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "./styles/main.css";
|
|
3
|
+
import { jsxs as d, jsx as a } from "react/jsx-runtime";
|
|
4
|
+
import { useTextarea as D } from "./Textarea/TextareaUtils.js";
|
|
5
|
+
import "./Icons/AnnotationsIcon.js";
|
|
6
|
+
import "./Icons/CalendarIcon.js";
|
|
7
|
+
import "./Icons/CheckCircleIcon.js";
|
|
8
|
+
import "./Icons/CheckSquareIcon.js";
|
|
9
|
+
import "./Icons/ChevronDownIcon.js";
|
|
10
|
+
import "./Icons/ChevronUpIcon.js";
|
|
11
|
+
import "./Icons/ClockIcon.js";
|
|
12
|
+
import "./Icons/CloseCircleIcon.js";
|
|
13
|
+
import "./Icons/CloseIcon.js";
|
|
14
|
+
import "./Icons/DashboardIcon.js";
|
|
15
|
+
import "./Icons/DeleteIcon.js";
|
|
16
|
+
import "./Icons/DurationIcon.js";
|
|
17
|
+
import "./Icons/EraserIcon.js";
|
|
18
|
+
import "./Icons/ErrorIcon.js";
|
|
19
|
+
import "./Icons/EyeClosedIcon.js";
|
|
20
|
+
import "./Icons/EyeClosedIcon2.js";
|
|
21
|
+
import "./Icons/EyeOpenIcon.js";
|
|
22
|
+
import "./Icons/GoToFirstIcon.js";
|
|
23
|
+
import "./Icons/GoToLastIcon.js";
|
|
24
|
+
import "./Icons/HarmonicCursorsIcon.js";
|
|
25
|
+
import "./Icons/InfoIcon.js";
|
|
26
|
+
import "./Icons/LabelIcon.js";
|
|
27
|
+
import "./Icons/LassoIcon.js";
|
|
28
|
+
import "./Icons/LineToolIcon.js";
|
|
29
|
+
import "./Icons/LiveViewIcon.js";
|
|
30
|
+
import { LoaderIcon as F } from "./Icons/LoaderIcon.js";
|
|
31
|
+
import "./Icons/LocationIcon.js";
|
|
32
|
+
import "./Icons/LogoutIcon.js";
|
|
33
|
+
import "./Icons/MetadataIcon.js";
|
|
34
|
+
import "./Icons/OntologyIcon.js";
|
|
35
|
+
import "./Icons/PanelIcon.js";
|
|
36
|
+
import "./Icons/PlayIcon.js";
|
|
37
|
+
import "./Icons/PlusIcon.js";
|
|
38
|
+
import "./Icons/ResetIcon.js";
|
|
39
|
+
import "./Icons/ScissorsIcon.js";
|
|
40
|
+
import "./Icons/SettingsIcon.js";
|
|
41
|
+
import "./Icons/TrashIcon.js";
|
|
42
|
+
import "./Icons/UndoIcon.js";
|
|
43
|
+
import "./Icons/UserIcon.js";
|
|
44
|
+
import "./Icons/WarningIcon.js";
|
|
45
|
+
import "./Icons/ZoomAllIcon.js";
|
|
46
|
+
import "./Icons/ZoomXIcon.js";
|
|
47
|
+
import "./Icons/ZoomYIcon.js";
|
|
48
|
+
import { c as l } from "./twUtils-CRiPKpXj.js";
|
|
49
|
+
import { forwardRef as L, useId as M, useRef as O } from "react";
|
|
50
|
+
const _ = "absolute right-4 top-4", E = (t) => t || "off", G = (t) => ({
|
|
51
|
+
error: "border-danger hover:border-danger focus-visible:border-danger focus-visible:ring-danger",
|
|
52
|
+
loading: "border-input-border--disabled cursor-wait pointer-events-none",
|
|
53
|
+
disabled: "pointer-events-none border-input-border--disabled bg-input-bg--disabled text-input-text--disabled",
|
|
54
|
+
default: ""
|
|
55
|
+
})[t], V = (t, e) => {
|
|
56
|
+
const r = "absolute bottom-2 right-3 text-xs pointer-events-none z-10 tabular-nums", o = t >= e ? "text-danger" : "text-input-text-secondary";
|
|
57
|
+
return l(r, o);
|
|
58
|
+
}, q = L(
|
|
59
|
+
({
|
|
60
|
+
className: t,
|
|
61
|
+
state: e = "default",
|
|
62
|
+
errorMessage: r,
|
|
63
|
+
name: o,
|
|
64
|
+
id: f,
|
|
65
|
+
label: g,
|
|
66
|
+
value: s = "",
|
|
67
|
+
onFocus: x,
|
|
68
|
+
onBlur: h,
|
|
69
|
+
onChange: v,
|
|
70
|
+
disabled: C,
|
|
71
|
+
required: p,
|
|
72
|
+
maxLength: i = 280,
|
|
73
|
+
autoComplete: N,
|
|
74
|
+
autoCorrect: I = "off",
|
|
75
|
+
...m
|
|
76
|
+
}, y) => {
|
|
77
|
+
const S = M(), c = f || `${o}-${S}`, u = `${c}-error`, w = O(null), $ = y || w, { handleFocus: R, handleBlur: k, handleChange: z, handlePaste: A } = D({
|
|
78
|
+
maxLength: i,
|
|
79
|
+
value: s,
|
|
80
|
+
onChange: v,
|
|
81
|
+
onFocus: x,
|
|
82
|
+
onBlur: h
|
|
83
|
+
}), P = C || e === "disabled", b = e === "error", T = e === "loading", n = s?.length || 0, j = l(
|
|
84
|
+
"peer flex h-24 w-full resize-none rounded-lg border border-input-border bg-input-bg px-4 py-3 text-sm",
|
|
85
|
+
"hover:border-input-border--hover focus:border-input-border--focus focus:outline-none",
|
|
86
|
+
"focus:ring-2 focus:ring-black focus:ring-offset-2",
|
|
87
|
+
"disabled:pointer-events-none disabled:border-input-border--disabled disabled:bg-input-bg--disabled disabled:text-input-text--disabled",
|
|
88
|
+
"transition duration-200 focus-visible:border-input-border--focus focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-black focus-visible:ring-offset-2",
|
|
89
|
+
"placeholder:text-input-text-placeholder",
|
|
90
|
+
G(e),
|
|
91
|
+
t
|
|
92
|
+
), B = () => ({
|
|
93
|
+
"--textarea-min-height": "6rem",
|
|
94
|
+
"--textarea-max-height": "12rem",
|
|
95
|
+
"--textarea-border-radius": "0.5rem"
|
|
96
|
+
});
|
|
97
|
+
return /* @__PURE__ */ d("div", { className: "w-full", "data-testid": "textarea-root", children: [
|
|
98
|
+
/* @__PURE__ */ d("div", { className: "relative", "data-testid": "textarea-wrapper", children: [
|
|
99
|
+
/* @__PURE__ */ a(
|
|
100
|
+
"textarea",
|
|
101
|
+
{
|
|
102
|
+
ref: $,
|
|
103
|
+
name: o,
|
|
104
|
+
id: c,
|
|
105
|
+
value: s,
|
|
106
|
+
disabled: P,
|
|
107
|
+
required: p,
|
|
108
|
+
"aria-invalid": b,
|
|
109
|
+
"aria-required": p,
|
|
110
|
+
"aria-describedby": l(b && u, m["aria-describedby"]),
|
|
111
|
+
autoComplete: E(N),
|
|
112
|
+
className: j,
|
|
113
|
+
onFocus: R,
|
|
114
|
+
onBlur: k,
|
|
115
|
+
onChange: z,
|
|
116
|
+
onPaste: A,
|
|
117
|
+
placeholder: g,
|
|
118
|
+
...m,
|
|
119
|
+
"data-testid": "textarea-textarea",
|
|
120
|
+
"data-state": e,
|
|
121
|
+
autoCorrect: I,
|
|
122
|
+
"aria-multiline": "true",
|
|
123
|
+
spellCheck: "true",
|
|
124
|
+
style: B()
|
|
125
|
+
}
|
|
126
|
+
),
|
|
127
|
+
T && /* @__PURE__ */ a("div", { className: _, "data-testid": "textarea-loading-icon", children: /* @__PURE__ */ a(F, { size: 24 }) }),
|
|
128
|
+
/* @__PURE__ */ d(
|
|
129
|
+
"div",
|
|
130
|
+
{
|
|
131
|
+
className: V(n, i),
|
|
132
|
+
role: "status",
|
|
133
|
+
"aria-live": "polite",
|
|
134
|
+
"aria-label": `${n} of ${i} characters used`,
|
|
135
|
+
children: [
|
|
136
|
+
n,
|
|
137
|
+
"/",
|
|
138
|
+
i
|
|
139
|
+
]
|
|
140
|
+
}
|
|
141
|
+
)
|
|
142
|
+
] }),
|
|
143
|
+
e === "error" && r && /* @__PURE__ */ a(
|
|
144
|
+
"p",
|
|
145
|
+
{
|
|
146
|
+
id: u,
|
|
147
|
+
className: "text-danger mt-1.5 text-sm",
|
|
148
|
+
"data-testid": "textarea-error-message",
|
|
149
|
+
"aria-live": "polite",
|
|
150
|
+
"aria-atomic": "true",
|
|
151
|
+
children: r
|
|
152
|
+
}
|
|
153
|
+
)
|
|
154
|
+
] });
|
|
155
|
+
}
|
|
156
|
+
);
|
|
157
|
+
q.displayName = "Textarea";
|
|
158
|
+
export {
|
|
159
|
+
q as Textarea
|
|
160
|
+
};
|
|
@@ -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,52 +1,54 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "../styles/main.css";
|
|
3
3
|
import { jsx as h } from "react/jsx-runtime";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
import { Slot as k } from "../primitives/slot.js";
|
|
5
|
+
import { useControllableState as y } from "../utils/shared.js";
|
|
6
|
+
import { forwardRef as P, useCallback as f } from "react";
|
|
7
|
+
const B = P(function({
|
|
8
|
+
pressed: u,
|
|
9
|
+
defaultPressed: d = !1,
|
|
10
|
+
onPressedChange: p,
|
|
10
11
|
disabled: t,
|
|
11
12
|
className: i,
|
|
12
|
-
onKeyDown:
|
|
13
|
-
onClick:
|
|
14
|
-
type:
|
|
13
|
+
onKeyDown: n,
|
|
14
|
+
onClick: a,
|
|
15
|
+
type: m = "button",
|
|
16
|
+
asChild: s = !1,
|
|
15
17
|
...c
|
|
16
18
|
}, g) {
|
|
17
|
-
const [
|
|
18
|
-
value:
|
|
19
|
-
defaultValue:
|
|
20
|
-
onChange:
|
|
21
|
-
}),
|
|
22
|
-
t ||
|
|
23
|
-
}, [t,
|
|
19
|
+
const [o, l] = y({
|
|
20
|
+
value: u,
|
|
21
|
+
defaultValue: d,
|
|
22
|
+
onChange: p
|
|
23
|
+
}), r = f(() => {
|
|
24
|
+
t || l(!o);
|
|
25
|
+
}, [t, o, l]), v = f(
|
|
24
26
|
(e) => {
|
|
25
|
-
|
|
27
|
+
n && n(e), !e.defaultPrevented && (e.key === " " || e.key === "Enter") && (e.preventDefault(), r());
|
|
26
28
|
},
|
|
27
|
-
[
|
|
28
|
-
),
|
|
29
|
+
[r, n]
|
|
30
|
+
), C = f(
|
|
29
31
|
(e) => {
|
|
30
|
-
|
|
32
|
+
a && a(e), !e.defaultPrevented && r();
|
|
31
33
|
},
|
|
32
|
-
[
|
|
34
|
+
[r, a]
|
|
33
35
|
);
|
|
34
36
|
return /* @__PURE__ */ h(
|
|
35
|
-
"button",
|
|
37
|
+
s ? k : "button",
|
|
36
38
|
{
|
|
37
39
|
...c,
|
|
38
40
|
ref: g,
|
|
39
|
-
type:
|
|
40
|
-
"aria-pressed":
|
|
41
|
-
"data-state":
|
|
41
|
+
type: s ? void 0 : m,
|
|
42
|
+
"aria-pressed": o,
|
|
43
|
+
"data-state": o ? "on" : "off",
|
|
42
44
|
"data-disabled": t ? "" : void 0,
|
|
43
45
|
disabled: t,
|
|
44
|
-
onKeyDown:
|
|
45
|
-
onClick:
|
|
46
|
+
onKeyDown: v,
|
|
47
|
+
onClick: C,
|
|
46
48
|
className: i
|
|
47
49
|
}
|
|
48
50
|
);
|
|
49
51
|
});
|
|
50
52
|
export {
|
|
51
|
-
|
|
53
|
+
B as ToggleBase
|
|
52
54
|
};
|
package/dist/Toggle.d.ts
CHANGED
|
@@ -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,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
|
package/dist/ToggleGroup.d.ts
CHANGED
|
@@ -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 { 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
|
package/dist/Tooltip.d.ts
CHANGED
|
@@ -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;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { c as o } 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 c = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], t = o("check", c);
|
|
9
|
+
/**
|
|
10
|
+
* @license lucide-react v0.542.0 - ISC
|
|
11
|
+
*
|
|
12
|
+
* This source code is licensed under the ISC license.
|
|
13
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
14
|
+
*/
|
|
15
|
+
const e = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], s = o("chevron-down", e);
|
|
16
|
+
export {
|
|
17
|
+
s as C,
|
|
18
|
+
t as a
|
|
19
|
+
};
|
|
@@ -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,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
|