@datalayer/design 1.0.2 → 1.0.8
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/LICENSE +396 -18
- package/README.md +1 -1
- package/lib/App.d.ts +1 -1
- package/lib/avatar/SvgAvatarOrb.d.ts +33 -0
- package/lib/avatar/SvgAvatarOrb.js +43 -0
- package/lib/avatar/gallery.d.ts +3 -0
- package/lib/avatar/gallery.js +7 -0
- package/lib/avatar/index.d.ts +4 -0
- package/lib/avatar/index.js +7 -0
- package/lib/footer/MinimalFooter.d.ts +3 -3
- package/lib/footer/MinimalFooter.js +3 -1
- package/lib/footer/component-helpers.d.ts +2 -2
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/layout/SiteLayout.d.ts +1 -1
- package/lib/pages/HomePage.d.ts +1 -1
- package/lib/pages/HomePage.js +4 -4
- package/lib/pages/IconsPage.d.ts +1 -1
- package/lib/pages/SvgPage.d.ts +1 -1
- package/lib/pages/SvgPage.js +79 -6
- package/lib/svg/SvgAI.js +1 -1
- package/lib/svg/SvgAI2.d.ts +14 -4
- package/lib/svg/SvgAI2.js +14 -7
- package/lib/svg/SvgAI3.js +1 -1
- package/lib/svg/SvgAboutHero.d.ts +1 -1
- package/lib/svg/SvgAboutHero.js +1 -1
- package/lib/svg/SvgAgentRuntimes.d.ts +1 -1
- package/lib/svg/SvgAgentRuntimes.js +1 -1
- package/lib/svg/SvgAgentsHero.d.ts +1 -1
- package/lib/svg/SvgAgentsHero.js +1 -1
- package/lib/svg/SvgAgentsHomeHero.d.ts +9 -2
- package/lib/svg/SvgAgentsHomeHero.js +9 -3
- package/lib/svg/SvgAssignmentArtifact.d.ts +1 -1
- package/lib/svg/SvgAssignmentArtifact.js +1 -1
- package/lib/svg/SvgBlackSnake.d.ts +1 -1
- package/lib/svg/SvgBlackSnake.js +1 -1
- package/lib/svg/SvgBlogHero.d.ts +1 -1
- package/lib/svg/SvgBlogHero.js +1 -1
- package/lib/svg/SvgCareersHero.d.ts +1 -1
- package/lib/svg/SvgCareersHero.js +1 -1
- package/lib/svg/SvgCellArtifact.d.ts +1 -1
- package/lib/svg/SvgCellArtifact.js +1 -1
- package/lib/svg/SvgCellOutputshotPlaceholder.d.ts +1 -0
- package/lib/svg/SvgCellOutputshotPlaceholder.js +0 -5
- package/lib/svg/SvgChangelogHero.d.ts +1 -1
- package/lib/svg/SvgChangelogHero.js +1 -1
- package/lib/svg/SvgCommunityHero.d.ts +1 -1
- package/lib/svg/SvgCommunityHero.js +1 -1
- package/lib/svg/SvgContactHero.d.ts +1 -1
- package/lib/svg/SvgContactHero.js +1 -1
- package/lib/svg/SvgDI.d.ts +24 -0
- package/lib/svg/SvgDI.js +25 -0
- package/lib/svg/SvgDataset.d.ts +1 -1
- package/lib/svg/SvgDataset.js +1 -1
- package/lib/svg/SvgDaytonaStartupGrid.d.ts +19 -0
- package/lib/svg/SvgDaytonaStartupGrid.js +41 -0
- package/lib/svg/SvgDeckArtifact.d.ts +13 -0
- package/lib/svg/SvgDeckArtifact.js +21 -0
- package/lib/svg/SvgDiscord.d.ts +1 -1
- package/lib/svg/SvgDiscord.js +1 -1
- package/lib/svg/SvgDla.d.ts +24 -0
- package/lib/svg/SvgDla.js +26 -0
- package/lib/svg/SvgDocumentArtifact.d.ts +1 -1
- package/lib/svg/SvgDocumentArtifact.js +1 -1
- package/lib/svg/SvgEarthHero.d.ts +1 -1
- package/lib/svg/SvgEarthHero.js +1 -1
- package/lib/svg/SvgEvalsHero.d.ts +1 -1
- package/lib/svg/SvgEvalsHero.js +1 -1
- package/lib/svg/SvgEventsHero.d.ts +1 -1
- package/lib/svg/SvgEventsHero.js +1 -1
- package/lib/svg/SvgExerciseArtifact.d.ts +1 -1
- package/lib/svg/SvgExerciseArtifact.js +1 -1
- package/lib/svg/SvgFastA2ADonation.d.ts +1 -1
- package/lib/svg/SvgFastA2ADonation.js +1 -1
- package/lib/svg/SvgIndividualsAndTeams.d.ts +1 -1
- package/lib/svg/SvgIndividualsAndTeams.js +1 -1
- package/lib/svg/SvgIntegrationsHero.d.ts +1 -1
- package/lib/svg/SvgIntegrationsHero.js +1 -1
- package/lib/svg/SvgInvites.d.ts +1 -1
- package/lib/svg/SvgInvites.js +1 -1
- package/lib/svg/SvgJoin.d.ts +1 -1
- package/lib/svg/SvgJoin.js +1 -1
- package/lib/svg/SvgJoinConfirm.d.ts +1 -1
- package/lib/svg/SvgJoinConfirm.js +1 -1
- package/lib/svg/SvgJupyterEmbed.d.ts +1 -1
- package/lib/svg/SvgJupyterEmbed.js +1 -1
- package/lib/svg/SvgJupyterMcp.d.ts +1 -1
- package/lib/svg/SvgJupyterMcp.js +2 -2
- package/lib/svg/SvgJupyterMcp2.d.ts +25 -0
- package/lib/svg/SvgJupyterMcp2.js +74 -0
- package/lib/svg/SvgLessonArtifact.d.ts +1 -1
- package/lib/svg/SvgLessonArtifact.js +1 -1
- package/lib/svg/SvgLibraryHero.d.ts +5 -0
- package/lib/svg/SvgLibraryHero.js +165 -0
- package/lib/svg/SvgLightHouse.d.ts +5 -0
- package/lib/svg/SvgLightHouse.js +84 -0
- package/lib/svg/SvgLines.d.ts +1 -1
- package/lib/svg/SvgLines.js +1 -1
- package/lib/svg/SvgLinesLogo.d.ts +13 -1
- package/lib/svg/SvgLinesLogo.js +11 -6
- package/lib/svg/SvgLoginHero.d.ts +1 -1
- package/lib/svg/SvgLoginHero.js +1 -1
- package/lib/svg/SvgNotFound.d.ts +1 -1
- package/lib/svg/SvgNotFound.js +1 -1
- package/lib/svg/SvgNotebookArtifact.d.ts +1 -1
- package/lib/svg/SvgNotebookArtifact.js +1 -1
- package/lib/svg/SvgNotebookMock.d.ts +1 -0
- package/lib/svg/SvgNotebookMock.js +0 -5
- package/lib/svg/SvgOSAContributions.d.ts +1 -1
- package/lib/svg/SvgOSAContributions.js +1 -1
- package/lib/svg/SvgOg.d.ts +34 -0
- package/lib/svg/SvgOg.js +56 -0
- package/lib/svg/SvgOrganizationsAtScale.d.ts +1 -1
- package/lib/svg/SvgOrganizationsAtScale.js +1 -1
- package/lib/svg/SvgPartnersHero.d.ts +1 -1
- package/lib/svg/SvgPartnersHero.js +1 -1
- package/lib/svg/SvgPixel1.d.ts +1 -1
- package/lib/svg/SvgPixel1.js +1 -1
- package/lib/svg/SvgPixel2.d.ts +1 -1
- package/lib/svg/SvgPixel2.js +1 -1
- package/lib/svg/SvgPricingHero.d.ts +1 -1
- package/lib/svg/SvgPricingHero.js +1 -1
- package/lib/svg/SvgPrivacyHero.d.ts +1 -1
- package/lib/svg/SvgPrivacyHero.js +1 -1
- package/lib/svg/SvgPublication.d.ts +1 -1
- package/lib/svg/SvgPublication.js +1 -1
- package/lib/svg/SvgRadar.d.ts +1 -1
- package/lib/svg/SvgRadar.js +1 -1
- package/lib/svg/SvgResearchHero.d.ts +1 -1
- package/lib/svg/SvgResearchHero.js +1 -1
- package/lib/svg/SvgSkubble.d.ts +1 -1
- package/lib/svg/SvgSkubble.js +1 -1
- package/lib/svg/SvgSpitfire.d.ts +1 -1
- package/lib/svg/SvgSpitfire.js +1 -1
- package/lib/svg/SvgStarsHero.d.ts +1 -1
- package/lib/svg/SvgStarsHero.js +1 -1
- package/lib/svg/SvgTermsHero.d.ts +1 -1
- package/lib/svg/SvgTermsHero.js +1 -1
- package/lib/svg/SvgTutorialsHero.d.ts +1 -1
- package/lib/svg/SvgTutorialsHero.js +1 -1
- package/lib/svg/SvgUnauthorized.d.ts +1 -1
- package/lib/svg/SvgUnauthorized.js +1 -1
- package/lib/svg/SvgUsecasesHero.d.ts +1 -1
- package/lib/svg/SvgUsecasesHero.js +1 -1
- package/lib/svg/SvgVSCodeExtension.d.ts +1 -1
- package/lib/svg/SvgVSCodeExtension.js +14 -2
- package/lib/svg/gallery.d.ts +1 -1
- package/lib/svg/gallery.js +8 -1
- package/lib/svg/index.d.ts +9 -1
- package/lib/svg/index.js +8 -1
- package/package.json +15 -11
package/lib/pages/IconsPage.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function IconsPage(): import("react
|
|
1
|
+
export declare function IconsPage(): import("react").JSX.Element;
|
|
2
2
|
export default IconsPage;
|
package/lib/pages/SvgPage.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function SvgPage(): import("react
|
|
1
|
+
export declare function SvgPage(): import("react").JSX.Element;
|
|
2
2
|
export default SvgPage;
|
package/lib/pages/SvgPage.js
CHANGED
|
@@ -5,12 +5,15 @@ import { ActionList, ActionMenu, Box, Button, Heading, Text, TextInput } from '@
|
|
|
5
5
|
import { ArrowLeftIcon } from '@primer/octicons-react';
|
|
6
6
|
import GIF from 'gif.js';
|
|
7
7
|
import gifWorkerUrl from 'gif.js/dist/gif.worker.js?url';
|
|
8
|
-
import {
|
|
8
|
+
import { DatalayerLogo, DatalayerLogoText, DatalayerTextAI, getLogoColors, useColorPalette, useThemeStore, } from '@datalayer/primer-addons';
|
|
9
9
|
import { DATALAYER_SVG_GALLERY } from '../svg/gallery';
|
|
10
|
+
import { SvgAvatarOrb } from '../avatar';
|
|
11
|
+
import DI from '../svg/SvgDI';
|
|
12
|
+
import { SvgDla as DlaMark } from '../svg/SvgDla';
|
|
10
13
|
import * as SvgAssets from '../svg';
|
|
11
14
|
import SpitfireAssetUrl from '../svg/images/datalayer-1.3.0-spitfire.svg';
|
|
12
15
|
import BlackSnakeAssetUrl from '../svg/images/datalayer-1.2.0-black-snake.svg';
|
|
13
|
-
const SEGMENTS = ['All', 'Artifacts', 'Cases', 'Communication', 'Features', 'Heros', 'Logos', 'Pictos', 'Pixels', 'Releases', 'Systems'];
|
|
16
|
+
const SEGMENTS = ['All', 'Artifacts', 'Avatar', 'Cases', 'Communication', 'Features', 'Heros', 'Logos', 'Partners', 'Pictos', 'Pixels', 'Releases', 'Systems'];
|
|
14
17
|
const SEGMENT_BY_SLUG = SEGMENTS.reduce((acc, segment) => {
|
|
15
18
|
acc[segment.toLowerCase()] = segment;
|
|
16
19
|
return acc;
|
|
@@ -18,6 +21,7 @@ const SEGMENT_BY_SLUG = SEGMENTS.reduce((acc, segment) => {
|
|
|
18
21
|
SEGMENT_BY_SLUG.logo = 'Logos';
|
|
19
22
|
SEGMENT_BY_SLUG.hero = 'Heros';
|
|
20
23
|
SEGMENT_BY_SLUG.system = 'Systems';
|
|
24
|
+
SEGMENT_BY_SLUG.partner = 'Partners';
|
|
21
25
|
const slugForSegment = (segment) => segment.toLowerCase();
|
|
22
26
|
const BaseSvgLinesLogo = SvgAssets.SvgLinesLogo;
|
|
23
27
|
function SvgSpitfireInline() {
|
|
@@ -224,6 +228,23 @@ function SvgDI(props) {
|
|
|
224
228
|
overflow: 'hidden',
|
|
225
229
|
}, style: hostStyle, children: _jsx(DI, { size: 96, variant: theme, colorMode: effectiveColorMode }) }));
|
|
226
230
|
}
|
|
231
|
+
function SvgDla(props) {
|
|
232
|
+
const { colorMode, theme } = useThemeStore();
|
|
233
|
+
const effectiveColorMode = colorMode === 'auto'
|
|
234
|
+
? (typeof window !== 'undefined' && window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light')
|
|
235
|
+
: colorMode;
|
|
236
|
+
const hostStyle = props?.style;
|
|
237
|
+
return (_jsx(Box, { "aria-label": "Datalayer mark", sx: {
|
|
238
|
+
width: '100%',
|
|
239
|
+
height: '100%',
|
|
240
|
+
minHeight: 120,
|
|
241
|
+
px: 2,
|
|
242
|
+
display: 'flex',
|
|
243
|
+
alignItems: 'center',
|
|
244
|
+
justifyContent: 'center',
|
|
245
|
+
overflow: 'hidden',
|
|
246
|
+
}, style: hostStyle, children: _jsx(DlaMark, { size: 96, variant: theme, colorMode: effectiveColorMode }) }));
|
|
247
|
+
}
|
|
227
248
|
function SvgDatalayerTextAI(props) {
|
|
228
249
|
const { colorMode, theme } = useThemeStore();
|
|
229
250
|
const effectiveColorMode = colorMode === 'auto'
|
|
@@ -267,6 +288,19 @@ function SvgAI2Preview(props) {
|
|
|
267
288
|
function SvgAI3Preview(props) {
|
|
268
289
|
return _jsx(SvgAIMarkPreview, { ariaLabel: "AI3 mark", Component: SvgAssets.SvgAI3, props: props });
|
|
269
290
|
}
|
|
291
|
+
/* The avatar in the gallery: one card for each way it is drawn. */
|
|
292
|
+
function AvatarOrbCard({ state, tone, title }) {
|
|
293
|
+
return (_jsx(Box, { sx: { width: '100%', minHeight: 160, display: 'flex', alignItems: 'center', justifyContent: 'center' }, children: _jsx(SvgAvatarOrb, { size: 120, state: state, tone: tone, title: title }) }));
|
|
294
|
+
}
|
|
295
|
+
function SvgAvatarOrbPreview() {
|
|
296
|
+
return _jsx(AvatarOrbCard, { state: "idle", tone: "iridescent", title: "Avatar, idle" });
|
|
297
|
+
}
|
|
298
|
+
function SvgAvatarOrbThinkingPreview() {
|
|
299
|
+
return _jsx(AvatarOrbCard, { state: "thinking", tone: "iridescent", title: "Avatar, thinking" });
|
|
300
|
+
}
|
|
301
|
+
function SvgAvatarOrbThemePreview() {
|
|
302
|
+
return _jsx(AvatarOrbCard, { state: "idle", tone: "theme", title: "Avatar, in the theme's colours" });
|
|
303
|
+
}
|
|
270
304
|
const SVG_COMPONENT_OVERRIDES = {
|
|
271
305
|
SvgSpitfire: SvgSpitfireInline,
|
|
272
306
|
SvgBlackSnake: SvgBlackSnakeInline,
|
|
@@ -274,6 +308,7 @@ const SVG_COMPONENT_OVERRIDES = {
|
|
|
274
308
|
SvgAI2: SvgAI2Preview,
|
|
275
309
|
SvgAI3: SvgAI3Preview,
|
|
276
310
|
SvgDI,
|
|
311
|
+
SvgDla,
|
|
277
312
|
SvgLinesLogo,
|
|
278
313
|
SvgDatalayerLogo,
|
|
279
314
|
SvgDatalayerTextLogo,
|
|
@@ -332,6 +367,18 @@ const DATALAYER_SVGS = [
|
|
|
332
367
|
name: 'SvgLinesColored',
|
|
333
368
|
Component: SvgLinesColored,
|
|
334
369
|
},
|
|
370
|
+
{
|
|
371
|
+
name: 'SvgAvatarOrb',
|
|
372
|
+
Component: SvgAvatarOrbPreview,
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
name: 'SvgAvatarOrbThinking',
|
|
376
|
+
Component: SvgAvatarOrbThinkingPreview,
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
name: 'SvgAvatarOrbTheme',
|
|
380
|
+
Component: SvgAvatarOrbThemePreview,
|
|
381
|
+
},
|
|
335
382
|
];
|
|
336
383
|
const RELEASE_SVG_NAMES = new Set(['SvgSpitfire', 'SvgBlackSnake']);
|
|
337
384
|
const SYSTEM_SVG_NAMES = new Set(['SvgNotFound', 'SvgUnauthorized']);
|
|
@@ -340,6 +387,7 @@ const LOGO_SVG_NAMES = new Set([
|
|
|
340
387
|
'SvgAI2',
|
|
341
388
|
'SvgAI3',
|
|
342
389
|
'SvgDI',
|
|
390
|
+
'SvgDla',
|
|
343
391
|
'SvgDatalayerLogo',
|
|
344
392
|
'SvgDatalayerTextLogo',
|
|
345
393
|
'SvgDatalayerTextLogoFirst',
|
|
@@ -348,11 +396,12 @@ const LOGO_SVG_NAMES = new Set([
|
|
|
348
396
|
'SvgLinesColored',
|
|
349
397
|
'SvgLinesLogo',
|
|
350
398
|
]);
|
|
351
|
-
const COMMUNICATION_SVG_NAMES = new Set(['SvgDiscord', 'SvgFastA2ADonation', 'SvgJupyterMcp', 'SvgOSAContributions', 'SvgRadar']);
|
|
352
|
-
const CASES_SVG_NAMES = new Set(['SvgEarthHero', 'SvgUsecasesHero']);
|
|
399
|
+
const COMMUNICATION_SVG_NAMES = new Set(['SvgDiscord', 'SvgFastA2ADonation', 'SvgJupyterMcp', 'SvgJupyterMcp2', 'SvgOSAContributions', 'SvgOg', 'SvgRadar']);
|
|
400
|
+
const CASES_SVG_NAMES = new Set(['SvgEarthHero', 'SvgUsecasesHero', 'SvgLightHouse']);
|
|
353
401
|
const ARTIFACTS_SVG_NAMES = new Set([
|
|
354
402
|
'SvgNotebookArtifact',
|
|
355
403
|
'SvgDocumentArtifact',
|
|
404
|
+
'SvgDeckArtifact',
|
|
356
405
|
'SvgCellArtifact',
|
|
357
406
|
'SvgLessonArtifact',
|
|
358
407
|
'SvgExerciseArtifact',
|
|
@@ -361,12 +410,20 @@ const ARTIFACTS_SVG_NAMES = new Set([
|
|
|
361
410
|
'SvgPublication',
|
|
362
411
|
]);
|
|
363
412
|
const PIXELS_SVG_NAMES = new Set(['SvgPixel1', 'SvgPixel2']);
|
|
413
|
+
/* An agent's avatar, drawn in the theme's colours (src/avatar). */
|
|
414
|
+
const AVATAR_SVG_NAMES = new Set(['SvgAvatarOrb', 'SvgAvatarOrbThinking', 'SvgAvatarOrbTheme']);
|
|
364
415
|
const PICTOS_SVG_NAMES = new Set(['SvgSkubble']);
|
|
416
|
+
/*
|
|
417
|
+
* The marks of the companies Datalayer works WITH, which are not
|
|
418
|
+
* Datalayer's own: they carry someone else's name, and are kept apart so
|
|
419
|
+
* that the ones under Logos stay the house's.
|
|
420
|
+
*/
|
|
421
|
+
const PARTNERS_SVG_NAMES = new Set(['SvgDaytonaStartupGrid']);
|
|
365
422
|
function isCaseSvg(name) {
|
|
366
423
|
return CASES_SVG_NAMES.has(name);
|
|
367
424
|
}
|
|
368
425
|
function isHeroSvg(name) {
|
|
369
|
-
return name.endsWith('Hero') && !isCaseSvg(name);
|
|
426
|
+
return name.endsWith('Hero') && !isCaseSvg(name) && !isArtifactsSvg(name);
|
|
370
427
|
}
|
|
371
428
|
function isReleaseSvg(name) {
|
|
372
429
|
return RELEASE_SVG_NAMES.has(name);
|
|
@@ -389,6 +446,12 @@ function isPixelsSvg(name) {
|
|
|
389
446
|
function isPictosSvg(name) {
|
|
390
447
|
return PICTOS_SVG_NAMES.has(name);
|
|
391
448
|
}
|
|
449
|
+
function isPartnersSvg(name) {
|
|
450
|
+
return PARTNERS_SVG_NAMES.has(name);
|
|
451
|
+
}
|
|
452
|
+
function isAvatarSvg(name) {
|
|
453
|
+
return AVATAR_SVG_NAMES.has(name);
|
|
454
|
+
}
|
|
392
455
|
function svgInSegment(entry, segment) {
|
|
393
456
|
if (segment === 'All') {
|
|
394
457
|
return true;
|
|
@@ -420,6 +483,12 @@ function svgInSegment(entry, segment) {
|
|
|
420
483
|
if (segment === 'Cases') {
|
|
421
484
|
return isCaseSvg(entry.name);
|
|
422
485
|
}
|
|
486
|
+
if (segment === 'Partners') {
|
|
487
|
+
return isPartnersSvg(entry.name);
|
|
488
|
+
}
|
|
489
|
+
if (segment === 'Avatar') {
|
|
490
|
+
return isAvatarSvg(entry.name);
|
|
491
|
+
}
|
|
423
492
|
return (!isHeroSvg(entry.name)
|
|
424
493
|
&& !isReleaseSvg(entry.name)
|
|
425
494
|
&& !isSystemSvg(entry.name)
|
|
@@ -428,7 +497,9 @@ function svgInSegment(entry, segment) {
|
|
|
428
497
|
&& !isArtifactsSvg(entry.name)
|
|
429
498
|
&& !isPixelsSvg(entry.name)
|
|
430
499
|
&& !isPictosSvg(entry.name)
|
|
431
|
-
&& !isCaseSvg(entry.name)
|
|
500
|
+
&& !isCaseSvg(entry.name)
|
|
501
|
+
&& !isPartnersSvg(entry.name)
|
|
502
|
+
&& !isAvatarSvg(entry.name));
|
|
432
503
|
}
|
|
433
504
|
function SegmentControl({ value, onChange, counts, }) {
|
|
434
505
|
const segments = SEGMENTS;
|
|
@@ -856,6 +927,8 @@ export function SvgPage() {
|
|
|
856
927
|
Logos: textFiltered.filter((entry) => svgInSegment(entry, 'Logos')).length,
|
|
857
928
|
Communication: textFiltered.filter((entry) => svgInSegment(entry, 'Communication')).length,
|
|
858
929
|
Cases: textFiltered.filter((entry) => svgInSegment(entry, 'Cases')).length,
|
|
930
|
+
Partners: textFiltered.filter((entry) => svgInSegment(entry, 'Partners')).length,
|
|
931
|
+
Avatar: textFiltered.filter((entry) => svgInSegment(entry, 'Avatar')).length,
|
|
859
932
|
};
|
|
860
933
|
}, [normalizedFilter]);
|
|
861
934
|
const filteredSvgs = useMemo(() => {
|
package/lib/svg/SvgAI.js
CHANGED
package/lib/svg/SvgAI2.d.ts
CHANGED
|
@@ -1,11 +1,21 @@
|
|
|
1
|
-
import { type SVGProps } from
|
|
2
|
-
import { type ThemeVariant } from
|
|
3
|
-
export interface SvgAI2Props extends Omit<SVGProps<SVGSVGElement>,
|
|
1
|
+
import { type SVGProps } from 'react';
|
|
2
|
+
import { type ThemeVariant } from '@datalayer/primer-addons';
|
|
3
|
+
export interface SvgAI2Props extends Omit<SVGProps<SVGSVGElement>, 'ref'> {
|
|
4
|
+
/** Height of the mark; width follows the compact A proportions. */
|
|
4
5
|
size?: number;
|
|
5
6
|
variant?: ThemeVariant;
|
|
6
|
-
colorMode?:
|
|
7
|
+
colorMode?: 'light' | 'dark' | 'auto';
|
|
8
|
+
/** Colour of the A's right leg — the I embedded in the mark. */
|
|
7
9
|
primaryColor?: string;
|
|
10
|
+
/** Colour of the A's left leg and crossbar. */
|
|
8
11
|
secondaryColor?: string;
|
|
9
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* Compact AI monogram.
|
|
15
|
+
*
|
|
16
|
+
* The I is moved over the A's right leg, replacing it rather than sitting
|
|
17
|
+
* beside the A. Its geometry is the standalone A embedded in SvgDla, so both
|
|
18
|
+
* marks share the same cap height, slope, stroke weight, and colour language.
|
|
19
|
+
*/
|
|
10
20
|
export declare const SvgAI2: import("react").ForwardRefExoticComponent<SvgAI2Props & import("react").RefAttributes<SVGSVGElement>>;
|
|
11
21
|
export default SvgAI2;
|
package/lib/svg/SvgAI2.js
CHANGED
|
@@ -2,16 +2,23 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
/*
|
|
3
3
|
* Copyright (c) 2023-2026 Datalayer, Inc.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
* CC BY 4.0 License
|
|
6
6
|
*/
|
|
7
|
-
import { forwardRef } from
|
|
8
|
-
import { getLogoColors } from
|
|
9
|
-
|
|
7
|
+
import { forwardRef } from 'react';
|
|
8
|
+
import { getLogoColors } from '@datalayer/primer-addons';
|
|
9
|
+
const VIEW_WIDTH = 16.929;
|
|
10
|
+
const VIEW_HEIGHT = 24;
|
|
11
|
+
/**
|
|
12
|
+
* Compact AI monogram.
|
|
13
|
+
*
|
|
14
|
+
* The I is moved over the A's right leg, replacing it rather than sitting
|
|
15
|
+
* beside the A. Its geometry is the standalone A embedded in SvgDla, so both
|
|
16
|
+
* marks share the same cap height, slope, stroke weight, and colour language.
|
|
17
|
+
*/
|
|
18
|
+
export const SvgAI2 = forwardRef(function SvgAI2({ size = 24, variant = 'datalayer', colorMode = 'light', primaryColor, secondaryColor, ...svgProps }, ref) {
|
|
10
19
|
const themed = getLogoColors(variant, colorMode);
|
|
11
20
|
const resolvedPrimary = primaryColor ?? themed.primary;
|
|
12
21
|
const resolvedSecondary = secondaryColor ?? themed.textColor;
|
|
13
|
-
|
|
14
|
-
const leftBarBottomInnerX = -2.2 + barWidth;
|
|
15
|
-
return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "-2.2 0 26.2 24", width: size, height: size, role: "img", "aria-label": "AI2", ref: ref, ...svgProps, children: [_jsx("path", { d: `M15.35 3.5h${barWidth}V20h-${barWidth}z`, fill: resolvedPrimary }), _jsx("path", { d: `M-2.2 20 9.8 3.5h${barWidth}L${leftBarBottomInnerX} 20H-2.2z`, fill: resolvedSecondary }), _jsx("path", { d: `M10.35 3.5h${barWidth}V20h-${barWidth}z`, fill: resolvedSecondary }), _jsx("path", { d: "M3.5 12.95h9.6v2.75H3.5z", fill: resolvedSecondary })] }));
|
|
22
|
+
return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: `0 0 ${VIEW_WIDTH} ${VIEW_HEIGHT}`, width: (size * VIEW_WIDTH) / VIEW_HEIGHT, height: size, role: "img", "aria-label": "AI", ref: ref, ...svgProps, children: [_jsx("path", { d: "M6.682 3.932L10.278 3.932L3.846 20.068L0.249 20.068ZM6.391 13.683L10.586 13.683L11.758 16.68L5.197 16.68Z", fill: resolvedSecondary, fillRule: "evenodd", clipRule: "evenodd" }), _jsx("path", { d: "M6.774 3.932L10.37 3.932L16.679 20.068L13.083 20.068Z", fill: resolvedPrimary })] }));
|
|
16
23
|
});
|
|
17
24
|
export default SvgAI2;
|
package/lib/svg/SvgAI3.js
CHANGED
package/lib/svg/SvgAboutHero.js
CHANGED
package/lib/svg/SvgAgentsHero.js
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { type ColorPalette } from '@datalayer/primer-addons';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* `labels` — a word for each of the seven nodes, in `AGENTS` order, for a
|
|
4
|
+
* page whose story names them differently: a benchmark run at the centre
|
|
5
|
+
* with agents working its tasks around it, rather than an orchestrator and
|
|
6
|
+
* its roles. A missing entry keeps the node's own label.
|
|
7
|
+
*/
|
|
8
|
+
export declare function SvgAgentsHomeHero({ palette: paletteProp, labels, }?: {
|
|
3
9
|
palette?: ColorPalette;
|
|
4
|
-
|
|
10
|
+
labels?: string[];
|
|
11
|
+
}): import("react").JSX.Element;
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
/*
|
|
3
3
|
* Copyright (c) 2022-2026 Datalayer, Inc.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
* CC BY 4.0 License
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
8
8
|
* Wide, tall SVG hero background for the Agents home / landing page.
|
|
@@ -76,7 +76,13 @@ const LINK_GEOM = LINKS.map(({ from, to, bend }) => {
|
|
|
76
76
|
return { a, b, cx: c.cx, cy: c.cy };
|
|
77
77
|
});
|
|
78
78
|
const NUM_TRAVELLERS = 18;
|
|
79
|
-
|
|
79
|
+
/**
|
|
80
|
+
* `labels` — a word for each of the seven nodes, in `AGENTS` order, for a
|
|
81
|
+
* page whose story names them differently: a benchmark run at the centre
|
|
82
|
+
* with agents working its tasks around it, rather than an orchestrator and
|
|
83
|
+
* its roles. A missing entry keeps the node's own label.
|
|
84
|
+
*/
|
|
85
|
+
export function SvgAgentsHomeHero({ palette: paletteProp, labels, } = {}) {
|
|
80
86
|
const auto = useColorPalette();
|
|
81
87
|
const p = paletteProp ?? auto;
|
|
82
88
|
/* Keep a ref to the latest palette so the rAF loop always reads
|
|
@@ -189,6 +195,6 @@ export function SvgAgentsHomeHero({ palette: paletteProp } = {}) {
|
|
|
189
195
|
const r1 = isCenter ? 8 : 5;
|
|
190
196
|
const r2 = isCenter ? 24 : 16;
|
|
191
197
|
const r3 = isCenter ? 50 : 32;
|
|
192
|
-
return (_jsxs("g", { children: [_jsx("circle", { cx: agent.x, cy: agent.y, r: r3, fill: c, opacity: "0.14" }), _jsx("circle", { cx: agent.x, cy: agent.y, r: r2, fill: c, opacity: isCenter ? 0.30 : 0.22 }), _jsx("circle", { cx: agent.x, cy: agent.y, r: r2 + 2, fill: "none", stroke: c, strokeOpacity: isCenter ? 0.45 : 0.35, strokeWidth: isCenter ? 1.4 : 1.0 }), _jsx("circle", { cx: agent.x, cy: agent.y, r: r1, fill: c, opacity: isCenter ? 1.0 : 0.95 }), _jsx("text", { x: agent.x, y: agent.y + r2 + 14, fill: c, opacity: isCenter ? 0.55 : 0.45, fontSize: isCenter ? 9 : 7.5, fontFamily: "monospace", textAnchor: "middle", fontWeight: isCenter ? 'bold' : 'normal', children: agent.label })] }, `agent-${i}`));
|
|
198
|
+
return (_jsxs("g", { children: [_jsx("circle", { cx: agent.x, cy: agent.y, r: r3, fill: c, opacity: "0.14" }), _jsx("circle", { cx: agent.x, cy: agent.y, r: r2, fill: c, opacity: isCenter ? 0.30 : 0.22 }), _jsx("circle", { cx: agent.x, cy: agent.y, r: r2 + 2, fill: "none", stroke: c, strokeOpacity: isCenter ? 0.45 : 0.35, strokeWidth: isCenter ? 1.4 : 1.0 }), _jsx("circle", { cx: agent.x, cy: agent.y, r: r1, fill: c, opacity: isCenter ? 1.0 : 0.95 }), _jsx("text", { x: agent.x, y: agent.y + r2 + 14, fill: c, opacity: isCenter ? 0.55 : 0.45, fontSize: isCenter ? 9 : 7.5, fontFamily: "monospace", textAnchor: "middle", fontWeight: isCenter ? 'bold' : 'normal', children: labels?.[i] ?? agent.label })] }, `agent-${i}`));
|
|
193
199
|
}), _jsx("path", { d: "M0 350 Q200 280 400 320 T800 290 T1200 330 T1400 300", fill: "none", stroke: p.glow, strokeOpacity: "0.34", strokeWidth: "1.8" }), _jsx("path", { d: "M0 410 Q260 350 520 390 T1040 360 T1400 385", fill: "none", stroke: p.glow, strokeOpacity: "0.24", strokeWidth: "1.4" }), _jsx("path", { d: "M0 270 Q300 210 600 250 T1100 220 T1400 245", fill: "none", stroke: p.surge, strokeOpacity: "0.30", strokeWidth: "1.6" }), _jsx("path", { d: "M0 490 Q350 440 700 470 T1400 450", fill: "none", stroke: p.surge, strokeOpacity: "0.22", strokeWidth: "1.3" }), _jsx("path", { d: "M0 180 Q400 130 800 170 T1400 150", fill: "none", stroke: p.glow, strokeOpacity: "0.26", strokeWidth: "1.4" }), _jsx("path", { d: "M0 130 Q350 80 700 120 T1400 100", fill: "none", stroke: p.surge, strokeOpacity: "0.20", strokeWidth: "1.2" }), _jsx("path", { d: "M0 530 Q400 480 800 510 T1400 490", fill: "none", stroke: p.glow, strokeOpacity: "0.20", strokeWidth: "1.2" }), _jsx("path", { d: "M0 80 Q250 40 500 70 T1000 50 T1400 75", fill: "none", stroke: p.glow, strokeOpacity: "0.18", strokeWidth: "1.1" }), _jsx("path", { d: "M0 460 Q300 420 600 445 T1200 425 T1400 440", fill: "none", stroke: p.surge, strokeOpacity: "0.18", strokeWidth: "1.1" }), _jsx("path", { d: "M0 220 Q400 180 800 210 T1400 195", fill: "none", stroke: p.glow, strokeOpacity: "0.16", strokeWidth: "1.0" }), _jsx("path", { d: "M0 320 Q350 290 700 310 T1400 295", fill: "none", stroke: p.surge, strokeOpacity: "0.16", strokeWidth: "1.0" }), _jsx("circle", { cx: "80", cy: "65", r: "2.4", fill: p.glow, opacity: "0.88" }), _jsx("circle", { cx: "230", cy: "50", r: "1.9", fill: p.surge, opacity: "0.82" }), _jsx("circle", { cx: "480", cy: "38", r: "2.5", fill: p.glow, opacity: "0.86" }), _jsx("circle", { cx: "660", cy: "52", r: "2.0", fill: p.surge, opacity: "0.80" }), _jsx("circle", { cx: "890", cy: "42", r: "2.3", fill: p.glow, opacity: "0.84" }), _jsx("circle", { cx: "1100", cy: "58", r: "2.2", fill: p.glow, opacity: "0.82" }), _jsx("circle", { cx: "1300", cy: "48", r: "2.0", fill: p.surge, opacity: "0.80" }), _jsx("circle", { cx: "1380", cy: "75", r: "2.2", fill: p.glow, opacity: "0.78" }), _jsx("circle", { cx: "380", cy: "60", r: "2.1", fill: p.glow, opacity: "0.84" }), _jsx("circle", { cx: "1050", cy: "35", r: "2.1", fill: p.surge, opacity: "0.80" }), _jsx("circle", { cx: "160", cy: "40", r: "1.8", fill: p.glow, opacity: "0.78" }), _jsx("circle", { cx: "550", cy: "55", r: "1.7", fill: p.surge, opacity: "0.74" }), _jsx("circle", { cx: "780", cy: "30", r: "1.9", fill: p.glow, opacity: "0.76" }), _jsx("circle", { cx: "1200", cy: "45", r: "1.8", fill: p.surge, opacity: "0.74" }), _jsx("circle", { cx: "55", cy: "495", r: "2.2", fill: p.surge, opacity: "0.82" }), _jsx("circle", { cx: "210", cy: "515", r: "2.0", fill: p.glow, opacity: "0.78" }), _jsx("circle", { cx: "460", cy: "525", r: "2.4", fill: p.glow, opacity: "0.80" }), _jsx("circle", { cx: "690", cy: "505", r: "2.1", fill: p.surge, opacity: "0.76" }), _jsx("circle", { cx: "940", cy: "515", r: "2.3", fill: p.glow, opacity: "0.80" }), _jsx("circle", { cx: "1200", cy: "505", r: "2.0", fill: p.surge, opacity: "0.76" }), _jsx("circle", { cx: "1360", cy: "495", r: "2.2", fill: p.glow, opacity: "0.78" }), _jsx("circle", { cx: "310", cy: "535", r: "2.1", fill: p.surge, opacity: "0.78" }), _jsx("circle", { cx: "1100", cy: "530", r: "2.0", fill: p.glow, opacity: "0.76" }), _jsx("circle", { cx: "130", cy: "540", r: "1.7", fill: p.glow, opacity: "0.72" }), _jsx("circle", { cx: "580", cy: "545", r: "1.8", fill: p.surge, opacity: "0.70" }), _jsx("circle", { cx: "820", cy: "535", r: "1.9", fill: p.glow, opacity: "0.74" }), _jsx("circle", { cx: "1280", cy: "520", r: "1.7", fill: p.surge, opacity: "0.70" }), _jsx("circle", { cx: "60", cy: "210", r: "2.0", fill: p.glow, opacity: "0.70" }), _jsx("circle", { cx: "1340", cy: "230", r: "2.2", fill: p.surge, opacity: "0.72" }), _jsx("circle", { cx: "150", cy: "330", r: "1.9", fill: p.surge, opacity: "0.68" }), _jsx("circle", { cx: "1250", cy: "320", r: "2.1", fill: p.glow, opacity: "0.70" }), _jsx("circle", { cx: "90", cy: "400", r: "1.8", fill: p.glow, opacity: "0.66" }), _jsx("circle", { cx: "1310", cy: "140", r: "1.9", fill: p.surge, opacity: "0.68" }), _jsx("circle", { cx: "50", cy: "130", r: "1.7", fill: p.surge, opacity: "0.64" }), _jsx("circle", { cx: "1370", cy: "380", r: "1.8", fill: p.glow, opacity: "0.66" }), _jsx("circle", { cx: "300", cy: "200", r: "90", fill: p.glow, opacity: "0.10" }), _jsx("circle", { cx: "700", cy: "420", r: "100", fill: p.glow, opacity: "0.09" }), _jsx("circle", { cx: "1050", cy: "150", r: "85", fill: p.surge, opacity: "0.10" }), _jsx("circle", { cx: "200", cy: "460", r: "70", fill: p.surge, opacity: "0.08" }), _jsx("circle", { cx: "1200", cy: "460", r: "75", fill: p.glow, opacity: "0.09" }), _jsx("circle", { cx: "500", cy: "120", r: "65", fill: p.surge, opacity: "0.08" }), _jsx("circle", { cx: "100", cy: "100", r: "80", fill: p.glow, opacity: "0.07" }), _jsx("circle", { cx: "1300", cy: "280", r: "75", fill: p.surge, opacity: "0.07" }), _jsx("circle", { cx: "600", cy: "500", r: "70", fill: p.glow, opacity: "0.065" }), _jsx("circle", { cx: "900", cy: "80", r: "65", fill: p.surge, opacity: "0.065" }), _jsx("circle", { cx: "400", cy: "350", r: "60", fill: p.glow, opacity: "0.06" }), _jsx("circle", { cx: "1100", cy: "400", r: "60", fill: p.surge, opacity: "0.06" }), _jsx("line", { x1: "0", y1: "560", x2: "500", y2: "0", stroke: p.glow, strokeOpacity: "0.12", strokeWidth: "48" }), _jsx("line", { x1: "250", y1: "560", x2: "750", y2: "0", stroke: p.surge, strokeOpacity: "0.10", strokeWidth: "40" }), _jsx("line", { x1: "600", y1: "560", x2: "1100", y2: "0", stroke: p.glow, strokeOpacity: "0.10", strokeWidth: "36" }), _jsx("line", { x1: "950", y1: "560", x2: "1400", y2: "60", stroke: p.surge, strokeOpacity: "0.10", strokeWidth: "32" }), _jsx("line", { x1: "400", y1: "560", x2: "900", y2: "0", stroke: p.glow, strokeOpacity: "0.06", strokeWidth: "24" }), _jsx("line", { x1: "1100", y1: "560", x2: "1400", y2: "200", stroke: p.surge, strokeOpacity: "0.06", strokeWidth: "24" }), _jsx("path", { d: "M140 480 A160 160 0 0 1 140 160", fill: "none", stroke: p.glow, strokeOpacity: "0.20", strokeWidth: "1.2" }), _jsx("path", { d: "M165 450 A130 130 0 0 1 165 190", fill: "none", stroke: p.surge, strokeOpacity: "0.16", strokeWidth: "1.0" }), _jsx("path", { d: "M1260 160 A160 160 0 0 1 1260 480", fill: "none", stroke: p.surge, strokeOpacity: "0.20", strokeWidth: "1.2" }), _jsx("path", { d: "M1235 190 A130 130 0 0 1 1235 450", fill: "none", stroke: p.glow, strokeOpacity: "0.16", strokeWidth: "1.0" })] })] }));
|
|
194
200
|
}
|
|
@@ -4,5 +4,5 @@ type SvgAssignmentArtifactProps = {
|
|
|
4
4
|
width?: number | string;
|
|
5
5
|
height?: number | string;
|
|
6
6
|
};
|
|
7
|
-
export declare function SvgAssignmentArtifact({ palette: paletteProp, width, height, }?: SvgAssignmentArtifactProps): import("react
|
|
7
|
+
export declare function SvgAssignmentArtifact({ palette: paletteProp, width, height, }?: SvgAssignmentArtifactProps): import("react").JSX.Element;
|
|
8
8
|
export default SvgAssignmentArtifact;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ColorPalette } from '@datalayer/primer-addons';
|
|
2
2
|
export declare function SvgBlackSnake({ palette: paletteProp }?: {
|
|
3
3
|
palette?: ColorPalette;
|
|
4
|
-
}): import("react
|
|
4
|
+
}): import("react").JSX.Element;
|
|
5
5
|
export default SvgBlackSnake;
|
package/lib/svg/SvgBlackSnake.js
CHANGED
package/lib/svg/SvgBlogHero.d.ts
CHANGED
package/lib/svg/SvgBlogHero.js
CHANGED
|
@@ -4,5 +4,5 @@ type SvgCellArtifactProps = {
|
|
|
4
4
|
width?: number | string;
|
|
5
5
|
height?: number | string;
|
|
6
6
|
};
|
|
7
|
-
export declare function SvgCellArtifact({ palette: paletteProp, width, height, }?: SvgCellArtifactProps): import("react
|
|
7
|
+
export declare function SvgCellArtifact({ palette: paletteProp, width, height, }?: SvgCellArtifactProps): import("react").JSX.Element;
|
|
8
8
|
export default SvgCellArtifact;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) 2022-2026 Datalayer, Inc.
|
|
4
|
-
*
|
|
5
|
-
* Datalayer License
|
|
6
|
-
*/
|
|
7
2
|
import { useColorPalette } from '@datalayer/primer-addons';
|
|
8
3
|
/**
|
|
9
4
|
* Jupyter brand orange, kept constant across themes so the logo stays
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ColorPalette } from '@datalayer/primer-addons';
|
|
2
2
|
export declare function SvgCommunityHero({ palette: paletteProp }?: {
|
|
3
3
|
palette?: ColorPalette;
|
|
4
|
-
}): import("react
|
|
4
|
+
}): import("react").JSX.Element;
|
|
5
5
|
export default SvgCommunityHero;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type SVGProps } from 'react';
|
|
2
|
+
import { type ThemeVariant } from '@datalayer/primer-addons';
|
|
3
|
+
export interface DIProps extends Omit<SVGProps<SVGSVGElement>, 'ref'> {
|
|
4
|
+
size?: number;
|
|
5
|
+
variant?: ThemeVariant;
|
|
6
|
+
colorMode?: 'light' | 'dark' | 'auto';
|
|
7
|
+
/** Colour of the "I" glyph. */
|
|
8
|
+
primaryColor?: string;
|
|
9
|
+
/** Colour of the "D" glyph. */
|
|
10
|
+
secondaryColor?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* DI glyph mark.
|
|
14
|
+
*
|
|
15
|
+
* Uses the same public API and semantic color mapping as AI:
|
|
16
|
+
* primaryColor styles the "I", secondaryColor styles the "D".
|
|
17
|
+
* Drawn on the AI mark's grid: the same slanted I, cap height and stroke
|
|
18
|
+
* weight. The D is five-sided: its right edge runs parallel to the I, on the
|
|
19
|
+
* A's right leg (same gap to the I), for two thirds of the height, then
|
|
20
|
+
* returns to the baseline at the mirrored angle. The counter is the outline
|
|
21
|
+
* inset by the stroke weight.
|
|
22
|
+
*/
|
|
23
|
+
export declare const DI: import("react").ForwardRefExoticComponent<DIProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
24
|
+
export default DI;
|
package/lib/svg/SvgDI.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2023-2026 Datalayer, Inc.
|
|
4
|
+
* Distributed under the terms of the Modified BSD License.
|
|
5
|
+
*/
|
|
6
|
+
import { forwardRef } from 'react';
|
|
7
|
+
import { getLogoColors } from '@datalayer/primer-addons';
|
|
8
|
+
/**
|
|
9
|
+
* DI glyph mark.
|
|
10
|
+
*
|
|
11
|
+
* Uses the same public API and semantic color mapping as AI:
|
|
12
|
+
* primaryColor styles the "I", secondaryColor styles the "D".
|
|
13
|
+
* Drawn on the AI mark's grid: the same slanted I, cap height and stroke
|
|
14
|
+
* weight. The D is five-sided: its right edge runs parallel to the I, on the
|
|
15
|
+
* A's right leg (same gap to the I), for two thirds of the height, then
|
|
16
|
+
* returns to the baseline at the mirrored angle. The counter is the outline
|
|
17
|
+
* inset by the stroke weight.
|
|
18
|
+
*/
|
|
19
|
+
export const DI = forwardRef(function DI({ size = 24, variant = 'datalayer', colorMode = 'light', primaryColor, secondaryColor, ...svgProps }, ref) {
|
|
20
|
+
const themed = getLogoColors(variant, colorMode);
|
|
21
|
+
const resolvedPrimary = primaryColor ?? themed.primary;
|
|
22
|
+
const resolvedSecondary = secondaryColor ?? themed.textColor;
|
|
23
|
+
return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: size, height: size, role: "img", "aria-label": "DI", ref: ref, ...svgProps, children: [_jsx("path", { d: "M0.75 3.932H7.2A8.068 8.068 0 0 1 7.2 20.068H0.75ZM4.25 7.182H7.2A4.818 4.818 0 0 1 7.2 16.818H4.25Z", fill: resolvedSecondary, fillRule: "evenodd", clipRule: "evenodd" }), _jsx("path", { d: "m13.788825 3.932 6.43325 16.136075h3.5279L17.316725 3.932H13.788825Z", fill: resolvedPrimary })] }));
|
|
24
|
+
});
|
|
25
|
+
export default DI;
|
package/lib/svg/SvgDataset.d.ts
CHANGED
package/lib/svg/SvgDataset.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
/*
|
|
3
3
|
* Copyright (c) 2022-2026 Datalayer, Inc.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
* CC BY 4.0 License
|
|
6
6
|
*/
|
|
7
7
|
import { useColorPalette } from '@datalayer/primer-addons';
|
|
8
8
|
export function SvgDataset({ palette: paletteProp, } = {}) {
|