@spear-ai/spectral 1.3.10 → 1.3.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.
Files changed (73) hide show
  1. package/dist/.js +91 -0
  2. package/dist/Accordion/AccordionBase.js +233 -0
  3. package/dist/App.js +8 -0
  4. package/dist/Badge/BadgeBase.js +35 -0
  5. package/dist/Badge.js +7 -0
  6. package/dist/Button.js +99 -0
  7. package/dist/Card.js +35 -0
  8. package/dist/Checkbox/CheckboxBase.js +141 -0
  9. package/dist/Drawer.js +1293 -0
  10. package/dist/Icons/AnnotationsIcon.js +28 -0
  11. package/dist/Icons/CalendarIcon.js +60 -0
  12. package/dist/Icons/ClockIcon.js +40 -0
  13. package/dist/Icons/DeleteIcon.js +32 -0
  14. package/dist/Icons/DurationIcon.js +80 -0
  15. package/dist/Icons/EraserIcon.js +37 -0
  16. package/dist/Icons/GoToFirstIcon.js +40 -0
  17. package/dist/Icons/GoToLastIcon.js +40 -0
  18. package/dist/Icons/IconBase.js +33 -0
  19. package/dist/Icons/LabelIcon.js +27 -0
  20. package/dist/Icons/LassoIcon.js +50 -0
  21. package/dist/Icons/LineToolIcon.js +96 -0
  22. package/dist/Icons/LiveViewIcon.js +70 -0
  23. package/dist/Icons/LocationIcon.js +40 -0
  24. package/dist/Icons/MetadataIcon.js +28 -0
  25. package/dist/Icons/OntologyIcon.js +31 -0
  26. package/dist/Icons/PlayIcon.js +28 -0
  27. package/dist/Icons/PlusIcon.js +27 -0
  28. package/dist/Icons/ResetIcon.js +25 -0
  29. package/dist/Icons/ScissorsIcon.js +36 -0
  30. package/dist/Icons/TrashIcon.js +25 -0
  31. package/dist/Icons/UndoIcon.js +28 -0
  32. package/dist/Icons/ZoomAllIcon.js +28 -0
  33. package/dist/Icons/ZoomXIcon.js +41 -0
  34. package/dist/Icons/ZoomYIcon.js +41 -0
  35. package/dist/Icons/iconTypes.js +2 -0
  36. package/dist/Icons.js +51 -0
  37. package/dist/Label.js +13 -0
  38. package/dist/Popover.js +250 -0
  39. package/dist/RadioGroup/RadioGroupBase.js +254 -0
  40. package/dist/Skeleton.js +10 -0
  41. package/dist/Slider/SliderBase.js +315 -0
  42. package/dist/Slider.js +74 -0
  43. package/dist/Switch/SwitchBase.js +131 -0
  44. package/dist/Switch.js +59 -0
  45. package/dist/Toggle/ToggleBase.js +51 -0
  46. package/dist/Toggle.js +51 -0
  47. package/dist/ToggleGroup/ToggleGroupBase.js +125 -0
  48. package/dist/ToggleGroup.js +53 -0
  49. package/dist/Toolbar.js +13 -0
  50. package/dist/Tooltip/TooltipBase.js +225 -0
  51. package/dist/Tooltip.js +371 -0
  52. package/dist/features/LabelingTools/LabelingTools.d.ts.map +1 -0
  53. package/dist/features/LabelingTools.js +107 -0
  54. package/dist/hooks/useAccordionAutoScroll.js +65 -0
  55. package/dist/hooks/useOutsideClick.js +16 -0
  56. package/dist/hooks/useTheme.js +19 -0
  57. package/dist/index-B7LSgz_k.js +446 -0
  58. package/dist/index-CRBC94ik.js +34 -0
  59. package/dist/index-gg2zpNk0.js +672 -0
  60. package/dist/index-sDEISz8i.js +1558 -0
  61. package/dist/loader-circle-Btf6jOd5.js +101 -0
  62. package/dist/main.js +25212 -0
  63. package/dist/primitives/label.js +27 -0
  64. package/dist/primitives/slot.js +40 -0
  65. package/dist/twUtils-CRiPKpXj.js +2743 -0
  66. package/dist/utils/refs.js +10 -0
  67. package/dist/utils/shared.js +29 -0
  68. package/dist/utils/twUtils.js +5 -0
  69. package/package.json +19 -7
  70. package/dist/components/LabelingTools/LabelingTools.d.ts.map +0 -1
  71. package/dist/index.js +0 -9253
  72. package/dist/spectral.cjs.js +0 -83
  73. /package/dist/{components → features}/LabelingTools/LabelingTools.d.ts +0 -0
@@ -0,0 +1,101 @@
1
+ import { forwardRef as l, createElement as n } from "react";
2
+ /**
3
+ * @license lucide-react v0.542.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */
8
+ const h = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), w = (t) => t.replace(
9
+ /^([A-Z])|[\s-_]+(\w)/g,
10
+ (e, r, o) => o ? o.toUpperCase() : r.toLowerCase()
11
+ ), i = (t) => {
12
+ const e = w(t);
13
+ return e.charAt(0).toUpperCase() + e.slice(1);
14
+ }, u = (...t) => t.filter((e, r, o) => !!e && e.trim() !== "" && o.indexOf(e) === r).join(" ").trim(), f = (t) => {
15
+ for (const e in t)
16
+ if (e.startsWith("aria-") || e === "role" || e === "title")
17
+ return !0;
18
+ };
19
+ /**
20
+ * @license lucide-react v0.542.0 - ISC
21
+ *
22
+ * This source code is licensed under the ISC license.
23
+ * See the LICENSE file in the root directory of this source tree.
24
+ */
25
+ var g = {
26
+ xmlns: "http://www.w3.org/2000/svg",
27
+ width: 24,
28
+ height: 24,
29
+ viewBox: "0 0 24 24",
30
+ fill: "none",
31
+ stroke: "currentColor",
32
+ strokeWidth: 2,
33
+ strokeLinecap: "round",
34
+ strokeLinejoin: "round"
35
+ };
36
+ /**
37
+ * @license lucide-react v0.542.0 - ISC
38
+ *
39
+ * This source code is licensed under the ISC license.
40
+ * See the LICENSE file in the root directory of this source tree.
41
+ */
42
+ const A = l(
43
+ ({
44
+ color: t = "currentColor",
45
+ size: e = 24,
46
+ strokeWidth: r = 2,
47
+ absoluteStrokeWidth: o,
48
+ className: s = "",
49
+ children: a,
50
+ iconNode: d,
51
+ ...c
52
+ }, p) => n(
53
+ "svg",
54
+ {
55
+ ref: p,
56
+ ...g,
57
+ width: e,
58
+ height: e,
59
+ stroke: t,
60
+ strokeWidth: o ? Number(r) * 24 / Number(e) : r,
61
+ className: u("lucide", s),
62
+ ...!a && !f(c) && { "aria-hidden": "true" },
63
+ ...c
64
+ },
65
+ [
66
+ ...d.map(([C, m]) => n(C, m)),
67
+ ...Array.isArray(a) ? a : [a]
68
+ ]
69
+ )
70
+ );
71
+ /**
72
+ * @license lucide-react v0.542.0 - ISC
73
+ *
74
+ * This source code is licensed under the ISC license.
75
+ * See the LICENSE file in the root directory of this source tree.
76
+ */
77
+ const L = (t, e) => {
78
+ const r = l(
79
+ ({ className: o, ...s }, a) => n(A, {
80
+ ref: a,
81
+ iconNode: e,
82
+ className: u(
83
+ `lucide-${h(i(t))}`,
84
+ `lucide-${t}`,
85
+ o
86
+ ),
87
+ ...s
88
+ })
89
+ );
90
+ return r.displayName = i(t), r;
91
+ };
92
+ /**
93
+ * @license lucide-react v0.542.0 - ISC
94
+ *
95
+ * This source code is licensed under the ISC license.
96
+ * See the LICENSE file in the root directory of this source tree.
97
+ */
98
+ const k = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], y = L("loader-circle", k);
99
+ export {
100
+ y as L
101
+ };