@principal-ai/logo-component 0.1.16 → 0.1.18

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.
@@ -0,0 +1,193 @@
1
+ import React, { useEffect, useId, useMemo, useRef, useState } from 'react';
2
+ import { computeFileCityLayout, fileCityLabel, FileCityPanel, } from './FileCityLogo';
3
+ // CSS keyframe name for the connector draw-on. CSS animations restart on
4
+ // element remount (unlike SMIL's document-timeline `begin`), so each group's
5
+ // freshly-keyed connector draws from the start.
6
+ const CONN_DRAW = 'fc-conn-draw';
7
+ function mulberry32(seed) {
8
+ let t = seed;
9
+ return () => {
10
+ t = (t + 0x6d2b79f5) | 0;
11
+ let r = t;
12
+ r = Math.imul(r ^ (r >>> 15), r | 1);
13
+ r ^= r + Math.imul(r ^ (r >>> 7), r | 61);
14
+ return ((r ^ (r >>> 14)) >>> 0) / 4294967296;
15
+ };
16
+ }
17
+ /**
18
+ * Animated file-city mark: the squares accumulate like a heatmap. Each tick
19
+ * a batch of cells gets a "sample" added; letter cells weigh more so they
20
+ * take several samples to reach full intensity while city files resolve
21
+ * quickly. Once the summed weights fill in, the logo holds on screen.
22
+ */
23
+ export const FileCityLogoAnimated = (props) => {
24
+ var _a, _b, _c, _d, _e, _f;
25
+ const uid = useId().replace(/:/g, '');
26
+ const { width = 150, height = 150, batchMin = 3, batchMax = 6, cellMs = 130, pauseMs = 700, buildSteps = 3, connectors = true, connectorColor, autoPlay = true, playKey, onComplete, } = props;
27
+ const accentColor = (_f = (_d = (_c = (_a = connectorColor !== null && connectorColor !== void 0 ? connectorColor : props.accent) !== null && _a !== void 0 ? _a : (_b = props.theme) === null || _b === void 0 ? void 0 : _b.colors.accent) !== null && _c !== void 0 ? _c : props.primary) !== null && _d !== void 0 ? _d : (_e = props.theme) === null || _e === void 0 ? void 0 : _e.colors.primary) !== null && _f !== void 0 ? _f : '#22d3ee';
28
+ const { cells, extras, bgColor, baseColor, rounded, opacity, mark } = useMemo(() => computeFileCityLayout(props),
29
+ // Re-derive only when an input that affects layout changes.
30
+ // eslint-disable-next-line react-hooks/exhaustive-deps
31
+ [
32
+ props.mark,
33
+ props.primary,
34
+ props.accent,
35
+ props.color,
36
+ props.background,
37
+ props.theme,
38
+ props.cells,
39
+ props.highlight,
40
+ props.trail,
41
+ props.gradient,
42
+ props.rounded,
43
+ props.margin,
44
+ props.aiCard,
45
+ props.opacity,
46
+ ]);
47
+ // Per-cell number of samples to fully reveal it (>=1; letter cells take
48
+ // `buildSteps`, city cells proportionally fewer by their weight).
49
+ const stepsFor = useMemo(() => cells.map((cell) => Math.max(1, Math.round(cell.weight * buildSteps))), [cells, buildSteps]);
50
+ // The pool of pending samples: each cell index repeated `steps` times,
51
+ // shuffled deterministically so the batches scatter across the grid,
52
+ // then sliced into groups of `batchMin`..`batchMax`.
53
+ const groups = useMemo(() => {
54
+ const p = [];
55
+ stepsFor.forEach((n, i) => {
56
+ for (let k = 0; k < n; k++)
57
+ p.push(i);
58
+ });
59
+ const shuffle = mulberry32(0x5eed + cells.length);
60
+ for (let i = p.length - 1; i > 0; i--) {
61
+ const j = Math.floor(shuffle() * (i + 1));
62
+ [p[i], p[j]] = [p[j], p[i]];
63
+ }
64
+ const sizeRand = mulberry32(0xb47c4 + cells.length);
65
+ const g = [];
66
+ let i = 0;
67
+ while (i < p.length) {
68
+ const size = batchMin + Math.floor(sizeRand() * (batchMax - batchMin + 1));
69
+ g.push(p.slice(i, i + size));
70
+ i += size;
71
+ }
72
+ return g;
73
+ }, [stepsFor, cells.length, batchMin, batchMax]);
74
+ // `progress[i]` = samples applied to cell i. Once every group has been
75
+ // walked the animation is done and the logo holds.
76
+ const [progress, setProgress] = useState(() => cells.map(() => 0));
77
+ const [done, setDone] = useState(false);
78
+ // The connector for the active group: which group it traces, and whether
79
+ // it's drawing on (during the reveal) or fading out (during the pause).
80
+ const [conn, setConn] = useState(null);
81
+ const groupRef = useRef(0);
82
+ const memberRef = useRef(0);
83
+ const onCompleteRef = useRef(onComplete);
84
+ onCompleteRef.current = onComplete;
85
+ // Drive the accumulation. Re-runs whenever the layout, timing, or the
86
+ // explicit `playKey` changes — that's our "replay."
87
+ useEffect(() => {
88
+ var _a;
89
+ // Respect reduced-motion: jump straight to the resolved logo.
90
+ const reduce = typeof window !== 'undefined' &&
91
+ window.matchMedia &&
92
+ window.matchMedia('(prefers-reduced-motion: reduce)').matches;
93
+ groupRef.current = 0;
94
+ memberRef.current = 0;
95
+ setProgress(cells.map(() => 0));
96
+ setConn(null);
97
+ setDone(false);
98
+ if (!autoPlay || cells.length === 0 || reduce) {
99
+ setProgress(stepsFor.slice());
100
+ setDone(true);
101
+ (_a = onCompleteRef.current) === null || _a === void 0 ? void 0 : _a.call(onCompleteRef);
102
+ return;
103
+ }
104
+ let timer;
105
+ // Reveal one cell per step. Within a group the steps are `cellMs`
106
+ // apart; finishing a group schedules the next one after `pauseMs`.
107
+ const step = () => {
108
+ var _a;
109
+ const gi = groupRef.current;
110
+ if (gi >= groups.length) {
111
+ setDone(true);
112
+ (_a = onCompleteRef.current) === null || _a === void 0 ? void 0 : _a.call(onCompleteRef);
113
+ return;
114
+ }
115
+ const group = groups[gi];
116
+ const mi = memberRef.current;
117
+ const idx = group[mi];
118
+ setProgress((prev) => {
119
+ const next = prev.slice();
120
+ next[idx] = Math.min(stepsFor[idx], next[idx] + 1);
121
+ return next;
122
+ });
123
+ const lastInGroup = mi + 1 >= group.length;
124
+ // Start the connector drawing on when the group begins; once it's
125
+ // complete, flip to fading so it dissolves through the pause.
126
+ if (mi === 0)
127
+ setConn({ group: gi, fading: false });
128
+ if (lastInGroup)
129
+ setConn({ group: gi, fading: true });
130
+ if (lastInGroup) {
131
+ groupRef.current = gi + 1;
132
+ memberRef.current = 0;
133
+ timer = setTimeout(step, pauseMs);
134
+ }
135
+ else {
136
+ memberRef.current = mi + 1;
137
+ timer = setTimeout(step, cellMs);
138
+ }
139
+ };
140
+ timer = setTimeout(step, cellMs);
141
+ return () => clearTimeout(timer);
142
+ // eslint-disable-next-line react-hooks/exhaustive-deps
143
+ }, [cells, groups, stepsFor, cellMs, pauseMs, autoPlay, playKey]);
144
+ // Easing for the per-cell fill-in so each sample lands softly.
145
+ const ease = (t) => 1 - Math.pow(1 - t, 2);
146
+ // Connector geometry — the full path through the active group's cell
147
+ // centers (drawn on with stroke-dashoffset, so we render every point up
148
+ // front and animate the reveal).
149
+ const sq = cells.length ? cells[0].sq : 1;
150
+ const centerOf = (idx) => ({
151
+ x: cells[idx].x + cells[idx].sq / 2,
152
+ y: cells[idx].y + cells[idx].sq / 2,
153
+ });
154
+ const connGroup = conn ? groups[conn.group] : null;
155
+ const connectorPath = connGroup && connGroup.length > 1
156
+ ? connGroup
157
+ .map((idx, i) => {
158
+ const p = centerOf(idx);
159
+ return `${i ? 'L' : 'M'} ${p.x} ${p.y}`;
160
+ })
161
+ .join(' ')
162
+ : null;
163
+ // Draw the trail on across the group's reveal (so the line reaches each
164
+ // cell about as it lights up); fade should finish inside the pause.
165
+ const drawMs = connGroup ? Math.max(cellMs, (connGroup.length - 1) * cellMs) : 0;
166
+ const fadeMs = Math.max(120, Math.min(pauseMs - 60, 360));
167
+ return (React.createElement(FileCityPanel, { width: width, height: height, bgColor: bgColor, baseColor: baseColor, rounded: rounded, opacity: opacity, label: fileCityLabel(mark) },
168
+ cells.map((cell, i) => {
169
+ const reveal = done ? 1 : ease(progress[i] / stepsFor[i]);
170
+ if (reveal <= 0)
171
+ return null;
172
+ return (React.createElement("rect", { key: cell.key, x: cell.x, y: cell.y, width: cell.sq, height: cell.sq, rx: cell.rx, fill: cell.fill, fillOpacity: reveal, stroke: cell.stroke, strokeWidth: cell.strokeWidth, strokeOpacity: reveal }));
173
+ }),
174
+ connectors && connectorPath && conn && !done ? (
175
+ // The trail is a dashed (dotted) path, revealed progressively by a
176
+ // mask: a solid line draws itself on (stroke-dashoffset 1 → 0 with
177
+ // pathLength normalized to 1), uncovering the dots block by block as
178
+ // the trail extends.
179
+ (() => {
180
+ const maskId = `conn-mask-${uid}-${conn.group}`;
181
+ const w = Math.max(0.6, sq * 0.12);
182
+ return (React.createElement("g", { key: `conn-${conn.group}` },
183
+ React.createElement("style", null, `@keyframes ${CONN_DRAW}{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}`),
184
+ React.createElement("defs", null,
185
+ React.createElement("mask", { id: maskId, maskUnits: "userSpaceOnUse" },
186
+ React.createElement("path", { d: connectorPath, fill: "none", stroke: "#fff", strokeWidth: w * 2.6, strokeLinecap: "round", strokeLinejoin: "round", pathLength: 1, strokeDasharray: 1, strokeDashoffset: 1, style: { animation: `${CONN_DRAW} ${drawMs}ms linear forwards` } }))),
187
+ React.createElement("path", { d: connectorPath, fill: "none", stroke: accentColor, strokeWidth: w, strokeLinecap: "round", strokeLinejoin: "round", strokeDasharray: `${sq * 0.18} ${sq * 0.14}`, mask: `url(#${maskId})`, style: {
188
+ transition: `opacity ${fadeMs}ms ease`,
189
+ opacity: conn.fading ? 0 : 0.9,
190
+ } })));
191
+ })()) : null,
192
+ done ? extras : null));
193
+ };
package/dist/esm/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  export { Logo } from './Logo';
2
2
  export { LogoSmall } from './LogoSmall';
3
3
  export { ForksLogo } from './ForksLogo';
4
- export { SquareLogo } from './SquareLogo';
5
- export { WreathLogo } from './WreathLogo';
6
4
  export { TelemetryReveal } from './TelemetryReveal';
7
5
  export { TextReveal } from './TextReveal';
8
6
  export { OpenTypeTextReveal } from './OpenTypeTextReveal';
9
7
  export { TrailCityDiagram } from './TrailCityDiagram';
8
+ export { FileCityLogo, FileCityPanel, computeFileCityLayout, fileCityLabel } from './FileCityLogo';
9
+ export { FileCityLogoAnimated } from './FileCityLogoAnimated';
10
10
  export { TELEMETRY_PRESETS } from './presets';
11
11
  export { STROKE_CHARACTERS, layoutText } from './strokeCharacters';
package/dist/index.d.ts CHANGED
@@ -1,13 +1,15 @@
1
1
  export { Logo } from './Logo';
2
2
  export { LogoSmall } from './LogoSmall';
3
3
  export { ForksLogo } from './ForksLogo';
4
- export { SquareLogo } from './SquareLogo';
5
- export { WreathLogo } from './WreathLogo';
6
4
  export { TelemetryReveal } from './TelemetryReveal';
7
5
  export { TextReveal } from './TextReveal';
8
6
  export { OpenTypeTextReveal } from './OpenTypeTextReveal';
9
7
  export { TrailCityDiagram } from './TrailCityDiagram';
10
8
  export type { TrailCityDiagramProps } from './TrailCityDiagram';
9
+ export { FileCityLogo, FileCityPanel, computeFileCityLayout, fileCityLabel } from './FileCityLogo';
10
+ export type { FileCityLogoProps, FileCityMark, FileCityGradient, FileCityCell, FileCityLayout, } from './FileCityLogo';
11
+ export { FileCityLogoAnimated } from './FileCityLogoAnimated';
12
+ export type { FileCityLogoAnimatedProps } from './FileCityLogoAnimated';
11
13
  export { TELEMETRY_PRESETS } from './presets';
12
14
  export { STROKE_CHARACTERS, layoutText } from './strokeCharacters';
13
15
  export type { PathDefinition, ShapePreset } from './presets';
package/dist/index.esm.js CHANGED
@@ -1,11 +1,11 @@
1
1
  export { Logo } from './Logo';
2
2
  export { LogoSmall } from './LogoSmall';
3
3
  export { ForksLogo } from './ForksLogo';
4
- export { SquareLogo } from './SquareLogo';
5
- export { WreathLogo } from './WreathLogo';
6
4
  export { TelemetryReveal } from './TelemetryReveal';
7
5
  export { TextReveal } from './TextReveal';
8
6
  export { OpenTypeTextReveal } from './OpenTypeTextReveal';
9
7
  export { TrailCityDiagram } from './TrailCityDiagram';
8
+ export { FileCityLogo, FileCityPanel, computeFileCityLayout, fileCityLabel } from './FileCityLogo';
9
+ export { FileCityLogoAnimated } from './FileCityLogoAnimated';
10
10
  export { TELEMETRY_PRESETS } from './presets';
11
11
  export { STROKE_CHARACTERS, layoutText } from './strokeCharacters';
package/dist/index.js CHANGED
@@ -1,16 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.layoutText = exports.STROKE_CHARACTERS = exports.TELEMETRY_PRESETS = exports.TrailCityDiagram = exports.OpenTypeTextReveal = exports.TextReveal = exports.TelemetryReveal = exports.WreathLogo = exports.SquareLogo = exports.ForksLogo = exports.LogoSmall = exports.Logo = void 0;
3
+ exports.layoutText = exports.STROKE_CHARACTERS = exports.TELEMETRY_PRESETS = exports.FileCityLogoAnimated = exports.fileCityLabel = exports.computeFileCityLayout = exports.FileCityPanel = exports.FileCityLogo = exports.TrailCityDiagram = exports.OpenTypeTextReveal = exports.TextReveal = exports.TelemetryReveal = exports.ForksLogo = exports.LogoSmall = exports.Logo = void 0;
4
4
  var Logo_1 = require("./Logo");
5
5
  Object.defineProperty(exports, "Logo", { enumerable: true, get: function () { return Logo_1.Logo; } });
6
6
  var LogoSmall_1 = require("./LogoSmall");
7
7
  Object.defineProperty(exports, "LogoSmall", { enumerable: true, get: function () { return LogoSmall_1.LogoSmall; } });
8
8
  var ForksLogo_1 = require("./ForksLogo");
9
9
  Object.defineProperty(exports, "ForksLogo", { enumerable: true, get: function () { return ForksLogo_1.ForksLogo; } });
10
- var SquareLogo_1 = require("./SquareLogo");
11
- Object.defineProperty(exports, "SquareLogo", { enumerable: true, get: function () { return SquareLogo_1.SquareLogo; } });
12
- var WreathLogo_1 = require("./WreathLogo");
13
- Object.defineProperty(exports, "WreathLogo", { enumerable: true, get: function () { return WreathLogo_1.WreathLogo; } });
14
10
  var TelemetryReveal_1 = require("./TelemetryReveal");
15
11
  Object.defineProperty(exports, "TelemetryReveal", { enumerable: true, get: function () { return TelemetryReveal_1.TelemetryReveal; } });
16
12
  var TextReveal_1 = require("./TextReveal");
@@ -19,6 +15,13 @@ var OpenTypeTextReveal_1 = require("./OpenTypeTextReveal");
19
15
  Object.defineProperty(exports, "OpenTypeTextReveal", { enumerable: true, get: function () { return OpenTypeTextReveal_1.OpenTypeTextReveal; } });
20
16
  var TrailCityDiagram_1 = require("./TrailCityDiagram");
21
17
  Object.defineProperty(exports, "TrailCityDiagram", { enumerable: true, get: function () { return TrailCityDiagram_1.TrailCityDiagram; } });
18
+ var FileCityLogo_1 = require("./FileCityLogo");
19
+ Object.defineProperty(exports, "FileCityLogo", { enumerable: true, get: function () { return FileCityLogo_1.FileCityLogo; } });
20
+ Object.defineProperty(exports, "FileCityPanel", { enumerable: true, get: function () { return FileCityLogo_1.FileCityPanel; } });
21
+ Object.defineProperty(exports, "computeFileCityLayout", { enumerable: true, get: function () { return FileCityLogo_1.computeFileCityLayout; } });
22
+ Object.defineProperty(exports, "fileCityLabel", { enumerable: true, get: function () { return FileCityLogo_1.fileCityLabel; } });
23
+ var FileCityLogoAnimated_1 = require("./FileCityLogoAnimated");
24
+ Object.defineProperty(exports, "FileCityLogoAnimated", { enumerable: true, get: function () { return FileCityLogoAnimated_1.FileCityLogoAnimated; } });
22
25
  var presets_1 = require("./presets");
23
26
  Object.defineProperty(exports, "TELEMETRY_PRESETS", { enumerable: true, get: function () { return presets_1.TELEMETRY_PRESETS; } });
24
27
  var strokeCharacters_1 = require("./strokeCharacters");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@principal-ai/logo-component",
3
- "version": "0.1.16",
3
+ "version": "0.1.18",
4
4
  "description": "Animated wireframe sphere logo component",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -26,7 +26,7 @@
26
26
  "react": "^18.0.0 || ^19.0.0"
27
27
  },
28
28
  "devDependencies": {
29
- "@principal-ade/industry-theme": "^0.1.19",
29
+ "@principal-ade/industry-theme": "^0.1.20",
30
30
  "@storybook/addon-essentials": "^8.6.14",
31
31
  "@storybook/blocks": "^8.6.14",
32
32
  "@storybook/react": "^8.6.14",
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- interface SquareLogoProps {
3
- width?: number;
4
- height?: number;
5
- colors?: string[];
6
- opacity?: number;
7
- }
8
- export declare const SquareLogo: React.FC<SquareLogoProps>;
9
- export {};
@@ -1,57 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.SquareLogo = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- const SquareLogo = ({ width = 150, height = 150, colors = ['#FF6B6B', '#4ECDC4', '#45B7D1', '#FFA07A', '#96CEB4', '#FFEAA7', '#DDA15E', '#BC6C25', '#E76F51'], opacity = 0.9, }) => {
9
- const rectangleStyle = {
10
- transition: 'all 0.3s ease',
11
- };
12
- return (react_1.default.createElement("svg", { width: width, height: height, viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg", style: { opacity } },
13
- react_1.default.createElement("defs", null,
14
- react_1.default.createElement("filter", { id: "glow" },
15
- react_1.default.createElement("feGaussianBlur", { stdDeviation: "1.5", result: "coloredBlur" }),
16
- react_1.default.createElement("feMerge", null,
17
- react_1.default.createElement("feMergeNode", { in: "coloredBlur" }),
18
- react_1.default.createElement("feMergeNode", { in: "SourceGraphic" })))),
19
- react_1.default.createElement("rect", { x: "10", y: "10", width: "10", height: "15", fill: colors[1], style: rectangleStyle, filter: "url(#glow)" },
20
- react_1.default.createElement("animate", { attributeName: "opacity", values: "0.8;1;0.8", dur: "3s", repeatCount: "indefinite" })),
21
- react_1.default.createElement("rect", { x: "20", y: "10", width: "15", height: "80", fill: colors[0], style: rectangleStyle, filter: "url(#glow)" },
22
- react_1.default.createElement("animate", { attributeName: "opacity", values: "1;0.8;1", dur: "3s", repeatCount: "indefinite", begin: "0.3s" })),
23
- react_1.default.createElement("rect", { x: "35", y: "10", width: "30", height: "12", fill: colors[0], style: rectangleStyle, filter: "url(#glow)" },
24
- react_1.default.createElement("animate", { attributeName: "opacity", values: "0.8;1;0.8", dur: "3s", repeatCount: "indefinite", begin: "0.6s" })),
25
- react_1.default.createElement("rect", { x: "65", y: "10", width: "25", height: "12", fill: colors[0], style: rectangleStyle, filter: "url(#glow)" },
26
- react_1.default.createElement("animate", { attributeName: "opacity", values: "1;0.8;1", dur: "3s", repeatCount: "indefinite", begin: "0.9s" })),
27
- react_1.default.createElement("rect", { x: "35", y: "22", width: "15", height: "18", fill: colors[3], style: rectangleStyle, filter: "url(#glow)" },
28
- react_1.default.createElement("animate", { attributeName: "opacity", values: "0.8;1;0.8", dur: "3s", repeatCount: "indefinite", begin: "1.2s" })),
29
- react_1.default.createElement("rect", { x: "50", y: "22", width: "15", height: "18", fill: colors[4], style: rectangleStyle, filter: "url(#glow)" },
30
- react_1.default.createElement("animate", { attributeName: "opacity", values: "1;0.8;1", dur: "3s", repeatCount: "indefinite", begin: "1.5s" })),
31
- react_1.default.createElement("rect", { x: "65", y: "22", width: "12", height: "18", fill: colors[0], style: rectangleStyle, filter: "url(#glow)" },
32
- react_1.default.createElement("animate", { attributeName: "opacity", values: "0.8;1;0.8", dur: "3s", repeatCount: "indefinite", begin: "1.8s" })),
33
- react_1.default.createElement("rect", { x: "77", y: "22", width: "13", height: "28", fill: colors[0], style: rectangleStyle, filter: "url(#glow)" },
34
- react_1.default.createElement("animate", { attributeName: "opacity", values: "1;0.8;1", dur: "3s", repeatCount: "indefinite", begin: "2.1s" })),
35
- react_1.default.createElement("rect", { x: "77", y: "50", width: "13", height: "40", fill: colors[5], style: rectangleStyle, filter: "url(#glow)" },
36
- react_1.default.createElement("animate", { attributeName: "opacity", values: "0.8;1;0.8", dur: "3s", repeatCount: "indefinite", begin: "2.1s" })),
37
- react_1.default.createElement("rect", { x: "35", y: "40", width: "55", height: "10", fill: colors[0], style: rectangleStyle, filter: "url(#glow)" },
38
- react_1.default.createElement("animate", { attributeName: "opacity", values: "0.8;1;0.8", dur: "3s", repeatCount: "indefinite", begin: "2.4s" })),
39
- react_1.default.createElement("rect", { x: "10", y: "25", width: "10", height: "35", fill: colors[6], style: rectangleStyle, filter: "url(#glow)" },
40
- react_1.default.createElement("animate", { attributeName: "opacity", values: "1;0.8;1", dur: "3s", repeatCount: "indefinite", begin: "2.7s" })),
41
- react_1.default.createElement("rect", { x: "35", y: "50", width: "20", height: "20", fill: colors[7], style: rectangleStyle, filter: "url(#glow)" },
42
- react_1.default.createElement("animate", { attributeName: "opacity", values: "0.8;1;0.8", dur: "3s", repeatCount: "indefinite", begin: "0.3s" })),
43
- react_1.default.createElement("rect", { x: "55", y: "50", width: "22", height: "20", fill: colors[8], style: rectangleStyle, filter: "url(#glow)" },
44
- react_1.default.createElement("animate", { attributeName: "opacity", values: "1;0.8;1", dur: "3s", repeatCount: "indefinite", begin: "0.6s" })),
45
- react_1.default.createElement("rect", { x: "10", y: "60", width: "10", height: "30", fill: colors[1], style: rectangleStyle, filter: "url(#glow)" },
46
- react_1.default.createElement("animate", { attributeName: "opacity", values: "0.8;1;0.8", dur: "3s", repeatCount: "indefinite", begin: "0.9s" })),
47
- react_1.default.createElement("rect", { x: "35", y: "70", width: "25", height: "20", fill: colors[2], style: rectangleStyle, filter: "url(#glow)" },
48
- react_1.default.createElement("animate", { attributeName: "opacity", values: "1;0.8;1", dur: "3s", repeatCount: "indefinite", begin: "1.2s" })),
49
- react_1.default.createElement("rect", { x: "60", y: "70", width: "17", height: "20", fill: colors[3], style: rectangleStyle, filter: "url(#glow)" },
50
- react_1.default.createElement("animate", { attributeName: "opacity", values: "0.8;1;0.8", dur: "3s", repeatCount: "indefinite", begin: "1.5s" })),
51
- react_1.default.createElement("line", { x1: "20", y1: "10", x2: "20", y2: "90", stroke: "rgba(255, 255, 255, 0.15)", strokeWidth: "0.5" }),
52
- react_1.default.createElement("line", { x1: "35", y1: "10", x2: "35", y2: "90", stroke: "rgba(255, 255, 255, 0.15)", strokeWidth: "0.5" }),
53
- react_1.default.createElement("line", { x1: "10", y1: "22", x2: "90", y2: "22", stroke: "rgba(255, 255, 255, 0.15)", strokeWidth: "0.5" }),
54
- react_1.default.createElement("line", { x1: "10", y1: "40", x2: "90", y2: "40", stroke: "rgba(255, 255, 255, 0.15)", strokeWidth: "0.5" }),
55
- react_1.default.createElement("line", { x1: "10", y1: "50", x2: "90", y2: "50", stroke: "rgba(255, 255, 255, 0.15)", strokeWidth: "0.5" })));
56
- };
57
- exports.SquareLogo = SquareLogo;
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- interface WreathLogoProps {
3
- width?: number;
4
- height?: number;
5
- pColor?: string;
6
- wreathColor?: string;
7
- leafAccentColor?: string;
8
- opacity?: number;
9
- animationSpeed?: number;
10
- }
11
- export declare const WreathLogo: React.FC<WreathLogoProps>;
12
- export {};
@@ -1,92 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.WreathLogo = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- const WreathLogo = ({ width = 150, height = 150, pColor = '#2C3E50', wreathColor = '#27AE60', leafAccentColor = '#52BE80', opacity = 0.9, animationSpeed = 3, }) => {
9
- const wreathRadius = 58;
10
- return (react_1.default.createElement("svg", { width: width, height: height, viewBox: "0 0 200 200", xmlns: "http://www.w3.org/2000/svg", style: { opacity } },
11
- react_1.default.createElement("defs", null,
12
- react_1.default.createElement("radialGradient", { id: "wreathGlow", cx: "50%", cy: "50%", r: "50%" },
13
- react_1.default.createElement("stop", { offset: "0%", style: { stopColor: wreathColor, stopOpacity: 0.3 } }),
14
- react_1.default.createElement("stop", { offset: "100%", style: { stopColor: wreathColor, stopOpacity: 0 } })),
15
- react_1.default.createElement("filter", { id: "softGlow" },
16
- react_1.default.createElement("feGaussianBlur", { stdDeviation: "2", result: "coloredBlur" }),
17
- react_1.default.createElement("feMerge", null,
18
- react_1.default.createElement("feMergeNode", { in: "coloredBlur" }),
19
- react_1.default.createElement("feMergeNode", { in: "SourceGraphic" })))),
20
- react_1.default.createElement("circle", { cx: "100", cy: "100", r: "70", fill: "url(#wreathGlow)", opacity: "0.3" }),
21
- react_1.default.createElement("path", { d: (() => {
22
- const numPoints = 24;
23
- const waveAmplitude = 2;
24
- let pathD = '';
25
- const points = [];
26
- // Generate all points first
27
- for (let i = 0; i <= numPoints; i++) {
28
- const angle = (360 / numPoints) * i;
29
- const radians = (angle * Math.PI) / 180;
30
- // Use sine wave for smooth variation
31
- const radiusVariation = Math.sin((angle * Math.PI) / 180 * 6) * waveAmplitude;
32
- const currentRadius = wreathRadius + radiusVariation;
33
- const x = 100 + currentRadius * Math.cos(radians);
34
- const y = 100 + currentRadius * Math.sin(radians);
35
- points.push({ x, y, angle, radians });
36
- }
37
- // Create smooth cubic bezier path with better control points
38
- pathD = `M ${points[0].x},${points[0].y}`;
39
- for (let i = 0; i < points.length - 1; i++) {
40
- const current = points[i];
41
- const next = points[i + 1];
42
- // Calculate tangent for smooth curves
43
- const tangentLength = 0.4;
44
- const cp1x = current.x - Math.sin(current.radians) * tangentLength * 15;
45
- const cp1y = current.y + Math.cos(current.radians) * tangentLength * 15;
46
- const cp2x = next.x + Math.sin(next.radians) * tangentLength * 15;
47
- const cp2y = next.y - Math.cos(next.radians) * tangentLength * 15;
48
- pathD += ` C ${cp1x},${cp1y} ${cp2x},${cp2y} ${next.x},${next.y}`;
49
- }
50
- return pathD + ' Z';
51
- })(), fill: "none", stroke: wreathColor, strokeWidth: "7", strokeLinecap: "round", strokeLinejoin: "round", opacity: "0.75", filter: "url(#softGlow)" },
52
- react_1.default.createElement("animate", { attributeName: "stroke-opacity", values: "0.65;0.85;0.65", dur: `${animationSpeed}s`, repeatCount: "indefinite" })),
53
- react_1.default.createElement("path", { d: (() => {
54
- const numPoints = 24;
55
- const waveAmplitude = 1.5;
56
- const innerRadius = wreathRadius - 9;
57
- let pathD = '';
58
- const points = [];
59
- for (let i = 0; i <= numPoints; i++) {
60
- const angle = (360 / numPoints) * i + 15; // Offset from main wreath
61
- const radians = (angle * Math.PI) / 180;
62
- // Use sine wave offset for smooth variation
63
- const radiusVariation = Math.sin(((angle + 30) * Math.PI) / 180 * 6) * waveAmplitude;
64
- const currentRadius = innerRadius + radiusVariation;
65
- const x = 100 + currentRadius * Math.cos(radians);
66
- const y = 100 + currentRadius * Math.sin(radians);
67
- points.push({ x, y, radians });
68
- }
69
- pathD = `M ${points[0].x},${points[0].y}`;
70
- for (let i = 0; i < points.length - 1; i++) {
71
- const current = points[i];
72
- const next = points[i + 1];
73
- const tangentLength = 0.4;
74
- const cp1x = current.x - Math.sin(current.radians) * tangentLength * 15;
75
- const cp1y = current.y + Math.cos(current.radians) * tangentLength * 15;
76
- const cp2x = next.x + Math.sin(next.radians) * tangentLength * 15;
77
- const cp2y = next.y - Math.cos(next.radians) * tangentLength * 15;
78
- pathD += ` C ${cp1x},${cp1y} ${cp2x},${cp2y} ${next.x},${next.y}`;
79
- }
80
- return pathD + ' Z';
81
- })(), fill: "none", stroke: leafAccentColor, strokeWidth: "5", strokeLinecap: "round", strokeLinejoin: "round", opacity: "0.6", filter: "url(#softGlow)" },
82
- react_1.default.createElement("animate", { attributeName: "stroke-opacity", values: "0.5;0.7;0.5", dur: `${animationSpeed}s`, repeatCount: "indefinite", begin: "0.5s" })),
83
- react_1.default.createElement("g", { filter: "url(#softGlow)" },
84
- react_1.default.createElement("defs", null,
85
- react_1.default.createElement("linearGradient", { id: "pGradient", x1: "0%", y1: "0%", x2: "0%", y2: "100%" },
86
- react_1.default.createElement("stop", { offset: "0%", style: { stopColor: pColor, stopOpacity: 1 } }),
87
- react_1.default.createElement("stop", { offset: "100%", style: { stopColor: pColor, stopOpacity: 0.85 } }))),
88
- react_1.default.createElement("path", { d: "M 82,70\n L 82,130\n L 90,130\n L 90,102\n L 104,102\n C 114,102 122,94 122,84\n C 122,74 114,70 104,70\n Z\n M 90,78\n L 104,78\n C 109,78 114,80 114,84\n C 114,88 109,94 104,94\n L 90,94\n Z", fill: "url(#pGradient)" },
89
- react_1.default.createElement("animate", { attributeName: "opacity", values: "0.95;1;0.95", dur: `${animationSpeed}s`, repeatCount: "indefinite" })),
90
- react_1.default.createElement("path", { d: "M 83,72 L 83,128 L 84,128 L 84,72 Z", fill: "white", opacity: "0.15" }))));
91
- };
92
- exports.WreathLogo = WreathLogo;
@@ -1,50 +0,0 @@
1
- import React from 'react';
2
- export const SquareLogo = ({ width = 150, height = 150, colors = ['#FF6B6B', '#4ECDC4', '#45B7D1', '#FFA07A', '#96CEB4', '#FFEAA7', '#DDA15E', '#BC6C25', '#E76F51'], opacity = 0.9, }) => {
3
- const rectangleStyle = {
4
- transition: 'all 0.3s ease',
5
- };
6
- return (React.createElement("svg", { width: width, height: height, viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg", style: { opacity } },
7
- React.createElement("defs", null,
8
- React.createElement("filter", { id: "glow" },
9
- React.createElement("feGaussianBlur", { stdDeviation: "1.5", result: "coloredBlur" }),
10
- React.createElement("feMerge", null,
11
- React.createElement("feMergeNode", { in: "coloredBlur" }),
12
- React.createElement("feMergeNode", { in: "SourceGraphic" })))),
13
- React.createElement("rect", { x: "10", y: "10", width: "10", height: "15", fill: colors[1], style: rectangleStyle, filter: "url(#glow)" },
14
- React.createElement("animate", { attributeName: "opacity", values: "0.8;1;0.8", dur: "3s", repeatCount: "indefinite" })),
15
- React.createElement("rect", { x: "20", y: "10", width: "15", height: "80", fill: colors[0], style: rectangleStyle, filter: "url(#glow)" },
16
- React.createElement("animate", { attributeName: "opacity", values: "1;0.8;1", dur: "3s", repeatCount: "indefinite", begin: "0.3s" })),
17
- React.createElement("rect", { x: "35", y: "10", width: "30", height: "12", fill: colors[0], style: rectangleStyle, filter: "url(#glow)" },
18
- React.createElement("animate", { attributeName: "opacity", values: "0.8;1;0.8", dur: "3s", repeatCount: "indefinite", begin: "0.6s" })),
19
- React.createElement("rect", { x: "65", y: "10", width: "25", height: "12", fill: colors[0], style: rectangleStyle, filter: "url(#glow)" },
20
- React.createElement("animate", { attributeName: "opacity", values: "1;0.8;1", dur: "3s", repeatCount: "indefinite", begin: "0.9s" })),
21
- React.createElement("rect", { x: "35", y: "22", width: "15", height: "18", fill: colors[3], style: rectangleStyle, filter: "url(#glow)" },
22
- React.createElement("animate", { attributeName: "opacity", values: "0.8;1;0.8", dur: "3s", repeatCount: "indefinite", begin: "1.2s" })),
23
- React.createElement("rect", { x: "50", y: "22", width: "15", height: "18", fill: colors[4], style: rectangleStyle, filter: "url(#glow)" },
24
- React.createElement("animate", { attributeName: "opacity", values: "1;0.8;1", dur: "3s", repeatCount: "indefinite", begin: "1.5s" })),
25
- React.createElement("rect", { x: "65", y: "22", width: "12", height: "18", fill: colors[0], style: rectangleStyle, filter: "url(#glow)" },
26
- React.createElement("animate", { attributeName: "opacity", values: "0.8;1;0.8", dur: "3s", repeatCount: "indefinite", begin: "1.8s" })),
27
- React.createElement("rect", { x: "77", y: "22", width: "13", height: "28", fill: colors[0], style: rectangleStyle, filter: "url(#glow)" },
28
- React.createElement("animate", { attributeName: "opacity", values: "1;0.8;1", dur: "3s", repeatCount: "indefinite", begin: "2.1s" })),
29
- React.createElement("rect", { x: "77", y: "50", width: "13", height: "40", fill: colors[5], style: rectangleStyle, filter: "url(#glow)" },
30
- React.createElement("animate", { attributeName: "opacity", values: "0.8;1;0.8", dur: "3s", repeatCount: "indefinite", begin: "2.1s" })),
31
- React.createElement("rect", { x: "35", y: "40", width: "55", height: "10", fill: colors[0], style: rectangleStyle, filter: "url(#glow)" },
32
- React.createElement("animate", { attributeName: "opacity", values: "0.8;1;0.8", dur: "3s", repeatCount: "indefinite", begin: "2.4s" })),
33
- React.createElement("rect", { x: "10", y: "25", width: "10", height: "35", fill: colors[6], style: rectangleStyle, filter: "url(#glow)" },
34
- React.createElement("animate", { attributeName: "opacity", values: "1;0.8;1", dur: "3s", repeatCount: "indefinite", begin: "2.7s" })),
35
- React.createElement("rect", { x: "35", y: "50", width: "20", height: "20", fill: colors[7], style: rectangleStyle, filter: "url(#glow)" },
36
- React.createElement("animate", { attributeName: "opacity", values: "0.8;1;0.8", dur: "3s", repeatCount: "indefinite", begin: "0.3s" })),
37
- React.createElement("rect", { x: "55", y: "50", width: "22", height: "20", fill: colors[8], style: rectangleStyle, filter: "url(#glow)" },
38
- React.createElement("animate", { attributeName: "opacity", values: "1;0.8;1", dur: "3s", repeatCount: "indefinite", begin: "0.6s" })),
39
- React.createElement("rect", { x: "10", y: "60", width: "10", height: "30", fill: colors[1], style: rectangleStyle, filter: "url(#glow)" },
40
- React.createElement("animate", { attributeName: "opacity", values: "0.8;1;0.8", dur: "3s", repeatCount: "indefinite", begin: "0.9s" })),
41
- React.createElement("rect", { x: "35", y: "70", width: "25", height: "20", fill: colors[2], style: rectangleStyle, filter: "url(#glow)" },
42
- React.createElement("animate", { attributeName: "opacity", values: "1;0.8;1", dur: "3s", repeatCount: "indefinite", begin: "1.2s" })),
43
- React.createElement("rect", { x: "60", y: "70", width: "17", height: "20", fill: colors[3], style: rectangleStyle, filter: "url(#glow)" },
44
- React.createElement("animate", { attributeName: "opacity", values: "0.8;1;0.8", dur: "3s", repeatCount: "indefinite", begin: "1.5s" })),
45
- React.createElement("line", { x1: "20", y1: "10", x2: "20", y2: "90", stroke: "rgba(255, 255, 255, 0.15)", strokeWidth: "0.5" }),
46
- React.createElement("line", { x1: "35", y1: "10", x2: "35", y2: "90", stroke: "rgba(255, 255, 255, 0.15)", strokeWidth: "0.5" }),
47
- React.createElement("line", { x1: "10", y1: "22", x2: "90", y2: "22", stroke: "rgba(255, 255, 255, 0.15)", strokeWidth: "0.5" }),
48
- React.createElement("line", { x1: "10", y1: "40", x2: "90", y2: "40", stroke: "rgba(255, 255, 255, 0.15)", strokeWidth: "0.5" }),
49
- React.createElement("line", { x1: "10", y1: "50", x2: "90", y2: "50", stroke: "rgba(255, 255, 255, 0.15)", strokeWidth: "0.5" })));
50
- };
@@ -1,85 +0,0 @@
1
- import React from 'react';
2
- export const WreathLogo = ({ width = 150, height = 150, pColor = '#2C3E50', wreathColor = '#27AE60', leafAccentColor = '#52BE80', opacity = 0.9, animationSpeed = 3, }) => {
3
- const wreathRadius = 58;
4
- return (React.createElement("svg", { width: width, height: height, viewBox: "0 0 200 200", xmlns: "http://www.w3.org/2000/svg", style: { opacity } },
5
- React.createElement("defs", null,
6
- React.createElement("radialGradient", { id: "wreathGlow", cx: "50%", cy: "50%", r: "50%" },
7
- React.createElement("stop", { offset: "0%", style: { stopColor: wreathColor, stopOpacity: 0.3 } }),
8
- React.createElement("stop", { offset: "100%", style: { stopColor: wreathColor, stopOpacity: 0 } })),
9
- React.createElement("filter", { id: "softGlow" },
10
- React.createElement("feGaussianBlur", { stdDeviation: "2", result: "coloredBlur" }),
11
- React.createElement("feMerge", null,
12
- React.createElement("feMergeNode", { in: "coloredBlur" }),
13
- React.createElement("feMergeNode", { in: "SourceGraphic" })))),
14
- React.createElement("circle", { cx: "100", cy: "100", r: "70", fill: "url(#wreathGlow)", opacity: "0.3" }),
15
- React.createElement("path", { d: (() => {
16
- const numPoints = 24;
17
- const waveAmplitude = 2;
18
- let pathD = '';
19
- const points = [];
20
- // Generate all points first
21
- for (let i = 0; i <= numPoints; i++) {
22
- const angle = (360 / numPoints) * i;
23
- const radians = (angle * Math.PI) / 180;
24
- // Use sine wave for smooth variation
25
- const radiusVariation = Math.sin((angle * Math.PI) / 180 * 6) * waveAmplitude;
26
- const currentRadius = wreathRadius + radiusVariation;
27
- const x = 100 + currentRadius * Math.cos(radians);
28
- const y = 100 + currentRadius * Math.sin(radians);
29
- points.push({ x, y, angle, radians });
30
- }
31
- // Create smooth cubic bezier path with better control points
32
- pathD = `M ${points[0].x},${points[0].y}`;
33
- for (let i = 0; i < points.length - 1; i++) {
34
- const current = points[i];
35
- const next = points[i + 1];
36
- // Calculate tangent for smooth curves
37
- const tangentLength = 0.4;
38
- const cp1x = current.x - Math.sin(current.radians) * tangentLength * 15;
39
- const cp1y = current.y + Math.cos(current.radians) * tangentLength * 15;
40
- const cp2x = next.x + Math.sin(next.radians) * tangentLength * 15;
41
- const cp2y = next.y - Math.cos(next.radians) * tangentLength * 15;
42
- pathD += ` C ${cp1x},${cp1y} ${cp2x},${cp2y} ${next.x},${next.y}`;
43
- }
44
- return pathD + ' Z';
45
- })(), fill: "none", stroke: wreathColor, strokeWidth: "7", strokeLinecap: "round", strokeLinejoin: "round", opacity: "0.75", filter: "url(#softGlow)" },
46
- React.createElement("animate", { attributeName: "stroke-opacity", values: "0.65;0.85;0.65", dur: `${animationSpeed}s`, repeatCount: "indefinite" })),
47
- React.createElement("path", { d: (() => {
48
- const numPoints = 24;
49
- const waveAmplitude = 1.5;
50
- const innerRadius = wreathRadius - 9;
51
- let pathD = '';
52
- const points = [];
53
- for (let i = 0; i <= numPoints; i++) {
54
- const angle = (360 / numPoints) * i + 15; // Offset from main wreath
55
- const radians = (angle * Math.PI) / 180;
56
- // Use sine wave offset for smooth variation
57
- const radiusVariation = Math.sin(((angle + 30) * Math.PI) / 180 * 6) * waveAmplitude;
58
- const currentRadius = innerRadius + radiusVariation;
59
- const x = 100 + currentRadius * Math.cos(radians);
60
- const y = 100 + currentRadius * Math.sin(radians);
61
- points.push({ x, y, radians });
62
- }
63
- pathD = `M ${points[0].x},${points[0].y}`;
64
- for (let i = 0; i < points.length - 1; i++) {
65
- const current = points[i];
66
- const next = points[i + 1];
67
- const tangentLength = 0.4;
68
- const cp1x = current.x - Math.sin(current.radians) * tangentLength * 15;
69
- const cp1y = current.y + Math.cos(current.radians) * tangentLength * 15;
70
- const cp2x = next.x + Math.sin(next.radians) * tangentLength * 15;
71
- const cp2y = next.y - Math.cos(next.radians) * tangentLength * 15;
72
- pathD += ` C ${cp1x},${cp1y} ${cp2x},${cp2y} ${next.x},${next.y}`;
73
- }
74
- return pathD + ' Z';
75
- })(), fill: "none", stroke: leafAccentColor, strokeWidth: "5", strokeLinecap: "round", strokeLinejoin: "round", opacity: "0.6", filter: "url(#softGlow)" },
76
- React.createElement("animate", { attributeName: "stroke-opacity", values: "0.5;0.7;0.5", dur: `${animationSpeed}s`, repeatCount: "indefinite", begin: "0.5s" })),
77
- React.createElement("g", { filter: "url(#softGlow)" },
78
- React.createElement("defs", null,
79
- React.createElement("linearGradient", { id: "pGradient", x1: "0%", y1: "0%", x2: "0%", y2: "100%" },
80
- React.createElement("stop", { offset: "0%", style: { stopColor: pColor, stopOpacity: 1 } }),
81
- React.createElement("stop", { offset: "100%", style: { stopColor: pColor, stopOpacity: 0.85 } }))),
82
- React.createElement("path", { d: "M 82,70\n L 82,130\n L 90,130\n L 90,102\n L 104,102\n C 114,102 122,94 122,84\n C 122,74 114,70 104,70\n Z\n M 90,78\n L 104,78\n C 109,78 114,80 114,84\n C 114,88 109,94 104,94\n L 90,94\n Z", fill: "url(#pGradient)" },
83
- React.createElement("animate", { attributeName: "opacity", values: "0.95;1;0.95", dur: `${animationSpeed}s`, repeatCount: "indefinite" })),
84
- React.createElement("path", { d: "M 83,72 L 83,128 L 84,128 L 84,72 Z", fill: "white", opacity: "0.15" }))));
85
- };