feat(root): tsup banner added to support use client directive

This commit is contained in:
Junior Garcia 2023-04-28 20:14:18 -03:00
parent 07f9e86116
commit f9835e5a17
189 changed files with 1992 additions and 1021 deletions

1
.gitignore vendored
View File

@ -9,7 +9,6 @@ node_modules
# testing
/coverage
coverage
types
# next.js
/.next/

View File

@ -15,7 +15,7 @@ export const UserTwitterCard: FC<UserTwitterCardProps> = ({className}) => {
<div className="flex gap-5">
<Avatar isBordered radius="full" size="md" src="/avatars/avatar-1.png" />
<div className="flex flex-col items-start justify-center">
<h4 className="text-base font-semibold leading-none text-neutral-600">Zoey Lang</h4>
<h4 className="text-sm font-semibold leading-none text-neutral-600">Zoey Lang</h4>
<h5 className="text-sm tracking-tight text-neutral-400">@zoeylang</h5>
</div>
</div>

View File

@ -0,0 +1,54 @@
import React, {ReactNode} from "react";
import {Card, CardHeader, CardBody, LinkProps} from "@nextui-org/react";
import {useRouter} from "next/router";
import {LinkIcon} from "@nextui-org/shared-icons";
export interface Feature extends LinkProps {
title: string;
description: string;
icon: ReactNode;
}
interface FeaturesGridProps {
features: Feature[];
}
export const FeaturesGrid: React.FC<FeaturesGridProps> = ({features, ...props}) => {
const router = useRouter();
const handleClick = (feat: Feature) => {
if (!feat.href) {
return;
}
if (feat.isExternal) {
window.open(feat.href, "_blank");
return;
}
router.push(feat.href);
};
return (
<div className="flex gap-2" {...props}>
{features.map((feat: Feature, index: number) => (
<div key={`${feat.title}_${index}`}>
<Card
isBlurred
className="border-none before:bg-white/5 before:backdrop-blur-lg before:backdrop-saturate-[1.8]"
isPressable={!!feat.href}
onPress={() => handleClick(feat)}
>
<CardHeader>
<div>{feat.icon}</div>
<p>{feat.title}</p>
{feat.isExternal && <LinkIcon className="text-white" height={18} width={18} />}
</CardHeader>
<CardBody>
<p>{feat.description}</p>
</CardBody>
</Card>
</div>
))}
</div>
);
};

View File

@ -10,6 +10,8 @@ import {
Switch,
Spinner,
Pagination,
Tabs,
TabItem,
} from "@nextui-org/react";
import {ArrowRightIcon, MoonFilledIcon, SunFilledIcon} from "@nextui-org/shared-icons";
import {useTheme} from "next-themes";
@ -41,7 +43,8 @@ const FloatingComponents: React.FC = () => {
<div className="flex flex-col gap-4">
<Switch
classNames={{
base: "relative top-[140px] left-[240px] animate-[levitate_13s_ease_infinite_1s_reverse]",
base: "relative top-[80px] left-[240px] animate-[levitate_13s_ease_infinite_1s_reverse]",
wrapper: "shadow-sm",
startIcon: "text-white",
}}
endIcon={<MoonFilledIcon />}
@ -51,9 +54,20 @@ const FloatingComponents: React.FC = () => {
onChange={onChange}
/>
<Input
className="relative top-[140px] left-[240px] animate-[levitate_10s_ease_infinite] w-[200px]"
color="secondary"
defaultValue="NextUI"
label="Input"
labelPosition="outside"
radius="xl"
variant="bordered"
onClear={() => {}}
/>
<Card
isFooterBlurred
className="relative h-[120px] animate-[levitate_12s_ease_infinite_1s] left-[80px] top-[40px] z-0 max-w-fit"
className="relative top-[-40px] left-[80px] h-[120px] animate-[levitate_12s_ease_infinite_1s] z-0 max-w-fit"
radius="2xl"
>
<Image
@ -67,32 +81,35 @@ const FloatingComponents: React.FC = () => {
</CardFooter>
</Card>
<Input
className="relative animate-[levitate_10s_ease_infinite] -left-[144px] top-[0px] w-[200px]"
color="secondary"
defaultValue="NextUI"
label="Input"
labelPosition="outside"
radius="xl"
variant="bordered"
onClear={() => {}}
/>
<Tabs
aria-label="Floating tabs example"
className="relative -left-[144px] top-[-80px] animate-[levitate_17s_ease_infinite_1s]"
classNames={{
tabList: "max-w-[200px] bg-content1 shadow-sm",
}}
radius="full"
size="xs"
>
<TabItem key="notes" title="Notes" />
<TabItem key="tasks" title="Tasks" />
<TabItem key="files" title="Files" />
</Tabs>
<UserTwitterCard className="animate-[levitate_16s_ease_infinite] relative border-none -left-[240px] top-[20px]" />
<UserTwitterCard className="relative -left-[240px] top-[-80px] animate-[levitate_16s_ease_infinite] border-none" />
<Card className="animate-[levitate_18s_ease_infinite] relative left-[90px] -top-[140px] right-8 shadow-lg z-10 max-w-fit border-none">
<Card className="relative left-[90px] -top-[220px] animate-[levitate_18s_ease_infinite] right-8 shadow-lg z-10 max-w-fit border-none">
<CardBody>
<NextUILogo small size={60} />
</CardBody>
</Card>
<div className="relative z-10 -top-[230px] -right-[200px] animate-[levitate_14s_ease_infinite_1s]">
<div className="relative z-10 -top-[310px] -right-[200px] animate-[levitate_14s_ease_infinite_1s]">
<Pagination
isCompact
showControls
showShadow
classNames={{
base: "shadow-lg rounded-xl",
base: "shadow-sm rounded-xl",
item: "bg-background dark:bg-content1",
prev: "bg-background dark:bg-content1",
next: "bg-background dark:bg-content1",
@ -111,7 +128,7 @@ const FloatingComponents: React.FC = () => {
placement="top"
>
<Button
className="relative -left-[120px] -top-[80px] max-w-fit animate-[levitate_14s_ease_infinite_0.5s]"
className="relative -left-[120px] -top-[180px] max-w-fit animate-[levitate_14s_ease_infinite_0.5s]"
color="secondary"
size="sm"
variant="flat"
@ -120,7 +137,7 @@ const FloatingComponents: React.FC = () => {
</Button>
</Tooltip>
<Card className="relative animate-[levitate_16s_ease_infinite] left-[220px] -top-[260px] right-8 shadow-lg z-10 max-w-fit border-none">
<Card className="relative left-[220px] -top-[320px] animate-[levitate_16s_ease_infinite] right-8 shadow-lg z-10 max-w-fit border-none">
<CardBody>
<Spinner color="secondary" size="xl" />
</CardBody>
@ -128,7 +145,7 @@ const FloatingComponents: React.FC = () => {
<Card
isFooterBlurred
className="relative animate-[levitate_12s_ease_infinite_1s] left-10 -top-[300px] z-0 max-w-fit"
className="relative left-10 -top-[380px] animate-[levitate_12s_ease_infinite_1s] z-0 max-w-fit"
radius="2xl"
>
<Image className="object-cover" height={200} src="/images/hero-card.jpeg" width={200} />
@ -145,7 +162,7 @@ const FloatingComponents: React.FC = () => {
export const Hero = () => {
return (
<section className="flex relative w-full flex-nowrap justify-between items-center h-[calc(90vh_-_64px)] max-h-[800px]">
<section className="flex relative w-full flex-nowrap justify-between items-center h-[calc(100vh_-_64px)] max-h-[800px]">
<div className="flex flex-col gap-6 w-1/2">
<div>
<h1 className="text-5xl tracking-tight inline font-semibold">Make&nbsp;</h1>

View File

@ -0,0 +1,35 @@
import {IconSvgProps} from "@/types";
export const DevicesIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
<svg
aria-hidden="true"
focusable="false"
height={size || height}
role="presentation"
viewBox="0 0 24 24"
width={size || width}
{...props}
>
<path
d="M10 16.95H6.21c-3.37 0-4.21-.84-4.21-4.21v-6c0-3.37.84-4.21 4.21-4.21h10.53c3.37 0 4.21.84 4.21 4.21M10 21.47v-4.52M2 12.95h8M6.74 21.47H10"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={1.5}
/>
<path
d="M22 12.8v5.71c0 2.37-.59 2.96-2.96 2.96h-3.55c-2.37 0-2.96-.59-2.96-2.96V12.8c0-2.37.59-2.96 2.96-2.96h3.55c2.37 0 2.96.59 2.96 2.96Z"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={1.5}
/>
<path
d="M17.244 18.25h.01"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={2}
/>
</svg>
);

View File

@ -0,0 +1,22 @@
import {IconSvgProps} from "@/types";
export const FlashIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
<svg
aria-hidden="true"
focusable="false"
height={size || height}
role="presentation"
viewBox="0 0 24 24"
width={size || width}
{...props}
>
<path
d="M6.09 13.28h3.09v7.2c0 1.68.91 2.02 2.02.76l7.57-8.6c.93-1.05.54-1.92-.87-1.92h-3.09v-7.2c0-1.68-.91-2.02-2.02-.76l-7.57 8.6c-.92 1.06-.53 1.92.87 1.92Z"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeMiterlimit={10}
strokeWidth={1.5}
/>
</svg>
);

View File

@ -1,4 +1,8 @@
export * from "./social";
export * from "./moon";
export * from "./moon-filled";
export * from "./sun";
export * from "./heart";
export * from "./magic";
export * from "./flash";
export * from "./devices";

View File

@ -0,0 +1,27 @@
import {IconSvgProps} from "@/types";
export const MagicIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
<svg
aria-hidden="true"
focusable="false"
height={size || height}
role="presentation"
viewBox="0 0 24 24"
width={size || width}
{...props}
>
<path
d="M3.5 20.5c.83.83 2.17.83 3 0l13-13c.83-.83.83-2.17 0-3-.83-.83-2.17-.83-3 0l-13 13c-.83.83-.83 2.17 0 3ZM18.01 8.99l-3-3"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={1.5}
/>
<path
d="M8.5 2.44 10 2l-.44 1.5L10 5l-1.5-.44L7 5l.44-1.5L7 2l1.5.44ZM4.5 8.44 6 8l-.44 1.5L6 11l-1.5-.44L3 11l.44-1.5L3 8l1.5.44ZM19.5 13.44 21 13l-.44 1.5L21 16l-1.5-.44L18 16l.44-1.5L18 13l1.5.44Z"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
/>
</svg>
);

View File

@ -0,0 +1,18 @@
import {IconSvgProps} from "@/types";
export const MoonFilledIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
<svg
aria-hidden="true"
focusable="false"
height={size || height}
role="presentation"
viewBox="0 0 24 24"
width={size || width}
{...props}
>
<path
d="M21.53 15.93c-.16-.27-.61-.69-1.73-.49a8.46 8.46 0 01-1.88.13 8.409 8.409 0 01-5.91-2.82 8.068 8.068 0 01-1.44-8.66c.44-1.01.13-1.54-.09-1.76s-.77-.55-1.83-.11a10.318 10.318 0 00-6.32 10.21 10.475 10.475 0 007.04 8.99 10 10 0 002.89.55c.16.01.32.02.48.02a10.5 10.5 0 008.47-4.27c.67-.93.49-1.519.32-1.79z"
fill="currentColor"
/>
</svg>
);

View File

@ -1,6 +1,6 @@
import {IconSvgProps} from "@/types";
export const MoonFilledIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
export const MoonIcon = ({size = 24, width, height, ...props}: IconSvgProps) => (
<svg
aria-hidden="true"
focusable="false"
@ -11,7 +11,7 @@ export const MoonFilledIcon = ({size = 24, width, height, ...props}: IconSvgProp
{...props}
>
<path
d="M21.53 15.93c-.16-.27-.61-.69-1.73-.49a8.46 8.46 0 01-1.88.13 8.409 8.409 0 01-5.91-2.82 8.068 8.068 0 01-1.44-8.66c.44-1.01.13-1.54-.09-1.76s-.77-.55-1.83-.11a10.318 10.318 0 00-6.32 10.21 10.475 10.475 0 007.04 8.99 10 10 0 002.89.55c.16.01.32.02.48.02a10.5 10.5 0 008.47-4.27c.67-.93.49-1.519.32-1.79z"
d="M20.742,13.045c-0.677,0.18-1.376,0.271-2.077,0.271c-2.135,0-4.14-0.83-5.646-2.336c-2.008-2.008-2.799-4.967-2.064-7.723 c0.092-0.345-0.007-0.713-0.259-0.965C10.444,2.04,10.077,1.938,9.73,2.034C8.028,2.489,6.476,3.382,5.241,4.616 c-3.898,3.898-3.898,10.243,0,14.143c1.889,1.889,4.401,2.93,7.072,2.93c2.671,0,5.182-1.04,7.07-2.929 c1.236-1.237,2.13-2.791,2.583-4.491c0.092-0.345-0.008-0.713-0.26-0.965C21.454,13.051,21.085,12.951,20.742,13.045z M17.97,17.346c-1.511,1.511-3.52,2.343-5.656,2.343c-2.137,0-4.146-0.833-5.658-2.344c-3.118-3.119-3.118-8.195,0-11.314 c0.602-0.602,1.298-1.102,2.06-1.483c-0.222,2.885,0.814,5.772,2.89,7.848c2.068,2.069,4.927,3.12,7.848,2.891 C19.072,16.046,18.571,16.743,17.97,17.346z"
fill="currentColor"
/>
</svg>

View File

@ -3,3 +3,4 @@ export * from "./docs-navbar";
export * from "./theme-switch";
export * from "./hero";
export * from "./looper-bg";
export * from "./features-grid";

View File

@ -0,0 +1,92 @@
import React from "react";
import {
MoonIcon,
MagicIcon,
FlashIcon,
DevicesIcon,
// Server,
// TagUser,
// RoundPointer,
// Maximize,
// CodeDocument,
// HtmlLogo,
} from "@/components/icons";
export default {
topFeatures: [
{
title: "Themeable",
description:
"Provides a simple way to customize default themes, you can change the colors, fonts, breakpoints and everything you need.",
icon: <MagicIcon className="text-pink-500" />,
},
{
title: "Fast",
description:
"Avoids unnecessary styles props at runtime, making it more performant than other UI libraries.",
icon: <FlashIcon className="text-pink-500" />,
},
{
title: "Light & Dark UI",
description:
"Automatic dark mode recognition, NextUI automatically changes the theme when detects HTML theme prop changes.",
icon: <MoonIcon className="text-pink-500" />,
},
{
title: "Unique DX",
description:
"NextUI is fully-typed to minimize the learning curve, and provide the best possible developer experience.",
icon: <DevicesIcon className="text-pink-500" />,
},
],
// fullFeatures: [
// {
// title: "Server side render (SSR)",
// description:
// "All NextUI components support cross-browser server-side rendering and provides a simple way to implement it in your project.",
// icon: <Server fill="#FF4ECD" />,
// },
// {
// title: "Accessible components",
// description:
// "NextUI components follow the WAI-ARIA guidelines, provide keyboard support and sensible focus management.",
// icon: <TagUser fill="#FF4ECD" />,
// },
// {
// title: "Focus interactions",
// description:
// "Focus ring will appear only when user navigates with keyboard or screen reader.",
// icon: <RoundPointer fill="#FF4ECD" />,
// },
// {
// title: "Built-in media queries",
// description:
// "NextUI provides a set of common media queries that, along with Stitches breakpoints allow you create responsive layouts faster.",
// icon: <Maximize fill="#FF4ECD" />,
// },
// {
// title: "TypeScript based",
// description:
// "Build type safe applications, NextUI has a fully-typed API to minimize the learning curve, and help you build applications.",
// icon: <CodeDocument fill="#FF4ECD" filled={false} />,
// },
// {
// title: "Override components tags",
// description: "A polymorphic `as` prop is included in all NextUI components.",
// icon: <HtmlLogo fill="#FF4ECD" />,
// },
// {
// title: "Critical Path CSS",
// description:
// "Since NextUI is based on Stitches, it only injects the styles which are actually used, so your users don't download unnecessary CSS.",
// icon: <Flash fill="#FF4ECD" />,
// },
// {
// title: "Beautifully designed",
// description:
// "NextUI components are unique and are not tied to any visual trend or design rule, which makes us unique and of course your projects as well.",
// icon: <Magic fill="#FF4ECD" />,
// },
// ]
};

View File

@ -1,10 +1,12 @@
import {DefaultLayout} from "@/layouts";
import {Hero} from "@/components";
import {Hero, FeaturesGrid} from "@/components";
import landingContent from "@/content/landing";
const IndexPage = () => {
return (
<DefaultLayout>
<Hero />
<FeaturesGrid features={landingContent.topFeatures} />
</DefaultLayout>
);
};

View File

@ -1,3 +1,8 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@tailwind utilities;
html {
overflow-y: scroll !important;
}

5
apps/docs/types/index.ts Normal file
View File

@ -0,0 +1,5 @@
import {SVGProps} from "react";
export type IconSvgProps = SVGProps<SVGSVGElement> & {
size?: number;
};

View File

@ -1,5 +1,35 @@
# @nextui-org/accordion
## 0.0.0-dev-v2-20230428210058
### Patch Changes
- Use client added to utilities
- Updated dependencies
- @nextui-org/use-aria-accordion-item@0.0.0-dev-v2-20230428210058
- @nextui-org/framer-transitions@0.0.0-dev-v2-20230428210058
- @nextui-org/shared-icons@0.0.0-dev-v2-20230428210058
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/aria-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/system@0.0.0-dev-v2-20230428210058
- @nextui-org/theme@0.0.0-dev-v2-20230428210058
## 0.0.0-dev-v2-20230428203230
### Patch Changes
- Use client directive added to support next.js app directory
- Updated dependencies
- @nextui-org/use-aria-accordion-item@0.0.0-dev-v2-20230428203230
- @nextui-org/framer-transitions@0.0.0-dev-v2-20230428203230
- @nextui-org/shared-icons@0.0.0-dev-v2-20230428203230
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/aria-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/system@0.0.0-dev-v2-20230428203230
- @nextui-org/theme@0.0.0-dev-v2-20230428203230
## 0.0.0-dev-v2-20230428031422
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/accordion",
"version": "0.0.0-dev-v2-20230428031422",
"version": "0.0.0-dev-v2-20230428210058",
"description": "Collapse display a list of high-level options that can expand/collapse to reveal more information.",
"keywords": [
"react",
@ -66,13 +66,5 @@
"clean-package": "2.2.0",
"react": "^18.0.0"
},
"clean-package": "../../../clean-package.config.json",
"tsup": {
"clean": true,
"target": "es2019",
"format": [
"cjs",
"esm"
]
}
"clean-package": "../../../clean-package.config.json"
}

View File

@ -0,0 +1,8 @@
import {defineConfig} from "tsup";
export default defineConfig({
clean: true,
target: "es2019",
format: ["cjs", "esm"],
banner: {js: '"use client";'},
});

View File

@ -1,5 +1,29 @@
# @nextui-org/avatar
## 0.0.0-dev-v2-20230428210058
### Patch Changes
- Use client added to utilities
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/use-image@0.0.0-dev-v2-20230428210058
- @nextui-org/system@0.0.0-dev-v2-20230428210058
- @nextui-org/theme@0.0.0-dev-v2-20230428210058
## 0.0.0-dev-v2-20230428203230
### Patch Changes
- Use client directive added to support next.js app directory
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/use-image@0.0.0-dev-v2-20230428203230
- @nextui-org/system@0.0.0-dev-v2-20230428203230
- @nextui-org/theme@0.0.0-dev-v2-20230428203230
## 0.0.0-dev-v2-20230428031422
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/avatar",
"version": "0.0.0-dev-v2-20230428031422",
"version": "0.0.0-dev-v2-20230428210058",
"description": "The Avatar component is used to represent a user, and displays the profile picture, initials or fallback icon.",
"keywords": [
"avatar"
@ -52,13 +52,5 @@
"clean-package": "2.2.0",
"react": "^18.0.0"
},
"clean-package": "../../../clean-package.config.json",
"tsup": {
"clean": true,
"target": "es2019",
"format": [
"cjs",
"esm"
]
}
"clean-package": "../../../clean-package.config.json"
}

View File

@ -0,0 +1,8 @@
import {defineConfig} from "tsup";
export default defineConfig({
clean: true,
target: "es2019",
format: ["cjs", "esm"],
banner: {js: '"use client";'},
});

View File

@ -1,5 +1,27 @@
# @nextui-org/badge
## 0.0.0-dev-v2-20230428210058
### Patch Changes
- Use client added to utilities
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/system@0.0.0-dev-v2-20230428210058
- @nextui-org/theme@0.0.0-dev-v2-20230428210058
## 0.0.0-dev-v2-20230428203230
### Patch Changes
- Use client directive added to support next.js app directory
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/system@0.0.0-dev-v2-20230428203230
- @nextui-org/theme@0.0.0-dev-v2-20230428203230
## 0.0.0-dev-v2-20230428031422
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/badge",
"version": "0.0.0-dev-v2-20230428031422",
"version": "0.0.0-dev-v2-20230428210058",
"description": "Badges are used as a small numerical value or status descriptor for UI elements.",
"keywords": [
"badge"
@ -48,13 +48,5 @@
"clean-package": "2.2.0",
"react": "^18.0.0"
},
"clean-package": "../../../clean-package.config.json",
"tsup": {
"clean": true,
"target": "es2019",
"format": [
"cjs",
"esm"
]
}
"clean-package": "../../../clean-package.config.json"
}

View File

@ -0,0 +1,8 @@
import {defineConfig} from "tsup";
export default defineConfig({
clean: true,
target: "es2019",
format: ["cjs", "esm"],
banner: {js: '"use client";'},
});

View File

@ -1,5 +1,33 @@
# @nextui-org/button
## 0.0.0-dev-v2-20230428210058
### Patch Changes
- Use client added to utilities
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/use-aria-button@0.0.0-dev-v2-20230428210058
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/spinner@0.0.0-dev-v2-20230428210058
- @nextui-org/drip@0.0.0-dev-v2-20230428210058
- @nextui-org/system@0.0.0-dev-v2-20230428210058
- @nextui-org/theme@0.0.0-dev-v2-20230428210058
## 0.0.0-dev-v2-20230428203230
### Patch Changes
- Use client directive added to support next.js app directory
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/use-aria-button@0.0.0-dev-v2-20230428203230
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/spinner@0.0.0-dev-v2-20230428203230
- @nextui-org/drip@0.0.0-dev-v2-20230428203230
- @nextui-org/system@0.0.0-dev-v2-20230428203230
- @nextui-org/theme@0.0.0-dev-v2-20230428203230
## 0.0.0-dev-v2-20230428031422
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/button",
"version": "0.0.0-dev-v2-20230428031422",
"version": "0.0.0-dev-v2-20230428210058",
"description": "Buttons allow users to perform actions and choose with a single tap.",
"keywords": [
"button"
@ -57,13 +57,5 @@
"clean-package": "2.2.0",
"react": "^18.0.0"
},
"clean-package": "../../../clean-package.config.json",
"tsup": {
"clean": true,
"target": "es2019",
"format": [
"cjs",
"esm"
]
}
"clean-package": "../../../clean-package.config.json"
}

View File

@ -0,0 +1,8 @@
import {defineConfig} from "tsup";
export default defineConfig({
clean: true,
target: "es2019",
format: ["cjs", "esm"],
banner: {js: '"use client";'},
});

View File

@ -1,5 +1,31 @@
# @nextui-org/card
## 0.0.0-dev-v2-20230428210058
### Patch Changes
- Use client added to utilities
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/use-aria-button@0.0.0-dev-v2-20230428210058
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/drip@0.0.0-dev-v2-20230428210058
- @nextui-org/system@0.0.0-dev-v2-20230428210058
- @nextui-org/theme@0.0.0-dev-v2-20230428210058
## 0.0.0-dev-v2-20230428203230
### Patch Changes
- Use client directive added to support next.js app directory
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/use-aria-button@0.0.0-dev-v2-20230428203230
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/drip@0.0.0-dev-v2-20230428203230
- @nextui-org/system@0.0.0-dev-v2-20230428203230
- @nextui-org/theme@0.0.0-dev-v2-20230428203230
## 0.0.0-dev-v2-20230428031422
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/card",
"version": "0.0.0-dev-v2-20230428031422",
"version": "0.0.0-dev-v2-20230428210058",
"description": "Card is a container for text, photos, and actions in the context of a single subject.",
"keywords": [
"card"
@ -58,13 +58,5 @@
"clean-package": "2.2.0",
"react": "^18.0.0"
},
"clean-package": "../../../clean-package.config.json",
"tsup": {
"clean": true,
"target": "es2019",
"format": [
"cjs",
"esm"
]
}
"clean-package": "../../../clean-package.config.json"
}

View File

@ -0,0 +1,8 @@
import {defineConfig} from "tsup";
export default defineConfig({
clean: true,
target: "es2019",
format: ["cjs", "esm"],
banner: {js: '"use client";'},
});

View File

@ -1,5 +1,27 @@
# @nextui-org/checkbox
## 0.0.0-dev-v2-20230428210058
### Patch Changes
- Use client added to utilities
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/system@0.0.0-dev-v2-20230428210058
- @nextui-org/theme@0.0.0-dev-v2-20230428210058
## 0.0.0-dev-v2-20230428203230
### Patch Changes
- Use client directive added to support next.js app directory
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/system@0.0.0-dev-v2-20230428203230
- @nextui-org/theme@0.0.0-dev-v2-20230428203230
## 0.0.0-dev-v2-20230428031422
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/checkbox",
"version": "0.0.0-dev-v2-20230428031422",
"version": "0.0.0-dev-v2-20230428210058",
"description": "Checkboxes allow users to select multiple items from a list of individual items, or to mark one individual item as selected.",
"keywords": [
"checkbox"
@ -59,13 +59,5 @@
"clean-package": "2.2.0",
"react": "^18.0.0"
},
"clean-package": "../../../clean-package.config.json",
"tsup": {
"clean": true,
"target": "es2019",
"format": [
"cjs",
"esm"
]
}
"clean-package": "../../../clean-package.config.json"
}

View File

@ -182,7 +182,7 @@ export const CustomWithClassNames = (props: CustomCheckboxProps) => {
aria-label={userName}
classNames={{
base: clsx(
"inline-flex w-full max-w-md bg-content1 hover:bg-content2 items-center justify-start cursor-pointer rounded-lg gap-2 p-4 border-2.5 border-transparent",
"inline-flex w-full max-w-md bg-content1 hover:bg-content2 items-center justify-start cursor-pointer rounded-lg gap-2 p-4 border-2 border-transparent",
{
"border-primary": isChecked,
},

View File

@ -0,0 +1,8 @@
import {defineConfig} from "tsup";
export default defineConfig({
clean: true,
target: "es2019",
format: ["cjs", "esm"],
banner: {js: '"use client";'},
});

View File

@ -1,5 +1,29 @@
# @nextui-org/chip
## 0.0.0-dev-v2-20230428210058
### Patch Changes
- Use client added to utilities
- Updated dependencies
- @nextui-org/shared-icons@0.0.0-dev-v2-20230428210058
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/system@0.0.0-dev-v2-20230428210058
- @nextui-org/theme@0.0.0-dev-v2-20230428210058
## 0.0.0-dev-v2-20230428203230
### Patch Changes
- Use client directive added to support next.js app directory
- Updated dependencies
- @nextui-org/shared-icons@0.0.0-dev-v2-20230428203230
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/system@0.0.0-dev-v2-20230428203230
- @nextui-org/theme@0.0.0-dev-v2-20230428203230
## 0.0.0-dev-v2-20230428031422
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/chip",
"version": "0.0.0-dev-v2-20230428031422",
"version": "0.0.0-dev-v2-20230428210058",
"description": "Chips help people enter information, make selections, filter content, or trigger actions.",
"keywords": [
"chip"
@ -52,13 +52,5 @@
"clean-package": "2.2.0",
"react": "^18.0.0"
},
"clean-package": "../../../clean-package.config.json",
"tsup": {
"clean": true,
"target": "es2019",
"format": [
"cjs",
"esm"
]
}
"clean-package": "../../../clean-package.config.json"
}

View File

@ -0,0 +1,8 @@
import {defineConfig} from "tsup";
export default defineConfig({
clean: true,
target: "es2019",
format: ["cjs", "esm"],
banner: {js: '"use client";'},
});

View File

@ -1,5 +1,27 @@
# @nextui-org/code
## 0.0.0-dev-v2-20230428210058
### Patch Changes
- Use client added to utilities
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/system@0.0.0-dev-v2-20230428210058
- @nextui-org/theme@0.0.0-dev-v2-20230428210058
## 0.0.0-dev-v2-20230428203230
### Patch Changes
- Use client directive added to support next.js app directory
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/system@0.0.0-dev-v2-20230428203230
- @nextui-org/theme@0.0.0-dev-v2-20230428203230
## 0.0.0-dev-v2-20230428031422
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/code",
"version": "0.0.0-dev-v2-20230428031422",
"version": "0.0.0-dev-v2-20230428210058",
"description": "Code is a component used to display inline code.",
"keywords": [
"code"
@ -46,13 +46,5 @@
"clean-package": "2.2.0",
"react": "^18.0.0"
},
"clean-package": "../../../clean-package.config.json",
"tsup": {
"clean": true,
"target": "es2019",
"format": [
"cjs",
"esm"
]
}
"clean-package": "../../../clean-package.config.json"
}

View File

@ -0,0 +1,8 @@
import {defineConfig} from "tsup";
export default defineConfig({
clean: true,
target: "es2019",
format: ["cjs", "esm"],
banner: {js: '"use client";'},
});

View File

@ -1,5 +1,27 @@
# @nextui-org/divider
## 0.0.0-dev-v2-20230428210058
### Patch Changes
- Use client added to utilities
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/system@0.0.0-dev-v2-20230428210058
- @nextui-org/theme@0.0.0-dev-v2-20230428210058
## 0.0.0-dev-v2-20230428203230
### Patch Changes
- Use client directive added to support next.js app directory
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/system@0.0.0-dev-v2-20230428203230
- @nextui-org/theme@0.0.0-dev-v2-20230428203230
## 0.0.0-dev-v2-20230428031422
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/divider",
"version": "0.0.0-dev-v2-20230428031422",
"version": "0.0.0-dev-v2-20230428210058",
"description": ". A separator is a visual divider between two groups of content",
"keywords": [
"divider"
@ -48,13 +48,5 @@
"clean-package": "2.2.0",
"react": "^18.0.0"
},
"clean-package": "../../../clean-package.config.json",
"tsup": {
"clean": true,
"target": "es2019",
"format": [
"cjs",
"esm"
]
}
"clean-package": "../../../clean-package.config.json"
}

View File

@ -0,0 +1,8 @@
import {defineConfig} from "tsup";
export default defineConfig({
clean: true,
target: "es2019",
format: ["cjs", "esm"],
banner: {js: '"use client";'},
});

View File

@ -1,5 +1,27 @@
# @nextui-org/drip
## 0.0.0-dev-v2-20230428210058
### Patch Changes
- Use client added to utilities
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/system@0.0.0-dev-v2-20230428210058
- @nextui-org/theme@0.0.0-dev-v2-20230428210058
## 0.0.0-dev-v2-20230428203230
### Patch Changes
- Use client directive added to support next.js app directory
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/system@0.0.0-dev-v2-20230428203230
- @nextui-org/theme@0.0.0-dev-v2-20230428203230
## 0.0.0-dev-v2-20230428031422
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/drip",
"version": "0.0.0-dev-v2-20230428031422",
"version": "0.0.0-dev-v2-20230428210058",
"description": "A ripple effect for ensuring that the user fells the system is reacting instantaneously",
"keywords": [
"drip"
@ -46,13 +46,5 @@
"clean-package": "2.2.0",
"react": "^18.0.0"
},
"clean-package": "../../../clean-package.config.json",
"tsup": {
"clean": true,
"target": "es2019",
"format": [
"cjs",
"esm"
]
}
"clean-package": "../../../clean-package.config.json"
}

View File

@ -0,0 +1,8 @@
import {defineConfig} from "tsup";
export default defineConfig({
clean: true,
target: "es2019",
format: ["cjs", "esm"],
banner: {js: '"use client";'},
});

View File

@ -1,5 +1,33 @@
# @nextui-org/dropdown
## 0.0.0-dev-v2-20230428210058
### Patch Changes
- Use client added to utilities
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/aria-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/use-is-mobile@0.0.0-dev-v2-20230428210058
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/popover@0.0.0-dev-v2-20230428210058
- @nextui-org/system@0.0.0-dev-v2-20230428210058
- @nextui-org/theme@0.0.0-dev-v2-20230428210058
## 0.0.0-dev-v2-20230428203230
### Patch Changes
- Use client directive added to support next.js app directory
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/aria-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/use-is-mobile@0.0.0-dev-v2-20230428203230
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/popover@0.0.0-dev-v2-20230428203230
- @nextui-org/system@0.0.0-dev-v2-20230428203230
- @nextui-org/theme@0.0.0-dev-v2-20230428203230
## 0.0.0-dev-v2-20230428031422
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/dropdown",
"version": "0.0.0-dev-v2-20230428031422",
"version": "0.0.0-dev-v2-20230428210058",
"description": "A dropdown displays a list of actions or options that a user can choose.",
"keywords": [
"dropdown"
@ -64,13 +64,5 @@
"clean-package": "2.2.0",
"react": "^18.0.0"
},
"clean-package": "../../../clean-package.config.json",
"tsup": {
"clean": true,
"target": "es2019",
"format": [
"cjs",
"esm"
]
}
"clean-package": "../../../clean-package.config.json"
}

View File

@ -0,0 +1,8 @@
import {defineConfig} from "tsup";
export default defineConfig({
clean: true,
target: "es2019",
format: ["cjs", "esm"],
banner: {js: '"use client";'},
});

View File

@ -1,5 +1,29 @@
# @nextui-org/image
## 0.0.0-dev-v2-20230428210058
### Patch Changes
- Use client added to utilities
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/use-image@0.0.0-dev-v2-20230428210058
- @nextui-org/system@0.0.0-dev-v2-20230428210058
- @nextui-org/theme@0.0.0-dev-v2-20230428210058
## 0.0.0-dev-v2-20230428203230
### Patch Changes
- Use client directive added to support next.js app directory
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/use-image@0.0.0-dev-v2-20230428203230
- @nextui-org/system@0.0.0-dev-v2-20230428203230
- @nextui-org/theme@0.0.0-dev-v2-20230428203230
## 0.0.0-dev-v2-20230428031422
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/image",
"version": "0.0.0-dev-v2-20230428031422",
"version": "0.0.0-dev-v2-20230428210058",
"description": "A simple image component",
"keywords": [
"image"
@ -47,13 +47,5 @@
"clean-package": "2.2.0",
"react": "^18.0.0"
},
"clean-package": "../../../clean-package.config.json",
"tsup": {
"clean": true,
"target": "es2019",
"format": [
"cjs",
"esm"
]
}
"clean-package": "../../../clean-package.config.json"
}

View File

@ -0,0 +1,8 @@
import {defineConfig} from "tsup";
export default defineConfig({
clean: true,
target: "es2019",
format: ["cjs", "esm"],
banner: {js: '"use client";'},
});

View File

@ -1,5 +1,31 @@
# @nextui-org/input
## 0.0.0-dev-v2-20230428210058
### Patch Changes
- Use client added to utilities
- Updated dependencies
- @nextui-org/shared-icons@0.0.0-dev-v2-20230428210058
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/use-aria-field@0.0.0-dev-v2-20230428210058
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/system@0.0.0-dev-v2-20230428210058
- @nextui-org/theme@0.0.0-dev-v2-20230428210058
## 0.0.0-dev-v2-20230428203230
### Patch Changes
- Use client directive added to support next.js app directory
- Updated dependencies
- @nextui-org/shared-icons@0.0.0-dev-v2-20230428203230
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/use-aria-field@0.0.0-dev-v2-20230428203230
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/system@0.0.0-dev-v2-20230428203230
- @nextui-org/theme@0.0.0-dev-v2-20230428203230
## 0.0.0-dev-v2-20230428031422
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/input",
"version": "0.0.0-dev-v2-20230428031422",
"version": "0.0.0-dev-v2-20230428210058",
"description": "The input component is designed for capturing user input within a text field.",
"keywords": [
"input"
@ -55,13 +55,5 @@
"clean-package": "2.2.0",
"react": "^18.0.0"
},
"clean-package": "../../../clean-package.config.json",
"tsup": {
"clean": true,
"target": "es2019",
"format": [
"cjs",
"esm"
]
}
"clean-package": "../../../clean-package.config.json"
}

View File

@ -0,0 +1,8 @@
import {defineConfig} from "tsup";
export default defineConfig({
clean: true,
target: "es2019",
format: ["cjs", "esm"],
banner: {js: '"use client";'},
});

View File

@ -1,5 +1,27 @@
# @nextui-org/kbd
## 0.0.0-dev-v2-20230428210058
### Patch Changes
- Use client added to utilities
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/system@0.0.0-dev-v2-20230428210058
- @nextui-org/theme@0.0.0-dev-v2-20230428210058
## 0.0.0-dev-v2-20230428203230
### Patch Changes
- Use client directive added to support next.js app directory
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/system@0.0.0-dev-v2-20230428203230
- @nextui-org/theme@0.0.0-dev-v2-20230428203230
## 0.0.0-dev-v2-20230428031422
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/kbd",
"version": "0.0.0-dev-v2-20230428031422",
"version": "0.0.0-dev-v2-20230428210058",
"description": "The keyboard key components indicates which key or set of keys used to execute a specificv action",
"keywords": [
"kbd"
@ -47,13 +47,5 @@
"clean-package": "2.2.0",
"react": "^18.0.0"
},
"clean-package": "../../../clean-package.config.json",
"tsup": {
"clean": true,
"target": "es2019",
"format": [
"cjs",
"esm"
]
}
"clean-package": "../../../clean-package.config.json"
}

View File

@ -0,0 +1,8 @@
import {defineConfig} from "tsup";
export default defineConfig({
clean: true,
target: "es2019",
format: ["cjs", "esm"],
banner: {js: '"use client";'},
});

View File

@ -1,5 +1,29 @@
# @nextui-org/link
## 0.0.0-dev-v2-20230428210058
### Patch Changes
- Use client added to utilities
- Updated dependencies
- @nextui-org/shared-icons@0.0.0-dev-v2-20230428210058
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/system@0.0.0-dev-v2-20230428210058
- @nextui-org/theme@0.0.0-dev-v2-20230428210058
## 0.0.0-dev-v2-20230428203230
### Patch Changes
- Use client directive added to support next.js app directory
- Updated dependencies
- @nextui-org/shared-icons@0.0.0-dev-v2-20230428203230
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/system@0.0.0-dev-v2-20230428203230
- @nextui-org/theme@0.0.0-dev-v2-20230428203230
## 0.0.0-dev-v2-20230428031422
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/link",
"version": "0.0.0-dev-v2-20230428031422",
"version": "0.0.0-dev-v2-20230428210058",
"description": "Links allow users to click their way from page to page. This component is styled to resemble a hyperlink and semantically renders an &lt;a&gt;",
"keywords": [
"link"
@ -39,6 +39,7 @@
"dependencies": {
"@nextui-org/dom-utils": "workspace:*",
"@nextui-org/shared-utils": "workspace:*",
"@nextui-org/shared-icons": "workspace:*",
"@nextui-org/system": "workspace:*",
"@nextui-org/theme": "workspace:*",
"@react-aria/link": "^3.5.0",
@ -50,13 +51,5 @@
"clean-package": "2.2.0",
"react": "^18.0.0"
},
"clean-package": "../../../clean-package.config.json",
"tsup": {
"clean": true,
"target": "es2019",
"format": [
"cjs",
"esm"
]
}
"clean-package": "../../../clean-package.config.json"
}

View File

@ -1,12 +1,18 @@
import {forwardRef} from "@nextui-org/system";
import {LinkIcon} from "@nextui-org/shared-icons";
import {UseLinkProps, useLink} from "./use-link";
import {LinkIcon} from "./link-icon";
export interface LinkProps extends Omit<UseLinkProps, "ref"> {}
const Link = forwardRef<LinkProps, "a">((props, ref) => {
const {Component, children, showAnchorIcon, anchorIcon = <LinkIcon />, getLinkProps} = useLink({
const {
Component,
children,
showAnchorIcon,
anchorIcon = <LinkIcon className="flex mx-1 text-current self-center" />,
getLinkProps,
} = useLink({
...props,
ref,
});

View File

@ -0,0 +1,8 @@
import {defineConfig} from "tsup";
export default defineConfig({
clean: true,
target: "es2019",
format: ["cjs", "esm"],
banner: {js: '"use client";'},
});

View File

@ -1,5 +1,35 @@
# @nextui-org/modal
## 0.0.0-dev-v2-20230428210058
### Patch Changes
- Use client added to utilities
- Updated dependencies
- @nextui-org/framer-transitions@0.0.0-dev-v2-20230428210058
- @nextui-org/shared-icons@0.0.0-dev-v2-20230428210058
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/use-aria-button@0.0.0-dev-v2-20230428210058
- @nextui-org/use-disclosure@0.0.0-dev-v2-20230428210058
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/system@0.0.0-dev-v2-20230428210058
- @nextui-org/theme@0.0.0-dev-v2-20230428210058
## 0.0.0-dev-v2-20230428203230
### Patch Changes
- Use client directive added to support next.js app directory
- Updated dependencies
- @nextui-org/framer-transitions@0.0.0-dev-v2-20230428203230
- @nextui-org/shared-icons@0.0.0-dev-v2-20230428203230
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/use-aria-button@0.0.0-dev-v2-20230428203230
- @nextui-org/use-disclosure@0.0.0-dev-v2-20230428203230
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/system@0.0.0-dev-v2-20230428203230
- @nextui-org/theme@0.0.0-dev-v2-20230428203230
## 0.0.0-dev-v2-20230428031422
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/modal",
"version": "0.0.0-dev-v2-20230428031422",
"version": "0.0.0-dev-v2-20230428210058",
"description": "Displays a dialog with a custom content that requires attention or provides additional information.",
"keywords": [
"modal"
@ -62,13 +62,5 @@
"clean-package": "2.2.0",
"react": "^18.0.0"
},
"clean-package": "../../../clean-package.config.json",
"tsup": {
"clean": true,
"target": "es2019",
"format": [
"cjs",
"esm"
]
}
"clean-package": "../../../clean-package.config.json"
}

View File

@ -0,0 +1,8 @@
import {defineConfig} from "tsup";
export default defineConfig({
clean: true,
target: "es2019",
format: ["cjs", "esm"],
banner: {js: '"use client";'},
});

View File

@ -1,5 +1,33 @@
# @nextui-org/navbar
## 0.0.0-dev-v2-20230428210058
### Patch Changes
- Use client added to utilities
- Updated dependencies
- @nextui-org/use-aria-toggle-button@0.0.0-dev-v2-20230428210058
- @nextui-org/framer-transitions@0.0.0-dev-v2-20230428210058
- @nextui-org/use-scroll-position@0.0.0-dev-v2-20230428210058
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/system@0.0.0-dev-v2-20230428210058
- @nextui-org/theme@0.0.0-dev-v2-20230428210058
## 0.0.0-dev-v2-20230428203230
### Patch Changes
- Use client directive added to support next.js app directory
- Updated dependencies
- @nextui-org/use-aria-toggle-button@0.0.0-dev-v2-20230428203230
- @nextui-org/framer-transitions@0.0.0-dev-v2-20230428203230
- @nextui-org/use-scroll-position@0.0.0-dev-v2-20230428203230
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/system@0.0.0-dev-v2-20230428203230
- @nextui-org/theme@0.0.0-dev-v2-20230428203230
## 0.0.0-dev-v2-20230428031422
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/navbar",
"version": "0.0.0-dev-v2-20230428031422",
"version": "0.0.0-dev-v2-20230428210058",
"description": "A responsive navigation header positioned on top side of your page that includes support for branding, links, navigation, collapse and more.",
"keywords": [
"navbar"
@ -63,13 +63,5 @@
"react": "^18.0.0",
"react-lorem-component": "0.13.0"
},
"clean-package": "../../../clean-package.config.json",
"tsup": {
"clean": true,
"target": "es2019",
"format": [
"cjs",
"esm"
]
}
"clean-package": "../../../clean-package.config.json"
}

View File

@ -0,0 +1,8 @@
import {defineConfig} from "tsup";
export default defineConfig({
clean: true,
target: "es2019",
format: ["cjs", "esm"],
banner: {js: '"use client";'},
});

View File

@ -1,5 +1,31 @@
# @nextui-org/pagination
## 0.0.0-dev-v2-20230428210058
### Patch Changes
- Use client added to utilities
- Updated dependencies
- @nextui-org/shared-icons@0.0.0-dev-v2-20230428210058
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/use-pagination@0.0.0-dev-v2-20230428210058
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/system@0.0.0-dev-v2-20230428210058
- @nextui-org/theme@0.0.0-dev-v2-20230428210058
## 0.0.0-dev-v2-20230428203230
### Patch Changes
- Use client directive added to support next.js app directory
- Updated dependencies
- @nextui-org/shared-icons@0.0.0-dev-v2-20230428203230
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/use-pagination@0.0.0-dev-v2-20230428203230
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/system@0.0.0-dev-v2-20230428203230
- @nextui-org/theme@0.0.0-dev-v2-20230428203230
## 0.0.0-dev-v2-20230428031422
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/pagination",
"version": "0.0.0-dev-v2-20230428031422",
"version": "0.0.0-dev-v2-20230428210058",
"description": "The Pagination component allows you to display active page and navigate between multiple pages.",
"keywords": [
"pagination"
@ -51,13 +51,5 @@
"clean-package": "2.2.0",
"react": "^18.0.0"
},
"clean-package": "../../../clean-package.config.json",
"tsup": {
"clean": true,
"target": "es2019",
"format": [
"cjs",
"esm"
]
}
"clean-package": "../../../clean-package.config.json"
}

View File

@ -0,0 +1,8 @@
import {defineConfig} from "tsup";
export default defineConfig({
clean: true,
target: "es2019",
format: ["cjs", "esm"],
banner: {js: '"use client";'},
});

View File

@ -1,5 +1,35 @@
# @nextui-org/popover
## 0.0.0-dev-v2-20230428210058
### Patch Changes
- Use client added to utilities
- Updated dependencies
- @nextui-org/framer-transitions@0.0.0-dev-v2-20230428210058
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/use-aria-button@0.0.0-dev-v2-20230428210058
- @nextui-org/aria-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/button@0.0.0-dev-v2-20230428210058
- @nextui-org/system@0.0.0-dev-v2-20230428210058
- @nextui-org/theme@0.0.0-dev-v2-20230428210058
## 0.0.0-dev-v2-20230428203230
### Patch Changes
- Use client directive added to support next.js app directory
- Updated dependencies
- @nextui-org/framer-transitions@0.0.0-dev-v2-20230428203230
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/use-aria-button@0.0.0-dev-v2-20230428203230
- @nextui-org/aria-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/button@0.0.0-dev-v2-20230428203230
- @nextui-org/system@0.0.0-dev-v2-20230428203230
- @nextui-org/theme@0.0.0-dev-v2-20230428203230
## 0.0.0-dev-v2-20230428031422
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/popover",
"version": "0.0.0-dev-v2-20230428031422",
"version": "0.0.0-dev-v2-20230428210058",
"description": "A popover is an overlay element positioned relative to a trigger.",
"keywords": [
"popover"
@ -62,13 +62,5 @@
"clean-package": "2.2.0",
"react": "^18.0.0"
},
"clean-package": "../../../clean-package.config.json",
"tsup": {
"clean": true,
"target": "es2019",
"format": [
"cjs",
"esm"
]
}
"clean-package": "../../../clean-package.config.json"
}

View File

@ -0,0 +1,8 @@
import {defineConfig} from "tsup";
export default defineConfig({
clean: true,
target: "es2019",
format: ["cjs", "esm"],
banner: {js: '"use client";'},
});

View File

@ -1,5 +1,31 @@
# @nextui-org/progress
## 0.0.0-dev-v2-20230428210058
### Patch Changes
- Use client added to utilities
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/use-aria-label@0.0.0-dev-v2-20230428210058
- @nextui-org/use-is-mounted@0.0.0-dev-v2-20230428210058
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/system@0.0.0-dev-v2-20230428210058
- @nextui-org/theme@0.0.0-dev-v2-20230428210058
## 0.0.0-dev-v2-20230428203230
### Patch Changes
- Use client directive added to support next.js app directory
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/use-aria-label@0.0.0-dev-v2-20230428203230
- @nextui-org/use-is-mounted@0.0.0-dev-v2-20230428203230
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/system@0.0.0-dev-v2-20230428203230
- @nextui-org/theme@0.0.0-dev-v2-20230428203230
## 0.0.0-dev-v2-20230428031422
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/progress",
"version": "0.0.0-dev-v2-20230428031422",
"version": "0.0.0-dev-v2-20230428210058",
"description": "Progress bars show either determinate or indeterminate progress of an operation over time.",
"keywords": [
"progress"
@ -48,17 +48,11 @@
"@react-aria/utils": "^3.16.0"
},
"devDependencies": {
"@nextui-org/card": "workspace:*",
"@nextui-org/chip": "workspace:*",
"@react-types/progress": "^3.4.0",
"clean-package": "2.2.0",
"react": "^18.0.0"
},
"clean-package": "../../../clean-package.config.json",
"tsup": {
"clean": true,
"target": "es2019",
"format": [
"cjs",
"esm"
]
}
"clean-package": "../../../clean-package.config.json"
}

View File

@ -15,6 +15,7 @@ const CircularProgress = forwardRef<CircularProgressProps, "div">((props, ref) =
getLabelProps,
getSvgProps,
getCircleProps,
getTrackProps,
} = useCircularProgress({ref, ...props});
const progressBarProps = getProgressBarProps();
@ -23,6 +24,7 @@ const CircularProgress = forwardRef<CircularProgressProps, "div">((props, ref) =
<Component {...progressBarProps}>
<div className={slots.svgWrapper({class: classNames?.svgWrapper})}>
<svg {...getSvgProps()}>
<circle {...getTrackProps()} />
<circle {...getCircleProps()} />
</svg>
{showValueLabel && (

View File

@ -21,6 +21,11 @@ export interface Props extends HTMLNextUIProps<"div"> {
* Ref to the DOM node.
*/
ref?: ReactRef<HTMLElement | null>;
/**
* The stroke of the circle and tracker
* @default 2
*/
strokeWidth?: number;
/**
* Whether to show the value label.
* @default false
@ -37,8 +42,9 @@ export interface Props extends HTMLNextUIProps<"div"> {
* labelWrapper: "labelWrapper-classes",
* label: "label-classes",
* value: "value-classes",
* svg: "svg-classes",
* circle: "circle-classes",
* svg: "svg-classes", // the svg wrapper
* track: "track-classes", // the circle of the background
* circle: "circle-classes", // the circle of the progress
* }} />
* ```
*/
@ -61,6 +67,7 @@ export function useCircularProgress(originalProps: UseCircularProgressProps) {
value = undefined,
minValue = 0,
maxValue = 100,
strokeWidth: strokeWidthProp,
showValueLabel = false,
formatOptions = {
style: "percent",
@ -106,7 +113,7 @@ export function useCircularProgress(originalProps: UseCircularProgressProps) {
const selfMounted = originalProps.disableAnimation ? true : isMounted;
const center = 16;
const strokeWidth = originalProps.size === "xs" ? 2 : 3;
const strokeWidth = strokeWidthProp || originalProps.size === "xs" ? 2 : 3;
const radius = 16 - strokeWidth;
const circumference = 2 * radius * Math.PI;
@ -171,12 +178,29 @@ export function useCircularProgress(originalProps: UseCircularProgressProps) {
strokeDasharray: `${circumference} ${circumference}`,
strokeDashoffset: offset,
transform: "rotate(-90 16 16)",
strokeLinecap: "round",
className: slots.circle({class: classNames?.circle}),
...props,
}),
[slots, classNames, offset, circumference, radius],
);
const getTrackProps = useCallback<PropGetter>(
(props = {}) => ({
cx: center,
cy: center,
r: radius,
role: "presentation",
strokeDasharray: `${circumference} ${circumference}`,
strokeDashoffset: 0,
transform: "rotate(-90 16 16)",
strokeLinecap: "round",
className: slots.track({class: classNames?.track}),
...props,
}),
[slots, classNames, circumference, radius],
);
return {
Component,
domRef,
@ -188,6 +212,7 @@ export function useCircularProgress(originalProps: UseCircularProgressProps) {
getLabelProps,
getSvgProps,
getCircleProps,
getTrackProps,
};
}

View File

@ -1,6 +1,8 @@
import React from "react";
import {ComponentStory, ComponentMeta} from "@storybook/react";
import {circularProgress} from "@nextui-org/theme";
import {Card, CardBody, CardFooter} from "@nextui-org/card";
import {Chip} from "@nextui-org/chip";
import {CircularProgress, CircularProgressProps} from "../src";
@ -50,6 +52,36 @@ const IntervalTemplate: ComponentStory<typeof CircularProgress> = (args: Circula
return <CircularProgress {...args} value={value} />;
};
const CustomClassnamesTemplate: ComponentStory<typeof CircularProgress> = (
args: CircularProgressProps,
) => (
<Card className="w-[240px] h-[240px] border-none bg-gradient-to-br from-violet-500 to-fuchsia-500">
<CardBody className="justify-center items-center pb-0">
<CircularProgress
{...args}
classNames={{
svg: "w-36 h-36 drop-shadow-md",
circle: "stroke-white",
track: "stroke-white/10",
value: "text-3xl font-semibold text-white",
}}
strokeWidth={4}
/>
</CardBody>
<CardFooter className="justify-center items-center pt-0">
<Chip
classNames={{
base: "border-1 border-white/30",
content: "text-white/80 text-sm font-semibold",
}}
variant="bordered"
>
2800 Data points
</Chip>
</CardFooter>
</Card>
);
export const Default = Template.bind({});
Default.args = {
...defaultProps,
@ -81,3 +113,12 @@ WithValueFormatting.args = {
showValueLabel: true,
formatOptions: {style: "unit", unit: "kilometer"},
};
export const CustomClassnames = CustomClassnamesTemplate.bind({});
CustomClassnames.args = {
...defaultProps,
size: "xl",
strokeWidth: 4,
value: 70,
showValueLabel: true,
};

View File

@ -0,0 +1,8 @@
import {defineConfig} from "tsup";
export default defineConfig({
clean: true,
target: "es2019",
format: ["cjs", "esm"],
banner: {js: '"use client";'},
});

View File

@ -1,5 +1,27 @@
# @nextui-org/radio
## 0.0.0-dev-v2-20230428210058
### Patch Changes
- Use client added to utilities
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/system@0.0.0-dev-v2-20230428210058
- @nextui-org/theme@0.0.0-dev-v2-20230428210058
## 0.0.0-dev-v2-20230428203230
### Patch Changes
- Use client directive added to support next.js app directory
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/system@0.0.0-dev-v2-20230428203230
- @nextui-org/theme@0.0.0-dev-v2-20230428203230
## 0.0.0-dev-v2-20230428031422
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/radio",
"version": "0.0.0-dev-v2-20230428031422",
"version": "0.0.0-dev-v2-20230428210058",
"description": "Radios allow users to select a single option from a list of mutually exclusive options.",
"keywords": [
"radio"
@ -55,13 +55,5 @@
"clean-package": "2.2.0",
"react": "^18.0.0"
},
"clean-package": "../../../clean-package.config.json",
"tsup": {
"clean": true,
"target": "es2019",
"format": [
"cjs",
"esm"
]
}
"clean-package": "../../../clean-package.config.json"
}

View File

@ -0,0 +1,8 @@
import {defineConfig} from "tsup";
export default defineConfig({
clean: true,
target: "es2019",
format: ["cjs", "esm"],
banner: {js: '"use client";'},
});

View File

@ -1,5 +1,31 @@
# @nextui-org/snippet
## 0.0.0-dev-v2-20230428210058
### Patch Changes
- Use client added to utilities
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/use-clipboard@0.0.0-dev-v2-20230428210058
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/tooltip@0.0.0-dev-v2-20230428210058
- @nextui-org/system@0.0.0-dev-v2-20230428210058
- @nextui-org/theme@0.0.0-dev-v2-20230428210058
## 0.0.0-dev-v2-20230428203230
### Patch Changes
- Use client directive added to support next.js app directory
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/use-clipboard@0.0.0-dev-v2-20230428203230
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/tooltip@0.0.0-dev-v2-20230428203230
- @nextui-org/system@0.0.0-dev-v2-20230428203230
- @nextui-org/theme@0.0.0-dev-v2-20230428203230
## 0.0.0-dev-v2-20230428031422
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/snippet",
"version": "0.0.0-dev-v2-20230428031422",
"version": "0.0.0-dev-v2-20230428210058",
"description": "Display a snippet of copyable code for the command line.",
"keywords": [
"snippet"
@ -51,13 +51,5 @@
"clean-package": "2.2.0",
"react": "^18.0.0"
},
"clean-package": "../../../clean-package.config.json",
"tsup": {
"clean": true,
"target": "es2019",
"format": [
"cjs",
"esm"
]
}
"clean-package": "../../../clean-package.config.json"
}

View File

@ -0,0 +1,8 @@
import {defineConfig} from "tsup";
export default defineConfig({
clean: true,
target: "es2019",
format: ["cjs", "esm"],
banner: {js: '"use client";'},
});

View File

@ -1,5 +1,27 @@
# @nextui-org/spacer
## 0.0.0-dev-v2-20230428210058
### Patch Changes
- Use client added to utilities
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/system@0.0.0-dev-v2-20230428210058
- @nextui-org/theme@0.0.0-dev-v2-20230428210058
## 0.0.0-dev-v2-20230428203230
### Patch Changes
- Use client directive added to support next.js app directory
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/system@0.0.0-dev-v2-20230428203230
- @nextui-org/theme@0.0.0-dev-v2-20230428203230
## 0.0.0-dev-v2-20230428031422
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/spacer",
"version": "0.0.0-dev-v2-20230428031422",
"version": "0.0.0-dev-v2-20230428210058",
"description": "A flexible spacer component designed to create consistent spacing and maintain alignment in your layout.",
"keywords": [
"spacer"
@ -46,13 +46,5 @@
"clean-package": "2.2.0",
"react": "^18.0.0"
},
"clean-package": "../../../clean-package.config.json",
"tsup": {
"clean": true,
"target": "es2019",
"format": [
"cjs",
"esm"
]
}
"clean-package": "../../../clean-package.config.json"
}

View File

@ -0,0 +1,8 @@
import {defineConfig} from "tsup";
export default defineConfig({
clean: true,
target: "es2019",
format: ["cjs", "esm"],
banner: {js: '"use client";'},
});

View File

@ -1,5 +1,27 @@
# @nextui-org/spinner
## 0.0.0-dev-v2-20230428210058
### Patch Changes
- Use client added to utilities
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/system@0.0.0-dev-v2-20230428210058
- @nextui-org/theme@0.0.0-dev-v2-20230428210058
## 0.0.0-dev-v2-20230428203230
### Patch Changes
- Use client directive added to support next.js app directory
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/system@0.0.0-dev-v2-20230428203230
- @nextui-org/theme@0.0.0-dev-v2-20230428203230
## 0.0.0-dev-v2-20230428031422
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/spinner",
"version": "0.0.0-dev-v2-20230428031422",
"version": "0.0.0-dev-v2-20230428210058",
"description": "Loaders express an unspecified wait time or display the length of a process.",
"keywords": [
"loading",
@ -48,13 +48,5 @@
"clean-package": "2.2.0",
"react": "^18.0.0"
},
"clean-package": "../../../clean-package.config.json",
"tsup": {
"clean": true,
"target": "es2019",
"format": [
"cjs",
"esm"
]
}
"clean-package": "../../../clean-package.config.json"
}

View File

@ -0,0 +1,8 @@
import {defineConfig} from "tsup";
export default defineConfig({
clean: true,
target: "es2019",
format: ["cjs", "esm"],
banner: {js: '"use client";'},
});

View File

@ -1,5 +1,27 @@
# @nextui-org/switch
## 0.0.0-dev-v2-20230428210058
### Patch Changes
- Use client added to utilities
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/system@0.0.0-dev-v2-20230428210058
- @nextui-org/theme@0.0.0-dev-v2-20230428210058
## 0.0.0-dev-v2-20230428203230
### Patch Changes
- Use client directive added to support next.js app directory
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/system@0.0.0-dev-v2-20230428203230
- @nextui-org/theme@0.0.0-dev-v2-20230428203230
## 0.0.0-dev-v2-20230428031422
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/switch",
"version": "0.0.0-dev-v2-20230428031422",
"version": "0.0.0-dev-v2-20230428210058",
"description": "A switch is similar to a checkbox, but represents on/off values as opposed to selection.",
"keywords": [
"switch"
@ -54,13 +54,5 @@
"react": "^18.0.0",
"@nextui-org/shared-icons": "workspace:*"
},
"clean-package": "../../../clean-package.config.json",
"tsup": {
"clean": true,
"target": "es2019",
"format": [
"cjs",
"esm"
]
}
"clean-package": "../../../clean-package.config.json"
}

View File

@ -82,7 +82,7 @@ const CustomWithClassNamesTemplate: ComponentStory<typeof Switch> = (args: Switc
<Switch
classNames={{
base: clsx(
"inline-flex flex-row-reverse w-full max-w-md bg-content1 hover:bg-content2 items-center justify-between cursor-pointer rounded-lg gap-2 p-4 border-2.5 border-transparent",
"inline-flex flex-row-reverse w-full max-w-md bg-content1 hover:bg-content2 items-center justify-between cursor-pointer rounded-lg gap-2 p-4 border-2 border-transparent",
{
"border-primary": isSelected,
},

View File

@ -0,0 +1,8 @@
import {defineConfig} from "tsup";
export default defineConfig({
clean: true,
target: "es2019",
format: ["cjs", "esm"],
banner: {js: '"use client";'},
});

View File

@ -1,5 +1,33 @@
# @nextui-org/table
## 0.0.0-dev-v2-20230428210058
### Patch Changes
- Use client added to utilities
- Updated dependencies
- @nextui-org/shared-icons@0.0.0-dev-v2-20230428210058
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/checkbox@0.0.0-dev-v2-20230428210058
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/spacer@0.0.0-dev-v2-20230428210058
- @nextui-org/system@0.0.0-dev-v2-20230428210058
- @nextui-org/theme@0.0.0-dev-v2-20230428210058
## 0.0.0-dev-v2-20230428203230
### Patch Changes
- Use client directive added to support next.js app directory
- Updated dependencies
- @nextui-org/shared-icons@0.0.0-dev-v2-20230428203230
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/checkbox@0.0.0-dev-v2-20230428203230
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/spacer@0.0.0-dev-v2-20230428203230
- @nextui-org/system@0.0.0-dev-v2-20230428203230
- @nextui-org/theme@0.0.0-dev-v2-20230428203230
## 0.0.0-dev-v2-20230428031422
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/table",
"version": "0.0.0-dev-v2-20230428031422",
"version": "0.0.0-dev-v2-20230428210058",
"description": "Tables are used to display tabular data using rows and columns. ",
"keywords": [
"table"
@ -65,13 +65,5 @@
"clean-package": "2.2.0",
"react": "^18.0.0"
},
"clean-package": "../../../clean-package.config.json",
"tsup": {
"clean": true,
"target": "es2019",
"format": [
"cjs",
"esm"
]
}
"clean-package": "../../../clean-package.config.json"
}

View File

@ -0,0 +1,8 @@
import {defineConfig} from "tsup";
export default defineConfig({
clean: true,
target: "es2019",
format: ["cjs", "esm"],
banner: {js: '"use client";'},
});

View File

@ -1,5 +1,31 @@
# @nextui-org/tabs
## 0.0.0-dev-v2-20230428210058
### Patch Changes
- Use client added to utilities
- Updated dependencies
- @nextui-org/framer-transitions@0.0.0-dev-v2-20230428210058
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/aria-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428210058
- @nextui-org/system@0.0.0-dev-v2-20230428210058
- @nextui-org/theme@0.0.0-dev-v2-20230428210058
## 0.0.0-dev-v2-20230428203230
### Patch Changes
- Use client directive added to support next.js app directory
- Updated dependencies
- @nextui-org/framer-transitions@0.0.0-dev-v2-20230428203230
- @nextui-org/shared-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/aria-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/dom-utils@0.0.0-dev-v2-20230428203230
- @nextui-org/system@0.0.0-dev-v2-20230428203230
- @nextui-org/theme@0.0.0-dev-v2-20230428203230
## 0.0.0-dev-v2-20230428031422
### Patch Changes

Some files were not shown because too many files have changed in this diff Show More