@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.
@@ -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
- };