@still-void/ui 1.1.1 → 2.0.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/CHANGELOG.md +12 -0
- package/README.md +76 -27
- package/dist/react/client/index.cjs +492 -3
- package/dist/react/client/index.cjs.map +1 -1
- package/dist/react/client/index.d.cts +141 -7
- package/dist/react/client/index.d.ts +141 -7
- package/dist/react/client/index.js +434 -3
- package/dist/react/client/index.js.map +1 -1
- package/dist/react/index.cjs +467 -2
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +401 -23
- package/dist/react/index.d.ts +401 -23
- package/dist/react/index.js +387 -1
- package/dist/react/index.js.map +1 -1
- package/package.json +19 -24
- package/dist/article-Dl8rGW5l.d.cts +0 -177
- package/dist/article-Dl8rGW5l.d.ts +0 -177
- package/dist/index.cjs +0 -639
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -248
- package/dist/index.d.ts +0 -248
- package/dist/index.js +0 -551
- package/dist/index.js.map +0 -1
package/dist/react/index.cjs
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
8
|
var __export = (target, all) => {
|
|
7
9
|
for (var name in all)
|
|
@@ -15,30 +17,107 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
17
|
}
|
|
16
18
|
return to;
|
|
17
19
|
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
18
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
29
|
|
|
20
30
|
// src/react/index.ts
|
|
21
31
|
var react_exports = {};
|
|
22
32
|
__export(react_exports, {
|
|
33
|
+
Alert: () => Alert,
|
|
34
|
+
AlertDescription: () => AlertDescription,
|
|
35
|
+
AlertTitle: () => AlertTitle,
|
|
23
36
|
ArticleHeader: () => ArticleHeader,
|
|
37
|
+
Badge: () => Badge,
|
|
38
|
+
Button: () => Button,
|
|
24
39
|
Callout: () => Callout,
|
|
40
|
+
Card: () => Card,
|
|
41
|
+
CardContent: () => CardContent,
|
|
42
|
+
CardDescription: () => CardDescription,
|
|
43
|
+
CardFooter: () => CardFooter,
|
|
44
|
+
CardHeader: () => CardHeader,
|
|
25
45
|
CardSkeleton: () => CardSkeleton,
|
|
46
|
+
CardTitle: () => CardTitle,
|
|
26
47
|
CategoryPill: () => CategoryPill,
|
|
27
48
|
CodeBlock: () => CodeBlock,
|
|
49
|
+
DEFAULT_ACCENT: () => DEFAULT_ACCENT,
|
|
50
|
+
DEFAULT_MODE: () => DEFAULT_MODE,
|
|
28
51
|
FeaturedPostCard: () => FeaturedPostCard,
|
|
29
52
|
Footer: () => Footer,
|
|
30
53
|
Header: () => Header,
|
|
31
54
|
Hero: () => Hero,
|
|
55
|
+
Input: () => Input,
|
|
32
56
|
Layout: () => Layout,
|
|
33
57
|
Lead: () => Lead,
|
|
34
58
|
Logo: () => Logo,
|
|
35
59
|
PostCard: () => PostCard,
|
|
36
60
|
PostGrid: () => PostGrid,
|
|
37
61
|
Prose: () => Prose,
|
|
62
|
+
READING_PROGRESS_VAR: () => READING_PROGRESS_VAR,
|
|
38
63
|
Sidebar: () => Sidebar,
|
|
39
64
|
SidebarSection: () => SidebarSection,
|
|
40
65
|
Skeleton: () => Skeleton,
|
|
41
|
-
ThemeScript: () => ThemeScript
|
|
66
|
+
ThemeScript: () => ThemeScript,
|
|
67
|
+
accentNames: () => accentNames,
|
|
68
|
+
accents: () => accents,
|
|
69
|
+
accentsInk: () => accentsInk,
|
|
70
|
+
articleHeader: () => articleHeader,
|
|
71
|
+
articleHeaderClasses: () => articleHeaderClasses,
|
|
72
|
+
callout: () => callout,
|
|
73
|
+
calloutClasses: () => calloutClasses,
|
|
74
|
+
calloutLabels: () => calloutLabels,
|
|
75
|
+
cardSkeleton: () => cardSkeleton,
|
|
76
|
+
categoryPill: () => categoryPill,
|
|
77
|
+
categoryPillClasses: () => categoryPillClasses,
|
|
78
|
+
codeBlock: () => codeBlock,
|
|
79
|
+
codeBlockClasses: () => codeBlockClasses,
|
|
80
|
+
colors: () => colors,
|
|
81
|
+
cx: () => cx,
|
|
82
|
+
defaultCategoryColors: () => defaultCategoryColors,
|
|
83
|
+
durations: () => durations,
|
|
84
|
+
easings: () => easings,
|
|
85
|
+
featuredPostCard: () => featuredPostCard,
|
|
86
|
+
featuredPostCardClasses: () => featuredPostCardClasses,
|
|
87
|
+
fontFamilies: () => fontFamilies,
|
|
88
|
+
fontSizes: () => fontSizes,
|
|
89
|
+
fontWeights: () => fontWeights,
|
|
90
|
+
footer: () => footer,
|
|
91
|
+
footerClasses: () => footerClasses,
|
|
92
|
+
header: () => header,
|
|
93
|
+
headerClasses: () => headerClasses,
|
|
94
|
+
hero: () => hero,
|
|
95
|
+
heroClasses: () => heroClasses,
|
|
96
|
+
layout: () => layout,
|
|
97
|
+
letterSpacings: () => letterSpacings,
|
|
98
|
+
lineHeights: () => lineHeights,
|
|
99
|
+
logo: () => logo,
|
|
100
|
+
logoClasses: () => logoClasses,
|
|
101
|
+
postCard: () => postCard,
|
|
102
|
+
postCardClasses: () => postCardClasses,
|
|
103
|
+
postGrid: () => postGrid,
|
|
104
|
+
prose: () => prose,
|
|
105
|
+
proseClasses: () => proseClasses,
|
|
106
|
+
radii: () => radii,
|
|
107
|
+
readingProgress: () => readingProgress,
|
|
108
|
+
readingProgressClasses: () => readingProgressClasses,
|
|
109
|
+
resolveAccentColor: () => resolveAccentColor,
|
|
110
|
+
resolveCategoryColor: () => resolveCategoryColor,
|
|
111
|
+
semantic: () => semantic,
|
|
112
|
+
semanticInk: () => semanticInk,
|
|
113
|
+
sidebar: () => sidebar,
|
|
114
|
+
sidebarClasses: () => sidebarClasses,
|
|
115
|
+
skeletonLine: () => skeletonLine,
|
|
116
|
+
spacing: () => spacing,
|
|
117
|
+
tableOfContents: () => tableOfContents,
|
|
118
|
+
themeModes: () => themeModes,
|
|
119
|
+
tocLink: () => tocLink,
|
|
120
|
+
zIndex: () => zIndex
|
|
42
121
|
});
|
|
43
122
|
module.exports = __toCommonJS(react_exports);
|
|
44
123
|
|
|
@@ -198,8 +277,52 @@ var accents = {
|
|
|
198
277
|
mint: "oklch(0.78 0.10 160)",
|
|
199
278
|
amber: "oklch(0.78 0.12 75)"
|
|
200
279
|
};
|
|
280
|
+
var accentsInk = {
|
|
281
|
+
dark: {
|
|
282
|
+
cyan: "oklch(0.78 0.12 210)",
|
|
283
|
+
violet: "oklch(0.72 0.14 295)",
|
|
284
|
+
mint: "oklch(0.78 0.10 160)",
|
|
285
|
+
amber: "oklch(0.78 0.12 75)"
|
|
286
|
+
},
|
|
287
|
+
light: {
|
|
288
|
+
cyan: "oklch(0.525 0.09 210)",
|
|
289
|
+
violet: "oklch(0.545 0.14 295)",
|
|
290
|
+
mint: "oklch(0.52 0.1 160)",
|
|
291
|
+
amber: "oklch(0.535 0.11 75)"
|
|
292
|
+
}
|
|
293
|
+
};
|
|
294
|
+
var semantic = {
|
|
295
|
+
dark: {
|
|
296
|
+
danger: "oklch(0.68 0.19 25)",
|
|
297
|
+
success: "oklch(0.75 0.15 150)",
|
|
298
|
+
info: "oklch(0.78 0.12 210)",
|
|
299
|
+
warning: "oklch(0.78 0.12 75)"
|
|
300
|
+
},
|
|
301
|
+
light: {
|
|
302
|
+
danger: "oklch(0.68 0.19 25)",
|
|
303
|
+
success: "oklch(0.75 0.15 150)",
|
|
304
|
+
info: "oklch(0.78 0.12 210)",
|
|
305
|
+
warning: "oklch(0.78 0.12 75)"
|
|
306
|
+
}
|
|
307
|
+
};
|
|
308
|
+
var semanticInk = {
|
|
309
|
+
dark: {
|
|
310
|
+
danger: "oklch(0.68 0.19 25)",
|
|
311
|
+
success: "oklch(0.75 0.15 150)",
|
|
312
|
+
info: "oklch(0.78 0.12 210)",
|
|
313
|
+
warning: "oklch(0.78 0.12 75)"
|
|
314
|
+
},
|
|
315
|
+
light: {
|
|
316
|
+
danger: "oklch(0.555 0.19 25)",
|
|
317
|
+
success: "oklch(0.515 0.14 150)",
|
|
318
|
+
info: "oklch(0.525 0.09 210)",
|
|
319
|
+
warning: "oklch(0.535 0.11 75)"
|
|
320
|
+
}
|
|
321
|
+
};
|
|
201
322
|
var themeModes = Object.keys(colors);
|
|
202
323
|
var accentNames = Object.keys(accents);
|
|
324
|
+
var DEFAULT_MODE = "dark";
|
|
325
|
+
var DEFAULT_ACCENT = "cyan";
|
|
203
326
|
|
|
204
327
|
// src/tokens/categories.ts
|
|
205
328
|
var defaultCategoryColors = {
|
|
@@ -336,6 +459,23 @@ var calloutLabels = {
|
|
|
336
459
|
warn: "Warn",
|
|
337
460
|
aha: "Aha!"
|
|
338
461
|
};
|
|
462
|
+
function tableOfContents() {
|
|
463
|
+
return "sv-toc";
|
|
464
|
+
}
|
|
465
|
+
function tocLink(options = {}) {
|
|
466
|
+
return cx(
|
|
467
|
+
"sv-toc__link",
|
|
468
|
+
options.active && "sv-toc__link--active",
|
|
469
|
+
options.depth === 3 && "sv-toc__link--depth-3"
|
|
470
|
+
);
|
|
471
|
+
}
|
|
472
|
+
function readingProgress() {
|
|
473
|
+
return "sv-reading-progress";
|
|
474
|
+
}
|
|
475
|
+
var readingProgressClasses = {
|
|
476
|
+
bar: "sv-reading-progress__bar"
|
|
477
|
+
};
|
|
478
|
+
var READING_PROGRESS_VAR = "--sv-reading-progress";
|
|
339
479
|
function articleHeader() {
|
|
340
480
|
return "sv-article-header";
|
|
341
481
|
}
|
|
@@ -420,26 +560,351 @@ function ThemeScript({ storageKey = DEFAULT_STORAGE_KEY, nonce } = {}) {
|
|
|
420
560
|
const script = `(function(){try{var s=JSON.parse(localStorage.getItem(${key})||"null");if(!s)return;var m=${modes},a=${accents2},r=document.documentElement;if(m.indexOf(s.mode)!==-1)r.setAttribute("data-theme",s.mode);if(a.indexOf(s.accent)!==-1)r.setAttribute("data-accent",s.accent);}catch(e){}})();`;
|
|
421
561
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("script", { nonce, dangerouslySetInnerHTML: { __html: script } });
|
|
422
562
|
}
|
|
563
|
+
|
|
564
|
+
// src/components/ui/button.tsx
|
|
565
|
+
var React = __toESM(require("react"), 1);
|
|
566
|
+
|
|
567
|
+
// src/lib/utils.ts
|
|
568
|
+
var import_clsx = require("clsx");
|
|
569
|
+
var import_tailwind_merge = require("tailwind-merge");
|
|
570
|
+
function cn(...inputs) {
|
|
571
|
+
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
// src/components/ui/button.tsx
|
|
575
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
576
|
+
var Button = React.forwardRef(
|
|
577
|
+
({ className, variant = "default", size = "default", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
578
|
+
"button",
|
|
579
|
+
{
|
|
580
|
+
className: cn(
|
|
581
|
+
"inline-flex items-center justify-center whitespace-nowrap rounded-md font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
|
|
582
|
+
variant === "default" && "bg-sv-surface text-sv-text hover:bg-sv-surface-2",
|
|
583
|
+
variant === "destructive" && "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
584
|
+
variant === "outline" && "border border-sv-border bg-background hover:bg-sv-surface hover:text-accent",
|
|
585
|
+
variant === "secondary" && "bg-sv-surface-2 text-sv-text hover:bg-sv-surface",
|
|
586
|
+
variant === "ghost" && "hover:bg-sv-surface hover:text-sv-text",
|
|
587
|
+
variant === "link" && "text-accent underline-offset-4 hover:underline",
|
|
588
|
+
size === "default" && "h-10 px-4 py-2",
|
|
589
|
+
size === "sm" && "h-9 rounded-md px-3 text-sm",
|
|
590
|
+
size === "lg" && "h-11 rounded-md px-8",
|
|
591
|
+
size === "icon" && "h-10 w-10",
|
|
592
|
+
className
|
|
593
|
+
),
|
|
594
|
+
ref,
|
|
595
|
+
...props
|
|
596
|
+
}
|
|
597
|
+
)
|
|
598
|
+
);
|
|
599
|
+
Button.displayName = "Button";
|
|
600
|
+
|
|
601
|
+
// src/components/ui/card.tsx
|
|
602
|
+
var React2 = __toESM(require("react"), 1);
|
|
603
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
604
|
+
var Card = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
605
|
+
"div",
|
|
606
|
+
{
|
|
607
|
+
ref,
|
|
608
|
+
className: cn(
|
|
609
|
+
"rounded-lg border border-sv-border bg-sv-surface text-sv-text",
|
|
610
|
+
className
|
|
611
|
+
),
|
|
612
|
+
...props
|
|
613
|
+
}
|
|
614
|
+
));
|
|
615
|
+
Card.displayName = "Card";
|
|
616
|
+
var CardHeader = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
617
|
+
"div",
|
|
618
|
+
{
|
|
619
|
+
ref,
|
|
620
|
+
className: cn("flex flex-col space-y-1.5 p-6", className),
|
|
621
|
+
...props
|
|
622
|
+
}
|
|
623
|
+
));
|
|
624
|
+
CardHeader.displayName = "CardHeader";
|
|
625
|
+
var CardTitle = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
626
|
+
"h2",
|
|
627
|
+
{
|
|
628
|
+
ref,
|
|
629
|
+
className: cn(
|
|
630
|
+
"text-2xl font-semibold leading-none tracking-tight",
|
|
631
|
+
className
|
|
632
|
+
),
|
|
633
|
+
...props
|
|
634
|
+
}
|
|
635
|
+
));
|
|
636
|
+
CardTitle.displayName = "CardTitle";
|
|
637
|
+
var CardDescription = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
638
|
+
"p",
|
|
639
|
+
{
|
|
640
|
+
ref,
|
|
641
|
+
className: cn("text-sm text-sv-text-2", className),
|
|
642
|
+
...props
|
|
643
|
+
}
|
|
644
|
+
));
|
|
645
|
+
CardDescription.displayName = "CardDescription";
|
|
646
|
+
var CardContent = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { ref, className: cn("p-6 pt-0", className), ...props }));
|
|
647
|
+
CardContent.displayName = "CardContent";
|
|
648
|
+
var CardFooter = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
649
|
+
"div",
|
|
650
|
+
{
|
|
651
|
+
ref,
|
|
652
|
+
className: cn("flex items-center p-6 pt-0", className),
|
|
653
|
+
...props
|
|
654
|
+
}
|
|
655
|
+
));
|
|
656
|
+
CardFooter.displayName = "CardFooter";
|
|
657
|
+
|
|
658
|
+
// src/components/ui/alert.tsx
|
|
659
|
+
var React3 = __toESM(require("react"), 1);
|
|
660
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
661
|
+
var Alert = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
662
|
+
"div",
|
|
663
|
+
{
|
|
664
|
+
ref,
|
|
665
|
+
className: cn(
|
|
666
|
+
"relative w-full rounded-lg border border-sv-border bg-sv-surface p-4 text-sv-text [&>svg~*]:pl-7 [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-sv-text",
|
|
667
|
+
className
|
|
668
|
+
),
|
|
669
|
+
role: "alert",
|
|
670
|
+
...props
|
|
671
|
+
}
|
|
672
|
+
));
|
|
673
|
+
Alert.displayName = "Alert";
|
|
674
|
+
var AlertTitle = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
675
|
+
"h5",
|
|
676
|
+
{
|
|
677
|
+
ref,
|
|
678
|
+
className: cn("mb-1 font-medium leading-tight tracking-tight", className),
|
|
679
|
+
...props
|
|
680
|
+
}
|
|
681
|
+
));
|
|
682
|
+
AlertTitle.displayName = "AlertTitle";
|
|
683
|
+
var AlertDescription = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
684
|
+
"div",
|
|
685
|
+
{
|
|
686
|
+
ref,
|
|
687
|
+
className: cn("text-sm text-sv-text-2 [&_p]:leading-relaxed", className),
|
|
688
|
+
...props
|
|
689
|
+
}
|
|
690
|
+
));
|
|
691
|
+
AlertDescription.displayName = "AlertDescription";
|
|
692
|
+
|
|
693
|
+
// src/components/ui/badge.tsx
|
|
694
|
+
var React4 = require("react");
|
|
695
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
696
|
+
function Badge({ className, variant = "default", ...props }) {
|
|
697
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
698
|
+
"div",
|
|
699
|
+
{
|
|
700
|
+
className: cn(
|
|
701
|
+
"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
702
|
+
variant === "default" && "border-transparent bg-sv-signal-cyan text-sv-bg",
|
|
703
|
+
variant === "secondary" && "border-transparent bg-sv-surface-2 text-sv-text hover:bg-sv-surface",
|
|
704
|
+
variant === "destructive" && "border-transparent bg-red-500 text-white hover:bg-red-600",
|
|
705
|
+
variant === "outline" && "text-sv-text border-sv-border",
|
|
706
|
+
className
|
|
707
|
+
),
|
|
708
|
+
...props
|
|
709
|
+
}
|
|
710
|
+
);
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
// src/components/ui/input.tsx
|
|
714
|
+
var React5 = __toESM(require("react"), 1);
|
|
715
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
716
|
+
var Input = React5.forwardRef(
|
|
717
|
+
({ className, type, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
718
|
+
"input",
|
|
719
|
+
{
|
|
720
|
+
type,
|
|
721
|
+
className: cn(
|
|
722
|
+
"flex h-10 w-full rounded-md border border-sv-border bg-sv-surface px-3 py-2 text-sm text-sv-text placeholder:text-sv-text-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
723
|
+
className
|
|
724
|
+
),
|
|
725
|
+
ref,
|
|
726
|
+
...props
|
|
727
|
+
}
|
|
728
|
+
)
|
|
729
|
+
);
|
|
730
|
+
Input.displayName = "Input";
|
|
731
|
+
|
|
732
|
+
// src/tokens/typography.ts
|
|
733
|
+
var fontFamilies = {
|
|
734
|
+
display: "'Sora', ui-sans-serif, system-ui, sans-serif",
|
|
735
|
+
body: "'Manrope', ui-sans-serif, system-ui, sans-serif",
|
|
736
|
+
mono: "'JetBrains Mono', ui-monospace, 'SF Mono', monospace"
|
|
737
|
+
};
|
|
738
|
+
var fontWeights = {
|
|
739
|
+
regular: 400,
|
|
740
|
+
medium: 500,
|
|
741
|
+
semibold: 600,
|
|
742
|
+
bold: 700
|
|
743
|
+
};
|
|
744
|
+
var fontSizes = {
|
|
745
|
+
xs: "0.75rem",
|
|
746
|
+
// 12px — meta, pills
|
|
747
|
+
sm: "0.8125rem",
|
|
748
|
+
// 13px — captions, code
|
|
749
|
+
base: "0.9375rem",
|
|
750
|
+
// 15px — body
|
|
751
|
+
md: "1rem",
|
|
752
|
+
// 16px — lead paragraphs
|
|
753
|
+
lg: "1.125rem",
|
|
754
|
+
// 18px — article lead
|
|
755
|
+
xl: "1.375rem",
|
|
756
|
+
// 22px — card titles, h3
|
|
757
|
+
"2xl": "1.75rem",
|
|
758
|
+
// 28px — h2
|
|
759
|
+
"3xl": "2.25rem",
|
|
760
|
+
// 36px — article title
|
|
761
|
+
"4xl": "2.75rem"
|
|
762
|
+
// 44px — hero display
|
|
763
|
+
};
|
|
764
|
+
var lineHeights = {
|
|
765
|
+
tight: 1.15,
|
|
766
|
+
snug: 1.3,
|
|
767
|
+
normal: 1.5,
|
|
768
|
+
relaxed: 1.7
|
|
769
|
+
};
|
|
770
|
+
var letterSpacings = {
|
|
771
|
+
display: "-0.02em",
|
|
772
|
+
normal: "0",
|
|
773
|
+
wide: "0.08em"
|
|
774
|
+
};
|
|
775
|
+
|
|
776
|
+
// src/tokens/spacing.ts
|
|
777
|
+
var spacing = {
|
|
778
|
+
1: "4px",
|
|
779
|
+
2: "8px",
|
|
780
|
+
3: "12px",
|
|
781
|
+
4: "16px",
|
|
782
|
+
5: "20px",
|
|
783
|
+
6: "24px",
|
|
784
|
+
8: "32px",
|
|
785
|
+
10: "40px",
|
|
786
|
+
12: "48px",
|
|
787
|
+
14: "56px",
|
|
788
|
+
16: "64px",
|
|
789
|
+
18: "72px"
|
|
790
|
+
};
|
|
791
|
+
var radii = {
|
|
792
|
+
sm: "6px",
|
|
793
|
+
md: "8px",
|
|
794
|
+
lg: "12px",
|
|
795
|
+
xl: "16px",
|
|
796
|
+
full: "9999px"
|
|
797
|
+
};
|
|
798
|
+
|
|
799
|
+
// src/tokens/motion.ts
|
|
800
|
+
var easings = {
|
|
801
|
+
hover: "cubic-bezier(.3,.7,.4,1)",
|
|
802
|
+
linear: "linear"
|
|
803
|
+
};
|
|
804
|
+
var durations = {
|
|
805
|
+
fast: "120ms",
|
|
806
|
+
base: "200ms",
|
|
807
|
+
slow: "320ms"
|
|
808
|
+
};
|
|
809
|
+
|
|
810
|
+
// src/tokens/zIndex.ts
|
|
811
|
+
var zIndex = {
|
|
812
|
+
dropdown: 10,
|
|
813
|
+
sticky: 20,
|
|
814
|
+
backdrop: 30,
|
|
815
|
+
modal: 40,
|
|
816
|
+
toast: 50,
|
|
817
|
+
tooltip: 60
|
|
818
|
+
};
|
|
423
819
|
// Annotate the CommonJS export names for ESM import in node:
|
|
424
820
|
0 && (module.exports = {
|
|
821
|
+
Alert,
|
|
822
|
+
AlertDescription,
|
|
823
|
+
AlertTitle,
|
|
425
824
|
ArticleHeader,
|
|
825
|
+
Badge,
|
|
826
|
+
Button,
|
|
426
827
|
Callout,
|
|
828
|
+
Card,
|
|
829
|
+
CardContent,
|
|
830
|
+
CardDescription,
|
|
831
|
+
CardFooter,
|
|
832
|
+
CardHeader,
|
|
427
833
|
CardSkeleton,
|
|
834
|
+
CardTitle,
|
|
428
835
|
CategoryPill,
|
|
429
836
|
CodeBlock,
|
|
837
|
+
DEFAULT_ACCENT,
|
|
838
|
+
DEFAULT_MODE,
|
|
430
839
|
FeaturedPostCard,
|
|
431
840
|
Footer,
|
|
432
841
|
Header,
|
|
433
842
|
Hero,
|
|
843
|
+
Input,
|
|
434
844
|
Layout,
|
|
435
845
|
Lead,
|
|
436
846
|
Logo,
|
|
437
847
|
PostCard,
|
|
438
848
|
PostGrid,
|
|
439
849
|
Prose,
|
|
850
|
+
READING_PROGRESS_VAR,
|
|
440
851
|
Sidebar,
|
|
441
852
|
SidebarSection,
|
|
442
853
|
Skeleton,
|
|
443
|
-
ThemeScript
|
|
854
|
+
ThemeScript,
|
|
855
|
+
accentNames,
|
|
856
|
+
accents,
|
|
857
|
+
accentsInk,
|
|
858
|
+
articleHeader,
|
|
859
|
+
articleHeaderClasses,
|
|
860
|
+
callout,
|
|
861
|
+
calloutClasses,
|
|
862
|
+
calloutLabels,
|
|
863
|
+
cardSkeleton,
|
|
864
|
+
categoryPill,
|
|
865
|
+
categoryPillClasses,
|
|
866
|
+
codeBlock,
|
|
867
|
+
codeBlockClasses,
|
|
868
|
+
colors,
|
|
869
|
+
cx,
|
|
870
|
+
defaultCategoryColors,
|
|
871
|
+
durations,
|
|
872
|
+
easings,
|
|
873
|
+
featuredPostCard,
|
|
874
|
+
featuredPostCardClasses,
|
|
875
|
+
fontFamilies,
|
|
876
|
+
fontSizes,
|
|
877
|
+
fontWeights,
|
|
878
|
+
footer,
|
|
879
|
+
footerClasses,
|
|
880
|
+
header,
|
|
881
|
+
headerClasses,
|
|
882
|
+
hero,
|
|
883
|
+
heroClasses,
|
|
884
|
+
layout,
|
|
885
|
+
letterSpacings,
|
|
886
|
+
lineHeights,
|
|
887
|
+
logo,
|
|
888
|
+
logoClasses,
|
|
889
|
+
postCard,
|
|
890
|
+
postCardClasses,
|
|
891
|
+
postGrid,
|
|
892
|
+
prose,
|
|
893
|
+
proseClasses,
|
|
894
|
+
radii,
|
|
895
|
+
readingProgress,
|
|
896
|
+
readingProgressClasses,
|
|
897
|
+
resolveAccentColor,
|
|
898
|
+
resolveCategoryColor,
|
|
899
|
+
semantic,
|
|
900
|
+
semanticInk,
|
|
901
|
+
sidebar,
|
|
902
|
+
sidebarClasses,
|
|
903
|
+
skeletonLine,
|
|
904
|
+
spacing,
|
|
905
|
+
tableOfContents,
|
|
906
|
+
themeModes,
|
|
907
|
+
tocLink,
|
|
908
|
+
zIndex
|
|
444
909
|
});
|
|
445
910
|
//# sourceMappingURL=index.cjs.map
|