diff --git a/.changeset/config.json b/.changeset/config.json index 4961d58b04..18e7fe8eb7 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -2,7 +2,7 @@ "$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json", "changelog": [ "@changesets/changelog-github", - { "repo": "nextui-org/nextui" } + { "repo": "frontio-ai/heroui" } ], "commit": false, "fixed": [], @@ -14,7 +14,7 @@ "onlyUpdatePeerDependentsWhenOutOfRange": true }, "ignore": [ - "@nextui-org/docs", - "@nextui-org/storybook" + "@heroui/docs", + "@heroui/storybook" ] } \ No newline at end of file diff --git a/.commitlintrc.cjs b/.commitlintrc.cjs index a822937a8a..b4c2778230 100644 --- a/.commitlintrc.cjs +++ b/.commitlintrc.cjs @@ -3,7 +3,7 @@ const conventional = require("@commitlint/config-conventional"); module.exports = { extends: ["@commitlint/config-conventional"], plugins: ["commitlint-plugin-function-rules"], - helpUrl: "https://github.com/nextui-org/nextui/blob/main/CONTRIBUTING.md#commit-convention", + helpUrl: "https://github.com/frontio-ai/heroui/blob/main/CONTRIBUTING.md#commit-convention", rules: { ...conventional.rules, "type-enum": [ diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index fdb6c9ec4b..b49d4866f4 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -8,28 +8,28 @@ body: value: | Thank you for reporting an issue :pray:. - This issue tracker is for reporting bugs found in [NextUI github repository](https://github.com/nextui-org/nextui/) + This issue tracker is for reporting bugs found in [NextUI github repository](https://github.com/frontio-ai/heroui/) If you have a question about how to achieve something and are struggling, please post a question inside of either of the following places: - - NextUI's [Discussion's tab](https://github.com/nextui-org/nextui/discussions) - - NextUI's [Discord channel](https://discord.gg/9b6yyZKmH4) + - HeroUI's [Discussion's tab](https://github.com/frontio-ai/heroui/discussions) + - HeroUI's [Discord channel](https://discord.gg/9b6yyZKmH4) Before submitting a new bug/issue, please check the links below to see if there is a solution or question posted there already: - - NextUI's [Issue's tab](https://github.com/nextui-org/nextui/pulls?q=is%3Apr+is%3Aopen+sort%3Aupdated-desc) - - NextUI's [closed issues tab](https://github.com/nextui-org/nextui/issues?q=is%3Aissue+sort%3Aupdated-desc+is%3Aclosed) - - NextUI's [Discussions tab](https://github.com/nextui-org/nextui/discussions) + - HeroUI's [Issue's tab](https://github.com/frontio-ai/heroui/pulls?q=is%3Apr+is%3Aopen+sort%3Aupdated-desc) + - HeroUI's [closed issues tab](https://github.com/frontio-ai/heroui/issues?q=is%3Aissue+sort%3Aupdated-desc+is%3Aclosed) + - HeroUI's [Discussions tab](https://github.com/frontio-ai/heroui/discussions) The more information you fill in, the better the community can help you. - type: input id: version attributes: - label: NextUI Version + label: HeroUI Version description: | - Please provide the version of NextUI you are using. + Please provide the version of HeroUI you are using. You can find the version number in the package.json file. For global installation, please state the version only. (e.g. 2.4.2) - For individual installation, please state the package name as well. (e.g. @nextui-org/button@2.0.34) + For individual installation, please state the package name as well. (e.g. @heroui/button@2.0.34) placeholder: ex. 2.4.2 validations: required: true @@ -47,7 +47,7 @@ body: description: | Which website or app were you using when the bug happened? Note: - - Your bug will may get fixed much faster if we can run your code and it doesn't have dependencies other than the `@nextui-org/react` npm package. + - Your bug will may get fixed much faster if we can run your code and it doesn't have dependencies other than the `@heroui/react` npm package. - To create a shareable code example you can use Stackblitz (https://stackblitz.com/). Please no localhost URLs. - Please read these tips for providing a minimal example: https://stackoverflow.com/help/mcve. placeholder: | diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index e8f6cc03d3..754e2272f2 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,11 +1,11 @@ blank_issues_enabled: true contact_links: - name: 🤔 Long question or ideas? - url: https://github.com/nextui-org/nextui/discussions + url: https://github.com/frontio-ai/heroui/discussions about: Ask long-form questions and discuss ideas. - name: 💬 Discord Community Chat url: https://discord.gg/9b6yyZKmH4 - about: Ask quick questions or simply chat on the `NextUI` community Discord server. + about: Ask quick questions or simply chat on the `HeroUI` community Discord server. - name: 💬 New Updates (X) url: https://x.com/getnextui - about: Link to our X account if you want to follow us and stay up to date with NextUI news + about: Link to our X account if you want to follow us and stay up to date with HeroUI news diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index 0d90055d5c..537ed47e6a 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -2,7 +2,7 @@ name: Feature request title: "[Feature Request] YOUR_FEATURE_TITLE_HERE_REPLACE_ME" labels: [feature request] description: | - 💡 Suggest an idea for the `NextUI` project + 💡 Suggest an idea for the `HeroUI` project Examples - propose a new component - improve an exiting component @@ -12,7 +12,7 @@ body: attributes: value: | This issue form is for requesting features only! For example, requesting a new component, behavior ... etc - If you want to report a bug, please use the [bug report form](https://github.com/nextui-org/nextui/issues/new?assignees=&labels=&template=bug_report.yml). + If you want to report a bug, please use the [bug report form](https://github.com/frontio-ai/heroui/issues/new?assignees=&labels=&template=bug_report.yml). - type: textarea validations: required: true diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 9c4ff17f0c..0110e86978 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -23,6 +23,6 @@ Closes # ## 💣 Is this a breaking change (Yes/No): - + ## 📝 Additional Information diff --git a/.npmrc b/.npmrc index 1d46cebd7c..ebf0644e99 100644 --- a/.npmrc +++ b/.npmrc @@ -3,4 +3,4 @@ enable-pre-post-scripts=true public-hoist-pattern[]=*tailwind-variants* public-hoist-pattern[]=*framer-motion* public-hoist-pattern[]=*@react-aria/interactions* -public-hoist-pattern[]=*@nextui-org/theme* \ No newline at end of file +public-hoist-pattern[]=*@heroui/theme* \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index afbd43109f..0629339a5e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,8 +1,8 @@ -# Next UI Contributing Guide +# HeroUI Contributing Guide -Hello!, I am very excited that you are interested in contributing with Next UI. However, before submitting your contribution, be sure to take a moment and read the following guidelines. +Hello!, I am very excited that you are interested in contributing with HeroUI. However, before submitting your contribution, be sure to take a moment and read the following guidelines. -- [Code of Conduct](https://github.com/jrgarciadev/nextui/blob/main/CODE_OF_CONDUCT.md) +- [Code of Conduct](https://github.com/frontio-ai/heroui/blob/canary/CODE_OF_CONDUCT.md) - [Extraction request guidelines](#pull-request-guidelines) - [Development Setup](#development-setup) - [Tests](#tests) @@ -79,7 +79,7 @@ https://www.conventionalcommits.org/ or check out the commit type. `scope` is just a short id that describes the scope of work. 3. Make and commit your changes following the - [commit convention](https://github.com/nextui-org/nextui/blob/main/CONTRIBUTING.md#commit-convention). + [commit convention](https://github.com/frontio-ai/heroui/blob/main/CONTRIBUTING.md#commit-convention). As you canary, you can run `pnpm build --filter=` and `pnpm test packages//` e.g. `pnpm build --filter=avatar & pnpm test packages/components/avatar` to make sure everything works as expected. @@ -235,7 +235,7 @@ best to be proactive in reaching out to those that are already helping out. GitHub by default does not publicly state that you are a member of the organization. Please feel free to change that setting for yourself so others will know who's helping out. That can be configured on the [organization -list](https://github.com/orgs/nextui-org/people) page. +list](https://github.com/orgs/frontio-ai/people) page. Being a maintainer is not an obligation. You can help when you have time and be less active when you don't. If you get a new job and get busy, that's alright. diff --git a/apps/docs/app/blog/[slug]/page.tsx b/apps/docs/app/blog/[slug]/page.tsx index e3dab232d4..e44bda5ea7 100644 --- a/apps/docs/app/blog/[slug]/page.tsx +++ b/apps/docs/app/blog/[slug]/page.tsx @@ -2,7 +2,7 @@ import type {Metadata} from "next"; import {notFound} from "next/navigation"; import {allBlogPosts} from "contentlayer2/generated"; -import {Link, User} from "@nextui-org/react"; +import {Link, User} from "@heroui/react"; import {format, parseISO} from "date-fns"; import NextLink from "next/link"; import {Balancer} from "react-wrap-balancer"; diff --git a/apps/docs/app/blog/layout.tsx b/apps/docs/app/blog/layout.tsx index a105d13a2c..b724bb9bae 100644 --- a/apps/docs/app/blog/layout.tsx +++ b/apps/docs/app/blog/layout.tsx @@ -1,4 +1,4 @@ -import {Image} from "@nextui-org/react"; +import {Image} from "@heroui/react"; import {ScriptProviders} from "@/components/scripts/script-providers"; diff --git a/apps/docs/app/docs/[[...slug]]/page.tsx b/apps/docs/app/docs/[[...slug]]/page.tsx index 0c37cbbb74..da649aba04 100644 --- a/apps/docs/app/docs/[[...slug]]/page.tsx +++ b/apps/docs/app/docs/[[...slug]]/page.tsx @@ -2,7 +2,7 @@ import type {Metadata} from "next"; import {notFound} from "next/navigation"; import {allDocs} from "contentlayer2/generated"; -import {Link} from "@nextui-org/react"; +import {Link} from "@heroui/react"; import {MDXContent} from "@/components/mdx-content"; import {siteConfig} from "@/config/site"; diff --git a/apps/docs/app/docs/layout.tsx b/apps/docs/app/docs/layout.tsx index 1f527d98df..90a29d8f1f 100644 --- a/apps/docs/app/docs/layout.tsx +++ b/apps/docs/app/docs/layout.tsx @@ -1,4 +1,4 @@ -import {Image} from "@nextui-org/react"; +import {Image} from "@heroui/react"; import manifest from "@/config/routes.json"; import {DocsSidebar} from "@/components/docs/sidebar"; diff --git a/apps/docs/app/examples/autocomplete/async-filtering/page.tsx b/apps/docs/app/examples/autocomplete/async-filtering/page.tsx index f5bcb9cb96..466dd856cd 100644 --- a/apps/docs/app/examples/autocomplete/async-filtering/page.tsx +++ b/apps/docs/app/examples/autocomplete/async-filtering/page.tsx @@ -2,7 +2,7 @@ "use client"; import * as React from "react"; -import {Autocomplete, AutocompleteItem} from "@nextui-org/react"; +import {Autocomplete, AutocompleteItem} from "@heroui/react"; import {useAsyncList} from "@react-stately/data"; type SWCharacter = { diff --git a/apps/docs/app/examples/autocomplete/async-items-loading/page.tsx b/apps/docs/app/examples/autocomplete/async-items-loading/page.tsx index 303d96cbbd..757dbf51f3 100644 --- a/apps/docs/app/examples/autocomplete/async-items-loading/page.tsx +++ b/apps/docs/app/examples/autocomplete/async-items-loading/page.tsx @@ -2,8 +2,8 @@ "use client"; import * as React from "react"; -import {Autocomplete, AutocompleteItem} from "@nextui-org/react"; -import {useInfiniteScroll} from "@nextui-org/use-infinite-scroll"; +import {Autocomplete, AutocompleteItem} from "@heroui/react"; +import {useInfiniteScroll} from "@heroui/use-infinite-scroll"; type Pokemon = { name: string; diff --git a/apps/docs/app/examples/autocomplete/fully-controlled/page.tsx b/apps/docs/app/examples/autocomplete/fully-controlled/page.tsx index ee671adf45..1864576860 100644 --- a/apps/docs/app/examples/autocomplete/fully-controlled/page.tsx +++ b/apps/docs/app/examples/autocomplete/fully-controlled/page.tsx @@ -1,7 +1,7 @@ "use client"; import * as React from "react"; -import {Autocomplete, AutocompleteItem, MenuTriggerAction} from "@nextui-org/react"; +import {Autocomplete, AutocompleteItem, MenuTriggerAction} from "@heroui/react"; import {useFilter} from "@react-aria/i18n"; const animals = [ diff --git a/apps/docs/app/examples/demo/page.tsx b/apps/docs/app/examples/demo/page.tsx index 273f613fc9..dfad08896b 100644 --- a/apps/docs/app/examples/demo/page.tsx +++ b/apps/docs/app/examples/demo/page.tsx @@ -1,6 +1,6 @@ "use client"; -import {Card, CardBody, CircularProgress} from "@nextui-org/react"; +import {Card, CardBody, CircularProgress} from "@heroui/react"; export default function ButtonDemo() { return ( diff --git a/apps/docs/app/examples/modal/placement/page.tsx b/apps/docs/app/examples/modal/placement/page.tsx index ac5f472908..6e7e1c6dfc 100644 --- a/apps/docs/app/examples/modal/placement/page.tsx +++ b/apps/docs/app/examples/modal/placement/page.tsx @@ -11,7 +11,7 @@ import { RadioGroup, Radio, ModalProps, -} from "@nextui-org/react"; +} from "@heroui/react"; import {useState} from "react"; export default function Page() { diff --git a/apps/docs/app/examples/navbar/bordered/page.tsx b/apps/docs/app/examples/navbar/bordered/page.tsx index ed0f668cbb..9ce51449f4 100644 --- a/apps/docs/app/examples/navbar/bordered/page.tsx +++ b/apps/docs/app/examples/navbar/bordered/page.tsx @@ -1,6 +1,6 @@ "use client"; -import {Navbar, NavbarBrand, NavbarContent, NavbarItem, Link, Button} from "@nextui-org/react"; +import {Navbar, NavbarBrand, NavbarContent, NavbarItem, Link, Button} from "@heroui/react"; const AcmeLogo = () => ( diff --git a/apps/docs/app/examples/navbar/controlled-menu/page.tsx b/apps/docs/app/examples/navbar/controlled-menu/page.tsx index 5c71a2b3f2..7ee66cbf61 100644 --- a/apps/docs/app/examples/navbar/controlled-menu/page.tsx +++ b/apps/docs/app/examples/navbar/controlled-menu/page.tsx @@ -10,7 +10,7 @@ import { NavbarMenuToggle, Button, Link, -} from "@nextui-org/react"; +} from "@heroui/react"; import React from "react"; const AcmeLogo = () => ( diff --git a/apps/docs/app/examples/navbar/custom-active-item/page.tsx b/apps/docs/app/examples/navbar/custom-active-item/page.tsx index ea209af433..ed9602e349 100644 --- a/apps/docs/app/examples/navbar/custom-active-item/page.tsx +++ b/apps/docs/app/examples/navbar/custom-active-item/page.tsx @@ -1,6 +1,6 @@ "use client"; -import {Navbar, NavbarBrand, NavbarContent, NavbarItem, Link, Button} from "@nextui-org/react"; +import {Navbar, NavbarBrand, NavbarContent, NavbarItem, Link, Button} from "@heroui/react"; const AcmeLogo = () => ( diff --git a/apps/docs/app/examples/navbar/disable-menu-animation/page.tsx b/apps/docs/app/examples/navbar/disable-menu-animation/page.tsx index 447f0d509c..680fa8976a 100644 --- a/apps/docs/app/examples/navbar/disable-menu-animation/page.tsx +++ b/apps/docs/app/examples/navbar/disable-menu-animation/page.tsx @@ -10,7 +10,7 @@ import { NavbarMenu, NavbarMenuItem, NavbarMenuToggle, -} from "@nextui-org/react"; +} from "@heroui/react"; import React from "react"; const AcmeLogo = () => ( diff --git a/apps/docs/app/examples/navbar/disabled-blur/page.tsx b/apps/docs/app/examples/navbar/disabled-blur/page.tsx index eabfd06544..db628dad48 100644 --- a/apps/docs/app/examples/navbar/disabled-blur/page.tsx +++ b/apps/docs/app/examples/navbar/disabled-blur/page.tsx @@ -1,6 +1,6 @@ "use client"; -import {Navbar, NavbarBrand, NavbarContent, NavbarItem, Link, Button} from "@nextui-org/react"; +import {Navbar, NavbarBrand, NavbarContent, NavbarItem, Link, Button} from "@heroui/react"; const AcmeLogo = () => ( diff --git a/apps/docs/app/examples/navbar/hide-on-scroll/page.tsx b/apps/docs/app/examples/navbar/hide-on-scroll/page.tsx index e32ef4ef44..e7fa3c75f8 100644 --- a/apps/docs/app/examples/navbar/hide-on-scroll/page.tsx +++ b/apps/docs/app/examples/navbar/hide-on-scroll/page.tsx @@ -1,6 +1,6 @@ "use client"; -import {Navbar, NavbarBrand, NavbarContent, NavbarItem, Link, Button} from "@nextui-org/react"; +import {Navbar, NavbarBrand, NavbarContent, NavbarItem, Link, Button} from "@heroui/react"; const AcmeLogo = () => ( diff --git a/apps/docs/app/examples/navbar/static/page.tsx b/apps/docs/app/examples/navbar/static/page.tsx index 5330a23f22..5a8d95522b 100644 --- a/apps/docs/app/examples/navbar/static/page.tsx +++ b/apps/docs/app/examples/navbar/static/page.tsx @@ -1,6 +1,6 @@ "use client"; -import {Navbar, NavbarBrand, NavbarContent, NavbarItem, Link, Button} from "@nextui-org/react"; +import {Navbar, NavbarBrand, NavbarContent, NavbarItem, Link, Button} from "@heroui/react"; const AcmeLogo = () => ( diff --git a/apps/docs/app/examples/navbar/usage/page.tsx b/apps/docs/app/examples/navbar/usage/page.tsx index 732cab36ad..c2248d0ff9 100644 --- a/apps/docs/app/examples/navbar/usage/page.tsx +++ b/apps/docs/app/examples/navbar/usage/page.tsx @@ -1,6 +1,6 @@ "use client"; -import {Navbar, NavbarBrand, NavbarContent, NavbarItem, Link, Button} from "@nextui-org/react"; +import {Navbar, NavbarBrand, NavbarContent, NavbarItem, Link, Button} from "@heroui/react"; const AcmeLogo = () => ( diff --git a/apps/docs/app/examples/navbar/with-avatar/page.tsx b/apps/docs/app/examples/navbar/with-avatar/page.tsx index e33a4831a9..b1999324ff 100644 --- a/apps/docs/app/examples/navbar/with-avatar/page.tsx +++ b/apps/docs/app/examples/navbar/with-avatar/page.tsx @@ -11,7 +11,7 @@ import { Dropdown, DropdownMenu, Avatar, -} from "@nextui-org/react"; +} from "@heroui/react"; const AcmeLogo = () => ( diff --git a/apps/docs/app/examples/navbar/with-dropdown-menu/page.tsx b/apps/docs/app/examples/navbar/with-dropdown-menu/page.tsx index 6d2c2f7a6c..4d3cafa58e 100644 --- a/apps/docs/app/examples/navbar/with-dropdown-menu/page.tsx +++ b/apps/docs/app/examples/navbar/with-dropdown-menu/page.tsx @@ -11,8 +11,8 @@ import { DropdownTrigger, Dropdown, DropdownMenu, -} from "@nextui-org/react"; -import {ChevronDown, Lock, Activity, Flash, Server, TagUser, Scale} from "@nextui-org/shared-icons"; +} from "@heroui/react"; +import {ChevronDown, Lock, Activity, Flash, Server, TagUser, Scale} from "@heroui/shared-icons"; const AcmeLogo = () => ( diff --git a/apps/docs/app/examples/navbar/with-menu/page.tsx b/apps/docs/app/examples/navbar/with-menu/page.tsx index 481ba3f134..d946a4b2cb 100644 --- a/apps/docs/app/examples/navbar/with-menu/page.tsx +++ b/apps/docs/app/examples/navbar/with-menu/page.tsx @@ -10,7 +10,7 @@ import { NavbarMenuToggle, NavbarMenu, NavbarMenuItem, -} from "@nextui-org/react"; +} from "@heroui/react"; import React from "react"; const AcmeLogo = () => ( diff --git a/apps/docs/app/examples/navbar/with-search-input/page.tsx b/apps/docs/app/examples/navbar/with-search-input/page.tsx index 82a91d46de..889dee8b9d 100644 --- a/apps/docs/app/examples/navbar/with-search-input/page.tsx +++ b/apps/docs/app/examples/navbar/with-search-input/page.tsx @@ -12,7 +12,7 @@ import { Dropdown, DropdownMenu, Avatar, -} from "@nextui-org/react"; +} from "@heroui/react"; import {SearchLinearIcon} from "@/components/icons"; diff --git a/apps/docs/app/examples/perf/client-page.tsx b/apps/docs/app/examples/perf/client-page.tsx index 79ab457b0a..449c2dd9bc 100644 --- a/apps/docs/app/examples/perf/client-page.tsx +++ b/apps/docs/app/examples/perf/client-page.tsx @@ -16,7 +16,7 @@ import { Pagination, extendVariants, PaginationItem, -} from "@nextui-org/react"; +} from "@heroui/react"; import {useFilter} from "@react-aria/i18n"; import {useEffect, useMemo, useRef, useState} from "react"; import {useSearchParams} from "next/navigation"; diff --git a/apps/docs/app/examples/select/async-items-loading/page.tsx b/apps/docs/app/examples/select/async-items-loading/page.tsx index 2b08c4c6fc..7466163f55 100644 --- a/apps/docs/app/examples/select/async-items-loading/page.tsx +++ b/apps/docs/app/examples/select/async-items-loading/page.tsx @@ -1,9 +1,9 @@ /* eslint-disable no-console */ "use client"; -import {Select, SelectItem} from "@nextui-org/react"; +import {Select, SelectItem} from "@heroui/react"; import {useEffect, useState} from "react"; -import {useInfiniteScroll} from "@nextui-org/use-infinite-scroll"; +import {useInfiniteScroll} from "@heroui/use-infinite-scroll"; type Pokemon = { name: string; diff --git a/apps/docs/app/examples/table/async-pagination/page.tsx b/apps/docs/app/examples/table/async-pagination/page.tsx index 10f85cddbf..bff7e38d83 100644 --- a/apps/docs/app/examples/table/async-pagination/page.tsx +++ b/apps/docs/app/examples/table/async-pagination/page.tsx @@ -10,7 +10,7 @@ import { getKeyValue, Spinner, Pagination, -} from "@nextui-org/react"; +} from "@heroui/react"; import {useMemo, useState} from "react"; import useSWR from "swr"; diff --git a/apps/docs/app/examples/table/custom-styles/page.tsx b/apps/docs/app/examples/table/custom-styles/page.tsx index 29c7bcd7c4..2ecd1ebc22 100644 --- a/apps/docs/app/examples/table/custom-styles/page.tsx +++ b/apps/docs/app/examples/table/custom-styles/page.tsx @@ -20,10 +20,10 @@ import { ChipProps, Pagination, SortDescriptor, -} from "@nextui-org/react"; -import {ChevronDownIcon, SearchIcon} from "@nextui-org/shared-icons"; +} from "@heroui/react"; +import {ChevronDownIcon, SearchIcon} from "@heroui/shared-icons"; import {useCallback, useMemo, useState} from "react"; -import {capitalize} from "@nextui-org/shared-utils"; +import {capitalize} from "@heroui/shared-utils"; import {PlusLinearIcon} from "@/components/icons"; import {VerticalDotsIcon} from "@/components/icons/vertical-dots"; diff --git a/apps/docs/app/examples/table/infinite-pagination/page.tsx b/apps/docs/app/examples/table/infinite-pagination/page.tsx index c4480162b4..fd7ab4bd80 100644 --- a/apps/docs/app/examples/table/infinite-pagination/page.tsx +++ b/apps/docs/app/examples/table/infinite-pagination/page.tsx @@ -9,9 +9,9 @@ import { TableCell, getKeyValue, Spinner, -} from "@nextui-org/react"; +} from "@heroui/react"; import {useAsyncList} from "@react-stately/data"; -import {useInfiniteScroll} from "@nextui-org/use-infinite-scroll"; +import {useInfiniteScroll} from "@heroui/use-infinite-scroll"; import {useState} from "react"; type SWCharacter = { diff --git a/apps/docs/app/examples/table/load-more/page.tsx b/apps/docs/app/examples/table/load-more/page.tsx index f6422f6423..c0285279a4 100644 --- a/apps/docs/app/examples/table/load-more/page.tsx +++ b/apps/docs/app/examples/table/load-more/page.tsx @@ -10,7 +10,7 @@ import { getKeyValue, Spinner, Button, -} from "@nextui-org/react"; +} from "@heroui/react"; import {useAsyncList} from "@react-stately/data"; import {useState} from "react"; diff --git a/apps/docs/app/examples/table/sorting/page.tsx b/apps/docs/app/examples/table/sorting/page.tsx index 2854e64607..e06f1e090b 100644 --- a/apps/docs/app/examples/table/sorting/page.tsx +++ b/apps/docs/app/examples/table/sorting/page.tsx @@ -9,7 +9,7 @@ import { TableCell, getKeyValue, Spinner, -} from "@nextui-org/react"; +} from "@heroui/react"; import {useAsyncList} from "@react-stately/data"; import {useState} from "react"; diff --git a/apps/docs/app/examples/table/use-case/page.tsx b/apps/docs/app/examples/table/use-case/page.tsx index f186179d81..4fd31c6203 100644 --- a/apps/docs/app/examples/table/use-case/page.tsx +++ b/apps/docs/app/examples/table/use-case/page.tsx @@ -20,10 +20,10 @@ import { ChipProps, Pagination, SortDescriptor, -} from "@nextui-org/react"; -import {ChevronDownIcon, SearchIcon} from "@nextui-org/shared-icons"; +} from "@heroui/react"; +import {ChevronDownIcon, SearchIcon} from "@heroui/shared-icons"; import {useCallback, useMemo, useState} from "react"; -import {capitalize} from "@nextui-org/shared-utils"; +import {capitalize} from "@heroui/shared-utils"; import {PlusLinearIcon} from "@/components/icons"; import {VerticalDotsIcon} from "@/components/icons/vertical-dots"; diff --git a/apps/docs/app/layout.tsx b/apps/docs/app/layout.tsx index 5b40aa2bf6..5696088894 100644 --- a/apps/docs/app/layout.tsx +++ b/apps/docs/app/layout.tsx @@ -1,7 +1,7 @@ import "@/styles/globals.css"; import "@/styles/sandpack.css"; import {Metadata, Viewport} from "next"; -import {clsx} from "@nextui-org/shared-utils"; +import {clsx} from "@heroui/shared-utils"; import {Providers} from "./providers"; @@ -49,9 +49,9 @@ export const metadata: Metadata = { ], creator: "getnextui", alternates: { - canonical: "https://nextui.org", + canonical: "https://heroui.com", types: { - "application/rss+xml": [{url: "https://nextui.org/feed.xml", title: "NextUI RSS Feed"}], + "application/rss+xml": [{url: "https://heroui.com/feed.xml", title: "NextUI RSS Feed"}], }, }, }; diff --git a/apps/docs/app/page.tsx b/apps/docs/app/page.tsx index 9db91b2493..680cd852ad 100644 --- a/apps/docs/app/page.tsx +++ b/apps/docs/app/page.tsx @@ -1,4 +1,4 @@ -import {Spacer} from "@nextui-org/spacer"; +import {Spacer} from "@heroui/spacer"; import {Suspense} from "react"; import {Hero} from "@/components/marketing/hero"; diff --git a/apps/docs/app/playground/page.tsx b/apps/docs/app/playground/page.tsx index 47d4c105ef..f9dd08e61e 100644 --- a/apps/docs/app/playground/page.tsx +++ b/apps/docs/app/playground/page.tsx @@ -1,4 +1,4 @@ -import {Image} from "@nextui-org/react"; +import {Image} from "@heroui/react"; import PlaygroundTabs from "./playground-tabs"; diff --git a/apps/docs/app/playground/playground-tabs.tsx b/apps/docs/app/playground/playground-tabs.tsx index fcedccab8d..aba394a22f 100644 --- a/apps/docs/app/playground/playground-tabs.tsx +++ b/apps/docs/app/playground/playground-tabs.tsx @@ -1,6 +1,6 @@ "use client"; -import {Tab, Tabs} from "@nextui-org/react"; +import {Tab, Tabs} from "@heroui/react"; export default function BlocksTabs() { return ( diff --git a/apps/docs/app/providers.tsx b/apps/docs/app/providers.tsx index 883e376b94..f6b65dcf70 100644 --- a/apps/docs/app/providers.tsx +++ b/apps/docs/app/providers.tsx @@ -1,9 +1,7 @@ "use client"; -import type {ReactNode} from "react"; - import * as React from "react"; -import {NextUIProvider} from "@nextui-org/react"; +import {HeroUIProvider} from "@heroui/react"; import {ThemeProvider as NextThemesProvider} from "next-themes"; import {ThemeProviderProps} from "next-themes"; import {useRouter} from "next/navigation"; @@ -18,7 +16,7 @@ export interface ProvidersProps { themeProps?: ThemeProviderProps; } -const ProviderWrapper = ({children}: {children: ReactNode}) => { +const ProviderWrapper = ({children}: {children: React.ReactElement}) => { useEffect(() => { // Initialize PostHog only once when the app starts if (typeof window !== "undefined" && __PROD__ && !posthog.isFeatureEnabled("capture")) { @@ -42,9 +40,9 @@ export function Providers({children, themeProps}: ProvidersProps) { return ( - + {children} - + ); } diff --git a/apps/docs/components/bg-grid-container.tsx b/apps/docs/components/bg-grid-container.tsx index f3fab28fb1..9a354c58ee 100644 --- a/apps/docs/components/bg-grid-container.tsx +++ b/apps/docs/components/bg-grid-container.tsx @@ -1,5 +1,5 @@ import {ReactNode, FC} from "react"; -import {clsx} from "@nextui-org/shared-utils"; +import {clsx} from "@heroui/shared-utils"; export interface BgGridContainerProps { showGradient?: boolean; children?: ReactNode; diff --git a/apps/docs/components/blog-post.tsx b/apps/docs/components/blog-post.tsx index 53d971ce9e..6b69af854d 100644 --- a/apps/docs/components/blog-post.tsx +++ b/apps/docs/components/blog-post.tsx @@ -1,7 +1,7 @@ "use client"; import {BlogPost} from "contentlayer2/generated"; -import {Card, CardFooter, CardBody, CardHeader, Link, Avatar, Image} from "@nextui-org/react"; +import {Card, CardFooter, CardBody, CardHeader, Link, Avatar, Image} from "@heroui/react"; import Balancer from "react-wrap-balancer"; import {format, parseISO} from "date-fns"; import NextLink from "next/link"; diff --git a/apps/docs/components/blog/nextjs-templates.tsx b/apps/docs/components/blog/nextjs-templates.tsx index 1fbc631870..72da6a0480 100644 --- a/apps/docs/components/blog/nextjs-templates.tsx +++ b/apps/docs/components/blog/nextjs-templates.tsx @@ -8,7 +8,7 @@ const frameworks = [ description: "A Next.js 13 with app directory template pre-configured with NextUI (v2) and Tailwind CSS.", icon: , - href: "https://github.com/nextui-org/next-app-template", + href: "https://github.com/frontio-ai/next-app-template", }, { title: "Next.js 13 (Pages) Template", @@ -16,7 +16,7 @@ const frameworks = [ description: "A Next.js 13 with pages directory template pre-configured with NextUI (v2) and Tailwind CSS.", icon: , - href: "https://github.com/nextui-org/next-pages-template", + href: "https://github.com/frontio-ai/next-pages-template", }, ]; diff --git a/apps/docs/components/blog/video-in-view.tsx b/apps/docs/components/blog/video-in-view.tsx index ae5684c850..ef9ed9c16f 100644 --- a/apps/docs/components/blog/video-in-view.tsx +++ b/apps/docs/components/blog/video-in-view.tsx @@ -3,7 +3,7 @@ import {useInView} from "framer-motion"; import {useRef, FC, useEffect, useState, useCallback} from "react"; -import {Button, cn, Spinner, Tooltip} from "@nextui-org/react"; +import {Button, cn, Spinner, Tooltip} from "@heroui/react"; import {PlayBoldIcon, PauseBoldIcon} from "@/components/icons"; import {RotateLeftLinearIcon} from "@/components/icons"; diff --git a/apps/docs/components/cmdk.tsx b/apps/docs/components/cmdk.tsx index 4458c1b09c..b5f0c5271b 100644 --- a/apps/docs/components/cmdk.tsx +++ b/apps/docs/components/cmdk.tsx @@ -4,16 +4,16 @@ import {Command} from "cmdk"; import {useEffect, useState, FC, useMemo, useCallback, useRef} from "react"; import {matchSorter} from "match-sorter"; -import {Button, ButtonProps, Kbd, Modal, ModalContent} from "@nextui-org/react"; -import {CloseIcon} from "@nextui-org/shared-icons"; +import {Button, ButtonProps, Kbd, Modal, ModalContent} from "@heroui/react"; +import {CloseIcon} from "@heroui/shared-icons"; import {tv} from "tailwind-variants"; import {usePathname, useRouter} from "next/navigation"; import MultiRef from "react-multi-ref"; -import {clsx} from "@nextui-org/shared-utils"; +import {clsx} from "@heroui/shared-utils"; import scrollIntoView from "scroll-into-view-if-needed"; import {isAppleDevice, isWebKit} from "@react-aria/utils"; import {create} from "zustand"; -import {isEmpty, intersectionBy} from "@nextui-org/shared-utils"; +import {isEmpty, intersectionBy} from "@heroui/shared-utils"; import {writeStorage, useLocalStorage} from "@rehooks/local-storage"; import {usePostHog} from "posthog-js/react"; diff --git a/apps/docs/components/code-window/code-block.tsx b/apps/docs/components/code-window/code-block.tsx index ed1f318f84..6ccb31e948 100644 --- a/apps/docs/components/code-window/code-block.tsx +++ b/apps/docs/components/code-window/code-block.tsx @@ -8,7 +8,7 @@ import css from "refractor/lang/css"; import diff from "refractor/lang/diff"; import {toHtml} from "hast-util-to-html"; import rangeParser from "parse-numeric-range"; -import {clsx} from "@nextui-org/shared-utils"; +import {clsx} from "@heroui/shared-utils"; import {Pre} from "./pre"; import {WindowActions} from "./window-actions"; diff --git a/apps/docs/components/code-window/pre.tsx b/apps/docs/components/code-window/pre.tsx index 1b9dc665fd..a5f64cd26f 100644 --- a/apps/docs/components/code-window/pre.tsx +++ b/apps/docs/components/code-window/pre.tsx @@ -1,5 +1,5 @@ import {forwardRef} from "react"; -import {clsx} from "@nextui-org/shared-utils"; +import {clsx} from "@heroui/shared-utils"; export interface PreProps { className?: string; diff --git a/apps/docs/components/code-window/window-actions.tsx b/apps/docs/components/code-window/window-actions.tsx index add1f96c93..fc8e5ccb18 100644 --- a/apps/docs/components/code-window/window-actions.tsx +++ b/apps/docs/components/code-window/window-actions.tsx @@ -1,6 +1,6 @@ import React from "react"; import {tv} from "tailwind-variants"; -import {clsx} from "@nextui-org/shared-utils"; +import {clsx} from "@heroui/shared-utils"; export type WindowActionsProps = { title?: string; diff --git a/apps/docs/components/copy-button.tsx b/apps/docs/components/copy-button.tsx index d6c32efc7d..7a5234bda7 100644 --- a/apps/docs/components/copy-button.tsx +++ b/apps/docs/components/copy-button.tsx @@ -1,5 +1,5 @@ -import {ButtonProps} from "@nextui-org/react"; -import {useClipboard} from "@nextui-org/use-clipboard"; +import {ButtonProps} from "@heroui/react"; +import {useClipboard} from "@heroui/use-clipboard"; import {memo} from "react"; import {PreviewButton} from "./preview-button"; diff --git a/apps/docs/components/demo-code-modal.tsx b/apps/docs/components/demo-code-modal.tsx index 31c9996d91..74346956f8 100644 --- a/apps/docs/components/demo-code-modal.tsx +++ b/apps/docs/components/demo-code-modal.tsx @@ -10,7 +10,7 @@ import { ModalBody, ModalFooter, Skeleton, -} from "@nextui-org/react"; +} from "@heroui/react"; import Link from "next/link"; import {CodeWindow} from "@/components/code-window"; diff --git a/apps/docs/components/demos/custom-button.tsx b/apps/docs/components/demos/custom-button.tsx index fddaac2b47..57cb5f25d9 100644 --- a/apps/docs/components/demos/custom-button.tsx +++ b/apps/docs/components/demos/custom-button.tsx @@ -1,7 +1,7 @@ "use client"; import {useRef} from "react"; -import {Button} from "@nextui-org/react"; +import {Button} from "@heroui/react"; import {usePostHog} from "posthog-js/react"; export const CustomButton = () => { diff --git a/apps/docs/components/demos/music-player.tsx b/apps/docs/components/demos/music-player.tsx index 06885fc206..fe86ed0957 100644 --- a/apps/docs/components/demos/music-player.tsx +++ b/apps/docs/components/demos/music-player.tsx @@ -1,8 +1,8 @@ "use client"; -import {Card, CardBody, Button, Image, Slider, CardProps} from "@nextui-org/react"; +import {Card, CardBody, Button, Image, Slider, CardProps} from "@heroui/react"; import {useState, FC} from "react"; -import {clsx} from "@nextui-org/shared-utils"; +import {clsx} from "@heroui/shared-utils"; import NextImage from "next/image"; import { diff --git a/apps/docs/components/demos/speed-progress.tsx b/apps/docs/components/demos/speed-progress.tsx index 41508cde2a..75c088b0d4 100644 --- a/apps/docs/components/demos/speed-progress.tsx +++ b/apps/docs/components/demos/speed-progress.tsx @@ -4,7 +4,7 @@ import { CircularProgress, CircularProgressProps, circularProgress, -} from "@nextui-org/react"; +} from "@heroui/react"; import {FC} from "react"; const speedProgress = tv({ diff --git a/apps/docs/components/demos/user-twitter-card.tsx b/apps/docs/components/demos/user-twitter-card.tsx index d75ce6c3ea..3305e3b110 100644 --- a/apps/docs/components/demos/user-twitter-card.tsx +++ b/apps/docs/components/demos/user-twitter-card.tsx @@ -1,8 +1,8 @@ "use client"; import {useState} from "react"; -import {Card, CardHeader, Button, Avatar, CardBody, CardFooter} from "@nextui-org/react"; -import {clsx} from "@nextui-org/shared-utils"; +import {Card, CardHeader, Button, Avatar, CardBody, CardFooter} from "@heroui/react"; +import {clsx} from "@heroui/shared-utils"; interface UserTwitterCardProps { className?: string; diff --git a/apps/docs/components/docs/components/code-demo/code-demo.tsx b/apps/docs/components/docs/components/code-demo/code-demo.tsx index ba44bc3bea..65b5f9e3e8 100644 --- a/apps/docs/components/docs/components/code-demo/code-demo.tsx +++ b/apps/docs/components/docs/components/code-demo/code-demo.tsx @@ -2,7 +2,7 @@ import React, {useCallback, useMemo, useRef} from "react"; import dynamic from "next/dynamic"; -import {Skeleton, Tab, Tabs} from "@nextui-org/react"; +import {Skeleton, Tab, Tabs} from "@heroui/react"; import {useInView} from "framer-motion"; import {useCodeDemo, UseCodeDemoProps} from "./use-code-demo"; diff --git a/apps/docs/components/docs/components/code-demo/react-live-demo.tsx b/apps/docs/components/docs/components/code-demo/react-live-demo.tsx index de8813491a..10bf463614 100644 --- a/apps/docs/components/docs/components/code-demo/react-live-demo.tsx +++ b/apps/docs/components/docs/components/code-demo/react-live-demo.tsx @@ -1,7 +1,7 @@ import React from "react"; import {LivePreview, LiveProvider, LiveError} from "react-live"; -import {clsx} from "@nextui-org/shared-utils"; -import * as NextUI from "@nextui-org/react"; +import {clsx} from "@heroui/shared-utils"; +import * as NextUI from "@heroui/react"; import * as intlDateUtils from "@internationalized/date"; import * as reactAriaI18n from "@react-aria/i18n"; import * as reactHookFormBase from "react-hook-form"; @@ -27,7 +27,7 @@ export interface ReactLiveDemoProps { } // 🚨 Do not pass react-hook-form to scope, it will break the live preview since -// it also has a "Form" component that will override the one from @nextui-org/react +// it also has a "Form" component that will override the one from @heroui/react const reactHookForm = { useForm: reactHookFormBase.useForm, Controller: reactHookFormBase.Controller, diff --git a/apps/docs/components/docs/components/code-demo/utils.ts b/apps/docs/components/docs/components/code-demo/utils.ts index 49caef306b..754ef44ca1 100644 --- a/apps/docs/components/docs/components/code-demo/utils.ts +++ b/apps/docs/components/docs/components/code-demo/utils.ts @@ -11,7 +11,7 @@ export const transformCode = ( ) => { let cleanedCode = code .replace(importRegex, (match) => { - // get component name from the match ex. "import { Table } from '@nextui-org/react'" + // get component name from the match ex. "import { Table } from '@heroui/react'" const componentName = match.match(/\w+/g)?.[1] || ""; const matchingImport = imports[componentName]; diff --git a/apps/docs/components/docs/components/codeblock.tsx b/apps/docs/components/docs/components/codeblock.tsx index b46b271913..6208c27a23 100644 --- a/apps/docs/components/docs/components/codeblock.tsx +++ b/apps/docs/components/docs/components/codeblock.tsx @@ -4,10 +4,10 @@ import type {Language, PrismTheme} from "prism-react-renderer"; import {useIntersectionObserver} from "usehooks-ts"; import React, {forwardRef, useEffect} from "react"; -import {clsx, dataAttr, getUniqueID} from "@nextui-org/shared-utils"; +import {clsx, dataAttr, getUniqueID} from "@heroui/shared-utils"; import BaseHighlight, {defaultProps} from "prism-react-renderer"; -import {debounce, omit} from "@nextui-org/shared-utils"; -import {cn} from "@nextui-org/react"; +import {debounce, omit} from "@heroui/shared-utils"; +import {cn} from "@heroui/react"; import defaultTheme from "@/libs/prism-theme"; diff --git a/apps/docs/components/docs/components/component-links.tsx b/apps/docs/components/docs/components/component-links.tsx index 9569f53e86..ce7de2fee4 100644 --- a/apps/docs/components/docs/components/component-links.tsx +++ b/apps/docs/components/docs/components/component-links.tsx @@ -1,4 +1,4 @@ -import {Button, ButtonProps, Code, Link, Tooltip} from "@nextui-org/react"; +import {Button, ButtonProps, Code, Link, Tooltip} from "@heroui/react"; import {ReactNode} from "react"; import Balancer from "react-wrap-balancer"; import {usePostHog} from "posthog-js/react"; diff --git a/apps/docs/components/docs/components/import-tabs.tsx b/apps/docs/components/docs/components/import-tabs.tsx index 796ac45dc6..a96d606693 100644 --- a/apps/docs/components/docs/components/import-tabs.tsx +++ b/apps/docs/components/docs/components/import-tabs.tsx @@ -1,4 +1,4 @@ -import {Tabs, Tab, Snippet} from "@nextui-org/react"; +import {Tabs, Tab, Snippet} from "@heroui/react"; import Codeblock from "./codeblock"; diff --git a/apps/docs/components/docs/components/package-managers.tsx b/apps/docs/components/docs/components/package-managers.tsx index 4f6a1a0360..6e9e9fa8db 100644 --- a/apps/docs/components/docs/components/package-managers.tsx +++ b/apps/docs/components/docs/components/package-managers.tsx @@ -1,6 +1,6 @@ "use client"; -import {Tabs, Tab, Snippet, Code} from "@nextui-org/react"; +import {Tabs, Tab, Snippet, Code} from "@heroui/react"; import {Key, useState} from "react"; import Codeblock from "./codeblock"; diff --git a/apps/docs/components/docs/components/swatch-colors-set.tsx b/apps/docs/components/docs/components/swatch-colors-set.tsx index 1e8eaeefb2..c3de4dddb1 100644 --- a/apps/docs/components/docs/components/swatch-colors-set.tsx +++ b/apps/docs/components/docs/components/swatch-colors-set.tsx @@ -1,10 +1,10 @@ import {parseToRgba, readableColor} from "color2k"; -import {Button, Tooltip} from "@nextui-org/react"; -import {commonColors, semanticColors} from "@nextui-org/theme"; -import {useClipboard} from "@nextui-org/use-clipboard"; +import {Button, Tooltip} from "@heroui/react"; +import {commonColors, semanticColors} from "@heroui/theme"; +import {useClipboard} from "@heroui/use-clipboard"; import {useState} from "react"; import {useTheme} from "next-themes"; -import {get, isEmpty} from "@nextui-org/shared-utils"; +import {get, isEmpty} from "@heroui/shared-utils"; type ColorsItem = { color: string; diff --git a/apps/docs/components/docs/nextui-pro-callout.tsx b/apps/docs/components/docs/nextui-pro-callout.tsx index 31c7575d81..7b45ce4039 100644 --- a/apps/docs/components/docs/nextui-pro-callout.tsx +++ b/apps/docs/components/docs/nextui-pro-callout.tsx @@ -38,7 +38,7 @@ export const NextUIProCallout = () => { diff --git a/apps/docs/components/docs/pager.tsx b/apps/docs/components/docs/pager.tsx index a0c921b6d9..0d5a72dc7c 100644 --- a/apps/docs/components/docs/pager.tsx +++ b/apps/docs/components/docs/pager.tsx @@ -1,10 +1,10 @@ "use client"; import * as React from "react"; -import {Link} from "@nextui-org/react"; +import {Link} from "@heroui/react"; import {usePostHog} from "posthog-js/react"; import {useRouter} from "next/navigation"; -import {ChevronIcon} from "@nextui-org/shared-icons"; +import {ChevronIcon} from "@heroui/shared-icons"; import manifest from "@/config/routes.json"; import {removeFromLast} from "@/utils"; diff --git a/apps/docs/components/docs/sidebar.tsx b/apps/docs/components/docs/sidebar.tsx index e8dcd06ab1..fdedcff0e5 100644 --- a/apps/docs/components/docs/sidebar.tsx +++ b/apps/docs/components/docs/sidebar.tsx @@ -2,21 +2,21 @@ import {FC, useEffect, useState, useRef, useMemo, useLayoutEffect} from "react"; import {usePostHog} from "posthog-js/react"; -import {ChevronIcon} from "@nextui-org/shared-icons"; +import {ChevronIcon} from "@heroui/shared-icons"; import {CollectionBase, Expandable, MultipleSelection, Node, ItemProps} from "@react-types/shared"; -import {BaseItem} from "@nextui-org/aria-utils"; +import {BaseItem} from "@heroui/aria-utils"; import {useFocusRing} from "@react-aria/focus"; import {TreeState, useTreeState} from "@react-stately/tree"; import {useSelectableCollection} from "@react-aria/selection"; import {usePress} from "@react-aria/interactions"; -import {clsx, dataAttr, debounce, isEmpty} from "@nextui-org/shared-utils"; +import {clsx, dataAttr, debounce, isEmpty} from "@heroui/shared-utils"; import { SpacerProps, Spacer, Link as NextUILink, Chip, dataFocusVisibleClasses, -} from "@nextui-org/react"; +} from "@heroui/react"; import Link from "next/link"; import {usePathname, useRouter} from "next/navigation"; diff --git a/apps/docs/components/docs/toc.tsx b/apps/docs/components/docs/toc.tsx index 54eb10cd4c..90f2c1435d 100644 --- a/apps/docs/components/docs/toc.tsx +++ b/apps/docs/components/docs/toc.tsx @@ -1,9 +1,9 @@ "use client"; import {FC, useRef, useEffect, useState} from "react"; -import {clsx} from "@nextui-org/shared-utils"; -import {Divider, Spacer} from "@nextui-org/react"; -import {ChevronCircleTopLinearIcon} from "@nextui-org/shared-icons"; +import {clsx} from "@heroui/shared-utils"; +import {Divider, Spacer} from "@heroui/react"; +import {ChevronCircleTopLinearIcon} from "@heroui/shared-icons"; import scrollIntoView from "scroll-into-view-if-needed"; import {NextUIProCallout} from "./nextui-pro-callout"; diff --git a/apps/docs/components/featurebase/fb-roadmap-link.tsx b/apps/docs/components/featurebase/fb-roadmap-link.tsx index 1796500383..d615b556ac 100644 --- a/apps/docs/components/featurebase/fb-roadmap-link.tsx +++ b/apps/docs/components/featurebase/fb-roadmap-link.tsx @@ -4,7 +4,7 @@ import NextLink from "next/link"; import {usePostHog} from "posthog-js/react"; import arrowRightUpIcon from "@iconify/icons-solar/arrow-right-up-linear"; import {Icon} from "@iconify/react/dist/offline"; -import {clsx} from "@nextui-org/shared-utils"; +import {clsx} from "@heroui/shared-utils"; type Props = { className?: string; diff --git a/apps/docs/components/figma-button.tsx b/apps/docs/components/figma-button.tsx index facf8ad5aa..18c37c4dff 100644 --- a/apps/docs/components/figma-button.tsx +++ b/apps/docs/components/figma-button.tsx @@ -1,6 +1,6 @@ "use client"; -import {Button, Link} from "@nextui-org/react"; +import {Button, Link} from "@heroui/react"; import {usePostHog} from "posthog-js/react"; export const FigmaButton = () => { diff --git a/apps/docs/components/footer.tsx b/apps/docs/components/footer.tsx index 6b5e9b6300..0f34d4c430 100644 --- a/apps/docs/components/footer.tsx +++ b/apps/docs/components/footer.tsx @@ -1,7 +1,7 @@ "use client"; import {usePathname} from "next/navigation"; -import {Link} from "@nextui-org/react"; +import {Link} from "@heroui/react"; import {getCurrentYear} from "@/utils/time"; import {XIcon, GithubIcon, DiscordIcon} from "@/components/icons"; diff --git a/apps/docs/components/marketing/a11y-otb.tsx b/apps/docs/components/marketing/a11y-otb.tsx index 6bb2c2638f..1921edb1e7 100644 --- a/apps/docs/components/marketing/a11y-otb.tsx +++ b/apps/docs/components/marketing/a11y-otb.tsx @@ -10,15 +10,15 @@ import { DropdownMenu, DropdownItem, Tooltip, -} from "@nextui-org/react"; +} from "@heroui/react"; import {useInView} from "framer-motion"; -import {clsx} from "@nextui-org/shared-utils"; +import {clsx} from "@heroui/shared-utils"; import { AddNoteBulkIcon, CopyDocumentBulkIcon, EditDocumentBulkIcon, DeleteDocumentBulkIcon, -} from "@nextui-org/shared-icons"; +} from "@heroui/shared-icons"; import Link from "next/link"; import dynamic from "next/dynamic"; import {Fragment, useEffect, useRef, useState} from "react"; diff --git a/apps/docs/components/marketing/community.tsx b/apps/docs/components/marketing/community.tsx index 562c33eb07..eb6b39f782 100644 --- a/apps/docs/components/marketing/community.tsx +++ b/apps/docs/components/marketing/community.tsx @@ -1,4 +1,4 @@ -import {Spacer} from "@nextui-org/react"; +import {Spacer} from "@heroui/react"; import {sectionWrapper, titleWrapper, title, subtitle} from "../primitives"; diff --git a/apps/docs/components/marketing/custom-themes/custom-themes.tsx b/apps/docs/components/marketing/custom-themes/custom-themes.tsx index 25392dbbe0..15dc978b90 100644 --- a/apps/docs/components/marketing/custom-themes/custom-themes.tsx +++ b/apps/docs/components/marketing/custom-themes/custom-themes.tsx @@ -2,7 +2,7 @@ /* eslint-disable react/display-name */ import {useMemo, useState} from "react"; -import {Tabs, Tab, Card, CardBody, Image, Button, RadioGroup, Radio} from "@nextui-org/react"; +import {Tabs, Tab, Card, CardBody, Image, Button, RadioGroup, Radio} from "@heroui/react"; import NextLink from "next/link"; import NextImage from "next/image"; diff --git a/apps/docs/components/marketing/customization.tsx b/apps/docs/components/marketing/customization.tsx index 3e3e4964b3..d195ff49b2 100644 --- a/apps/docs/components/marketing/customization.tsx +++ b/apps/docs/components/marketing/customization.tsx @@ -1,7 +1,7 @@ "use client"; /* eslint-disable react/display-name */ -import {Button, Link} from "@nextui-org/react"; +import {Button, Link} from "@heroui/react"; import NextLink from "next/link"; import {title, subtitle, titleWrapper, sectionWrapper} from "@/components/primitives"; diff --git a/apps/docs/components/marketing/dark-mode.tsx b/apps/docs/components/marketing/dark-mode.tsx index 497ee6ef0e..9d4fcbd8fd 100644 --- a/apps/docs/components/marketing/dark-mode.tsx +++ b/apps/docs/components/marketing/dark-mode.tsx @@ -1,7 +1,7 @@ "use client"; /* eslint-disable react/display-name */ -import {Code, Button, Tooltip} from "@nextui-org/react"; +import {Code, Button, Tooltip} from "@heroui/react"; import {useState} from "react"; import NextLink from "next/link"; import dynamic from "next/dynamic"; diff --git a/apps/docs/components/marketing/features-grid.tsx b/apps/docs/components/marketing/features-grid.tsx index 48ce47b60e..9d8a0ed6bc 100644 --- a/apps/docs/components/marketing/features-grid.tsx +++ b/apps/docs/components/marketing/features-grid.tsx @@ -3,9 +3,9 @@ import React, {ReactNode} from "react"; import {usePostHog} from "posthog-js/react"; import {tv} from "tailwind-variants"; -import {Card, CardHeader, CardBody, LinkProps, SlotsToClasses} from "@nextui-org/react"; +import {Card, CardHeader, CardBody, LinkProps, SlotsToClasses} from "@heroui/react"; import {useRouter} from "next/navigation"; -import {LinkIcon} from "@nextui-org/shared-icons"; +import {LinkIcon} from "@heroui/shared-icons"; const styles = tv({ slots: { diff --git a/apps/docs/components/marketing/hero/bg-looper.tsx b/apps/docs/components/marketing/hero/bg-looper.tsx index b7950af925..305cd14fce 100644 --- a/apps/docs/components/marketing/hero/bg-looper.tsx +++ b/apps/docs/components/marketing/hero/bg-looper.tsx @@ -1,6 +1,6 @@ "use client"; -import {clsx} from "@nextui-org/shared-utils"; +import {clsx} from "@heroui/shared-utils"; import {useIsMounted} from "@/hooks/use-is-mounted"; diff --git a/apps/docs/components/marketing/hero/floating-components.tsx b/apps/docs/components/marketing/hero/floating-components.tsx index 86d1733ca3..a93f18562a 100644 --- a/apps/docs/components/marketing/hero/floating-components.tsx +++ b/apps/docs/components/marketing/hero/floating-components.tsx @@ -9,8 +9,8 @@ import { Switch, Spinner, Pagination, -} from "@nextui-org/react"; -import {MoonFilledIcon, SunFilledIcon} from "@nextui-org/shared-icons"; +} from "@heroui/react"; +import {MoonFilledIcon, SunFilledIcon} from "@heroui/shared-icons"; import {useTheme} from "next-themes"; import NextImage from "next/image"; diff --git a/apps/docs/components/marketing/hero/floating-tabs.tsx b/apps/docs/components/marketing/hero/floating-tabs.tsx index 671e80a0a7..6232f85b99 100644 --- a/apps/docs/components/marketing/hero/floating-tabs.tsx +++ b/apps/docs/components/marketing/hero/floating-tabs.tsx @@ -1,6 +1,6 @@ "use client"; -import {Tab, Tabs} from "@nextui-org/react"; +import {Tab, Tabs} from "@heroui/react"; export const FloatingTabs: React.FC<{}> = () => { return ( diff --git a/apps/docs/components/marketing/hero/hero.tsx b/apps/docs/components/marketing/hero/hero.tsx index 92e6311b11..cb1dcb831e 100644 --- a/apps/docs/components/marketing/hero/hero.tsx +++ b/apps/docs/components/marketing/hero/hero.tsx @@ -1,8 +1,8 @@ "use client"; import NextLink from "next/link"; -import {Button, Link, Chip, Snippet} from "@nextui-org/react"; -import {ArrowRightIcon} from "@nextui-org/shared-icons"; +import {Button, Link, Chip, Snippet} from "@heroui/react"; +import {ArrowRightIcon} from "@heroui/shared-icons"; import dynamic from "next/dynamic"; import {usePostHog} from "posthog-js/react"; diff --git a/apps/docs/components/marketing/heroui-pro-section.tsx b/apps/docs/components/marketing/heroui-pro-section.tsx index 22293626b6..af45dd228f 100644 --- a/apps/docs/components/marketing/heroui-pro-section.tsx +++ b/apps/docs/components/marketing/heroui-pro-section.tsx @@ -1,6 +1,6 @@ "use client"; -import {Button, Chip} from "@nextui-org/react"; +import {Button, Chip} from "@heroui/react"; import {useEffect, useState} from "react"; import {useTheme} from "next-themes"; diff --git a/apps/docs/components/marketing/install-banner.tsx b/apps/docs/components/marketing/install-banner.tsx index ec2a0eba7e..cdfa1c2063 100644 --- a/apps/docs/components/marketing/install-banner.tsx +++ b/apps/docs/components/marketing/install-banner.tsx @@ -1,10 +1,10 @@ "use client"; -import {Button, Link} from "@nextui-org/react"; -import {ArrowRightIcon} from "@nextui-org/shared-icons"; -import {clsx} from "@nextui-org/shared-utils"; +import {Button, Link} from "@heroui/react"; +import {ArrowRightIcon} from "@heroui/shared-icons"; +import {clsx} from "@heroui/shared-utils"; import NextLink from "next/link"; -import {Code} from "@nextui-org/react"; +import {Code} from "@heroui/react"; import {usePostHog} from "posthog-js/react"; import {FeaturesGrid} from "./features-grid"; diff --git a/apps/docs/components/marketing/marquee.tsx b/apps/docs/components/marketing/marquee.tsx index fc01c979d4..cbc71bc52b 100644 --- a/apps/docs/components/marketing/marquee.tsx +++ b/apps/docs/components/marketing/marquee.tsx @@ -1,11 +1,11 @@ "use client"; import type {ReactNode} from "react"; -import type {ScrollShadowProps} from "@nextui-org/react"; +import type {ScrollShadowProps} from "@heroui/react"; import {Children, cloneElement} from "react"; -import {ScrollShadow} from "@nextui-org/react"; -import {cn} from "@nextui-org/react"; +import {ScrollShadow} from "@heroui/react"; +import {cn} from "@heroui/react"; interface MarqueeProps { className?: string; diff --git a/apps/docs/components/marketing/nextui-pro-section/nextui-pro-button.tsx b/apps/docs/components/marketing/nextui-pro-section/nextui-pro-button.tsx index 2abaab67c8..d52542e0ed 100644 --- a/apps/docs/components/marketing/nextui-pro-section/nextui-pro-button.tsx +++ b/apps/docs/components/marketing/nextui-pro-section/nextui-pro-button.tsx @@ -1,11 +1,11 @@ -import {Button} from "@nextui-org/react"; +import {Button} from "@heroui/react"; export const NextUIProButton = () => (
- + );`; @@ -28,14 +28,14 @@ export const getHtmlFile = (theme: string, entryFile: string) => ` `; -export const tailwindConfig = `const { nextui } = require("@nextui-org/react"); +export const tailwindConfig = `const { nextui } = require("@heroui/react"); /** @type {import('tailwindcss').Config} */ module.exports = { content: [ "./index.html", "./*.{js,ts,jsx,tsx}", - "./node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}", + "./node_modules/@heroui/theme/dist/**/*.{js,ts,jsx,tsx}", ], theme: { extend: {}, diff --git a/apps/docs/components/sandpack/language-selector.tsx b/apps/docs/components/sandpack/language-selector.tsx index 658af6a6fa..bbb220d29e 100644 --- a/apps/docs/components/sandpack/language-selector.tsx +++ b/apps/docs/components/sandpack/language-selector.tsx @@ -1,5 +1,5 @@ import React, {useCallback} from "react"; -import {Tabs, Tab} from "@nextui-org/react"; +import {Tabs, Tab} from "@heroui/react"; import {SandpackPredefinedTemplate} from "@codesandbox/sandpack-react"; import {TypescriptIcon, JavascriptIcon} from "@/components/icons"; diff --git a/apps/docs/components/sandpack/refresh-button.tsx b/apps/docs/components/sandpack/refresh-button.tsx index ec22c742e2..543b238d9e 100644 --- a/apps/docs/components/sandpack/refresh-button.tsx +++ b/apps/docs/components/sandpack/refresh-button.tsx @@ -1,6 +1,6 @@ import * as React from "react"; import {useSandpackNavigation} from "@codesandbox/sandpack-react"; -import {clsx} from "@nextui-org/shared-utils"; +import {clsx} from "@heroui/shared-utils"; import {RotateRightLinearIcon} from "@/components/icons"; diff --git a/apps/docs/components/sandpack/theme.ts b/apps/docs/components/sandpack/theme.ts index 38b34e4b61..097f5d37f5 100644 --- a/apps/docs/components/sandpack/theme.ts +++ b/apps/docs/components/sandpack/theme.ts @@ -2,11 +2,11 @@ import {SandpackTheme} from "@codesandbox/sandpack-react"; export const nextuiTheme: SandpackTheme = { colors: { - surface1: "hsl(var(--nextui-code-background))", - surface2: "hsl(var(--nextui-code-background))", + surface1: "hsl(var(--heroui-code-background))", + surface2: "hsl(var(--heroui-code-background))", surface3: "hsl(0, 0%, 15%)", disabled: "#A258DF2b", - base: "hsl(var(--nextui-code-background))", + base: "hsl(var(--heroui-code-background))", clickable: "#ffffff", hover: "#A258DF", accent: "#A258DF", diff --git a/apps/docs/components/sandpack/use-sandpack.ts b/apps/docs/components/sandpack/use-sandpack.ts index 82f34f7e5f..f635fc11a7 100644 --- a/apps/docs/components/sandpack/use-sandpack.ts +++ b/apps/docs/components/sandpack/use-sandpack.ts @@ -71,7 +71,7 @@ export const useSandpack = ({ let dependencies = { "framer-motion": "11.9.0", - "@nextui-org/react": "latest", + "@heroui/react": "latest", }; // sort files by dependency @@ -148,14 +148,14 @@ export const useSandpack = ({ // if (hasComponents) { // let deps = { - // "@nextui-org/theme": "canary", - // "@nextui-org/system": "canary", + // "@heroui/theme": "canary", + // "@heroui/system": "canary", // }; // nextUIComponents.forEach((component) => { // deps = { // ...deps, - // [`@nextui-org/${component}`]: "canary", + // [`@heroui/${component}`]: "canary", // }; // }); @@ -164,7 +164,7 @@ export const useSandpack = ({ // return { // ...deps, - // "@nextui-org/react": "canary", + // "@heroui/react": "canary", // }; // }, [hasComponents, nextUIComponents, component]); diff --git a/apps/docs/components/sandpack/utils.ts b/apps/docs/components/sandpack/utils.ts index 44d4a664e9..7f82ab72d3 100644 --- a/apps/docs/components/sandpack/utils.ts +++ b/apps/docs/components/sandpack/utils.ts @@ -95,9 +95,9 @@ export function extractNextUIImport(code: string): string[] { // Split the code into lines const lines = code.split("\n"); - // Filter the lines to only include import statements from "@nextui-org/react" + // Filter the lines to only include import statements from "@heroui/react" const importStatements = lines.filter( - (line) => line.startsWith("import") && line.includes("@nextui-org/react"), + (line) => line.startsWith("import") && line.includes("@heroui/react"), ); // Return the import statements @@ -133,7 +133,7 @@ export function updateTailwindConfig(tailwindConfig: string, componentNames: str // Find the index of the line to replace const lineIndex = lines.findIndex((line) => - line.includes("./node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}"), + line.includes("./node_modules/@heroui/theme/dist/**/*.{js,ts,jsx,tsx}"), ); // If the line was found @@ -147,11 +147,7 @@ export function updateTailwindConfig(tailwindConfig: string, componentNames: str const name = componentName.replace(/"/g, ""); // Add the new line - lines.splice( - lineIndex, - 0, - ` "./node_modules/@nextui-org/theme/dist/components/${name}.js",`, - ); + lines.splice(lineIndex, 0, ` "./node_modules/@heroui/theme/dist/components/${name}.js",`); }); } diff --git a/apps/docs/components/scripts/script-providers.tsx b/apps/docs/components/scripts/script-providers.tsx index 4c48c05e91..102f4b006e 100644 --- a/apps/docs/components/scripts/script-providers.tsx +++ b/apps/docs/components/scripts/script-providers.tsx @@ -7,7 +7,7 @@ export function ScriptProviders() { <>