@spear-ai/spectral 1.6.17 → 1.7.0
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 +196 -195
- package/dist/Accordion.d.ts +13 -15
- package/dist/Accordion.js +183 -178
- package/dist/Alert/AlertBase.d.ts +7 -7
- package/dist/Alert/AlertBase.js +20 -20
- package/dist/Alert.d.ts +2 -2
- package/dist/Alert.js +30 -30
- package/dist/Avatar.d.ts +2 -2
- package/dist/Avatar.js +30 -22
- package/dist/Badge.d.ts +1 -1
- package/dist/Badge.js +3 -2
- package/dist/Button.d.ts +3 -3
- package/dist/Button.js +108 -46
- package/dist/ButtonGroup/ButtonGroupButton.d.ts +1 -1
- package/dist/ButtonGroup/ButtonGroupButton.js +5 -5
- package/dist/ButtonGroup.d.ts +5 -5
- package/dist/ButtonGroup.js +21 -21
- package/dist/ButtonIcon.d.ts +2 -2
- package/dist/ButtonIcon.js +29 -30
- package/dist/Checkbox/CheckboxBase.d.ts +2 -2
- package/dist/Checkbox/CheckboxBase.js +50 -57
- package/dist/Checkbox.js +14 -18
- package/dist/DataCard/Card.d.ts +1 -1
- package/dist/DataCard/Card.js +1 -1
- package/dist/DataCard.js +1 -1
- package/dist/DateTimePicker/Calendar.d.ts +4 -4
- package/dist/DateTimePicker/Calendar.js +2 -2
- package/dist/DateTimePicker/DateTimeDisplayInput.js +126 -136
- package/dist/DateTimePicker/DateTimeInput.js +4 -4
- package/dist/DateTimePicker/DateTimeUtils.d.ts +31 -31
- package/dist/DateTimePicker/DateTimeUtils.js +139 -197
- package/dist/DateTimePicker/TimePicker.d.ts +4 -4
- package/dist/DateTimePicker/TimePicker.js +3 -3
- package/dist/DateTimePicker.d.ts +5 -5
- package/dist/DateTimePicker.js +89 -69
- package/dist/Dialog.d.ts +13 -13
- package/dist/Dialog.js +57 -84
- package/dist/Drawer.d.ts +2 -2
- package/dist/Drawer.js +8 -8
- package/dist/HoverCard.d.ts +6 -5
- package/dist/HoverCard.js +64 -64
- package/dist/IconsAnimated/PanelLeftCloseIcon.js +2 -2
- package/dist/IconsAnimated/PanelLeftOpenIcon.js +2 -2
- package/dist/Input/InputUtils.d.ts +2 -2
- package/dist/Input/InputUtils.js +4 -4
- package/dist/Input.d.ts +1 -1
- package/dist/Input.js +18 -18
- package/dist/InputOTP.d.ts +10 -10
- package/dist/InputOTP.js +113 -113
- package/dist/Kbd.d.ts +8 -5
- package/dist/Kbd.js +85 -20
- package/dist/Label.d.ts +4 -2
- package/dist/Label.js +3 -3
- package/dist/MultiSelect/MultiSelectBase.d.ts +1 -1
- package/dist/MultiSelect/MultiSelectBase.js +277 -201
- package/dist/MultiSelect.d.ts +6 -6
- package/dist/MultiSelect.js +9 -9
- package/dist/Popover.js +22 -237
- package/dist/RadioButtonGroup/RadioButtonGroupBase.d.ts +11 -11
- package/dist/RadioButtonGroup/RadioButtonGroupBase.js +28 -28
- package/dist/RadioButtonGroup.d.ts +1 -1
- package/dist/RadioGroup.d.ts +15 -15
- package/dist/RadioGroup.js +253 -236
- package/dist/Select.d.ts +3 -1
- package/dist/Select.js +90 -87
- package/dist/Separator.js +4 -4
- package/dist/Skeleton.d.ts +1 -2
- package/dist/Skeleton.js +2 -4
- package/dist/Slider.d.ts +6 -6
- package/dist/Slider.js +78 -78
- package/dist/Switch/SwitchBase.d.ts +4 -4
- package/dist/Switch/SwitchBase.js +68 -68
- package/dist/Switch.d.ts +3 -3
- package/dist/Switch.js +9 -9
- package/dist/Tabs/TabsBase.js +39 -38
- package/dist/Tabs/tabsUtils.js +7 -7
- package/dist/Tabs.d.ts +0 -4
- package/dist/Tabs.js +62 -66
- package/dist/Textarea/TextareaUtils.d.ts +7 -7
- package/dist/Textarea/TextareaUtils.js +13 -13
- package/dist/Textarea.js +27 -17
- package/dist/Toast.d.ts +43 -0
- package/dist/Toast.js +883 -0
- package/dist/Toggle/ToggleBase.d.ts +4 -4
- package/dist/Toggle/ToggleBase.js +32 -33
- package/dist/Toggle.d.ts +1 -1
- package/dist/Toggle.js +7 -12
- package/dist/ToggleGroup/ToggleGroupBase.d.ts +5 -5
- package/dist/ToggleGroup/ToggleGroupBase.js +30 -30
- package/dist/ToggleGroup.d.ts +1 -1
- package/dist/ToggleGroup.js +27 -30
- package/dist/Tooltip.d.ts +1 -1
- package/dist/Tooltip.js +97 -97
- package/dist/Tray.d.ts +9 -9
- package/dist/Tray.js +70 -69
- package/dist/hooks/useAccordionAutoScroll.d.ts.map +1 -1
- package/dist/hooks/useAccordionAutoScroll.js +42 -39
- package/dist/hooks/useControllableState.d.ts +2 -2
- package/dist/hooks/useControllableState.d.ts.map +1 -1
- package/dist/hooks/useControllableState.js +2 -2
- package/dist/index-C12FUuIW.js +13 -0
- package/dist/{index-yU8jOTzS.js → index-CpovUAO-.js} +1 -1
- package/dist/{index-BdS7Ix8W.js → index-CqbPiOid.js} +1 -1
- package/dist/{index-B3UpsZ2x.js → index-CrjD9cAD.js} +1 -1
- package/dist/index-DEYs15GP.js +66 -0
- package/dist/index-DdFoGvON.js +146 -0
- package/dist/index-Q3N6lgwg.js +225 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/primitives/button.d.ts +1 -1
- package/dist/primitives/button.js +4 -4
- package/dist/primitives/input.d.ts.map +1 -1
- package/dist/primitives/input.js +8 -5
- package/dist/primitives/select.d.ts +12 -13
- package/dist/primitives/select.d.ts.map +1 -1
- package/dist/primitives/select.js +58 -87
- package/dist/primitives/slot.d.ts +5 -5
- package/dist/primitives/slot.d.ts.map +1 -1
- package/dist/primitives/slot.js +24 -33
- package/dist/primitives/textarea.d.ts.map +1 -1
- package/dist/primitives/textarea.js +4 -3
- package/dist/{proxy-Cukf-VVj.js → proxy-CgaCj1WQ.js} +7 -3
- package/dist/styles/base-colors.css +30 -30
- package/dist/styles/horizon/base-colors.css +30 -30
- package/dist/styles/horizon/colors.css +40 -11
- package/dist/styles/horizon/utilities.css +26 -3
- package/dist/styles/main.css +1 -1
- package/dist/styles/spectral.css +1 -1
- package/dist/styles/theme.css +96 -44
- package/dist/{use-animation-zNd5Nq85.js → use-animation-CR-SdV2l.js} +1 -1
- package/dist/utils/formFieldUtils.d.ts +2 -2
- package/dist/utils/formFieldUtils.d.ts.map +1 -1
- package/dist/utils/formFieldUtils.js +14 -11
- package/dist/utils/sharedUtils.d.ts +3 -3
- package/dist/utils/sharedUtils.d.ts.map +1 -1
- package/dist/utils/sharedUtils.js +1 -4
- package/dist/utils/twUtils.d.ts +1 -1
- package/dist/utils/twUtils.d.ts.map +1 -1
- package/dist/utils/twUtils.js +1 -4
- package/package.json +5 -1
- package/dist/createLucideIcon-D4r5Phnh.js +0 -70
- package/dist/index-CeP1E2kK.js +0 -209
- package/dist/index-Dy-Hzr7y.js +0 -13
package/dist/.js
CHANGED
|
@@ -3,228 +3,229 @@ import { Alert as p } from "./Alert.js";
|
|
|
3
3
|
import { Avatar as m } from "./Avatar.js";
|
|
4
4
|
import { Badge as f } from "./Badge.js";
|
|
5
5
|
import { Button as I } from "./Button.js";
|
|
6
|
-
import { ButtonGroup as
|
|
6
|
+
import { ButtonGroup as u, ButtonGroupItem as l, ButtonGroupSeparator as i } from "./ButtonGroup.js";
|
|
7
7
|
import { ButtonIcon as d } from "./ButtonIcon.js";
|
|
8
8
|
import { Checkbox as g } from "./Checkbox.js";
|
|
9
9
|
import { DataCard as S } from "./DataCard.js";
|
|
10
10
|
import { DateTimePicker as A } from "./DateTimePicker.js";
|
|
11
|
-
import { Dialog as
|
|
12
|
-
import { Drawer as
|
|
13
|
-
import { HoverCard as
|
|
11
|
+
import { Dialog as D } from "./Dialog.js";
|
|
12
|
+
import { Drawer as h } from "./Drawer.js";
|
|
13
|
+
import { HoverCard as L, HoverCardContent as P, HoverCardTrigger as k } from "./HoverCard.js";
|
|
14
14
|
import { Input as y } from "./Input.js";
|
|
15
|
-
import { InputGroup as R, InputGroupAddon as
|
|
15
|
+
import { InputGroup as R, InputGroupAddon as M, InputGroupButton as U, InputGroupInput as Z, InputGroupText as H, InputGroupTextarea as O } from "./InputGroup.js";
|
|
16
16
|
import { InputOTP as q } from "./InputOTP.js";
|
|
17
17
|
import { Kbd as F, KbdGroup as V } from "./Kbd.js";
|
|
18
18
|
import { Label as X } from "./Label.js";
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import { default as
|
|
102
|
-
import { useAccordionAutoScroll as
|
|
103
|
-
import { useControllableState as
|
|
104
|
-
import { cn as
|
|
105
|
-
import { SpectralProvider as
|
|
19
|
+
import { MultiSelect as j } from "./MultiSelect.js";
|
|
20
|
+
import { Popover as N, PopoverContent as Q, PopoverTrigger as _ } from "./Popover.js";
|
|
21
|
+
import { RadioButtonGroup as oo, RadioButtonGroupItem as ro } from "./RadioButtonGroup.js";
|
|
22
|
+
import { RadioGroup as to, RadioGroupItem as po } from "./RadioGroup.js";
|
|
23
|
+
import { Select as mo } from "./Select.js";
|
|
24
|
+
import { Separator as fo } from "./Separator.js";
|
|
25
|
+
import { Skeleton as Io } from "./Skeleton.js";
|
|
26
|
+
import { Slider as uo } from "./Slider.js";
|
|
27
|
+
import { Switch as io } from "./Switch.js";
|
|
28
|
+
import { Tabs as Co } from "./Tabs.js";
|
|
29
|
+
import { Textarea as To } from "./Textarea.js";
|
|
30
|
+
import { Toast as Go, toast as Ao } from "./Toast.js";
|
|
31
|
+
import { Toggle as Do } from "./Toggle.js";
|
|
32
|
+
import { ToggleGroup as ho, ToggleGroupItem as Bo } from "./ToggleGroup.js";
|
|
33
|
+
import { Tooltip as Po, TooltipContent as ko, TooltipTrigger as wo } from "./Tooltip.js";
|
|
34
|
+
import { Tray as Eo } from "./Tray.js";
|
|
35
|
+
import { AnalyzeIcon as Mo } from "./Icons/AnalyzeIcon.js";
|
|
36
|
+
import { AnnotationsIcon as Zo } from "./Icons/AnnotationsIcon.js";
|
|
37
|
+
import { ApprovedIcon as Oo } from "./Icons/ApprovedIcon.js";
|
|
38
|
+
import { ArrowDownIcon as qo } from "./Icons/ArrowDownIcon.js";
|
|
39
|
+
import { ArrowUpIcon as Fo } from "./Icons/ArrowUpIcon.js";
|
|
40
|
+
import { CalendarIcon as Wo } from "./Icons/CalendarIcon.js";
|
|
41
|
+
import { CheckCircleIcon as Yo } from "./Icons/CheckCircleIcon.js";
|
|
42
|
+
import { CheckSquareIcon as Jo } from "./Icons/CheckSquareIcon.js";
|
|
43
|
+
import { CheckmarkIcon as Qo } from "./Icons/CheckmarkIcon.js";
|
|
44
|
+
import { ChevronDownIcon as $o } from "./Icons/ChevronDownIcon.js";
|
|
45
|
+
import { ChevronUpIcon as rr } from "./Icons/ChevronUpIcon.js";
|
|
46
|
+
import { ClockIcon as tr } from "./Icons/ClockIcon.js";
|
|
47
|
+
import { CloseCircleIcon as nr } from "./Icons/CloseCircleIcon.js";
|
|
48
|
+
import { CloseIcon as xr } from "./Icons/CloseIcon.js";
|
|
49
|
+
import { DashboardIcon as cr } from "./Icons/DashboardIcon.js";
|
|
50
|
+
import { DatabaseIcon as ar } from "./Icons/DatabaseIcon.js";
|
|
51
|
+
import { DeleteIcon as lr } from "./Icons/DeleteIcon.js";
|
|
52
|
+
import { DurationIcon as sr } from "./Icons/DurationIcon.js";
|
|
53
|
+
import { EditIcon as Cr } from "./Icons/EditIcon.js";
|
|
54
|
+
import { EmailIcon as Tr } from "./Icons/EmailIcon.js";
|
|
55
|
+
import { EraserIcon as Gr } from "./Icons/EraserIcon.js";
|
|
56
|
+
import { ErrorIcon as vr } from "./Icons/ErrorIcon.js";
|
|
57
|
+
import { EyeClosedIcon as br } from "./Icons/EyeClosedIcon.js";
|
|
58
|
+
import { EyeClosedIcon2 as Br } from "./Icons/EyeClosedIcon2.js";
|
|
59
|
+
import { EyeOpenIcon as Pr } from "./Icons/EyeOpenIcon.js";
|
|
60
|
+
import { GoToFirstIcon as wr } from "./Icons/GoToFirstIcon.js";
|
|
61
|
+
import { GoToLastIcon as Er } from "./Icons/GoToLastIcon.js";
|
|
62
|
+
import { HarmonicCursorsIcon as Mr } from "./Icons/HarmonicCursorsIcon.js";
|
|
63
|
+
import { InfoIcon as Zr } from "./Icons/InfoIcon.js";
|
|
64
|
+
import { KeyboardIcon as Or } from "./Icons/KeyboardIcon.js";
|
|
65
|
+
import { LabelIcon as qr } from "./Icons/LabelIcon.js";
|
|
66
|
+
import { LassoIcon as Fr } from "./Icons/LassoIcon.js";
|
|
67
|
+
import { LineToolIcon as Wr } from "./Icons/LineToolIcon.js";
|
|
68
|
+
import { LineToolIcon2 as Yr } from "./Icons/LineToolIcon2.js";
|
|
69
|
+
import { LiveViewIcon as Jr } from "./Icons/LiveViewIcon.js";
|
|
70
|
+
import { LoaderIcon as Qr } from "./Icons/LoaderIcon.js";
|
|
71
|
+
import { LocationIcon as $r } from "./Icons/LocationIcon.js";
|
|
72
|
+
import { LogoutIcon as re } from "./Icons/LogoutIcon.js";
|
|
73
|
+
import { MeasureIcon as te } from "./Icons/MeasureIcon.js";
|
|
74
|
+
import { MessagesIcon as ne } from "./Icons/MessagesIcon.js";
|
|
75
|
+
import { MetadataIcon as xe } from "./Icons/MetadataIcon.js";
|
|
76
|
+
import { MinusIcon as ce } from "./Icons/MinusIcon.js";
|
|
77
|
+
import { OntologyIcon as ae } from "./Icons/OntologyIcon.js";
|
|
78
|
+
import { PanelIconClose as le } from "./Icons/PanelIconClose.js";
|
|
79
|
+
import { PanelIconOpen as se } from "./Icons/PanelIconOpen.js";
|
|
80
|
+
import { PlayIcon as Ce } from "./Icons/PlayIcon.js";
|
|
81
|
+
import { PlusIcon as Te } from "./Icons/PlusIcon.js";
|
|
82
|
+
import { ResetIcon as Ge } from "./Icons/ResetIcon.js";
|
|
83
|
+
import { ReviewedIcon as ve } from "./Icons/ReviewedIcon.js";
|
|
84
|
+
import { ScissorsIcon as be } from "./Icons/ScissorsIcon.js";
|
|
85
|
+
import { SearchIcon as Be } from "./Icons/SearchIcon.js";
|
|
86
|
+
import { SettingsIcon as Pe } from "./Icons/SettingsIcon.js";
|
|
87
|
+
import { SortAscendingIcon as we } from "./Icons/SortAscendingIcon.js";
|
|
88
|
+
import { SortAtoZIcon as Ee } from "./Icons/SortAtoZIcon.js";
|
|
89
|
+
import { SortDescendingIcon as Me } from "./Icons/SortDescendingIcon.js";
|
|
90
|
+
import { SortZtoAIcon as Ze } from "./Icons/SortZtoAIcon.js";
|
|
91
|
+
import { StackIcon as Oe } from "./Icons/StackIcon.js";
|
|
92
|
+
import { StarIcon as qe } from "./Icons/StarIcon.js";
|
|
93
|
+
import { TrashIcon as Fe } from "./Icons/TrashIcon.js";
|
|
94
|
+
import { UndoIcon as We } from "./Icons/UndoIcon.js";
|
|
95
|
+
import { User2Icon as Ye } from "./Icons/User2Icon.js";
|
|
96
|
+
import { UserIcon as Je } from "./Icons/UserIcon.js";
|
|
97
|
+
import { WarningIcon as Qe } from "./Icons/WarningIcon.js";
|
|
98
|
+
import { ZoomAllIcon as $e } from "./Icons/ZoomAllIcon.js";
|
|
99
|
+
import { ZoomXIcon as rt } from "./Icons/ZoomXIcon.js";
|
|
100
|
+
import { ZoomYIcon as tt } from "./Icons/ZoomYIcon.js";
|
|
101
|
+
import { default as nt, SvgIdContext as mt } from "./Icons/IconBase.js";
|
|
102
|
+
import { useAccordionAutoScroll as ft } from "./hooks/useAccordionAutoScroll.js";
|
|
103
|
+
import { useControllableState as It } from "./hooks/useControllableState.js";
|
|
104
|
+
import { cn as ut } from "./utils/twUtils.js";
|
|
105
|
+
import { SpectralProvider as it } from "./SpectralProvider.js";
|
|
106
106
|
export {
|
|
107
107
|
e as Accordion,
|
|
108
108
|
p as Alert,
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
109
|
+
Mo as AnalyzeIcon,
|
|
110
|
+
Zo as AnnotationsIcon,
|
|
111
|
+
Oo as ApprovedIcon,
|
|
112
|
+
qo as ArrowDownIcon,
|
|
113
|
+
Fo as ArrowUpIcon,
|
|
114
114
|
m as Avatar,
|
|
115
115
|
f as Badge,
|
|
116
116
|
I as Button,
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
u as ButtonGroup,
|
|
118
|
+
l as ButtonGroupItem,
|
|
119
119
|
i as ButtonGroupSeparator,
|
|
120
120
|
d as ButtonIcon,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
121
|
+
Wo as CalendarIcon,
|
|
122
|
+
Yo as CheckCircleIcon,
|
|
123
|
+
Jo as CheckSquareIcon,
|
|
124
124
|
g as Checkbox,
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
125
|
+
Qo as CheckmarkIcon,
|
|
126
|
+
$o as ChevronDownIcon,
|
|
127
|
+
rr as ChevronUpIcon,
|
|
128
|
+
tr as ClockIcon,
|
|
129
|
+
nr as CloseCircleIcon,
|
|
130
|
+
xr as CloseIcon,
|
|
131
|
+
cr as DashboardIcon,
|
|
132
132
|
S as DataCard,
|
|
133
|
-
|
|
133
|
+
ar as DatabaseIcon,
|
|
134
134
|
A as DateTimePicker,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
135
|
+
lr as DeleteIcon,
|
|
136
|
+
D as Dialog,
|
|
137
|
+
h as Drawer,
|
|
138
|
+
sr as DurationIcon,
|
|
139
|
+
Cr as EditIcon,
|
|
140
|
+
Tr as EmailIcon,
|
|
141
|
+
Gr as EraserIcon,
|
|
142
|
+
vr as ErrorIcon,
|
|
143
|
+
br as EyeClosedIcon,
|
|
144
|
+
Br as EyeClosedIcon2,
|
|
145
|
+
Pr as EyeOpenIcon,
|
|
146
|
+
wr as GoToFirstIcon,
|
|
147
|
+
Er as GoToLastIcon,
|
|
148
|
+
Mr as HarmonicCursorsIcon,
|
|
149
|
+
L as HoverCard,
|
|
150
|
+
P as HoverCardContent,
|
|
151
151
|
k as HoverCardTrigger,
|
|
152
|
-
|
|
153
|
-
|
|
152
|
+
nt as IconBase,
|
|
153
|
+
Zr as InfoIcon,
|
|
154
154
|
y as Input,
|
|
155
155
|
R as InputGroup,
|
|
156
|
-
|
|
156
|
+
M as InputGroupAddon,
|
|
157
157
|
U as InputGroupButton,
|
|
158
158
|
Z as InputGroupInput,
|
|
159
159
|
H as InputGroupText,
|
|
160
|
-
|
|
160
|
+
O as InputGroupTextarea,
|
|
161
161
|
q as InputOTP,
|
|
162
162
|
F as Kbd,
|
|
163
163
|
V as KbdGroup,
|
|
164
|
-
|
|
164
|
+
Or as KeyboardIcon,
|
|
165
165
|
X as Label,
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
166
|
+
qr as LabelIcon,
|
|
167
|
+
Fr as LassoIcon,
|
|
168
|
+
Wr as LineToolIcon,
|
|
169
|
+
Yr as LineToolIcon2,
|
|
170
|
+
Jr as LiveViewIcon,
|
|
171
|
+
Qr as LoaderIcon,
|
|
172
|
+
$r as LocationIcon,
|
|
173
|
+
re as LogoutIcon,
|
|
174
|
+
te as MeasureIcon,
|
|
175
|
+
ne as MessagesIcon,
|
|
176
|
+
xe as MetadataIcon,
|
|
177
|
+
ce as MinusIcon,
|
|
178
|
+
j as MultiSelect,
|
|
179
|
+
ae as OntologyIcon,
|
|
180
|
+
le as PanelIconClose,
|
|
181
|
+
se as PanelIconOpen,
|
|
182
|
+
Ce as PlayIcon,
|
|
183
|
+
Te as PlusIcon,
|
|
184
|
+
N as Popover,
|
|
185
|
+
Q as PopoverContent,
|
|
186
|
+
_ as PopoverTrigger,
|
|
187
|
+
oo as RadioButtonGroup,
|
|
188
|
+
ro as RadioButtonGroupItem,
|
|
189
|
+
to as RadioGroup,
|
|
190
|
+
po as RadioGroupItem,
|
|
191
|
+
Ge as ResetIcon,
|
|
192
|
+
ve as ReviewedIcon,
|
|
193
|
+
be as ScissorsIcon,
|
|
194
|
+
Be as SearchIcon,
|
|
195
|
+
mo as Select,
|
|
196
|
+
fo as Separator,
|
|
197
|
+
Pe as SettingsIcon,
|
|
198
|
+
Io as Skeleton,
|
|
199
|
+
uo as Slider,
|
|
200
|
+
we as SortAscendingIcon,
|
|
201
|
+
Ee as SortAtoZIcon,
|
|
202
|
+
Me as SortDescendingIcon,
|
|
203
|
+
Ze as SortZtoAIcon,
|
|
204
|
+
it as SpectralProvider,
|
|
205
|
+
Oe as StackIcon,
|
|
206
|
+
qe as StarIcon,
|
|
207
|
+
mt as SvgIdContext,
|
|
208
|
+
io as Switch,
|
|
209
|
+
Co as Tabs,
|
|
210
|
+
To as Textarea,
|
|
211
|
+
Go as Toast,
|
|
212
|
+
Do as Toggle,
|
|
213
|
+
ho as ToggleGroup,
|
|
214
|
+
Bo as ToggleGroupItem,
|
|
215
|
+
Po as Tooltip,
|
|
216
|
+
ko as TooltipContent,
|
|
217
|
+
wo as TooltipTrigger,
|
|
218
|
+
Fe as TrashIcon,
|
|
219
|
+
Eo as Tray,
|
|
220
|
+
We as UndoIcon,
|
|
221
|
+
Ye as User2Icon,
|
|
222
|
+
Je as UserIcon,
|
|
223
|
+
Qe as WarningIcon,
|
|
224
|
+
$e as ZoomAllIcon,
|
|
225
|
+
rt as ZoomXIcon,
|
|
226
|
+
tt as ZoomYIcon,
|
|
227
|
+
ut as cn,
|
|
228
|
+
Ao as toast,
|
|
229
|
+
ft as useAccordionAutoScroll,
|
|
230
|
+
It as useControllableState
|
|
230
231
|
};
|
package/dist/Accordion.d.ts
CHANGED
|
@@ -1,40 +1,37 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ComponentRef, ReactNode, Ref } from 'react';
|
|
2
2
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
3
3
|
export type AutoScrollBehavior = 'never' | 'mobile' | 'always';
|
|
4
|
-
|
|
4
|
+
interface BaseAccordionProps {
|
|
5
5
|
autoScroll?: AutoScrollBehavior;
|
|
6
6
|
children?: ReactNode;
|
|
7
7
|
className?: string;
|
|
8
8
|
scrollPadding?: number;
|
|
9
9
|
variant?: 'default' | 'contained' | 'separated';
|
|
10
|
-
}
|
|
11
|
-
export
|
|
10
|
+
}
|
|
11
|
+
export interface AccordionSingleProps extends BaseAccordionProps {
|
|
12
12
|
collapsible?: boolean;
|
|
13
13
|
defaultValue?: string;
|
|
14
14
|
onValueChange?: (value: string) => void;
|
|
15
15
|
type: 'single';
|
|
16
16
|
value?: string;
|
|
17
|
-
}
|
|
18
|
-
export
|
|
17
|
+
}
|
|
18
|
+
export interface AccordionMultipleProps extends BaseAccordionProps {
|
|
19
19
|
defaultValue?: string[];
|
|
20
20
|
onValueChange?: (value: string[]) => void;
|
|
21
21
|
type: 'multiple';
|
|
22
22
|
value?: string[];
|
|
23
|
-
}
|
|
23
|
+
}
|
|
24
24
|
export type AccordionProps = AccordionSingleProps | AccordionMultipleProps;
|
|
25
|
-
|
|
25
|
+
type AccordionComponent = (props: AccordionProps & {
|
|
26
|
+
ref?: Ref<HTMLDivElement>;
|
|
27
|
+
}) => ReactNode;
|
|
28
|
+
type AccordionType = AccordionComponent & {
|
|
26
29
|
Content: typeof AccordionContent;
|
|
27
30
|
Item: typeof AccordionItem;
|
|
28
31
|
Trigger: typeof AccordionTrigger;
|
|
29
32
|
};
|
|
30
|
-
export declare const Accordion: {
|
|
31
|
-
({ ref, variant, className, ...props }: AccordionProps & {
|
|
32
|
-
ref?: Ref<HTMLDivElement>;
|
|
33
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
34
|
-
displayName: string;
|
|
35
|
-
};
|
|
36
33
|
export declare const AccordionItem: {
|
|
37
|
-
({
|
|
34
|
+
({ className, ref, ...props }: ComponentPropsWithoutRef<typeof AccordionPrimitive.Item> & {
|
|
38
35
|
ref?: Ref<ComponentRef<typeof AccordionPrimitive.Item>>;
|
|
39
36
|
}): import("react/jsx-runtime").JSX.Element;
|
|
40
37
|
displayName: string;
|
|
@@ -42,8 +39,8 @@ export declare const AccordionItem: {
|
|
|
42
39
|
export declare const AccordionTrigger: {
|
|
43
40
|
({ ref, className, title, subtitle, ...props }: ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger> & {
|
|
44
41
|
ref?: Ref<HTMLButtonElement>;
|
|
45
|
-
title: ReactNode;
|
|
46
42
|
subtitle?: ReactNode;
|
|
43
|
+
title: ReactNode;
|
|
47
44
|
}): import("react/jsx-runtime").JSX.Element;
|
|
48
45
|
displayName: string;
|
|
49
46
|
};
|
|
@@ -53,5 +50,6 @@ export declare const AccordionContent: {
|
|
|
53
50
|
}): import("react/jsx-runtime").JSX.Element;
|
|
54
51
|
displayName: string;
|
|
55
52
|
};
|
|
53
|
+
export declare const Accordion: AccordionType;
|
|
56
54
|
export {};
|
|
57
55
|
//# sourceMappingURL=Accordion.d.ts.map
|