@n3rd-ai/ui 0.2.3 → 0.2.5
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/dist/index.d.ts +2 -1
- package/dist/index.js +34 -10
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -151,10 +151,11 @@ interface LogoProps {
|
|
|
151
151
|
text: string;
|
|
152
152
|
gradient?: boolean | string;
|
|
153
153
|
accent?: Accent;
|
|
154
|
+
decorated?: boolean;
|
|
154
155
|
className?: string;
|
|
155
156
|
style?: CSSProperties;
|
|
156
157
|
}
|
|
157
|
-
declare function Logo({ text, gradient, accent, className, style }: LogoProps): react_jsx_runtime.JSX.Element;
|
|
158
|
+
declare function Logo({ text, gradient, accent, decorated, className, style, }: LogoProps): react_jsx_runtime.JSX.Element;
|
|
158
159
|
|
|
159
160
|
interface StatusLineProps {
|
|
160
161
|
left?: ReactNode;
|
package/dist/index.js
CHANGED
|
@@ -544,7 +544,18 @@ function renderAsciiLines(input) {
|
|
|
544
544
|
}
|
|
545
545
|
return lines;
|
|
546
546
|
}
|
|
547
|
-
|
|
547
|
+
var STAR_ROWS = [
|
|
548
|
+
" \xB7 \u2726 \xB7 \xB7 \u2726 \xB7 ",
|
|
549
|
+
" \xB7 \xB7 \u2726 \xB7 "
|
|
550
|
+
];
|
|
551
|
+
function Logo({
|
|
552
|
+
text,
|
|
553
|
+
gradient = false,
|
|
554
|
+
accent,
|
|
555
|
+
decorated = false,
|
|
556
|
+
className,
|
|
557
|
+
style
|
|
558
|
+
}) {
|
|
548
559
|
const lines = renderAsciiLines(text);
|
|
549
560
|
const gradientValue = typeof gradient === "string" ? gradient : "var(--n3rd-gradient)";
|
|
550
561
|
const containerStyle = {
|
|
@@ -554,6 +565,8 @@ function Logo({ text, gradient = false, accent, className, style }) {
|
|
|
554
565
|
whiteSpace: "pre",
|
|
555
566
|
lineHeight: 1,
|
|
556
567
|
letterSpacing: "-0.05em",
|
|
568
|
+
textAlign: "center",
|
|
569
|
+
padding: "var(--n3rd-space-6) 0",
|
|
557
570
|
color: accent ? `var(--n3rd-accent-${accent})` : "var(--n3rd-text-primary)",
|
|
558
571
|
...style
|
|
559
572
|
};
|
|
@@ -563,7 +576,18 @@ function Logo({ text, gradient = false, accent, className, style }) {
|
|
|
563
576
|
WebkitBackgroundClip: "text",
|
|
564
577
|
WebkitTextFillColor: "transparent"
|
|
565
578
|
} : {};
|
|
566
|
-
|
|
579
|
+
const starStyle = {
|
|
580
|
+
color: "var(--n3rd-accent-lavender, #c084fc)",
|
|
581
|
+
opacity: 0.35,
|
|
582
|
+
letterSpacing: "normal",
|
|
583
|
+
fontSize: "var(--n3rd-text-sm)",
|
|
584
|
+
lineHeight: 1.8
|
|
585
|
+
};
|
|
586
|
+
return /* @__PURE__ */ jsxs("div", { className, style: containerStyle, "aria-label": text, role: "img", children: [
|
|
587
|
+
decorated && STAR_ROWS.map((row, i) => /* @__PURE__ */ jsx("div", { style: starStyle, "aria-hidden": "true", children: row }, `star-top-${i}`)),
|
|
588
|
+
lines.map((line, i) => /* @__PURE__ */ jsx("div", { style: gradientStyle, children: line }, i)),
|
|
589
|
+
decorated && STAR_ROWS.slice().reverse().map((row, i) => /* @__PURE__ */ jsx("div", { style: starStyle, "aria-hidden": "true", children: row }, `star-bottom-${i}`))
|
|
590
|
+
] });
|
|
567
591
|
}
|
|
568
592
|
function StatusLine({ left, center, right, className, style }) {
|
|
569
593
|
const lineStyle = {
|
|
@@ -604,17 +628,17 @@ function Footer({
|
|
|
604
628
|
/* @__PURE__ */ jsx("div", { className: "n3rd-footer-star-row", children: " \xB7 \xB7 \u2726 \xB7 \u2726" })
|
|
605
629
|
] }),
|
|
606
630
|
/* @__PURE__ */ jsxs("div", { className: "n3rd-footer-sunset", "aria-hidden": "true", children: [
|
|
607
|
-
/* @__PURE__ */ jsx("div", { className: "n3rd-footer-sun-line", style: { width: "
|
|
608
|
-
/* @__PURE__ */ jsx("div", { className: "n3rd-footer-sun-line", style: { width: "
|
|
631
|
+
/* @__PURE__ */ jsx("div", { className: "n3rd-footer-sun-line", style: { width: "20%", background: "#7c3aed" } }),
|
|
632
|
+
/* @__PURE__ */ jsx("div", { className: "n3rd-footer-sun-line", style: { width: "30%", background: "#a855f7" } }),
|
|
609
633
|
/* @__PURE__ */ jsx("div", { className: "n3rd-footer-sun-gap" }),
|
|
610
|
-
/* @__PURE__ */ jsx("div", { className: "n3rd-footer-sun-line", style: { width: "
|
|
611
|
-
/* @__PURE__ */ jsx("div", { className: "n3rd-footer-sun-line", style: { width: "
|
|
634
|
+
/* @__PURE__ */ jsx("div", { className: "n3rd-footer-sun-line", style: { width: "37%", background: "#c084fc" } }),
|
|
635
|
+
/* @__PURE__ */ jsx("div", { className: "n3rd-footer-sun-line", style: { width: "42%", background: "#ec4899" } }),
|
|
612
636
|
/* @__PURE__ */ jsx("div", { className: "n3rd-footer-sun-gap" }),
|
|
613
|
-
/* @__PURE__ */ jsx("div", { className: "n3rd-footer-sun-line", style: { width: "
|
|
614
|
-
/* @__PURE__ */ jsx("div", { className: "n3rd-footer-sun-line", style: { width: "
|
|
637
|
+
/* @__PURE__ */ jsx("div", { className: "n3rd-footer-sun-line", style: { width: "47%", background: "#f472b6" } }),
|
|
638
|
+
/* @__PURE__ */ jsx("div", { className: "n3rd-footer-sun-line", style: { width: "52%", background: "#fb7185" } }),
|
|
615
639
|
/* @__PURE__ */ jsx("div", { className: "n3rd-footer-sun-gap", style: { height: "3px" } }),
|
|
616
|
-
/* @__PURE__ */ jsx("div", { className: "n3rd-footer-sun-line", style: { width: "
|
|
617
|
-
/* @__PURE__ */ jsx("div", { className: "n3rd-footer-sun-line", style: { width: "
|
|
640
|
+
/* @__PURE__ */ jsx("div", { className: "n3rd-footer-sun-line", style: { width: "57%", background: "#fda4af" } }),
|
|
641
|
+
/* @__PURE__ */ jsx("div", { className: "n3rd-footer-sun-line", style: { width: "62%", background: "#fecdd3" } })
|
|
618
642
|
] }),
|
|
619
643
|
/* @__PURE__ */ jsxs("div", { className: "n3rd-footer-horizon", "aria-hidden": "true", children: [
|
|
620
644
|
/* @__PURE__ */ jsx("div", { className: "n3rd-footer-horizon-bright" }),
|