@spear-ai/spectral 1.11.0 → 1.11.2
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 +3 -2
- package/dist/ButtonIcon.js +2 -2
- package/dist/Checkbox/CheckboxBase.js +1 -1
- package/dist/Combobox/ComboboxBase.js +1 -1
- package/dist/Combobox.d.ts +5 -2
- package/dist/Combobox.js +97 -69
- package/dist/{ComboboxBase-Dn8Lz9mG.js → ComboboxBase-qX-mQhT6.js} +2 -2
- package/dist/ControlGroup/ControlGroupSelect.d.ts +3 -2
- package/dist/ControlGroup/ControlGroupSelect.js +79 -71
- package/dist/DateTimePicker/DateTimeDisplayInput.js +1 -1
- package/dist/DateTimePicker.js +1 -1
- package/dist/Icons/AnalyzeIcon.d.ts +1 -1
- package/dist/Icons/AnalyzeIcon.js +5 -6
- package/dist/Icons/AnnotationsIcon.d.ts +1 -1
- package/dist/Icons/AnnotationsIcon.js +5 -6
- package/dist/Icons/ApprovedIcon.d.ts +1 -1
- package/dist/Icons/ApprovedIcon.js +5 -6
- package/dist/Icons/ArrowDownIcon.d.ts +1 -1
- package/dist/Icons/ArrowDownIcon.js +5 -6
- package/dist/Icons/ArrowUpIcon.d.ts +1 -1
- package/dist/Icons/ArrowUpIcon.js +5 -6
- package/dist/Icons/BoxToolIcon.d.ts +1 -1
- package/dist/Icons/BoxToolIcon.js +5 -6
- package/dist/Icons/CalendarIcon.d.ts +1 -1
- package/dist/Icons/CalendarIcon.js +5 -6
- package/dist/Icons/CheckCircleIcon.d.ts +1 -1
- package/dist/Icons/CheckCircleIcon.js +5 -6
- package/dist/Icons/CheckSquareIcon.d.ts +1 -1
- package/dist/Icons/CheckSquareIcon.js +5 -6
- package/dist/Icons/CheckmarkIcon.d.ts +1 -1
- package/dist/Icons/CheckmarkIcon.js +6 -7
- package/dist/Icons/ChevronDownIcon.d.ts +1 -1
- package/dist/Icons/ChevronDownIcon.js +5 -6
- package/dist/Icons/ChevronUpIcon.d.ts +1 -1
- package/dist/Icons/ChevronUpIcon.js +5 -6
- package/dist/Icons/ClockIcon.d.ts +1 -1
- package/dist/Icons/ClockIcon.js +5 -6
- package/dist/Icons/CloseCircleIcon.d.ts +1 -1
- package/dist/Icons/CloseCircleIcon.js +5 -6
- package/dist/Icons/CloseIcon.d.ts +1 -1
- package/dist/Icons/CloseIcon.js +5 -6
- package/dist/Icons/Crosshairs2Icon.d.ts +1 -1
- package/dist/Icons/Crosshairs2Icon.js +5 -6
- package/dist/Icons/CrosshairsIcon.d.ts +1 -1
- package/dist/Icons/CrosshairsIcon.js +5 -6
- package/dist/Icons/DashboardIcon.d.ts +1 -1
- package/dist/Icons/DashboardIcon.js +5 -6
- package/dist/Icons/DatabaseIcon.d.ts +1 -1
- package/dist/Icons/DatabaseIcon.js +5 -6
- package/dist/Icons/DeleteIcon.d.ts +1 -1
- package/dist/Icons/DeleteIcon.js +5 -6
- package/dist/Icons/DurationIcon.d.ts +1 -1
- package/dist/Icons/DurationIcon.js +5 -6
- package/dist/Icons/EditIcon.d.ts +1 -1
- package/dist/Icons/EditIcon.js +5 -6
- package/dist/Icons/EmailIcon.d.ts +1 -1
- package/dist/Icons/EmailIcon.js +5 -6
- package/dist/Icons/EraserIcon.d.ts +1 -1
- package/dist/Icons/EraserIcon.js +8 -9
- package/dist/Icons/ErrorIcon.d.ts +1 -1
- package/dist/Icons/ErrorIcon.js +5 -6
- package/dist/Icons/EyeClosedIcon.d.ts +1 -1
- package/dist/Icons/EyeClosedIcon.js +5 -6
- package/dist/Icons/EyeClosedIcon2.d.ts +1 -1
- package/dist/Icons/EyeClosedIcon2.js +5 -6
- package/dist/Icons/EyeOpenIcon.d.ts +1 -1
- package/dist/Icons/EyeOpenIcon.js +5 -6
- package/dist/Icons/FileDownloadIcon.d.ts +1 -1
- package/dist/Icons/FileDownloadIcon.js +5 -6
- package/dist/Icons/GoToFirstIcon.d.ts +1 -1
- package/dist/Icons/GoToFirstIcon.js +5 -6
- package/dist/Icons/GoToLastIcon.d.ts +1 -1
- package/dist/Icons/GoToLastIcon.js +5 -6
- package/dist/Icons/HarmonicCursorsIcon.d.ts +1 -1
- package/dist/Icons/HarmonicCursorsIcon.js +5 -6
- package/dist/Icons/IconBase.d.ts +2 -1
- package/dist/Icons/IconBase.js +26 -26
- package/dist/Icons/InfoIcon.d.ts +1 -1
- package/dist/Icons/InfoIcon.js +5 -6
- package/dist/Icons/KeyboardIcon.d.ts +1 -1
- package/dist/Icons/KeyboardIcon.js +5 -6
- package/dist/Icons/LabelIcon.d.ts +1 -1
- package/dist/Icons/LabelIcon.js +5 -6
- package/dist/Icons/LassoIcon.d.ts +1 -1
- package/dist/Icons/LassoIcon.js +5 -6
- package/dist/Icons/LineToolIcon.d.ts +1 -1
- package/dist/Icons/LineToolIcon.js +5 -6
- package/dist/Icons/LiveViewIcon.d.ts +1 -1
- package/dist/Icons/LiveViewIcon.js +5 -6
- package/dist/Icons/LoaderIcon.d.ts +1 -1
- package/dist/Icons/LoaderIcon.js +10 -11
- package/dist/Icons/LocationIcon.d.ts +1 -1
- package/dist/Icons/LocationIcon.js +5 -6
- package/dist/Icons/LogoutIcon.d.ts +1 -1
- package/dist/Icons/LogoutIcon.js +5 -6
- package/dist/Icons/MaximizeIcon.d.ts +1 -1
- package/dist/Icons/MaximizeIcon.js +5 -6
- package/dist/Icons/MeasureIcon.d.ts +1 -1
- package/dist/Icons/MeasureIcon.js +5 -6
- package/dist/Icons/MessagesIcon.d.ts +1 -1
- package/dist/Icons/MessagesIcon.js +5 -6
- package/dist/Icons/MetadataIcon.d.ts +1 -1
- package/dist/Icons/MetadataIcon.js +5 -6
- package/dist/Icons/MinimizeIcon.d.ts +1 -1
- package/dist/Icons/MinimizeIcon.js +5 -6
- package/dist/Icons/MinusIcon.d.ts +1 -1
- package/dist/Icons/MinusIcon.js +5 -6
- package/dist/Icons/OntologyIcon.d.ts +1 -1
- package/dist/Icons/OntologyIcon.js +5 -6
- package/dist/Icons/PanelIconClose.d.ts +1 -1
- package/dist/Icons/PanelIconClose.js +5 -6
- package/dist/Icons/PanelIconOpen.d.ts +1 -1
- package/dist/Icons/PanelIconOpen.js +5 -6
- package/dist/Icons/PauseIcon.d.ts +1 -1
- package/dist/Icons/PauseIcon.js +5 -6
- package/dist/Icons/PlayIcon.d.ts +1 -1
- package/dist/Icons/PlayIcon.js +5 -6
- package/dist/Icons/PlusIcon.d.ts +1 -1
- package/dist/Icons/PlusIcon.js +5 -6
- package/dist/Icons/PolygonIcon.d.ts +1 -1
- package/dist/Icons/PolygonIcon.js +5 -6
- package/dist/Icons/PrinterIcon.d.ts +1 -1
- package/dist/Icons/PrinterIcon.js +5 -6
- package/dist/Icons/ProgressCheckIcon.d.ts +1 -1
- package/dist/Icons/ProgressCheckIcon.js +5 -6
- package/dist/Icons/ResetIcon.d.ts +1 -1
- package/dist/Icons/ResetIcon.js +5 -6
- package/dist/Icons/ReviewedIcon.d.ts +1 -1
- package/dist/Icons/ReviewedIcon.js +5 -6
- package/dist/Icons/ScissorsIcon.d.ts +1 -1
- package/dist/Icons/ScissorsIcon.js +5 -6
- package/dist/Icons/SearchIcon.d.ts +1 -1
- package/dist/Icons/SearchIcon.js +5 -6
- package/dist/Icons/SettingsIcon.d.ts +1 -1
- package/dist/Icons/SettingsIcon.js +5 -6
- package/dist/Icons/SortAscendingIcon.d.ts +1 -1
- package/dist/Icons/SortAscendingIcon.js +5 -6
- package/dist/Icons/SortAtoZIcon.d.ts +1 -1
- package/dist/Icons/SortAtoZIcon.js +5 -6
- package/dist/Icons/SortDescendingIcon.d.ts +1 -1
- package/dist/Icons/SortDescendingIcon.js +5 -6
- package/dist/Icons/SortZtoAIcon.d.ts +1 -1
- package/dist/Icons/SortZtoAIcon.js +5 -6
- package/dist/Icons/SparklesIcon.d.ts +1 -1
- package/dist/Icons/SparklesIcon.js +5 -6
- package/dist/Icons/StackIcon.d.ts +1 -1
- package/dist/Icons/StackIcon.js +5 -6
- package/dist/Icons/StarIcon.d.ts +1 -1
- package/dist/Icons/StarIcon.js +5 -6
- package/dist/Icons/TrashIcon.d.ts +1 -1
- package/dist/Icons/TrashIcon.js +5 -6
- package/dist/Icons/UndoIcon.d.ts +1 -1
- package/dist/Icons/UndoIcon.js +5 -6
- package/dist/Icons/UploadIcon.d.ts +1 -1
- package/dist/Icons/UploadIcon.js +5 -6
- package/dist/Icons/User2Icon.d.ts +1 -1
- package/dist/Icons/User2Icon.js +5 -6
- package/dist/Icons/UserIcon.d.ts +1 -1
- package/dist/Icons/UserIcon.js +5 -6
- package/dist/Icons/WarningIcon.d.ts +1 -1
- package/dist/Icons/WarningIcon.js +5 -6
- package/dist/Icons/ZoomAllIcon.d.ts +1 -1
- package/dist/Icons/ZoomAllIcon.js +5 -6
- package/dist/Icons/ZoomXIcon.d.ts +1 -1
- package/dist/Icons/ZoomXIcon.js +5 -6
- package/dist/Icons/ZoomYIcon.d.ts +1 -1
- package/dist/Icons/ZoomYIcon.js +5 -6
- package/dist/Input.d.ts +2 -1
- package/dist/Input.js +111 -92
- package/dist/InputNumeric.d.ts +1 -1
- package/dist/InputNumeric.js +70 -65
- package/dist/MultiSelect/MultiSelectBase.d.ts +6 -3
- package/dist/MultiSelect/MultiSelectBase.js +126 -119
- package/dist/MultiSelect.d.ts +3 -2
- package/dist/MultiSelect.js +12 -11
- package/dist/Select.d.ts +2 -1
- package/dist/Select.js +83 -77
- package/dist/Switch/SwitchBase.js +1 -1
- package/dist/Textarea.d.ts +1 -1
- package/dist/Textarea.js +54 -49
- package/dist/Toggle/ToggleBase.js +1 -1
- package/dist/ToggleGroup/ToggleGroupBase.js +5 -2
- package/dist/hooks/useControllableState.d.ts +6 -1
- package/dist/hooks/useControllableState.d.ts.map +1 -1
- package/dist/hooks/useControllableState.js +2 -2
- package/dist/hooks/useUncontrolledState.d.ts +9 -0
- package/dist/hooks/useUncontrolledState.d.ts.map +1 -0
- package/dist/hooks/useUncontrolledState.js +16 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/primitives/select.d.ts +6 -1
- package/dist/primitives/select.d.ts.map +1 -1
- package/dist/primitives/select.js +85 -36
- package/dist/styles/spectral.css +2 -2
- package/dist/utils/formFieldUtils.d.ts +11 -3
- package/dist/utils/formFieldUtils.d.ts.map +1 -1
- package/dist/utils/formFieldUtils.js +31 -16
- package/package.json +1 -1
package/dist/.js
CHANGED
|
@@ -86,7 +86,7 @@ import { Button as je } from "./Button.js";
|
|
|
86
86
|
import { Separator as Me } from "./Separator.js";
|
|
87
87
|
import { ButtonGroup as Ne, ButtonGroupItem as Pe, ButtonGroupSeparator as Fe } from "./ButtonGroup.js";
|
|
88
88
|
import { ButtonIcon as Ie } from "./ButtonIcon.js";
|
|
89
|
-
import {
|
|
89
|
+
import { useUncontrolledState as Le } from "./hooks/useUncontrolledState.js";
|
|
90
90
|
import { Checkbox as Re } from "./Checkbox.js";
|
|
91
91
|
import { Label as ze } from "./Label.js";
|
|
92
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";
|
|
@@ -118,4 +118,5 @@ import { Toggle as wt } from "./Toggle.js";
|
|
|
118
118
|
import { ToggleGroup as Tt, ToggleGroupItem as Et } from "./ToggleGroup.js";
|
|
119
119
|
import { i as Dt, n as Ot, t as kt } from "./Tooltip-D1K8kY1y.js";
|
|
120
120
|
import { Tray as At } from "./Tray.js";
|
|
121
|
-
|
|
121
|
+
import { useControllableState as jt } from "./hooks/useControllableState.js";
|
|
122
|
+
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, jt as useControllableState, Le as useUncontrolledState };
|
package/dist/ButtonIcon.js
CHANGED
|
@@ -22,7 +22,7 @@ var a = "bg-transparent hover:bg-level-one text-text-primary inline-flex items-c
|
|
|
22
22
|
let _ = (e) => f?.(e), v = u ? `${d} - Loading` : d, y = () => {
|
|
23
23
|
if (u) return /* @__PURE__ */ i(e, {
|
|
24
24
|
size: o[h].icon,
|
|
25
|
-
|
|
25
|
+
"aria-hidden": "true"
|
|
26
26
|
});
|
|
27
27
|
let a = typeof l == "function" ? l() : l;
|
|
28
28
|
if (r(a)) {
|
|
@@ -34,7 +34,7 @@ var a = "bg-transparent hover:bg-level-one text-text-primary inline-flex items-c
|
|
|
34
34
|
"aria-hidden": "true"
|
|
35
35
|
});
|
|
36
36
|
let r = {
|
|
37
|
-
|
|
37
|
+
"aria-hidden": "true",
|
|
38
38
|
className: t("shrink-0", a.props.className)
|
|
39
39
|
};
|
|
40
40
|
return a.type.displayName?.endsWith("Icon") ?? !1 ? n(a, {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "../styles/main.css";
|
|
3
3
|
import { t as e } from "../twUtils-VNWgstKL.js";
|
|
4
4
|
import { Slot as t } from "../primitives/slot.js";
|
|
5
|
-
import {
|
|
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";
|
|
7
7
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
8
8
|
//#region src/components/Checkbox/CheckboxBase.tsx
|
|
@@ -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-qX-mQhT6.js";
|
|
3
3
|
export { i as ComboboxBase, n as CommandEmpty, r as CommandInput, t as CommandItem, e as CommandList };
|
package/dist/Combobox.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { BaseFormFieldProps, BaseOption } from './utils/formFieldUtils';
|
|
1
|
+
import { BaseFormFieldProps, BaseOption, DropdownWidth } from './utils/formFieldUtils';
|
|
2
2
|
import { Ref } from 'react';
|
|
3
3
|
export type ComboboxOption = BaseOption;
|
|
4
4
|
export interface ComboboxProps extends Omit<BaseFormFieldProps, 'onChange'> {
|
|
5
5
|
className?: string;
|
|
6
|
+
defaultValue?: string;
|
|
7
|
+
dropdownWidth?: DropdownWidth;
|
|
6
8
|
emptyMessage?: string;
|
|
7
9
|
labelClassName?: string;
|
|
8
10
|
loadingMessage?: string;
|
|
@@ -10,9 +12,10 @@ export interface ComboboxProps extends Omit<BaseFormFieldProps, 'onChange'> {
|
|
|
10
12
|
options: ComboboxOption[];
|
|
11
13
|
placeholder?: string;
|
|
12
14
|
value?: string;
|
|
15
|
+
warningMessage?: BaseFormFieldProps['errorMessage'];
|
|
13
16
|
}
|
|
14
17
|
export declare const Combobox: {
|
|
15
|
-
({ className, disabled, emptyMessage, errorMessage, id, label, labelClassName, loadingMessage, name, onValueChange, options, placeholder, ref, required, state, value, "aria-describedby": ariaDescribedBy, "aria-label": ariaLabel, }: ComboboxProps & {
|
|
18
|
+
({ className, disabled, defaultValue, dropdownWidth, emptyMessage, errorMessage, id, label, labelClassName, loadingMessage, name, onValueChange, options, placeholder, ref, required, state, value: valueProp, warningMessage, "aria-describedby": ariaDescribedBy, "aria-label": ariaLabel, }: ComboboxProps & {
|
|
16
19
|
ref?: Ref<HTMLDivElement>;
|
|
17
20
|
}): import("react/jsx-runtime").JSX.Element;
|
|
18
21
|
displayName: string;
|
package/dist/Combobox.js
CHANGED
|
@@ -3,108 +3,136 @@ import "./styles/main.css";
|
|
|
3
3
|
import { ChevronDownIcon as e } from "./Icons/ChevronDownIcon.js";
|
|
4
4
|
import { LoaderIcon as t } from "./Icons/LoaderIcon.js";
|
|
5
5
|
import { t as n } from "./twUtils-VNWgstKL.js";
|
|
6
|
-
import { EmptyState as ee, ErrorMessage as r, LoadingState as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
6
|
+
import { EmptyState as ee, ErrorMessage as r, LoadingState as te, WarningMessage as ne, getAriaProps as re, getDropdownSurfaceClasses as ie, getErrorMessageId as ae, getFormFieldCSSProperties as oe, getOptionClasses as i, getTriggerClasses as a, useFormFieldId as o, useFormFieldState as s } from "./utils/formFieldUtils.js";
|
|
7
|
+
import { useUncontrolledState as c } from "./hooks/useUncontrolledState.js";
|
|
8
|
+
import { Label as l } from "./Label.js";
|
|
9
|
+
import { InputGroup as u, InputGroupAddon as d } from "./primitives/input-group.js";
|
|
10
|
+
import { a as f, i as p, n as m, o as h } from "./ComboboxBase-qX-mQhT6.js";
|
|
11
|
+
import { useCallback as g, useRef as _, useState as v } from "react";
|
|
12
|
+
import { jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
12
13
|
//#region src/components/Combobox/Combobox.tsx
|
|
13
|
-
var
|
|
14
|
-
process.env.NODE_ENV !== "production" && !
|
|
15
|
-
let
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
},
|
|
14
|
+
var x = ({ className: x, disabled: se, defaultValue: ce = "", dropdownWidth: S = "trigger", emptyMessage: C = "No options found.", errorMessage: w, id: T, label: E, labelClassName: D, loadingMessage: O = "Loading…", name: k, onValueChange: A, options: j = [], placeholder: M = "Search…", ref: N, required: P, state: F = "default", value: I, warningMessage: L, "aria-describedby": R, "aria-label": z }) => {
|
|
15
|
+
process.env.NODE_ENV !== "production" && !E && !z && console.warn("Combobox: provide either `label` or `aria-label` for an accessible name.");
|
|
16
|
+
let B = _(null), V = _(null), H = o(T, k), U = `${H}-listbox`, W = ae(H), G = `${H}-warning`, le = F === "error" ? W : F === "warning" && L ? G : void 0, { isDisabled: K, isLoading: q, isInvalid: ue } = s(se, F), de = re(F, R, P, le), [J, Y] = v(!1), [fe, X] = v(""), [Z, pe] = c({
|
|
17
|
+
value: I,
|
|
18
|
+
defaultValue: ce,
|
|
19
|
+
onChange: A
|
|
20
|
+
}), me = j.find((e) => e.value === Z), Q = S === "trigger" || S === "content" ? S : "custom", $ = {
|
|
21
|
+
maxWidth: "calc(100vw - 2rem)",
|
|
22
|
+
overflowX: "auto",
|
|
23
|
+
overflowY: "auto"
|
|
24
|
+
}, he = S === "trigger" ? { width: "100%" } : S === "content" ? {
|
|
25
|
+
minWidth: "max-content",
|
|
26
|
+
width: "max-content",
|
|
27
|
+
...$
|
|
28
|
+
} : {
|
|
29
|
+
width: S,
|
|
30
|
+
...$
|
|
31
|
+
}, ge = (e) => {
|
|
32
|
+
pe(e === Z ? "" : e), X(""), Y(!1);
|
|
33
|
+
}, _e = (e) => {
|
|
34
|
+
e.key === "Escape" && Y(!1);
|
|
35
|
+
}, ve = g(() => {
|
|
20
36
|
requestAnimationFrame(() => {
|
|
21
|
-
|
|
37
|
+
V.current?.contains(document.activeElement) || (Y(!1), X(""));
|
|
22
38
|
});
|
|
23
|
-
}, []),
|
|
24
|
-
K || q || (
|
|
25
|
-
},
|
|
26
|
-
id:
|
|
39
|
+
}, []), ye = () => {
|
|
40
|
+
K || q || (B.current?.focus(), Y(!0));
|
|
41
|
+
}, be = () => q ? /* @__PURE__ */ y("div", {
|
|
42
|
+
id: U,
|
|
27
43
|
role: "listbox",
|
|
28
|
-
children: /* @__PURE__ */
|
|
29
|
-
}) :
|
|
30
|
-
id:
|
|
44
|
+
children: /* @__PURE__ */ y(te, { message: O })
|
|
45
|
+
}) : j.length === 0 ? /* @__PURE__ */ y("div", {
|
|
46
|
+
id: U,
|
|
31
47
|
role: "listbox",
|
|
32
|
-
children: /* @__PURE__ */
|
|
33
|
-
}) : /* @__PURE__ */
|
|
34
|
-
id:
|
|
35
|
-
children: [/* @__PURE__ */
|
|
36
|
-
|
|
48
|
+
children: /* @__PURE__ */ y(ee, { message: C })
|
|
49
|
+
}) : /* @__PURE__ */ b(f, {
|
|
50
|
+
id: U,
|
|
51
|
+
children: [/* @__PURE__ */ y(m, { children: C }), j.map((e) => /* @__PURE__ */ y(p, {
|
|
52
|
+
className: n(i(!!e.disabled, !1, Z === e.value), "group/command-item relative flex w-full items-center data-[selected=true]:bg-input-bg--hover"),
|
|
53
|
+
"data-checked": Z === e.value || void 0,
|
|
37
54
|
disabled: e.disabled,
|
|
38
55
|
onMouseDown: (e) => e.preventDefault(),
|
|
39
|
-
onSelect: () =>
|
|
56
|
+
onSelect: () => ge(e.value),
|
|
40
57
|
value: e.label,
|
|
41
|
-
children:
|
|
58
|
+
children: /* @__PURE__ */ y("span", {
|
|
59
|
+
className: "min-w-0 flex-1 truncate whitespace-nowrap",
|
|
60
|
+
children: e.label
|
|
61
|
+
})
|
|
42
62
|
}, e.value))]
|
|
43
63
|
});
|
|
44
|
-
return /* @__PURE__ */
|
|
64
|
+
return /* @__PURE__ */ b("div", {
|
|
45
65
|
className: "w-full",
|
|
46
|
-
ref:
|
|
66
|
+
ref: N,
|
|
47
67
|
children: [
|
|
48
|
-
|
|
68
|
+
k && /* @__PURE__ */ y("input", {
|
|
49
69
|
type: "hidden",
|
|
50
|
-
name:
|
|
51
|
-
value:
|
|
70
|
+
name: k,
|
|
71
|
+
value: Z,
|
|
52
72
|
disabled: K
|
|
53
73
|
}),
|
|
54
|
-
|
|
55
|
-
className: n("mb-2 block text-text-primary",
|
|
74
|
+
E && /* @__PURE__ */ y(l, {
|
|
75
|
+
className: n("mb-2 block text-text-primary", D, K && "text-text-secondary"),
|
|
56
76
|
"data-testid": "spectral-combobox-label",
|
|
57
|
-
htmlFor:
|
|
58
|
-
children:
|
|
77
|
+
htmlFor: H,
|
|
78
|
+
children: E
|
|
59
79
|
}),
|
|
60
|
-
/* @__PURE__ */
|
|
61
|
-
ref:
|
|
62
|
-
label:
|
|
63
|
-
onKeyDown:
|
|
64
|
-
className:
|
|
65
|
-
children: [/* @__PURE__ */
|
|
80
|
+
/* @__PURE__ */ b(h, {
|
|
81
|
+
ref: V,
|
|
82
|
+
label: z ?? E,
|
|
83
|
+
onKeyDown: _e,
|
|
84
|
+
className: "relative w-full",
|
|
85
|
+
children: [/* @__PURE__ */ b(u, {
|
|
66
86
|
"data-slot": "combobox-content",
|
|
67
|
-
"data-state":
|
|
87
|
+
"data-state": F,
|
|
68
88
|
"data-testid": "spectral-combobox-trigger",
|
|
69
|
-
className: n(
|
|
70
|
-
onClick:
|
|
71
|
-
style:
|
|
72
|
-
children: [/* @__PURE__ */
|
|
73
|
-
ref:
|
|
89
|
+
className: n(a(J, F), "ring-0!", K && "pointer-events-none cursor-not-allowed", x),
|
|
90
|
+
onClick: ye,
|
|
91
|
+
style: oe(),
|
|
92
|
+
children: [/* @__PURE__ */ y(h.Input, {
|
|
93
|
+
ref: B,
|
|
74
94
|
autoComplete: "off",
|
|
75
95
|
"data-slot": "input-group-control",
|
|
76
|
-
"aria-controls":
|
|
77
|
-
"aria-expanded":
|
|
78
|
-
"aria-label":
|
|
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",
|
|
96
|
+
"aria-controls": U,
|
|
97
|
+
"aria-expanded": J,
|
|
98
|
+
"aria-label": z ?? E,
|
|
99
|
+
className: "min-w-0 px-3 py-1 text-base flex-1 truncate overflow-hidden border-0 bg-transparent whitespace-nowrap text-input-text outline-hidden placeholder:text-input-text! placeholder:opacity-100 focus-visible:ring-0 focus-visible:outline-none",
|
|
80
100
|
disabled: K,
|
|
81
|
-
id:
|
|
82
|
-
onBlur:
|
|
83
|
-
onFocus: () => !K && !q &&
|
|
84
|
-
onValueChange:
|
|
85
|
-
placeholder:
|
|
101
|
+
id: H,
|
|
102
|
+
onBlur: ve,
|
|
103
|
+
onFocus: () => !K && !q && Y(!0),
|
|
104
|
+
onValueChange: X,
|
|
105
|
+
placeholder: me?.label ?? M,
|
|
86
106
|
role: "combobox",
|
|
87
|
-
value:
|
|
88
|
-
...
|
|
89
|
-
}), /* @__PURE__ */
|
|
107
|
+
value: fe,
|
|
108
|
+
...de
|
|
109
|
+
}), /* @__PURE__ */ y(d, {
|
|
90
110
|
align: "inline-end",
|
|
91
111
|
className: "cursor-pointer",
|
|
92
|
-
children: q ? /* @__PURE__ */
|
|
112
|
+
children: q ? /* @__PURE__ */ y(t, { className: "size-5 motion-safe:animate-spin" }) : /* @__PURE__ */ y(e, { className: n("size-5 shrink-0 transition-transform duration-200", J && "rotate-180") })
|
|
93
113
|
})]
|
|
94
|
-
}), /* @__PURE__ */
|
|
95
|
-
className: n("left-0 mt-1
|
|
114
|
+
}), /* @__PURE__ */ y("div", {
|
|
115
|
+
className: n("left-0 mt-1 p-1 absolute top-full z-50 w-full", ie(), "motion-safe:animate-in motion-safe:fade-in-0 motion-safe:slide-in-from-top-2 motion-safe:zoom-in-95", !J && "hidden"),
|
|
116
|
+
"data-dropdown-width-mode": Q,
|
|
117
|
+
"data-dropdown-width-value": Q === "custom" ? S : void 0,
|
|
96
118
|
"data-testid": "spectral-combobox-content",
|
|
97
|
-
|
|
119
|
+
style: he,
|
|
120
|
+
children: be()
|
|
98
121
|
})]
|
|
99
122
|
}),
|
|
100
|
-
|
|
123
|
+
ue && w && /* @__PURE__ */ y(r, {
|
|
101
124
|
dataTestId: "spectral-combobox-error-message",
|
|
125
|
+
id: W,
|
|
126
|
+
message: w
|
|
127
|
+
}),
|
|
128
|
+
F === "warning" && L && /* @__PURE__ */ y(ne, {
|
|
129
|
+
dataTestId: "spectral-combobox-warning-message",
|
|
102
130
|
id: G,
|
|
103
|
-
message:
|
|
131
|
+
message: L
|
|
104
132
|
})
|
|
105
133
|
]
|
|
106
134
|
});
|
|
107
135
|
};
|
|
108
|
-
|
|
136
|
+
x.displayName = "Combobox";
|
|
109
137
|
//#endregion
|
|
110
|
-
export {
|
|
138
|
+
export { x as Combobox };
|
|
@@ -460,7 +460,7 @@ var le = {
|
|
|
460
460
|
borderWidth: "0"
|
|
461
461
|
}, ue = ({ className: e, ...t }) => /* @__PURE__ */ p(J, {
|
|
462
462
|
"data-slot": "command",
|
|
463
|
-
className: a("rounded-xl!
|
|
463
|
+
className: a("rounded-xl! p-1 flex size-full flex-col overflow-hidden text-input-text", e),
|
|
464
464
|
...t
|
|
465
465
|
}), de = ({ className: e, ...n }) => /* @__PURE__ */ p("div", {
|
|
466
466
|
"data-slot": "command-input-wrapper",
|
|
@@ -483,7 +483,7 @@ var le = {
|
|
|
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
|
|
486
|
+
className: a("group/command-item text-base in-data-[slot=dialog-content]:rounded-lg! relative flex text-input-text outline-hidden select-none [&_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,6 +1,6 @@
|
|
|
1
1
|
import { Input } from '../primitives/input';
|
|
2
2
|
import { Select } from '../primitives/select';
|
|
3
|
-
import { FormFieldState } from '../utils/formFieldUtils';
|
|
3
|
+
import { DropdownWidth, FormFieldState } from '../utils/formFieldUtils';
|
|
4
4
|
import { ComponentProps } from 'react';
|
|
5
5
|
import { ControlGroupProps } from './ControlGroup';
|
|
6
6
|
export interface SelectOptionType {
|
|
@@ -24,6 +24,7 @@ type ControlGroupSelectBaseProps = ComponentProps<typeof Select> & Pick<ControlG
|
|
|
24
24
|
className?: string;
|
|
25
25
|
dataTestId?: string;
|
|
26
26
|
disabled?: boolean;
|
|
27
|
+
dropdownWidth?: DropdownWidth;
|
|
27
28
|
errorMessage?: string | string[] | Record<string, unknown> | null;
|
|
28
29
|
/** When `captionLayout` is `inline`, overrides the input's accessible name (defaults to `inputPlaceholder` when set). */
|
|
29
30
|
inputAriaLabel?: string;
|
|
@@ -38,6 +39,6 @@ type ControlGroupSelectBaseProps = ComponentProps<typeof Select> & Pick<ControlG
|
|
|
38
39
|
type?: 'number' | 'text';
|
|
39
40
|
};
|
|
40
41
|
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 declare const ControlGroupSelect: ({ amountStep, ariaLabel, captionLayout, className, dataTestId, disabled, errorMessage, dropdownWidth, inputAriaLabel, inputPlaceholder, inputValue, maxAmount, minAmount, onInputChange, orientation, selectAriaLabel, selectOptions, selectPlaceholder, state, type, ...selectProps }: ControlGroupSelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
42
43
|
export {};
|
|
43
44
|
//# sourceMappingURL=ControlGroupSelect.d.ts.map
|
|
@@ -15,102 +15,110 @@ 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,
|
|
19
|
-
let
|
|
18
|
+
}, C = ({ amountStep: e, ariaLabel: t, captionLayout: n = "inline", className: r, dataTestId: i = "spectral-control-group-select", disabled: a, errorMessage: o, dropdownWidth: s = "trigger", inputAriaLabel: c, inputPlaceholder: u, inputValue: d, maxAmount: p = 1e6, minAmount: h = 0, onInputChange: g, orientation: y = "horizontal", selectAriaLabel: b, selectOptions: C, selectPlaceholder: T, state: E = "default", type: D = "number", ...O }) => {
|
|
19
|
+
let k = f(), A = `${k}-amount`, j = `${k}-select`, M = `${A}-label`, N = `${j}-label`, P = n === "above", F = P ? void 0 : u, I = P ? void 0 : T, L = S(u, _), R = S(T, v), z = c ?? (P ? void 0 : L), B = b ?? (P ? void 0 : R), V = x(u, 3), H = x(T, 5), U = t ?? `${L} and ${R}`, W = !!a || E === "disabled", G = d !== void 0 && g !== void 0;
|
|
20
20
|
return /* @__PURE__ */ m(l, {
|
|
21
|
-
"aria-label":
|
|
21
|
+
"aria-label": U,
|
|
22
22
|
className: r,
|
|
23
23
|
"data-testid": i,
|
|
24
24
|
disabled: a,
|
|
25
25
|
errorMessage: o,
|
|
26
|
-
orientation:
|
|
27
|
-
state:
|
|
26
|
+
orientation: y,
|
|
27
|
+
state: E,
|
|
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
|
-
inputValue:
|
|
38
|
-
isDisabled:
|
|
39
|
-
maxAmount:
|
|
40
|
-
minAmount:
|
|
41
|
-
onInputChange:
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
31
|
+
inputAccessibleName: z,
|
|
32
|
+
inputCaption: F,
|
|
33
|
+
inputId: A,
|
|
34
|
+
inputLabelId: M,
|
|
35
|
+
inputLabelText: L,
|
|
36
|
+
inputMinWidth: V,
|
|
37
|
+
inputValue: G ? d : void 0,
|
|
38
|
+
isDisabled: W,
|
|
39
|
+
maxAmount: p,
|
|
40
|
+
minAmount: h,
|
|
41
|
+
onInputChange: G ? g : void 0,
|
|
42
|
+
dropdownWidth: s,
|
|
43
|
+
selectCaption: I,
|
|
44
|
+
selectOptions: C,
|
|
45
|
+
selectLabelId: N,
|
|
46
|
+
selectLabelText: R,
|
|
47
|
+
selectProps: O,
|
|
48
|
+
selectTriggerAriaLabel: B,
|
|
49
|
+
selectTriggerId: j,
|
|
50
|
+
selectTriggerMinWidth: H,
|
|
51
|
+
type: D,
|
|
52
|
+
useAboveLabels: P
|
|
52
53
|
})
|
|
53
54
|
});
|
|
54
|
-
}, w = ({ amountStep: l, dataTestId: f,
|
|
55
|
-
let { errorMessageId:
|
|
56
|
-
"aria-describedby":
|
|
57
|
-
"aria-label":
|
|
58
|
-
"aria-labelledby":
|
|
59
|
-
className: e(b,
|
|
55
|
+
}, w = ({ amountStep: l, dataTestId: f, dropdownWidth: _, inputAccessibleName: v, inputCaption: x, inputId: S, inputLabelId: C, inputLabelText: w, inputMinWidth: T, inputValue: E, isDisabled: D, maxAmount: O, minAmount: k, onInputChange: A, selectCaption: j, selectLabelId: M, selectLabelText: N, selectOptions: P, selectProps: F, selectTriggerAriaLabel: I, selectTriggerId: L, selectTriggerMinWidth: R, type: z, useAboveLabels: B }) => {
|
|
56
|
+
let { errorMessageId: V, orientation: H, state: U } = d(), W = H === "horizontal" ? "rounded-s-md rounded-e-none" : "rounded-ss-md rounded-se-md rounded-es-none rounded-ee-none", G = H === "horizontal" ? "rounded-s-none rounded-e-md" : "rounded-ss-none rounded-se-none rounded-es-md rounded-ee-md", K = H === "horizontal" ? "me-0" : "mbe-0", q = H === "horizontal" ? "me-0 [&>*:last-child]:-ms-0.5" : "mbe-0 [&>*:last-child]:-mt-0.5", J = /* @__PURE__ */ m(r, {
|
|
57
|
+
"aria-describedby": V,
|
|
58
|
+
"aria-label": v,
|
|
59
|
+
"aria-labelledby": B ? C : void 0,
|
|
60
|
+
className: e(b, W, t(U), z === "number" && g, z === "number" && "tabular-nums"),
|
|
60
61
|
"data-testid": `${f}-input`,
|
|
61
|
-
disabled:
|
|
62
|
-
id:
|
|
63
|
-
type:
|
|
64
|
-
placeholder:
|
|
65
|
-
style:
|
|
66
|
-
min:
|
|
67
|
-
max:
|
|
68
|
-
...
|
|
69
|
-
value:
|
|
70
|
-
onChange:
|
|
62
|
+
disabled: D,
|
|
63
|
+
id: B ? S : void 0,
|
|
64
|
+
type: z === "number" ? "number" : "text",
|
|
65
|
+
placeholder: x,
|
|
66
|
+
style: T ? { minWidth: T } : void 0,
|
|
67
|
+
min: k ?? 0,
|
|
68
|
+
max: O ?? 1e6,
|
|
69
|
+
...E !== void 0 && A !== void 0 ? {
|
|
70
|
+
value: E,
|
|
71
|
+
onChange: A
|
|
71
72
|
} : {},
|
|
72
73
|
step: l ?? 1
|
|
73
|
-
}),
|
|
74
|
-
"aria-describedby":
|
|
75
|
-
"aria-label":
|
|
76
|
-
"aria-labelledby":
|
|
77
|
-
className: e(b,
|
|
74
|
+
}), Y = /* @__PURE__ */ m(s, {
|
|
75
|
+
"aria-describedby": V,
|
|
76
|
+
"aria-label": I,
|
|
77
|
+
"aria-labelledby": B ? M : void 0,
|
|
78
|
+
className: e(b, G, "px-4 w-full justify-between focus-visible:ring-0", t(U)),
|
|
78
79
|
"data-testid": `${f}-select-trigger`,
|
|
79
|
-
disabled:
|
|
80
|
-
id:
|
|
81
|
-
style:
|
|
82
|
-
children: /* @__PURE__ */ m(c, {
|
|
80
|
+
disabled: D,
|
|
81
|
+
id: B ? L : void 0,
|
|
82
|
+
style: R ? { minWidth: R } : void 0,
|
|
83
|
+
children: /* @__PURE__ */ m(c, {
|
|
84
|
+
className: "min-w-0 block max-w-full truncate text-left whitespace-nowrap text-input-text! data-placeholder:text-input-text!",
|
|
85
|
+
placeholder: j
|
|
86
|
+
})
|
|
83
87
|
});
|
|
84
88
|
return /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(u, {
|
|
85
|
-
className:
|
|
86
|
-
children:
|
|
89
|
+
className: B ? K : void 0,
|
|
90
|
+
children: B ? /* @__PURE__ */ h("div", {
|
|
87
91
|
className: y,
|
|
88
92
|
children: [/* @__PURE__ */ m(n, {
|
|
89
93
|
className: "text-text-primary",
|
|
90
|
-
htmlFor:
|
|
91
|
-
id:
|
|
92
|
-
children:
|
|
93
|
-
}),
|
|
94
|
-
}) :
|
|
94
|
+
htmlFor: S,
|
|
95
|
+
id: C,
|
|
96
|
+
children: w
|
|
97
|
+
}), J]
|
|
98
|
+
}) : J
|
|
95
99
|
}), /* @__PURE__ */ h(i, {
|
|
96
100
|
"data-testid": `${f}-select-root`,
|
|
97
|
-
disabled:
|
|
98
|
-
...
|
|
101
|
+
disabled: D,
|
|
102
|
+
...F,
|
|
99
103
|
children: [/* @__PURE__ */ m(u, {
|
|
100
|
-
className:
|
|
101
|
-
children:
|
|
104
|
+
className: B ? q : void 0,
|
|
105
|
+
children: B ? /* @__PURE__ */ h("div", {
|
|
102
106
|
className: y,
|
|
103
107
|
children: [/* @__PURE__ */ m(n, {
|
|
104
108
|
className: "text-text-primary",
|
|
105
|
-
htmlFor:
|
|
106
|
-
id:
|
|
107
|
-
children:
|
|
108
|
-
}),
|
|
109
|
-
}) :
|
|
110
|
-
}), /* @__PURE__ */ m(a, {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
109
|
+
htmlFor: L,
|
|
110
|
+
id: M,
|
|
111
|
+
children: N
|
|
112
|
+
}), Y]
|
|
113
|
+
}) : Y
|
|
114
|
+
}), /* @__PURE__ */ m(a, {
|
|
115
|
+
"data-testid": `${f}-select-content`,
|
|
116
|
+
dropdownWidth: _,
|
|
117
|
+
children: P.map((e) => /* @__PURE__ */ m(o, {
|
|
118
|
+
value: e.value,
|
|
119
|
+
children: e.label
|
|
120
|
+
}, e.value))
|
|
121
|
+
})]
|
|
114
122
|
})] });
|
|
115
123
|
};
|
|
116
124
|
//#endregion
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "../styles/main.css";
|
|
3
3
|
import { t as e } from "../twUtils-VNWgstKL.js";
|
|
4
4
|
import { getInputClasses as t } from "../utils/formFieldUtils.js";
|
|
5
|
-
import {
|
|
5
|
+
import { useUncontrolledState as n } from "../hooks/useUncontrolledState.js";
|
|
6
6
|
import { Label as r } from "../Label.js";
|
|
7
7
|
import { S as i, b as a, f as o } from "../DateTimeUtils-DVvG6H-p.js";
|
|
8
8
|
import { forwardRef as s, useCallback as c, useEffect as l, useMemo as u, useRef as d } from "react";
|
package/dist/DateTimePicker.js
CHANGED
|
@@ -3,7 +3,7 @@ import "./styles/main.css";
|
|
|
3
3
|
import { CalendarIcon as e } from "./Icons/CalendarIcon.js";
|
|
4
4
|
import { t } from "./twUtils-VNWgstKL.js";
|
|
5
5
|
import { ErrorMessage as n } from "./utils/formFieldUtils.js";
|
|
6
|
-
import {
|
|
6
|
+
import { useUncontrolledState as r } from "./hooks/useUncontrolledState.js";
|
|
7
7
|
import { Popover as i, PopoverContent as a, PopoverTrigger as o } from "./Popover.js";
|
|
8
8
|
import { t as s } from "./Calendar-s4lyijkn.js";
|
|
9
9
|
import { A as c, C as l, D as u, E as d, F as f, I as p, L as m, M as h, N as g, O as _, P as v, S as y, T as b, _ as x, a as S, b as C, c as w, d as T, f as E, g as D, h as O, i as k, j as A, k as j, l as M, m as N, n as P, o as F, p as I, r as L, s as R, t as z, u as B, v as V, w as H, x as U, y as W } from "./DateTimeUtils-DVvG6H-p.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IconProps } from './iconTypes';
|
|
2
|
-
export declare const AnalyzeIcon: (({ ref, className,
|
|
2
|
+
export declare const AnalyzeIcon: (({ ref, className, title, description, size, ...rest }: IconProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
3
3
|
displayName: string;
|
|
4
4
|
};
|
|
5
5
|
//# sourceMappingURL=AnalyzeIcon.d.ts.map
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import "../styles/main.css";
|
|
2
2
|
import { IconBase as e } from "./IconBase.js";
|
|
3
3
|
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
4
|
-
var r = Object.assign(({ ref: r, className: i,
|
|
5
|
-
size:
|
|
4
|
+
var r = Object.assign(({ ref: r, className: i, title: a, description: o, size: s = 24, ...c }) => /* @__PURE__ */ n(e, {
|
|
5
|
+
size: s,
|
|
6
6
|
className: i,
|
|
7
|
-
title:
|
|
8
|
-
description:
|
|
9
|
-
ariaHidden: a,
|
|
7
|
+
title: a,
|
|
8
|
+
description: o,
|
|
10
9
|
ref: r,
|
|
11
|
-
...
|
|
10
|
+
...c,
|
|
12
11
|
children: [
|
|
13
12
|
/* @__PURE__ */ t("path", {
|
|
14
13
|
d: "M20.8889 10.8889C20.6171 8.93372 19.71 7.12214 18.3074 5.73317C16.9048 4.34421 15.0844 3.4549 13.1267 3.20222C11.3783 2.97471 9.60165 3.26606 8.01753 4.04004C6.43341 4.81403 5.11169 6.03652 4.21667 7.55555",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IconProps } from './iconTypes';
|
|
2
|
-
export declare const AnnotationsIcon: (({ ref, className,
|
|
2
|
+
export declare const AnnotationsIcon: (({ ref, className, title, description, size, ...rest }: IconProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
3
3
|
displayName: string;
|
|
4
4
|
};
|
|
5
5
|
//# sourceMappingURL=AnnotationsIcon.d.ts.map
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import "../styles/main.css";
|
|
2
2
|
import { IconBase as e } from "./IconBase.js";
|
|
3
3
|
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
-
var n = Object.assign(({ ref: n, className: r,
|
|
5
|
-
size:
|
|
4
|
+
var n = Object.assign(({ ref: n, className: r, title: i, description: a, size: o = 24, ...s }) => /* @__PURE__ */ t(e, {
|
|
5
|
+
size: o,
|
|
6
6
|
className: r,
|
|
7
|
-
title:
|
|
8
|
-
description:
|
|
9
|
-
ariaHidden: i,
|
|
7
|
+
title: i,
|
|
8
|
+
description: a,
|
|
10
9
|
ref: n,
|
|
11
|
-
...
|
|
10
|
+
...s,
|
|
12
11
|
children: /* @__PURE__ */ t("path", {
|
|
13
12
|
d: "M13.6952 5.72122L15.8197 3.59668C16.6152 2.80111 17.9052 2.80111 18.7007 3.59668L20.4034 5.29931C21.1989 6.09488 21.1989 7.38475 20.4034 8.18031L18.2788 10.3049M13.6952 5.72122L3.29833 16.118C3.10732 16.309 3 16.5681 3 16.8383V21H7.16173C7.43187 21 7.69096 20.8927 7.88197 20.7017L18.2788 10.3049M13.6952 5.72122L18.2788 10.3049",
|
|
14
13
|
stroke: "currentColor",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IconProps } from './iconTypes';
|
|
2
|
-
export declare const ApprovedIcon: (({ ref, className,
|
|
2
|
+
export declare const ApprovedIcon: (({ ref, className, title, description, size, ...rest }: IconProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
3
3
|
displayName: string;
|
|
4
4
|
};
|
|
5
5
|
//# sourceMappingURL=ApprovedIcon.d.ts.map
|