@spear-ai/spectral 1.3.63 → 1.3.64

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.
Files changed (150) hide show
  1. package/dist/.js +194 -170
  2. package/dist/Accordion.js +9 -0
  3. package/dist/Alert.js +19 -10
  4. package/dist/Button.d.ts +3 -3
  5. package/dist/Button.js +33 -26
  6. package/dist/ButtonIcon.js +9 -0
  7. package/dist/Card.d.ts +16 -0
  8. package/dist/Card.js +32 -0
  9. package/dist/Checkbox.js +14 -5
  10. package/dist/Dialog/DialogBase.d.ts +5 -2
  11. package/dist/Dialog/DialogBase.js +113 -98
  12. package/dist/Dialog.d.ts +1 -1
  13. package/dist/Dialog.js +41 -35
  14. package/dist/Icons/AnalyzeIcon.d.ts +3 -0
  15. package/dist/Icons/AnalyzeIcon.js +73 -0
  16. package/dist/Icons/AnnotationsIcon.js +4 -4
  17. package/dist/Icons/ApprovedIcon.d.ts +3 -0
  18. package/dist/Icons/ApprovedIcon.js +43 -0
  19. package/dist/Icons/CalendarIcon.js +7 -7
  20. package/dist/Icons/CheckCircleIcon.js +14 -14
  21. package/dist/Icons/CheckSquareIcon.js +14 -14
  22. package/dist/Icons/CheckmarkIcon.js +9 -9
  23. package/dist/Icons/ChevronDownIcon.js +6 -6
  24. package/dist/Icons/ChevronUpIcon.js +7 -7
  25. package/dist/Icons/ClockIcon.js +10 -10
  26. package/dist/Icons/CloseCircleIcon.js +10 -10
  27. package/dist/Icons/CloseIcon.js +5 -5
  28. package/dist/Icons/DashboardIcon.js +4 -4
  29. package/dist/Icons/DatabaseIcon.d.ts +3 -0
  30. package/dist/Icons/DatabaseIcon.js +53 -0
  31. package/dist/Icons/DeleteIcon.js +24 -6
  32. package/dist/Icons/DurationIcon.js +7 -7
  33. package/dist/Icons/EmailIcon.js +4 -4
  34. package/dist/Icons/EraserIcon.js +20 -11
  35. package/dist/Icons/ErrorIcon.js +3 -3
  36. package/dist/Icons/EyeClosedIcon.js +2 -2
  37. package/dist/Icons/EyeClosedIcon2.js +18 -18
  38. package/dist/Icons/EyeOpenIcon.js +8 -8
  39. package/dist/Icons/GoToFirstIcon.js +1 -1
  40. package/dist/Icons/GoToLastIcon.js +3 -3
  41. package/dist/Icons/HarmonicCursorsIcon.js +4 -4
  42. package/dist/Icons/IconBase.d.ts +1 -1
  43. package/dist/Icons/IconBase.js +15 -17
  44. package/dist/Icons/InfoIcon.js +4 -4
  45. package/dist/Icons/LabelIcon.js +6 -6
  46. package/dist/Icons/LassoIcon.js +6 -6
  47. package/dist/Icons/LineToolIcon.js +22 -93
  48. package/dist/Icons/LineToolIcon2.d.ts +3 -0
  49. package/dist/Icons/LineToolIcon2.js +73 -0
  50. package/dist/Icons/LiveViewIcon.js +5 -5
  51. package/dist/Icons/LoaderIcon.js +5 -5
  52. package/dist/Icons/LocationIcon.js +5 -5
  53. package/dist/Icons/LogoutIcon.js +11 -11
  54. package/dist/Icons/MessagesIcon.js +22 -19
  55. package/dist/Icons/MetadataIcon.js +5 -5
  56. package/dist/Icons/MinusIcon.js +9 -9
  57. package/dist/Icons/OntologyIcon.js +74 -21
  58. package/dist/Icons/PanelIconClose.js +11 -11
  59. package/dist/Icons/PanelIconOpen.js +11 -11
  60. package/dist/Icons/PlayIcon.js +5 -5
  61. package/dist/Icons/PlusIcon.js +9 -8
  62. package/dist/Icons/ResetIcon.js +6 -6
  63. package/dist/Icons/ReviewedIcon.d.ts +3 -0
  64. package/dist/Icons/ReviewedIcon.js +44 -0
  65. package/dist/Icons/ScissorsIcon.js +9 -9
  66. package/dist/Icons/SettingsIcon.js +20 -22
  67. package/dist/Icons/SortAscendingIcon.d.ts +3 -0
  68. package/dist/Icons/SortAscendingIcon.js +73 -0
  69. package/dist/Icons/SortDescendingIcon.d.ts +3 -0
  70. package/dist/Icons/SortDescendingIcon.js +73 -0
  71. package/dist/Icons/StackIcon.d.ts +3 -0
  72. package/dist/Icons/StackIcon.js +43 -0
  73. package/dist/Icons/StarIcon.d.ts +3 -0
  74. package/dist/Icons/StarIcon.js +31 -0
  75. package/dist/Icons/TrashIcon.js +10 -10
  76. package/dist/Icons/UndoIcon.js +1 -1
  77. package/dist/Icons/UserIcon.js +1 -1
  78. package/dist/Icons/WarningIcon.js +9 -9
  79. package/dist/Icons/ZoomAllIcon.js +97 -57
  80. package/dist/Icons/ZoomXIcon.js +6 -6
  81. package/dist/Icons/ZoomYIcon.js +17 -8
  82. package/dist/Icons/index.d.ts +9 -0
  83. package/dist/Icons.js +114 -96
  84. package/dist/Input.js +30 -21
  85. package/dist/InputOTP.js +11 -2
  86. package/dist/MultiSelect/MultiSelectBase.js +6 -6
  87. package/dist/Select.d.ts +12 -12
  88. package/dist/Select.js +77 -68
  89. package/dist/Textarea.js +25 -16
  90. package/dist/Tray.js +25 -16
  91. package/dist/analyzer/network.webp +0 -0
  92. package/dist/analyzer/sunburst.webp +0 -0
  93. package/dist/analyzer/visual.webp +0 -0
  94. package/dist/components/Button/Button.d.ts +3 -3
  95. package/dist/components/Button/Button.d.ts.map +1 -1
  96. package/dist/components/Card/Card.d.ts +16 -0
  97. package/dist/components/Card/Card.d.ts.map +1 -0
  98. package/dist/components/Dialog/Dialog.d.ts +1 -1
  99. package/dist/components/Dialog/Dialog.d.ts.map +1 -1
  100. package/dist/components/Dialog/DialogBase.d.ts +5 -2
  101. package/dist/components/Dialog/DialogBase.d.ts.map +1 -1
  102. package/dist/components/Icons/AnalyzeIcon.d.ts +3 -0
  103. package/dist/components/Icons/AnalyzeIcon.d.ts.map +1 -0
  104. package/dist/components/Icons/ApprovedIcon.d.ts +3 -0
  105. package/dist/components/Icons/ApprovedIcon.d.ts.map +1 -0
  106. package/dist/components/Icons/DatabaseIcon.d.ts +3 -0
  107. package/dist/components/Icons/DatabaseIcon.d.ts.map +1 -0
  108. package/dist/components/Icons/DeleteIcon.d.ts.map +1 -1
  109. package/dist/components/Icons/EraserIcon.d.ts.map +1 -1
  110. package/dist/components/Icons/IconBase.d.ts +1 -1
  111. package/dist/components/Icons/IconBase.d.ts.map +1 -1
  112. package/dist/components/Icons/LineToolIcon.d.ts.map +1 -1
  113. package/dist/components/Icons/LineToolIcon2.d.ts +3 -0
  114. package/dist/components/Icons/LineToolIcon2.d.ts.map +1 -0
  115. package/dist/components/Icons/OntologyIcon.d.ts.map +1 -1
  116. package/dist/components/Icons/PlusIcon.d.ts.map +1 -1
  117. package/dist/components/Icons/ReviewedIcon.d.ts +3 -0
  118. package/dist/components/Icons/ReviewedIcon.d.ts.map +1 -0
  119. package/dist/components/Icons/SettingsIcon.d.ts.map +1 -1
  120. package/dist/components/Icons/SortAscendingIcon.d.ts +3 -0
  121. package/dist/components/Icons/SortAscendingIcon.d.ts.map +1 -0
  122. package/dist/components/Icons/SortDescendingIcon.d.ts +3 -0
  123. package/dist/components/Icons/SortDescendingIcon.d.ts.map +1 -0
  124. package/dist/components/Icons/StackIcon.d.ts +3 -0
  125. package/dist/components/Icons/StackIcon.d.ts.map +1 -0
  126. package/dist/components/Icons/StarIcon.d.ts +3 -0
  127. package/dist/components/Icons/StarIcon.d.ts.map +1 -0
  128. package/dist/components/Icons/ZoomAllIcon.d.ts.map +1 -1
  129. package/dist/components/Icons/ZoomYIcon.d.ts.map +1 -1
  130. package/dist/components/Icons/index.d.ts +9 -0
  131. package/dist/components/Icons/index.d.ts.map +1 -1
  132. package/dist/components/Select/Select.d.ts +12 -12
  133. package/dist/components/Select/Select.d.ts.map +1 -1
  134. package/dist/{createLucideIcon-CI1yJrZf.js → createLucideIcon-B_8CJpcQ.js} +4 -4
  135. package/dist/features/AuthCard/ForgotPasswordEmailForm.js +11 -2
  136. package/dist/features/AuthCard/PasswordInput.js +19 -10
  137. package/dist/features/AuthCard/SignInForm.js +21 -12
  138. package/dist/features/AuthCard/SignUpForm.js +21 -12
  139. package/dist/features/LabelingTools.js +11 -2
  140. package/dist/features/SensorMetadata.js +14 -5
  141. package/dist/features/SettingsPopover.js +21 -12
  142. package/dist/index.d.ts +1 -0
  143. package/dist/index.d.ts.map +1 -1
  144. package/dist/{loader-circle-CvdzOiQ_.js → loader-circle-CdRVlFhN.js} +2 -2
  145. package/dist/main.js +15630 -13510
  146. package/dist/primitives/select.js +41 -32
  147. package/dist/styles/main.css +1 -1
  148. package/dist/{x-BBpi7a_7.js → x-Dl66o_vF.js} +2 -2
  149. package/package.json +22 -22
  150. /package/dist/{list.yml.webp → analyzer/list.yml.webp} +0 -0
package/dist/Input.js CHANGED
@@ -1,10 +1,12 @@
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 q, usePrefixWidth as tt, useClearOnFocus as et } from "./Input/InputUtils.js";
4
+ import { usePasswordVisibility as q, usePrefixWidth as tt, useClearOnFocus as rt } from "./Input/InputUtils.js";
5
+ import "./Icons/AnalyzeIcon.js";
5
6
  import "./Icons/AnnotationsIcon.js";
7
+ import "./Icons/ApprovedIcon.js";
6
8
  import "./Icons/CalendarIcon.js";
7
- import { CheckCircleIcon as rt } from "./Icons/CheckCircleIcon.js";
9
+ import { CheckCircleIcon as et } from "./Icons/CheckCircleIcon.js";
8
10
  import "./Icons/CheckSquareIcon.js";
9
11
  import "./Icons/CheckmarkIcon.js";
10
12
  import "./Icons/ChevronDownIcon.js";
@@ -13,6 +15,7 @@ import "./Icons/ClockIcon.js";
13
15
  import { CloseCircleIcon as ot } from "./Icons/CloseCircleIcon.js";
14
16
  import "./Icons/CloseIcon.js";
15
17
  import "./Icons/DashboardIcon.js";
18
+ import "./Icons/DatabaseIcon.js";
16
19
  import "./Icons/DeleteIcon.js";
17
20
  import "./Icons/DurationIcon.js";
18
21
  import "./Icons/EmailIcon.js";
@@ -28,6 +31,7 @@ import "./Icons/InfoIcon.js";
28
31
  import "./Icons/LabelIcon.js";
29
32
  import "./Icons/LassoIcon.js";
30
33
  import "./Icons/LineToolIcon.js";
34
+ import "./Icons/LineToolIcon2.js";
31
35
  import "./Icons/LiveViewIcon.js";
32
36
  import { LoaderIcon as nt } from "./Icons/LoaderIcon.js";
33
37
  import "./Icons/LocationIcon.js";
@@ -41,8 +45,13 @@ import "./Icons/PanelIconOpen.js";
41
45
  import "./Icons/PlayIcon.js";
42
46
  import "./Icons/PlusIcon.js";
43
47
  import "./Icons/ResetIcon.js";
48
+ import "./Icons/ReviewedIcon.js";
44
49
  import "./Icons/ScissorsIcon.js";
45
50
  import "./Icons/SettingsIcon.js";
51
+ import "./Icons/SortAscendingIcon.js";
52
+ import "./Icons/SortDescendingIcon.js";
53
+ import "./Icons/StackIcon.js";
54
+ import "./Icons/StarIcon.js";
46
55
  import "./Icons/TrashIcon.js";
47
56
  import "./Icons/UndoIcon.js";
48
57
  import "./Icons/UserIcon.js";
@@ -70,7 +79,7 @@ const xt = (m) => ({
70
79
  disabled: k,
71
80
  errorMessage: b,
72
81
  id: P,
73
- label: r,
82
+ label: e,
74
83
  name: x,
75
84
  onBlur: g,
76
85
  onValueChange: a,
@@ -89,35 +98,35 @@ const xt = (m) => ({
89
98
  "aria-describedby": M,
90
99
  ...O
91
100
  }, j) => {
92
- const l = lt(P, x), N = `${l}-error`, { isDisabled: F, isLoading: A, isInvalid: B } = dt(k, o), H = ct(o, w, N, M), W = bt(null), i = j || W, { isVisible: d, toggleVisibility: D, inputType: T } = q(), { prefixWidth: V, prefixRef: G } = tt(n), { handleFocus: E } = et(
101
+ const l = lt(P, x), N = `${l}-error`, { isDisabled: F, isLoading: A, isInvalid: B } = dt(k, o), H = ct(o, w, N, M), W = bt(null), i = j || W, { isVisible: d, toggleVisibility: D, inputType: T } = q(), { prefixWidth: V, prefixRef: G } = tt(n), { handleFocus: E } = rt(
93
102
  h,
94
- a ? (e) => a(e.target.value) : void 0
103
+ a ? (r) => a(r.target.value) : void 0
95
104
  ), J = c(
96
- (e) => {
97
- g?.(e);
105
+ (r) => {
106
+ g?.(r);
98
107
  },
99
108
  [g]
100
109
  ), K = c(
101
- (e) => {
102
- E(e, C);
110
+ (r) => {
111
+ E(r, C);
103
112
  },
104
113
  [E, C]
105
114
  ), Q = c(
106
- (e) => {
107
- a?.(e.target.value);
115
+ (r) => {
116
+ a?.(r.target.value);
108
117
  },
109
118
  [a]
110
119
  ), U = c(() => {
111
120
  i.current && (i.current.value = "", i.current.dispatchEvent(new Event("input", { bubbles: !0 })), i.current.focus());
112
121
  }, [i]), z = S && v.length > 0, X = () => {
113
- 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", s = {
122
+ 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", s = {
114
123
  password: () => /* @__PURE__ */ t(
115
124
  "button",
116
125
  {
117
- className: e,
126
+ className: r,
118
127
  type: "button",
119
128
  onClick: D,
120
- "aria-label": d ? `Hide ${r}` : `Show ${r}`,
129
+ "aria-label": d ? `Hide ${e}` : `Show ${e}`,
121
130
  "aria-pressed": d,
122
131
  "aria-controls": l,
123
132
  "data-testid": "input-password-toggle",
@@ -127,17 +136,17 @@ const xt = (m) => ({
127
136
  clear: () => /* @__PURE__ */ t(
128
137
  "button",
129
138
  {
130
- className: e,
139
+ className: r,
131
140
  type: "button",
132
141
  onClick: U,
133
- "aria-label": `Clear ${r}`,
142
+ "aria-label": `Clear ${e}`,
134
143
  "data-testid": "input-clear-button",
135
144
  children: /* @__PURE__ */ t(ot, { size: 24 })
136
145
  }
137
146
  ),
138
147
  loading: () => /* @__PURE__ */ t("div", { className: "absolute top-1/2 right-4 -translate-y-1/2", "data-testid": "input-loading-icon", children: /* @__PURE__ */ t(nt, { size: 24 }) }),
139
148
  error: () => /* @__PURE__ */ t("div", { className: "text-danger-400 absolute top-1/2 right-4 -translate-y-1/2", "data-testid": "input-error-icon", children: /* @__PURE__ */ t(it, { size: 24 }) }),
140
- success: () => /* @__PURE__ */ t("div", { className: "text-success-400 absolute top-1/2 right-4 -translate-y-1/2", "data-testid": "input-success-icon", children: /* @__PURE__ */ t(rt, { size: 24 }) })
149
+ success: () => /* @__PURE__ */ t("div", { className: "text-success-400 absolute top-1/2 right-4 -translate-y-1/2", "data-testid": "input-success-icon", children: /* @__PURE__ */ t(et, { size: 24 }) })
141
150
  };
142
151
  return I || (p === "password" ? s.password() : z ? s.clear() : A ? s.loading() : o === "success" ? s.success() : o === "error" ? s.error() : null);
143
152
  }, Y = () => y || null, Z = f(
@@ -148,7 +157,7 @@ const xt = (m) => ({
148
157
  "pointer-events-none absolute inset-y-0 left-4 flex items-center text-base text-input-text-prefix opacity-100 peer-disabled:opacity-50"
149
158
  );
150
159
  return /* @__PURE__ */ u("div", { className: "w-full space-y-1.5", "data-testid": "input-root", children: [
151
- r && /* @__PURE__ */ t(
160
+ e && /* @__PURE__ */ t(
152
161
  pt,
153
162
  {
154
163
  htmlFor: l,
@@ -156,7 +165,7 @@ const xt = (m) => ({
156
165
  "mb-2 block",
157
166
  F && "text-input-text--disabled placeholder:text-input-text-placeholder cursor-not-allowed"
158
167
  ),
159
- children: r
168
+ children: e
160
169
  }
161
170
  ),
162
171
  /* @__PURE__ */ u("div", { className: "relative", "data-testid": "input-wrapper", children: [
@@ -178,7 +187,7 @@ const xt = (m) => ({
178
187
  onChange: Q,
179
188
  onFocus: K,
180
189
  onBlur: J,
181
- placeholder: R || r,
190
+ placeholder: R || e,
182
191
  suppressHydrationWarning: $,
183
192
  ...H,
184
193
  ...O,
@@ -187,7 +196,7 @@ const xt = (m) => ({
187
196
  style: ut({
188
197
  "--prefix-width": n ? `${V}px` : "0px"
189
198
  }),
190
- "aria-label": L || r
199
+ "aria-label": L || e
191
200
  }
192
201
  ),
193
202
  X()
package/dist/InputOTP.js CHANGED
@@ -1,7 +1,9 @@
1
1
  "use client";
2
2
  import "./styles/main.css";
3
3
  import { jsx as k, jsxs as vt } from "react/jsx-runtime";
4
+ import "./Icons/AnalyzeIcon.js";
4
5
  import "./Icons/AnnotationsIcon.js";
6
+ import "./Icons/ApprovedIcon.js";
5
7
  import "./Icons/CalendarIcon.js";
6
8
  import "./Icons/CheckCircleIcon.js";
7
9
  import "./Icons/CheckSquareIcon.js";
@@ -12,6 +14,7 @@ import "./Icons/ClockIcon.js";
12
14
  import "./Icons/CloseCircleIcon.js";
13
15
  import "./Icons/CloseIcon.js";
14
16
  import "./Icons/DashboardIcon.js";
17
+ import "./Icons/DatabaseIcon.js";
15
18
  import "./Icons/DeleteIcon.js";
16
19
  import "./Icons/DurationIcon.js";
17
20
  import "./Icons/EmailIcon.js";
@@ -27,6 +30,7 @@ import "./Icons/InfoIcon.js";
27
30
  import "./Icons/LabelIcon.js";
28
31
  import "./Icons/LassoIcon.js";
29
32
  import "./Icons/LineToolIcon.js";
33
+ import "./Icons/LineToolIcon2.js";
30
34
  import "./Icons/LiveViewIcon.js";
31
35
  import "./Icons/LoaderIcon.js";
32
36
  import "./Icons/LocationIcon.js";
@@ -40,8 +44,13 @@ import "./Icons/PanelIconOpen.js";
40
44
  import "./Icons/PlayIcon.js";
41
45
  import "./Icons/PlusIcon.js";
42
46
  import "./Icons/ResetIcon.js";
47
+ import "./Icons/ReviewedIcon.js";
43
48
  import "./Icons/ScissorsIcon.js";
44
49
  import "./Icons/SettingsIcon.js";
50
+ import "./Icons/SortAscendingIcon.js";
51
+ import "./Icons/SortDescendingIcon.js";
52
+ import "./Icons/StackIcon.js";
53
+ import "./Icons/StarIcon.js";
45
54
  import "./Icons/TrashIcon.js";
46
55
  import "./Icons/UndoIcon.js";
47
56
  import "./Icons/UserIcon.js";
@@ -353,11 +362,11 @@ const Rt = Q(({ ...t }, r) => {
353
362
  ) });
354
363
  });
355
364
  Rt.displayName = "InputOTP.Separator";
356
- const en = Object.assign(Mt, {
365
+ const pn = Object.assign(Mt, {
357
366
  Group: kt,
358
367
  Slot: Tt,
359
368
  Separator: Rt
360
369
  });
361
370
  export {
362
- en as InputOTP
371
+ pn as InputOTP
363
372
  };
@@ -3,25 +3,25 @@ import "../styles/main.css";
3
3
  import { jsxs as a, jsx as s, Fragment as ue } from "react/jsx-runtime";
4
4
  import { cn as p } from "../utils/twUtils.js";
5
5
  import { forwardRef as pe, useId as me, useState as I, useRef as P, useMemo as F, useCallback as b, useEffect as be } from "react";
6
- import { X as K } from "../x-BBpi7a_7.js";
7
- import { c as O } from "../createLucideIcon-CI1yJrZf.js";
8
- import { L as fe } from "../loader-circle-CvdzOiQ_.js";
6
+ import { X as K } from "../x-Dl66o_vF.js";
7
+ import { c as O } from "../createLucideIcon-B_8CJpcQ.js";
8
+ import { L as fe } from "../loader-circle-CdRVlFhN.js";
9
9
  /**
10
- * @license lucide-react v0.542.0 - ISC
10
+ * @license lucide-react v0.546.0 - ISC
11
11
  *
12
12
  * This source code is licensed under the ISC license.
13
13
  * See the LICENSE file in the root directory of this source tree.
14
14
  */
15
15
  const ge = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], he = O("check", ge);
16
16
  /**
17
- * @license lucide-react v0.542.0 - ISC
17
+ * @license lucide-react v0.546.0 - ISC
18
18
  *
19
19
  * This source code is licensed under the ISC license.
20
20
  * See the LICENSE file in the root directory of this source tree.
21
21
  */
22
22
  const xe = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], ye = O("chevron-down", xe);
23
23
  /**
24
- * @license lucide-react v0.542.0 - ISC
24
+ * @license lucide-react v0.546.0 - ISC
25
25
  *
26
26
  * This source code is licensed under the ISC license.
27
27
  * See the LICENSE file in the root directory of this source tree.
package/dist/Select.d.ts CHANGED
@@ -4,22 +4,22 @@ type SelectOption = BaseOption;
4
4
  type Side = 'top' | 'bottom' | 'left' | 'right';
5
5
  type Align = 'start' | 'center' | 'end';
6
6
  export interface SelectProps extends Omit<ComponentPropsWithoutRef<'button'>, 'value' | 'onChange'>, BaseFormFieldProps {
7
- readonly defaultValue?: string;
8
- readonly emptyMessage?: ReactNode;
9
- readonly loadingMessage?: string;
7
+ defaultValue?: string;
8
+ emptyMessage?: ReactNode;
9
+ loadingMessage?: string;
10
10
  onChange?: (value: string) => void;
11
- readonly options: SelectOption[];
12
- readonly placeholder?: string;
13
- readonly id?: string;
11
+ options: SelectOption[];
12
+ placeholder?: string;
13
+ id?: string;
14
14
  value?: string;
15
15
  }
16
16
  export interface SelectExtendedProps extends SelectProps {
17
- readonly position?: 'popper' | 'item-aligned';
18
- readonly side?: Side;
19
- readonly align?: Align;
20
- readonly sideOffset?: number;
21
- readonly alignOffset?: number;
22
- readonly collisionPadding?: number | Partial<Record<Side, number>>;
17
+ position?: 'popper' | 'item-aligned';
18
+ side?: Side;
19
+ align?: Align;
20
+ sideOffset?: number;
21
+ alignOffset?: number;
22
+ collisionPadding?: number | Partial<Record<Side, number>>;
23
23
  }
24
24
  export declare const Select: import('react').ForwardRefExoticComponent<SelectExtendedProps & import('react').RefAttributes<HTMLButtonElement>>;
25
25
  export {};
package/dist/Select.js CHANGED
@@ -1,17 +1,20 @@
1
1
  "use client";
2
2
  import "./styles/main.css";
3
3
  import { jsxs as r, jsx as e, Fragment as v } from "react/jsx-runtime";
4
+ import "./Icons/AnalyzeIcon.js";
4
5
  import "./Icons/AnnotationsIcon.js";
6
+ import "./Icons/ApprovedIcon.js";
5
7
  import "./Icons/CalendarIcon.js";
6
8
  import "./Icons/CheckCircleIcon.js";
7
9
  import "./Icons/CheckSquareIcon.js";
8
- import { CheckmarkIcon as H } from "./Icons/CheckmarkIcon.js";
10
+ import { CheckmarkIcon as U } from "./Icons/CheckmarkIcon.js";
9
11
  import { ChevronDownIcon as l } from "./Icons/ChevronDownIcon.js";
10
12
  import "./Icons/ChevronUpIcon.js";
11
13
  import "./Icons/ClockIcon.js";
12
14
  import "./Icons/CloseCircleIcon.js";
13
15
  import "./Icons/CloseIcon.js";
14
16
  import "./Icons/DashboardIcon.js";
17
+ import "./Icons/DatabaseIcon.js";
15
18
  import "./Icons/DeleteIcon.js";
16
19
  import "./Icons/DurationIcon.js";
17
20
  import "./Icons/EmailIcon.js";
@@ -27,8 +30,9 @@ import "./Icons/InfoIcon.js";
27
30
  import "./Icons/LabelIcon.js";
28
31
  import "./Icons/LassoIcon.js";
29
32
  import "./Icons/LineToolIcon.js";
33
+ import "./Icons/LineToolIcon2.js";
30
34
  import "./Icons/LiveViewIcon.js";
31
- import { LoaderIcon as U } from "./Icons/LoaderIcon.js";
35
+ import { LoaderIcon as J } from "./Icons/LoaderIcon.js";
32
36
  import "./Icons/LocationIcon.js";
33
37
  import "./Icons/LogoutIcon.js";
34
38
  import "./Icons/MessagesIcon.js";
@@ -40,8 +44,13 @@ import "./Icons/PanelIconOpen.js";
40
44
  import "./Icons/PlayIcon.js";
41
45
  import "./Icons/PlusIcon.js";
42
46
  import "./Icons/ResetIcon.js";
47
+ import "./Icons/ReviewedIcon.js";
43
48
  import "./Icons/ScissorsIcon.js";
44
49
  import "./Icons/SettingsIcon.js";
50
+ import "./Icons/SortAscendingIcon.js";
51
+ import "./Icons/SortDescendingIcon.js";
52
+ import "./Icons/StackIcon.js";
53
+ import "./Icons/StarIcon.js";
45
54
  import "./Icons/TrashIcon.js";
46
55
  import "./Icons/UndoIcon.js";
47
56
  import "./Icons/UserIcon.js";
@@ -49,55 +58,55 @@ import "./Icons/WarningIcon.js";
49
58
  import "./Icons/ZoomAllIcon.js";
50
59
  import "./Icons/ZoomXIcon.js";
51
60
  import "./Icons/ZoomYIcon.js";
52
- import { Label as $ } from "./Label.js";
53
- import { R as J, T as K, f as Q, e as W, C as X, c as Y, V as Z, S as _, d as S, G as ee, L as te, I as re, b as ie, a as ae } from "./index-CevVJ05e.js";
54
- import { useFormFieldId as oe, useFormFieldState as se, getAriaProps as me, getErrorMessageId as de, groupOptions as le, getFormFieldCSSProperties as ne, getStateClasses as ce, getTriggerClasses as pe, ErrorMessage as ue, LoadingState as he, EmptyState as fe, getOptionClasses as be } from "./utils/formFieldUtils.js";
61
+ import { Label as S } from "./Label.js";
62
+ import { R as K, T as Q, f as W, e as X, C as Y, c as Z, V as _, S as $, d as C, G as ee, I as te, b as re, a as ie } from "./index-CevVJ05e.js";
63
+ import { useFormFieldId as oe, useFormFieldState as ae, getAriaProps as se, getErrorMessageId as me, groupOptions as de, getFormFieldCSSProperties as le, getStateClasses as ne, getTriggerClasses as pe, ErrorMessage as ce, LoadingState as ue, EmptyState as he, getOptionClasses as fe } from "./utils/formFieldUtils.js";
55
64
  import { cn as a } from "./utils/twUtils.js";
56
- import { forwardRef as ge } from "react";
57
- const xe = ge(
65
+ import { forwardRef as be } from "react";
66
+ const ge = be(
58
67
  ({
59
- align: C = "start",
60
- alignOffset: I = 0,
61
- className: w,
62
- collisionPadding: z = 10,
63
- defaultValue: F,
64
- emptyMessage: j = "No options found",
68
+ align: I = "start",
69
+ alignOffset: w = 0,
70
+ className: z,
71
+ collisionPadding: F = 10,
72
+ defaultValue: j,
73
+ emptyMessage: k = "No options found",
65
74
  errorMessage: n,
66
- id: L,
67
- label: o,
68
- loadingMessage: k = "Loading…",
69
- name: c,
70
- onChange: O,
71
- options: p = [],
72
- placeholder: T = "Select an option",
73
- position: V = "popper",
74
- side: D = "bottom",
75
- sideOffset: E = 4,
75
+ id: O,
76
+ label: s,
77
+ loadingMessage: L = "Loading…",
78
+ name: p,
79
+ onChange: T,
80
+ options: c = [],
81
+ placeholder: V = "Select an option",
82
+ position: D = "popper",
83
+ side: E = "bottom",
84
+ sideOffset: P = 4,
76
85
  state: i = "default",
77
86
  value: u,
78
- "aria-label": P,
79
- "aria-describedby": R,
80
- ...s
81
- }, q) => {
82
- const m = oe(L, c), h = de(m), { isDisabled: f, isLoading: b, isInvalid: g } = se(s.disabled, i), B = me(i, g, h, R), { groups: x, ungrouped: y } = le(p), G = () => {
87
+ "aria-label": R,
88
+ "aria-describedby": q,
89
+ ...m
90
+ }, B) => {
91
+ const o = oe(O, p), h = me(o), { isDisabled: f, isLoading: b, isInvalid: g } = ae(m.disabled, i), G = se(i, g, h, q), { groups: x, ungrouped: y } = de(c), M = () => {
83
92
  if (b)
93
+ return /* @__PURE__ */ e(ue, { message: L });
94
+ if (c.length === 0)
84
95
  return /* @__PURE__ */ e(he, { message: k });
85
- if (p.length === 0)
86
- return /* @__PURE__ */ e(fe, { message: j });
87
96
  const N = (t) => {
88
97
  const d = u === t.value;
89
98
  return /* @__PURE__ */ r(
90
- re,
99
+ te,
91
100
  {
92
101
  value: t.value,
93
102
  disabled: t.disabled,
94
103
  className: a(
95
- be(d, !1, t.disabled),
104
+ fe(d, !1, t.disabled),
96
105
  "relative flex w-full cursor-pointer items-center"
97
106
  ),
98
107
  children: [
99
- /* @__PURE__ */ e(ie, { className: "block truncate", children: t.label }),
100
- /* @__PURE__ */ e(ae, { asChild: !0, children: /* @__PURE__ */ e("span", { className: "absolute right-2 flex h-4 w-4 items-center justify-center", children: /* @__PURE__ */ e(H, { size: 16 }) }) })
108
+ /* @__PURE__ */ e(re, { className: "block truncate", children: t.label }),
109
+ /* @__PURE__ */ e(ie, { asChild: !0, children: /* @__PURE__ */ e("span", { className: "absolute right-2 flex h-4 w-4 items-center justify-center", children: /* @__PURE__ */ e(U, { size: 16 }) }) })
101
110
  ]
102
111
  },
103
112
  t.value
@@ -106,42 +115,42 @@ const xe = ge(
106
115
  return /* @__PURE__ */ r(v, { children: [
107
116
  y.length > 0 && /* @__PURE__ */ r(v, { children: [
108
117
  y.map(N),
109
- Object.keys(x).length > 0 && /* @__PURE__ */ e(S, { className: "bg-border-secondary -mx-1 my-1 h-px" })
118
+ Object.keys(x).length > 0 && /* @__PURE__ */ e(C, { className: "bg-border-secondary -mx-1 my-1 h-px" })
110
119
  ] }),
111
- Object.entries(x).map(([t, d], M) => /* @__PURE__ */ r(ee, { children: [
112
- M > 0 && /* @__PURE__ */ e(S, { className: "bg-border-secondary -mx-1 my-1 h-px" }),
113
- /* @__PURE__ */ e(te, { className: "text-text-primary px-2 py-1.5 text-base font-semibold", children: t }),
114
- d.map((A) => N(A))
120
+ Object.entries(x).map(([t, d], A) => /* @__PURE__ */ r(ee, { children: [
121
+ A > 0 && /* @__PURE__ */ e(C, { className: "bg-border-secondary -mx-1 my-1 h-px" }),
122
+ /* @__PURE__ */ e(S, { htmlFor: o, className: "text-text-primary px-2 py-1.5 text-base font-semibold", children: t }),
123
+ d.map((H) => N(H))
115
124
  ] }, t))
116
125
  ] });
117
126
  };
118
127
  return /* @__PURE__ */ r("div", { className: "w-full", "data-testid": "select-root", children: [
119
- o && /* @__PURE__ */ e($, { htmlFor: m, className: a("text-text-primary mb-4 block", f && "text-text-secondary"), children: o }),
128
+ s && /* @__PURE__ */ e(S, { htmlFor: o, className: a("text-text-primary mb-4 block", f && "text-text-secondary"), children: s }),
120
129
  /* @__PURE__ */ r(
121
- J,
130
+ K,
122
131
  {
123
132
  value: u,
124
- defaultValue: F,
125
- onValueChange: O,
133
+ defaultValue: j,
134
+ onValueChange: T,
126
135
  disabled: f,
127
- name: c,
128
- required: s.required,
136
+ name: p,
137
+ required: m.required,
129
138
  children: [
130
139
  /* @__PURE__ */ e(
131
- K,
140
+ Q,
132
141
  {
133
- ref: q,
134
- id: m,
135
- className: a(pe(i, !1), ce(i), w),
136
- "aria-label": P || o,
142
+ ref: B,
143
+ id: o,
144
+ className: a(pe(i, !1), ne(i), z),
145
+ "aria-label": R || s,
137
146
  "data-state": i,
138
- style: ne(),
139
- ...B,
140
- ...s,
147
+ style: le(),
148
+ ...G,
149
+ ...m,
141
150
  asChild: !0,
142
151
  children: /* @__PURE__ */ r("button", { type: "button", children: [
143
- /* @__PURE__ */ e(Q, { placeholder: T, className: "block truncate" }),
144
- /* @__PURE__ */ e(W, { asChild: !0, children: /* @__PURE__ */ e("div", { className: "flex items-center", children: b ? /* @__PURE__ */ e(U, { size: 20 }) : /* @__PURE__ */ e(
152
+ /* @__PURE__ */ e(W, { placeholder: V, className: "block truncate" }),
153
+ /* @__PURE__ */ e(X, { asChild: !0, children: /* @__PURE__ */ e("div", { className: "flex items-center", children: b ? /* @__PURE__ */ e(J, { size: 20 }) : /* @__PURE__ */ e(
145
154
  l,
146
155
  {
147
156
  className: "transition-transform duration-200 data-[state=open]:rotate-180",
@@ -152,14 +161,14 @@ const xe = ge(
152
161
  }
153
162
  ),
154
163
  /* @__PURE__ */ e(
155
- X,
164
+ Y,
156
165
  {
157
- position: V,
158
- side: D,
159
- align: C,
160
- sideOffset: E,
161
- alignOffset: I,
162
- collisionPadding: z,
166
+ position: D,
167
+ side: E,
168
+ align: I,
169
+ sideOffset: P,
170
+ alignOffset: w,
171
+ collisionPadding: F,
163
172
  asChild: !0,
164
173
  children: /* @__PURE__ */ r(
165
174
  "div",
@@ -181,9 +190,9 @@ const xe = ge(
181
190
  maxHeight: "var(--radix-select-content-available-height)"
182
191
  },
183
192
  children: [
184
- /* @__PURE__ */ e(Y, { className: "flex cursor-default items-center justify-center py-1", children: /* @__PURE__ */ e(l, { className: "rotate-180", size: 18 }) }),
185
- /* @__PURE__ */ e(Z, { asChild: !0, children: /* @__PURE__ */ e("div", { className: "max-h-96 p-1", style: { position: "relative", overflow: "hidden auto" }, children: G() }) }),
186
- /* @__PURE__ */ e(_, { className: "flex cursor-default items-center justify-center py-1", children: /* @__PURE__ */ e(l, { size: 18 }) })
193
+ /* @__PURE__ */ e(Z, { className: "flex cursor-default items-center justify-center py-1", children: /* @__PURE__ */ e(l, { className: "rotate-180", size: 18 }) }),
194
+ /* @__PURE__ */ e(_, { asChild: !0, children: /* @__PURE__ */ e("div", { className: "max-h-96 p-1", style: { position: "relative", overflow: "hidden auto" }, children: M() }) }),
195
+ /* @__PURE__ */ e($, { className: "flex cursor-default items-center justify-center py-1", children: /* @__PURE__ */ e(l, { size: 18 }) })
187
196
  ]
188
197
  }
189
198
  )
@@ -192,11 +201,11 @@ const xe = ge(
192
201
  ]
193
202
  }
194
203
  ),
195
- g && n && /* @__PURE__ */ e(ue, { id: h, message: n })
204
+ g && n && /* @__PURE__ */ e(ce, { id: h, message: n })
196
205
  ] });
197
206
  }
198
207
  );
199
- xe.displayName = "Select";
208
+ ge.displayName = "Select";
200
209
  export {
201
- xe as Select
210
+ ge as Select
202
211
  };
package/dist/Textarea.js CHANGED
@@ -2,7 +2,9 @@
2
2
  import "./styles/main.css";
3
3
  import { jsxs as l, jsx as e } from "react/jsx-runtime";
4
4
  import { useTextarea as z } from "./Textarea/TextareaUtils.js";
5
+ import "./Icons/AnalyzeIcon.js";
5
6
  import "./Icons/AnnotationsIcon.js";
7
+ import "./Icons/ApprovedIcon.js";
6
8
  import "./Icons/CalendarIcon.js";
7
9
  import "./Icons/CheckCircleIcon.js";
8
10
  import "./Icons/CheckSquareIcon.js";
@@ -13,6 +15,7 @@ import "./Icons/ClockIcon.js";
13
15
  import "./Icons/CloseCircleIcon.js";
14
16
  import "./Icons/CloseIcon.js";
15
17
  import "./Icons/DashboardIcon.js";
18
+ import "./Icons/DatabaseIcon.js";
16
19
  import "./Icons/DeleteIcon.js";
17
20
  import "./Icons/DurationIcon.js";
18
21
  import "./Icons/EmailIcon.js";
@@ -28,6 +31,7 @@ import "./Icons/InfoIcon.js";
28
31
  import "./Icons/LabelIcon.js";
29
32
  import "./Icons/LassoIcon.js";
30
33
  import "./Icons/LineToolIcon.js";
34
+ import "./Icons/LineToolIcon2.js";
31
35
  import "./Icons/LiveViewIcon.js";
32
36
  import { LoaderIcon as B } from "./Icons/LoaderIcon.js";
33
37
  import "./Icons/LocationIcon.js";
@@ -41,8 +45,13 @@ import "./Icons/PanelIconOpen.js";
41
45
  import "./Icons/PlayIcon.js";
42
46
  import "./Icons/PlusIcon.js";
43
47
  import "./Icons/ResetIcon.js";
48
+ import "./Icons/ReviewedIcon.js";
44
49
  import "./Icons/ScissorsIcon.js";
45
50
  import "./Icons/SettingsIcon.js";
51
+ import "./Icons/SortAscendingIcon.js";
52
+ import "./Icons/SortDescendingIcon.js";
53
+ import "./Icons/StackIcon.js";
54
+ import "./Icons/StarIcon.js";
46
55
  import "./Icons/TrashIcon.js";
47
56
  import "./Icons/UndoIcon.js";
48
57
  import "./Icons/UserIcon.js";
@@ -55,40 +64,40 @@ import { useFormFieldId as E, getAriaProps as O, getErrorMessageId as _, getText
55
64
  import { cn as h } from "./utils/twUtils.js";
56
65
  import { forwardRef as M, useRef as V } from "react";
57
66
  const H = "absolute right-4 top-4", J = (r) => r || "off", K = (r, t) => {
58
- const o = "absolute bottom-2 right-3 text-xs pointer-events-none z-10 tabular-nums", a = r >= t ? "text-danger-400" : "text-text-secondary";
59
- return h(o, a);
67
+ const o = "absolute bottom-2 right-3 text-xs pointer-events-none z-10 tabular-nums", i = r >= t ? "text-danger-400" : "text-text-secondary";
68
+ return h(o, i);
60
69
  }, Q = M(
61
70
  ({
62
71
  className: r,
63
72
  state: t = "default",
64
73
  errorMessage: o,
65
- name: a,
74
+ name: i,
66
75
  id: f,
67
76
  label: n,
68
77
  placeholder: g,
69
- value: s = "",
78
+ value: m = "",
70
79
  onFocus: C,
71
80
  onBlur: b,
72
81
  onChange: N,
73
82
  disabled: F,
74
83
  required: d,
75
- maxLength: i = 280,
84
+ maxLength: a = 280,
76
85
  autoComplete: I,
77
86
  ...c
78
87
  }, v) => {
79
- const m = E(f, a), u = _(m), S = V(null), y = v || S, { handleFocus: P, handleBlur: w, handleChange: A, handlePaste: R } = z({
80
- maxLength: i,
81
- value: s,
88
+ const s = E(f, i), u = _(s), S = V(null), y = v || S, { handleFocus: P, handleBlur: w, handleChange: A, handlePaste: R } = z({
89
+ maxLength: a,
90
+ value: m,
82
91
  onChange: N,
83
92
  onFocus: C,
84
93
  onBlur: b
85
- }), { isDisabled: x, isLoading: T } = G(F, t), L = O(t, d, u, c["aria-describedby"]), p = s?.length || 0, j = $(t, r), k = () => ({
94
+ }), { isDisabled: x, isLoading: T } = G(F, t), L = O(t, d, u, c["aria-describedby"]), p = m?.length || 0, j = $(t, r), k = () => ({
86
95
  "--textarea-min-height": "6rem",
87
96
  "--textarea-max-height": "12rem",
88
97
  "--textarea-border-radius": "0.5rem"
89
98
  });
90
99
  return /* @__PURE__ */ l("div", { className: "w-full", "data-testid": "textarea-root", children: [
91
- n && /* @__PURE__ */ e(D, { htmlFor: m, className: h("mb-2 block", x && "cursor-not-allowed opacity-50"), children: n }),
100
+ n && /* @__PURE__ */ e(D, { htmlFor: s, className: h("mb-2 block", x && "cursor-not-allowed opacity-50"), children: n }),
92
101
  /* @__PURE__ */ l("div", { className: "relative", "data-testid": "textarea-wrapper", children: [
93
102
  /* @__PURE__ */ e(
94
103
  "textarea",
@@ -99,8 +108,8 @@ const H = "absolute right-4 top-4", J = (r) => r || "off", K = (r, t) => {
99
108
  "data-state": t,
100
109
  "data-testid": "textarea-textarea",
101
110
  disabled: x,
102
- id: m,
103
- name: a,
111
+ id: s,
112
+ name: i,
104
113
  onBlur: w,
105
114
  onChange: A,
106
115
  onFocus: P,
@@ -110,7 +119,7 @@ const H = "absolute right-4 top-4", J = (r) => r || "off", K = (r, t) => {
110
119
  required: d,
111
120
  spellCheck: "true",
112
121
  style: k(),
113
- value: s,
122
+ value: m,
114
123
  ...L,
115
124
  ...c
116
125
  }
@@ -119,14 +128,14 @@ const H = "absolute right-4 top-4", J = (r) => r || "off", K = (r, t) => {
119
128
  /* @__PURE__ */ l(
120
129
  "div",
121
130
  {
122
- className: K(p, i),
131
+ className: K(p, a),
123
132
  role: "status",
124
133
  "aria-live": "polite",
125
- "aria-label": `${p} of ${i} characters used`,
134
+ "aria-label": `${p} of ${a} characters used`,
126
135
  children: [
127
136
  p,
128
137
  "/",
129
- i
138
+ a
130
139
  ]
131
140
  }
132
141
  )