@hraness/design-kit 0.33.0 → 0.35.0
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 +19 -3
- package/dist/{chunk-mr1vdcjq.js → chunk-8xfssb9c.js} +6 -3
- package/dist/{chunk-95mpmzc9.js → chunk-c9mhn3yb.js} +1130 -442
- package/dist/{chunk-h4k7yv6x.js → chunk-fjf81bww.js} +28 -2
- package/dist/chunk-gmea6p0d.js +13 -0
- package/dist/index.js +5 -1
- package/dist/mockups/client.js +50 -15
- package/dist/portfolio.js +586 -85
- package/dist/react/index.js +141 -13
- package/dist/react/platform-install.js +3 -2
- package/dist/react/server.js +17 -3
- package/dist/stylex-manifest.json +1 -1
- package/dist/stylex.css +350 -36
- package/package.json +14 -3
- package/portfolio-inventory.json +1 -1
- package/src/diagrams.ts +11 -0
- package/src/index.ts +2 -0
- package/src/marketing-comparison.css +162 -0
- package/src/marketing-diagram.css +24 -0
- package/src/mockups/client.tsx +25 -17
- package/src/mockups.css +19 -0
- package/src/plain-publication.css +9 -6
- package/src/portfolio.generated.json +578 -86
- package/src/portfolio.generated.ts +578 -86
- package/src/portfolio.ts +73 -0
- package/src/product-marketing-foundation.css +29 -0
- package/src/product-marketing.css +136 -39
- package/src/react/article.tsx +2 -2
- package/src/react/design-gallery.tsx +37 -8
- package/src/react/index.ts +3 -0
- package/src/react/marketing-account.stylex.ts +74 -0
- package/src/react/marketing-account.tsx +69 -0
- package/src/react/marketing-comparison.stylex.ts +24 -0
- package/src/react/marketing-comparison.tsx +73 -0
- package/src/react/marketing-diagram.stylex.ts +8 -0
- package/src/react/marketing-diagram.tsx +33 -0
- package/src/react/platform-install.stylex.ts +2 -1
- package/src/react/platform-install.tsx +2 -1
- package/src/react/product-marketing.stylex.ts +144 -111
- package/src/react/product-marketing.tsx +83 -45
- package/src/react/server.ts +3 -0
- package/src/styles.css +2 -0
- package/src/typography.css +32 -0
- /package/dist/{chunk-4d79eskk.js → chunk-c80g58j1.js} +0 -0
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
highlightCode
|
|
3
|
+
} from "./chunk-he8eznb1.js";
|
|
4
|
+
|
|
5
|
+
// src/react/syntax-code.tsx
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
function SyntaxCode({
|
|
8
|
+
className,
|
|
9
|
+
code,
|
|
10
|
+
language,
|
|
11
|
+
styles
|
|
12
|
+
}) {
|
|
13
|
+
const highlighted = highlightCode(code, language, styles === undefined ? {} : {
|
|
14
|
+
styles
|
|
15
|
+
});
|
|
16
|
+
const classes = className === undefined ? highlighted.className : `${highlighted.className} ${className}`;
|
|
17
|
+
return /* @__PURE__ */ jsx("code", {
|
|
18
|
+
className: classes,
|
|
19
|
+
"data-language": highlighted.language,
|
|
20
|
+
dangerouslySetInnerHTML: {
|
|
21
|
+
__html: highlighted.html
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
|
|
1
26
|
// src/react/platform-install.stylex.ts
|
|
2
27
|
import * as stylex from "@stylexjs/stylex";
|
|
3
28
|
var ink = "var(--hraness-marketing-ink, var(--foreground, CanvasText))";
|
|
@@ -118,11 +143,12 @@ var platformInstallStyles = {
|
|
|
118
143
|
},
|
|
119
144
|
command: {
|
|
120
145
|
kWkggS: "xvpcapb x9yvj25",
|
|
121
|
-
kVAM5u: "
|
|
146
|
+
kVAM5u: "xtxfw9o x1w1tqly",
|
|
122
147
|
kaIpWk: "x1yt6v20",
|
|
123
148
|
ksu8eU: "x1y0btm7",
|
|
124
149
|
kMzoRj: "xmkeg23",
|
|
125
150
|
kB7OPa: "x9f619",
|
|
151
|
+
kGVxlE: "x1s13key xwaqzdf",
|
|
126
152
|
k1xSpc: "xrvj5dj",
|
|
127
153
|
k7Eaqz: "xeuugli",
|
|
128
154
|
kVQacm: "xb3r6kr",
|
|
@@ -365,4 +391,4 @@ function platformInstallClassName(parts, caller) {
|
|
|
365
391
|
return [...hookNames, atoms, caller].filter(Boolean).join(" ");
|
|
366
392
|
}
|
|
367
393
|
|
|
368
|
-
export { platformInstallClassName };
|
|
394
|
+
export { SyntaxCode, platformInstallClassName };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// src/diagrams.ts
|
|
2
|
+
var diagramMetrics = Object.freeze({
|
|
3
|
+
labelSize: 20,
|
|
4
|
+
detailSize: 16,
|
|
5
|
+
strokeWidth: 1.5,
|
|
6
|
+
arrowheadSize: 6,
|
|
7
|
+
nodePadding: 24,
|
|
8
|
+
nodeGap: 48,
|
|
9
|
+
minimumCanvasWidth: 640,
|
|
10
|
+
fontFamily: '"Nebula Sans", ui-sans-serif, system-ui, sans-serif'
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
export { diagramMetrics };
|
package/dist/index.js
CHANGED
|
@@ -64,7 +64,10 @@ import {
|
|
|
64
64
|
themeFor,
|
|
65
65
|
typeScale,
|
|
66
66
|
typography
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-c80g58j1.js";
|
|
68
|
+
import {
|
|
69
|
+
diagramMetrics
|
|
70
|
+
} from "./chunk-gmea6p0d.js";
|
|
68
71
|
import {
|
|
69
72
|
detectPlatform,
|
|
70
73
|
isKnownPlatformId,
|
|
@@ -189,6 +192,7 @@ export {
|
|
|
189
192
|
fontFallbacks,
|
|
190
193
|
escapeArticleHtml,
|
|
191
194
|
elevation,
|
|
195
|
+
diagramMetrics,
|
|
192
196
|
detectPlatform,
|
|
193
197
|
designThemes,
|
|
194
198
|
designThemeStorageKey,
|
package/dist/mockups/client.js
CHANGED
|
@@ -335,7 +335,7 @@ function StepThrough({
|
|
|
335
335
|
className: "hkm-tabs hkm-step-tabs",
|
|
336
336
|
role: "tablist",
|
|
337
337
|
children: steps.map((entry, position) => /* @__PURE__ */ jsxs("button", {
|
|
338
|
-
"aria-controls": `${id}-panel`,
|
|
338
|
+
"aria-controls": `${id}-panel-${entry.id}`,
|
|
339
339
|
"aria-selected": position === current,
|
|
340
340
|
className: "hkm-tab",
|
|
341
341
|
"data-hkm-done": position < current ? "" : undefined,
|
|
@@ -363,32 +363,52 @@ function StepThrough({
|
|
|
363
363
|
})
|
|
364
364
|
}),
|
|
365
365
|
/* @__PURE__ */ jsx("div", {
|
|
366
|
-
"
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
366
|
+
className: "hkm-showcase-stage hkm-step-stage",
|
|
367
|
+
children: steps.map((entry, position) => /* @__PURE__ */ jsx("div", {
|
|
368
|
+
"aria-hidden": position !== current,
|
|
369
|
+
"aria-labelledby": `${id}-tab-${entry.id}`,
|
|
370
|
+
className: "hkm-step-panel",
|
|
371
|
+
"data-hkm-animated": position === current && animated ? "" : undefined,
|
|
372
|
+
id: `${id}-panel-${entry.id}`,
|
|
373
|
+
inert: position !== current,
|
|
374
|
+
role: "tabpanel",
|
|
375
|
+
children: /* @__PURE__ */ jsx(FitToWidth, {
|
|
376
|
+
minWidth,
|
|
377
|
+
children: entry.render({
|
|
378
|
+
animated: position === current && animated,
|
|
379
|
+
theme
|
|
380
|
+
})
|
|
376
381
|
})
|
|
377
|
-
})
|
|
382
|
+
}, entry.id))
|
|
378
383
|
}),
|
|
379
384
|
/* @__PURE__ */ jsxs("div", {
|
|
380
385
|
className: "hkm-step-nav",
|
|
381
386
|
children: [
|
|
382
387
|
/* @__PURE__ */ jsx("button", {
|
|
388
|
+
"aria-label": "Back",
|
|
383
389
|
className: "hkm-step-button",
|
|
384
390
|
disabled: current === 0,
|
|
385
391
|
onClick: () => go(current - 1),
|
|
386
392
|
type: "button",
|
|
387
|
-
children: "
|
|
393
|
+
children: /* @__PURE__ */ jsx("svg", {
|
|
394
|
+
"aria-hidden": "true",
|
|
395
|
+
focusable: "false",
|
|
396
|
+
height: "28",
|
|
397
|
+
viewBox: "0 0 24 24",
|
|
398
|
+
width: "28",
|
|
399
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
400
|
+
d: "m14.5 5-7 7 7 7",
|
|
401
|
+
fill: "none",
|
|
402
|
+
stroke: "currentColor",
|
|
403
|
+
strokeLinecap: "round",
|
|
404
|
+
strokeLinejoin: "round",
|
|
405
|
+
strokeWidth: "1.75"
|
|
406
|
+
})
|
|
407
|
+
})
|
|
388
408
|
}),
|
|
389
409
|
/* @__PURE__ */ jsxs("span", {
|
|
390
410
|
"aria-live": "polite",
|
|
391
|
-
className: "hkm-showcase-status",
|
|
411
|
+
className: "hkm-showcase-status hkm-step-announcement",
|
|
392
412
|
children: [
|
|
393
413
|
"Step ",
|
|
394
414
|
current + 1,
|
|
@@ -398,12 +418,27 @@ function StepThrough({
|
|
|
398
418
|
]
|
|
399
419
|
}),
|
|
400
420
|
/* @__PURE__ */ jsx("button", {
|
|
421
|
+
"aria-label": "Next",
|
|
401
422
|
className: "hkm-step-button",
|
|
402
423
|
"data-hkm-primary": "",
|
|
403
424
|
disabled: current === steps.length - 1,
|
|
404
425
|
onClick: () => go(current + 1),
|
|
405
426
|
type: "button",
|
|
406
|
-
children: "
|
|
427
|
+
children: /* @__PURE__ */ jsx("svg", {
|
|
428
|
+
"aria-hidden": "true",
|
|
429
|
+
focusable: "false",
|
|
430
|
+
height: "28",
|
|
431
|
+
viewBox: "0 0 24 24",
|
|
432
|
+
width: "28",
|
|
433
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
434
|
+
d: "m9.5 5 7 7-7 7",
|
|
435
|
+
fill: "none",
|
|
436
|
+
stroke: "currentColor",
|
|
437
|
+
strokeLinecap: "round",
|
|
438
|
+
strokeLinejoin: "round",
|
|
439
|
+
strokeWidth: "1.75"
|
|
440
|
+
})
|
|
441
|
+
})
|
|
407
442
|
})
|
|
408
443
|
]
|
|
409
444
|
}),
|