@gridui/site-footer 1.0.0 → 1.1.1

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 CHANGED
@@ -14,6 +14,32 @@ Section links use the public SiteFooterLink component. SiteFooterLinkItem is the
14
14
  link data contract containing `label` and `href`; it replaces the former data type
15
15
  named SiteFooterLink without a compatibility alias.
16
16
 
17
+ ## Branding dimensions
18
+
19
+ `brandingWidth` and `brandingMinHeight` accept native CSS lengths or numbers in
20
+ pixels. They also accept `{ base, md?, lg? }`, with `md` at 40rem and `lg` at
21
+ 64rem. Missing breakpoints inherit the previous value. Dimensions apply only to
22
+ the branding region; native `style` continues to style the footer element.
23
+
24
+ ```tsx
25
+ <SiteFooter
26
+ branding={<h2>Product</h2>}
27
+ sections={sections}
28
+ brandingWidth={{ base: "auto", md: "16rem" }}
29
+ brandingMinHeight={0}
30
+ />
31
+ ```
32
+
33
+ An explicit width fixes the branding column while navigation uses the remaining
34
+ space, including widths below the default 12rem minimum. Use `base: "auto"` to
35
+ retain full-width mobile branding. `brandingMinHeight={0}` removes the reserved
36
+ minimum while retaining content padding and navigation alignment.
37
+
38
+ Omitting these props retains the existing proportions: branding grows from a
39
+ 25% basis with a 12rem minimum at 40rem and above, and has a 14rem minimum height
40
+ at those widths. Mobile branding remains content-sized. Structural Split seams
41
+ continue to follow the mobile and desktop arrangement.
42
+
17
43
  ## Footer links
18
44
 
19
45
  ```tsx
package/dist/index.js CHANGED
@@ -22,7 +22,36 @@ var SiteFooterLink = (props) => {
22
22
 
23
23
  // src/site-footer/style.ts
24
24
  import { cn as cn3 } from "@gridui/style-utils";
25
+ import { resolveResponsive } from "@gridui/style-utils/responsive";
25
26
  import { cva as cva2 } from "class-variance-authority";
27
+ var siteFooterBrandingStyle = (width, minHeight) => {
28
+ const style = {};
29
+ for (const [
30
+ name,
31
+ value
32
+ ] of [
33
+ [
34
+ "width",
35
+ width
36
+ ],
37
+ [
38
+ "min-height",
39
+ minHeight
40
+ ]
41
+ ]) {
42
+ if (value === void 0) {
43
+ continue;
44
+ }
45
+ const values = resolveResponsive(value);
46
+ for (const [
47
+ breakpoint,
48
+ size
49
+ ] of Object.entries(values)) {
50
+ style[`--gridui-footer-branding-${name}-${breakpoint}`] = typeof size === "number" ? `${size}px` : size;
51
+ }
52
+ }
53
+ return style;
54
+ };
26
55
  var siteFooterStyles = cva2(cn3(
27
56
  "gridui-site-footer",
28
57
  "[&_.gridui-site-footer-brand]:flex [&_.gridui-site-footer-brand]:flex-col [&_.gridui-site-footer-brand]:items-start [&_.gridui-site-footer-brand]:gap-gridui-8"
@@ -38,8 +67,7 @@ var siteFooterSectionsStyles = cva2(cn3(
38
67
  var siteFooterBrandingStyles = cva2(cn3(
39
68
  "gridui-site-footer-branding",
40
69
  "pt-gridui-32 px-gridui-24",
41
- "[&_h2]:font-brand [&_h2]:text-[1.5rem] [&_h2]:font-medium [&_h2]:leading-[1.2]",
42
- "min-[40rem]:min-h-56"
70
+ "[&_h2]:font-brand [&_h2]:text-[1.5rem] [&_h2]:font-medium [&_h2]:leading-[1.2]"
43
71
  ));
44
72
  var siteFooterSectionStyles = cva2(cn3(
45
73
  "gridui-site-footer-section",
@@ -55,6 +83,8 @@ import { jsx as jsx2, jsxs } from "react/jsx-runtime";
55
83
  var SiteFooter = (props) => {
56
84
  const {
57
85
  branding,
86
+ brandingWidth,
87
+ brandingMinHeight,
58
88
  credit,
59
89
  agents,
60
90
  sections,
@@ -91,6 +121,8 @@ var SiteFooter = (props) => {
91
121
  "div",
92
122
  {
93
123
  className: cn4(siteFooterBrandingStyles()),
124
+ "data-branding-width": brandingWidth === void 0 ? void 0 : "custom",
125
+ style: siteFooterBrandingStyle(brandingWidth, brandingMinHeight),
94
126
  children: branding
95
127
  }
96
128
  ),
package/dist/index.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/site-footer-link/style.ts", "../src/site-footer-link/site-footer-link.tsx", "../src/site-footer/style.ts", "../src/site-footer/site-footer.tsx"],
4
- "sourcesContent": ["/**\n * @author WMXPY\n * @package Site Footer\n * @namespace SiteFooterLink\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const siteFooterLinkStyles = cva(cn(\n \"gridui-site-footer-link\",\n \"inline-flex max-w-full min-w-0 items-center gap-gridui-8 type-supporting text-foreground no-underline wrap-anywhere underline-offset-[0.25em] hover:underline focus-visible:underline\",\n));\n", "/**\n * @author WMXPY\n * @package Site Footer\n * @namespace SiteFooterLink\n * @description Site Footer Link\n */\n\nimport { siteFooterLinkStyles } from \"./style\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type SiteFooterLinkProps = ComponentPropsWithRef<\"a\"> & {\n readonly href: string;\n};\n\nexport const SiteFooterLink: FC<SiteFooterLinkProps> = (props: SiteFooterLinkProps) => {\n const { className, ...restProps } = props;\n return (<a\n {...restProps}\n className={cn(siteFooterLinkStyles(), className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Site Footer\n * @namespace SiteFooter\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const siteFooterStyles = cva(cn(\n \"gridui-site-footer\",\n \"[&_.gridui-site-footer-brand]:flex [&_.gridui-site-footer-brand]:flex-col [&_.gridui-site-footer-brand]:items-start [&_.gridui-site-footer-brand]:gap-gridui-8\",\n));\n\nexport const siteFooterGridStyles = cva(cn(\n \"gridui-site-footer-grid\",\n \"min-w-0\",\n));\n\nexport const siteFooterSectionsStyles = cva(cn(\n \"gridui-site-footer-sections\",\n \"min-w-0\",\n));\n\nexport const siteFooterBrandingStyles = cva(cn(\n \"gridui-site-footer-branding\",\n \"pt-gridui-32 px-gridui-24\",\n \"[&_h2]:font-brand [&_h2]:text-[1.5rem] [&_h2]:font-medium [&_h2]:leading-[1.2]\",\n \"min-[40rem]:min-h-56\",\n));\n\nexport const siteFooterSectionStyles = cva(cn(\n \"gridui-site-footer-section\",\n \"min-w-0 py-gridui-32 px-gridui-24\",\n \"[&_h2]:mt-0 [&_h2]:mx-0 [&_h2]:mb-gridui-16 [&_h2]:type-subheading\",\n \"[&_ul]:flex [&_ul]:flex-col [&_ul]:gap-gridui-8 [&_ul]:m-0 [&_ul]:p-0 [&_ul]:[list-style:none] [&_ul]:type-supporting\",\n));\n", "/**\n * @author WMXPY\n * @package Site Footer\n * @namespace SiteFooter\n * @description Site Footer\n */\n\nimport { SiteFooterLink } from \"../site-footer-link/site-footer-link\";\nimport { siteFooterBrandingStyles, siteFooterGridStyles, siteFooterSectionsStyles, siteFooterSectionStyles, siteFooterStyles } from \"./style\";\nimport { FrameFooter, type FrameFooterProps, Split } from \"@gridui/grid\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { FC, ReactNode } from \"react\";\n\nexport type SiteFooterLinkItem = {\n readonly label: string;\n readonly href: string;\n};\n\nexport type SiteFooterSection = {\n readonly heading: string;\n readonly links: readonly SiteFooterLinkItem[];\n};\n\nexport type SiteFooterProps = Omit<FrameFooterProps, \"children\" | \"contentLayout\" | \"padding\" | \"signatureAppearance\"> & {\n readonly branding?: ReactNode;\n readonly credit?: ReactNode;\n readonly agents?: ReactNode;\n readonly sections: readonly SiteFooterSection[];\n};\n\nexport const SiteFooter: FC<SiteFooterProps> = (props: SiteFooterProps) => {\n const {\n branding,\n credit,\n agents,\n sections,\n tone = \"brand\",\n boundary = \"band\",\n className,\n ...restProps\n } = props;\n return (<FrameFooter\n {...restProps}\n tone={tone}\n boundary={boundary}\n padding={0}\n contentLayout=\"block\"\n signatureAppearance=\"cropped\"\n className={cn(siteFooterStyles(), className)}\n >\n <div\n className={cn(siteFooterGridStyles())}\n >\n <Split\n direction={{\n base: \"column\",\n md: \"row\",\n }}\n >\n <div\n className={cn(siteFooterBrandingStyles())}\n >\n {branding}\n </div>\n {sections.length > 0 && (<Split\n direction={{\n base: \"column\",\n md: \"row\",\n }}\n className={cn(siteFooterSectionsStyles())}\n >\n {sections.map((section) => {\n return (<nav\n key={section.heading}\n aria-label={section.heading}\n className={cn(siteFooterSectionStyles())}\n >\n <h2>\n {section.heading}\n </h2>\n <ul>\n {section.links.map((link) => {\n return (<li\n key={link.href}\n >\n <SiteFooterLink\n href={link.href}\n >\n {link.label}\n </SiteFooterLink>\n </li>);\n })}\n </ul>\n </nav>);\n })}\n </Split>)}\n </Split>\n {credit}\n </div>\n {agents}\n </FrameFooter>);\n};\n"],
5
- "mappings": ";AAOA,SAAS,UAAU;AACnB,SAAS,WAAW;AAEb,IAAM,uBAAuB,IAAI;AAAA,EACpC;AAAA,EACA;AACJ,CAAC;;;ACLD,SAAS,MAAAA,WAAU;AASP;AAFL,IAAM,iBAA0C,CAAC,UAA+B;AACnF,QAAM,EAAE,WAAW,GAAG,UAAU,IAAI;AACpC,SAAQ;AAAA,IAAC;AAAA;AAAA,MACJ,GAAG;AAAA,MACJ,WAAWA,IAAG,qBAAqB,GAAG,SAAS;AAAA;AAAA,EACnD;AACJ;;;ACdA,SAAS,MAAAC,WAAU;AACnB,SAAS,OAAAC,YAAW;AAEb,IAAM,mBAAmBA,KAAID;AAAA,EAChC;AAAA,EACA;AACJ,CAAC;AAEM,IAAM,uBAAuBC,KAAID;AAAA,EACpC;AAAA,EACA;AACJ,CAAC;AAEM,IAAM,2BAA2BC,KAAID;AAAA,EACxC;AAAA,EACA;AACJ,CAAC;AAEM,IAAM,2BAA2BC,KAAID;AAAA,EACxC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ,CAAC;AAEM,IAAM,0BAA0BC,KAAID;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ,CAAC;;;AC5BD,SAAS,aAAoC,aAAa;AAC1D,SAAS,MAAAE,WAAU;AAiDH,gBAAAC,MAagB,YAbhB;AA7BT,IAAM,aAAkC,CAAC,UAA2B;AACvE,QAAM;AAAA,IACF;AAAA,IACA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;AAAA,0BAoBjB;AAAA,wBACJ,CAAC;AAAA;AAAA,oBACL;AAAA;AAAA;AAAA,cACJ;AAAA,cACC;AAAA;AAAA;AAAA,QACL;AAAA,QACC;AAAA;AAAA;AAAA,EACL;AACJ;",
4
+ "sourcesContent": ["/**\n * @author WMXPY\n * @package Site Footer\n * @namespace SiteFooterLink\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const siteFooterLinkStyles = cva(cn(\n \"gridui-site-footer-link\",\n \"inline-flex max-w-full min-w-0 items-center gap-gridui-8 type-supporting text-foreground no-underline wrap-anywhere underline-offset-[0.25em] hover:underline focus-visible:underline\",\n));\n", "/**\n * @author WMXPY\n * @package Site Footer\n * @namespace SiteFooterLink\n * @description Site Footer Link\n */\n\nimport { siteFooterLinkStyles } from \"./style\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type SiteFooterLinkProps = ComponentPropsWithRef<\"a\"> & {\n readonly href: string;\n};\n\nexport const SiteFooterLink: FC<SiteFooterLinkProps> = (props: SiteFooterLinkProps) => {\n const { className, ...restProps } = props;\n return (<a\n {...restProps}\n className={cn(siteFooterLinkStyles(), className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Site Footer\n * @namespace SiteFooter\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { resolveResponsive, type Responsive } from \"@gridui/style-utils/responsive\";\nimport { cva } from \"class-variance-authority\";\nimport type { CSSProperties } from \"react\";\n\nexport const siteFooterBrandingStyle = (\n width: Responsive<NonNullable<CSSProperties[\"width\"]>> | undefined,\n minHeight: Responsive<NonNullable<CSSProperties[\"minHeight\"]>> | undefined,\n): CSSProperties & {\n [key: `--gridui-footer-branding-${string}`]: string;\n} => {\n const style: CSSProperties & {\n [key: `--gridui-footer-branding-${string}`]: string;\n } = {};\n for (const [\n name,\n value,\n ] of [\n [\n \"width\",\n width,\n ],\n [\n \"min-height\",\n minHeight,\n ],\n ] as const) {\n if (value === undefined) {\n continue;\n }\n const values = resolveResponsive(value);\n for (const [\n breakpoint,\n size,\n ] of Object.entries(values)) {\n style[`--gridui-footer-branding-${name}-${breakpoint}`] = typeof size === \"number\" ? `${size}px` : size;\n }\n }\n return style;\n};\n\nexport const siteFooterStyles = cva(cn(\n \"gridui-site-footer\",\n \"[&_.gridui-site-footer-brand]:flex [&_.gridui-site-footer-brand]:flex-col [&_.gridui-site-footer-brand]:items-start [&_.gridui-site-footer-brand]:gap-gridui-8\",\n));\n\nexport const siteFooterGridStyles = cva(cn(\n \"gridui-site-footer-grid\",\n \"min-w-0\",\n));\n\nexport const siteFooterSectionsStyles = cva(cn(\n \"gridui-site-footer-sections\",\n \"min-w-0\",\n));\n\nexport const siteFooterBrandingStyles = cva(cn(\n \"gridui-site-footer-branding\",\n \"pt-gridui-32 px-gridui-24\",\n \"[&_h2]:font-brand [&_h2]:text-[1.5rem] [&_h2]:font-medium [&_h2]:leading-[1.2]\",\n));\n\nexport const siteFooterSectionStyles = cva(cn(\n \"gridui-site-footer-section\",\n \"min-w-0 py-gridui-32 px-gridui-24\",\n \"[&_h2]:mt-0 [&_h2]:mx-0 [&_h2]:mb-gridui-16 [&_h2]:type-subheading\",\n \"[&_ul]:flex [&_ul]:flex-col [&_ul]:gap-gridui-8 [&_ul]:m-0 [&_ul]:p-0 [&_ul]:[list-style:none] [&_ul]:type-supporting\",\n));\n", "/**\n * @author WMXPY\n * @package Site Footer\n * @namespace SiteFooter\n * @description Site Footer\n */\n\nimport { SiteFooterLink } from \"../site-footer-link/site-footer-link\";\nimport { siteFooterBrandingStyle, siteFooterBrandingStyles, siteFooterGridStyles, siteFooterSectionsStyles, siteFooterSectionStyles, siteFooterStyles } from \"./style\";\nimport { FrameFooter, type FrameFooterProps, Split } from \"@gridui/grid\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { Responsive } from \"@gridui/style-utils/responsive\";\nimport type { CSSProperties, FC, ReactNode } from \"react\";\n\nexport type SiteFooterLinkItem = {\n readonly label: string;\n readonly href: string;\n};\n\nexport type SiteFooterSection = {\n readonly heading: string;\n readonly links: readonly SiteFooterLinkItem[];\n};\n\nexport type SiteFooterProps = Omit<FrameFooterProps, \"children\" | \"contentLayout\" | \"padding\" | \"signatureAppearance\"> & {\n readonly branding?: ReactNode;\n readonly brandingWidth?: Responsive<NonNullable<CSSProperties[\"width\"]>>;\n readonly brandingMinHeight?: Responsive<NonNullable<CSSProperties[\"minHeight\"]>>;\n readonly credit?: ReactNode;\n readonly agents?: ReactNode;\n readonly sections: readonly SiteFooterSection[];\n};\n\nexport const SiteFooter: FC<SiteFooterProps> = (props: SiteFooterProps) => {\n const {\n branding,\n brandingWidth,\n brandingMinHeight,\n credit,\n agents,\n sections,\n tone = \"brand\",\n boundary = \"band\",\n className,\n ...restProps\n } = props;\n return (<FrameFooter\n {...restProps}\n tone={tone}\n boundary={boundary}\n padding={0}\n contentLayout=\"block\"\n signatureAppearance=\"cropped\"\n className={cn(siteFooterStyles(), className)}\n >\n <div\n className={cn(siteFooterGridStyles())}\n >\n <Split\n direction={{\n base: \"column\",\n md: \"row\",\n }}\n >\n <div\n className={cn(siteFooterBrandingStyles())}\n data-branding-width={brandingWidth === undefined ? undefined : \"custom\"}\n style={siteFooterBrandingStyle(brandingWidth, brandingMinHeight)}\n >\n {branding}\n </div>\n {sections.length > 0 && (<Split\n direction={{\n base: \"column\",\n md: \"row\",\n }}\n className={cn(siteFooterSectionsStyles())}\n >\n {sections.map((section) => {\n return (<nav\n key={section.heading}\n aria-label={section.heading}\n className={cn(siteFooterSectionStyles())}\n >\n <h2>\n {section.heading}\n </h2>\n <ul>\n {section.links.map((link) => {\n return (<li\n key={link.href}\n >\n <SiteFooterLink\n href={link.href}\n >\n {link.label}\n </SiteFooterLink>\n </li>);\n })}\n </ul>\n </nav>);\n })}\n </Split>)}\n </Split>\n {credit}\n </div>\n {agents}\n </FrameFooter>);\n};\n"],
5
+ "mappings": ";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MAAM,IAAI,CAAC,SAAS;AACzB,yCAAQ,gBAAAA;AAAA,oCAAC;AAAA;AAAA,sCAGL,0BAAAA;AAAA,wCAAC;AAAA;AAAA,0CACG,MAAM,KAAK;AAAA,0CAEV,eAAK;AAAA;AAAA,sCACV;AAAA;AAAA,oCANK,KAAK;AAAA,kCAOd;AAAA,gCACJ,CAAC,GACL;AAAA;AAAA;AAAA,4BAnBK,QAAQ;AAAA,0BAoBjB;AAAA,wBACJ,CAAC;AAAA;AAAA,oBACL;AAAA;AAAA;AAAA,cACJ;AAAA,cACC;AAAA;AAAA;AAAA,QACL;AAAA,QACC;AAAA;AAAA;AAAA,EACL;AACJ;",
6
6
  "names": ["cn", "cn", "cva", "cn", "jsx"]
7
7
  }
@@ -5,7 +5,8 @@
5
5
  * @description Site Footer
6
6
  */
7
7
  import { type FrameFooterProps } from "@gridui/grid";
8
- import type { FC, ReactNode } from "react";
8
+ import type { Responsive } from "@gridui/style-utils/responsive";
9
+ import type { CSSProperties, FC, ReactNode } from "react";
9
10
  export type SiteFooterLinkItem = {
10
11
  readonly label: string;
11
12
  readonly href: string;
@@ -16,6 +17,8 @@ export type SiteFooterSection = {
16
17
  };
17
18
  export type SiteFooterProps = Omit<FrameFooterProps, "children" | "contentLayout" | "padding" | "signatureAppearance"> & {
18
19
  readonly branding?: ReactNode;
20
+ readonly brandingWidth?: Responsive<NonNullable<CSSProperties["width"]>>;
21
+ readonly brandingMinHeight?: Responsive<NonNullable<CSSProperties["minHeight"]>>;
19
22
  readonly credit?: ReactNode;
20
23
  readonly agents?: ReactNode;
21
24
  readonly sections: readonly SiteFooterSection[];
@@ -4,6 +4,11 @@
4
4
  * @namespace SiteFooter
5
5
  * @description Style
6
6
  */
7
+ import { type Responsive } from "@gridui/style-utils/responsive";
8
+ import type { CSSProperties } from "react";
9
+ export declare const siteFooterBrandingStyle: (width: Responsive<NonNullable<CSSProperties["width"]>> | undefined, minHeight: Responsive<NonNullable<CSSProperties["minHeight"]>> | undefined) => CSSProperties & {
10
+ [key: `--gridui-footer-branding-${string}`]: string;
11
+ };
7
12
  export declare const siteFooterStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
8
13
  export declare const siteFooterGridStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
9
14
  export declare const siteFooterSectionsStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
package/dist/styles.css CHANGED
@@ -59,11 +59,6 @@
59
59
  .focus-visible\:underline:focus-visible {
60
60
  text-decoration-line: underline;
61
61
  }
62
- @media (width >= 40rem) {
63
- .min-\[40rem\]\:min-h-56 {
64
- min-height: calc(var(--spacing) * 56);
65
- }
66
- }
67
62
  .\[\&_\.gridui-site-footer-brand\]\:flex .gridui-site-footer-brand {
68
63
  display: flex;
69
64
  }
@@ -130,11 +125,23 @@
130
125
  @layer components {
131
126
  .gridui-site-footer-branding {
132
127
  padding-bottom: var(--gridui-space-32);
128
+ min-height: var(--gridui-footer-branding-min-height-base, 0);
129
+ }
130
+ .gridui-site-footer-branding[data-branding-width] {
131
+ width: var(--gridui-footer-branding-width-base);
132
+ min-width: 0;
133
+ max-width: 100%;
133
134
  }
134
135
  @media (min-width: 40rem) {
135
136
  .gridui-site-footer-branding {
136
137
  flex: 1 1 25%;
137
138
  min-width: 12rem;
139
+ min-height: var(--gridui-footer-branding-min-height-md, calc(var(--spacing) * 56));
140
+ }
141
+ .gridui-site-footer-branding[data-branding-width] {
142
+ flex: 0 0 var(--gridui-footer-branding-width-md);
143
+ width: var(--gridui-footer-branding-width-md);
144
+ min-width: 0;
138
145
  }
139
146
  .gridui-site-footer-sections {
140
147
  flex: 3 1 75%;
@@ -143,6 +150,15 @@
143
150
  flex: 1 1 0;
144
151
  }
145
152
  }
153
+ @media (min-width: 64rem) {
154
+ .gridui-site-footer-branding {
155
+ min-height: var(--gridui-footer-branding-min-height-lg, calc(var(--spacing) * 56));
156
+ }
157
+ .gridui-site-footer-branding[data-branding-width] {
158
+ flex-basis: var(--gridui-footer-branding-width-lg);
159
+ width: var(--gridui-footer-branding-width-lg);
160
+ }
161
+ }
146
162
  }
147
163
  @property --tw-leading {
148
164
  syntax: "*";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridui/site-footer",
3
- "version": "1.0.0",
3
+ "version": "1.1.1",
4
4
  "description": "GridUI React site footer",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -26,16 +26,16 @@
26
26
  "react-dom": "^19.2.0"
27
27
  },
28
28
  "dependencies": {
29
- "@gridui/grid": "^2.1.4",
30
- "@gridui/style-utils": "^2.1.2",
31
- "@gridui/theme": "^2.1.2",
29
+ "@gridui/grid": "^2.2.1",
30
+ "@gridui/style-utils": "^2.1.3",
31
+ "@gridui/theme": "^2.2.1",
32
32
  "class-variance-authority": "0.7.1"
33
33
  },
34
34
  "devDependencies": {
35
- "@gridui-internal/configuration": "0.0.0",
35
+ "@gridui-internal/configuration": "0.0.0-internal",
36
36
  "@jest/globals": "30.5.2",
37
37
  "@types/jest": "30.0.0",
38
- "@types/node": "26.6.5",
38
+ "@types/node": "26.6.6",
39
39
  "@types/react": "19.3.0",
40
40
  "@types/react-dom": "19.3.0",
41
41
  "jest": "30.5.2",