Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
c1baa74
fix: replacing the light mode bg in to nextui-pro section (#4355)
macci001 Dec 20, 2024
9756505
chore: hide pro image on mobile
jrgarciadev Dec 20, 2024
db58cbe
chore: hide pro image on mobile
jrgarciadev Dec 20, 2024
7b38e04
chore: hide pro image on mobile
jrgarciadev Dec 20, 2024
c0e3dab
fix(calendar): invalid prop ref supplied to React.Fragment (#4428)
wingkwong Dec 22, 2024
f7e1b17
fix(select): remove input from hidden-select (#4427)
Peterl561 Dec 22, 2024
93c9df1
fix(input-otp): form validation hook missing behavior prop (#4417)
Peterl561 Dec 22, 2024
b5943db
fix: listbox-section props (#4369)
EReguero Dec 22, 2024
885c9b3
chore: update framework installations (#4410)
macci001 Dec 22, 2024
de0e277
fix: navbar state change (#4406)
macci001 Dec 22, 2024
5f388fc
fix: virtual keyboard on mobile should be based on the allowed keys (…
macci001 Dec 22, 2024
5cd1c63
fix(docs): i18n version in date-related components (#4430)
wingkwong Dec 22, 2024
f8f6bfe
chore(drawer): export drawer children props (#4310)
omarshehab221 Dec 23, 2024
1bf66bc
ci(changesets): version packages (#4326)
github-actions[bot] Dec 24, 2024
6430bc0
fix: navbar release
jrgarciadev Dec 24, 2024
05807d8
ci(changesets): version packages (#4435)
github-actions[bot] Dec 24, 2024
9d948e7
Merge branch 'main' into canary
jrgarciadev Dec 24, 2024
54eec6c
Merge pull request #4436 from nextui-org/canary
jrgarciadev Dec 24, 2024
14e12eb
Merge branch 'canary' of github.com:nextui-org/nextui into canary
jrgarciadev Dec 24, 2024
413bcd7
Merge branch 'main' into canary
jrgarciadev Dec 24, 2024
07780a7
fix(drawer): use a top-level type-only import instead of inline type …
wingkwong Dec 24, 2024
388b2ed
Merge pull request #4438 from nextui-org/fix/eslint
jrgarciadev Dec 24, 2024
0cb5b68
fix: posthog config
jrgarciadev Dec 25, 2024
ab9ad9b
docs(input): update type prop to include "file" (#4444)
not-a-ethan Dec 26, 2024
a83388a
fix(alert): mark description optional & revise styles when only child…
wingkwong Dec 27, 2024
4f0ef58
fix: clipboard get the different unicode whitespace (#4392)
winchesHe Dec 28, 2024
fb46df2
fix(popover): correct initial animation direction to match fallback p…
ryo-manba Dec 30, 2024
439b6aa
fix(docs): extra classname in form example (#4465)
wingkwong Dec 30, 2024
d92468a
fix(deps): bump `@tanstack/react-virtual` to support react 19 peer de…
wingkwong Dec 30, 2024
e7ff673
fix(use-image): cached image flickering issue (#4442)
wingkwong Jan 2, 2025
16c57ec
fix+feat(select, listbox): bug on dataset with "sections", add suppor…
vinroger Jan 2, 2025
7c2bc4a
fix(autocomplete): clear autocomplete value when pressing clear butto…
wingkwong Jan 2, 2025
0401f25
fix(autocomplete): validate prop not working after hovering (#4452)
Peterl561 Jan 2, 2025
0eb96f6
feat(docs): nextUI with laravel (#4432)
sudongyuer Jan 2, 2025
5d0fc9f
fix(use-image): set status after hydrated (#4486)
wingkwong Jan 3, 2025
ef916ea
chore: new canary version
jrgarciadev Jan 3, 2025
a43b156
fix(navbar): hide overlay when menu is closed (#4490)
Peterl561 Jan 4, 2025
0c45fed
fix(autocomplete): missing popover props except content (#4496)
wingkwong Jan 5, 2025
33e0418
fix(popover): correct position logic (#4498)
ryo-manba Jan 5, 2025
b2e924f
fix(use-aria-link): onclick deprecation warning for Button as Link (#…
wingkwong Jan 5, 2025
da7003e
feat: add button open in stackblitz (#4461)
winchesHe Jan 5, 2025
eada8cb
ci(changesets): version packages (#4440)
github-actions[bot] Jan 5, 2025
2b0442b
Merge pull request #4500 from nextui-org/canary
jrgarciadev Jan 5, 2025
c436f3f
chore: clean git
jrgarciadev Jan 5, 2025
6957dd1
chore: make heroui private
jrgarciadev Jan 5, 2025
afd3c69
chore: merged with rebrand branch
jrgarciadev Jan 5, 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
5 changes: 0 additions & 5 deletions .changeset/chilly-rules-marry.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/clever-teachers-live.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/famous-avocados-run.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/late-doors-rhyme.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/many-kiwis-pretend.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/old-peas-cheat.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/polite-dingos-call.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/silent-jars-grow.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/twelve-ducks-thank.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/two-ghosts-search.md

This file was deleted.

5 changes: 5 additions & 0 deletions apps/docs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,15 @@ yarn-error.log*
# local env files
.env
.env*.local
.dev.vars

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

# cloudflare
.wrangler
/.open-next/
12 changes: 10 additions & 2 deletions apps/docs/app/blog/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,21 @@ export default function DocsLayout({children}: DocsLayoutProps) {
aria-hidden="true"
className="fixed hidden dark:md:block dark:opacity-70 -bottom-[40%] -left-[20%] z-0"
>
<Image removeWrapper alt="docs left background" src="/gradients/docs-left.png" />
<Image
removeWrapper
alt="docs left background"
src="https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/images/docs-left.png"
/>
</div>
<div
aria-hidden="true"
className="fixed hidden dark:md:block dark:opacity-70 -top-[80%] -right-[60%] 2xl:-top-[60%] 2xl:-right-[45%] z-0 rotate-12"
>
<Image removeWrapper alt="docs right background" src="/gradients/docs-right.png" />
<Image
removeWrapper
alt="docs right background"
src="https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/images/docs-right.png"
/>
</div>

<ScriptProviders />
Expand Down
16 changes: 12 additions & 4 deletions apps/docs/app/docs/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,23 @@ export default function DocsLayout({children}: DocsLayoutProps) {
</main>
<div
aria-hidden="true"
className="fixed hidden dark:md:block dark:opacity-70 -bottom-[40%] -left-[20%] z-0"
className="fixed hidden dark:md:block dark:opacity-100 -bottom-[30%] -left-[30%] z-0"
>
<Image removeWrapper alt="docs left background" src="/gradients/docs-left.png" />
<Image
removeWrapper
alt="docs left background"
src="https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/images/docs-left.png"
/>
</div>
<div
aria-hidden="true"
className="fixed hidden dark:md:block dark:opacity-70 -top-[80%] -right-[60%] 2xl:-top-[60%] 2xl:-right-[45%] z-0 rotate-12"
className="fixed hidden dark:md:block dark:opacity-70 -top-[50%] -right-[60%] 2xl:-top-[60%] 2xl:-right-[45%] z-0 rotate-12"
>
<Image removeWrapper alt="docs right background" src="/gradients/docs-right.png" />
<Image
removeWrapper
alt="docs right background"
src="https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/images/docs-right.png"
/>
</div>

<ScriptProviders />
Expand Down
2 changes: 2 additions & 0 deletions apps/docs/app/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Disallow: /
52 changes: 23 additions & 29 deletions apps/docs/components/copy-button.tsx
Original file line number Diff line number Diff line change
@@ -1,43 +1,37 @@
import {FC} from "react";
import {Button, ButtonProps} from "@nextui-org/react";
import {ButtonProps} from "@nextui-org/react";
import {useClipboard} from "@nextui-org/use-clipboard";
import {clsx} from "@nextui-org/shared-utils";
import {memo} from "react";

import {PreviewButton} from "./preview-button";

import {CheckLinearIcon, CopyLinearIcon} from "@/components/icons";

export interface CopyButtonProps extends ButtonProps {
value?: string;
}

export const CopyButton: FC<CopyButtonProps> = ({value, className, ...buttonProps}) => {
export const CopyButton = memo<CopyButtonProps>(({value, className, ...buttonProps}) => {
const {copy, copied} = useClipboard();

const icon = copied ? (
<CheckLinearIcon
className="opacity-0 scale-50 data-[visible=true]:opacity-100 data-[visible=true]:scale-100 transition-transform-opacity"
data-visible={copied}
size={16}
/>
) : (
<CopyLinearIcon
className="opacity-0 scale-50 data-[visible=true]:opacity-100 data-[visible=true]:scale-100 transition-transform-opacity"
data-visible={!copied}
size={16}
/>
);

const handleCopy = () => {
copy(value);
};

return (
<Button
isIconOnly
className={clsx(
"absolute z-50 right-3 text-zinc-300 top-8 border-1 border-transparent bg-transparent before:bg-white/10 before:content-[''] before:block before:z-[-1] before:absolute before:inset-0 before:backdrop-blur-md before:backdrop-saturate-100 before:rounded-lg",
className,
)}
size="sm"
variant="bordered"
onPress={handleCopy}
{...buttonProps}
>
<CheckLinearIcon
className="absolute opacity-0 scale-50 data-[visible=true]:opacity-100 data-[visible=true]:scale-100 transition-transform-opacity"
data-visible={copied}
size={16}
/>
<CopyLinearIcon
className="absolute opacity-0 scale-50 data-[visible=true]:opacity-100 data-[visible=true]:scale-100 transition-transform-opacity"
data-visible={!copied}
size={16}
/>
</Button>
);
};
return <PreviewButton className={className} icon={icon} onPress={handleCopy} {...buttonProps} />;
});

CopyButton.displayName = "CopyButton";
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import {SandpackFiles} from "@codesandbox/sandpack-react/types";
import {BgGridContainer} from "@/components/bg-grid-container";
import {GradientBox, GradientBoxProps} from "@/components/gradient-box";
import {CopyButton} from "@/components/copy-button";
import {StackblitzButton} from "@/components/stackblitz-button";
import {PreviewButton} from "@/components/preview-button";

export interface ReactLiveDemoProps {
code: string;
Expand All @@ -21,6 +23,7 @@ export interface ReactLiveDemoProps {
className?: string;
gradientColor?: GradientBoxProps["color"];
overflow?: "auto" | "visible" | "hidden";
typescriptStrict?: boolean;
}

// 🚨 Do not pass react-hook-form to scope, it will break the live preview since
Expand Down Expand Up @@ -49,11 +52,18 @@ export const ReactLiveDemo: React.FC<ReactLiveDemoProps> = ({
height,
className,
noInline,
typescriptStrict = false,
}) => {
const content = (
<>
{files?.[DEFAULT_FILE] && (
<div className="absolute top-[-28px] right-[-8px] z-50">
<div className="absolute top-[-26px] right-[3px] z-50 flex items-center">
<StackblitzButton
button={<PreviewButton icon={undefined} />}
className="before:hidden opacity-0 group-hover/code-demo:opacity-100 transition-opacity text-zinc-400"
files={files}
typescriptStrict={typescriptStrict}
/>
<CopyButton
className="before:hidden opacity-0 group-hover/code-demo:opacity-100 transition-opacity text-zinc-400"
value={files?.[DEFAULT_FILE] as string}
Expand Down
18 changes: 18 additions & 0 deletions apps/docs/components/icons/social.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,23 @@ const CodeSandboxIcon: React.FC<IconSvgProps> = ({width = "1em", height = "1em",
);
};

const StackblitzIcon: React.FC<IconSvgProps> = ({...props}) => {
return (
<svg
height={16}
viewBox="0 0 1024 1024"
width={16}
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path
d="M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7M378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211z"
fill="currentColor"
/>
</svg>
);
};

const JavascriptIcon: React.FC<IconSvgProps> = ({width = "1em", height = "1em", ...props}) => {
return (
<svg
Expand Down Expand Up @@ -470,6 +487,7 @@ export {
NewNextJSIcon,
StorybookIcon,
CodeSandboxIcon,
StackblitzIcon,
JavascriptIcon,
TypescriptIcon,
BunIcon,
Expand Down
22 changes: 14 additions & 8 deletions apps/docs/components/marketing/marquee.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {cn} from "@nextui-org/react";

interface MarqueeProps {
className?: string;
wrapperClassName?: string;
reverse?: boolean;
shadow?: boolean;
duration?: number;
Expand All @@ -20,6 +21,7 @@ interface MarqueeProps {

export const Marquee = ({
className,
wrapperClassName,
reverse,
duration = 40,
shadow = false,
Expand Down Expand Up @@ -59,14 +61,18 @@ export const Marquee = ({
}}
>
<div
className={cn("flex w-max items-stretch gap-[--gap]", {
"flex-col": vertical,
"h-full": vertical,
"animate-scrolling-banner": !vertical,
"animate-scrolling-banner-vertical": vertical,
"[animation-direction:reverse]": reverse,
"hover:[animation-play-state:paused]": pauseOnHover,
})}
className={cn(
"flex w-max items-stretch gap-[--gap]",
{
"flex-col": vertical,
"h-full": vertical,
"animate-scrolling-banner": !vertical,
"animate-scrolling-banner-vertical": vertical,
"[animation-direction:reverse]": reverse,
"hover:[animation-play-state:paused]": pauseOnHover,
},
wrapperClassName,
)}
>
{Children.map(children, (child) =>
child && typeof child === "object" && "type" in child ? cloneElement(child) : child,
Expand Down
1 change: 1 addition & 0 deletions apps/docs/components/marketing/nextui-pro-section/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {NextUIProSection} from "./nextui-pro-section";
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import {Button} from "@nextui-org/react";

export const NextUIProButton = () => (
<Button
as={"a"}
className="px-6 flex items-center"
color="primary"
href="https://nextui.pro?utm_source=nextui.org&utm_medium=nextui-homepage-section"
rel="noopener noreferrer"
target="_blank"
>
Explore NextUI Pro
<svg fill="none" height="21" viewBox="0 0 20 21" width="20" xmlns="http://www.w3.org/2000/svg">
<path
d="M12.0254 5.44189L17.0837 10.5002L12.0254 15.5586"
stroke="white"
strokeLinecap="round"
strokeLinejoin="round"
strokeMiterlimit="10"
strokeWidth="1.5"
/>
<path
d="M2.91602 10.5H16.941"
stroke="white"
strokeLinecap="round"
strokeLinejoin="round"
strokeMiterlimit="10"
strokeWidth="1.5"
/>
</svg>
</Button>
);
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import {Chip} from "@nextui-org/react";

export const NextUIProChip = () => (
<Chip
classNames={{
base: "ml-0.5 transition-colors bg-gradient-to-br from-cyan-600 to-blue-600",
content: "text-tiny font-semibold",
}}
color="primary"
size="sm"
>
PRO
</Chip>
);
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
"use client";

import {useTheme} from "next-themes";
import NextImage from "next/image";
import {useEffect, useState} from "react";

export const NextUIProImage = () => {
const [mounted, setMounted] = useState(false);
const {theme} = useTheme();
const isDarkMode = theme === "dark";

useEffect(() => {
setMounted(true);
}, []);

let imgSrc = isDarkMode
? "https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/images/nextuipro-section-background.webp"
: "https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/images/nextuipro-section-background-light.webp";

if (!mounted) return null;

return (
<NextImage
alt="Hero Background"
className="opacity-0 animate-fadeIn"
height={3255}
quality={100}
src={imgSrc}
width={1920}
/>
);
};
Loading