@spear-ai/spectral 1.4.10 → 1.4.12
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 +119 -113
- package/dist/Accordion.d.ts +1 -0
- package/dist/Accordion.js +132 -129
- package/dist/Alert.js +5 -2
- package/dist/Button.js +19 -19
- package/dist/ButtonIcon.js +3 -0
- package/dist/Checkbox.js +3 -0
- package/dist/Icons/EditIcon.d.ts +3 -0
- package/dist/Icons/EditIcon.js +31 -0
- package/dist/Icons/SortAtoZIcon.d.ts +3 -0
- package/dist/Icons/SortAtoZIcon.js +16 -0
- package/dist/Icons/SortZtoAIcon.d.ts +3 -0
- package/dist/Icons/SortZtoAIcon.js +16 -0
- package/dist/Icons/index.d.ts +3 -0
- package/dist/Icons.js +102 -96
- package/dist/Input.js +18 -15
- package/dist/InputOTP.js +5 -2
- package/dist/MultiSelect/MultiSelectBase.js +3 -0
- package/dist/Select.js +14 -11
- package/dist/Textarea.js +9 -6
- package/dist/Tray.js +3 -0
- package/dist/primitives/select.js +19 -16
- package/dist/styles/base-colors.css +1 -1
- package/dist/styles/main.css +1 -1
- package/package.json +2 -2
package/dist/Textarea.js
CHANGED
|
@@ -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 "./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";
|
|
@@ -66,18 +69,18 @@ import { useFormFieldId as M, getAriaProps as O, getErrorMessageId as _, getText
|
|
|
66
69
|
import { cn as g } from "./utils/twUtils.js";
|
|
67
70
|
import { forwardRef as H, useRef as J } from "react";
|
|
68
71
|
const K = "absolute right-4 top-4", Q = (t) => t || "off", U = (t, a) => {
|
|
69
|
-
const
|
|
70
|
-
return g(
|
|
72
|
+
const m = "absolute bottom-2 right-3 text-xs pointer-events-none z-10 tabular-nums", o = t >= a ? "text-danger-400" : "text-text-secondary";
|
|
73
|
+
return g(m, o);
|
|
71
74
|
}, W = H(
|
|
72
|
-
({ autoComplete: t, className: a, disabled:
|
|
75
|
+
({ autoComplete: t, className: a, disabled: m, errorMessage: o, id: C, label: c, labelClassName: b, maxLength: i = 280, name: d, onBlur: N, onChange: I, onFocus: F, placeholder: S, required: u, state: r = "default", value: s = "", ...x }, v) => {
|
|
73
76
|
const p = M(C, d), h = _(p), y = J(null), P = v || y, { handleFocus: T, handleBlur: A, handleChange: R, handlePaste: w } = z({
|
|
74
77
|
maxLength: i,
|
|
75
|
-
value:
|
|
78
|
+
value: s,
|
|
76
79
|
onChange: I || (() => {
|
|
77
80
|
}),
|
|
78
81
|
onFocus: F,
|
|
79
82
|
onBlur: N
|
|
80
|
-
}), { isDisabled: f, isLoading: E } = G(
|
|
83
|
+
}), { isDisabled: f, isLoading: E } = G(m, r), L = O(r, h, u, x["aria-describedby"]), l = s?.length || 0, j = $(r, a), k = () => ({
|
|
81
84
|
"--textarea-min-height": "6rem",
|
|
82
85
|
"--textarea-max-height": "12rem",
|
|
83
86
|
"--textarea-border-radius": "0.5rem"
|
|
@@ -105,7 +108,7 @@ const K = "absolute right-4 top-4", Q = (t) => t || "off", U = (t, a) => {
|
|
|
105
108
|
required: u,
|
|
106
109
|
spellCheck: "true",
|
|
107
110
|
style: k(),
|
|
108
|
-
value:
|
|
111
|
+
value: s,
|
|
109
112
|
...L,
|
|
110
113
|
...x
|
|
111
114
|
}
|
package/dist/Tray.js
CHANGED
|
@@ -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 "./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";
|
|
@@ -17,6 +17,7 @@ import "../Icons/DashboardIcon.js";
|
|
|
17
17
|
import "../Icons/DatabaseIcon.js";
|
|
18
18
|
import "../Icons/DeleteIcon.js";
|
|
19
19
|
import "../Icons/DurationIcon.js";
|
|
20
|
+
import "../Icons/EditIcon.js";
|
|
20
21
|
import "../Icons/EmailIcon.js";
|
|
21
22
|
import "../Icons/EraserIcon.js";
|
|
22
23
|
import "../Icons/ErrorIcon.js";
|
|
@@ -48,7 +49,9 @@ import "../Icons/ReviewedIcon.js";
|
|
|
48
49
|
import "../Icons/ScissorsIcon.js";
|
|
49
50
|
import "../Icons/SettingsIcon.js";
|
|
50
51
|
import "../Icons/SortAscendingIcon.js";
|
|
52
|
+
import "../Icons/SortAtoZIcon.js";
|
|
51
53
|
import "../Icons/SortDescendingIcon.js";
|
|
54
|
+
import "../Icons/SortZtoAIcon.js";
|
|
52
55
|
import "../Icons/StackIcon.js";
|
|
53
56
|
import "../Icons/StarIcon.js";
|
|
54
57
|
import "../Icons/TrashIcon.js";
|
|
@@ -61,16 +64,16 @@ import "../Icons/ZoomYIcon.js";
|
|
|
61
64
|
import { R as c, P as d, C as u, V as f, G as x, I as g, a as h, b as v, L as b, S as y, c as w, d as S, T as z, e as N, f as I } from "../index-CevVJ05e.js";
|
|
62
65
|
import { cn as o } from "../utils/twUtils.js";
|
|
63
66
|
import "react";
|
|
64
|
-
function
|
|
67
|
+
function At({ ...t }) {
|
|
65
68
|
return /* @__PURE__ */ e(c, { "data-slot": "select", ...t });
|
|
66
69
|
}
|
|
67
|
-
function
|
|
70
|
+
function Et({ ...t }) {
|
|
68
71
|
return /* @__PURE__ */ e(x, { "data-slot": "select-group", ...t });
|
|
69
72
|
}
|
|
70
|
-
function
|
|
73
|
+
function Ft({ ...t }) {
|
|
71
74
|
return /* @__PURE__ */ e(I, { "data-slot": "select-value", ...t });
|
|
72
75
|
}
|
|
73
|
-
function
|
|
76
|
+
function Ht({
|
|
74
77
|
className: t,
|
|
75
78
|
size: r = "default",
|
|
76
79
|
children: a,
|
|
@@ -98,7 +101,7 @@ function At({
|
|
|
98
101
|
}
|
|
99
102
|
);
|
|
100
103
|
}
|
|
101
|
-
function
|
|
104
|
+
function Jt({ className: t, children: r, position: a = "popper", align: i = "center", ...s }) {
|
|
102
105
|
return /* @__PURE__ */ e(d, { children: /* @__PURE__ */ l(
|
|
103
106
|
u,
|
|
104
107
|
{
|
|
@@ -121,10 +124,10 @@ function Et({ className: t, children: r, position: a = "popper", align: i = "cen
|
|
|
121
124
|
}
|
|
122
125
|
) });
|
|
123
126
|
}
|
|
124
|
-
function
|
|
127
|
+
function Kt({ className: t, ...r }) {
|
|
125
128
|
return /* @__PURE__ */ e(b, { "data-slot": "select-label", className: o("text-text-primary px-2 py-1.5 text-xs", t), ...r });
|
|
126
129
|
}
|
|
127
|
-
function
|
|
130
|
+
function Mt({ className: t, children: r, ...a }) {
|
|
128
131
|
return /* @__PURE__ */ l(
|
|
129
132
|
g,
|
|
130
133
|
{
|
|
@@ -143,7 +146,7 @@ function Ht({ className: t, children: r, ...a }) {
|
|
|
143
146
|
}
|
|
144
147
|
);
|
|
145
148
|
}
|
|
146
|
-
function
|
|
149
|
+
function Ot({ className: t, ...r }) {
|
|
147
150
|
return /* @__PURE__ */ e(S, { "data-slot": "select-separator", className: o("bg-border pointer-events-none -mx-1 my-1 h-px", t), ...r });
|
|
148
151
|
}
|
|
149
152
|
function _({ className: t, ...r }) {
|
|
@@ -153,14 +156,14 @@ function j({ className: t, ...r }) {
|
|
|
153
156
|
return /* @__PURE__ */ e(y, { "data-slot": "select-scroll-down-button", className: o("flex cursor-default items-center justify-center py-1", t), ...r, children: /* @__PURE__ */ e(n, { className: "size-4" }) });
|
|
154
157
|
}
|
|
155
158
|
export {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
At as Select,
|
|
160
|
+
Jt as SelectContent,
|
|
161
|
+
Et as SelectGroup,
|
|
162
|
+
Mt as SelectItem,
|
|
163
|
+
Kt as SelectLabel,
|
|
161
164
|
j as SelectScrollDownButton,
|
|
162
165
|
_ as SelectScrollUpButton,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
+
Ot as SelectSeparator,
|
|
167
|
+
Ht as SelectTrigger,
|
|
168
|
+
Ft as SelectValue
|
|
166
169
|
};
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
--horizon-color-primary-400: oklch(63.46% 0.1376 257.62);
|
|
24
24
|
--horizon-color-primary-500: oklch(56.4% 0.1372 257.6);
|
|
25
25
|
--horizon-color-primary-600: oklch(48.67% 0.1372 257.6);
|
|
26
|
-
--horizon-color-primary-700: oklch(
|
|
26
|
+
--horizon-color-primary-700: oklch(42.85% 0.1372 257.6);
|
|
27
27
|
--horizon-color-primary-800: oklch(37.8% 0.1372 257.6);
|
|
28
28
|
--horizon-color-primary-900: oklch(33.76% 0.1213 257.3);
|
|
29
29
|
--horizon-color-primary-950: oklch(27.61% 0.101 257.73);
|