@datalayer/design 1.0.0 → 1.0.1
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/README.md +1 -1
- package/lib/App.js +4 -5
- package/lib/pages/HomePage.js +223 -45
- package/lib/pages/IconsPage.js +12 -4
- package/lib/pages/SvgPage.js +386 -106
- package/lib/svg/SvgAI.d.ts +11 -0
- package/lib/svg/SvgAI.js +15 -0
- package/lib/svg/SvgAI2.d.ts +11 -0
- package/lib/svg/SvgAI2.js +17 -0
- package/lib/svg/SvgAI3.d.ts +12 -0
- package/lib/svg/SvgAI3.js +60 -0
- package/lib/svg/SvgAssignmentArtifact.d.ts +8 -0
- package/lib/svg/SvgAssignmentArtifact.js +15 -0
- package/lib/svg/SvgCellOutputshotPlaceholder.d.ts +28 -0
- package/lib/svg/SvgCellOutputshotPlaceholder.js +70 -0
- package/lib/svg/SvgEarthHero.d.ts +2 -2
- package/lib/svg/SvgEarthHero.js +41 -8
- package/lib/svg/SvgEvalsHero.d.ts +15 -0
- package/lib/svg/SvgEvalsHero.js +23 -0
- package/lib/svg/SvgExerciseArtifact.d.ts +8 -0
- package/lib/svg/SvgExerciseArtifact.js +15 -0
- package/lib/svg/SvgLessonArtifact.d.ts +8 -0
- package/lib/svg/SvgLessonArtifact.js +15 -0
- package/lib/svg/SvgNotebookMock.d.ts +10 -0
- package/lib/svg/SvgNotebookMock.js +70 -0
- package/lib/svg/SvgOSAContributions.d.ts +11 -0
- package/lib/svg/SvgOSAContributions.js +25 -0
- package/lib/svg/SvgPartnersHero.d.ts +16 -0
- package/lib/svg/SvgPartnersHero.js +94 -0
- package/lib/svg/SvgPixel1.js +29 -2
- package/lib/svg/SvgPixel2.js +37 -8
- package/lib/svg/SvgSkubble.d.ts +11 -0
- package/lib/svg/SvgSkubble.js +23 -0
- package/lib/svg/gallery.d.ts +1 -1
- package/lib/svg/gallery.js +16 -1
- package/lib/svg/images/eric-charles-2.svg +1249 -0
- package/lib/svg/images/eric-charles.svg +1131 -0
- package/lib/svg/index.d.ts +17 -0
- package/lib/svg/index.js +12 -0
- package/package.json +11 -4
- package/lib/DatalayerIcons.d.ts +0 -2
- package/lib/DatalayerIcons.js +0 -169
package/README.md
CHANGED
package/lib/App.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect } from 'react';
|
|
3
|
-
import { BaseStyles } from '@primer/react';
|
|
4
3
|
import { ThemedProvider, useThemeStore } from '@datalayer/primer-addons';
|
|
5
4
|
import { BrowserRouter, Navigate, Route, Routes } from 'react-router-dom';
|
|
6
5
|
import { SiteLayout } from './layout/SiteLayout';
|
|
@@ -8,7 +7,7 @@ import { HomePage } from './pages/HomePage';
|
|
|
8
7
|
import { IconsPage } from './pages/IconsPage';
|
|
9
8
|
import { SvgPage } from './pages/SvgPage';
|
|
10
9
|
export function App() {
|
|
11
|
-
// Apply default theme/colormode (
|
|
10
|
+
// Apply default theme/colormode (matrix + light) when no persisted
|
|
12
11
|
// value exists in localStorage. The store persists under 'datalayer-theme'.
|
|
13
12
|
useEffect(() => {
|
|
14
13
|
if (typeof window === 'undefined')
|
|
@@ -17,9 +16,9 @@ export function App() {
|
|
|
17
16
|
if (persisted)
|
|
18
17
|
return;
|
|
19
18
|
const { setTheme, setColorMode } = useThemeStore.getState();
|
|
20
|
-
setTheme('
|
|
21
|
-
setColorMode('
|
|
19
|
+
setTheme('matrix');
|
|
20
|
+
setColorMode('light');
|
|
22
21
|
}, []);
|
|
23
|
-
return (_jsx(ThemedProvider, { useStore: useThemeStore, children: _jsx(
|
|
22
|
+
return (_jsx(ThemedProvider, { useStore: useThemeStore, children: _jsx(BrowserRouter, { children: _jsx(Routes, { children: _jsxs(Route, { element: _jsx(SiteLayout, {}), children: [_jsx(Route, { path: "/", element: _jsx(HomePage, {}) }), _jsx(Route, { path: "/icons", element: _jsx(IconsPage, {}) }), _jsx(Route, { path: "/svg", element: _jsx(SvgPage, {}) }), _jsx(Route, { path: "/svg/:name", element: _jsx(SvgPage, {}) }), _jsx(Route, { path: "*", element: _jsx(Navigate, { to: "/", replace: true }) })] }) }) }) }));
|
|
24
23
|
}
|
|
25
24
|
export default App;
|
package/lib/pages/HomePage.js
CHANGED
|
@@ -1,50 +1,228 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2022-2026 Datalayer, Inc.
|
|
4
|
+
*
|
|
5
|
+
* Datalayer License
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* The front page of the design site.
|
|
9
|
+
*
|
|
10
|
+
* It has one job the rest of the site does not: to say what this collection is
|
|
11
|
+
* for before anyone opens a gallery. So the page is an argument in three
|
|
12
|
+
* moves — what Datalayer builds, why one visual system matters for it, and
|
|
13
|
+
* where to go next — and each move gets a band of its own.
|
|
14
|
+
*
|
|
15
|
+
* The furniture is local on purpose. This package is upstream of the
|
|
16
|
+
* applications, so it cannot borrow their landing components; what it shares
|
|
17
|
+
* with them is the language — a monospace label over a short rule, headings
|
|
18
|
+
* set large and tight, hairlines instead of boxes, and one card treatment.
|
|
19
|
+
*
|
|
20
|
+
* @module pages/HomePage
|
|
21
|
+
*/
|
|
22
|
+
import { Box, Heading, Link, Text } from "@primer/react";
|
|
23
|
+
import { Link as RouterLink } from "react-router-dom";
|
|
24
|
+
import { useColorPalette } from "@datalayer/primer-addons";
|
|
25
|
+
import { SvgAgentsHomeHero } from "../svg";
|
|
26
|
+
/** The measure everything on the page is set against. */
|
|
27
|
+
const CONTENT_WIDTH = 1200;
|
|
28
|
+
/**
|
|
29
|
+
* The face the small labels are set in. No webfont: the contrast comes from
|
|
30
|
+
* pairing the interface face set large against this one set small and wide.
|
|
31
|
+
*/
|
|
32
|
+
const MONO = 'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace';
|
|
33
|
+
const EASE = "cubic-bezier(0.22, 1, 0.36, 1)";
|
|
34
|
+
/** The small label that names a band, preceded by a rule so it is not a stray line. */
|
|
35
|
+
function Eyebrow({ children }) {
|
|
36
|
+
return (_jsxs(Box, { sx: { display: "flex", alignItems: "center", gap: 2, mb: 3 }, children: [_jsx(Box, { sx: { width: 24, height: "1px", bg: "accent.fg", opacity: 0.5 } }), _jsx(Text, { sx: {
|
|
37
|
+
fontFamily: MONO,
|
|
38
|
+
fontSize: "11px",
|
|
39
|
+
fontWeight: "bold",
|
|
40
|
+
textTransform: "uppercase",
|
|
41
|
+
letterSpacing: "0.16em",
|
|
42
|
+
color: "accent.fg",
|
|
43
|
+
}, children: children })] }));
|
|
44
|
+
}
|
|
45
|
+
/** A band of the page: the measure, the rhythm, and an optional dividing rule. */
|
|
46
|
+
function Band({ children, divided, }) {
|
|
47
|
+
return (_jsx(Box, { sx: {
|
|
48
|
+
maxWidth: CONTENT_WIDTH,
|
|
49
|
+
mx: "auto",
|
|
50
|
+
py: [5, 6],
|
|
51
|
+
...(divided && {
|
|
52
|
+
borderTop: "1px solid",
|
|
53
|
+
borderColor: "border.subtle",
|
|
54
|
+
}),
|
|
55
|
+
}, children: children }));
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* The one card treatment on the page.
|
|
59
|
+
*
|
|
60
|
+
* Cards used to sit inside a bordered panel, which drew a border around a
|
|
61
|
+
* border. The panel is gone; these carry the only frame.
|
|
62
|
+
*/
|
|
63
|
+
function Card({ children, ...props }) {
|
|
64
|
+
return (_jsx(Box, { ...props, sx: {
|
|
65
|
+
position: "relative",
|
|
66
|
+
display: "flex",
|
|
67
|
+
flexDirection: "column",
|
|
68
|
+
p: 4,
|
|
69
|
+
borderRadius: "12px",
|
|
70
|
+
border: "1px solid",
|
|
71
|
+
borderColor: "border.default",
|
|
72
|
+
bg: "canvas.default",
|
|
73
|
+
transition: `border-color 240ms ${EASE}, transform 240ms ${EASE}, box-shadow 240ms ${EASE}`,
|
|
74
|
+
":hover": {
|
|
75
|
+
borderColor: "accent.emphasis",
|
|
76
|
+
transform: "translateY(-3px)",
|
|
77
|
+
boxShadow: "0 1px 2px rgba(0, 0, 0, 0.04), 0 16px 36px -20px rgba(0, 0, 0, 0.28)",
|
|
78
|
+
},
|
|
79
|
+
...props.sx,
|
|
80
|
+
}, children: children }));
|
|
81
|
+
}
|
|
82
|
+
/** What the platform is made of, as a list rather than a paragraph of commas. */
|
|
83
|
+
const PILLARS = [
|
|
84
|
+
"Notebooks & Documents",
|
|
85
|
+
"Runtimes & Visualizations",
|
|
86
|
+
"Agents & AI workflows",
|
|
87
|
+
"Datasets & Publications",
|
|
88
|
+
"Spaces, teams & sharing",
|
|
89
|
+
];
|
|
90
|
+
/** What this collection guarantees, one claim each. */
|
|
91
|
+
const PRINCIPLES = [
|
|
92
|
+
{
|
|
93
|
+
title: "One palette, many themes",
|
|
94
|
+
body: "Every illustration takes its colours from the shared theme palette, so one switch re-skins the whole experience across light and dark.",
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
title: "Composable artifacts",
|
|
98
|
+
body: "Logos, hero scenes and product illustrations ship as reusable React SVGs — the same file in a landing page, an empty state, or the docs.",
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
title: "Shared design tokens",
|
|
102
|
+
body: "Colour, type and motion are defined once in @datalayer/primer-addons and consumed everywhere, including the SDKs partners embed.",
|
|
103
|
+
},
|
|
104
|
+
];
|
|
105
|
+
/** Where to go from here. */
|
|
106
|
+
const NEXT = [
|
|
107
|
+
{ label: "SVG gallery", desc: "Every illustration, themed live", to: "/svg" },
|
|
108
|
+
{ label: "Icons", desc: "The full icon set, searchable", to: "/icons" },
|
|
109
|
+
{
|
|
110
|
+
label: "datalayer.ai",
|
|
111
|
+
desc: "The platform these assets ship in",
|
|
112
|
+
href: "https://datalayer.ai",
|
|
113
|
+
},
|
|
114
|
+
];
|
|
5
115
|
export function HomePage() {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
116
|
+
const palette = useColorPalette();
|
|
117
|
+
return (_jsxs(Box, { sx: { px: [3, 4], py: [4, 5] }, children: [_jsx(Box, { sx: { maxWidth: CONTENT_WIDTH, mx: "auto" }, children: _jsxs(Box, { sx: {
|
|
118
|
+
position: "relative",
|
|
119
|
+
border: "1px solid",
|
|
120
|
+
borderColor: "border.default",
|
|
121
|
+
borderRadius: "16px",
|
|
122
|
+
overflow: "hidden",
|
|
123
|
+
bg: "canvas.subtle",
|
|
124
|
+
}, children: [_jsx(Box, { sx: { position: "absolute", inset: 0, opacity: 0.9 }, children: _jsx(SvgAgentsHomeHero, {}) }), _jsx(Box, { sx: {
|
|
125
|
+
position: "absolute",
|
|
126
|
+
inset: 0,
|
|
127
|
+
background: `linear-gradient(to top, ${palette.bg} 6%, ${palette.bg}D9 34%, ${palette.bg}00 78%)`,
|
|
128
|
+
} }), _jsxs(Box, { sx: {
|
|
129
|
+
position: "relative",
|
|
130
|
+
p: [4, 5],
|
|
131
|
+
minHeight: [380, 460, 520],
|
|
132
|
+
display: "flex",
|
|
133
|
+
flexDirection: "column",
|
|
134
|
+
justifyContent: "flex-end",
|
|
135
|
+
}, children: [_jsx(Text, { sx: {
|
|
136
|
+
fontFamily: MONO,
|
|
137
|
+
fontSize: "11px",
|
|
138
|
+
fontWeight: "bold",
|
|
139
|
+
letterSpacing: "0.16em",
|
|
140
|
+
textTransform: "uppercase",
|
|
141
|
+
color: palette.isLight ? palette.secondary : palette.primary,
|
|
142
|
+
mb: 3,
|
|
143
|
+
}, children: "Datalayer Design" }), _jsxs(Heading, { as: "h1", sx: {
|
|
144
|
+
fontSize: [5, 6, 7],
|
|
145
|
+
lineHeight: 1.05,
|
|
146
|
+
letterSpacing: "-0.03em",
|
|
147
|
+
mb: 3,
|
|
148
|
+
maxWidth: 880,
|
|
149
|
+
color: palette.textLight,
|
|
150
|
+
}, children: ["The visual system behind", _jsx("br", {}), "Datalayer\u2019s AI & data products"] }), _jsx(Text, { as: "p", sx: {
|
|
151
|
+
fontSize: 3,
|
|
152
|
+
lineHeight: 1.55,
|
|
153
|
+
maxWidth: 720,
|
|
154
|
+
color: palette.textLight,
|
|
155
|
+
opacity: 0.82,
|
|
156
|
+
mb: 0,
|
|
157
|
+
}, children: "One brand, one palette, one geometry \u2014 so every notebook, runtime, agent and document feels like part of the same platform." })] })] }) }), _jsx(Band, { children: _jsxs(Box, { sx: {
|
|
158
|
+
display: "grid",
|
|
159
|
+
gridTemplateColumns: ["1fr", "1fr", "1.6fr 1fr"],
|
|
160
|
+
gap: [4, 5, 6],
|
|
161
|
+
alignItems: "start",
|
|
162
|
+
}, children: [_jsxs(Box, { children: [_jsx(Eyebrow, { children: "The platform" }), _jsx(Heading, { as: "h2", sx: {
|
|
163
|
+
fontSize: [4, 5],
|
|
164
|
+
lineHeight: 1.15,
|
|
165
|
+
letterSpacing: "-0.02em",
|
|
166
|
+
mb: 3,
|
|
167
|
+
}, children: "What Datalayer is building" }), _jsxs(Text, { as: "p", sx: { fontSize: 2, lineHeight: 1.7, mt: 0, mb: 3, maxWidth: 620 }, children: [_jsx(Link, { href: "https://datalayer.ai", target: "_blank", rel: "noopener noreferrer", children: "Datalayer" }), " ", "is the platform for building, running and shipping custom data products powered by AI \u2014 Jupyter notebooks, managed runtimes, real-time collaboration, agents and data assets in one place, so a team gets from a blank notebook to something in production without leaving the workspace."] }), _jsx(Text, { as: "p", sx: {
|
|
168
|
+
fontSize: 2,
|
|
169
|
+
lineHeight: 1.7,
|
|
170
|
+
color: "fg.muted",
|
|
171
|
+
mt: 0,
|
|
172
|
+
mb: 0,
|
|
173
|
+
maxWidth: 620,
|
|
174
|
+
}, children: "Notebooks, documents, cells, datasets and publications are first-class artifacts. Agents reach them through open protocols \u2014 MCP, A2A, AG-UI \u2014 so code, content and intelligence sit in one governed environment." })] }), _jsxs(Box, { children: [_jsx(Text, { sx: {
|
|
175
|
+
display: "block",
|
|
176
|
+
fontFamily: MONO,
|
|
177
|
+
fontSize: "11px",
|
|
178
|
+
fontWeight: "bold",
|
|
179
|
+
letterSpacing: "0.16em",
|
|
180
|
+
textTransform: "uppercase",
|
|
181
|
+
color: "fg.muted",
|
|
182
|
+
mb: 2,
|
|
183
|
+
}, children: "Pillars" }), _jsx(Box, { as: "ul", sx: { listStyle: "none", p: 0, m: 0 }, children: PILLARS.map((pillar) => (_jsx(Box, { as: "li", sx: {
|
|
184
|
+
py: 3,
|
|
185
|
+
borderTop: "1px solid",
|
|
186
|
+
borderColor: "border.subtle",
|
|
187
|
+
fontSize: 2,
|
|
188
|
+
}, children: pillar }, pillar))) })] })] }) }), _jsxs(Band, { divided: true, children: [_jsxs(Box, { sx: { maxWidth: 780, mb: [4, 5] }, children: [_jsx(Eyebrow, { children: "Why this site exists" }), _jsx(Heading, { as: "h2", sx: {
|
|
189
|
+
fontSize: [4, 5],
|
|
190
|
+
lineHeight: 1.15,
|
|
191
|
+
letterSpacing: "-0.02em",
|
|
31
192
|
mb: 3,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
193
|
+
}, children: "One system, every surface" }), _jsx(Text, { as: "p", sx: { fontSize: 2, lineHeight: 1.7, mt: 0, mb: 0 }, children: "Every illustration, icon, logo and themed surface here is the same asset that ships inside the product, the marketing site and partner integrations. That is what lets a customer assemble a data product out of many moving parts and still feel they are using one platform." })] }), _jsx(Box, { sx: {
|
|
194
|
+
display: "grid",
|
|
195
|
+
gridTemplateColumns: [
|
|
196
|
+
"1fr",
|
|
197
|
+
"1fr 1fr",
|
|
198
|
+
"repeat(3, minmax(0, 1fr))",
|
|
199
|
+
],
|
|
200
|
+
gap: [3, 4],
|
|
201
|
+
}, children: PRINCIPLES.map((principle) => (_jsxs(Card, { children: [_jsx(Heading, { as: "h3", sx: { fontSize: 3, mb: 2 }, children: principle.title }), _jsx(Text, { sx: { color: "fg.muted", lineHeight: 1.65, fontSize: 1 }, children: principle.body })] }, principle.title))) })] }), _jsxs(Band, { divided: true, children: [_jsx(Eyebrow, { children: "Start here" }), _jsx(Box, { sx: {
|
|
202
|
+
display: "grid",
|
|
203
|
+
gridTemplateColumns: ["1fr", "1fr", "repeat(3, minmax(0, 1fr))"],
|
|
204
|
+
gap: [3, 4],
|
|
205
|
+
}, children: NEXT.map((item) => {
|
|
206
|
+
const linkProps = item.to
|
|
207
|
+
? { as: RouterLink, to: item.to }
|
|
208
|
+
: {
|
|
209
|
+
as: "a",
|
|
210
|
+
href: item.href,
|
|
211
|
+
target: "_blank",
|
|
212
|
+
rel: "noopener noreferrer",
|
|
213
|
+
};
|
|
214
|
+
return (_jsxs(Card, { ...linkProps, sx: {
|
|
215
|
+
textDecoration: "none",
|
|
216
|
+
color: "fg.default",
|
|
217
|
+
":hover .dla-go": { transform: "translateX(4px)" },
|
|
218
|
+
}, children: [_jsx(Heading, { as: "h3", sx: { fontSize: 3, mb: 1 }, children: item.label }), _jsx(Text, { sx: { color: "fg.muted", fontSize: 1, mb: 3 }, children: item.desc }), _jsx(Text, { className: "dla-go", sx: {
|
|
219
|
+
mt: "auto",
|
|
220
|
+
color: "accent.fg",
|
|
221
|
+
fontWeight: "bold",
|
|
222
|
+
fontSize: 1,
|
|
223
|
+
display: "inline-block",
|
|
224
|
+
transition: `transform 240ms ${EASE}`,
|
|
225
|
+
}, children: "Open \u2192" })] }, item.label));
|
|
226
|
+
}) })] })] }));
|
|
49
227
|
}
|
|
50
228
|
export default HomePage;
|
package/lib/pages/IconsPage.js
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Suspense, lazy } from
|
|
3
|
-
import { Box, Spinner, Text } from
|
|
4
|
-
const DatalayerIcons = lazy(() => import(
|
|
2
|
+
import { Suspense, lazy } from "react";
|
|
3
|
+
import { Box, Spinner, Text } from "@primer/react";
|
|
4
|
+
const DatalayerIcons = lazy(() => import("@datalayer/icons-all").then((module) => ({
|
|
5
|
+
default: module.DatalayerIcons,
|
|
6
|
+
})));
|
|
5
7
|
export function IconsPage() {
|
|
6
|
-
return (_jsx(Suspense, { fallback:
|
|
8
|
+
return (_jsx(Suspense, { fallback: _jsx(Box, { sx: { px: 4, py: 6 }, children: _jsxs(Box, { sx: {
|
|
9
|
+
maxWidth: 1200,
|
|
10
|
+
mx: "auto",
|
|
11
|
+
display: "flex",
|
|
12
|
+
alignItems: "center",
|
|
13
|
+
gap: 3,
|
|
14
|
+
}, children: [_jsx(Spinner, { size: "medium" }), _jsx(Text, { sx: { color: "fg.muted" }, children: "Loading icon catalog..." })] }) }), children: _jsx(DatalayerIcons, {}) }));
|
|
7
15
|
}
|
|
8
16
|
export default IconsPage;
|