@spear-ai/spectral 1.3.12 → 1.3.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.
Files changed (62) hide show
  1. package/dist/.js +14 -1
  2. package/dist/Accordion/AccordionBase.js +14 -1
  3. package/dist/App.js +14 -1
  4. package/dist/Badge/BadgeBase.js +14 -1
  5. package/dist/Badge.js +14 -1
  6. package/dist/Button.js +14 -1
  7. package/dist/Card.js +14 -1
  8. package/dist/Checkbox/CheckboxBase.js +14 -1
  9. package/dist/Drawer.js +14 -1
  10. package/dist/Icons/AnnotationsIcon.js +14 -1
  11. package/dist/Icons/CalendarIcon.js +14 -1
  12. package/dist/Icons/ClockIcon.js +14 -1
  13. package/dist/Icons/DeleteIcon.js +14 -1
  14. package/dist/Icons/DurationIcon.js +14 -1
  15. package/dist/Icons/EraserIcon.js +14 -1
  16. package/dist/Icons/GoToFirstIcon.js +14 -1
  17. package/dist/Icons/GoToLastIcon.js +14 -1
  18. package/dist/Icons/IconBase.js +14 -1
  19. package/dist/Icons/LabelIcon.js +14 -1
  20. package/dist/Icons/LassoIcon.js +14 -1
  21. package/dist/Icons/LineToolIcon.js +14 -1
  22. package/dist/Icons/LiveViewIcon.js +14 -1
  23. package/dist/Icons/LocationIcon.js +14 -1
  24. package/dist/Icons/MetadataIcon.js +14 -1
  25. package/dist/Icons/OntologyIcon.js +14 -1
  26. package/dist/Icons/PlayIcon.js +14 -1
  27. package/dist/Icons/PlusIcon.js +14 -1
  28. package/dist/Icons/ResetIcon.js +14 -1
  29. package/dist/Icons/ScissorsIcon.js +14 -1
  30. package/dist/Icons/TrashIcon.js +14 -1
  31. package/dist/Icons/UndoIcon.js +14 -1
  32. package/dist/Icons/ZoomAllIcon.js +14 -1
  33. package/dist/Icons/ZoomXIcon.js +14 -1
  34. package/dist/Icons/ZoomYIcon.js +14 -1
  35. package/dist/Icons/iconTypes.js +14 -1
  36. package/dist/Icons.js +14 -1
  37. package/dist/Label.js +14 -1
  38. package/dist/Popover.js +14 -1
  39. package/dist/RadioGroup/RadioGroupBase.js +14 -1
  40. package/dist/Skeleton.js +14 -1
  41. package/dist/Slider/SliderBase.js +14 -1
  42. package/dist/Slider.js +14 -1
  43. package/dist/Switch/SwitchBase.js +14 -1
  44. package/dist/Switch.js +14 -1
  45. package/dist/Toggle/ToggleBase.js +14 -1
  46. package/dist/Toggle.js +14 -1
  47. package/dist/ToggleGroup/ToggleGroupBase.js +14 -1
  48. package/dist/ToggleGroup.js +14 -1
  49. package/dist/Toolbar.js +14 -1
  50. package/dist/Tooltip/TooltipBase.js +14 -1
  51. package/dist/Tooltip.js +14 -1
  52. package/dist/features/LabelingTools.js +14 -1
  53. package/dist/hooks/useAccordionAutoScroll.js +14 -1
  54. package/dist/hooks/useOutsideClick.js +14 -1
  55. package/dist/hooks/useTheme.js +14 -1
  56. package/dist/main.js +14 -1
  57. package/dist/primitives/label.js +14 -1
  58. package/dist/primitives/slot.js +14 -1
  59. package/dist/utils/refs.js +14 -1
  60. package/dist/utils/shared.js +14 -1
  61. package/dist/utils/twUtils.js +14 -1
  62. package/package.json +1 -1
@@ -1,4 +1,17 @@
1
- import(/* @vite-ignore */ new URL('./assets/main.css', import.meta.url).href)
1
+
2
+ // Only inject CSS for library consumers, not in Storybook
3
+ (function() {
4
+ if (typeof document !== 'undefined' &&
5
+ !document.querySelector('link[data-spectral-css]') &&
6
+ !window.location.pathname.includes('iframe.html') &&
7
+ !document.querySelector('[data-is-storybook]')) {
8
+ const link = document.createElement('link');
9
+ link.rel = 'stylesheet';
10
+ link.setAttribute('data-spectral-css', '');
11
+ link.href = new URL('./assets/main.css', import.meta.url).href;
12
+ document.head.appendChild(link);
13
+ }
14
+ })();
2
15
  import { jsxs as d, jsx as o } from "react/jsx-runtime";
3
16
  import a from "./IconBase.js";
4
17
  import { forwardRef as c } from "react";
@@ -1,4 +1,17 @@
1
- import(/* @vite-ignore */ new URL('./assets/main.css', import.meta.url).href)
1
+
2
+ // Only inject CSS for library consumers, not in Storybook
3
+ (function() {
4
+ if (typeof document !== 'undefined' &&
5
+ !document.querySelector('link[data-spectral-css]') &&
6
+ !window.location.pathname.includes('iframe.html') &&
7
+ !document.querySelector('[data-is-storybook]')) {
8
+ const link = document.createElement('link');
9
+ link.rel = 'stylesheet';
10
+ link.setAttribute('data-spectral-css', '');
11
+ link.href = new URL('./assets/main.css', import.meta.url).href;
12
+ document.head.appendChild(link);
13
+ }
14
+ })();
2
15
  import { jsxs as d, jsx as o } from "react/jsx-runtime";
3
16
  import c from "./IconBase.js";
4
17
  import { forwardRef as k } from "react";
@@ -1,2 +1,15 @@
1
- import(/* @vite-ignore */ new URL('./assets/main.css', import.meta.url).href)
1
+
2
+ // Only inject CSS for library consumers, not in Storybook
3
+ (function() {
4
+ if (typeof document !== 'undefined' &&
5
+ !document.querySelector('link[data-spectral-css]') &&
6
+ !window.location.pathname.includes('iframe.html') &&
7
+ !document.querySelector('[data-is-storybook]')) {
8
+ const link = document.createElement('link');
9
+ link.rel = 'stylesheet';
10
+ link.setAttribute('data-spectral-css', '');
11
+ link.href = new URL('./assets/main.css', import.meta.url).href;
12
+ document.head.appendChild(link);
13
+ }
14
+ })();
2
15
  import "react";
package/dist/Icons.js CHANGED
@@ -1,4 +1,17 @@
1
- import(/* @vite-ignore */ new URL('./assets/main.css', import.meta.url).href)
1
+
2
+ // Only inject CSS for library consumers, not in Storybook
3
+ (function() {
4
+ if (typeof document !== 'undefined' &&
5
+ !document.querySelector('link[data-spectral-css]') &&
6
+ !window.location.pathname.includes('iframe.html') &&
7
+ !document.querySelector('[data-is-storybook]')) {
8
+ const link = document.createElement('link');
9
+ link.rel = 'stylesheet';
10
+ link.setAttribute('data-spectral-css', '');
11
+ link.href = new URL('./assets/main.css', import.meta.url).href;
12
+ document.head.appendChild(link);
13
+ }
14
+ })();
2
15
  import { AnnotationsIcon as e } from "./Icons/AnnotationsIcon.js";
3
16
  import { CalendarIcon as n } from "./Icons/CalendarIcon.js";
4
17
  import { ClockIcon as m } from "./Icons/ClockIcon.js";
package/dist/Label.js CHANGED
@@ -1,4 +1,17 @@
1
- import(/* @vite-ignore */ new URL('./assets/main.css', import.meta.url).href)
1
+
2
+ // Only inject CSS for library consumers, not in Storybook
3
+ (function() {
4
+ if (typeof document !== 'undefined' &&
5
+ !document.querySelector('link[data-spectral-css]') &&
6
+ !window.location.pathname.includes('iframe.html') &&
7
+ !document.querySelector('[data-is-storybook]')) {
8
+ const link = document.createElement('link');
9
+ link.rel = 'stylesheet';
10
+ link.setAttribute('data-spectral-css', '');
11
+ link.href = new URL('./assets/main.css', import.meta.url).href;
12
+ document.head.appendChild(link);
13
+ }
14
+ })();
2
15
  import { jsx as l } from "react/jsx-runtime";
3
16
  import { c as s } from "./twUtils-CRiPKpXj.js";
4
17
  import { c as t } from "./index-CRBC94ik.js";
package/dist/Popover.js CHANGED
@@ -1,4 +1,17 @@
1
- import(/* @vite-ignore */ new URL('./assets/main.css', import.meta.url).href)
1
+
2
+ // Only inject CSS for library consumers, not in Storybook
3
+ (function() {
4
+ if (typeof document !== 'undefined' &&
5
+ !document.querySelector('link[data-spectral-css]') &&
6
+ !window.location.pathname.includes('iframe.html') &&
7
+ !document.querySelector('[data-is-storybook]')) {
8
+ const link = document.createElement('link');
9
+ link.rel = 'stylesheet';
10
+ link.setAttribute('data-spectral-css', '');
11
+ link.href = new URL('./assets/main.css', import.meta.url).href;
12
+ document.head.appendChild(link);
13
+ }
14
+ })();
2
15
  import { jsx as s } from "react/jsx-runtime";
3
16
  import * as i from "react";
4
17
  import { u as L, c as z, a as G, P as x, b as H, d as O, e as _, f as P, g as K, D as j } from "./index-B7LSgz_k.js";
@@ -1,4 +1,17 @@
1
- import(/* @vite-ignore */ new URL('./assets/main.css', import.meta.url).href)
1
+
2
+ // Only inject CSS for library consumers, not in Storybook
3
+ (function() {
4
+ if (typeof document !== 'undefined' &&
5
+ !document.querySelector('link[data-spectral-css]') &&
6
+ !window.location.pathname.includes('iframe.html') &&
7
+ !document.querySelector('[data-is-storybook]')) {
8
+ const link = document.createElement('link');
9
+ link.rel = 'stylesheet';
10
+ link.setAttribute('data-spectral-css', '');
11
+ link.href = new URL('./assets/main.css', import.meta.url).href;
12
+ document.head.appendChild(link);
13
+ }
14
+ })();
2
15
  import { jsx as j, jsxs as M } from "react/jsx-runtime";
3
16
  import { Slot as S } from "../primitives/slot.js";
4
17
  import { createContext as T, forwardRef as L, useId as U, useState as P, useRef as E, useEffect as I, useCallback as C, useContext as $, useImperativeHandle as B } from "react";
package/dist/Skeleton.js CHANGED
@@ -1,4 +1,17 @@
1
- import(/* @vite-ignore */ new URL('./assets/main.css', import.meta.url).href)
1
+
2
+ // Only inject CSS for library consumers, not in Storybook
3
+ (function() {
4
+ if (typeof document !== 'undefined' &&
5
+ !document.querySelector('link[data-spectral-css]') &&
6
+ !window.location.pathname.includes('iframe.html') &&
7
+ !document.querySelector('[data-is-storybook]')) {
8
+ const link = document.createElement('link');
9
+ link.rel = 'stylesheet';
10
+ link.setAttribute('data-spectral-css', '');
11
+ link.href = new URL('./assets/main.css', import.meta.url).href;
12
+ document.head.appendChild(link);
13
+ }
14
+ })();
2
15
  import { jsx as o } from "react/jsx-runtime";
3
16
  import { c as n } from "./twUtils-CRiPKpXj.js";
4
17
  import "react";
@@ -1,4 +1,17 @@
1
- import(/* @vite-ignore */ new URL('./assets/main.css', import.meta.url).href)
1
+
2
+ // Only inject CSS for library consumers, not in Storybook
3
+ (function() {
4
+ if (typeof document !== 'undefined' &&
5
+ !document.querySelector('link[data-spectral-css]') &&
6
+ !window.location.pathname.includes('iframe.html') &&
7
+ !document.querySelector('[data-is-storybook]')) {
8
+ const link = document.createElement('link');
9
+ link.rel = 'stylesheet';
10
+ link.setAttribute('data-spectral-css', '');
11
+ link.href = new URL('./assets/main.css', import.meta.url).href;
12
+ document.head.appendChild(link);
13
+ }
14
+ })();
2
15
  import { jsx as k, jsxs as Q } from "react/jsx-runtime";
3
16
  import { Slot as P } from "../primitives/slot.js";
4
17
  import { createContext as W, forwardRef as z, useEffect as Z, useRef as B, useState as F, useCallback as A, useContext as U, createRef as _ } from "react";
package/dist/Slider.js CHANGED
@@ -1,4 +1,17 @@
1
- import(/* @vite-ignore */ new URL('./assets/main.css', import.meta.url).href)
1
+
2
+ // Only inject CSS for library consumers, not in Storybook
3
+ (function() {
4
+ if (typeof document !== 'undefined' &&
5
+ !document.querySelector('link[data-spectral-css]') &&
6
+ !window.location.pathname.includes('iframe.html') &&
7
+ !document.querySelector('[data-is-storybook]')) {
8
+ const link = document.createElement('link');
9
+ link.rel = 'stylesheet';
10
+ link.setAttribute('data-spectral-css', '');
11
+ link.href = new URL('./assets/main.css', import.meta.url).href;
12
+ document.head.appendChild(link);
13
+ }
14
+ })();
2
15
  import { jsxs as v, jsx as t } from "react/jsx-runtime";
3
16
  import { Slider as w, SliderTrack as p, SliderRange as x, SliderThumb as S } from "./Slider/SliderBase.js";
4
17
  import { c as a } from "./twUtils-CRiPKpXj.js";
@@ -1,4 +1,17 @@
1
- import(/* @vite-ignore */ new URL('./assets/main.css', import.meta.url).href)
1
+
2
+ // Only inject CSS for library consumers, not in Storybook
3
+ (function() {
4
+ if (typeof document !== 'undefined' &&
5
+ !document.querySelector('link[data-spectral-css]') &&
6
+ !window.location.pathname.includes('iframe.html') &&
7
+ !document.querySelector('[data-is-storybook]')) {
8
+ const link = document.createElement('link');
9
+ link.rel = 'stylesheet';
10
+ link.setAttribute('data-spectral-css', '');
11
+ link.href = new URL('./assets/main.css', import.meta.url).href;
12
+ document.head.appendChild(link);
13
+ }
14
+ })();
2
15
  import { jsx as f, jsxs as K } from "react/jsx-runtime";
3
16
  import { Slot as g } from "../primitives/slot.js";
4
17
  import { useControllableState as M, cn as x } from "../utils/shared.js";
package/dist/Switch.js CHANGED
@@ -1,4 +1,17 @@
1
- import(/* @vite-ignore */ new URL('./assets/main.css', import.meta.url).href)
1
+
2
+ // Only inject CSS for library consumers, not in Storybook
3
+ (function() {
4
+ if (typeof document !== 'undefined' &&
5
+ !document.querySelector('link[data-spectral-css]') &&
6
+ !window.location.pathname.includes('iframe.html') &&
7
+ !document.querySelector('[data-is-storybook]')) {
8
+ const link = document.createElement('link');
9
+ link.rel = 'stylesheet';
10
+ link.setAttribute('data-spectral-css', '');
11
+ link.href = new URL('./assets/main.css', import.meta.url).href;
12
+ document.head.appendChild(link);
13
+ }
14
+ })();
2
15
  import { jsxs as w, jsx as t } from "react/jsx-runtime";
3
16
  import { Switch as p, SwitchThumb as k } from "./Switch/SwitchBase.js";
4
17
  import { Label as r } from "./Label.js";
@@ -1,4 +1,17 @@
1
- import(/* @vite-ignore */ new URL('./assets/main.css', import.meta.url).href)
1
+
2
+ // Only inject CSS for library consumers, not in Storybook
3
+ (function() {
4
+ if (typeof document !== 'undefined' &&
5
+ !document.querySelector('link[data-spectral-css]') &&
6
+ !window.location.pathname.includes('iframe.html') &&
7
+ !document.querySelector('[data-is-storybook]')) {
8
+ const link = document.createElement('link');
9
+ link.rel = 'stylesheet';
10
+ link.setAttribute('data-spectral-css', '');
11
+ link.href = new URL('./assets/main.css', import.meta.url).href;
12
+ document.head.appendChild(link);
13
+ }
14
+ })();
2
15
  import { jsx as h } from "react/jsx-runtime";
3
16
  import { useControllableState as k } from "../utils/shared.js";
4
17
  import { forwardRef as C, useCallback as f } from "react";
package/dist/Toggle.js CHANGED
@@ -1,4 +1,17 @@
1
- import(/* @vite-ignore */ new URL('./assets/main.css', import.meta.url).href)
1
+
2
+ // Only inject CSS for library consumers, not in Storybook
3
+ (function() {
4
+ if (typeof document !== 'undefined' &&
5
+ !document.querySelector('link[data-spectral-css]') &&
6
+ !window.location.pathname.includes('iframe.html') &&
7
+ !document.querySelector('[data-is-storybook]')) {
8
+ const link = document.createElement('link');
9
+ link.rel = 'stylesheet';
10
+ link.setAttribute('data-spectral-css', '');
11
+ link.href = new URL('./assets/main.css', import.meta.url).href;
12
+ document.head.appendChild(link);
13
+ }
14
+ })();
2
15
  import { jsx as n } from "react/jsx-runtime";
3
16
  import { ToggleBase as g } from "./Toggle/ToggleBase.js";
4
17
  import { c as s } from "./twUtils-CRiPKpXj.js";
@@ -1,4 +1,17 @@
1
- import(/* @vite-ignore */ new URL('./assets/main.css', import.meta.url).href)
1
+
2
+ // Only inject CSS for library consumers, not in Storybook
3
+ (function() {
4
+ if (typeof document !== 'undefined' &&
5
+ !document.querySelector('link[data-spectral-css]') &&
6
+ !window.location.pathname.includes('iframe.html') &&
7
+ !document.querySelector('[data-is-storybook]')) {
8
+ const link = document.createElement('link');
9
+ link.rel = 'stylesheet';
10
+ link.setAttribute('data-spectral-css', '');
11
+ link.href = new URL('./assets/main.css', import.meta.url).href;
12
+ document.head.appendChild(link);
13
+ }
14
+ })();
2
15
  import { jsx as B, jsxs as E } from "react/jsx-runtime";
3
16
  import { useControllableState as R, clamp as M } from "../utils/shared.js";
4
17
  import { createContext as j, forwardRef as H, useContext as K, useRef as S, useImperativeHandle as L, useEffect as N, useCallback as i, useMemo as U } from "react";
@@ -1,4 +1,17 @@
1
- import(/* @vite-ignore */ new URL('./assets/main.css', import.meta.url).href)
1
+
2
+ // Only inject CSS for library consumers, not in Storybook
3
+ (function() {
4
+ if (typeof document !== 'undefined' &&
5
+ !document.querySelector('link[data-spectral-css]') &&
6
+ !window.location.pathname.includes('iframe.html') &&
7
+ !document.querySelector('[data-is-storybook]')) {
8
+ const link = document.createElement('link');
9
+ link.rel = 'stylesheet';
10
+ link.setAttribute('data-spectral-css', '');
11
+ link.href = new URL('./assets/main.css', import.meta.url).href;
12
+ document.head.appendChild(link);
13
+ }
14
+ })();
2
15
  import { jsx as d } from "react/jsx-runtime";
3
16
  import { ToggleGroupItemBase as p, ToggleGroupBase as m } from "./ToggleGroup/ToggleGroupBase.js";
4
17
  import { toggleVariants as f } from "./Toggle.js";
package/dist/Toolbar.js CHANGED
@@ -1,4 +1,17 @@
1
- import(/* @vite-ignore */ new URL('./assets/main.css', import.meta.url).href)
1
+
2
+ // Only inject CSS for library consumers, not in Storybook
3
+ (function() {
4
+ if (typeof document !== 'undefined' &&
5
+ !document.querySelector('link[data-spectral-css]') &&
6
+ !window.location.pathname.includes('iframe.html') &&
7
+ !document.querySelector('[data-is-storybook]')) {
8
+ const link = document.createElement('link');
9
+ link.rel = 'stylesheet';
10
+ link.setAttribute('data-spectral-css', '');
11
+ link.href = new URL('./assets/main.css', import.meta.url).href;
12
+ document.head.appendChild(link);
13
+ }
14
+ })();
2
15
  import { jsxs as s, jsx as e } from "react/jsx-runtime";
3
16
  import "react";
4
17
  const c = ({ title: r, description: t, children: l }) => /* @__PURE__ */ s("div", { className: "bg-background text-text-primary border-border-primary flex h-[72px] w-full justify-between border-b", children: [
@@ -1,4 +1,17 @@
1
- import(/* @vite-ignore */ new URL('./assets/main.css', import.meta.url).href)
1
+
2
+ // Only inject CSS for library consumers, not in Storybook
3
+ (function() {
4
+ if (typeof document !== 'undefined' &&
5
+ !document.querySelector('link[data-spectral-css]') &&
6
+ !window.location.pathname.includes('iframe.html') &&
7
+ !document.querySelector('[data-is-storybook]')) {
8
+ const link = document.createElement('link');
9
+ link.rel = 'stylesheet';
10
+ link.setAttribute('data-spectral-css', '');
11
+ link.href = new URL('./assets/main.css', import.meta.url).href;
12
+ document.head.appendChild(link);
13
+ }
14
+ })();
2
15
  import { jsx as D } from "react/jsx-runtime";
3
16
  import { createForwardedRef as N } from "../utils/refs.js";
4
17
  import { c as z } from "../twUtils-CRiPKpXj.js";
package/dist/Tooltip.js CHANGED
@@ -1,4 +1,17 @@
1
- import(/* @vite-ignore */ new URL('./assets/main.css', import.meta.url).href)
1
+
2
+ // Only inject CSS for library consumers, not in Storybook
3
+ (function() {
4
+ if (typeof document !== 'undefined' &&
5
+ !document.querySelector('link[data-spectral-css]') &&
6
+ !window.location.pathname.includes('iframe.html') &&
7
+ !document.querySelector('[data-is-storybook]')) {
8
+ const link = document.createElement('link');
9
+ link.rel = 'stylesheet';
10
+ link.setAttribute('data-spectral-css', '');
11
+ link.href = new URL('./assets/main.css', import.meta.url).href;
12
+ document.head.appendChild(link);
13
+ }
14
+ })();
2
15
  import { jsx as u, jsxs as S } from "react/jsx-runtime";
3
16
  import * as a from "react";
4
17
  import { e as H, c as J, a as Q, u as Z, P as j, b as ee, d as G, f as C, D as te, h as oe } from "./index-B7LSgz_k.js";
@@ -1,4 +1,17 @@
1
- import(/* @vite-ignore */ new URL('./assets/main.css', import.meta.url).href)
1
+
2
+ // Only inject CSS for library consumers, not in Storybook
3
+ (function() {
4
+ if (typeof document !== 'undefined' &&
5
+ !document.querySelector('link[data-spectral-css]') &&
6
+ !window.location.pathname.includes('iframe.html') &&
7
+ !document.querySelector('[data-is-storybook]')) {
8
+ const link = document.createElement('link');
9
+ link.rel = 'stylesheet';
10
+ link.setAttribute('data-spectral-css', '');
11
+ link.href = new URL('./assets/main.css', import.meta.url).href;
12
+ document.head.appendChild(link);
13
+ }
14
+ })();
2
15
  import { jsxs as i, jsx as e } from "react/jsx-runtime";
3
16
  import { Badge as s } from "../Badge.js";
4
17
  import "../Icons/AnnotationsIcon.js";
@@ -1,4 +1,17 @@
1
- import(/* @vite-ignore */ new URL('./assets/main.css', import.meta.url).href)
1
+
2
+ // Only inject CSS for library consumers, not in Storybook
3
+ (function() {
4
+ if (typeof document !== 'undefined' &&
5
+ !document.querySelector('link[data-spectral-css]') &&
6
+ !window.location.pathname.includes('iframe.html') &&
7
+ !document.querySelector('[data-is-storybook]')) {
8
+ const link = document.createElement('link');
9
+ link.rel = 'stylesheet';
10
+ link.setAttribute('data-spectral-css', '');
11
+ link.href = new URL('./assets/main.css', import.meta.url).href;
12
+ document.head.appendChild(link);
13
+ }
14
+ })();
2
15
  import { useRef as h, useCallback as g, useEffect as E } from "react";
3
16
  const A = (u) => {
4
17
  const o = h(null), l = h(null), a = g((t) => {
@@ -1,4 +1,17 @@
1
- import(/* @vite-ignore */ new URL('./assets/main.css', import.meta.url).href)
1
+
2
+ // Only inject CSS for library consumers, not in Storybook
3
+ (function() {
4
+ if (typeof document !== 'undefined' &&
5
+ !document.querySelector('link[data-spectral-css]') &&
6
+ !window.location.pathname.includes('iframe.html') &&
7
+ !document.querySelector('[data-is-storybook]')) {
8
+ const link = document.createElement('link');
9
+ link.rel = 'stylesheet';
10
+ link.setAttribute('data-spectral-css', '');
11
+ link.href = new URL('./assets/main.css', import.meta.url).href;
12
+ document.head.appendChild(link);
13
+ }
14
+ })();
2
15
  import { useRef as u, useEffect as o } from "react";
3
16
  function i(t) {
4
17
  const e = u(null);
@@ -1,4 +1,17 @@
1
- import(/* @vite-ignore */ new URL('./assets/main.css', import.meta.url).href)
1
+
2
+ // Only inject CSS for library consumers, not in Storybook
3
+ (function() {
4
+ if (typeof document !== 'undefined' &&
5
+ !document.querySelector('link[data-spectral-css]') &&
6
+ !window.location.pathname.includes('iframe.html') &&
7
+ !document.querySelector('[data-is-storybook]')) {
8
+ const link = document.createElement('link');
9
+ link.rel = 'stylesheet';
10
+ link.setAttribute('data-spectral-css', '');
11
+ link.href = new URL('./assets/main.css', import.meta.url).href;
12
+ document.head.appendChild(link);
13
+ }
14
+ })();
2
15
  import { useState as n, useEffect as s } from "react";
3
16
  const d = (r = "dark") => {
4
17
  const [t, m] = n(() => {
package/dist/main.js CHANGED
@@ -1,4 +1,17 @@
1
- import(/* @vite-ignore */ new URL('./assets/main.css', import.meta.url).href)
1
+
2
+ // Only inject CSS for library consumers, not in Storybook
3
+ (function() {
4
+ if (typeof document !== 'undefined' &&
5
+ !document.querySelector('link[data-spectral-css]') &&
6
+ !window.location.pathname.includes('iframe.html') &&
7
+ !document.querySelector('[data-is-storybook]')) {
8
+ const link = document.createElement('link');
9
+ link.rel = 'stylesheet';
10
+ link.setAttribute('data-spectral-css', '');
11
+ link.href = new URL('./assets/main.css', import.meta.url).href;
12
+ document.head.appendChild(link);
13
+ }
14
+ })();
2
15
  import { jsx as gS } from "react/jsx-runtime";
3
16
  import qb from "./App.js";
4
17
  /* empty css */
@@ -1,4 +1,17 @@
1
- import(/* @vite-ignore */ new URL('./assets/main.css', import.meta.url).href)
1
+
2
+ // Only inject CSS for library consumers, not in Storybook
3
+ (function() {
4
+ if (typeof document !== 'undefined' &&
5
+ !document.querySelector('link[data-spectral-css]') &&
6
+ !window.location.pathname.includes('iframe.html') &&
7
+ !document.querySelector('[data-is-storybook]')) {
8
+ const link = document.createElement('link');
9
+ link.rel = 'stylesheet';
10
+ link.setAttribute('data-spectral-css', '');
11
+ link.href = new URL('./assets/main.css', import.meta.url).href;
12
+ document.head.appendChild(link);
13
+ }
14
+ })();
2
15
  import { jsx as n } from "react/jsx-runtime";
3
16
  import { Slot as s } from "./slot.js";
4
17
  import { forwardRef as f, useId as i } from "react";
@@ -1,4 +1,17 @@
1
- import(/* @vite-ignore */ new URL('./assets/main.css', import.meta.url).href)
1
+
2
+ // Only inject CSS for library consumers, not in Storybook
3
+ (function() {
4
+ if (typeof document !== 'undefined' &&
5
+ !document.querySelector('link[data-spectral-css]') &&
6
+ !window.location.pathname.includes('iframe.html') &&
7
+ !document.querySelector('[data-is-storybook]')) {
8
+ const link = document.createElement('link');
9
+ link.rel = 'stylesheet';
10
+ link.setAttribute('data-spectral-css', '');
11
+ link.href = new URL('./assets/main.css', import.meta.url).href;
12
+ document.head.appendChild(link);
13
+ }
14
+ })();
2
15
  import { jsx as m, Fragment as y } from "react/jsx-runtime";
3
16
  import { forwardRef as h, isValidElement as p, cloneElement as E } from "react";
4
17
  function v(c, t, { checkForDefaultPrevented: e = !0 } = {}) {
@@ -1,4 +1,17 @@
1
- import(/* @vite-ignore */ new URL('./assets/main.css', import.meta.url).href)
1
+
2
+ // Only inject CSS for library consumers, not in Storybook
3
+ (function() {
4
+ if (typeof document !== 'undefined' &&
5
+ !document.querySelector('link[data-spectral-css]') &&
6
+ !window.location.pathname.includes('iframe.html') &&
7
+ !document.querySelector('[data-is-storybook]')) {
8
+ const link = document.createElement('link');
9
+ link.rel = 'stylesheet';
10
+ link.setAttribute('data-spectral-css', '');
11
+ link.href = new URL('./assets/main.css', import.meta.url).href;
12
+ document.head.appendChild(link);
13
+ }
14
+ })();
2
15
  import "react";
3
16
  function n(c, t) {
4
17
  return (i) => {
@@ -1,4 +1,17 @@
1
- import(/* @vite-ignore */ new URL('./assets/main.css', import.meta.url).href)
1
+
2
+ // Only inject CSS for library consumers, not in Storybook
3
+ (function() {
4
+ if (typeof document !== 'undefined' &&
5
+ !document.querySelector('link[data-spectral-css]') &&
6
+ !window.location.pathname.includes('iframe.html') &&
7
+ !document.querySelector('[data-is-storybook]')) {
8
+ const link = document.createElement('link');
9
+ link.rel = 'stylesheet';
10
+ link.setAttribute('data-spectral-css', '');
11
+ link.href = new URL('./assets/main.css', import.meta.url).href;
12
+ document.head.appendChild(link);
13
+ }
14
+ })();
2
15
  import { useState as f, useCallback as E } from "react";
3
16
  function m(...t) {
4
17
  return t.filter(Boolean).join(" ");
@@ -1,4 +1,17 @@
1
- import(/* @vite-ignore */ new URL('./assets/main.css', import.meta.url).href)
1
+
2
+ // Only inject CSS for library consumers, not in Storybook
3
+ (function() {
4
+ if (typeof document !== 'undefined' &&
5
+ !document.querySelector('link[data-spectral-css]') &&
6
+ !window.location.pathname.includes('iframe.html') &&
7
+ !document.querySelector('[data-is-storybook]')) {
8
+ const link = document.createElement('link');
9
+ link.rel = 'stylesheet';
10
+ link.setAttribute('data-spectral-css', '');
11
+ link.href = new URL('./assets/main.css', import.meta.url).href;
12
+ document.head.appendChild(link);
13
+ }
14
+ })();
2
15
  import { c as r } from "../twUtils-CRiPKpXj.js";
3
16
  export {
4
17
  r as cn
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spear-ai/spectral",
3
- "version": "1.3.12",
3
+ "version": "1.3.13",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "repository": {