@n3rd-ai/ui 0.2.3 → 0.2.7

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.css CHANGED
@@ -123,9 +123,6 @@
123
123
  flex-direction: column;
124
124
  align-items: center;
125
125
  margin-bottom: var(--n3rd-space-6);
126
- max-width: 480px;
127
- margin-left: auto;
128
- margin-right: auto;
129
126
  }
130
127
  .n3rd-footer-horizon-bright {
131
128
  width: 100%;
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
- function Logo({ text, gradient = false, accent, className, style }) {
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
- return /* @__PURE__ */ jsx("div", { className, style: containerStyle, "aria-label": text, role: "img", children: lines.map((line, i) => /* @__PURE__ */ jsx("div", { style: gradientStyle, children: line }, i)) });
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,24 +628,24 @@ 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: "30%", background: "#7c3aed" } }),
608
- /* @__PURE__ */ jsx("div", { className: "n3rd-footer-sun-line", style: { width: "45%", background: "#a855f7" } }),
609
- /* @__PURE__ */ jsx("div", { className: "n3rd-footer-sun-gap" }),
610
- /* @__PURE__ */ jsx("div", { className: "n3rd-footer-sun-line", style: { width: "55%", background: "#c084fc" } }),
611
- /* @__PURE__ */ jsx("div", { className: "n3rd-footer-sun-line", style: { width: "62%", background: "#ec4899" } }),
631
+ /* @__PURE__ */ jsx("div", { className: "n3rd-footer-sun-line", style: { width: "26%", background: "#7c3aed" } }),
632
+ /* @__PURE__ */ jsx("div", { className: "n3rd-footer-sun-line", style: { width: "42%", background: "#8b5cf6" } }),
633
+ /* @__PURE__ */ jsx("div", { className: "n3rd-footer-sun-line", style: { width: "52%", background: "#a855f7" } }),
634
+ /* @__PURE__ */ jsx("div", { className: "n3rd-footer-sun-line", style: { width: "60%", background: "#c084fc" } }),
635
+ /* @__PURE__ */ jsx("div", { className: "n3rd-footer-sun-line", style: { width: "66%", background: "#d946ef" } }),
636
+ /* @__PURE__ */ jsx("div", { className: "n3rd-footer-sun-line", style: { width: "71%", background: "#ec4899" } }),
637
+ /* @__PURE__ */ jsx("div", { className: "n3rd-footer-sun-line", style: { width: "75%", background: "#f472b6" } }),
612
638
  /* @__PURE__ */ jsx("div", { className: "n3rd-footer-sun-gap" }),
613
- /* @__PURE__ */ jsx("div", { className: "n3rd-footer-sun-line", style: { width: "70%", background: "#f472b6" } }),
614
639
  /* @__PURE__ */ jsx("div", { className: "n3rd-footer-sun-line", style: { width: "78%", background: "#fb7185" } }),
640
+ /* @__PURE__ */ jsx("div", { className: "n3rd-footer-sun-gap" }),
641
+ /* @__PURE__ */ jsx("div", { className: "n3rd-footer-sun-line", style: { width: "80%", background: "#fda4af" } }),
615
642
  /* @__PURE__ */ jsx("div", { className: "n3rd-footer-sun-gap", style: { height: "3px" } }),
616
- /* @__PURE__ */ jsx("div", { className: "n3rd-footer-sun-line", style: { width: "85%", background: "#fda4af" } }),
617
- /* @__PURE__ */ jsx("div", { className: "n3rd-footer-sun-line", style: { width: "92%", background: "#fecdd3" } })
643
+ /* @__PURE__ */ jsx("div", { className: "n3rd-footer-sun-line", style: { width: "82%", background: "#fecdd3" } })
618
644
  ] }),
619
645
  /* @__PURE__ */ jsxs("div", { className: "n3rd-footer-horizon", "aria-hidden": "true", children: [
620
646
  /* @__PURE__ */ jsx("div", { className: "n3rd-footer-horizon-bright" }),
621
647
  /* @__PURE__ */ jsx("div", { className: "n3rd-footer-reflection" }),
622
- /* @__PURE__ */ jsx("div", { className: "n3rd-footer-reflection-dashed" }),
623
- /* @__PURE__ */ jsx("div", { className: "n3rd-footer-reflection", style: { opacity: 0.4 } }),
624
- /* @__PURE__ */ jsx("div", { className: "n3rd-footer-reflection-dashed", style: { opacity: 0.2 } })
648
+ /* @__PURE__ */ jsx("div", { className: "n3rd-footer-reflection-dashed" })
625
649
  ] }),
626
650
  tagline && /* @__PURE__ */ jsx("div", { className: "n3rd-footer-tagline", children: tagline.toUpperCase() }),
627
651
  links.length > 0 && /* @__PURE__ */ jsx("nav", { className: "n3rd-footer-links", children: links.map((link, i) => /* @__PURE__ */ jsxs("span", { children: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@n3rd-ai/ui",
3
- "version": "0.2.3",
3
+ "version": "0.2.7",
4
4
  "description": "Terminal-first UI framework for Next.js. ASCII everything. Zero images. Pure text.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",