Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: rename instances of NextUI to Hero UI #4645

Merged
merged 13 commits into from
Feb 5, 2025
Merged
Show file tree
Hide file tree
Changes from 10 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
2 changes: 2 additions & 0 deletions .changeset/purple-teachers-pull.md
wingkwong marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
8 changes: 4 additions & 4 deletions apps/docs/components/marketing/heroui-pro-section.tsx
wingkwong marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ export const HeroUIProSection = () => {

if (isDarkMode) {
imgSrc = isMobile
? "/images/nextuipro[email protected]"
: "/images/nextuipro-section-background.webp";
? "/images/herouipro[email protected]"
: "/images/herouipro-section-background.webp";
} else {
imgSrc = isMobile
? "/images/nextuipro[email protected]"
: "/images/nextuipro-section-background-light.webp";
? "/images/herouipro[email protected]"
: "/images/herouipro-section-background-light.webp";
}

const mobileClassName: string = isDarkMode
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/config/routes.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
{
"key": "laravel",
"title": "Laravel",
"keywords": "laravel, nextui",
"keywords": "laravel, heroui",
"path": "/docs/frameworks/laravel.mdx",
"newPost": true
}
Expand Down
4 changes: 2 additions & 2 deletions apps/docs/content/blog/introducing-heroui.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "Introducing HeroUI"
description: "HeroUI is the new identity for NextUI, bringing the same beautiful components and features you love under a new name."
date: "2025-01-16"
image: "/blog/introducing-heroui.png"
tags: ["nextui", "select", "listbox", "scroll-shadow", "multi-select"]
tags: ["nextui", "heroui", "select", "listbox", "scroll-shadow", "multi-select"]
author:
name: "Junior Garcia"
username: "@jrgarciadev"
Expand Down Expand Up @@ -85,7 +85,7 @@ Our 2025 roadmap is packed with exciting new features and components. Upcoming r
As always, we are incredibly grateful for your continued support and contributions. There are many exciting milestones ahead, and we invite you to join us on this journey.


Special thanks to our amazing team members who made this rebranding possible after a lot of hard work and dedication [@winchesHe](https://github.com/winchesHe),
Special thanks to our amazing team members who made this rebranding possible after a lot of hard work and dedication [@winchesHe](https://github.com/winchesHe),
[@wingkwong](https://github.com/wingkwong), [@Peterl561](https://github.com/Peterl561), [@macci001](https://github.com/macci001), [@vinroger](https://github.com/vinroger), [@ryo-manba](https://github.com/ryo-manba), [@tianenpang](https://github.com/tianenpang),
[@andressul_](https://x.com/andressul_), [@danieloiteiro](https://dribbble.com/DanielOiteiro/about), [@jrgarciadev](https://x.com/jrgarciadev). 🚀

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/components/drawer/custom-styles.raw.jsx
wingkwong marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export default function App() {
alt="Event image"
className="aspect-square w-full hover:scale-110"
height={300}
src="https://herouipro.nyc3.cdn.digitaloceanspaces.com/components-images/places/san-francisco.png"
src="https://nextuipro.nyc3.cdn.digitaloceanspaces.com/components-images/places/san-francisco.png"
/>
</div>
<div className="flex flex-col gap-2 py-4">
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/utils/get-sponsors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const getSponsors = async () => {
// if (!__PROD__) {
// return mockData;
// }
const res = await fetch("https://opencollective.com/nextui/members/all.json");
const res = await fetch("https://opencollective.com/heroui/members/all.json");
const data = (await res.json()) as Sponsor[];

// filter out repeated sponsors
Expand Down
2 changes: 1 addition & 1 deletion packages/components/drawer/stories/drawer.stories.tsx
wingkwong marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ const CustomStylesTemplate = (args: DrawerProps) => {
alt="Event image"
className="aspect-square w-full hover:scale-110"
height={300}
src="https://herouipro.nyc3.cdn.digitaloceanspaces.com/components-images/places/san-francisco.png"
src="https://nextuipro.nyc3.cdn.digitaloceanspaces.com/components-images/places/san-francisco.png"
/>
</div>
<div className="flex flex-col gap-2 py-4">
Expand Down
4 changes: 2 additions & 2 deletions packages/core/react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
</br>
<p align="center">
<a href="https://github.com/heroui-inc/heroui/blob/main/LICENSE">
<img src="https://img.shields.io/npm/l/@nextui-org/react?style=flat" alt="License">
<img src="https://img.shields.io/npm/l/@heroui/react?style=flat" alt="License">
</a>
<a href="https://codecov.io/gh/jrgarciadev/nextui">
<img src="https://codecov.io/gh/jrgarciadev/nextui/branch/main/graph/badge.svg?token=QJF2QKR5N4" alt="codecov badge">
</a>
<!-- <a href="https://github.com/heroui-inc/heroui/actions/workflows/main.yaml">
<img src="https://github.com/heroui-inc/heroui/actions/workflows/main.yaml/badge.svg" alt="CI/CD nextui">
<img src="https://github.com/heroui-inc/heroui/actions/workflows/main.yaml/badge.svg" alt="CI/CD heroui">
</a> -->
<a href="https://www.npmjs.com/package/@heroui/react">
<img src="https://img.shields.io/npm/dm/@heroui/react.svg?style=flat-round" alt="npm downloads">
Expand Down
4 changes: 2 additions & 2 deletions plop/component/src/use-{{componentName}}.ts.hbs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import type { {{capitalize componentName}}VariantProps } from "@heroui/theme";

import {HTMLNextUIProps,mapPropsVariants} from "@heroui/system";
import {HTMLHeroUIProps, mapPropsVariants} from "@heroui/system";
import { {{componentName}} } from "@heroui/theme";
import {ReactRef, useDOMRef} from "@heroui/react-utils";
import {objectToDeps} from "@heroui/shared-utils";
import {useMemo} from "react";

interface Props extends HTMLNextUIProps<"div"> {
interface Props extends HTMLHeroUIProps<"div"> {
/**
* Ref to the DOM node.
*/
Expand Down
2 changes: 1 addition & 1 deletion plop/component/src/{{componentName}}.tsx.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ const {{capitalize componentName}} = forwardRef<"div", {{capitalize componentNam
);
});

{{capitalize componentName}}.displayName = "NextUI.{{capitalize componentName}}";
{{capitalize componentName}}.displayName = "HeroUI.{{capitalize componentName}}";

export default {{capitalize componentName}};