@principal-ai/logo-component 0.1.22 → 0.1.24

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,348 @@
1
+ /**
2
+ * Layout for {@link FileCityBotAvatar} — a Bot's avatar drawn in the same
3
+ * top-down "file city" grid as the brand mark, but on a denser 7×7 grid so
4
+ * the lit files can spell a letter / initials *or* form a face (two eyes and
5
+ * a mouth) that can change expression and look around.
6
+ *
7
+ * Pure and dependency-free (no React, no DOM) so the React Native port can
8
+ * use this file verbatim and only swap the renderer.
9
+ */
10
+ export const BOT_AVATAR_VIEW = 100;
11
+ const SQUIRCLE_RADIUS = BOT_AVATAR_VIEW * 0.2237;
12
+ /** Default per-Bot colours; {@link botAvatarColor} picks one from a seed. */
13
+ export const BOT_AVATAR_COLORS = [
14
+ '#2ec5e8',
15
+ '#E05D2B',
16
+ '#2dd4a7',
17
+ '#f5a623',
18
+ '#a78bfa',
19
+ '#f472b6',
20
+ ];
21
+ function hashString(input) {
22
+ let hash = 0;
23
+ for (let i = 0; i < input.length; i++)
24
+ hash = (hash * 31 + input.charCodeAt(i)) | 0;
25
+ return Math.abs(hash);
26
+ }
27
+ /** Stable colour for a Bot, picked from its id. */
28
+ export function botAvatarColor(seed) {
29
+ return BOT_AVATAR_COLORS[hashString(seed) % BOT_AVATAR_COLORS.length];
30
+ }
31
+ // 3×5 pixel font — same proportions as the brand mark's P.
32
+ // `1` = lit file, `0` = city file. Every square of the grid is always
33
+ // drawn — counters and the backdrop are city files, never gaps.
34
+ const FONT = {
35
+ A: ['111', '101', '111', '101', '101'],
36
+ B: ['110', '101', '110', '101', '110'],
37
+ C: ['111', '100', '100', '100', '111'],
38
+ D: ['110', '101', '101', '101', '110'],
39
+ E: ['111', '100', '110', '100', '111'],
40
+ F: ['111', '100', '110', '100', '100'],
41
+ G: ['111', '100', '101', '101', '111'],
42
+ H: ['101', '101', '111', '101', '101'],
43
+ I: ['111', '010', '010', '010', '111'],
44
+ J: ['001', '001', '001', '101', '111'],
45
+ K: ['101', '101', '110', '101', '101'],
46
+ L: ['100', '100', '100', '100', '111'],
47
+ M: ['101', '111', '111', '101', '101'],
48
+ N: ['111', '101', '101', '101', '101'],
49
+ O: ['111', '101', '101', '101', '111'],
50
+ P: ['111', '101', '111', '100', '100'],
51
+ Q: ['111', '101', '101', '111', '001'],
52
+ R: ['111', '101', '110', '101', '101'],
53
+ S: ['111', '100', '111', '001', '111'],
54
+ T: ['111', '010', '010', '010', '010'],
55
+ U: ['101', '101', '101', '101', '111'],
56
+ V: ['101', '101', '101', '101', '010'],
57
+ W: ['101', '101', '111', '111', '101'],
58
+ X: ['101', '101', '010', '101', '101'],
59
+ Y: ['101', '101', '010', '010', '010'],
60
+ Z: ['111', '001', '010', '100', '111'],
61
+ '0': ['111', '101', '101', '101', '111'],
62
+ '1': ['010', '110', '010', '010', '111'],
63
+ '2': ['111', '001', '111', '100', '111'],
64
+ '3': ['111', '001', '111', '001', '111'],
65
+ '4': ['101', '101', '111', '001', '001'],
66
+ '5': ['111', '100', '111', '001', '111'],
67
+ '6': ['111', '100', '111', '101', '111'],
68
+ '7': ['111', '001', '001', '001', '001'],
69
+ '8': ['111', '101', '111', '101', '111'],
70
+ '9': ['111', '101', '111', '001', '111'],
71
+ '?': ['111', '001', '010', '000', '010'],
72
+ };
73
+ // Faces are authored on a 7×7 grid: eyes are 2 files wide at columns 1–2 and
74
+ // 4–5 (mirrored about the centre column), the mouth lives in rows 4–5.
75
+ const FACE_SIDE = 7;
76
+ const EYE_ROWS = {
77
+ open: [1, 2],
78
+ closed: [2],
79
+ wide: [1, 2, 3],
80
+ };
81
+ // The mouth is five files, one per column 1–5. An expression says where each
82
+ // one sits (or that it's hidden), so changing expression slides the same
83
+ // five files into a new shape instead of swapping one drawing for another.
84
+ const MOUTH_COL0 = 1;
85
+ const _ = null;
86
+ const FACES = {
87
+ neutral: { left: 'open', right: 'open', mouth: [_, [5, 1], [5, 1], [5, 1], _] },
88
+ happy: { left: 'open', right: 'open', mouth: [[4, 1], [5, 1], [5, 1], [5, 1], [4, 1]] },
89
+ wink: { left: 'open', right: 'closed', mouth: [[4, 1], [5, 1], [5, 1], [5, 1], [4, 1]] },
90
+ thinking: {
91
+ left: 'open',
92
+ right: 'open',
93
+ mouth: [[5, 1], _, [5, 1], _, [5, 1]],
94
+ look: 'up-right',
95
+ brows: 'skeptical',
96
+ },
97
+ talking: { left: 'open', right: 'open', mouth: [_, [4, 2], [4, 2], [4, 2], _] },
98
+ surprised: { left: 'wide', right: 'wide', mouth: [_, _, [5, 1], _, _], brows: 'raised' },
99
+ sad: {
100
+ left: 'open',
101
+ right: 'open',
102
+ mouth: [[5, 1], [4, 1], [4, 1], [4, 1], [5, 1]],
103
+ brows: 'worried',
104
+ },
105
+ sleeping: { left: 'closed', right: 'closed', mouth: [_, _, [5, 1], _, _] },
106
+ };
107
+ const LOOKS = {
108
+ center: [0, 0],
109
+ left: [-1, 0],
110
+ right: [1, 0],
111
+ up: [0, -1],
112
+ down: [0, 1],
113
+ 'up-left': [-1, -1],
114
+ 'up-right': [1, -1],
115
+ };
116
+ function faceBitmap(expression, look, blink, hasBrows) {
117
+ var _a;
118
+ const face = FACES[expression];
119
+ const grid = Array.from({ length: FACE_SIDE }, () => new Array(FACE_SIDE).fill('city'));
120
+ const [dx, rawDy] = LOOKS[(_a = look !== null && look !== void 0 ? look : face.look) !== null && _a !== void 0 ? _a : 'center'];
121
+ const eye = (shape, col0, feature) => {
122
+ const rows = EYE_ROWS[shape];
123
+ // Keep the eyes clear of the mouth rows when looking down.
124
+ // Brows need the row above the eye: with brows on, the eyes don't climb
125
+ // into the top row, so nothing ever leaves the grid of squares.
126
+ const dy = Math.max(Math.min(rawDy, 3 - rows[rows.length - 1]), hasBrows ? 0 : -1);
127
+ for (const r of rows) {
128
+ for (const c of [col0, col0 + 1])
129
+ grid[r + dy][c + dx] = feature;
130
+ }
131
+ };
132
+ eye(blink ? 'closed' : face.left, 1, 'eyeL');
133
+ eye(blink ? 'closed' : face.right, 4, 'eyeR');
134
+ return grid;
135
+ }
136
+ function letterBitmap(text) {
137
+ const chars = Array.from(text.toUpperCase())
138
+ .filter((ch) => FONT[ch])
139
+ .slice(0, 2)
140
+ .join('') || '?';
141
+ const grid = Array.from({ length: 5 }, () => []);
142
+ Array.from(chars).forEach((ch, i) => {
143
+ for (let r = 0; r < 5; r++) {
144
+ if (i > 0)
145
+ grid[r].push('city');
146
+ for (const bit of FONT[ch][r]) {
147
+ grid[r].push(bit === '1' ? 'letter' : 'city');
148
+ }
149
+ }
150
+ });
151
+ return { grid, chars };
152
+ }
153
+ function toRgb(color) {
154
+ if (!/^#([0-9a-f]{3}){1,2}$/i.test(color))
155
+ return null;
156
+ let hex = color.slice(1);
157
+ if (hex.length === 3)
158
+ hex = hex.split('').map((c) => c + c).join('');
159
+ return [
160
+ parseInt(hex.slice(0, 2), 16),
161
+ parseInt(hex.slice(2, 4), 16),
162
+ parseInt(hex.slice(4, 6), 16),
163
+ ];
164
+ }
165
+ function withAlpha(color, alpha) {
166
+ const rgb = toRgb(color);
167
+ if (!rgb)
168
+ return color;
169
+ const a = Math.round(Math.max(0, Math.min(1, alpha)) * 255)
170
+ .toString(16)
171
+ .padStart(2, '0');
172
+ return `#${rgb.map((v) => v.toString(16).padStart(2, '0')).join('')}${a}`;
173
+ }
174
+ /** Blend two hex colours. `t` = 0 returns `a`, `t` = 1 returns `b`. */
175
+ function mix(a, b, t) {
176
+ const ca = toRgb(a);
177
+ const cb = toRgb(b);
178
+ if (!ca || !cb)
179
+ return a;
180
+ const k = Math.max(0, Math.min(1, t));
181
+ return `#${[0, 1, 2]
182
+ .map((i) => Math.round(ca[i] + (cb[i] - ca[i]) * k).toString(16).padStart(2, '0'))
183
+ .join('')}`;
184
+ }
185
+ export function computeBotAvatarLayout({ variant = 'face', text = '', expression = 'neutral', look, brows, browLength = 1, browRound = 0.7, browThickness = 0.42, browLift = 0, browGradient = 0, browTaper = 0, browSlope = 0, blink = false, seed = '', primary, color = '#f8fafc', background = '#0a0f14', cells, squareRadius = 0.15, shape = 'squircle', cityStrength = 0.3, tileOutline = false, eyeTint = 0.4, }) {
186
+ var _a;
187
+ const primaryColor = primary !== null && primary !== void 0 ? primary : botAvatarColor(seed);
188
+ const baseColor = color;
189
+ const bgColor = background;
190
+ const browStyle = variant === 'face' ? ((_a = brows !== null && brows !== void 0 ? brows : FACES[expression].brows) !== null && _a !== void 0 ? _a : 'none') : 'none';
191
+ let bitmap;
192
+ let label;
193
+ if (variant === 'letter') {
194
+ const letters = letterBitmap(text);
195
+ bitmap = letters.grid;
196
+ label = `Bot avatar: file city spelling ${letters.chars}`;
197
+ }
198
+ else {
199
+ bitmap = faceBitmap(expression, look, blink, browStyle !== 'none');
200
+ label = `Bot avatar: file city face, ${expression}`;
201
+ }
202
+ const bw = bitmap[0].length;
203
+ const bh = bitmap.length;
204
+ const side = Math.max(cells !== null && cells !== void 0 ? cells : FACE_SIDE, bw, bh);
205
+ const offX = Math.floor((side - bw) / 2);
206
+ const offY = Math.floor((side - bh) / 2);
207
+ const featureAt = (c, r) => { var _a, _b; return (_b = (_a = bitmap[r - offY]) === null || _a === void 0 ? void 0 : _a[c - offX]) !== null && _b !== void 0 ? _b : 'city'; };
208
+ // Every backdrop file is the same faint neutral, so the grid reads as one
209
+ // even field and only the letter / face carries colour. `cityStrength`
210
+ // scales how present it is (1 ≈ FileCityLogo's city).
211
+ const cityFill = withAlpha(baseColor, 0.2 * cityStrength);
212
+ // Lit files run a dark→light diagonal gradient, like the brand mark.
213
+ const shade = (c, r) => mix(mix(primaryColor, '#000000', 0.12), mix(primaryColor, '#ffffff', 0.4), side > 1 ? (c + r) / (2 * (side - 1)) : 0);
214
+ // Eyes sit between the neutral base (near-white on dark, near-black on
215
+ // light) and the Bot's colour: tinted enough not to glare, still the
216
+ // brightest thing on the panel.
217
+ const eyeFill = mix(baseColor, primaryColor, eyeTint);
218
+ // A circle clips the grid's corners, so pull the grid in a little.
219
+ const pad = shape === 'circle' ? 15 : 12;
220
+ const cell = (BOT_AVATAR_VIEW - pad * 2) / side;
221
+ const sq = cell * 0.78;
222
+ const inset = (cell - sq) / 2;
223
+ const rx = squareRadius > 0 ? sq * squareRadius : 0;
224
+ const out = [];
225
+ const emptyBox = () => ({ c0: Infinity, c1: -Infinity, r0: Infinity, r1: -Infinity });
226
+ const eyeBoxes = { eyeL: emptyBox(), eyeR: emptyBox() };
227
+ for (let r = 0; r < side; r++) {
228
+ for (let c = 0; c < side; c++) {
229
+ const feature = featureAt(c, r);
230
+ const base = {
231
+ key: `${c}-${r}`,
232
+ c,
233
+ r,
234
+ x: pad + c * cell + inset,
235
+ y: pad + r * cell + inset,
236
+ sq,
237
+ rx,
238
+ };
239
+ if (feature === 'eyeL' || feature === 'eyeR') {
240
+ const box = eyeBoxes[feature];
241
+ box.c0 = Math.min(box.c0, c);
242
+ box.c1 = Math.max(box.c1, c);
243
+ box.r0 = Math.min(box.r0, r);
244
+ box.r1 = Math.max(box.r1, r);
245
+ }
246
+ if (feature === 'letter') {
247
+ out.push(Object.assign(Object.assign({}, base), { fill: shade(c, r), stroke: withAlpha(primaryColor, 0.55), strokeWidth: tileOutline ? 0.6 : 0, role: 'letter' }));
248
+ }
249
+ else {
250
+ out.push(Object.assign(Object.assign({}, base), { fill: cityFill, stroke: withAlpha(baseColor, 0.08 * cityStrength), strokeWidth: tileOutline ? 0.4 : 0, role: 'city' }));
251
+ }
252
+ }
253
+ }
254
+ // Each eye is one block spanning the outer edges of the files it covers.
255
+ const eyes = ['eyeL', 'eyeR']
256
+ .filter((key) => eyeBoxes[key].c1 >= eyeBoxes[key].c0)
257
+ .map((key) => {
258
+ const { c0, c1, r0, r1 } = eyeBoxes[key];
259
+ return {
260
+ side: key === 'eyeL' ? 'left' : 'right',
261
+ x: pad + c0 * cell + inset,
262
+ y: pad + r0 * cell + inset,
263
+ width: (c1 - c0) * cell + sq,
264
+ height: (r1 - r0) * cell + sq,
265
+ rx: rx * 1.6,
266
+ fill: eyeFill,
267
+ closed: r1 === r0,
268
+ };
269
+ });
270
+ // Brows ride just above their eye, so they follow it when it looks around.
271
+ // Lifts and tilts are sized to stay inside the row of squares above the eye.
272
+ // [lift in cells, tilt in degrees] for the left and right brow; a positive
273
+ // tilt drops the right-hand end.
274
+ const BROWS = {
275
+ none: { left: [0, 0], right: [0, 0] },
276
+ flat: { left: [0, 0], right: [0, 0] },
277
+ raised: { left: [0.4, 0], right: [0.4, 0] },
278
+ skeptical: { left: [0.3, -6], right: [0, 0] },
279
+ angry: { left: [-0.05, 18], right: [-0.05, -18] },
280
+ worried: { left: [0.1, -16], right: [0.1, 16] },
281
+ };
282
+ // A step deeper into the Bot's colour than the eyes, so the brows read as
283
+ // their own feature instead of as part of the eye.
284
+ const browFill = mix(eyeFill, primaryColor, 0.6);
285
+ const browShift = Math.min(1, Math.abs(browGradient));
286
+ const browDeep = mix(browFill, mix(primaryColor, '#000000', 0.1), browShift);
287
+ const browPale = mix(browFill, mix(eyeFill, '#ffffff', 0.25), browShift);
288
+ const browHeight = sq * Math.max(0.15, Math.min(1, browThickness));
289
+ const taper = Math.max(-1, Math.min(1, browTaper));
290
+ const browOut = eyes.map((eye) => {
291
+ const [lift, tilt] = BROWS[browStyle][eye.side];
292
+ // `browSlope` leans both brows the same way relative to the nose, so it
293
+ // mirrors: positive drops the inner ends.
294
+ const rotate = tilt + (eye.side === 'left' ? browSlope : -browSlope);
295
+ const width = eye.width * browLength;
296
+ // Half the height the bar takes up once tilted, so the clamp below keeps
297
+ // its raised end inside the row of squares above the eye too.
298
+ const rad = (Math.abs(rotate) * Math.PI) / 180;
299
+ const half = (width / 2) * Math.sin(rad) + (browHeight / 2) * Math.cos(rad);
300
+ return {
301
+ side: eye.side,
302
+ cx: eye.x + eye.width / 2,
303
+ cy: Math.max(eye.y - cell + half, Math.min(eye.y - cell * 0.06 - browHeight / 2, eye.y - cell * 0.16 - browHeight / 2 - (lift + browLift) * cell)),
304
+ width,
305
+ height: browHeight,
306
+ heightInner: browHeight * (1 - 0.8 * Math.max(0, -taper)),
307
+ heightOuter: browHeight * (1 - 0.8 * Math.max(0, taper)),
308
+ rx: (browHeight / 2) * Math.max(0, Math.min(1, browRound)),
309
+ rotate,
310
+ fill: browFill,
311
+ fillInner: browGradient >= 0 ? browDeep : browPale,
312
+ fillOuter: browGradient >= 0 ? browPale : browDeep,
313
+ visible: browStyle !== 'none',
314
+ };
315
+ });
316
+ const mouth = variant === 'face'
317
+ ? FACES[expression].mouth.map((spec, index) => {
318
+ const c = offX + MOUTH_COL0 + index;
319
+ // Hidden files wait on the mouth's bottom row.
320
+ const [row, span] = spec !== null && spec !== void 0 ? spec : [5, 1];
321
+ return {
322
+ index,
323
+ x: pad + c * cell + inset,
324
+ y: pad + (offY + row) * cell + inset,
325
+ width: sq,
326
+ height: (span - 1) * cell + sq,
327
+ rx,
328
+ // Shaded by column only, so a file keeps its colour as it moves.
329
+ fill: shade(c, offY + 5),
330
+ visible: spec !== null,
331
+ };
332
+ })
333
+ : [];
334
+ return {
335
+ cells: out,
336
+ eyes,
337
+ brows: browOut,
338
+ mouth,
339
+ view: BOT_AVATAR_VIEW,
340
+ radius: shape === 'circle' ? BOT_AVATAR_VIEW / 2 : SQUIRCLE_RADIUS,
341
+ bgColor,
342
+ baseColor,
343
+ primaryColor,
344
+ variant,
345
+ expression,
346
+ label,
347
+ };
348
+ }
package/dist/esm/index.js CHANGED
@@ -5,7 +5,12 @@ export { TelemetryReveal } from './TelemetryReveal';
5
5
  export { TextReveal } from './TextReveal';
6
6
  export { OpenTypeTextReveal } from './OpenTypeTextReveal';
7
7
  export { TrailCityDiagram } from './TrailCityDiagram';
8
+ export { TrailCityProgress } from './TrailCityProgress';
9
+ export { TrailCityBanner } from './TrailCityBanner';
10
+ export { TrailMarketingBanner } from './TrailMarketingBanner';
8
11
  export { FileCityLogo, FileCityPanel, computeFileCityLayout, fileCityLabel } from './FileCityLogo';
12
+ export { FileCityBotAvatar } from './FileCityBotAvatar';
13
+ export { computeBotAvatarLayout, botAvatarColor, BOT_AVATAR_COLORS } from './botAvatarLayout';
9
14
  export { FileCityLogoAnimated } from './FileCityLogoAnimated';
10
15
  export { TELEMETRY_PRESETS } from './presets';
11
16
  export { STROKE_CHARACTERS, layoutText } from './strokeCharacters';
package/dist/index.d.ts CHANGED
@@ -6,8 +6,18 @@ export { TextReveal } from './TextReveal';
6
6
  export { OpenTypeTextReveal } from './OpenTypeTextReveal';
7
7
  export { TrailCityDiagram } from './TrailCityDiagram';
8
8
  export type { TrailCityDiagramProps } from './TrailCityDiagram';
9
+ export { TrailCityProgress } from './TrailCityProgress';
10
+ export type { TrailCityProgressProps } from './TrailCityProgress';
11
+ export { TrailCityBanner } from './TrailCityBanner';
12
+ export type { TrailCityBannerProps, BannerVariant } from './TrailCityBanner';
13
+ export { TrailMarketingBanner } from './TrailMarketingBanner';
14
+ export type { TrailMarketingBannerProps, MarketingBannerVariant } from './TrailMarketingBanner';
9
15
  export { FileCityLogo, FileCityPanel, computeFileCityLayout, fileCityLabel } from './FileCityLogo';
10
16
  export type { FileCityLogoProps, FileCityMark, FileCityGradient, FileCityCell, FileCityLayout, GlossSide, GlossConfig, GlossOption, } from './FileCityLogo';
17
+ export { FileCityBotAvatar } from './FileCityBotAvatar';
18
+ export type { FileCityBotAvatarProps } from './FileCityBotAvatar';
19
+ export { computeBotAvatarLayout, botAvatarColor, BOT_AVATAR_COLORS } from './botAvatarLayout';
20
+ export type { BotAvatarVariant, BotExpression, BotLook, BotAvatarShape, BotAvatarLayoutOptions, BotAvatarCell, BotAvatarEye, BotAvatarBrow, BotBrows, BotAvatarMouthFile, BotAvatarLayout, } from './botAvatarLayout';
11
21
  export { FileCityLogoAnimated } from './FileCityLogoAnimated';
12
22
  export type { FileCityLogoAnimatedProps } from './FileCityLogoAnimated';
13
23
  export { TELEMETRY_PRESETS } from './presets';
package/dist/index.esm.js CHANGED
@@ -5,7 +5,12 @@ export { TelemetryReveal } from './TelemetryReveal';
5
5
  export { TextReveal } from './TextReveal';
6
6
  export { OpenTypeTextReveal } from './OpenTypeTextReveal';
7
7
  export { TrailCityDiagram } from './TrailCityDiagram';
8
+ export { TrailCityProgress } from './TrailCityProgress';
9
+ export { TrailCityBanner } from './TrailCityBanner';
10
+ export { TrailMarketingBanner } from './TrailMarketingBanner';
8
11
  export { FileCityLogo, FileCityPanel, computeFileCityLayout, fileCityLabel } from './FileCityLogo';
12
+ export { FileCityBotAvatar } from './FileCityBotAvatar';
13
+ export { computeBotAvatarLayout, botAvatarColor, BOT_AVATAR_COLORS } from './botAvatarLayout';
9
14
  export { FileCityLogoAnimated } from './FileCityLogoAnimated';
10
15
  export { TELEMETRY_PRESETS } from './presets';
11
16
  export { STROKE_CHARACTERS, layoutText } from './strokeCharacters';
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
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;
3
+ exports.layoutText = exports.STROKE_CHARACTERS = exports.TELEMETRY_PRESETS = exports.FileCityLogoAnimated = exports.BOT_AVATAR_COLORS = exports.botAvatarColor = exports.computeBotAvatarLayout = exports.FileCityBotAvatar = exports.fileCityLabel = exports.computeFileCityLayout = exports.FileCityPanel = exports.FileCityLogo = exports.TrailMarketingBanner = exports.TrailCityBanner = exports.TrailCityProgress = 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");
@@ -15,11 +15,23 @@ var OpenTypeTextReveal_1 = require("./OpenTypeTextReveal");
15
15
  Object.defineProperty(exports, "OpenTypeTextReveal", { enumerable: true, get: function () { return OpenTypeTextReveal_1.OpenTypeTextReveal; } });
16
16
  var TrailCityDiagram_1 = require("./TrailCityDiagram");
17
17
  Object.defineProperty(exports, "TrailCityDiagram", { enumerable: true, get: function () { return TrailCityDiagram_1.TrailCityDiagram; } });
18
+ var TrailCityProgress_1 = require("./TrailCityProgress");
19
+ Object.defineProperty(exports, "TrailCityProgress", { enumerable: true, get: function () { return TrailCityProgress_1.TrailCityProgress; } });
20
+ var TrailCityBanner_1 = require("./TrailCityBanner");
21
+ Object.defineProperty(exports, "TrailCityBanner", { enumerable: true, get: function () { return TrailCityBanner_1.TrailCityBanner; } });
22
+ var TrailMarketingBanner_1 = require("./TrailMarketingBanner");
23
+ Object.defineProperty(exports, "TrailMarketingBanner", { enumerable: true, get: function () { return TrailMarketingBanner_1.TrailMarketingBanner; } });
18
24
  var FileCityLogo_1 = require("./FileCityLogo");
19
25
  Object.defineProperty(exports, "FileCityLogo", { enumerable: true, get: function () { return FileCityLogo_1.FileCityLogo; } });
20
26
  Object.defineProperty(exports, "FileCityPanel", { enumerable: true, get: function () { return FileCityLogo_1.FileCityPanel; } });
21
27
  Object.defineProperty(exports, "computeFileCityLayout", { enumerable: true, get: function () { return FileCityLogo_1.computeFileCityLayout; } });
22
28
  Object.defineProperty(exports, "fileCityLabel", { enumerable: true, get: function () { return FileCityLogo_1.fileCityLabel; } });
29
+ var FileCityBotAvatar_1 = require("./FileCityBotAvatar");
30
+ Object.defineProperty(exports, "FileCityBotAvatar", { enumerable: true, get: function () { return FileCityBotAvatar_1.FileCityBotAvatar; } });
31
+ var botAvatarLayout_1 = require("./botAvatarLayout");
32
+ Object.defineProperty(exports, "computeBotAvatarLayout", { enumerable: true, get: function () { return botAvatarLayout_1.computeBotAvatarLayout; } });
33
+ Object.defineProperty(exports, "botAvatarColor", { enumerable: true, get: function () { return botAvatarLayout_1.botAvatarColor; } });
34
+ Object.defineProperty(exports, "BOT_AVATAR_COLORS", { enumerable: true, get: function () { return botAvatarLayout_1.BOT_AVATAR_COLORS; } });
23
35
  var FileCityLogoAnimated_1 = require("./FileCityLogoAnimated");
24
36
  Object.defineProperty(exports, "FileCityLogoAnimated", { enumerable: true, get: function () { return FileCityLogoAnimated_1.FileCityLogoAnimated; } });
25
37
  var presets_1 = require("./presets");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@principal-ai/logo-component",
3
- "version": "0.1.22",
3
+ "version": "0.1.24",
4
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",
@@ -13,7 +13,8 @@
13
13
  "prepublishOnly": "npm run build",
14
14
  "storybook": "storybook dev -p 6006",
15
15
  "build-storybook": "storybook build",
16
- "export-icon": "node scripts/export-icon.js"
16
+ "export-icon": "node scripts/export-icon.js",
17
+ "export-banner": "node scripts/export-banner.js"
17
18
  },
18
19
  "keywords": [
19
20
  "react",
@@ -31,7 +32,7 @@
31
32
  "react": "^18.0.0 || ^19.0.0"
32
33
  },
33
34
  "devDependencies": {
34
- "@principal-ade/industry-theme": "^0.1.22",
35
+ "@principal-ade/industry-theme": "^0.1.24",
35
36
  "@storybook/addon-essentials": "^8.6.14",
36
37
  "@storybook/blocks": "^8.6.14",
37
38
  "@storybook/react": "^8.6.14",