@principal-ai/logo-component 0.1.19 → 0.1.20
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/FileCityLogo.js +13 -9
- package/dist/esm/FileCityLogo.js +13 -9
- package/package.json +8 -3
package/dist/FileCityLogo.js
CHANGED
|
@@ -132,22 +132,26 @@ function mix(a, b, t) {
|
|
|
132
132
|
* mark from the public props. Pure — no hooks — so both the static and
|
|
133
133
|
* animated components can build their SVG from the identical cell list.
|
|
134
134
|
*/
|
|
135
|
-
function computeFileCityLayout({ mark = 'P', primary, accent, color, background, theme, cells = 5, highlight = true, trail = false, gradient = 'diagonal', rounded = true, margin = 1, aiCard = false,
|
|
135
|
+
function computeFileCityLayout({ mark = 'P', primary, accent, color, background, theme, cells = 5, highlight = true, trail = false, gradient = 'diagonal', rounded = true, margin = 1, aiCard = false,
|
|
136
|
+
// Slight global translucency gives the mark a faded "film" quality and
|
|
137
|
+
// keeps the muted city from competing with the P. Restored after a
|
|
138
|
+
// brief de-haze experiment that made the city too present.
|
|
139
|
+
opacity = 0.9, gloss = false, squareRadius = 0, }) {
|
|
136
140
|
var _a, _b, _c, _d, _e;
|
|
137
141
|
const primaryColor = (_a = primary !== null && primary !== void 0 ? primary : theme === null || theme === void 0 ? void 0 : theme.colors.primary) !== null && _a !== void 0 ? _a : '#22d3ee';
|
|
138
142
|
const accentColor = (_b = accent !== null && accent !== void 0 ? accent : theme === null || theme === void 0 ? void 0 : theme.colors.accent) !== null && _b !== void 0 ? _b : primaryColor;
|
|
139
143
|
const baseColor = (_c = color !== null && color !== void 0 ? color : theme === null || theme === void 0 ? void 0 : theme.colors.text) !== null && _c !== void 0 ? _c : '#f8fafc';
|
|
140
144
|
const bgColor = (_e = (_d = background !== null && background !== void 0 ? background : theme === null || theme === void 0 ? void 0 : theme.colors.backgroundSecondary) !== null && _d !== void 0 ? _d : theme === null || theme === void 0 ? void 0 : theme.colors.background) !== null && _e !== void 0 ? _e : '#0a0f14';
|
|
141
145
|
// Same palette weighting as TrailCityDiagram so the two read as a set.
|
|
142
|
-
//
|
|
143
|
-
//
|
|
144
|
-
//
|
|
146
|
+
// The city tiles stay deliberately muted (low alpha) so the vivid,
|
|
147
|
+
// full-strength `markPalette` P reads as the figure against this faded
|
|
148
|
+
// "film" of buildings — that contrast is the whole point of the mark.
|
|
145
149
|
const palette = [
|
|
146
|
-
withAlpha(primaryColor, 0.
|
|
147
|
-
withAlpha(primaryColor, 0.
|
|
148
|
-
withAlpha(baseColor, 0.
|
|
149
|
-
withAlpha(baseColor, 0.
|
|
150
|
-
withAlpha(baseColor, 0.
|
|
150
|
+
withAlpha(primaryColor, 0.36),
|
|
151
|
+
withAlpha(primaryColor, 0.55),
|
|
152
|
+
withAlpha(baseColor, 0.18),
|
|
153
|
+
withAlpha(baseColor, 0.3),
|
|
154
|
+
withAlpha(baseColor, 0.45),
|
|
151
155
|
];
|
|
152
156
|
// The mark files vary in shade so the letter doesn't read as one flat
|
|
153
157
|
// block, but every shade stays vivid so it still stands out from the
|
package/dist/esm/FileCityLogo.js
CHANGED
|
@@ -94,22 +94,26 @@ function mix(a, b, t) {
|
|
|
94
94
|
* mark from the public props. Pure — no hooks — so both the static and
|
|
95
95
|
* animated components can build their SVG from the identical cell list.
|
|
96
96
|
*/
|
|
97
|
-
export function computeFileCityLayout({ mark = 'P', primary, accent, color, background, theme, cells = 5, highlight = true, trail = false, gradient = 'diagonal', rounded = true, margin = 1, aiCard = false,
|
|
97
|
+
export function computeFileCityLayout({ mark = 'P', primary, accent, color, background, theme, cells = 5, highlight = true, trail = false, gradient = 'diagonal', rounded = true, margin = 1, aiCard = false,
|
|
98
|
+
// Slight global translucency gives the mark a faded "film" quality and
|
|
99
|
+
// keeps the muted city from competing with the P. Restored after a
|
|
100
|
+
// brief de-haze experiment that made the city too present.
|
|
101
|
+
opacity = 0.9, gloss = false, squareRadius = 0, }) {
|
|
98
102
|
var _a, _b, _c, _d, _e;
|
|
99
103
|
const primaryColor = (_a = primary !== null && primary !== void 0 ? primary : theme === null || theme === void 0 ? void 0 : theme.colors.primary) !== null && _a !== void 0 ? _a : '#22d3ee';
|
|
100
104
|
const accentColor = (_b = accent !== null && accent !== void 0 ? accent : theme === null || theme === void 0 ? void 0 : theme.colors.accent) !== null && _b !== void 0 ? _b : primaryColor;
|
|
101
105
|
const baseColor = (_c = color !== null && color !== void 0 ? color : theme === null || theme === void 0 ? void 0 : theme.colors.text) !== null && _c !== void 0 ? _c : '#f8fafc';
|
|
102
106
|
const bgColor = (_e = (_d = background !== null && background !== void 0 ? background : theme === null || theme === void 0 ? void 0 : theme.colors.backgroundSecondary) !== null && _d !== void 0 ? _d : theme === null || theme === void 0 ? void 0 : theme.colors.background) !== null && _e !== void 0 ? _e : '#0a0f14';
|
|
103
107
|
// Same palette weighting as TrailCityDiagram so the two read as a set.
|
|
104
|
-
//
|
|
105
|
-
//
|
|
106
|
-
//
|
|
108
|
+
// The city tiles stay deliberately muted (low alpha) so the vivid,
|
|
109
|
+
// full-strength `markPalette` P reads as the figure against this faded
|
|
110
|
+
// "film" of buildings — that contrast is the whole point of the mark.
|
|
107
111
|
const palette = [
|
|
108
|
-
withAlpha(primaryColor, 0.
|
|
109
|
-
withAlpha(primaryColor, 0.
|
|
110
|
-
withAlpha(baseColor, 0.
|
|
111
|
-
withAlpha(baseColor, 0.
|
|
112
|
-
withAlpha(baseColor, 0.
|
|
112
|
+
withAlpha(primaryColor, 0.36),
|
|
113
|
+
withAlpha(primaryColor, 0.55),
|
|
114
|
+
withAlpha(baseColor, 0.18),
|
|
115
|
+
withAlpha(baseColor, 0.3),
|
|
116
|
+
withAlpha(baseColor, 0.45),
|
|
113
117
|
];
|
|
114
118
|
// The mark files vary in shade so the letter doesn't read as one flat
|
|
115
119
|
// block, but every shade stays vivid so it still stands out from the
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@principal-ai/logo-component",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.20",
|
|
4
|
+
"description": "Principal AI brand logo and visualization components — animated wireframe sphere logo, FileCity grid mark, TrailCity diagram, and text-reveal effects",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -20,7 +20,12 @@
|
|
|
20
20
|
"logo",
|
|
21
21
|
"component",
|
|
22
22
|
"svg",
|
|
23
|
-
"animated"
|
|
23
|
+
"animated",
|
|
24
|
+
"file-city",
|
|
25
|
+
"trail-city",
|
|
26
|
+
"diagram",
|
|
27
|
+
"brand",
|
|
28
|
+
"principal-ai"
|
|
24
29
|
],
|
|
25
30
|
"peerDependencies": {
|
|
26
31
|
"react": "^18.0.0 || ^19.0.0"
|