@principal-ai/logo-component 0.1.17 → 0.1.19

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,195 @@
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, gloss } = 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
+ props.gloss,
47
+ props.squareRadius,
48
+ ]);
49
+ // Per-cell number of samples to fully reveal it (>=1; letter cells take
50
+ // `buildSteps`, city cells proportionally fewer by their weight).
51
+ const stepsFor = useMemo(() => cells.map((cell) => Math.max(1, Math.round(cell.weight * buildSteps))), [cells, buildSteps]);
52
+ // The pool of pending samples: each cell index repeated `steps` times,
53
+ // shuffled deterministically so the batches scatter across the grid,
54
+ // then sliced into groups of `batchMin`..`batchMax`.
55
+ const groups = useMemo(() => {
56
+ const p = [];
57
+ stepsFor.forEach((n, i) => {
58
+ for (let k = 0; k < n; k++)
59
+ p.push(i);
60
+ });
61
+ const shuffle = mulberry32(0x5eed + cells.length);
62
+ for (let i = p.length - 1; i > 0; i--) {
63
+ const j = Math.floor(shuffle() * (i + 1));
64
+ [p[i], p[j]] = [p[j], p[i]];
65
+ }
66
+ const sizeRand = mulberry32(0xb47c4 + cells.length);
67
+ const g = [];
68
+ let i = 0;
69
+ while (i < p.length) {
70
+ const size = batchMin + Math.floor(sizeRand() * (batchMax - batchMin + 1));
71
+ g.push(p.slice(i, i + size));
72
+ i += size;
73
+ }
74
+ return g;
75
+ }, [stepsFor, cells.length, batchMin, batchMax]);
76
+ // `progress[i]` = samples applied to cell i. Once every group has been
77
+ // walked the animation is done and the logo holds.
78
+ const [progress, setProgress] = useState(() => cells.map(() => 0));
79
+ const [done, setDone] = useState(false);
80
+ // The connector for the active group: which group it traces, and whether
81
+ // it's drawing on (during the reveal) or fading out (during the pause).
82
+ const [conn, setConn] = useState(null);
83
+ const groupRef = useRef(0);
84
+ const memberRef = useRef(0);
85
+ const onCompleteRef = useRef(onComplete);
86
+ onCompleteRef.current = onComplete;
87
+ // Drive the accumulation. Re-runs whenever the layout, timing, or the
88
+ // explicit `playKey` changes — that's our "replay."
89
+ useEffect(() => {
90
+ var _a;
91
+ // Respect reduced-motion: jump straight to the resolved logo.
92
+ const reduce = typeof window !== 'undefined' &&
93
+ window.matchMedia &&
94
+ window.matchMedia('(prefers-reduced-motion: reduce)').matches;
95
+ groupRef.current = 0;
96
+ memberRef.current = 0;
97
+ setProgress(cells.map(() => 0));
98
+ setConn(null);
99
+ setDone(false);
100
+ if (!autoPlay || cells.length === 0 || reduce) {
101
+ setProgress(stepsFor.slice());
102
+ setDone(true);
103
+ (_a = onCompleteRef.current) === null || _a === void 0 ? void 0 : _a.call(onCompleteRef);
104
+ return;
105
+ }
106
+ let timer;
107
+ // Reveal one cell per step. Within a group the steps are `cellMs`
108
+ // apart; finishing a group schedules the next one after `pauseMs`.
109
+ const step = () => {
110
+ var _a;
111
+ const gi = groupRef.current;
112
+ if (gi >= groups.length) {
113
+ setDone(true);
114
+ (_a = onCompleteRef.current) === null || _a === void 0 ? void 0 : _a.call(onCompleteRef);
115
+ return;
116
+ }
117
+ const group = groups[gi];
118
+ const mi = memberRef.current;
119
+ const idx = group[mi];
120
+ setProgress((prev) => {
121
+ const next = prev.slice();
122
+ next[idx] = Math.min(stepsFor[idx], next[idx] + 1);
123
+ return next;
124
+ });
125
+ const lastInGroup = mi + 1 >= group.length;
126
+ // Start the connector drawing on when the group begins; once it's
127
+ // complete, flip to fading so it dissolves through the pause.
128
+ if (mi === 0)
129
+ setConn({ group: gi, fading: false });
130
+ if (lastInGroup)
131
+ setConn({ group: gi, fading: true });
132
+ if (lastInGroup) {
133
+ groupRef.current = gi + 1;
134
+ memberRef.current = 0;
135
+ timer = setTimeout(step, pauseMs);
136
+ }
137
+ else {
138
+ memberRef.current = mi + 1;
139
+ timer = setTimeout(step, cellMs);
140
+ }
141
+ };
142
+ timer = setTimeout(step, cellMs);
143
+ return () => clearTimeout(timer);
144
+ // eslint-disable-next-line react-hooks/exhaustive-deps
145
+ }, [cells, groups, stepsFor, cellMs, pauseMs, autoPlay, playKey]);
146
+ // Easing for the per-cell fill-in so each sample lands softly.
147
+ const ease = (t) => 1 - Math.pow(1 - t, 2);
148
+ // Connector geometry — the full path through the active group's cell
149
+ // centers (drawn on with stroke-dashoffset, so we render every point up
150
+ // front and animate the reveal).
151
+ const sq = cells.length ? cells[0].sq : 1;
152
+ const centerOf = (idx) => ({
153
+ x: cells[idx].x + cells[idx].sq / 2,
154
+ y: cells[idx].y + cells[idx].sq / 2,
155
+ });
156
+ const connGroup = conn ? groups[conn.group] : null;
157
+ const connectorPath = connGroup && connGroup.length > 1
158
+ ? connGroup
159
+ .map((idx, i) => {
160
+ const p = centerOf(idx);
161
+ return `${i ? 'L' : 'M'} ${p.x} ${p.y}`;
162
+ })
163
+ .join(' ')
164
+ : null;
165
+ // Draw the trail on across the group's reveal (so the line reaches each
166
+ // cell about as it lights up); fade should finish inside the pause.
167
+ const drawMs = connGroup ? Math.max(cellMs, (connGroup.length - 1) * cellMs) : 0;
168
+ const fadeMs = Math.max(120, Math.min(pauseMs - 60, 360));
169
+ return (React.createElement(FileCityPanel, { width: width, height: height, bgColor: bgColor, baseColor: baseColor, rounded: rounded, opacity: opacity, gloss: gloss, label: fileCityLabel(mark) },
170
+ cells.map((cell, i) => {
171
+ const reveal = done ? 1 : ease(progress[i] / stepsFor[i]);
172
+ if (reveal <= 0)
173
+ return null;
174
+ 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 }));
175
+ }),
176
+ connectors && connectorPath && conn && !done ? (
177
+ // The trail is a dashed (dotted) path, revealed progressively by a
178
+ // mask: a solid line draws itself on (stroke-dashoffset 1 → 0 with
179
+ // pathLength normalized to 1), uncovering the dots block by block as
180
+ // the trail extends.
181
+ (() => {
182
+ const maskId = `conn-mask-${uid}-${conn.group}`;
183
+ const w = Math.max(0.6, sq * 0.12);
184
+ return (React.createElement("g", { key: `conn-${conn.group}` },
185
+ React.createElement("style", null, `@keyframes ${CONN_DRAW}{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}`),
186
+ React.createElement("defs", null,
187
+ React.createElement("mask", { id: maskId, maskUnits: "userSpaceOnUse" },
188
+ 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` } }))),
189
+ 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: {
190
+ transition: `opacity ${fadeMs}ms ease`,
191
+ opacity: conn.fading ? 0 : 0.9,
192
+ } })));
193
+ })()) : null,
194
+ done ? extras : null));
195
+ };
@@ -104,11 +104,11 @@ export function TrailCityDiagram({ theme, className, hideSnippet = false, snippe
104
104
  // reads cleanly against the dark city.
105
105
  const silver = '#d1d8e0';
106
106
  const palette = useMemo(() => [
107
- withAlpha(accent, 0.18),
108
- withAlpha(accent, 0.32),
109
- withAlpha(text, 0.08),
110
- withAlpha(text, 0.14),
111
- withAlpha(text, 0.22),
107
+ withAlpha(accent, 0.36),
108
+ withAlpha(accent, 0.55),
109
+ withAlpha(text, 0.18),
110
+ withAlpha(text, 0.3),
111
+ withAlpha(text, 0.45),
112
112
  ], [accent, text]);
113
113
  const markerCells = useMemo(() => [
114
114
  { col: 1, row: 10, label: '1' },
@@ -140,7 +140,7 @@ export function TrailCityDiagram({ theme, className, hideSnippet = false, snippe
140
140
  React.createElement("stop", { offset: "100%", stopColor: bg, stopOpacity: 0.7 }))),
141
141
  React.createElement("rect", { x: 0, y: 0, width: VIEW_W, height: VIEW_H, fill: bg, rx: 12 }),
142
142
  React.createElement("g", { style: {
143
- opacity: highlightTrail ? 0.2 : 1,
143
+ opacity: highlightTrail ? 0.4 : 1,
144
144
  transition: 'opacity 300ms ease',
145
145
  } }, buildings.map((b, i) => (React.createElement("rect", { key: i, x: b.x, y: b.y, width: b.w, height: b.h, fill: b.fill, stroke: withAlpha(text, 0.08), strokeWidth: 0.5, rx: 2 })))),
146
146
  !hideSnippet && (() => {
package/dist/esm/index.js CHANGED
@@ -1,12 +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';
10
- export { FileCityLogo } from './FileCityLogo';
8
+ export { FileCityLogo, FileCityPanel, computeFileCityLayout, fileCityLabel } from './FileCityLogo';
9
+ export { FileCityLogoAnimated } from './FileCityLogoAnimated';
11
10
  export { TELEMETRY_PRESETS } from './presets';
12
11
  export { STROKE_CHARACTERS, layoutText } from './strokeCharacters';
package/dist/index.d.ts CHANGED
@@ -1,15 +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';
11
- export { FileCityLogo } from './FileCityLogo';
12
- export type { FileCityLogoProps, FileCityMark, FileCityGradient } from './FileCityLogo';
9
+ export { FileCityLogo, FileCityPanel, computeFileCityLayout, fileCityLabel } from './FileCityLogo';
10
+ export type { FileCityLogoProps, FileCityMark, FileCityGradient, FileCityCell, FileCityLayout, GlossSide, GlossConfig, GlossOption, } from './FileCityLogo';
11
+ export { FileCityLogoAnimated } from './FileCityLogoAnimated';
12
+ export type { FileCityLogoAnimatedProps } from './FileCityLogoAnimated';
13
13
  export { TELEMETRY_PRESETS } from './presets';
14
14
  export { STROKE_CHARACTERS, layoutText } from './strokeCharacters';
15
15
  export type { PathDefinition, ShapePreset } from './presets';
package/dist/index.esm.js CHANGED
@@ -1,12 +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';
10
- export { FileCityLogo } from './FileCityLogo';
8
+ export { FileCityLogo, FileCityPanel, computeFileCityLayout, fileCityLabel } from './FileCityLogo';
9
+ export { FileCityLogoAnimated } from './FileCityLogoAnimated';
11
10
  export { TELEMETRY_PRESETS } from './presets';
12
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.FileCityLogo = 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");
@@ -21,6 +17,11 @@ var TrailCityDiagram_1 = require("./TrailCityDiagram");
21
17
  Object.defineProperty(exports, "TrailCityDiagram", { enumerable: true, get: function () { return TrailCityDiagram_1.TrailCityDiagram; } });
22
18
  var FileCityLogo_1 = require("./FileCityLogo");
23
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; } });
24
25
  var presets_1 = require("./presets");
25
26
  Object.defineProperty(exports, "TELEMETRY_PRESETS", { enumerable: true, get: function () { return presets_1.TELEMETRY_PRESETS; } });
26
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.17",
3
+ "version": "0.1.19",
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.20",
29
+ "@principal-ade/industry-theme": "^0.1.22",
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
- };