Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
5ccd945
chore: add herohack announcement
jrgarciadev May 15, 2025
d40c744
fix(date-picker): error state (#5317)
Vishvsalvi May 26, 2025
afda066
chore: banner replacement
jrgarciadev May 31, 2025
ee4d2eb
fix(theme): clear button in mobile (#5252)
Vishvsalvi Jun 1, 2025
8df9716
fix(toast): icons (#5246)
wingkwong Jun 1, 2025
8c26137
refactor: migrate eslint to v9 (#5267)
wingkwong Jun 1, 2025
74e4dec
fix(autocomplete): persist last selected item position (#5286)
wingkwong Jun 1, 2025
06fe3a3
chore(deps): bump framer-motion version (#5287)
wingkwong Jun 1, 2025
d09e602
chore(docs): supplement onAction & selectionBehavior (#5289)
wingkwong Jun 1, 2025
360b2e7
fix(autocomplete): ensure focused item matches selected item after fi…
KumJungMin Jun 1, 2025
01f5421
fix: broken components in stories (#5291)
wingkwong Jun 1, 2025
1d62208
chore(deps): bump RA versions (#5310)
wingkwong Jun 1, 2025
dcd6244
chore(docs): update meta data (#5311)
wingkwong Jun 1, 2025
6129e4b
docs(layout.tsx): added text-foreground (#5316)
Vishvsalvi Jun 1, 2025
718dc24
feat(tabs): add click handling for tab items in tests and implementat…
liaoyinglong Jun 1, 2025
9433bff
fix issues in tabs examples (#2405)
zhengjitf Jun 1, 2025
6e9247a
chore(docs): add missing onValueChange in CheckboxGroup (#5332)
wingkwong Jun 1, 2025
63a1a67
ci(changesets): version packages (#5323)
github-actions[bot] Jun 1, 2025
1f8cb07
Merge branch 'main' of github.com:heroui-inc/heroui into canary
jrgarciadev Jun 1, 2025
c01ba33
Merge branch 'canary' into chore/sync-2.7.9-to-beta
wingkwong Jun 2, 2025
5c52785
chore: remove pre.json
wingkwong Jun 2, 2025
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
105 changes: 0 additions & 105 deletions .changeset/pre.json

This file was deleted.

25 changes: 0 additions & 25 deletions .eslintignore

This file was deleted.

93 changes: 0 additions & 93 deletions .eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion .lintstagedrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = {
"**/*.{js,ts,jsx,tsx}": async (files) => {
const filesToLint = await removeIgnoredFiles(files);

return [`eslint -c .eslintrc.json --max-warnings=0 --fix ${filesToLint}`];
return [`eslint --max-warnings=0 --fix ${filesToLint}`];
},
"**/*.css": async (files) => {
const filesToLint = await removeIgnoredFiles(files);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable no-console */
"use client";

import * as React from "react";
Expand Down
1 change: 0 additions & 1 deletion apps/docs/app/examples/table/custom-styles/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable jsx-a11y/no-onchange */
"use client";

import {
Expand Down
1 change: 0 additions & 1 deletion apps/docs/app/examples/table/use-case/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable jsx-a11y/no-onchange */
"use client";

import {
Expand Down
6 changes: 3 additions & 3 deletions apps/docs/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {siteConfig} from "@/config/site";
import {fonts} from "@/config/fonts";
import {Navbar} from "@/components/navbar";
import {Footer} from "@/components/footer";
import {ProBanner} from "@/components/pro-banner";
import {HeroUIChatBanner} from "@/components/heroui-chat-banner";

export const metadata: Metadata = {
title: {
Expand Down Expand Up @@ -75,14 +75,14 @@ export default function RootLayout({children}: {children: React.ReactNode}) {
<head />
<body
className={clsx(
"min-h-screen bg-background font-sans antialiased",
"min-h-screen text-foreground bg-background font-sans antialiased",
fonts.sans.variable,
fonts.mono.variable,
)}
>
<Providers themeProps={{attribute: "class", defaultTheme: "dark"}}>
<div className="relative flex flex-col" id="app-container">
<ProBanner />
<HeroUIChatBanner />
<Navbar mobileRoutes={manifest.mobileRoutes} routes={manifest.routes} />
{children}
<Analytics mode="production" />
Expand Down
32 changes: 18 additions & 14 deletions apps/docs/components/ads/carbon-ad/carbon-ad.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ import {useIsMounted} from "@/hooks/use-is-mounted";
import {__PROD__, __ENABLE_ADS__} from "@/utils";

const EA_PROVIDER_RATIO = 0.85;
const PRODUCT_HUNT_ENABLED = false;
const INTERNAL_AD_ENABLED = true;

const PH_INFO = {
description: "Join the conversation and help us get #1 Product of the Week! ↗",
title: "We're live on Product Hunt! (30% OFF)",
url: "https://ph.heroui.chat?utm_source=heroui.chat&utm_medium=banner",
const INTERNAL_AD_INFO = {
description: "Join our hackathon, $6k in prizes + 3 months of HeroUI Chat Pro! ↗",
title: "Hackathon #HeroHack",
img: "https://heroui-chat-assets.nyc3.cdn.digitaloceanspaces.com/herohack.png",
url: "https://hack.heroui.chat/twitter?utm_source=heroui.com&utm_medium=ad-banner",
};

export const CarbonAd: React.FC<unknown> = () => {
Expand Down Expand Up @@ -49,7 +50,7 @@ export const CarbonAd: React.FC<unknown> = () => {
}, []);

useEffect(() => {
if (PRODUCT_HUNT_ENABLED) return;
if (INTERNAL_AD_ENABLED) return;

const shouldShowEthicalAds = Math.random() < EA_PROVIDER_RATIO;

Expand Down Expand Up @@ -91,7 +92,7 @@ export const CarbonAd: React.FC<unknown> = () => {
setShowEthicalAds(true);
}
});
} catch (error) {
} catch {
loadCarbonAds();
}
} else {
Expand All @@ -106,25 +107,28 @@ export const CarbonAd: React.FC<unknown> = () => {
};
}, [isMounted]);

if (PRODUCT_HUNT_ENABLED) {
if (INTERNAL_AD_ENABLED) {
return (
<div className="px-2 not-prose hover:opacity-80 transition-[opacity] duration-200 carbon-ad-container max-h-[100px] min-h-[100px] h-[100px] m-0 p-0">
<a
className="group flex items-center flex gap-2 h-full"
href={PH_INFO.url}
className="group flex items-center flex gap-4 h-full"
href={INTERNAL_AD_INFO.url}
rel="noopener noreferrer"
target="_blank"
>
<Image
removeWrapper
alt="Product Hunt"
className="m-0 w-[80px] h-[80px] object-cover"
src="/product-hunt.png"
className="m-0 w-[120px] h-[80px] object-cover rounded-[8px]"
src={INTERNAL_AD_INFO.img}
/>
<div className="flex flex-col gap-0.5 pointer-events-none">
<div className="text-small md:text-medium font-medium no-underline">
{PH_INFO.title}
{INTERNAL_AD_INFO.title}
</div>
<div className="text-tiny md:text-small text-default-500">
{INTERNAL_AD_INFO.description}
</div>
<div className="text-tiny md:text-small text-default-500">{PH_INFO.description}</div>
</div>
</a>
</div>
Expand Down
1 change: 0 additions & 1 deletion apps/docs/components/ads/carbon-ad/carbon-optimize.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export default {

if (!document.hidden) {
if (typeof _carbonads !== "undefined" && isElementInViewport("#carbonads")) {
// eslint-disable-next-line no-undef
_carbonads.refresh();
}
}
Expand Down
1 change: 0 additions & 1 deletion apps/docs/components/blog/video-in-view.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable jsx-a11y/media-has-caption */
"use client";

import {useInView} from "framer-motion";
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/components/cmdk.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export const Cmdk: FC<{}> = () => {
[query],
);

const items = !isEmpty(results) ? results : recentSearches ?? [];
const items = !isEmpty(results) ? results : (recentSearches ?? []);

// Toggle the menu when ⌘K / CTRL K is pressed
useEffect(() => {
Expand Down
4 changes: 2 additions & 2 deletions apps/docs/components/docs/components/code-demo/code-demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ const DynamicReactLiveDemo = dynamic(
() => import("./react-live-demo").then((m) => m.ReactLiveDemo),
{
ssr: false,
// eslint-disable-next-line react/display-name

loading: () => <Skeleton className="w-full h-24 rounded-xl" />,
},
);

const DynamicSandpack = dynamic(() => import("../../../sandpack").then((m) => m.Sandpack), {
ssr: false,
// eslint-disable-next-line react/display-name

loading: () => <Skeleton className="w-full h-32 rounded-xl" />,
});

Expand Down
1 change: 0 additions & 1 deletion apps/docs/components/marketing/a11y-otb.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"use client";

/* eslint-disable react/display-name */
import {
Button,
Image,
Expand Down
Loading
Loading