Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dist-ssr
# Angular
.angular
.firebase
packages/angular/src/version.ts

# Next.js
.next
Expand Down
8 changes: 4 additions & 4 deletions examples/nextjs-ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
"@firebase-oss/ui-translations": "workspace:*",
"firebase": "^11.10.0",
"next": "15.1.7",
"react": "19.1.1",
"react-dom": "19.1.1",
"react": "19.2.1",
"react-dom": "19.2.1",
"server-only": "^0.0.1"
},
"devDependencies": {
"@tailwindcss/postcss": "^4.0.6",
"@types/node": "^20",
"@types/react": "19.1.16",
"@types/react-dom": "19.1.9",
"@types/react": "19.2.7",
"@types/react-dom": "19.2.3",
"vite": "catalog:",
"postcss": "^8.5.2",
"postcss-load-config": "^6.0.1",
Expand Down
27 changes: 25 additions & 2 deletions packages/angular/generate-logos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,15 @@ import { Component, input } from "@angular/core";
${cleanedSvg}
\`,
})
/**
* The ${componentName} logo SVG component.
*/
export class ${componentName}LogoComponent {
/** The width of the logo. */
width = input<string | number>("1em");
/** The height of the logo. */
height = input<string | number>("1em");
/** Optional additional CSS class names. */
className = input<string>("");
}
`;
Expand Down Expand Up @@ -143,14 +149,31 @@ async function generateLogoComponents(): Promise<void> {
}

// Generate an index file to export all components
const indexContent = brandDirectories
const indexContent = `/**
* Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

${brandDirectories
.map((brandDir) => {
const brandName = brandDir.name;
const componentName = toPascalCase(brandName);
const fileName = toKebabCase(brandName);
return `export { ${componentName}LogoComponent } from './${fileName}';`;
})
.join("\n");
.join("\n")}
`;

const indexPath = join(ANGULAR_LOGOS_DIR, "index.ts");
await writeFile(indexPath, indexContent, "utf-8");
Expand Down
2 changes: 1 addition & 1 deletion packages/angular/src/lib/components/logos/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import { Component, input } from "@angular/core";
`,
})
/**
* The GitHub logo SVG component.
* The Github logo SVG component.
*/
export class GithubLogoComponent {
/** The width of the logo. */
Expand Down
Loading