@spear-ai/spectral 1.4.11 → 1.4.13

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/Icons.js CHANGED
@@ -6,57 +6,60 @@ import { ArrowUpIcon as x } from "./Icons/ArrowUpIcon.js";
6
6
  import { CalendarIcon as s } from "./Icons/CalendarIcon.js";
7
7
  import { CheckCircleIcon as i } from "./Icons/CheckCircleIcon.js";
8
8
  import { CheckSquareIcon as d } from "./Icons/CheckSquareIcon.js";
9
- import { CheckmarkIcon as g } from "./Icons/CheckmarkIcon.js";
10
- import { ChevronDownIcon as A } from "./Icons/ChevronDownIcon.js";
11
- import { ChevronUpIcon as S } from "./Icons/ChevronUpIcon.js";
12
- import { ClockIcon as u } from "./Icons/ClockIcon.js";
13
- import { CloseCircleIcon as y } from "./Icons/CloseCircleIcon.js";
9
+ import { CheckmarkIcon as L } from "./Icons/CheckmarkIcon.js";
10
+ import { ChevronDownIcon as g } from "./Icons/ChevronDownIcon.js";
11
+ import { ChevronUpIcon as D } from "./Icons/ChevronUpIcon.js";
12
+ import { ClockIcon as k } from "./Icons/ClockIcon.js";
13
+ import { CloseCircleIcon as w } from "./Icons/CloseCircleIcon.js";
14
14
  import { CloseIcon as v } from "./Icons/CloseIcon.js";
15
- import { DashboardIcon as P } from "./Icons/DashboardIcon.js";
16
- import { DatabaseIcon as b } from "./Icons/DatabaseIcon.js";
17
- import { DeleteIcon as O } from "./Icons/DeleteIcon.js";
15
+ import { DashboardIcon as Z } from "./Icons/DashboardIcon.js";
16
+ import { DatabaseIcon as U } from "./Icons/DatabaseIcon.js";
17
+ import { DeleteIcon as M } from "./Icons/DeleteIcon.js";
18
18
  import { DurationIcon as G } from "./Icons/DurationIcon.js";
19
- import { EmailIcon as q } from "./Icons/EmailIcon.js";
20
- import { EraserIcon as F } from "./Icons/EraserIcon.js";
21
- import { ErrorIcon as V } from "./Icons/ErrorIcon.js";
22
- import { EyeClosedIcon as X } from "./Icons/EyeClosedIcon.js";
23
- import { EyeClosedIcon2 as j } from "./Icons/EyeClosedIcon2.js";
24
- import { EyeOpenIcon as J } from "./Icons/EyeOpenIcon.js";
25
- import { GoToFirstIcon as N } from "./Icons/GoToFirstIcon.js";
26
- import { GoToLastIcon as _ } from "./Icons/GoToLastIcon.js";
27
- import { HarmonicCursorsIcon as oo } from "./Icons/HarmonicCursorsIcon.js";
28
- import { InfoIcon as eo } from "./Icons/InfoIcon.js";
29
- import { LabelIcon as to } from "./Icons/LabelIcon.js";
30
- import { LassoIcon as mo } from "./Icons/LassoIcon.js";
31
- import { LineToolIcon as fo } from "./Icons/LineToolIcon.js";
32
- import { LineToolIcon2 as xo } from "./Icons/LineToolIcon2.js";
33
- import { LiveViewIcon as so } from "./Icons/LiveViewIcon.js";
34
- import { LoaderIcon as io } from "./Icons/LoaderIcon.js";
35
- import { LocationIcon as Lo } from "./Icons/LocationIcon.js";
19
+ import { EditIcon as q } from "./Icons/EditIcon.js";
20
+ import { EmailIcon as F } from "./Icons/EmailIcon.js";
21
+ import { EraserIcon as V } from "./Icons/EraserIcon.js";
22
+ import { ErrorIcon as X } from "./Icons/ErrorIcon.js";
23
+ import { EyeClosedIcon as j } from "./Icons/EyeClosedIcon.js";
24
+ import { EyeClosedIcon2 as J } from "./Icons/EyeClosedIcon2.js";
25
+ import { EyeOpenIcon as N } from "./Icons/EyeOpenIcon.js";
26
+ import { GoToFirstIcon as _ } from "./Icons/GoToFirstIcon.js";
27
+ import { GoToLastIcon as oo } from "./Icons/GoToLastIcon.js";
28
+ import { HarmonicCursorsIcon as eo } from "./Icons/HarmonicCursorsIcon.js";
29
+ import { InfoIcon as to } from "./Icons/InfoIcon.js";
30
+ import { LabelIcon as mo } from "./Icons/LabelIcon.js";
31
+ import { LassoIcon as fo } from "./Icons/LassoIcon.js";
32
+ import { LineToolIcon as xo } from "./Icons/LineToolIcon.js";
33
+ import { LineToolIcon2 as so } from "./Icons/LineToolIcon2.js";
34
+ import { LiveViewIcon as io } from "./Icons/LiveViewIcon.js";
35
+ import { LoaderIcon as Ao } from "./Icons/LoaderIcon.js";
36
+ import { LocationIcon as So } from "./Icons/LocationIcon.js";
36
37
  import { LogoutIcon as ho } from "./Icons/LogoutIcon.js";
37
- import { MessagesIcon as Do } from "./Icons/MessagesIcon.js";
38
- import { MetadataIcon as ko } from "./Icons/MetadataIcon.js";
39
- import { MinusIcon as wo } from "./Icons/MinusIcon.js";
40
- import { OntologyIcon as Eo } from "./Icons/OntologyIcon.js";
41
- import { PanelIconClose as To } from "./Icons/PanelIconClose.js";
42
- import { PanelIconOpen as Uo } from "./Icons/PanelIconOpen.js";
43
- import { PlayIcon as Mo } from "./Icons/PlayIcon.js";
44
- import { PlusIcon as Zo } from "./Icons/PlusIcon.js";
45
- import { ResetIcon as Ro } from "./Icons/ResetIcon.js";
46
- import { ReviewedIcon as zo } from "./Icons/ReviewedIcon.js";
47
- import { ScissorsIcon as Ho } from "./Icons/ScissorsIcon.js";
48
- import { SettingsIcon as Wo } from "./Icons/SettingsIcon.js";
49
- import { SortAscendingIcon as Yo } from "./Icons/SortAscendingIcon.js";
50
- import { SortDescendingIcon as Bo } from "./Icons/SortDescendingIcon.js";
51
- import { StackIcon as Ko } from "./Icons/StackIcon.js";
52
- import { StarIcon as Qo } from "./Icons/StarIcon.js";
53
- import { TrashIcon as $o } from "./Icons/TrashIcon.js";
54
- import { UndoIcon as rr } from "./Icons/UndoIcon.js";
55
- import { UserIcon as nr } from "./Icons/UserIcon.js";
56
- import { WarningIcon as cr } from "./Icons/WarningIcon.js";
57
- import { ZoomAllIcon as pr } from "./Icons/ZoomAllIcon.js";
58
- import { ZoomXIcon as Ir } from "./Icons/ZoomXIcon.js";
59
- import { ZoomYIcon as ar } from "./Icons/ZoomYIcon.js";
38
+ import { MessagesIcon as Eo } from "./Icons/MessagesIcon.js";
39
+ import { MetadataIcon as uo } from "./Icons/MetadataIcon.js";
40
+ import { MinusIcon as yo } from "./Icons/MinusIcon.js";
41
+ import { OntologyIcon as To } from "./Icons/OntologyIcon.js";
42
+ import { PanelIconClose as Po } from "./Icons/PanelIconClose.js";
43
+ import { PanelIconOpen as bo } from "./Icons/PanelIconOpen.js";
44
+ import { PlayIcon as Oo } from "./Icons/PlayIcon.js";
45
+ import { PlusIcon as Ro } from "./Icons/PlusIcon.js";
46
+ import { ResetIcon as zo } from "./Icons/ResetIcon.js";
47
+ import { ReviewedIcon as Ho } from "./Icons/ReviewedIcon.js";
48
+ import { ScissorsIcon as Wo } from "./Icons/ScissorsIcon.js";
49
+ import { SettingsIcon as Yo } from "./Icons/SettingsIcon.js";
50
+ import { SortAscendingIcon as Bo } from "./Icons/SortAscendingIcon.js";
51
+ import { SortAtoZIcon as Ko } from "./Icons/SortAtoZIcon.js";
52
+ import { SortDescendingIcon as Qo } from "./Icons/SortDescendingIcon.js";
53
+ import { SortZtoAIcon as $o } from "./Icons/SortZtoAIcon.js";
54
+ import { StackIcon as rr } from "./Icons/StackIcon.js";
55
+ import { StarIcon as nr } from "./Icons/StarIcon.js";
56
+ import { TrashIcon as cr } from "./Icons/TrashIcon.js";
57
+ import { UndoIcon as pr } from "./Icons/UndoIcon.js";
58
+ import { UserIcon as Ir } from "./Icons/UserIcon.js";
59
+ import { WarningIcon as ar } from "./Icons/WarningIcon.js";
60
+ import { ZoomAllIcon as lr } from "./Icons/ZoomAllIcon.js";
61
+ import { ZoomXIcon as Cr } from "./Icons/ZoomXIcon.js";
62
+ import { ZoomYIcon as Ar } from "./Icons/ZoomYIcon.js";
60
63
  export {
61
64
  e as AnalyzeIcon,
62
65
  t as AnnotationsIcon,
@@ -66,55 +69,58 @@ export {
66
69
  s as CalendarIcon,
67
70
  i as CheckCircleIcon,
68
71
  d as CheckSquareIcon,
69
- g as CheckmarkIcon,
70
- A as ChevronDownIcon,
71
- S as ChevronUpIcon,
72
- u as ClockIcon,
73
- y as CloseCircleIcon,
72
+ L as CheckmarkIcon,
73
+ g as ChevronDownIcon,
74
+ D as ChevronUpIcon,
75
+ k as ClockIcon,
76
+ w as CloseCircleIcon,
74
77
  v as CloseIcon,
75
- P as DashboardIcon,
76
- b as DatabaseIcon,
77
- O as DeleteIcon,
78
+ Z as DashboardIcon,
79
+ U as DatabaseIcon,
80
+ M as DeleteIcon,
78
81
  G as DurationIcon,
79
- q as EmailIcon,
80
- F as EraserIcon,
81
- V as ErrorIcon,
82
- X as EyeClosedIcon,
83
- j as EyeClosedIcon2,
84
- J as EyeOpenIcon,
85
- N as GoToFirstIcon,
86
- _ as GoToLastIcon,
87
- oo as HarmonicCursorsIcon,
88
- eo as InfoIcon,
89
- to as LabelIcon,
90
- mo as LassoIcon,
91
- fo as LineToolIcon,
92
- xo as LineToolIcon2,
93
- so as LiveViewIcon,
94
- io as LoaderIcon,
95
- Lo as LocationIcon,
82
+ q as EditIcon,
83
+ F as EmailIcon,
84
+ V as EraserIcon,
85
+ X as ErrorIcon,
86
+ j as EyeClosedIcon,
87
+ J as EyeClosedIcon2,
88
+ N as EyeOpenIcon,
89
+ _ as GoToFirstIcon,
90
+ oo as GoToLastIcon,
91
+ eo as HarmonicCursorsIcon,
92
+ to as InfoIcon,
93
+ mo as LabelIcon,
94
+ fo as LassoIcon,
95
+ xo as LineToolIcon,
96
+ so as LineToolIcon2,
97
+ io as LiveViewIcon,
98
+ Ao as LoaderIcon,
99
+ So as LocationIcon,
96
100
  ho as LogoutIcon,
97
- Do as MessagesIcon,
98
- ko as MetadataIcon,
99
- wo as MinusIcon,
100
- Eo as OntologyIcon,
101
- To as PanelIconClose,
102
- Uo as PanelIconOpen,
103
- Mo as PlayIcon,
104
- Zo as PlusIcon,
105
- Ro as ResetIcon,
106
- zo as ReviewedIcon,
107
- Ho as ScissorsIcon,
108
- Wo as SettingsIcon,
109
- Yo as SortAscendingIcon,
110
- Bo as SortDescendingIcon,
111
- Ko as StackIcon,
112
- Qo as StarIcon,
113
- $o as TrashIcon,
114
- rr as UndoIcon,
115
- nr as UserIcon,
116
- cr as WarningIcon,
117
- pr as ZoomAllIcon,
118
- Ir as ZoomXIcon,
119
- ar as ZoomYIcon
101
+ Eo as MessagesIcon,
102
+ uo as MetadataIcon,
103
+ yo as MinusIcon,
104
+ To as OntologyIcon,
105
+ Po as PanelIconClose,
106
+ bo as PanelIconOpen,
107
+ Oo as PlayIcon,
108
+ Ro as PlusIcon,
109
+ zo as ResetIcon,
110
+ Ho as ReviewedIcon,
111
+ Wo as ScissorsIcon,
112
+ Yo as SettingsIcon,
113
+ Bo as SortAscendingIcon,
114
+ Ko as SortAtoZIcon,
115
+ Qo as SortDescendingIcon,
116
+ $o as SortZtoAIcon,
117
+ rr as StackIcon,
118
+ nr as StarIcon,
119
+ cr as TrashIcon,
120
+ pr as UndoIcon,
121
+ Ir as UserIcon,
122
+ ar as WarningIcon,
123
+ lr as ZoomAllIcon,
124
+ Cr as ZoomXIcon,
125
+ Ar as ZoomYIcon
120
126
  };
package/dist/Input.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import "./styles/main.css";
3
3
  import { jsxs as u, jsx as t } from "react/jsx-runtime";
4
- import { usePasswordVisibility as tt, usePrefixWidth as et, useClearOnFocus as rt } from "./Input/InputUtils.js";
4
+ import { usePasswordVisibility as tt, usePrefixWidth as rt, useClearOnFocus as et } from "./Input/InputUtils.js";
5
5
  import "./Icons/AnalyzeIcon.js";
6
6
  import "./Icons/AnnotationsIcon.js";
7
7
  import "./Icons/ApprovedIcon.js";
@@ -20,6 +20,7 @@ import "./Icons/DashboardIcon.js";
20
20
  import "./Icons/DatabaseIcon.js";
21
21
  import "./Icons/DeleteIcon.js";
22
22
  import "./Icons/DurationIcon.js";
23
+ import "./Icons/EditIcon.js";
23
24
  import "./Icons/EmailIcon.js";
24
25
  import "./Icons/EraserIcon.js";
25
26
  import { ErrorIcon as st } from "./Icons/ErrorIcon.js";
@@ -51,7 +52,9 @@ import "./Icons/ReviewedIcon.js";
51
52
  import "./Icons/ScissorsIcon.js";
52
53
  import "./Icons/SettingsIcon.js";
53
54
  import "./Icons/SortAscendingIcon.js";
55
+ import "./Icons/SortAtoZIcon.js";
54
56
  import "./Icons/SortDescendingIcon.js";
57
+ import "./Icons/SortZtoAIcon.js";
55
58
  import "./Icons/StackIcon.js";
56
59
  import "./Icons/StarIcon.js";
57
60
  import "./Icons/TrashIcon.js";
@@ -82,7 +85,7 @@ const gt = (m) => ({
82
85
  endIcon: b,
83
86
  errorMessage: x,
84
87
  id: P,
85
- label: r,
88
+ label: e,
86
89
  labelClassName: R,
87
90
  name: g,
88
91
  onBlur: C,
@@ -101,28 +104,28 @@ const gt = (m) => ({
101
104
  "aria-describedby": M,
102
105
  ...O
103
106
  }, j) => {
104
- const l = ct(P, g), N = `${l}-error`, { isDisabled: F, isLoading: A, isInvalid: B } = ut(k, i), H = mt(i, M, v, N), T = xt(null), s = j || T, { isVisible: d, toggleVisibility: W, inputType: D } = tt(), { prefixWidth: G, prefixRef: J } = et(p), { handleFocus: E } = rt(h, a ? (e) => a(e.target.value) : void 0), K = c(
105
- (e) => {
106
- C?.(e);
107
+ const l = ct(P, g), N = `${l}-error`, { isDisabled: F, isLoading: A, isInvalid: B } = ut(k, i), H = mt(i, M, v, N), T = xt(null), s = j || T, { isVisible: d, toggleVisibility: W, inputType: D } = tt(), { prefixWidth: G, prefixRef: J } = rt(p), { handleFocus: E } = et(h, a ? (r) => a(r.target.value) : void 0), K = c(
108
+ (r) => {
109
+ C?.(r);
107
110
  },
108
111
  [C]
109
112
  ), Q = c(
110
- (e) => {
111
- E(e, w);
113
+ (r) => {
114
+ E(r, w);
112
115
  },
113
116
  [E, w]
114
117
  ), U = c(
115
- (e) => {
116
- const o = e.target.value;
118
+ (r) => {
119
+ const o = r.target.value;
117
120
  a?.(o);
118
121
  },
119
122
  [a]
120
123
  ), X = c(() => {
121
124
  s.current && (s.current.value = "", s.current.dispatchEvent(new Event("input", { bubbles: !0 })), s.current.focus());
122
125
  }, [s]), z = V && I.length > 0, Y = () => {
123
- const e = "absolute right-4 top-1/2 -translate-y-1/2 text-input-icon hover:text-input-icon--hover focus:outline-none cursor-pointer", o = {
124
- password: () => /* @__PURE__ */ t("button", { "aria-controls": l, "aria-label": d ? `Hide ${r}` : `Show ${r}`, "aria-pressed": d, className: e, "data-testid": "spectral-input-password-toggle", onClick: W, type: "button", children: d ? /* @__PURE__ */ t(at, { size: 22 }) : /* @__PURE__ */ t(pt, { size: 22 }) }),
125
- clear: () => /* @__PURE__ */ t("button", { "aria-label": `Clear ${r}`, "aria-pressed": !1, className: e, "data-testid": "spectral-input-clear-button", onClick: X, type: "button", children: /* @__PURE__ */ t(it, { size: 24 }) }),
126
+ const r = "absolute right-4 top-1/2 -translate-y-1/2 text-input-icon hover:text-input-icon--hover focus:outline-none cursor-pointer", o = {
127
+ password: () => /* @__PURE__ */ t("button", { "aria-controls": l, "aria-label": d ? `Hide ${e}` : `Show ${e}`, "aria-pressed": d, className: r, "data-testid": "spectral-input-password-toggle", onClick: W, type: "button", children: d ? /* @__PURE__ */ t(at, { size: 22 }) : /* @__PURE__ */ t(pt, { size: 22 }) }),
128
+ clear: () => /* @__PURE__ */ t("button", { "aria-label": `Clear ${e}`, "aria-pressed": !1, className: r, "data-testid": "spectral-input-clear-button", onClick: X, type: "button", children: /* @__PURE__ */ t(it, { size: 24 }) }),
126
129
  loading: () => /* @__PURE__ */ t("div", { className: "absolute right-4 top-1/2 -translate-y-1/2 text-input-icon", "data-testid": "spectral-input-loading-icon", children: /* @__PURE__ */ t(nt, { size: 24 }) }),
127
130
  error: () => /* @__PURE__ */ t("div", { className: "absolute right-4 top-1/2 -translate-y-1/2 text-danger-400", "data-testid": "spectral-input-error-icon", children: /* @__PURE__ */ t(st, { size: 24 }) }),
128
131
  success: () => /* @__PURE__ */ t("div", { className: "absolute right-4 top-1/2 -translate-y-1/2 text-success-400", "data-testid": "spectral-input-success-icon", children: /* @__PURE__ */ t(ot, { size: 24 }) })
@@ -130,7 +133,7 @@ const gt = (m) => ({
130
133
  return b || (n === "password" ? o.password() : z ? o.clear() : A ? o.loading() : i === "success" ? o.success() : i === "error" ? o.error() : null);
131
134
  }, Z = () => y || null, _ = f(dt(i, m), "[text-indent:var(--prefix-width)]", z && "pr-10"), q = f("pointer-events-none absolute inset-y-0 left-4 flex items-center text-base text-input-text-prefix opacity-100 peer-disabled:opacity-50");
132
135
  return /* @__PURE__ */ u("div", { className: "w-full space-y-1.5", "data-testid": "spectral-input-container", children: [
133
- r && /* @__PURE__ */ t(lt, { className: f("block mb-2", R, F && "text-input-text--disabled placeholder:text-input-text-placeholder cursor-not-allowed"), "data-testid": "spectral-input-label", htmlFor: l, children: r }),
136
+ e && /* @__PURE__ */ t(lt, { className: f("block mb-2", R, F && "text-input-text--disabled placeholder:text-input-text-placeholder cursor-not-allowed"), "data-testid": "spectral-input-label", htmlFor: l, children: e }),
134
137
  /* @__PURE__ */ u("div", { className: "relative", "data-testid": "spectral-input-wrapper", children: [
135
138
  /* @__PURE__ */ u("div", { className: "relative", children: [
136
139
  Z(),
@@ -138,7 +141,7 @@ const gt = (m) => ({
138
141
  /* @__PURE__ */ t(
139
142
  "input",
140
143
  {
141
- "aria-label": L || r,
144
+ "aria-label": L || e,
142
145
  autoComplete: gt(n),
143
146
  className: _,
144
147
  "data-state": i,
@@ -149,7 +152,7 @@ const gt = (m) => ({
149
152
  onBlur: K,
150
153
  onChange: U,
151
154
  onFocus: Q,
152
- placeholder: S || r,
155
+ placeholder: S || e,
153
156
  ref: s,
154
157
  required: v,
155
158
  style: ft({
package/dist/InputOTP.js CHANGED
@@ -19,6 +19,7 @@ import "./Icons/DashboardIcon.js";
19
19
  import "./Icons/DatabaseIcon.js";
20
20
  import "./Icons/DeleteIcon.js";
21
21
  import "./Icons/DurationIcon.js";
22
+ import "./Icons/EditIcon.js";
22
23
  import "./Icons/EmailIcon.js";
23
24
  import "./Icons/EraserIcon.js";
24
25
  import "./Icons/ErrorIcon.js";
@@ -50,7 +51,9 @@ import "./Icons/ReviewedIcon.js";
50
51
  import "./Icons/ScissorsIcon.js";
51
52
  import "./Icons/SettingsIcon.js";
52
53
  import "./Icons/SortAscendingIcon.js";
54
+ import "./Icons/SortAtoZIcon.js";
53
55
  import "./Icons/SortDescendingIcon.js";
56
+ import "./Icons/SortZtoAIcon.js";
54
57
  import "./Icons/StackIcon.js";
55
58
  import "./Icons/StarIcon.js";
56
59
  import "./Icons/TrashIcon.js";
@@ -330,11 +333,11 @@ const Rt = Q(({ ...t }, n) => {
330
333
  return /* @__PURE__ */ T("div", { ref: n, role: "separator", ...t, "data-testid": "spectral-input-otp-separator", "data-variant": a, children: /* @__PURE__ */ T(_t, { size: 24, color: a === "filled" ? "var(--color-input-otp-filled-separator)" : "var(--color-input-otp-border)" }) });
331
334
  });
332
335
  Rt.displayName = "InputOTP.Separator";
333
- const dr = Object.assign(Mt, {
336
+ const vr = Object.assign(Mt, {
334
337
  Group: Tt,
335
338
  Slot: kt,
336
339
  Separator: Rt
337
340
  });
338
341
  export {
339
- dr as InputOTP
342
+ vr as InputOTP
340
343
  };
@@ -19,6 +19,7 @@ import "../Icons/DashboardIcon.js";
19
19
  import "../Icons/DatabaseIcon.js";
20
20
  import "../Icons/DeleteIcon.js";
21
21
  import "../Icons/DurationIcon.js";
22
+ import "../Icons/EditIcon.js";
22
23
  import "../Icons/EmailIcon.js";
23
24
  import "../Icons/EraserIcon.js";
24
25
  import "../Icons/ErrorIcon.js";
@@ -50,7 +51,9 @@ import "../Icons/ReviewedIcon.js";
50
51
  import "../Icons/ScissorsIcon.js";
51
52
  import "../Icons/SettingsIcon.js";
52
53
  import "../Icons/SortAscendingIcon.js";
54
+ import "../Icons/SortAtoZIcon.js";
53
55
  import "../Icons/SortDescendingIcon.js";
56
+ import "../Icons/SortZtoAIcon.js";
54
57
  import "../Icons/StackIcon.js";
55
58
  import "../Icons/StarIcon.js";
56
59
  import "../Icons/TrashIcon.js";
package/dist/Popover.js CHANGED
@@ -4,10 +4,11 @@ import { jsx as s } from "react/jsx-runtime";
4
4
  import * as p from "react";
5
5
  import { u as L, c as z, a as x, P as O, b as P, e as G } from "./index-BhufZRa2.js";
6
6
  import { P as H, D as K } from "./index-B2oBi8ng.js";
7
- import { h as j, R as U, u as V, F as W } from "./index-B-GQStVW.js";
8
- import { u as Z } from "./index-CVSxKOPp.js";
9
- import { c as _, R as q, A as b, C as B, a as J } from "./index-NzygPVvJ.js";
7
+ import { h as j, u as U, F as V } from "./index-MZS7zxk4.js";
8
+ import { u as W } from "./index-CVSxKOPp.js";
9
+ import { c as _, R as Z, A as b, C as q, a as B } from "./index-NzygPVvJ.js";
10
10
  import { P as w } from "./index-6Abv_Flm.js";
11
+ import { R as J } from "./Combination-BtmnusWq.js";
11
12
  import { cn as Q } from "./utils/twUtils.js";
12
13
  var C = "Popover", [E] = z(C, [
13
14
  _
@@ -19,24 +20,24 @@ var C = "Popover", [E] = z(C, [
19
20
  defaultOpen: o,
20
21
  onOpenChange: t,
21
22
  modal: c = !1
22
- } = e, i = g(n), f = p.useRef(null), [v, h] = p.useState(!1), [m, u] = L({
23
+ } = e, i = g(n), f = p.useRef(null), [v, m] = p.useState(!1), [h, u] = L({
23
24
  prop: a,
24
25
  defaultProp: o ?? !1,
25
26
  onChange: t,
26
27
  caller: C
27
28
  });
28
- return /* @__PURE__ */ s(q, { ...i, children: /* @__PURE__ */ s(
29
+ return /* @__PURE__ */ s(Z, { ...i, children: /* @__PURE__ */ s(
29
30
  X,
30
31
  {
31
32
  scope: n,
32
- contentId: Z(),
33
+ contentId: W(),
33
34
  triggerRef: f,
34
- open: m,
35
+ open: h,
35
36
  onOpenChange: u,
36
37
  onOpenToggle: p.useCallback(() => u((R) => !R), [u]),
37
38
  hasCustomAnchor: v,
38
- onCustomAnchorAdd: p.useCallback(() => h(!0), []),
39
- onCustomAnchorRemove: p.useCallback(() => h(!1), []),
39
+ onCustomAnchorAdd: p.useCallback(() => m(!0), []),
40
+ onCustomAnchorRemove: p.useCallback(() => m(!1), []),
40
41
  modal: c,
41
42
  children: r
42
43
  }
@@ -89,7 +90,7 @@ var oe = G("PopoverContent.RemoveScroll"), te = p.forwardRef(
89
90
  return p.useEffect(() => {
90
91
  const c = a.current;
91
92
  if (c) return j(c);
92
- }, []), /* @__PURE__ */ s(U, { as: oe, allowPinchZoom: !0, children: /* @__PURE__ */ s(
93
+ }, []), /* @__PURE__ */ s(J, { as: oe, allowPinchZoom: !0, children: /* @__PURE__ */ s(
93
94
  k,
94
95
  {
95
96
  ...e,
@@ -147,11 +148,11 @@ var oe = G("PopoverContent.RemoveScroll"), te = p.forwardRef(
147
148
  onEscapeKeyDown: i,
148
149
  onPointerDownOutside: f,
149
150
  onFocusOutside: v,
150
- onInteractOutside: h,
151
- ...m
151
+ onInteractOutside: m,
152
+ ...h
152
153
  } = e, u = l(d, r), R = g(r);
153
- return V(), /* @__PURE__ */ s(
154
- W,
154
+ return U(), /* @__PURE__ */ s(
155
+ V,
155
156
  {
156
157
  asChild: !0,
157
158
  loop: !0,
@@ -163,22 +164,22 @@ var oe = G("PopoverContent.RemoveScroll"), te = p.forwardRef(
163
164
  {
164
165
  asChild: !0,
165
166
  disableOutsidePointerEvents: c,
166
- onInteractOutside: h,
167
+ onInteractOutside: m,
167
168
  onEscapeKeyDown: i,
168
169
  onPointerDownOutside: f,
169
170
  onFocusOutside: v,
170
171
  onDismiss: () => u.onOpenChange(!1),
171
172
  children: /* @__PURE__ */ s(
172
- B,
173
+ q,
173
174
  {
174
175
  "data-state": $(u.open),
175
176
  role: "dialog",
176
177
  id: u.contentId,
177
178
  ...R,
178
- ...m,
179
+ ...h,
179
180
  ref: n,
180
181
  style: {
181
- ...m.style,
182
+ ...h.style,
182
183
  "--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
183
184
  "--radix-popover-content-available-width": "var(--radix-popper-available-width)",
184
185
  "--radix-popover-content-available-height": "var(--radix-popper-available-height)",
@@ -210,7 +211,7 @@ ne.displayName = I;
210
211
  var ae = "PopoverArrow", se = p.forwardRef(
211
212
  (e, n) => {
212
213
  const { __scopePopover: r, ...a } = e, o = g(r);
213
- return /* @__PURE__ */ s(J, { ...o, ...a, ref: n });
214
+ return /* @__PURE__ */ s(B, { ...o, ...a, ref: n });
214
215
  }
215
216
  );
216
217
  se.displayName = ae;
@@ -218,7 +219,7 @@ function $(e) {
218
219
  return e ? "open" : "closed";
219
220
  }
220
221
  var ce = F, pe = y, ie = D, le = M, ue = T;
221
- const Re = ({ ...e }) => /* @__PURE__ */ s(ce, { "data-slot": "popover", "data-testid": "spectral-popover", ...e }), Ae = ({ ...e }) => /* @__PURE__ */ s(ie, { "data-slot": "popover-trigger", "data-testid": "spectral-popover-trigger", ...e }), xe = ({ align: e = "center", className: n, side: r = "bottom", sideOffset: a = 4, width: o = "w-fit", ...t }) => /* @__PURE__ */ s(le, { children: /* @__PURE__ */ s(
222
+ const Ae = ({ ...e }) => /* @__PURE__ */ s(ce, { "data-slot": "popover", "data-testid": "spectral-popover", ...e }), xe = ({ ...e }) => /* @__PURE__ */ s(ie, { "data-slot": "popover-trigger", "data-testid": "spectral-popover-trigger", ...e }), Oe = ({ align: e = "center", className: n, side: r = "bottom", sideOffset: a = 4, width: o = "w-fit", ...t }) => /* @__PURE__ */ s(le, { children: /* @__PURE__ */ s(
222
223
  ue,
223
224
  {
224
225
  align: e,
@@ -239,10 +240,10 @@ const Re = ({ ...e }) => /* @__PURE__ */ s(ce, { "data-slot": "popover", "data-t
239
240
  },
240
241
  ...t
241
242
  }
242
- ) }), Oe = ({ ...e }) => /* @__PURE__ */ s(pe, { "data-slot": "popover-anchor", ...e });
243
+ ) }), _e = ({ ...e }) => /* @__PURE__ */ s(pe, { "data-slot": "popover-anchor", ...e });
243
244
  export {
244
- Re as Popover,
245
- Oe as PopoverAnchor,
246
- xe as PopoverContent,
247
- Ae as PopoverTrigger
245
+ Ae as Popover,
246
+ _e as PopoverAnchor,
247
+ Oe as PopoverContent,
248
+ xe as PopoverTrigger
248
249
  };
package/dist/Select.js CHANGED
@@ -19,6 +19,7 @@ import "./Icons/DashboardIcon.js";
19
19
  import "./Icons/DatabaseIcon.js";
20
20
  import "./Icons/DeleteIcon.js";
21
21
  import "./Icons/DurationIcon.js";
22
+ import "./Icons/EditIcon.js";
22
23
  import "./Icons/EmailIcon.js";
23
24
  import "./Icons/EraserIcon.js";
24
25
  import "./Icons/ErrorIcon.js";
@@ -50,7 +51,9 @@ import "./Icons/ReviewedIcon.js";
50
51
  import "./Icons/ScissorsIcon.js";
51
52
  import "./Icons/SettingsIcon.js";
52
53
  import "./Icons/SortAscendingIcon.js";
54
+ import "./Icons/SortAtoZIcon.js";
53
55
  import "./Icons/SortDescendingIcon.js";
56
+ import "./Icons/SortZtoAIcon.js";
54
57
  import "./Icons/StackIcon.js";
55
58
  import "./Icons/StarIcon.js";
56
59
  import "./Icons/TrashIcon.js";
@@ -61,9 +64,9 @@ import "./Icons/ZoomAllIcon.js";
61
64
  import "./Icons/ZoomXIcon.js";
62
65
  import "./Icons/ZoomYIcon.js";
63
66
  import { Label as C } from "./Label.js";
64
- import { R as X, T as Y, f as Z, e as _, C as $, c as tt, V as et, S as rt, d as I, G as at, I as st, b as it, a as ot } from "./index-CevVJ05e.js";
67
+ import { R as X, T as Y, f as Z, e as _, C as $, c as tt, V as et, S as rt, d as I, G as at, I as it, b as st, a as ot } from "./index-7IR9qVCR.js";
65
68
  import { useFormFieldId as lt, useFormFieldState as dt, getAriaProps as mt, getErrorMessageId as ct, groupOptions as pt, getFormFieldCSSProperties as nt, getStateClasses as ut, getTriggerClasses as ht, ErrorMessage as gt, LoadingState as bt, EmptyState as ft, getOptionClasses as xt } from "./utils/formFieldUtils.js";
66
- import { cn as i } from "./utils/twUtils.js";
69
+ import { cn as s } from "./utils/twUtils.js";
67
70
  import { forwardRef as yt, useState as Nt } from "react";
68
71
  const vt = yt(
69
72
  ({
@@ -91,15 +94,15 @@ const vt = yt(
91
94
  "aria-describedby": B,
92
95
  ...o
93
96
  }, G) => {
94
- const [b, M] = Nt(!1), s = lt(L, u), f = ct(s), { isDisabled: d, isLoading: x, isInvalid: A } = dt(o.disabled, a), H = mt(a, B, o.required, f), { groups: y, ungrouped: N } = pt(h), U = () => {
97
+ const [b, M] = Nt(!1), i = lt(L, u), f = ct(i), { isDisabled: d, isLoading: x, isInvalid: A } = dt(o.disabled, a), H = mt(a, B, o.required, f), { groups: y, ungrouped: N } = pt(h), U = () => {
95
98
  if (x)
96
99
  return /* @__PURE__ */ t(bt, { "data-testid": "spectral-select-loading", message: T });
97
100
  if (h.length === 0)
98
101
  return /* @__PURE__ */ t(ft, { "data-testid": "spectral-select-empty", message: k });
99
102
  const v = (e) => {
100
103
  const m = g === e.value;
101
- return /* @__PURE__ */ r(st, { className: i(xt(!!e.disabled, !1, m), "relative flex w-full cursor-pointer items-center"), "data-testid": "spectral-select-item", disabled: e.disabled, value: e.value, children: [
102
- /* @__PURE__ */ t(it, { "data-testid": "spectral-select-item-text", className: "block truncate", children: e.label }),
104
+ return /* @__PURE__ */ r(it, { className: s(xt(!!e.disabled, !1, m), "relative flex w-full cursor-pointer items-center"), "data-testid": "spectral-select-item", disabled: e.disabled, value: e.value, children: [
105
+ /* @__PURE__ */ t(st, { "data-testid": "spectral-select-item-text", className: "block truncate", children: e.label }),
103
106
  /* @__PURE__ */ t(ot, { "data-testid": "spectral-select-item-selected-indicator", asChild: !0, children: /* @__PURE__ */ t("span", { className: "absolute right-2 flex h-4 w-4 items-center justify-center", children: /* @__PURE__ */ t(Q, { size: 16 }) }) })
104
107
  ] }, e.value);
105
108
  };
@@ -110,26 +113,26 @@ const vt = yt(
110
113
  ] }),
111
114
  Object.entries(y).map(([e, m], J) => /* @__PURE__ */ r(at, { "data-testid": "spectral-select-group", children: [
112
115
  J > 0 && /* @__PURE__ */ t(I, { className: "-mx-1 my-1 h-px bg-border-secondary", "data-testid": "spectral-select-group-separator" }),
113
- /* @__PURE__ */ t(C, { "data-testid": "spectral-select-group-label", htmlFor: s, className: i("px-2 py-1.5 text-base font-semibold text-text-primary", n), children: e }),
116
+ /* @__PURE__ */ t(C, { "data-testid": "spectral-select-group-label", htmlFor: i, className: s("px-2 py-1.5 text-base font-semibold text-text-primary", n), children: e }),
114
117
  m.map((K) => v(K))
115
118
  ] }, e))
116
119
  ] });
117
120
  };
118
121
  return /* @__PURE__ */ r("div", { className: "w-full", children: [
119
- l && /* @__PURE__ */ t(C, { "data-testid": "spectral-select-label", htmlFor: s, className: i("block mb-4 text-text-primary", n, d && "text-text-secondary"), children: l }),
122
+ l && /* @__PURE__ */ t(C, { "data-testid": "spectral-select-label", htmlFor: i, className: s("block mb-4 text-text-primary", n, d && "text-text-secondary"), children: l }),
120
123
  /* @__PURE__ */ r(X, { "data-testid": "spectral-select", defaultValue: j, disabled: d, name: u, onOpenChange: M, onValueChange: V, open: b, required: o.required, value: g, children: [
121
124
  /* @__PURE__ */ t(
122
125
  Y,
123
126
  {
124
- "aria-controls": s,
127
+ "aria-controls": i,
125
128
  "aria-expanded": b,
126
129
  "aria-label": R || l,
127
130
  asChild: !0,
128
- className: i(ht(!1, a), ut(a), F),
131
+ className: s(ht(!1, a), ut(a), F),
129
132
  "data-slot": "select-trigger",
130
133
  "data-state": a,
131
134
  "data-testid": "spectral-select-trigger",
132
- id: s,
135
+ id: i,
133
136
  ref: G,
134
137
  role: "combobox",
135
138
  style: nt(),
@@ -144,7 +147,7 @@ const vt = yt(
144
147
  /* @__PURE__ */ t($, { align: w, alignOffset: z, "data-slot": "select-content", "data-testid": "spectral-select-content", asChild: !0, collisionPadding: O, position: D, side: E, sideOffset: P, children: /* @__PURE__ */ r(
145
148
  "div",
146
149
  {
147
- className: i(
150
+ className: s(
148
151
  "z-50 rounded-lg border border-input-border bg-input-bg shadow-md",
149
152
  "data-[state=open]:animate-in data-[state=closed]:animate-out",
150
153
  "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",