@spear-ai/spectral 1.10.2 → 1.11.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 +105 -97
- package/dist/Combobox/ComboboxBase.js +1 -1
- package/dist/Combobox.js +4 -3
- package/dist/{ComboboxBase-D8Nf4xC-.js → ComboboxBase-Dn8Lz9mG.js} +2 -2
- package/dist/ControlGroup/ControlGroupSelect.d.ts +17 -7
- package/dist/ControlGroup/ControlGroupSelect.js +63 -57
- package/dist/Icons/Crosshairs2Icon.d.ts +5 -0
- package/dist/Icons/Crosshairs2Icon.js +51 -0
- package/dist/Icons/CrosshairsIcon.d.ts +5 -0
- package/dist/Icons/CrosshairsIcon.js +20 -0
- package/dist/Icons/MaximizeIcon.d.ts +5 -0
- package/dist/Icons/MaximizeIcon.js +44 -0
- package/dist/Icons/MinimizeIcon.d.ts +5 -0
- package/dist/Icons/MinimizeIcon.js +44 -0
- package/dist/Icons/PauseIcon.d.ts +5 -0
- package/dist/Icons/PauseIcon.js +27 -0
- package/dist/Icons/PrinterIcon.d.ts +5 -0
- package/dist/Icons/PrinterIcon.js +21 -0
- package/dist/Icons/SparklesIcon.d.ts +5 -0
- package/dist/Icons/SparklesIcon.js +21 -0
- package/dist/Icons/UploadIcon.d.ts +5 -0
- package/dist/Icons/UploadIcon.js +37 -0
- package/dist/Icons/index.d.ts +8 -0
- package/dist/Icons.js +63 -55
- package/dist/Select.js +24 -23
- package/dist/primitives/select.d.ts +1 -1
- package/dist/primitives/select.d.ts.map +1 -1
- package/dist/primitives/select.js +8 -4
- package/dist/styles/spectral.css +1 -1
- package/package.json +1 -1
package/dist/.js
CHANGED
|
@@ -14,100 +14,108 @@ import { ChevronUpIcon as p } from "./Icons/ChevronUpIcon.js";
|
|
|
14
14
|
import { ClockIcon as m } from "./Icons/ClockIcon.js";
|
|
15
15
|
import { CloseCircleIcon as h } from "./Icons/CloseCircleIcon.js";
|
|
16
16
|
import { CloseIcon as g } from "./Icons/CloseIcon.js";
|
|
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 { n as
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import { t as
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
|
|
17
|
+
import { Crosshairs2Icon as _ } from "./Icons/Crosshairs2Icon.js";
|
|
18
|
+
import { CrosshairsIcon as v } from "./Icons/CrosshairsIcon.js";
|
|
19
|
+
import { DashboardIcon as y } from "./Icons/DashboardIcon.js";
|
|
20
|
+
import { DatabaseIcon as b } from "./Icons/DatabaseIcon.js";
|
|
21
|
+
import { DeleteIcon as x } from "./Icons/DeleteIcon.js";
|
|
22
|
+
import { DurationIcon as S } from "./Icons/DurationIcon.js";
|
|
23
|
+
import { EditIcon as C } from "./Icons/EditIcon.js";
|
|
24
|
+
import { EmailIcon as w } from "./Icons/EmailIcon.js";
|
|
25
|
+
import { EraserIcon as T } from "./Icons/EraserIcon.js";
|
|
26
|
+
import { ErrorIcon as E } from "./Icons/ErrorIcon.js";
|
|
27
|
+
import { EyeClosedIcon as D } from "./Icons/EyeClosedIcon.js";
|
|
28
|
+
import { EyeClosedIcon2 as O } from "./Icons/EyeClosedIcon2.js";
|
|
29
|
+
import { EyeOpenIcon as k } from "./Icons/EyeOpenIcon.js";
|
|
30
|
+
import { FileDownloadIcon as A } from "./Icons/FileDownloadIcon.js";
|
|
31
|
+
import { GoToFirstIcon as j } from "./Icons/GoToFirstIcon.js";
|
|
32
|
+
import { GoToLastIcon as M } from "./Icons/GoToLastIcon.js";
|
|
33
|
+
import { HarmonicCursorsIcon as N } from "./Icons/HarmonicCursorsIcon.js";
|
|
34
|
+
import { InfoIcon as P } from "./Icons/InfoIcon.js";
|
|
35
|
+
import { KeyboardIcon as F } from "./Icons/KeyboardIcon.js";
|
|
36
|
+
import { LabelIcon as I } from "./Icons/LabelIcon.js";
|
|
37
|
+
import { LassoIcon as L } from "./Icons/LassoIcon.js";
|
|
38
|
+
import { LineToolIcon as R } from "./Icons/LineToolIcon.js";
|
|
39
|
+
import { LiveViewIcon as z } from "./Icons/LiveViewIcon.js";
|
|
40
|
+
import { LoaderIcon as B } from "./Icons/LoaderIcon.js";
|
|
41
|
+
import { LocationIcon as V } from "./Icons/LocationIcon.js";
|
|
42
|
+
import { LogoutIcon as H } from "./Icons/LogoutIcon.js";
|
|
43
|
+
import { MaximizeIcon as U } from "./Icons/MaximizeIcon.js";
|
|
44
|
+
import { MeasureIcon as W } from "./Icons/MeasureIcon.js";
|
|
45
|
+
import { MessagesIcon as G } from "./Icons/MessagesIcon.js";
|
|
46
|
+
import { MetadataIcon as K } from "./Icons/MetadataIcon.js";
|
|
47
|
+
import { MinimizeIcon as q } from "./Icons/MinimizeIcon.js";
|
|
48
|
+
import { MinusIcon as J } from "./Icons/MinusIcon.js";
|
|
49
|
+
import { OntologyIcon as Y } from "./Icons/OntologyIcon.js";
|
|
50
|
+
import { PanelIconClose as X } from "./Icons/PanelIconClose.js";
|
|
51
|
+
import { PanelIconOpen as Z } from "./Icons/PanelIconOpen.js";
|
|
52
|
+
import { PauseIcon as Q } from "./Icons/PauseIcon.js";
|
|
53
|
+
import { PlayIcon as $ } from "./Icons/PlayIcon.js";
|
|
54
|
+
import { PlusIcon as ee } from "./Icons/PlusIcon.js";
|
|
55
|
+
import { PolygonIcon as te } from "./Icons/PolygonIcon.js";
|
|
56
|
+
import { PrinterIcon as ne } from "./Icons/PrinterIcon.js";
|
|
57
|
+
import { ProgressCheckIcon as re } from "./Icons/ProgressCheckIcon.js";
|
|
58
|
+
import { ResetIcon as ie } from "./Icons/ResetIcon.js";
|
|
59
|
+
import { ReviewedIcon as ae } from "./Icons/ReviewedIcon.js";
|
|
60
|
+
import { ScissorsIcon as oe } from "./Icons/ScissorsIcon.js";
|
|
61
|
+
import { SearchIcon as se } from "./Icons/SearchIcon.js";
|
|
62
|
+
import { SettingsIcon as ce } from "./Icons/SettingsIcon.js";
|
|
63
|
+
import { SortAscendingIcon as le } from "./Icons/SortAscendingIcon.js";
|
|
64
|
+
import { SortAtoZIcon as ue } from "./Icons/SortAtoZIcon.js";
|
|
65
|
+
import { SortDescendingIcon as de } from "./Icons/SortDescendingIcon.js";
|
|
66
|
+
import { SortZtoAIcon as fe } from "./Icons/SortZtoAIcon.js";
|
|
67
|
+
import { SparklesIcon as pe } from "./Icons/SparklesIcon.js";
|
|
68
|
+
import { StackIcon as me } from "./Icons/StackIcon.js";
|
|
69
|
+
import { StarIcon as he } from "./Icons/StarIcon.js";
|
|
70
|
+
import { TrashIcon as ge } from "./Icons/TrashIcon.js";
|
|
71
|
+
import { UndoIcon as _e } from "./Icons/UndoIcon.js";
|
|
72
|
+
import { UploadIcon as ve } from "./Icons/UploadIcon.js";
|
|
73
|
+
import { User2Icon as ye } from "./Icons/User2Icon.js";
|
|
74
|
+
import { UserIcon as be } from "./Icons/UserIcon.js";
|
|
75
|
+
import { WarningIcon as xe } from "./Icons/WarningIcon.js";
|
|
76
|
+
import { ZoomAllIcon as Se } from "./Icons/ZoomAllIcon.js";
|
|
77
|
+
import { ZoomXIcon as Ce } from "./Icons/ZoomXIcon.js";
|
|
78
|
+
import { ZoomYIcon as we } from "./Icons/ZoomYIcon.js";
|
|
79
|
+
import { useAccordionAutoScroll as Te } from "./hooks/useAccordionAutoScroll.js";
|
|
80
|
+
import { t as Ee } from "./Accordion-CDXdSAST.js";
|
|
81
|
+
import { t as De } from "./twUtils-VNWgstKL.js";
|
|
82
|
+
import { Alert as Oe } from "./Alert.js";
|
|
83
|
+
import { Avatar as ke } from "./Avatar.js";
|
|
84
|
+
import { Badge as Ae } from "./Badge.js";
|
|
85
|
+
import { Button as je } from "./Button.js";
|
|
86
|
+
import { Separator as Me } from "./Separator.js";
|
|
87
|
+
import { ButtonGroup as Ne, ButtonGroupItem as Pe, ButtonGroupSeparator as Fe } from "./ButtonGroup.js";
|
|
88
|
+
import { ButtonIcon as Ie } from "./ButtonIcon.js";
|
|
89
|
+
import { useControllableState as Le } from "./hooks/useControllableState.js";
|
|
90
|
+
import { Checkbox as Re } from "./Checkbox.js";
|
|
91
|
+
import { Label as ze } from "./Label.js";
|
|
92
|
+
import { InputGroup as Be, InputGroupAddon as Ve, InputGroupButton as He, InputGroupInput as Ue, InputGroupText as We, InputGroupTextarea as Ge } from "./primitives/input-group.js";
|
|
93
|
+
import { Combobox as Ke } from "./Combobox.js";
|
|
94
|
+
import { ControlGroupSelect as qe } from "./ControlGroup/ControlGroupSelect.js";
|
|
95
|
+
import { DataCard as Je } from "./DataCard.js";
|
|
96
|
+
import { Popover as Ye, PopoverContent as Xe, PopoverTrigger as Ze } from "./Popover.js";
|
|
97
|
+
import { DateTimePicker as Qe } from "./DateTimePicker.js";
|
|
98
|
+
import { Dialog as $e } from "./Dialog.js";
|
|
99
|
+
import { SpectralProvider as et } from "./SpectralProvider.js";
|
|
100
|
+
import { Drawer as tt } from "./Drawer.js";
|
|
101
|
+
import { n as nt, r as rt, t as it } from "./HoverCard-CYDsIiVK.js";
|
|
102
|
+
import { Input as at } from "./Input.js";
|
|
103
|
+
import { InputNumeric as ot } from "./InputNumeric.js";
|
|
104
|
+
import { t as st } from "./InputOTP-cVn5Bzyp.js";
|
|
105
|
+
import { Kbd as ct, KbdGroup as lt } from "./Kbd.js";
|
|
106
|
+
import { MultiSelect as ut } from "./MultiSelect.js";
|
|
107
|
+
import { RadioButtonGroup as dt, RadioButtonGroupItem as ft } from "./RadioButtonGroup.js";
|
|
108
|
+
import { RadioButton as pt } from "./RadioButton.js";
|
|
109
|
+
import { n as mt, t as ht } from "./RadioGroup-w_q6RGEK.js";
|
|
110
|
+
import { Select as gt } from "./Select.js";
|
|
111
|
+
import { Skeleton as _t } from "./Skeleton.js";
|
|
112
|
+
import { t as vt } from "./Slider-BzzZT3Zm.js";
|
|
113
|
+
import { t as yt } from "./Switch-CVzRJ-0n.js";
|
|
114
|
+
import { Tabs as bt } from "./Tabs.js";
|
|
115
|
+
import { Textarea as xt } from "./Textarea.js";
|
|
116
|
+
import { n as St, t as Ct } from "./Toast-9zqXxKKO.js";
|
|
117
|
+
import { Toggle as wt } from "./Toggle.js";
|
|
118
|
+
import { ToggleGroup as Tt, ToggleGroupItem as Et } from "./ToggleGroup.js";
|
|
119
|
+
import { i as Dt, n as Ot, t as kt } from "./Tooltip-D1K8kY1y.js";
|
|
120
|
+
import { Tray as At } from "./Tray.js";
|
|
121
|
+
export { Ee as Accordion, Oe as Alert, n as AnalyzeIcon, r as AnnotationsIcon, i as ApprovedIcon, a as ArrowDownIcon, o as ArrowUpIcon, ke as Avatar, Ae as Badge, s as BoxToolIcon, je as Button, Ne as ButtonGroup, Pe as ButtonGroupItem, Fe as ButtonGroupSeparator, Ie as ButtonIcon, c as CalendarIcon, l as CheckCircleIcon, u as CheckSquareIcon, Re as Checkbox, d as CheckmarkIcon, f as ChevronDownIcon, p as ChevronUpIcon, m as ClockIcon, h as CloseCircleIcon, g as CloseIcon, Ke as Combobox, qe as ControlGroupSelect, _ as Crosshairs2Icon, v as CrosshairsIcon, y as DashboardIcon, Je as DataCard, b as DatabaseIcon, Qe as DateTimePicker, x as DeleteIcon, $e as Dialog, tt as Drawer, S as DurationIcon, C as EditIcon, w as EmailIcon, T as EraserIcon, E as ErrorIcon, D as EyeClosedIcon, O as EyeClosedIcon2, k as EyeOpenIcon, A as FileDownloadIcon, j as GoToFirstIcon, M as GoToLastIcon, N as HarmonicCursorsIcon, it as HoverCard, nt as HoverCardContent, rt as HoverCardTrigger, e as IconBase, P as InfoIcon, at as Input, Be as InputGroup, Ve as InputGroupAddon, He as InputGroupButton, Ue as InputGroupInput, We as InputGroupText, Ge as InputGroupTextarea, ot as InputNumeric, st as InputOTP, ct as Kbd, lt as KbdGroup, F as KeyboardIcon, ze as Label, I as LabelIcon, L as LassoIcon, R as LineToolIcon, z as LiveViewIcon, B as LoaderIcon, V as LocationIcon, H as LogoutIcon, U as MaximizeIcon, W as MeasureIcon, G as MessagesIcon, K as MetadataIcon, q as MinimizeIcon, J as MinusIcon, ut as MultiSelect, Y as OntologyIcon, X as PanelIconClose, Z as PanelIconOpen, Q as PauseIcon, $ as PlayIcon, ee as PlusIcon, te as PolygonIcon, Ye as Popover, Xe as PopoverContent, Ze as PopoverTrigger, ne as PrinterIcon, re as ProgressCheckIcon, pt as RadioButton, dt as RadioButtonGroup, ft as RadioButtonGroupItem, ht as RadioGroup, mt as RadioGroupItem, ie as ResetIcon, ae as ReviewedIcon, oe as ScissorsIcon, se as SearchIcon, gt as Select, Me as Separator, ce as SettingsIcon, _t as Skeleton, vt as Slider, le as SortAscendingIcon, ue as SortAtoZIcon, de as SortDescendingIcon, fe as SortZtoAIcon, pe as SparklesIcon, et as SpectralProvider, me as StackIcon, he as StarIcon, t as SvgIdContext, yt as Switch, bt as Tabs, xt as Textarea, Ct as Toast, wt as Toggle, Tt as ToggleGroup, Et as ToggleGroupItem, kt as Tooltip, Ot as TooltipContent, Dt as TooltipTrigger, ge as TrashIcon, At as Tray, _e as UndoIcon, ve as UploadIcon, ye as User2Icon, be as UserIcon, xe as WarningIcon, Se as ZoomAllIcon, Ce as ZoomXIcon, we as ZoomYIcon, De as cn, St as toast, Te as useAccordionAutoScroll, Le as useControllableState };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../primitives/input-group.js";
|
|
2
|
-
import { a as e, i as t, n, r, t as i } from "../ComboboxBase-
|
|
2
|
+
import { a as e, i as t, n, r, t as i } from "../ComboboxBase-Dn8Lz9mG.js";
|
|
3
3
|
export { i as ComboboxBase, n as CommandEmpty, r as CommandInput, t as CommandItem, e as CommandList };
|
package/dist/Combobox.js
CHANGED
|
@@ -6,7 +6,7 @@ import { t as n } from "./twUtils-VNWgstKL.js";
|
|
|
6
6
|
import { EmptyState as ee, ErrorMessage as r, LoadingState as i, getAriaProps as a, getErrorMessageId as o, getFormFieldCSSProperties as s, getStateClasses as c, useFormFieldId as l, useFormFieldState as u } from "./utils/formFieldUtils.js";
|
|
7
7
|
import { Label as d } from "./Label.js";
|
|
8
8
|
import { InputGroup as f, InputGroupAddon as p } from "./primitives/input-group.js";
|
|
9
|
-
import { a as m, i as h, n as g, o as _ } from "./ComboboxBase-
|
|
9
|
+
import { a as m, i as h, n as g, o as _ } from "./ComboboxBase-Dn8Lz9mG.js";
|
|
10
10
|
import { useCallback as v, useRef as y, useState as b } from "react";
|
|
11
11
|
import { jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
12
12
|
//#region src/components/Combobox/Combobox.tsx
|
|
@@ -76,7 +76,7 @@ var C = ({ className: C, disabled: w, emptyMessage: T = "No options found.", err
|
|
|
76
76
|
"aria-controls": W,
|
|
77
77
|
"aria-expanded": X,
|
|
78
78
|
"aria-label": B ?? O,
|
|
79
|
-
className: "min-w-0 px-3 py-1 text-base flex-1 border-0 bg-transparent outline-hidden placeholder:text-input-text-
|
|
79
|
+
className: "min-w-0 px-3 py-1 text-base flex-1 border-0 bg-transparent text-input-text outline-hidden placeholder:text-input-text! placeholder:opacity-100 focus-visible:ring-0 focus-visible:outline-none",
|
|
80
80
|
disabled: K,
|
|
81
81
|
id: U,
|
|
82
82
|
onBlur: ie,
|
|
@@ -88,7 +88,8 @@ var C = ({ className: C, disabled: w, emptyMessage: T = "No options found.", err
|
|
|
88
88
|
...Y
|
|
89
89
|
}), /* @__PURE__ */ x(p, {
|
|
90
90
|
align: "inline-end",
|
|
91
|
-
|
|
91
|
+
className: "cursor-pointer",
|
|
92
|
+
children: q ? /* @__PURE__ */ x(t, { className: "size-5 motion-safe:animate-spin" }) : /* @__PURE__ */ x(e, { className: n("size-5 shrink-0 transition-transform duration-200", X && "rotate-180") })
|
|
92
93
|
})]
|
|
93
94
|
}), /* @__PURE__ */ x("div", {
|
|
94
95
|
className: n("left-0 mt-1 rounded-lg p-1 shadow-md absolute top-full z-50 w-full border border-input-border bg-input-bg", "motion-safe:animate-in motion-safe:fade-in-0 motion-safe:slide-in-from-top-2 motion-safe:zoom-in-95", !X && "hidden"),
|
|
@@ -479,11 +479,11 @@ var le = {
|
|
|
479
479
|
...t
|
|
480
480
|
}), pe = ({ className: e, ...t }) => /* @__PURE__ */ p(J.Empty, {
|
|
481
481
|
"data-slot": "command-empty",
|
|
482
|
-
className: a("py-6 text-
|
|
482
|
+
className: a("py-6 text-base text-center text-text-secondary", e),
|
|
483
483
|
...t
|
|
484
484
|
}), me = ({ className: t, children: n, ...r }) => /* @__PURE__ */ m(J.Item, {
|
|
485
485
|
"data-slot": "command-item",
|
|
486
|
-
className: a("group/command-item gap-2 rounded-sm px-2 py-1.5 text-
|
|
486
|
+
className: a("group/command-item gap-2 rounded-sm px-2 py-1.5 text-base in-data-[slot=dialog-content]:rounded-lg! relative flex cursor-default items-center text-input-text outline-hidden select-none hover:bg-input-bg--hover data-selected:bg-input-bg--selected data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", t),
|
|
487
487
|
...r,
|
|
488
488
|
children: [n, /* @__PURE__ */ p(e, { className: "ml-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-[checked=true]/command-item:opacity-100" })]
|
|
489
489
|
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Input } from '../primitives/input';
|
|
1
2
|
import { Select } from '../primitives/select';
|
|
2
3
|
import { FormFieldState } from '../utils/formFieldUtils';
|
|
3
4
|
import { ComponentProps } from 'react';
|
|
@@ -8,26 +9,35 @@ export interface SelectOptionType {
|
|
|
8
9
|
}
|
|
9
10
|
/** `inline`: `inputPlaceholder` / `selectPlaceholder` show inside the fields. `above`: same strings render as labels above each control (no inner placeholders). */
|
|
10
11
|
export type ControlGroupSelectCaptionLayout = 'above' | 'inline';
|
|
11
|
-
|
|
12
|
+
type ControlGroupSelectInputControlProps = {
|
|
13
|
+
inputValue: ComponentProps<typeof Input>['value'];
|
|
14
|
+
onInputChange: ComponentProps<typeof Input>['onChange'];
|
|
15
|
+
} | {
|
|
16
|
+
inputValue?: undefined;
|
|
17
|
+
onInputChange?: undefined;
|
|
18
|
+
};
|
|
19
|
+
type ControlGroupSelectBaseProps = ComponentProps<typeof Select> & Pick<ControlGroupProps, 'orientation'> & {
|
|
20
|
+
amountStep?: number;
|
|
12
21
|
/** Accessible name for the group wrapper (use when there is no visible group heading). */
|
|
13
22
|
ariaLabel?: string;
|
|
14
|
-
amountStep?: number;
|
|
15
23
|
captionLayout?: ControlGroupSelectCaptionLayout;
|
|
16
24
|
className?: string;
|
|
17
25
|
dataTestId?: string;
|
|
18
26
|
disabled?: boolean;
|
|
19
27
|
errorMessage?: string | string[] | Record<string, unknown> | null;
|
|
20
|
-
maxAmount?: number;
|
|
21
|
-
minAmount?: number;
|
|
22
|
-
inputPlaceholder?: string;
|
|
23
28
|
/** When `captionLayout` is `inline`, overrides the input's accessible name (defaults to `inputPlaceholder` when set). */
|
|
24
29
|
inputAriaLabel?: string;
|
|
30
|
+
inputPlaceholder?: string;
|
|
31
|
+
maxAmount?: number;
|
|
32
|
+
minAmount?: number;
|
|
25
33
|
selectPlaceholder?: string;
|
|
26
34
|
/** When `captionLayout` is `inline` and `selectPlaceholder` is empty, sets the select trigger's accessible name. */
|
|
27
35
|
selectAriaLabel?: string;
|
|
28
36
|
selectOptions: SelectOptionType[];
|
|
29
37
|
state?: FormFieldState;
|
|
30
38
|
type?: 'number' | 'text';
|
|
31
|
-
}
|
|
32
|
-
export
|
|
39
|
+
};
|
|
40
|
+
export type ControlGroupSelectProps = ControlGroupSelectBaseProps & ControlGroupSelectInputControlProps;
|
|
41
|
+
export declare const ControlGroupSelect: ({ amountStep, ariaLabel, captionLayout, className, dataTestId, disabled, errorMessage, inputAriaLabel, inputPlaceholder, inputValue, maxAmount, minAmount, onInputChange, orientation, selectAriaLabel, selectOptions, selectPlaceholder, state, type, ...selectProps }: ControlGroupSelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export {};
|
|
33
43
|
//# sourceMappingURL=ControlGroupSelect.d.ts.map
|
|
@@ -15,93 +15,99 @@ var g = "placeholder:text-small! [appearance:textfield] [&::-webkit-inner-spin-b
|
|
|
15
15
|
}, S = (e, t) => {
|
|
16
16
|
let n = e?.trim();
|
|
17
17
|
return n && n.length > 0 ? n : t;
|
|
18
|
-
}, C = ({ amountStep: e, ariaLabel: t, captionLayout: n = "inline", className: r, dataTestId: i = "spectral-control-group-select", disabled: a, errorMessage: o, inputAriaLabel: s, inputPlaceholder: c,
|
|
19
|
-
let
|
|
18
|
+
}, C = ({ amountStep: e, ariaLabel: t, captionLayout: n = "inline", className: r, dataTestId: i = "spectral-control-group-select", disabled: a, errorMessage: o, inputAriaLabel: s, inputPlaceholder: c, inputValue: u, maxAmount: d = 1e6, minAmount: p = 0, onInputChange: h, orientation: g = "horizontal", selectAriaLabel: y, selectOptions: b, selectPlaceholder: C, state: T = "default", type: E = "number", ...D }) => {
|
|
19
|
+
let O = f(), k = `${O}-amount`, A = `${O}-select`, j = `${k}-label`, M = `${A}-label`, N = n === "above", P = N ? void 0 : c, F = N ? void 0 : C, I = S(c, _), L = S(C, v), R = s ?? (N ? void 0 : I), z = y ?? (N ? void 0 : L), B = x(c, 3), V = x(C, 5), H = t ?? `${I} and ${L}`, U = !!a || T === "disabled", W = u !== void 0 && h !== void 0;
|
|
20
20
|
return /* @__PURE__ */ m(l, {
|
|
21
|
-
"aria-label":
|
|
21
|
+
"aria-label": H,
|
|
22
22
|
className: r,
|
|
23
23
|
"data-testid": i,
|
|
24
24
|
disabled: a,
|
|
25
25
|
errorMessage: o,
|
|
26
|
-
orientation:
|
|
27
|
-
state:
|
|
26
|
+
orientation: g,
|
|
27
|
+
state: T,
|
|
28
28
|
children: /* @__PURE__ */ m(w, {
|
|
29
29
|
amountStep: e,
|
|
30
30
|
dataTestId: i,
|
|
31
|
-
inputAccessibleName:
|
|
32
|
-
inputCaption:
|
|
33
|
-
inputId:
|
|
34
|
-
inputLabelId:
|
|
35
|
-
inputLabelText:
|
|
36
|
-
inputMinWidth:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
31
|
+
inputAccessibleName: R,
|
|
32
|
+
inputCaption: P,
|
|
33
|
+
inputId: k,
|
|
34
|
+
inputLabelId: j,
|
|
35
|
+
inputLabelText: I,
|
|
36
|
+
inputMinWidth: B,
|
|
37
|
+
inputValue: W ? u : void 0,
|
|
38
|
+
isDisabled: U,
|
|
39
|
+
maxAmount: d,
|
|
40
|
+
minAmount: p,
|
|
41
|
+
onInputChange: W ? h : void 0,
|
|
42
|
+
selectCaption: F,
|
|
43
|
+
selectOptions: b,
|
|
44
|
+
selectLabelId: M,
|
|
45
|
+
selectLabelText: L,
|
|
46
|
+
selectProps: D,
|
|
47
|
+
selectTriggerAriaLabel: z,
|
|
48
|
+
selectTriggerId: A,
|
|
49
|
+
selectTriggerMinWidth: V,
|
|
50
|
+
type: E,
|
|
51
|
+
useAboveLabels: N
|
|
50
52
|
})
|
|
51
53
|
});
|
|
52
|
-
}, w = ({ amountStep: l, dataTestId: f, inputAccessibleName: _, inputCaption: v, inputId: x, inputLabelId: S, inputLabelText: C, inputMinWidth: w,
|
|
53
|
-
let { errorMessageId:
|
|
54
|
-
"aria-describedby":
|
|
54
|
+
}, w = ({ amountStep: l, dataTestId: f, inputAccessibleName: _, inputCaption: v, inputId: x, inputLabelId: S, inputLabelText: C, inputMinWidth: w, inputValue: T, isDisabled: E, maxAmount: D, minAmount: O, onInputChange: k, selectCaption: A, selectLabelId: j, selectLabelText: M, selectOptions: N, selectProps: P, selectTriggerAriaLabel: F, selectTriggerId: I, selectTriggerMinWidth: L, type: R, useAboveLabels: z }) => {
|
|
55
|
+
let { errorMessageId: B, orientation: V, state: H } = d(), U = V === "horizontal" ? "rounded-s-md rounded-e-none" : "rounded-ss-md rounded-se-md rounded-es-none rounded-ee-none", W = V === "horizontal" ? "rounded-s-none rounded-e-md" : "rounded-ss-none rounded-se-none rounded-es-md rounded-ee-md", G = V === "horizontal" ? "me-0" : "mbe-0", K = V === "horizontal" ? "me-0 [&>*:last-child]:-ms-0.5" : "mbe-0 [&>*:last-child]:-mt-0.5", q = /* @__PURE__ */ m(r, {
|
|
56
|
+
"aria-describedby": B,
|
|
55
57
|
"aria-label": _,
|
|
56
|
-
"aria-labelledby":
|
|
57
|
-
className: e(b,
|
|
58
|
+
"aria-labelledby": z ? S : void 0,
|
|
59
|
+
className: e(b, U, t(H), R === "number" && g, R === "number" && "tabular-nums"),
|
|
58
60
|
"data-testid": `${f}-input`,
|
|
59
|
-
disabled:
|
|
60
|
-
id:
|
|
61
|
-
type:
|
|
61
|
+
disabled: E,
|
|
62
|
+
id: z ? x : void 0,
|
|
63
|
+
type: R === "number" ? "number" : "text",
|
|
62
64
|
placeholder: v,
|
|
63
65
|
style: w ? { minWidth: w } : void 0,
|
|
64
|
-
min:
|
|
65
|
-
max:
|
|
66
|
+
min: O ?? 0,
|
|
67
|
+
max: D ?? 1e6,
|
|
68
|
+
...T !== void 0 && k !== void 0 ? {
|
|
69
|
+
value: T,
|
|
70
|
+
onChange: k
|
|
71
|
+
} : {},
|
|
66
72
|
step: l ?? 1
|
|
67
|
-
}),
|
|
68
|
-
"aria-describedby":
|
|
69
|
-
"aria-label":
|
|
70
|
-
"aria-labelledby":
|
|
71
|
-
className: e(b,
|
|
73
|
+
}), J = /* @__PURE__ */ m(s, {
|
|
74
|
+
"aria-describedby": B,
|
|
75
|
+
"aria-label": F,
|
|
76
|
+
"aria-labelledby": z ? j : void 0,
|
|
77
|
+
className: e(b, W, "px-4 w-full justify-between focus-visible:ring-0", t(H)),
|
|
72
78
|
"data-testid": `${f}-select-trigger`,
|
|
73
|
-
disabled:
|
|
74
|
-
id:
|
|
75
|
-
style:
|
|
76
|
-
children: /* @__PURE__ */ m(c, { placeholder:
|
|
79
|
+
disabled: E,
|
|
80
|
+
id: z ? I : void 0,
|
|
81
|
+
style: L ? { minWidth: L } : void 0,
|
|
82
|
+
children: /* @__PURE__ */ m(c, { placeholder: A })
|
|
77
83
|
});
|
|
78
84
|
return /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(u, {
|
|
79
|
-
className:
|
|
80
|
-
children:
|
|
85
|
+
className: z ? G : void 0,
|
|
86
|
+
children: z ? /* @__PURE__ */ h("div", {
|
|
81
87
|
className: y,
|
|
82
88
|
children: [/* @__PURE__ */ m(n, {
|
|
83
89
|
className: "text-text-primary",
|
|
84
90
|
htmlFor: x,
|
|
85
91
|
id: S,
|
|
86
92
|
children: C
|
|
87
|
-
}),
|
|
88
|
-
}) :
|
|
93
|
+
}), q]
|
|
94
|
+
}) : q
|
|
89
95
|
}), /* @__PURE__ */ h(i, {
|
|
90
96
|
"data-testid": `${f}-select-root`,
|
|
91
|
-
disabled:
|
|
92
|
-
...
|
|
97
|
+
disabled: E,
|
|
98
|
+
...P,
|
|
93
99
|
children: [/* @__PURE__ */ m(u, {
|
|
94
|
-
className:
|
|
95
|
-
children:
|
|
100
|
+
className: z ? K : void 0,
|
|
101
|
+
children: z ? /* @__PURE__ */ h("div", {
|
|
96
102
|
className: y,
|
|
97
103
|
children: [/* @__PURE__ */ m(n, {
|
|
98
104
|
className: "text-text-primary",
|
|
99
|
-
htmlFor:
|
|
100
|
-
id:
|
|
101
|
-
children:
|
|
102
|
-
}),
|
|
103
|
-
}) :
|
|
104
|
-
}), /* @__PURE__ */ m(a, { children:
|
|
105
|
+
htmlFor: I,
|
|
106
|
+
id: j,
|
|
107
|
+
children: M
|
|
108
|
+
}), J]
|
|
109
|
+
}) : J
|
|
110
|
+
}), /* @__PURE__ */ m(a, { children: N.map((e) => /* @__PURE__ */ m(o, {
|
|
105
111
|
value: e.value,
|
|
106
112
|
children: e.label
|
|
107
113
|
}, e.value)) })]
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IconProps } from './iconTypes';
|
|
2
|
+
export declare const Crosshairs2Icon: (({ ref, className, ariaHidden, title, description, size, ...rest }: IconProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
3
|
+
displayName: string;
|
|
4
|
+
};
|
|
5
|
+
//# sourceMappingURL=Crosshairs2Icon.d.ts.map
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import "../styles/main.css";
|
|
2
|
+
import { IconBase as e } from "./IconBase.js";
|
|
3
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
4
|
+
var r = Object.assign(({ ref: r, className: i, ariaHidden: a, title: o, description: s, size: c = 24, ...l }) => /* @__PURE__ */ n(e, {
|
|
5
|
+
size: c,
|
|
6
|
+
className: i,
|
|
7
|
+
title: o,
|
|
8
|
+
description: s,
|
|
9
|
+
ariaHidden: a,
|
|
10
|
+
ref: r,
|
|
11
|
+
...l,
|
|
12
|
+
children: [
|
|
13
|
+
/* @__PURE__ */ t("path", {
|
|
14
|
+
d: "M12 21.0909C17.0208 21.0909 21.0909 17.0208 21.0909 12C21.0909 6.97923 17.0208 2.90909 12 2.90909C6.97923 2.90909 2.90909 6.97923 2.90909 12C2.90909 17.0208 6.97923 21.0909 12 21.0909Z",
|
|
15
|
+
stroke: "currentColor",
|
|
16
|
+
strokeWidth: "2",
|
|
17
|
+
strokeLinecap: "round",
|
|
18
|
+
strokeLinejoin: "round"
|
|
19
|
+
}),
|
|
20
|
+
/* @__PURE__ */ t("path", {
|
|
21
|
+
d: "M21.0909 12H17.4546",
|
|
22
|
+
stroke: "currentColor",
|
|
23
|
+
strokeWidth: "2",
|
|
24
|
+
strokeLinecap: "round",
|
|
25
|
+
strokeLinejoin: "round"
|
|
26
|
+
}),
|
|
27
|
+
/* @__PURE__ */ t("path", {
|
|
28
|
+
d: "M6.54545 12H2.90909",
|
|
29
|
+
stroke: "currentColor",
|
|
30
|
+
strokeWidth: "2",
|
|
31
|
+
strokeLinecap: "round",
|
|
32
|
+
strokeLinejoin: "round"
|
|
33
|
+
}),
|
|
34
|
+
/* @__PURE__ */ t("path", {
|
|
35
|
+
d: "M12 6.54545V2.90909",
|
|
36
|
+
stroke: "currentColor",
|
|
37
|
+
strokeWidth: "2",
|
|
38
|
+
strokeLinecap: "round",
|
|
39
|
+
strokeLinejoin: "round"
|
|
40
|
+
}),
|
|
41
|
+
/* @__PURE__ */ t("path", {
|
|
42
|
+
d: "M12 21.0909V17.4545",
|
|
43
|
+
stroke: "currentColor",
|
|
44
|
+
strokeWidth: "2",
|
|
45
|
+
strokeLinecap: "round",
|
|
46
|
+
strokeLinejoin: "round"
|
|
47
|
+
})
|
|
48
|
+
]
|
|
49
|
+
}), { displayName: "Crosshairs2Icon" });
|
|
50
|
+
//#endregion
|
|
51
|
+
export { r as Crosshairs2Icon };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IconProps } from './iconTypes';
|
|
2
|
+
export declare const CrosshairsIcon: (({ ref, className, ariaHidden, title, description, size, ...rest }: IconProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
3
|
+
displayName: string;
|
|
4
|
+
};
|
|
5
|
+
//# sourceMappingURL=CrosshairsIcon.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import "../styles/main.css";
|
|
2
|
+
import { IconBase as e } from "./IconBase.js";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
var n = Object.assign(({ ref: n, className: r, ariaHidden: i, title: a, description: o, size: s = 24, ...c }) => /* @__PURE__ */ t(e, {
|
|
5
|
+
size: s,
|
|
6
|
+
className: r,
|
|
7
|
+
title: a,
|
|
8
|
+
description: o,
|
|
9
|
+
ariaHidden: i,
|
|
10
|
+
ref: n,
|
|
11
|
+
...c,
|
|
12
|
+
children: /* @__PURE__ */ t("path", {
|
|
13
|
+
d: "M12 2.45454V8.18182M21.5455 12H15.8182M12 15.8182V21.5455M8.18183 12H2.45456M12 18.6818C8.30975 18.6818 5.3182 15.6903 5.3182 12C5.3182 8.30974 8.30975 5.31818 12 5.31818C15.6903 5.31818 18.6818 8.30974 18.6818 12C18.6818 15.6903 15.6903 18.6818 12 18.6818Z",
|
|
14
|
+
stroke: "currentColor",
|
|
15
|
+
strokeWidth: "2",
|
|
16
|
+
strokeLinecap: "round"
|
|
17
|
+
})
|
|
18
|
+
}), { displayName: "CrosshairsIcon" });
|
|
19
|
+
//#endregion
|
|
20
|
+
export { n as CrosshairsIcon };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IconProps } from './iconTypes';
|
|
2
|
+
export declare const MaximizeIcon: (({ ref, className, ariaHidden, title, description, size, ...rest }: IconProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
3
|
+
displayName: string;
|
|
4
|
+
};
|
|
5
|
+
//# sourceMappingURL=MaximizeIcon.d.ts.map
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import "../styles/main.css";
|
|
2
|
+
import { IconBase as e } from "./IconBase.js";
|
|
3
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
4
|
+
var r = Object.assign(({ ref: r, className: i, ariaHidden: a, title: o, description: s, size: c = 24, ...l }) => /* @__PURE__ */ n(e, {
|
|
5
|
+
size: c,
|
|
6
|
+
className: i,
|
|
7
|
+
title: o,
|
|
8
|
+
description: s,
|
|
9
|
+
ariaHidden: a,
|
|
10
|
+
ref: r,
|
|
11
|
+
...l,
|
|
12
|
+
children: [
|
|
13
|
+
/* @__PURE__ */ t("path", {
|
|
14
|
+
d: "M15 3H21V9",
|
|
15
|
+
stroke: "currentColor",
|
|
16
|
+
strokeWidth: "2",
|
|
17
|
+
strokeLinecap: "round",
|
|
18
|
+
strokeLinejoin: "round"
|
|
19
|
+
}),
|
|
20
|
+
/* @__PURE__ */ t("path", {
|
|
21
|
+
d: "M21 3L14 10",
|
|
22
|
+
stroke: "currentColor",
|
|
23
|
+
strokeWidth: "2",
|
|
24
|
+
strokeLinecap: "round",
|
|
25
|
+
strokeLinejoin: "round"
|
|
26
|
+
}),
|
|
27
|
+
/* @__PURE__ */ t("path", {
|
|
28
|
+
d: "M3 21L10 14",
|
|
29
|
+
stroke: "currentColor",
|
|
30
|
+
strokeWidth: "2",
|
|
31
|
+
strokeLinecap: "round",
|
|
32
|
+
strokeLinejoin: "round"
|
|
33
|
+
}),
|
|
34
|
+
/* @__PURE__ */ t("path", {
|
|
35
|
+
d: "M9 21H3V15",
|
|
36
|
+
stroke: "currentColor",
|
|
37
|
+
strokeWidth: "2",
|
|
38
|
+
strokeLinecap: "round",
|
|
39
|
+
strokeLinejoin: "round"
|
|
40
|
+
})
|
|
41
|
+
]
|
|
42
|
+
}), { displayName: "MaximizeIcon" });
|
|
43
|
+
//#endregion
|
|
44
|
+
export { r as MaximizeIcon };
|