feat(root): script added to inject the "use client" directive

This commit is contained in:
Junior Garcia 2023-03-26 15:21:52 -03:00
parent 5a58dda40d
commit d738e69a88
78 changed files with 476 additions and 96 deletions

View File

@ -13,7 +13,7 @@
},
"scripts": {
"dev": "turbo dev --filter=!@nextui-org/docs",
"build": "turbo build --filter=!@nextui-org/docs",
"build": "turbo build --filter=!@nextui-org/docs && pnpm add:use-client",
"build:fast": "turbo build:fast --filter=!@nextui-org/docs ",
"dev:docs": "turbo dev --filter=@nextui-org/docs",
"build:docs": "turbo build --filter=@nextui-org/docs",
@ -31,8 +31,8 @@
"turbo:clean": "turbo clean && rimraf ./node_modules/.cache/turbo",
"turbo:graph": "pnpm build --graph=dependency-graph.png",
"clean": "pnpm turbo:clean && pnpm clean:node-modules && pnpm clean:lock && pnpm install",
"clean:pn-types": "rimraf ./node_modules/.pnpm/csstype*",
"clean:node-modules": "rimraf ./apps/**/node_modules && rimraf ./packages/**/**/node_modules && rm -rf ./node_modules",
"add:use-client": "node ./scripts/add-use-client-directive.js",
"clean:lock": "rm ./pnpm-lock.yaml",
"create:cmp": "plop component",
"create:pkg": "plop package",

View File

@ -1,5 +1,19 @@
# @nextui-org/accordion
## 0.0.0-dev-v2-20230326182053
### Patch Changes
- use client directive injected after build process
- Updated dependencies
- @nextui-org/framer-transitions@0.0.0-dev-v2-20230326182053
- @nextui-org/shared-icons@0.0.0-dev-v2-20230326182053
- @nextui-org/shared-utils@0.0.0-dev-v2-20230326182053
- @nextui-org/aria-utils@0.0.0-dev-v2-20230326182053
- @nextui-org/dom-utils@0.0.0-dev-v2-20230326182053
- @nextui-org/system@0.0.0-dev-v2-20230326182053
- @nextui-org/theme@0.0.0-dev-v2-20230326182053
## 0.0.0-dev-v2-20230326144453
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/accordion",
"version": "0.0.0-dev-v2-20230326144453",
"version": "0.0.0-dev-v2-20230326182053",
"description": "Collapse display a list of high-level options that can expand/collapse to reveal more information.",
"keywords": [
"react",

View File

@ -1,5 +1,17 @@
# @nextui-org/avatar
## 0.0.0-dev-v2-20230326182053
### Patch Changes
- use client directive injected after build process
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230326182053
- @nextui-org/dom-utils@0.0.0-dev-v2-20230326182053
- @nextui-org/use-image@0.0.0-dev-v2-20230326182053
- @nextui-org/system@0.0.0-dev-v2-20230326182053
- @nextui-org/theme@0.0.0-dev-v2-20230326182053
## 0.0.0-dev-v2-20230326144453
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/avatar",
"version": "0.0.0-dev-v2-20230326144453",
"version": "0.0.0-dev-v2-20230326182053",
"description": "The Avatar component is used to represent a user, and displays the profile picture, initials or fallback icon.",
"keywords": [
"avatar"

View File

@ -1,5 +1,16 @@
# @nextui-org/badge
## 0.0.0-dev-v2-20230326182053
### Patch Changes
- use client directive injected after build process
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230326182053
- @nextui-org/dom-utils@0.0.0-dev-v2-20230326182053
- @nextui-org/system@0.0.0-dev-v2-20230326182053
- @nextui-org/theme@0.0.0-dev-v2-20230326182053
## 0.0.0-dev-v2-20230326144453
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/badge",
"version": "0.0.0-dev-v2-20230326144453",
"version": "0.0.0-dev-v2-20230326182053",
"description": "Badges are used as a small numerical value or status descriptor for UI elements.",
"keywords": [
"badge"

View File

@ -1,5 +1,18 @@
# @nextui-org/button
## 0.0.0-dev-v2-20230326182053
### Patch Changes
- use client directive injected after build process
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230326182053
- @nextui-org/dom-utils@0.0.0-dev-v2-20230326182053
- @nextui-org/spinner@0.0.0-dev-v2-20230326182053
- @nextui-org/drip@0.0.0-dev-v2-20230326182053
- @nextui-org/system@0.0.0-dev-v2-20230326182053
- @nextui-org/theme@0.0.0-dev-v2-20230326182053
## 0.0.0-dev-v2-20230326144453
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/button",
"version": "0.0.0-dev-v2-20230326144453",
"version": "0.0.0-dev-v2-20230326182053",
"description": "Buttons allow users to perform actions and choose with a single tap.",
"keywords": [
"button"

View File

@ -1,5 +1,17 @@
# @nextui-org/card
## 0.0.0-dev-v2-20230326182053
### Patch Changes
- use client directive injected after build process
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230326182053
- @nextui-org/dom-utils@0.0.0-dev-v2-20230326182053
- @nextui-org/drip@0.0.0-dev-v2-20230326182053
- @nextui-org/system@0.0.0-dev-v2-20230326182053
- @nextui-org/theme@0.0.0-dev-v2-20230326182053
## 0.0.0-dev-v2-20230326144453
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/card",
"version": "0.0.0-dev-v2-20230326144453",
"version": "0.0.0-dev-v2-20230326182053",
"description": "Card is a container for text, photos, and actions in the context of a single subject.",
"keywords": [
"card"

View File

@ -21,4 +21,6 @@ const CardBody = forwardRef<HTMLNextUIProps, "div">((props, ref) => {
);
});
CardBody.displayName = "NextUI.CardBody";
export default CardBody;

View File

@ -27,4 +27,6 @@ const CardFooter = forwardRef<CardFooterProps, "div">((props, ref) => {
);
});
CardFooter.displayName = "NextUI.CardFooter";
export default CardFooter;

View File

@ -15,12 +15,12 @@ const CardHeader = forwardRef<HTMLNextUIProps, "div">((props, ref) => {
const headerStyles = clsx(styles?.header, className);
return (
<>
<Component ref={domRef} className={slots.header?.({class: headerStyles})} {...otherProps}>
{children}
</Component>
</>
<Component ref={domRef} className={slots.header?.({class: headerStyles})} {...otherProps}>
{children}
</Component>
);
});
CardHeader.displayName = "NextUI.CardHeader";
export default CardHeader;

View File

@ -1,5 +1,16 @@
# @nextui-org/checkbox
## 0.0.0-dev-v2-20230326182053
### Patch Changes
- use client directive injected after build process
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230326182053
- @nextui-org/dom-utils@0.0.0-dev-v2-20230326182053
- @nextui-org/system@0.0.0-dev-v2-20230326182053
- @nextui-org/theme@0.0.0-dev-v2-20230326182053
## 0.0.0-dev-v2-20230326144453
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/checkbox",
"version": "0.0.0-dev-v2-20230326144453",
"version": "0.0.0-dev-v2-20230326182053",
"description": "Checkboxes allow users to select multiple items from a list of individual items, or to mark one individual item as selected.",
"keywords": [
"checkbox"

View File

@ -1,5 +1,17 @@
# @nextui-org/chip
## 0.0.0-dev-v2-20230326182053
### Patch Changes
- use client directive injected after build process
- Updated dependencies
- @nextui-org/shared-icons@0.0.0-dev-v2-20230326182053
- @nextui-org/shared-utils@0.0.0-dev-v2-20230326182053
- @nextui-org/dom-utils@0.0.0-dev-v2-20230326182053
- @nextui-org/system@0.0.0-dev-v2-20230326182053
- @nextui-org/theme@0.0.0-dev-v2-20230326182053
## 0.0.0-dev-v2-20230326144453
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/chip",
"version": "0.0.0-dev-v2-20230326144453",
"version": "0.0.0-dev-v2-20230326182053",
"description": "Chips help people enter information, make selections, filter content, or trigger actions.",
"keywords": [
"chip"

View File

@ -1,5 +1,16 @@
# @nextui-org/code
## 0.0.0-dev-v2-20230326182053
### Patch Changes
- use client directive injected after build process
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230326182053
- @nextui-org/dom-utils@0.0.0-dev-v2-20230326182053
- @nextui-org/system@0.0.0-dev-v2-20230326182053
- @nextui-org/theme@0.0.0-dev-v2-20230326182053
## 0.0.0-dev-v2-20230326144453
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/code",
"version": "0.0.0-dev-v2-20230326144453",
"version": "0.0.0-dev-v2-20230326182053",
"description": "Code is a component used to display inline code.",
"keywords": [
"code"

View File

@ -1,5 +1,16 @@
# @nextui-org/drip
## 0.0.0-dev-v2-20230326182053
### Patch Changes
- use client directive injected after build process
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230326182053
- @nextui-org/dom-utils@0.0.0-dev-v2-20230326182053
- @nextui-org/system@0.0.0-dev-v2-20230326182053
- @nextui-org/theme@0.0.0-dev-v2-20230326182053
## 0.0.0-dev-v2-20230326144453
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/drip",
"version": "0.0.0-dev-v2-20230326144453",
"version": "0.0.0-dev-v2-20230326182053",
"description": "A ripple effect for ensuring that the user fells the system is reacting instantaneously",
"keywords": [
"drip"

View File

@ -1,5 +1,16 @@
# @nextui-org/link
## 0.0.0-dev-v2-20230326182053
### Patch Changes
- use client directive injected after build process
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230326182053
- @nextui-org/dom-utils@0.0.0-dev-v2-20230326182053
- @nextui-org/system@0.0.0-dev-v2-20230326182053
- @nextui-org/theme@0.0.0-dev-v2-20230326182053
## 0.0.0-dev-v2-20230326144453
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/link",
"version": "0.0.0-dev-v2-20230326144453",
"version": "0.0.0-dev-v2-20230326182053",
"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"

View File

@ -1,5 +1,18 @@
# @nextui-org/pagination
## 0.0.0-dev-v2-20230326182053
### Patch Changes
- use client directive injected after build process
- Updated dependencies
- @nextui-org/shared-icons@0.0.0-dev-v2-20230326182053
- @nextui-org/shared-utils@0.0.0-dev-v2-20230326182053
- @nextui-org/use-pagination@0.0.0-dev-v2-20230326182053
- @nextui-org/dom-utils@0.0.0-dev-v2-20230326182053
- @nextui-org/system@0.0.0-dev-v2-20230326182053
- @nextui-org/theme@0.0.0-dev-v2-20230326182053
## 0.0.0-dev-v2-20230326144453
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/pagination",
"version": "0.0.0-dev-v2-20230326144453",
"version": "0.0.0-dev-v2-20230326182053",
"description": "The Pagination component allows you to display active page and navigate between multiple pages.",
"keywords": [
"pagination"

View File

@ -1,5 +1,16 @@
# @nextui-org/radio
## 0.0.0-dev-v2-20230326182053
### Patch Changes
- use client directive injected after build process
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230326182053
- @nextui-org/dom-utils@0.0.0-dev-v2-20230326182053
- @nextui-org/system@0.0.0-dev-v2-20230326182053
- @nextui-org/theme@0.0.0-dev-v2-20230326182053
## 0.0.0-dev-v2-20230326144453
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/radio",
"version": "0.0.0-dev-v2-20230326144453",
"version": "0.0.0-dev-v2-20230326182053",
"description": "Radios allow users to select a single option from a list of mutually exclusive options.",
"keywords": [
"radio"

View File

@ -1,5 +1,18 @@
# @nextui-org/snippet
## 0.0.0-dev-v2-20230326182053
### Patch Changes
- use client directive injected after build process
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230326182053
- @nextui-org/use-clipboard@0.0.0-dev-v2-20230326182053
- @nextui-org/dom-utils@0.0.0-dev-v2-20230326182053
- @nextui-org/tooltip@0.0.0-dev-v2-20230326182053
- @nextui-org/system@0.0.0-dev-v2-20230326182053
- @nextui-org/theme@0.0.0-dev-v2-20230326182053
## 0.0.0-dev-v2-20230326144453
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/snippet",
"version": "0.0.0-dev-v2-20230326144453",
"version": "0.0.0-dev-v2-20230326182053",
"description": "Display a snippet of copyable code for the command line.",
"keywords": [
"snippet"

View File

@ -1,5 +1,16 @@
# @nextui-org/spinner
## 0.0.0-dev-v2-20230326182053
### Patch Changes
- use client directive injected after build process
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230326182053
- @nextui-org/dom-utils@0.0.0-dev-v2-20230326182053
- @nextui-org/system@0.0.0-dev-v2-20230326182053
- @nextui-org/theme@0.0.0-dev-v2-20230326182053
## 0.0.0-dev-v2-20230326144453
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/spinner",
"version": "0.0.0-dev-v2-20230326144453",
"version": "0.0.0-dev-v2-20230326182053",
"description": "Loaders express an unspecified wait time or display the length of a process.",
"keywords": [
"loading",

View File

@ -1,5 +1,16 @@
# @nextui-org/switch
## 0.0.0-dev-v2-20230326182053
### Patch Changes
- use client directive injected after build process
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230326182053
- @nextui-org/dom-utils@0.0.0-dev-v2-20230326182053
- @nextui-org/system@0.0.0-dev-v2-20230326182053
- @nextui-org/theme@0.0.0-dev-v2-20230326182053
## 0.0.0-dev-v2-20230326144453
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/switch",
"version": "0.0.0-dev-v2-20230326144453",
"version": "0.0.0-dev-v2-20230326182053",
"description": "A switch is similar to a checkbox, but represents on/off values as opposed to selection.",
"keywords": [
"switch"

View File

@ -1,5 +1,19 @@
# @nextui-org/tooltip
## 0.0.0-dev-v2-20230326182053
### Patch Changes
- use client directive injected after build process
- Updated dependencies
- @nextui-org/framer-transitions@0.0.0-dev-v2-20230326182053
- @nextui-org/shared-utils@0.0.0-dev-v2-20230326182053
- @nextui-org/react-utils@0.0.0-dev-v2-20230326182053
- @nextui-org/aria-utils@0.0.0-dev-v2-20230326182053
- @nextui-org/dom-utils@0.0.0-dev-v2-20230326182053
- @nextui-org/system@0.0.0-dev-v2-20230326182053
- @nextui-org/theme@0.0.0-dev-v2-20230326182053
## 0.0.0-dev-v2-20230326144453
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/tooltip",
"version": "0.0.0-dev-v2-20230326144453",
"version": "0.0.0-dev-v2-20230326182053",
"description": "A React Component for rendering dynamically positioned Tooltips",
"keywords": [
"tooltip"

View File

@ -1,5 +1,17 @@
# @nextui-org/user
## 0.0.0-dev-v2-20230326182053
### Patch Changes
- use client directive injected after build process
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230326182053
- @nextui-org/dom-utils@0.0.0-dev-v2-20230326182053
- @nextui-org/avatar@0.0.0-dev-v2-20230326182053
- @nextui-org/system@0.0.0-dev-v2-20230326182053
- @nextui-org/theme@0.0.0-dev-v2-20230326182053
## 0.0.0-dev-v2-20230326144453
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/user",
"version": "0.0.0-dev-v2-20230326144453",
"version": "0.0.0-dev-v2-20230326182053",
"description": "Flexible User Profile Component.",
"keywords": [
"user"

View File

@ -1,5 +1,30 @@
# @nextui-org/react
## 0.0.0-dev-v2-20230326182053
### Patch Changes
- use client directive injected after build process
- Updated dependencies
- @nextui-org/pagination@0.0.0-dev-v2-20230326182053
- @nextui-org/accordion@0.0.0-dev-v2-20230326182053
- @nextui-org/checkbox@0.0.0-dev-v2-20230326182053
- @nextui-org/snippet@0.0.0-dev-v2-20230326182053
- @nextui-org/spinner@0.0.0-dev-v2-20230326182053
- @nextui-org/tooltip@0.0.0-dev-v2-20230326182053
- @nextui-org/avatar@0.0.0-dev-v2-20230326182053
- @nextui-org/button@0.0.0-dev-v2-20230326182053
- @nextui-org/switch@0.0.0-dev-v2-20230326182053
- @nextui-org/badge@0.0.0-dev-v2-20230326182053
- @nextui-org/radio@0.0.0-dev-v2-20230326182053
- @nextui-org/card@0.0.0-dev-v2-20230326182053
- @nextui-org/code@0.0.0-dev-v2-20230326182053
- @nextui-org/drip@0.0.0-dev-v2-20230326182053
- @nextui-org/link@0.0.0-dev-v2-20230326182053
- @nextui-org/user@0.0.0-dev-v2-20230326182053
- @nextui-org/system@0.0.0-dev-v2-20230326182053
- @nextui-org/theme@0.0.0-dev-v2-20230326182053
## 0.0.0-dev-v2-20230326144453
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/react",
"version": "0.0.0-dev-v2-20230326144453",
"version": "0.0.0-dev-v2-20230326182053",
"description": "🚀 Beautiful and modern React UI library.",
"author": "Junior Garcia <jrgarciadev@gmail.com>",
"homepage": "https://nextui.org",

View File

@ -1,5 +1,11 @@
# @nextui-org/system
## 0.0.0-dev-v2-20230326182053
### Patch Changes
- use client directive injected after build process
## 0.0.0-dev-v2-20230326144453
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/system",
"version": "0.0.0-dev-v2-20230326144453",
"version": "0.0.0-dev-v2-20230326182053",
"description": "NextUI system primitives",
"keywords": [
"system"

View File

@ -1,5 +1,11 @@
# @nextui-org/theme
## 0.0.0-dev-v2-20230326182053
### Patch Changes
- use client directive injected after build process
## 0.0.0-dev-v2-20230326144453
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/theme",
"version": "0.0.0-dev-v2-20230326144453",
"version": "0.0.0-dev-v2-20230326182053",
"description": "The default theme for NextUI components",
"keywords": [
"theme",

View File

@ -1,5 +1,11 @@
# @nextui-org/use-clipboard
## 0.0.0-dev-v2-20230326182053
### Patch Changes
- use client directive injected after build process
## 0.0.0-dev-v2-20230326144453
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/use-clipboard",
"version": "0.0.0-dev-v2-20230326144453",
"version": "0.0.0-dev-v2-20230326182053",
"description": "Wrapper around navigator.clipboard with feedback timeout",
"keywords": [
"use-clipboard"

View File

@ -1,5 +1,13 @@
# @nextui-org/use-image
## 0.0.0-dev-v2-20230326182053
### Patch Changes
- use client directive injected after build process
- Updated dependencies
- @nextui-org/use-safe-layout-effect@0.0.0-dev-v2-20230326182053
## 0.0.0-dev-v2-20230326144453
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/use-image",
"version": "0.0.0-dev-v2-20230326144453",
"version": "0.0.0-dev-v2-20230326182053",
"description": "React hook for progressing image loading",
"keywords": [
"use-image"

View File

@ -1,5 +1,11 @@
# @nextui-org/use-is-mounted
## 0.0.0-dev-v2-20230326182053
### Patch Changes
- use client directive injected after build process
## 0.0.0-dev-v2-20230326144453
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/use-is-mounted",
"version": "0.0.0-dev-v2-20230326144453",
"version": "0.0.0-dev-v2-20230326182053",
"description": "This hook can be used to render client-based components or run client logic",
"keywords": [
"use-is-mounted"

View File

@ -1,5 +1,13 @@
# @nextui-org/use-pagination
## 0.0.0-dev-v2-20230326182053
### Patch Changes
- use client directive injected after build process
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230326182053
## 0.0.0-dev-v2-20230326144453
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/use-pagination",
"version": "0.0.0-dev-v2-20230326144453",
"version": "0.0.0-dev-v2-20230326182053",
"description": "State management hook for Pagination component, it lets you manage pagination with controlled and uncontrolled state",
"keywords": [
"use-pagination"

View File

@ -1,5 +1,13 @@
# @nextui-org/use-real-shape
## 0.0.0-dev-v2-20230326182053
### Patch Changes
- use client directive injected after build process
- Updated dependencies
- @nextui-org/dom-utils@0.0.0-dev-v2-20230326182053
## 0.0.0-dev-v2-20230326144453
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/use-real-shape",
"version": "0.0.0-dev-v2-20230326144453",
"version": "0.0.0-dev-v2-20230326182053",
"description": "Hook that returns the real dimensions of an element",
"keywords": [
"use-real-shape"

View File

@ -1,5 +1,11 @@
# @nextui-org/use-ref-state
## 0.0.0-dev-v2-20230326182053
### Patch Changes
- use client directive injected after build process
## 0.0.0-dev-v2-20230326144453
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/use-ref-state",
"version": "0.0.0-dev-v2-20230326144453",
"version": "0.0.0-dev-v2-20230326182053",
"description": "Hook for saving the state in a ref value",
"keywords": [
"use-ref-state"

View File

@ -1,5 +1,11 @@
# @nextui-org/use-resize
## 0.0.0-dev-v2-20230326182053
### Patch Changes
- use client directive injected after build process
## 0.0.0-dev-v2-20230326144453
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/use-resize",
"version": "0.0.0-dev-v2-20230326144453",
"version": "0.0.0-dev-v2-20230326182053",
"description": "Hook that adds an event listener to the resize window event",
"keywords": [
"use-resize"

View File

@ -1,5 +1,11 @@
# @nextui-org/use-safe-layout-effect
## 0.0.0-dev-v2-20230326182053
### Patch Changes
- use client directive injected after build process
## 0.0.0-dev-v2-20230326144453
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/use-safe-layout-effect",
"version": "0.0.0-dev-v2-20230326144453",
"version": "0.0.0-dev-v2-20230326182053",
"description": "",
"keywords": [
"use-safe-layout-effect"

View File

@ -1,5 +1,11 @@
# @nextui-org/use-ssr
## 0.0.0-dev-v2-20230326182053
### Patch Changes
- use client directive injected after build process
## 0.0.0-dev-v2-20230326144453
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/use-ssr",
"version": "0.0.0-dev-v2-20230326144453",
"version": "0.0.0-dev-v2-20230326182053",
"description": "",
"keywords": [
"use-ssr"

View File

@ -1,5 +1,13 @@
# @nextui-org/aria-utils
## 0.0.0-dev-v2-20230326182053
### Patch Changes
- use client directive injected after build process
- Updated dependencies
- @nextui-org/system@0.0.0-dev-v2-20230326182053
## 0.0.0-dev-v2-20230326144453
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/aria-utils",
"version": "0.0.0-dev-v2-20230326144453",
"version": "0.0.0-dev-v2-20230326182053",
"description": "A package for managing @react-aria nextui utils.",
"keywords": [
"aria-utils"

View File

@ -1,5 +1,11 @@
# @nextui-org/dom-utils
## 0.0.0-dev-v2-20230326182053
### Patch Changes
- use client directive injected after build process
## 0.0.0-dev-v2-20230326144453
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/dom-utils",
"version": "0.0.0-dev-v2-20230326144453",
"version": "0.0.0-dev-v2-20230326182053",
"description": "NextUI DOM Utilities",
"keywords": [
"dom-utils"

View File

@ -1,5 +1,14 @@
# @nextui-org/framer-transitions
## 0.0.0-dev-v2-20230326182053
### Patch Changes
- use client directive injected after build process
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230326182053
- @nextui-org/system@0.0.0-dev-v2-20230326182053
## 0.0.0-dev-v2-20230326144453
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/framer-transitions",
"version": "0.0.0-dev-v2-20230326144453",
"version": "0.0.0-dev-v2-20230326182053",
"description": "A set of framer motion transitions for react",
"keywords": [
"framer-transitions"

View File

@ -1,5 +1,14 @@
# @nextui-org/react-utils
## 0.0.0-dev-v2-20230326182053
### Patch Changes
- use client directive injected after build process
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230326182053
- @nextui-org/system@0.0.0-dev-v2-20230326182053
## 0.0.0-dev-v2-20230326144453
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/react-utils",
"version": "0.0.0-dev-v2-20230326144453",
"version": "0.0.0-dev-v2-20230326182053",
"description": "A package for sharing react components and utilities",
"keywords": [
"react-utils"

View File

@ -1,5 +1,11 @@
# @nextui-org/shared-icons
## 0.0.0-dev-v2-20230326182053
### Patch Changes
- use client directive injected after build process
## 0.0.0-dev-v2-20230326144453
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/shared-icons",
"version": "0.0.0-dev-v2-20230326144453",
"version": "0.0.0-dev-v2-20230326182053",
"description": "Internal icons set, commonly used in the components stories",
"keywords": [
"icons-utils"

View File

@ -1,5 +1,11 @@
# @nextui-org/shared-utils
## 0.0.0-dev-v2-20230326182053
### Patch Changes
- use client directive injected after build process
## 0.0.0-dev-v2-20230326144453
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/shared-utils",
"version": "0.0.0-dev-v2-20230326144453",
"version": "0.0.0-dev-v2-20230326182053",
"description": "NextUI system primitives",
"keywords": [
"system"

View File

@ -1,5 +1,11 @@
# @nextui-org/test-utils
## 0.0.0-dev-v2-20230326182053
### Patch Changes
- use client directive injected after build process
## 0.0.0-dev-v2-20230326144453
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/test-utils",
"version": "0.0.0-dev-v2-20230326144453",
"version": "0.0.0-dev-v2-20230326182053",
"description": "A set of utilities for react testing",
"keywords": [
"test-utils"

83
pnpm-lock.yaml generated
View File

@ -435,7 +435,6 @@ importers:
'@nextui-org/dom-utils': workspace:*
'@nextui-org/drip': workspace:*
'@nextui-org/link': workspace:*
'@nextui-org/shared-css': workspace:*
'@nextui-org/shared-utils': workspace:*
'@nextui-org/system': workspace:*
'@nextui-org/theme': workspace:*
@ -449,7 +448,6 @@ importers:
dependencies:
'@nextui-org/dom-utils': link:../../utilities/dom-utils
'@nextui-org/drip': link:../drip
'@nextui-org/shared-css': link:../../utilities/shared-css
'@nextui-org/shared-utils': link:../../utilities/shared-utils
'@nextui-org/system': link:../../core/system
'@nextui-org/theme': link:../../core/theme
@ -1092,12 +1090,6 @@ importers:
clean-package: 2.2.0
react: 18.2.0
packages/utilities/shared-css:
specifiers:
clean-package: 2.1.1
devDependencies:
clean-package: 2.1.1
packages/utilities/shared-icons:
specifiers:
clean-package: 2.2.0
@ -1725,7 +1717,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.12.9
'@babel/helper-plugin-utils': 7.20.2
'@babel/helper-plugin-utils': 7.10.4
'@babel/plugin-syntax-object-rest-spread': 7.8.3_@babel+core@7.12.9
'@babel/plugin-transform-parameters': 7.21.3_@babel+core@7.12.9
@ -3376,7 +3368,7 @@ packages:
react-dom: '>= 16.8.6'
dependencies:
'@babel/runtime': 7.21.0
clsx: 1.2.1
clsx: 1.1.0
focus-lock: 0.8.1
react-merge-refs: 1.1.0
dev: true
@ -6250,7 +6242,7 @@ packages:
'@storybook/store': 6.5.16
'@storybook/theming': 6.5.16
'@storybook/ui': 6.5.16
'@types/node': 16.18.20
'@types/node': 16.18.21
'@types/webpack': 4.41.33
autoprefixer: 9.8.8
babel-loader: 8.3.0_y3c3uzyfhmxjbwhc6k6hyxg3aa
@ -6316,7 +6308,7 @@ packages:
'@storybook/store': 6.5.16_biqbaboplfbrettd7655fr4n2y
'@storybook/theming': 6.5.16_biqbaboplfbrettd7655fr4n2y
'@storybook/ui': 6.5.16_biqbaboplfbrettd7655fr4n2y
'@types/node': 16.18.20
'@types/node': 16.18.21
'@types/webpack': 4.41.33
autoprefixer: 9.8.8
babel-loader: 8.3.0_y3c3uzyfhmxjbwhc6k6hyxg3aa
@ -6384,7 +6376,7 @@ packages:
'@storybook/semver': 7.3.2
'@storybook/store': 6.5.16
'@storybook/theming': 6.5.16
'@types/node': 16.18.20
'@types/node': 16.18.21
babel-loader: 8.3.0_qtovpurzjlo3biun26ymnwui7i
babel-plugin-named-exports-order: 0.0.2
browser-assert: 1.2.1
@ -6722,7 +6714,7 @@ packages:
'@babel/register': 7.21.0_@babel+core@7.21.3
'@storybook/node-logger': 6.5.16
'@storybook/semver': 7.3.2
'@types/node': 16.18.20
'@types/node': 16.18.21
'@types/pretty-hrtime': 1.0.1
babel-loader: 8.3.0_y3c3uzyfhmxjbwhc6k6hyxg3aa
babel-plugin-macros: 3.1.0
@ -6790,7 +6782,7 @@ packages:
'@babel/register': 7.21.0_@babel+core@7.21.3
'@storybook/node-logger': 6.5.16
'@storybook/semver': 7.3.2
'@types/node': 16.18.20
'@types/node': 16.18.21
'@types/pretty-hrtime': 1.0.1
babel-loader: 8.3.0_y3c3uzyfhmxjbwhc6k6hyxg3aa
babel-plugin-macros: 3.1.0
@ -6863,7 +6855,7 @@ packages:
'@storybook/semver': 7.3.2
'@storybook/store': 6.5.16
'@storybook/telemetry': 6.5.16
'@types/node': 16.18.20
'@types/node': 16.18.21
'@types/node-fetch': 2.6.2
'@types/pretty-hrtime': 1.0.1
'@types/webpack': 4.41.33
@ -6937,7 +6929,7 @@ packages:
'@storybook/semver': 7.3.2
'@storybook/store': 6.5.16_biqbaboplfbrettd7655fr4n2y
'@storybook/telemetry': 6.5.16_cokwgtp7adxle3mwcpacgypcw4
'@types/node': 16.18.20
'@types/node': 16.18.21
'@types/node-fetch': 2.6.2
'@types/pretty-hrtime': 1.0.1
'@types/webpack': 4.41.33
@ -7157,7 +7149,7 @@ packages:
'@storybook/node-logger': 6.5.16
'@storybook/theming': 6.5.16
'@storybook/ui': 6.5.16
'@types/node': 16.18.20
'@types/node': 16.18.21
'@types/webpack': 4.41.33
babel-loader: 8.3.0_y3c3uzyfhmxjbwhc6k6hyxg3aa
case-sensitive-paths-webpack-plugin: 2.4.0
@ -7212,7 +7204,7 @@ packages:
'@storybook/node-logger': 6.5.16
'@storybook/theming': 6.5.16_biqbaboplfbrettd7655fr4n2y
'@storybook/ui': 6.5.16_biqbaboplfbrettd7655fr4n2y
'@types/node': 16.18.20
'@types/node': 16.18.21
'@types/webpack': 4.41.33
babel-loader: 8.3.0_y3c3uzyfhmxjbwhc6k6hyxg3aa
case-sensitive-paths-webpack-plugin: 2.4.0
@ -7270,7 +7262,7 @@ packages:
'@storybook/node-logger': 6.5.16
'@storybook/theming': 6.5.16
'@storybook/ui': 6.5.16
'@types/node': 16.18.20
'@types/node': 16.18.21
babel-loader: 8.3.0_qtovpurzjlo3biun26ymnwui7i
case-sensitive-paths-webpack-plugin: 2.4.0
chalk: 4.1.2
@ -7472,7 +7464,7 @@ packages:
'@storybook/semver': 7.3.2
'@storybook/store': 6.5.16
'@types/estree': 0.0.51
'@types/node': 16.18.20
'@types/node': 16.18.21
'@types/webpack-env': 1.18.0
acorn: 7.4.1
acorn-jsx: 5.3.2_acorn@7.4.1
@ -7558,7 +7550,7 @@ packages:
'@storybook/semver': 7.3.2
'@storybook/store': 6.5.16_biqbaboplfbrettd7655fr4n2y
'@types/estree': 0.0.51
'@types/node': 16.18.20
'@types/node': 16.18.21
'@types/webpack-env': 1.18.0
acorn: 7.4.1
acorn-jsx: 5.3.2_acorn@7.4.1
@ -7719,7 +7711,7 @@ packages:
fs-extra: 9.1.0
global: 4.4.0
isomorphic-unfetch: 3.1.0
nanoid: 3.3.4
nanoid: 3.3.6
read-pkg-up: 7.0.1
regenerator-runtime: 0.13.11
transitivePeerDependencies:
@ -7746,7 +7738,7 @@ packages:
fs-extra: 9.1.0
global: 4.4.0
isomorphic-unfetch: 3.1.0
nanoid: 3.3.4
nanoid: 3.3.6
read-pkg-up: 7.0.1
regenerator-runtime: 0.13.11
transitivePeerDependencies:
@ -8363,8 +8355,8 @@ packages:
resolution: {integrity: sha512-qjd88DrCxupx/kJD5yQgZdcYKZKSIGBVDIBE1/LTGcNm3d2Np/jxojkdePDdfnBHJc5W7vSMpbJ1aB7p/Py69A==}
dev: true
/@types/node/16.18.20:
resolution: {integrity: sha512-9fH66vSJnF563exTu3y1g2IbDz1vCj01Lbqms97r8j0qzfFisT2biypSfybVv/eYrtTB74x9xQTdRU8RyMiRrg==}
/@types/node/16.18.21:
resolution: {integrity: sha512-TassPGd0AEZWA10qcNnXnSNwHlLfSth8XwUaWc3gTSDmBz/rKb613Qw5qRf6o2fdRBrLbsgeC9PMZshobkuUqg==}
dev: true
/@types/normalize-package-data/2.4.1:
@ -8416,7 +8408,7 @@ packages:
/@types/react-autosuggest/10.1.6:
resolution: {integrity: sha512-yRsoW19yQzS8VDEW7bytqfGLzkZipTo8qVhqILQWcBI6hdRjN2x/o+0BQBaZ/fc4LlL3b/D6XgjMvlr0I3+2Xw==}
dependencies:
'@types/react': 18.0.29
'@types/react': 17.0.53
dev: true
/@types/react-dom/17.0.19:
@ -8442,7 +8434,7 @@ packages:
/@types/react-instantsearch-dom/6.12.3:
resolution: {integrity: sha512-HAQG74v7OzsUhdjNermd0A8c7LWRLsrMCsFCY6+7HEXK1hikeCs/Hmy6xjFhZVfFEWvpvX78vxJELafoAnuv8Q==}
dependencies:
'@types/react': 18.0.29
'@types/react': 17.0.53
'@types/react-instantsearch-core': 6.26.3
dev: true
@ -9754,7 +9746,7 @@ packages:
postcss: ^8.1.0
dependencies:
browserslist: 4.21.5
caniuse-lite: 1.0.30001469
caniuse-lite: 1.0.30001470
fraction.js: 4.2.0
normalize-range: 0.1.2
picocolors: 1.0.0
@ -9767,7 +9759,7 @@ packages:
hasBin: true
dependencies:
browserslist: 4.21.5
caniuse-lite: 1.0.30001469
caniuse-lite: 1.0.30001470
normalize-range: 0.1.2
num2fraction: 1.2.2
picocolors: 0.2.1
@ -10322,7 +10314,7 @@ packages:
engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
hasBin: true
dependencies:
caniuse-lite: 1.0.30001469
caniuse-lite: 1.0.30001470
electron-to-chromium: 1.4.340
node-releases: 2.0.10
update-browserslist-db: 1.0.10_browserslist@4.21.5
@ -10545,8 +10537,8 @@ packages:
engines: {node: '>=10'}
dev: true
/caniuse-lite/1.0.30001469:
resolution: {integrity: sha512-Rcp7221ScNqQPP3W+lVOYDyjdR6dC+neEQCttoNr5bAyz54AboB4iwpnWgyi8P4YUsPybVzT4LgWiBbI3drL4g==}
/caniuse-lite/1.0.30001470:
resolution: {integrity: sha512-065uNwY6QtHCBOExzbV6m236DDhYCCtPmQUCoQtwkVqzud8v5QPidoMr6CoMkC2nfp6nksjttqWQRRh75LqUmA==}
/canvas-confetti/1.6.0:
resolution: {integrity: sha512-ej+w/m8Jzpv9Z7W7uJZer14Ke8P2ogsjg4ZMGIuq4iqUOqY2Jq8BNW42iGmNfRwREaaEfFIczLuZZiEVSYNHAA==}
@ -10757,13 +10749,6 @@ packages:
source-map: 0.6.1
dev: true
/clean-package/2.1.1:
resolution: {integrity: sha512-+svGAs1RfjguW3Yi0uk1F2gu56jt0nkpFW6Gd9BDK0w7xcIokFwrQOWuRn5NO5pfTDkLCVP1ttIjvJwXaSvRsA==}
hasBin: true
dependencies:
dot-object: 2.1.4
dev: true
/clean-package/2.2.0:
resolution: {integrity: sha512-vLv8kRqvh4smPDpqAYFPLEijTppAd/cfCz4yBcUGoVl/JKu6ZWKhlo+G/cAmwlSa29RudfBeuyiNEzas8bTwEQ==}
hasBin: true
@ -11997,14 +11982,6 @@ packages:
tslib: 2.5.0
dev: true
/dot-object/2.1.4:
resolution: {integrity: sha512-7FXnyyCLFawNYJ+NhkqyP9Wd2yzuo+7n9pGiYpkmXCTYa8Ci2U0eUNDVg5OuO5Pm6aFXI2SWN8/N/w7SJWu1WA==}
hasBin: true
dependencies:
commander: 4.1.1
glob: 7.2.3
dev: true
/dot-prop/5.3.0:
resolution: {integrity: sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==}
engines: {node: '>=8'}
@ -17695,8 +17672,8 @@ packages:
dev: true
optional: true
/nanoid/3.3.4:
resolution: {integrity: sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==}
/nanoid/3.3.6:
resolution: {integrity: sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==}
engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
hasBin: true
@ -17832,7 +17809,7 @@ packages:
dependencies:
'@next/env': 12.3.4
'@swc/helpers': 0.4.11
caniuse-lite: 1.0.30001469
caniuse-lite: 1.0.30001470
postcss: 8.4.14
react: 18.2.0
styled-jsx: 5.0.7_react@18.2.0
@ -19034,7 +19011,7 @@ packages:
resolution: {integrity: sha512-E398TUmfAYFPBSdzgeieK2Y1+1cpdxJx8yXbK/m57nRhKSmk1GB2tO4lbLBtlkfPQTDKfe4Xqv1ASWPpayPEig==}
engines: {node: ^10 || ^12 || >=14}
dependencies:
nanoid: 3.3.4
nanoid: 3.3.6
picocolors: 1.0.0
source-map-js: 1.0.2
@ -19042,7 +19019,7 @@ packages:
resolution: {integrity: sha512-tP7u/Sn/dVxK2NnruI4H9BG+x+Wxz6oeZ1cJ8P6G/PZY0IKk4k/63TDsQf2kQq3+qoJeLm2kIBUNlZe3zgb4Zg==}
engines: {node: ^10 || ^12 || >=14}
dependencies:
nanoid: 3.3.4
nanoid: 3.3.6
picocolors: 1.0.0
source-map-js: 1.0.2

View File

@ -0,0 +1,49 @@
const fs = require('fs');
const glob = require('glob');
const contentToPrepend = '"use client";\n\n';
const keyword = 'displayName';
const fileExtension = '.mjs';
const targetPattern = './packages/components/**/dist/**/*' + fileExtension;
const ignorePattern = './packages/components/**/node_modules/**';
function readDirRecursively(pattern) {
return new Promise((resolve, reject) => {
glob(pattern, { root: '../', ignore: ignorePattern }, (err, files) => {
if (err) {
reject(err);
} else {
resolve(files);
}
});
});
}
function prependContentToFile(file, content) {
// Ignore any files that include "node_modules"
if (file.includes('node_modules')) {
return;
}
const fileContent = fs.readFileSync(file, 'utf8');
// Check if file contains the keyword
if (fileContent.includes(keyword) && !fileContent.startsWith(contentToPrepend)) {
console.log(`Prepending content to: ${file}`);
const updatedContent = content + fileContent;
fs.writeFileSync(file, updatedContent, 'utf8');
}
}
readDirRecursively(targetPattern)
.then((mjsFiles) => {
console.log(`Found ${mjsFiles.length} files to process.`);
mjsFiles.forEach((file) => {
prependContentToFile(file, contentToPrepend);
});
console.log('Operation completed.');
})
.catch((err) => {
console.error('An error occurred:', err);
});