@imfusion/web-ui 0.6.4-dev.38.gc77c6321 → 0.6.4-dev.43.g3f16d49f

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.
@@ -1,6 +1,6 @@
1
1
  import { Logo } from '../logo';
2
2
  type Props = Omit<React.ComponentProps<typeof Logo>, "src" | "alt"> & {
3
- /** Render the compact glyph instead of the full wordmark. */
3
+ /** Render the compact glyph instead of the full lockup. */
4
4
  glyph?: boolean;
5
5
  /** Override the accessible label. Defaults to "ImFusion". */
6
6
  alt?: string;
@@ -10,7 +10,7 @@ type Props = Omit<React.ComponentProps<typeof Logo>, "src" | "alt"> & {
10
10
  * ImFusion marks and the brand variant. The single branded entry point and the
11
11
  * only export from this module; external consumers compose `<Logo src={…} />`
12
12
  * with their own asset. Pass `glyph` for the compact mark; the default is the
13
- * full wordmark.
13
+ * Standard lockup.
14
14
  */
15
15
  export declare function ImFusionLogo({ glyph, alt, variant, ...props }: Props): import("react/jsx-runtime").JSX.Element;
16
16
  export {};
@@ -1,19 +1,24 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
+ declare const sources: {
3
+ blue: string;
4
+ white: string;
5
+ black: string;
6
+ };
2
7
  declare const spinner: (props?: ({
3
8
  size?: "sm" | "md" | "lg" | null | undefined;
4
9
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
5
10
  type Props = Omit<React.HTMLAttributes<HTMLSpanElement>, "role"> & VariantProps<typeof spinner> & {
6
11
  /** Accessible label announced by assistive tech. */
7
12
  label?: string;
13
+ /**
14
+ * Which colour of the mark to show. The animation is a pre-rendered image, so
15
+ * the colour is baked in and does not follow `currentColor` or the scheme —
16
+ * pick `white` on saturated or dark grounds.
17
+ */
18
+ variant?: keyof typeof sources;
8
19
  };
9
20
  /**
10
- * Loading indicator built from the animated ImFusion glyph — two filled bands
11
- * and an empty diagonal channel that continuously rotates, breathes, and sways.
12
- *
13
- * The motion is a live per-frame morph of the two paths (the channel geometry is
14
- * recomputed each frame in {@link frameGeometry}), driven by a single
15
- * `requestAnimationFrame` loop that rewrites the two `d` attributes directly —
16
- * no React re-render per frame. The loop pauses while the tab is hidden.
21
+ * Loading indicator — the ImFusion glyph animation, played as a looping image.
17
22
  */
18
- export declare function Spinner({ size, label, ...props }: Props): import("react/jsx-runtime").JSX.Element;
23
+ export declare function Spinner({ size, variant, label, ...props }: Props): import("react/jsx-runtime").JSX.Element;
19
24
  export {};