@spear-ai/spectral 1.11.3 → 1.12.1
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/README.md +4 -0
- package/dist/.js +124 -121
- package/dist/{Accordion-CDXdSAST.js → Accordion-Cyrb2byI.js} +1 -1
- package/dist/Accordion.js +1 -1
- package/dist/Alert/AlertBase.js +1 -1
- package/dist/Alert.js +3 -3
- package/dist/{AnimatePresence-D-9jXfgI.js → AnimatePresence-D9FLxIGV.js} +1 -1
- package/dist/Avatar.js +46 -48
- package/dist/Badge.js +1 -1
- package/dist/Button.js +1 -1
- package/dist/ButtonGroup/ButtonGroupButton.js +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/ButtonIcon.js +1 -1
- package/dist/{Calendar-s4lyijkn.js → Calendar-2UVWeLYp.js} +4 -4
- package/dist/Checkbox/CheckboxBase.js +1 -1
- package/dist/Checkbox.d.ts +10 -3
- package/dist/Checkbox.js +55 -35
- package/dist/{es2015-YHaMV-St.js → Combination-9q50p_Vu.js} +251 -254
- package/dist/Combobox/ComboboxBase.js +492 -3
- package/dist/Combobox-Ch5Rxk5v.js +6360 -0
- package/dist/Combobox.d.ts +5 -3
- package/dist/Combobox.js +3 -143
- package/dist/ControlGroup/ControlGroupSelect.d.ts +5 -2
- package/dist/ControlGroup/ControlGroupSelect.js +32 -29
- package/dist/ControlGroup.d.ts +3 -2
- package/dist/ControlGroup.js +41 -33
- package/dist/DataCard/Card.js +1 -1
- package/dist/DataCard.js +1 -1
- package/dist/DateTimePicker/Calendar.js +1 -1
- package/dist/DateTimePicker/DateTimeDisplayInput.js +84 -83
- package/dist/DateTimePicker/DateTimeInput.js +2 -2
- package/dist/DateTimePicker/DateTimeUtils.js +1 -1
- package/dist/DateTimePicker/TimePeriodSelect.js +32 -35
- package/dist/DateTimePicker/TimePicker.js +2 -2
- package/dist/DateTimePicker.d.ts +1 -1
- package/dist/DateTimePicker.js +55 -52
- package/dist/{DateTimeUtils-DVvG6H-p.js → DateTimeUtils-DrR2JWoU.js} +1 -1
- package/dist/Dialog.js +3 -3
- package/dist/Drawer.js +1 -1
- package/dist/DropdownMenu.d.ts +61 -0
- package/dist/DropdownMenu.js +869 -0
- package/dist/{HoverCard-CYDsIiVK.js → HoverCard-BGpW6LnA.js} +3 -3
- package/dist/HoverCard.js +1 -1
- package/dist/Icons/AdjustmentsIcon.d.ts +5 -0
- package/dist/Icons/AdjustmentsIcon.js +78 -0
- package/dist/Icons/MenuDotsIcon.d.ts +5 -0
- package/dist/Icons/MenuDotsIcon.js +36 -0
- package/dist/Icons/MenuIcon.d.ts +5 -0
- package/dist/Icons/MenuIcon.js +36 -0
- package/dist/Icons/index.d.ts +3 -0
- package/dist/Icons.js +81 -78
- package/dist/IconsAnimated/PanelLeftCloseIcon.js +3 -3
- package/dist/IconsAnimated/PanelLeftOpenIcon.js +3 -3
- package/dist/Input.js +1 -1
- package/dist/InputNumeric.js +1 -1
- package/dist/{InputOTP-cVn5Bzyp.js → InputOTP-BkSw_KIB.js} +12 -10
- package/dist/InputOTP.js +1 -1
- package/dist/Kbd.js +1 -1
- package/dist/Label.js +1 -1
- package/dist/MultiSelect/MultiSelectBase.d.ts +6 -4
- package/dist/MultiSelect/MultiSelectBase.js +222 -201
- package/dist/MultiSelect.d.ts +2 -1
- package/dist/MultiSelect.js +14 -12
- package/dist/Popover.js +2 -2
- package/dist/RadioButton.js +1 -1
- package/dist/RadioButtonGroup/RadioButtonGroupBase.js +1 -1
- package/dist/RadioButtonGroup.js +1 -1
- package/dist/RadioGroup-CfjhpW5o.js +328 -0
- package/dist/RadioGroup.d.ts +7 -0
- package/dist/RadioGroup.js +1 -1
- package/dist/Select.d.ts +5 -2
- package/dist/Select.js +97 -85
- package/dist/Separator.js +1 -1
- package/dist/Skeleton.js +1 -1
- package/dist/{Slider-BzzZT3Zm.js → Slider-mODhqkCs.js} +4 -4
- package/dist/Slider.js +1 -1
- package/dist/Switch-Wj_zov--.js +144 -0
- package/dist/Switch.d.ts +12 -3
- package/dist/Switch.js +1 -1
- package/dist/Tabs/TabsBase.js +4 -4
- package/dist/Tabs.js +1 -1
- package/dist/Textarea.d.ts +3 -2
- package/dist/Textarea.js +50 -45
- package/dist/{Toast-9zqXxKKO.js → Toast-CJvzLlMD.js} +1 -1
- package/dist/Toast.js +1 -1
- package/dist/Toggle.js +1 -1
- package/dist/ToggleGroup.js +1 -1
- package/dist/{Tooltip-D1K8kY1y.js → Tooltip-DH_BzFye.js} +5 -5
- package/dist/Tooltip.js +1 -1
- package/dist/Tray.js +5 -5
- package/dist/{chunk-h9knIhTc.js → chunk-C4rFPcKS.js} +1 -1
- package/dist/dist-BMu6Dgh_.js +149 -0
- package/dist/{dist-fW81qjVl.js → dist-C9fJjxxB.js} +41 -41
- package/dist/{dist-C0Hifjgh.js → dist-Cv8I-d2q.js} +2 -2
- package/dist/{dist-B9tup-4O.js → dist-D6QANKSj.js} +5 -5
- package/dist/{dist-3Af8168y.js → dist-Tbzy5UFA.js} +1 -1
- package/dist/{dist-B2k1iWFp.js → dist-jQ7HawWM.js} +1 -1
- package/dist/{dist-BtdmHAzK.js → dist-nYKAWiy4.js} +6 -6
- package/dist/main.js +1 -1
- package/dist/primitives/button.js +1 -1
- package/dist/primitives/input-group.js +1 -1
- package/dist/primitives/input.js +1 -1
- package/dist/primitives/popover.js +2 -2
- package/dist/primitives/select.js +40 -40
- package/dist/primitives/textarea.js +1 -1
- package/dist/{proxy-Dn10Pl_g.js → proxy-CCB7C4Pu.js} +10 -10
- package/dist/styles/spectral.css +1 -1
- package/dist/{twUtils-VNWgstKL.js → twUtils-D_qzdiwM.js} +1 -1
- package/dist/{use-animation-CBUDycyW.js → use-animation-C-qL83hj.js} +1 -1
- package/dist/utils/formFieldUtils.d.ts +15 -1
- package/dist/utils/formFieldUtils.d.ts.map +1 -1
- package/dist/utils/formFieldUtils.js +35 -19
- package/dist/utils/twUtils.js +1 -1
- package/package.json +27 -22
- package/dist/ComboboxBase-qX-mQhT6.js +0 -491
- package/dist/RadioGroup-w_q6RGEK.js +0 -447
- package/dist/Switch-CVzRJ-0n.js +0 -126
- /package/dist/{dist-Bfjk-jx9.js → dist-ChNh3U3S.js} +0 -0
- /package/dist/{dist-B4FgboI8.js → dist-Cujfuel1.js} +0 -0
- /package/dist/{dist-D8Wb_MX9.js → dist-DDjUcieO.js} +0 -0
- /package/dist/{dist-s1uWaZYZ.js → dist-DFT13f_s.js} +0 -0
- /package/dist/{dist-ClmepHp4.js → dist-DIt8FP2G.js} +0 -0
- /package/dist/{dist-BK1K0g9W.js → dist-K0_i37VL.js} +0 -0
package/README.md
CHANGED
|
@@ -62,3 +62,7 @@ import { CheckIcon } from '@spear-ai/spectral/Icons/CheckIcon'
|
|
|
62
62
|
- **OXLint** for ultra-fast linting
|
|
63
63
|
- **Prettier** with oxc plugin for formatting
|
|
64
64
|
- **Vitest & Playwright** for testing
|
|
65
|
+
|
|
66
|
+
## Contributor Docs
|
|
67
|
+
|
|
68
|
+
- [AI Contributor Workflow](docs/AI_CONTRIBUTOR_WORKFLOW.md)
|
package/dist/.js
CHANGED
|
@@ -1,122 +1,125 @@
|
|
|
1
1
|
import { IconBase as e, SvgIdContext as t } from "./Icons/IconBase.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
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 {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import { t as st } from "./
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import { t as vt } from "./
|
|
113
|
-
import {
|
|
114
|
-
import {
|
|
115
|
-
import {
|
|
116
|
-
import {
|
|
117
|
-
import {
|
|
118
|
-
import {
|
|
119
|
-
import {
|
|
120
|
-
import {
|
|
121
|
-
import {
|
|
122
|
-
|
|
2
|
+
import { AdjustmentsIcon as n } from "./Icons/AdjustmentsIcon.js";
|
|
3
|
+
import { AnalyzeIcon as r } from "./Icons/AnalyzeIcon.js";
|
|
4
|
+
import { AnnotationsIcon as i } from "./Icons/AnnotationsIcon.js";
|
|
5
|
+
import { ApprovedIcon as a } from "./Icons/ApprovedIcon.js";
|
|
6
|
+
import { ArrowDownIcon as o } from "./Icons/ArrowDownIcon.js";
|
|
7
|
+
import { ArrowUpIcon as s } from "./Icons/ArrowUpIcon.js";
|
|
8
|
+
import { BoxToolIcon as c } from "./Icons/BoxToolIcon.js";
|
|
9
|
+
import { CalendarIcon as l } from "./Icons/CalendarIcon.js";
|
|
10
|
+
import { CheckCircleIcon as u } from "./Icons/CheckCircleIcon.js";
|
|
11
|
+
import { CheckSquareIcon as d } from "./Icons/CheckSquareIcon.js";
|
|
12
|
+
import { CheckmarkIcon as f } from "./Icons/CheckmarkIcon.js";
|
|
13
|
+
import { ChevronDownIcon as p } from "./Icons/ChevronDownIcon.js";
|
|
14
|
+
import { ChevronUpIcon as m } from "./Icons/ChevronUpIcon.js";
|
|
15
|
+
import { ClockIcon as h } from "./Icons/ClockIcon.js";
|
|
16
|
+
import { CloseCircleIcon as g } from "./Icons/CloseCircleIcon.js";
|
|
17
|
+
import { CloseIcon as _ } from "./Icons/CloseIcon.js";
|
|
18
|
+
import { Crosshairs2Icon as v } from "./Icons/Crosshairs2Icon.js";
|
|
19
|
+
import { CrosshairsIcon as y } from "./Icons/CrosshairsIcon.js";
|
|
20
|
+
import { DashboardIcon as b } from "./Icons/DashboardIcon.js";
|
|
21
|
+
import { DatabaseIcon as x } from "./Icons/DatabaseIcon.js";
|
|
22
|
+
import { DeleteIcon as S } from "./Icons/DeleteIcon.js";
|
|
23
|
+
import { DurationIcon as C } from "./Icons/DurationIcon.js";
|
|
24
|
+
import { EditIcon as w } from "./Icons/EditIcon.js";
|
|
25
|
+
import { EmailIcon as T } from "./Icons/EmailIcon.js";
|
|
26
|
+
import { EraserIcon as E } from "./Icons/EraserIcon.js";
|
|
27
|
+
import { ErrorIcon as D } from "./Icons/ErrorIcon.js";
|
|
28
|
+
import { EyeClosedIcon as O } from "./Icons/EyeClosedIcon.js";
|
|
29
|
+
import { EyeClosedIcon2 as k } from "./Icons/EyeClosedIcon2.js";
|
|
30
|
+
import { EyeOpenIcon as A } from "./Icons/EyeOpenIcon.js";
|
|
31
|
+
import { FileDownloadIcon as j } from "./Icons/FileDownloadIcon.js";
|
|
32
|
+
import { GoToFirstIcon as M } from "./Icons/GoToFirstIcon.js";
|
|
33
|
+
import { GoToLastIcon as N } from "./Icons/GoToLastIcon.js";
|
|
34
|
+
import { HarmonicCursorsIcon as P } from "./Icons/HarmonicCursorsIcon.js";
|
|
35
|
+
import { InfoIcon as F } from "./Icons/InfoIcon.js";
|
|
36
|
+
import { KeyboardIcon as I } from "./Icons/KeyboardIcon.js";
|
|
37
|
+
import { LabelIcon as L } from "./Icons/LabelIcon.js";
|
|
38
|
+
import { LassoIcon as R } from "./Icons/LassoIcon.js";
|
|
39
|
+
import { LineToolIcon as z } from "./Icons/LineToolIcon.js";
|
|
40
|
+
import { LiveViewIcon as B } from "./Icons/LiveViewIcon.js";
|
|
41
|
+
import { LoaderIcon as V } from "./Icons/LoaderIcon.js";
|
|
42
|
+
import { LocationIcon as H } from "./Icons/LocationIcon.js";
|
|
43
|
+
import { LogoutIcon as U } from "./Icons/LogoutIcon.js";
|
|
44
|
+
import { MaximizeIcon as W } from "./Icons/MaximizeIcon.js";
|
|
45
|
+
import { MeasureIcon as G } from "./Icons/MeasureIcon.js";
|
|
46
|
+
import { MenuDotsIcon as K } from "./Icons/MenuDotsIcon.js";
|
|
47
|
+
import { MenuIcon as q } from "./Icons/MenuIcon.js";
|
|
48
|
+
import { MessagesIcon as J } from "./Icons/MessagesIcon.js";
|
|
49
|
+
import { MetadataIcon as Y } from "./Icons/MetadataIcon.js";
|
|
50
|
+
import { MinimizeIcon as X } from "./Icons/MinimizeIcon.js";
|
|
51
|
+
import { MinusIcon as Z } from "./Icons/MinusIcon.js";
|
|
52
|
+
import { OntologyIcon as Q } from "./Icons/OntologyIcon.js";
|
|
53
|
+
import { PanelIconClose as $ } from "./Icons/PanelIconClose.js";
|
|
54
|
+
import { PanelIconOpen as ee } from "./Icons/PanelIconOpen.js";
|
|
55
|
+
import { PauseIcon as te } from "./Icons/PauseIcon.js";
|
|
56
|
+
import { PlayIcon as ne } from "./Icons/PlayIcon.js";
|
|
57
|
+
import { PlusIcon as re } from "./Icons/PlusIcon.js";
|
|
58
|
+
import { PolygonIcon as ie } from "./Icons/PolygonIcon.js";
|
|
59
|
+
import { PrinterIcon as ae } from "./Icons/PrinterIcon.js";
|
|
60
|
+
import { ProgressCheckIcon as oe } from "./Icons/ProgressCheckIcon.js";
|
|
61
|
+
import { ResetIcon as se } from "./Icons/ResetIcon.js";
|
|
62
|
+
import { ReviewedIcon as ce } from "./Icons/ReviewedIcon.js";
|
|
63
|
+
import { ScissorsIcon as le } from "./Icons/ScissorsIcon.js";
|
|
64
|
+
import { SearchIcon as ue } from "./Icons/SearchIcon.js";
|
|
65
|
+
import { SettingsIcon as de } from "./Icons/SettingsIcon.js";
|
|
66
|
+
import { SortAscendingIcon as fe } from "./Icons/SortAscendingIcon.js";
|
|
67
|
+
import { SortAtoZIcon as pe } from "./Icons/SortAtoZIcon.js";
|
|
68
|
+
import { SortDescendingIcon as me } from "./Icons/SortDescendingIcon.js";
|
|
69
|
+
import { SortZtoAIcon as he } from "./Icons/SortZtoAIcon.js";
|
|
70
|
+
import { SparklesIcon as ge } from "./Icons/SparklesIcon.js";
|
|
71
|
+
import { StackIcon as _e } from "./Icons/StackIcon.js";
|
|
72
|
+
import { StarIcon as ve } from "./Icons/StarIcon.js";
|
|
73
|
+
import { TrashIcon as ye } from "./Icons/TrashIcon.js";
|
|
74
|
+
import { UndoIcon as be } from "./Icons/UndoIcon.js";
|
|
75
|
+
import { UploadIcon as xe } from "./Icons/UploadIcon.js";
|
|
76
|
+
import { User2Icon as Se } from "./Icons/User2Icon.js";
|
|
77
|
+
import { UserIcon as Ce } from "./Icons/UserIcon.js";
|
|
78
|
+
import { WarningIcon as we } from "./Icons/WarningIcon.js";
|
|
79
|
+
import { ZoomAllIcon as Te } from "./Icons/ZoomAllIcon.js";
|
|
80
|
+
import { ZoomXIcon as Ee } from "./Icons/ZoomXIcon.js";
|
|
81
|
+
import { ZoomYIcon as De } from "./Icons/ZoomYIcon.js";
|
|
82
|
+
import { useAccordionAutoScroll as Oe } from "./hooks/useAccordionAutoScroll.js";
|
|
83
|
+
import { t as ke } from "./Accordion-Cyrb2byI.js";
|
|
84
|
+
import { t as Ae } from "./twUtils-D_qzdiwM.js";
|
|
85
|
+
import { Alert as je } from "./Alert.js";
|
|
86
|
+
import { Avatar as Me } from "./Avatar.js";
|
|
87
|
+
import { Badge as Ne } from "./Badge.js";
|
|
88
|
+
import { Button as Pe } from "./Button.js";
|
|
89
|
+
import { Separator as Fe } from "./Separator.js";
|
|
90
|
+
import { ButtonGroup as Ie, ButtonGroupItem as Le, ButtonGroupSeparator as Re } from "./ButtonGroup.js";
|
|
91
|
+
import { ButtonIcon as ze } from "./ButtonIcon.js";
|
|
92
|
+
import { useUncontrolledState as Be } from "./hooks/useUncontrolledState.js";
|
|
93
|
+
import { Checkbox as Ve } from "./Checkbox.js";
|
|
94
|
+
import { t as He } from "./Combobox-Ch5Rxk5v.js";
|
|
95
|
+
import { Label as Ue } from "./Label.js";
|
|
96
|
+
import { InputGroup as We, InputGroupAddon as Ge, InputGroupButton as Ke, InputGroupInput as qe, InputGroupText as Je, InputGroupTextarea as Ye } from "./primitives/input-group.js";
|
|
97
|
+
import { ControlGroupSelect as Xe } from "./ControlGroup/ControlGroupSelect.js";
|
|
98
|
+
import { DataCard as Ze } from "./DataCard.js";
|
|
99
|
+
import { Popover as Qe, PopoverContent as $e, PopoverTrigger as et } from "./Popover.js";
|
|
100
|
+
import { DateTimePicker as tt } from "./DateTimePicker.js";
|
|
101
|
+
import { Dialog as nt } from "./Dialog.js";
|
|
102
|
+
import { SpectralProvider as rt } from "./SpectralProvider.js";
|
|
103
|
+
import { Drawer as it } from "./Drawer.js";
|
|
104
|
+
import { n as at, r as ot, t as st } from "./HoverCard-BGpW6LnA.js";
|
|
105
|
+
import { Input as ct } from "./Input.js";
|
|
106
|
+
import { InputNumeric as lt } from "./InputNumeric.js";
|
|
107
|
+
import { t as ut } from "./InputOTP-BkSw_KIB.js";
|
|
108
|
+
import { Kbd as dt, KbdGroup as ft } from "./Kbd.js";
|
|
109
|
+
import { MultiSelect as pt } from "./MultiSelect.js";
|
|
110
|
+
import { RadioButtonGroup as mt, RadioButtonGroupItem as ht } from "./RadioButtonGroup.js";
|
|
111
|
+
import { RadioButton as gt } from "./RadioButton.js";
|
|
112
|
+
import { n as _t, t as vt } from "./RadioGroup-CfjhpW5o.js";
|
|
113
|
+
import { Select as yt } from "./Select.js";
|
|
114
|
+
import { Skeleton as bt } from "./Skeleton.js";
|
|
115
|
+
import { t as xt } from "./Slider-mODhqkCs.js";
|
|
116
|
+
import { t as St } from "./Switch-Wj_zov--.js";
|
|
117
|
+
import { Tabs as Ct } from "./Tabs.js";
|
|
118
|
+
import { Textarea as wt } from "./Textarea.js";
|
|
119
|
+
import { n as Tt, t as Et } from "./Toast-CJvzLlMD.js";
|
|
120
|
+
import { Toggle as Dt } from "./Toggle.js";
|
|
121
|
+
import { ToggleGroup as Ot, ToggleGroupItem as kt } from "./ToggleGroup.js";
|
|
122
|
+
import { i as At, n as jt, t as Mt } from "./Tooltip-DH_BzFye.js";
|
|
123
|
+
import { Tray as Nt } from "./Tray.js";
|
|
124
|
+
import { useControllableState as Pt } from "./hooks/useControllableState.js";
|
|
125
|
+
export { ke as Accordion, n as AdjustmentsIcon, je as Alert, r as AnalyzeIcon, i as AnnotationsIcon, a as ApprovedIcon, o as ArrowDownIcon, s as ArrowUpIcon, Me as Avatar, Ne as Badge, c as BoxToolIcon, Pe as Button, Ie as ButtonGroup, Le as ButtonGroupItem, Re as ButtonGroupSeparator, ze as ButtonIcon, l as CalendarIcon, u as CheckCircleIcon, d as CheckSquareIcon, Ve as Checkbox, f as CheckmarkIcon, p as ChevronDownIcon, m as ChevronUpIcon, h as ClockIcon, g as CloseCircleIcon, _ as CloseIcon, He as Combobox, Xe as ControlGroupSelect, v as Crosshairs2Icon, y as CrosshairsIcon, b as DashboardIcon, Ze as DataCard, x as DatabaseIcon, tt as DateTimePicker, S as DeleteIcon, nt as Dialog, it as Drawer, C as DurationIcon, w as EditIcon, T as EmailIcon, E as EraserIcon, D as ErrorIcon, O as EyeClosedIcon, k as EyeClosedIcon2, A as EyeOpenIcon, j as FileDownloadIcon, M as GoToFirstIcon, N as GoToLastIcon, P as HarmonicCursorsIcon, st as HoverCard, at as HoverCardContent, ot as HoverCardTrigger, e as IconBase, F as InfoIcon, ct as Input, We as InputGroup, Ge as InputGroupAddon, Ke as InputGroupButton, qe as InputGroupInput, Je as InputGroupText, Ye as InputGroupTextarea, lt as InputNumeric, ut as InputOTP, dt as Kbd, ft as KbdGroup, I as KeyboardIcon, Ue as Label, L as LabelIcon, R as LassoIcon, z as LineToolIcon, B as LiveViewIcon, V as LoaderIcon, H as LocationIcon, U as LogoutIcon, W as MaximizeIcon, G as MeasureIcon, K as MenuDotsIcon, q as MenuIcon, J as MessagesIcon, Y as MetadataIcon, X as MinimizeIcon, Z as MinusIcon, pt as MultiSelect, Q as OntologyIcon, $ as PanelIconClose, ee as PanelIconOpen, te as PauseIcon, ne as PlayIcon, re as PlusIcon, ie as PolygonIcon, Qe as Popover, $e as PopoverContent, et as PopoverTrigger, ae as PrinterIcon, oe as ProgressCheckIcon, gt as RadioButton, mt as RadioButtonGroup, ht as RadioButtonGroupItem, vt as RadioGroup, _t as RadioGroupItem, se as ResetIcon, ce as ReviewedIcon, le as ScissorsIcon, ue as SearchIcon, yt as Select, Fe as Separator, de as SettingsIcon, bt as Skeleton, xt as Slider, fe as SortAscendingIcon, pe as SortAtoZIcon, me as SortDescendingIcon, he as SortZtoAIcon, ge as SparklesIcon, rt as SpectralProvider, _e as StackIcon, ve as StarIcon, t as SvgIdContext, St as Switch, Ct as Tabs, wt as Textarea, Et as Toast, Dt as Toggle, Ot as ToggleGroup, kt as ToggleGroupItem, Mt as Tooltip, jt as TooltipContent, At as TooltipTrigger, ye as TrashIcon, Nt as Tray, be as UndoIcon, xe as UploadIcon, Se as User2Icon, Ce as UserIcon, we as WarningIcon, Te as ZoomAllIcon, Ee as ZoomXIcon, De as ZoomYIcon, Ae as cn, Tt as toast, Oe as useAccordionAutoScroll, Pt as useControllableState, Be as useUncontrolledState };
|
|
@@ -5,7 +5,7 @@ import { a as n, d as r, i, l as a, r as o, t as s } from "./dist-7HRQ5IKN.js";
|
|
|
5
5
|
import { n as c, t as l } from "./dist-CGzgmYB9.js";
|
|
6
6
|
import { t as u } from "./dist-Bft31cJh.js";
|
|
7
7
|
import { t as d } from "./dist-Dtvmk11N.js";
|
|
8
|
-
import { t as f } from "./twUtils-
|
|
8
|
+
import { t as f } from "./twUtils-D_qzdiwM.js";
|
|
9
9
|
import * as p from "react";
|
|
10
10
|
import m, { Children as h, cloneElement as g, createContext as _, isValidElement as v, useCallback as y, useContext as b, useRef as x } from "react";
|
|
11
11
|
import { jsx as S, jsxs as C } from "react/jsx-runtime";
|
package/dist/Accordion.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "./hooks/useAccordionAutoScroll.js";
|
|
2
|
-
import { i as e, n as t, r as n, t as r } from "./Accordion-
|
|
2
|
+
import { i as e, n as t, r as n, t as r } from "./Accordion-Cyrb2byI.js";
|
|
3
3
|
export { r as Accordion, t as AccordionContent, n as AccordionItem, e as AccordionTrigger };
|
package/dist/Alert/AlertBase.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "../styles/main.css";
|
|
3
3
|
import { CloseIcon as e } from "../Icons/CloseIcon.js";
|
|
4
|
-
import { t } from "../twUtils-
|
|
4
|
+
import { t } from "../twUtils-D_qzdiwM.js";
|
|
5
5
|
import { t as n } from "../dist-B4g6zpUF.js";
|
|
6
6
|
import { useEffect as r, useState as i } from "react";
|
|
7
7
|
import { createPortal as a } from "react-dom";
|
package/dist/Alert.js
CHANGED
|
@@ -4,7 +4,7 @@ import { CheckSquareIcon as e } from "./Icons/CheckSquareIcon.js";
|
|
|
4
4
|
import { CloseCircleIcon as t } from "./Icons/CloseCircleIcon.js";
|
|
5
5
|
import { InfoIcon as n } from "./Icons/InfoIcon.js";
|
|
6
6
|
import { WarningIcon as r } from "./Icons/WarningIcon.js";
|
|
7
|
-
import { t as i } from "./twUtils-
|
|
7
|
+
import { t as i } from "./twUtils-D_qzdiwM.js";
|
|
8
8
|
import { AlertBase as a, AlertCloseButton as o, AlertDescription as s, AlertHeader as c, AlertPortal as l, AlertTitle as u } from "./Alert/AlertBase.js";
|
|
9
9
|
import { useCallback as d, useEffect as f, useRef as p } from "react";
|
|
10
10
|
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
@@ -31,9 +31,9 @@ var g = ({ className: g, description: _, icon: v, id: y, onClose: b, title: x, v
|
|
|
31
31
|
}, [T]);
|
|
32
32
|
let E = d(() => {
|
|
33
33
|
T();
|
|
34
|
-
}, [T])
|
|
34
|
+
}, [T]);
|
|
35
35
|
return /* @__PURE__ */ m(l, { children: /* @__PURE__ */ h(a, {
|
|
36
|
-
"aria-live":
|
|
36
|
+
"aria-live": new Set(["danger", "warning"]).has(S) ? "assertive" : "polite",
|
|
37
37
|
className: i("alert-wrapper transition-opacity duration-300", g),
|
|
38
38
|
"data-slot": "alert",
|
|
39
39
|
"data-variant": S,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./styles/main.css";
|
|
2
|
-
import { f as e, h as t, m as n, n as r, p as i, r as a, s as o } from "./proxy-
|
|
2
|
+
import { f as e, h as t, m as n, n as r, p as i, r as a, s as o } from "./proxy-CCB7C4Pu.js";
|
|
3
3
|
import * as s from "react";
|
|
4
4
|
import { Children as c, isValidElement as l, useContext as u, useId as d, useInsertionEffect as f, useMemo as p, useRef as m, useState as h } from "react";
|
|
5
5
|
import { Fragment as g, jsx as _ } from "react/jsx-runtime";
|
package/dist/Avatar.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "./styles/main.css";
|
|
3
3
|
import { UserIcon as e } from "./Icons/UserIcon.js";
|
|
4
|
-
import { t } from "./twUtils-
|
|
4
|
+
import { t } from "./twUtils-D_qzdiwM.js";
|
|
5
5
|
import { cloneElement as n, isValidElement as r, useEffect as i, useState as a } from "react";
|
|
6
6
|
import { jsx as o } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/Avatar/Avatar.tsx
|
|
@@ -24,62 +24,60 @@ var s = {
|
|
|
24
24
|
return n.length === 0 ? "?" : n.length === 1 ? n[0].charAt(0).toUpperCase() : (n[0].charAt(0) + n[n.length - 1].charAt(0)).toUpperCase();
|
|
25
25
|
}, d = ({ alt: d, className: f, fallback: p, icon: m, imageSource: h, size: g = "md", userFullName: _ }) => {
|
|
26
26
|
let [v, y] = a("loading");
|
|
27
|
-
i(() => {
|
|
27
|
+
return i(() => {
|
|
28
28
|
if (!h) return;
|
|
29
29
|
y("loading");
|
|
30
30
|
let e = new Image();
|
|
31
31
|
return e.src = h, e.onload = () => y("loaded"), e.onerror = () => y("error"), () => {
|
|
32
32
|
e.onload = null, e.onerror = null;
|
|
33
33
|
};
|
|
34
|
-
}, [h])
|
|
35
|
-
let b = () => {
|
|
36
|
-
if (_) return /* @__PURE__ */ o("span", {
|
|
37
|
-
"aria-label": _ + " avatar",
|
|
38
|
-
className: t("font-bold tracking-tighter flex h-full w-full items-center justify-center text-text-primary font-stretch-condensed", c[g]),
|
|
39
|
-
"data-testid": "spectral-avatar-initials",
|
|
40
|
-
children: u(_)
|
|
41
|
-
});
|
|
42
|
-
if (m) {
|
|
43
|
-
let e = l[g];
|
|
44
|
-
return /* @__PURE__ */ o("span", {
|
|
45
|
-
className: "flex h-full w-full items-center justify-center",
|
|
46
|
-
children: r(m) ? (() => {
|
|
47
|
-
let r = {
|
|
48
|
-
className: t("shrink-0", m.props.className),
|
|
49
|
-
"aria-hidden": "true"
|
|
50
|
-
};
|
|
51
|
-
return m.type.displayName?.includes("Icon") ?? !1 ? n(m, {
|
|
52
|
-
...r,
|
|
53
|
-
size: e
|
|
54
|
-
}) : n(m, r);
|
|
55
|
-
})() : m
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
return h && v === "loaded" ? /* @__PURE__ */ o("img", {
|
|
59
|
-
alt: d ?? "Avatar",
|
|
60
|
-
"aria-label": d ?? "Avatar",
|
|
61
|
-
className: "inset-0 absolute h-full w-full rounded-full object-cover",
|
|
62
|
-
"data-testid": "spectral-avatar-image",
|
|
63
|
-
role: "img",
|
|
64
|
-
src: h
|
|
65
|
-
}) : h && v === "error" && p ? /* @__PURE__ */ o("span", {
|
|
66
|
-
className: "flex h-full w-full items-center justify-center",
|
|
67
|
-
"data-testid": "spectral-avatar-img-error-fallback",
|
|
68
|
-
children: p
|
|
69
|
-
}) : p ? /* @__PURE__ */ o("span", {
|
|
70
|
-
className: t("flex h-full w-full items-center justify-center text-text-primary", c[g]),
|
|
71
|
-
"data-testid": "spectral-avatar-fallback",
|
|
72
|
-
children: p
|
|
73
|
-
}) : h && v === "loading" ? /* @__PURE__ */ o("span", {
|
|
74
|
-
className: "motion-safe:animate-pulse flex h-full w-full items-center justify-center",
|
|
75
|
-
"data-testid": "spectral-avatar-loading"
|
|
76
|
-
}) : /* @__PURE__ */ o(e, {});
|
|
77
|
-
};
|
|
78
|
-
return /* @__PURE__ */ o("div", {
|
|
34
|
+
}, [h]), /* @__PURE__ */ o("div", {
|
|
79
35
|
className: t("relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full bg-level-two", s[g], f),
|
|
80
36
|
"data-slot": "avatar",
|
|
81
37
|
"data-testid": "spectral-avatar",
|
|
82
|
-
children:
|
|
38
|
+
children: (() => {
|
|
39
|
+
if (_) return /* @__PURE__ */ o("span", {
|
|
40
|
+
"aria-label": _ + " avatar",
|
|
41
|
+
className: t("font-bold tracking-tighter flex h-full w-full items-center justify-center text-text-primary font-stretch-condensed", c[g]),
|
|
42
|
+
"data-testid": "spectral-avatar-initials",
|
|
43
|
+
children: u(_)
|
|
44
|
+
});
|
|
45
|
+
if (m) {
|
|
46
|
+
let e = l[g];
|
|
47
|
+
return /* @__PURE__ */ o("span", {
|
|
48
|
+
className: "flex h-full w-full items-center justify-center",
|
|
49
|
+
children: r(m) ? (() => {
|
|
50
|
+
let r = {
|
|
51
|
+
className: t("shrink-0", m.props.className),
|
|
52
|
+
"aria-hidden": "true"
|
|
53
|
+
};
|
|
54
|
+
return m.type.displayName?.includes("Icon") ?? !1 ? n(m, {
|
|
55
|
+
...r,
|
|
56
|
+
size: e
|
|
57
|
+
}) : n(m, r);
|
|
58
|
+
})() : m
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
return h && v === "loaded" ? /* @__PURE__ */ o("img", {
|
|
62
|
+
alt: d ?? "Avatar",
|
|
63
|
+
"aria-label": d ?? "Avatar",
|
|
64
|
+
className: "inset-0 absolute h-full w-full rounded-full object-cover",
|
|
65
|
+
"data-testid": "spectral-avatar-image",
|
|
66
|
+
role: "img",
|
|
67
|
+
src: h
|
|
68
|
+
}) : h && v === "error" && p ? /* @__PURE__ */ o("span", {
|
|
69
|
+
className: "flex h-full w-full items-center justify-center",
|
|
70
|
+
"data-testid": "spectral-avatar-img-error-fallback",
|
|
71
|
+
children: p
|
|
72
|
+
}) : p ? /* @__PURE__ */ o("span", {
|
|
73
|
+
className: t("flex h-full w-full items-center justify-center text-text-primary", c[g]),
|
|
74
|
+
"data-testid": "spectral-avatar-fallback",
|
|
75
|
+
children: p
|
|
76
|
+
}) : h && v === "loading" ? /* @__PURE__ */ o("span", {
|
|
77
|
+
className: "motion-safe:animate-pulse flex h-full w-full items-center justify-center",
|
|
78
|
+
"data-testid": "spectral-avatar-loading"
|
|
79
|
+
}) : /* @__PURE__ */ o(e, {});
|
|
80
|
+
})()
|
|
83
81
|
});
|
|
84
82
|
};
|
|
85
83
|
//#endregion
|
package/dist/Badge.js
CHANGED
package/dist/Button.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "./styles/main.css";
|
|
3
3
|
import { LoaderIcon as e } from "./Icons/LoaderIcon.js";
|
|
4
|
-
import { t } from "./twUtils-
|
|
4
|
+
import { t } from "./twUtils-D_qzdiwM.js";
|
|
5
5
|
import { t as n } from "./dist-B4g6zpUF.js";
|
|
6
6
|
import { Slot as r } from "./primitives/slot.js";
|
|
7
7
|
import { ErrorMessage as i } from "./utils/formFieldUtils.js";
|
package/dist/ButtonGroup.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "./styles/main.css";
|
|
3
|
-
import { t as e } from "./twUtils-
|
|
3
|
+
import { t as e } from "./twUtils-D_qzdiwM.js";
|
|
4
4
|
import { t } from "./dist-B4g6zpUF.js";
|
|
5
5
|
import { Slot as n } from "./primitives/slot.js";
|
|
6
6
|
import { Separator as r } from "./Separator.js";
|
package/dist/ButtonIcon.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "./styles/main.css";
|
|
3
3
|
import { LoaderIcon as e } from "./Icons/LoaderIcon.js";
|
|
4
|
-
import { t } from "./twUtils-
|
|
4
|
+
import { t } from "./twUtils-D_qzdiwM.js";
|
|
5
5
|
import { cloneElement as n, isValidElement as r } from "react";
|
|
6
6
|
import { jsx as i } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/ButtonIcon/ButtonIcon.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./styles/main.css";
|
|
2
|
-
import { r as e } from "./chunk-
|
|
2
|
+
import { r as e } from "./chunk-C4rFPcKS.js";
|
|
3
3
|
import { ChevronDownIcon as t } from "./Icons/ChevronDownIcon.js";
|
|
4
|
-
import { t as n } from "./twUtils-
|
|
4
|
+
import { t as n } from "./twUtils-D_qzdiwM.js";
|
|
5
5
|
import r, { createContext as i, useCallback as a, useContext as o, useEffect as s, useLayoutEffect as c, useMemo as l, useRef as u, useState as d } from "react";
|
|
6
6
|
import { jsx as f } from "react/jsx-runtime";
|
|
7
7
|
//#region node_modules/.pnpm/@date-fns+tz@1.4.1/node_modules/@date-fns/tz/tzName/index.js
|
|
@@ -943,7 +943,7 @@ var B = {
|
|
|
943
943
|
night: "night"
|
|
944
944
|
}, Be = {
|
|
945
945
|
G: function(e, t, n) {
|
|
946
|
-
let r = e.getFullYear() > 0
|
|
946
|
+
let r = +(e.getFullYear() > 0);
|
|
947
947
|
switch (t) {
|
|
948
948
|
case "G":
|
|
949
949
|
case "GG":
|
|
@@ -1871,7 +1871,7 @@ var Qt = /* @__PURE__ */ e({
|
|
|
1871
1871
|
//#region node_modules/.pnpm/react-day-picker@9.14.0_react@19.2.3/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js
|
|
1872
1872
|
function Y(e, t, n = !1, r = W) {
|
|
1873
1873
|
let { from: i, to: a } = e, { differenceInCalendarDays: o, isSameDay: s } = r;
|
|
1874
|
-
return i && a ? (o(a, i) < 0 && ([i, a] = [a, i]), o(t, i) >=
|
|
1874
|
+
return i && a ? (o(a, i) < 0 && ([i, a] = [a, i]), o(t, i) >= +!!n && o(a, t) >= +!!n) : !n && a ? s(a, t) : !n && i ? s(i, t) : !1;
|
|
1875
1875
|
}
|
|
1876
1876
|
//#endregion
|
|
1877
1877
|
//#region node_modules/.pnpm/react-day-picker@9.14.0_react@19.2.3/node_modules/react-day-picker/dist/esm/utils/typeguards.js
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "../styles/main.css";
|
|
3
|
-
import { t as e } from "../twUtils-
|
|
3
|
+
import { t as e } from "../twUtils-D_qzdiwM.js";
|
|
4
4
|
import { Slot as t } from "../primitives/slot.js";
|
|
5
5
|
import { useUncontrolledState as n } from "../hooks/useUncontrolledState.js";
|
|
6
6
|
import { createContext as r, useCallback as i, useContext as a, useEffect as o, useId as s, useRef as c } from "react";
|
package/dist/Checkbox.d.ts
CHANGED
|
@@ -1,17 +1,24 @@
|
|
|
1
|
+
import { BaseFormFieldProps, FormFieldState } from './utils/formFieldUtils';
|
|
1
2
|
import { ComponentPropsWithoutRef, ComponentRef, Ref } from 'react';
|
|
2
3
|
import { CheckboxBase } from './CheckboxBase';
|
|
3
4
|
export interface CheckboxProps extends Omit<ComponentPropsWithoutRef<typeof CheckboxBase>, 'onCheckedChange'> {
|
|
5
|
+
'aria-describedby'?: string;
|
|
6
|
+
'aria-label'?: string;
|
|
4
7
|
checked?: boolean | 'indeterminate';
|
|
5
8
|
disabled?: boolean;
|
|
6
|
-
|
|
7
|
-
|
|
9
|
+
errorMessage?: BaseFormFieldProps['errorMessage'];
|
|
10
|
+
id?: string;
|
|
11
|
+
label?: string;
|
|
12
|
+
labelText?: string;
|
|
8
13
|
name?: string;
|
|
9
14
|
onCheckedChange: (value: boolean | 'indeterminate') => void;
|
|
10
15
|
required?: boolean;
|
|
16
|
+
state?: FormFieldState;
|
|
11
17
|
value?: string;
|
|
18
|
+
warningMessage?: BaseFormFieldProps['errorMessage'];
|
|
12
19
|
}
|
|
13
20
|
export declare const Checkbox: {
|
|
14
|
-
({ checked, className, id, labelText, onCheckedChange, ref, required, ...props }: CheckboxProps & {
|
|
21
|
+
({ checked, className, errorMessage, id, label, labelText, onCheckedChange, ref, required, state, warningMessage, "aria-describedby": ariaDescribedBy, "aria-label": ariaLabel, ...props }: CheckboxProps & {
|
|
15
22
|
ref?: Ref<ComponentRef<typeof CheckboxBase>>;
|
|
16
23
|
}): import("react/jsx-runtime").JSX.Element;
|
|
17
24
|
displayName: string;
|