@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.
- package/dist/components/logo/imfusion/imfusion.d.ts +2 -2
- package/dist/components/spinner/spinner.d.ts +13 -8
- package/dist/index.js +1175 -1241
- package/dist/style.css +1 -1
- package/package.json +3 -1
- package/src/assets/public/favicon/apple-touch-icon.png +0 -0
- package/src/assets/public/favicon/favicon-16.png +0 -0
- package/src/assets/public/favicon/favicon-32.png +0 -0
- package/src/assets/public/favicon/favicon.ico +0 -0
- package/src/assets/public/favicon/favicon.svg +7 -0
- package/src/assets/public/favicon/icon-192.png +0 -0
- package/src/assets/public/favicon/icon-512.png +0 -0
- package/src/assets/public/favicon/og-image.png +0 -0
- package/src/assets/public/spinner/imfusion-spinner-black.webp +0 -0
- package/src/assets/public/spinner/imfusion-spinner-blue.webp +0 -0
- package/src/assets/public/spinner/imfusion-spinner-white.webp +0 -0
- package/src/docgen/doc.gen.json +8 -1
- package/dist/components/spinner/spinner.geometry.d.ts +0 -37
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imfusion/web-ui",
|
|
3
|
-
"version": "0.6.4-dev.
|
|
3
|
+
"version": "0.6.4-dev.43.g3f16d49f",
|
|
4
4
|
"description": "The official Web UI component library for ImFusion web apps",
|
|
5
5
|
"author": "ImFusion GmbH",
|
|
6
6
|
"homepage": "https://imfusion.com",
|
|
@@ -42,10 +42,12 @@
|
|
|
42
42
|
"./styles.css": "./dist/style.css",
|
|
43
43
|
"./docgen.json": "./src/docgen/doc.gen.json",
|
|
44
44
|
"./llms.txt": "./src/llms/llms.gen.txt",
|
|
45
|
+
"./assets/*": "./src/assets/public/*",
|
|
45
46
|
"./*": null
|
|
46
47
|
},
|
|
47
48
|
"files": [
|
|
48
49
|
"dist",
|
|
50
|
+
"src/assets/public",
|
|
49
51
|
"docs/assets/imfusion-banner.svg",
|
|
50
52
|
"THIRD_PARTY_NOTICES.md",
|
|
51
53
|
"src/llms/install-templates",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
|
|
2
|
+
<rect width="512" height="512" fill="#245EFF" />
|
|
3
|
+
<g transform="translate(72 152) scale(1.168)">
|
|
4
|
+
<path d="M320 180H0V159.715L237.082 128.105L320 65.916V180Z" fill="#FFFFFF" />
|
|
5
|
+
<path d="M320 20.2832L82.918 51.8945L0 114.082V0H320V20.2832Z" fill="#FFFFFF" />
|
|
6
|
+
</g>
|
|
7
|
+
</svg>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/docgen/doc.gen.json
CHANGED
|
@@ -5744,7 +5744,7 @@
|
|
|
5744
5744
|
"spinner": {
|
|
5745
5745
|
"root": {
|
|
5746
5746
|
"name": "Spinner",
|
|
5747
|
-
"description": "Loading indicator
|
|
5747
|
+
"description": "Loading indicator — the ImFusion glyph animation, played as a looping image.",
|
|
5748
5748
|
"props": [
|
|
5749
5749
|
{
|
|
5750
5750
|
"name": "label",
|
|
@@ -5759,6 +5759,13 @@
|
|
|
5759
5759
|
"type": "\"sm\" | \"md\" | \"lg\" | null",
|
|
5760
5760
|
"defaultValue": "md",
|
|
5761
5761
|
"description": ""
|
|
5762
|
+
},
|
|
5763
|
+
{
|
|
5764
|
+
"name": "variant",
|
|
5765
|
+
"required": false,
|
|
5766
|
+
"type": "\"blue\" | \"white\" | \"black\"",
|
|
5767
|
+
"defaultValue": "blue",
|
|
5768
|
+
"description": "Which colour of the mark to show. The animation is a pre-rendered image, so\nthe colour is baked in and does not follow `currentColor` or the scheme —\npick `white` on saturated or dark grounds."
|
|
5762
5769
|
}
|
|
5763
5770
|
]
|
|
5764
5771
|
},
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Spinner geometry — the animated ImFusion glyph.
|
|
3
|
-
*
|
|
4
|
-
* The mark is two filled bands separated by an empty diagonal channel (see
|
|
5
|
-
* `logo/imfusion/imfusion.tsx`). This module reproduces that structure as a
|
|
6
|
-
* *morphing* shape: the channel rotates, breathes (its width pulses, never
|
|
7
|
-
* closing), and its interior nodes sway — so the loader reads as the mark
|
|
8
|
-
* alive, not a generic ring.
|
|
9
|
-
*
|
|
10
|
-
* The motion is a live per-frame morph: a single `requestAnimationFrame` loop
|
|
11
|
-
* in the component (spinner.tsx) calls {@link frameGeometry} each frame and
|
|
12
|
-
* writes the two returned path `d` strings straight onto the SVG paths — no
|
|
13
|
-
* React re-render per frame, no SMIL. (SMIL/CSS `d` morphing was tried and
|
|
14
|
-
* dropped: neither is GPU-composited, and CSS `d` isn't supported in Safari.)
|
|
15
|
-
*
|
|
16
|
-
* Everything is tunable from the {@link KNOBS} block. The values there were
|
|
17
|
-
* dialled in against rendered evidence at 16/20/24/96px; the shape is a
|
|
18
|
-
* balance — extreme values pinch the channel shut or spike the bands, so nudge
|
|
19
|
-
* rather than leap. `frameGeometry(t)` is pure and deterministic: feed it a
|
|
20
|
-
* time in ms and it returns the two band path `d`s for that instant.
|
|
21
|
-
*/
|
|
22
|
-
/** Design-space edge length; the SVG viewBox is `0 0 D D`. */
|
|
23
|
-
export declare const D = 100;
|
|
24
|
-
/**
|
|
25
|
-
* The two band path `d` strings at time `tms` (ms) — the shape at any instant
|
|
26
|
-
* of the loop, as `[topBand, bottomBand]`. Pure and deterministic; the rAF loop
|
|
27
|
-
* in the component calls this each frame and writes the results to the paths.
|
|
28
|
-
*/
|
|
29
|
-
export declare function frameGeometry(tms: number): [string, string];
|
|
30
|
-
/**
|
|
31
|
-
* The period over which the whole composition returns to its start pose — the
|
|
32
|
-
* least-common-multiple-ish window of rotation, breathe, and sway. Rotation is
|
|
33
|
-
* `ROT_S`; breathe/sway are shorter and phase-relative. We loop over the
|
|
34
|
-
* rotation period and let breathe/sway ride within it; `SWAY_RATIO` is chosen
|
|
35
|
-
* so the combined motion reads continuous rather than obviously repeating.
|
|
36
|
-
*/
|
|
37
|
-
export declare const LOOP_MS: number;
|