@nadicodeai/ui 10.0.2 → 10.1.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.
@@ -17,11 +17,20 @@ import * as React from "react";
17
17
  * live timer — no client JS in this pass). Token-only; the root sets its own `dark`
18
18
  * class (an accepted ancestor-class remap), never `dark:` utilities.
19
19
  */
20
- declare function Footer({ className, variant, ...props }: React.ComponentProps<"footer"> & {
20
+ /**
21
+ * `width="page"` puts the footer's content on the website's one column
22
+ * (`.nc-page`, the design system's), so its columns align with every section
23
+ * above it; the footer then carries no inset of its own, because the column
24
+ * brings the gutters. The default keeps the Portal's own measure.
25
+ */
26
+ type FooterWidth = "content" | "page";
27
+ declare function Footer({ className, variant, width, ...props }: React.ComponentProps<"footer"> & {
21
28
  variant?: "flat" | "mega";
29
+ width?: FooterWidth;
22
30
  }): React.JSX.Element;
23
- declare function FooterInner({ className, variant, ...props }: React.ComponentProps<"div"> & {
31
+ declare function FooterInner({ className, variant, width, ...props }: React.ComponentProps<"div"> & {
24
32
  variant?: "flat" | "mega";
33
+ width?: FooterWidth;
25
34
  }): React.JSX.Element;
26
35
  declare function FooterBrand({ className, ...props }: React.ComponentProps<"a">): React.JSX.Element;
27
36
  declare function FooterIdentity({ className, ...props }: React.ComponentProps<"p">): React.JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"footer.d.ts","sourceRoot":"","sources":["../../src/components/footer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B;;;;;;;;;;;;;;;;;GAiBG;AAEH,iBAAS,MAAM,CAAC,EACd,SAAS,EACT,OAAgB,EAChB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,qBAYhE;AAED,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,OAAgB,EAChB,GAAG,KA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,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAWtE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,qBAQrE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,qBAQzE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,qBAYzE;AAID,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAW1E;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAW3E;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAW1E;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,qBAQ7E;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAY3E;AAED,OAAO,EACL,MAAM,EACN,WAAW,EACX,WAAW,EACX,cAAc,EACd,SAAS,EACT,UAAU,EACV,WAAW,EACX,WAAW,EACX,aAAa,EACb,cAAc,EACd,aAAa,EACb,kBAAkB,EAClB,cAAc,GACf,CAAC"}
@@ -1,28 +1,10 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { cn } from "../lib/utils.js";
3
- /**
4
- * footer — the always-dark site footer (V5 · B20).
5
- *
6
- * A brandline + identity paragraph beside two link columns, a meta row
7
- * (copyright · clock slot · locations), and a giant faint ghost wordmark behind it
8
- * all. The footer is ALWAYS dark, so the root carries its own `dark` ancestor class
9
- * and resolves every colour from semantic roles (`bg-card`, `text-foreground`,
10
- * `text-muted-foreground`, `border-border`, `text-primary`).
11
- *
12
- * SINGLE-OWNER SEAM: the footer owns its top border (`border-t border-border`); the
13
- * `mega` variant adds exactly ONE inner seam, the hairline above the meta strip
14
- * (`FooterMegaMeta`). Link columns separate by whitespace, never rails.
15
- *
16
- * The ghost wordmark and clock are CONTENT slots: `FooterGhost` takes the wordmark
17
- * text/renderer, `FooterClock` takes a pre-formatted time string (a value, not a
18
- * live timer — no client JS in this pass). Token-only; the root sets its own `dark`
19
- * class (an accepted ancestor-class remap), never `dark:` utilities.
20
- */
21
- function Footer({ className, variant = "flat", ...props }) {
22
- return (_jsx("footer", { "data-slot": "footer", "data-variant": variant, className: cn("dark relative isolate overflow-hidden border-t border-border bg-card px-6 py-12 text-foreground [&_a]:no-underline", className), ...props }));
23
- }
24
- function FooterInner({ className, variant = "flat", ...props }) {
25
- return (_jsx("div", { "data-slot": "footer-inner", className: cn("relative z-10 mx-auto w-full max-w-[1200px]", variant === "mega" ? "grid gap-8" : "flex flex-wrap items-center justify-between gap-4", className), ...props }));
3
+ function Footer({ className, variant = "flat", width = "content", ...props }) {
4
+ return (_jsx("footer", { "data-slot": "footer", "data-variant": variant, "data-width": width, className: cn("dark relative isolate overflow-hidden border-t border-border bg-card py-12 text-foreground [&_a]:no-underline", width === "content" && "px-6", className), ...props }));
5
+ }
6
+ function FooterInner({ className, variant = "flat", width = "content", ...props }) {
7
+ return (_jsx("div", { "data-slot": "footer-inner", className: cn("relative z-10", width === "page" ? "nc-page" : "mx-auto w-full max-w-[1200px]", variant === "mega" ? "grid gap-8" : "flex flex-wrap items-center justify-between gap-4", className), ...props }));
26
8
  }
27
9
  function FooterBrand({ className, ...props }) {
28
10
  return (_jsx("a", { "data-slot": "footer-brand", className: cn("inline-flex items-center gap-2.5 text-sm font-semibold text-foreground [&_img]:block [&_img]:h-6 [&_img]:w-auto [&_svg]:block [&_svg]:h-6 [&_svg]:w-auto", className), ...props }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nadicodeai/ui",
3
- "version": "10.0.2",
3
+ "version": "10.1.0",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -72,7 +72,7 @@
72
72
  "@assistant-ui/react": "0.15.21",
73
73
  "@assistant-ui/react-markdown": "0.14.16",
74
74
  "@base-ui/react": "^1.8.0",
75
- "@nadicodeai/design-system": "10.0.2",
75
+ "@nadicodeai/design-system": "10.1.0",
76
76
  "class-variance-authority": "^0.7.1",
77
77
  "clsx": "^2.1.1",
78
78
  "cmdk": "^1.1.1",