feat(docs): snippet done

This commit is contained in:
Junior Garcia 2023-05-28 16:17:22 -03:00
parent 6cb0e5a97b
commit 1569b59725
132 changed files with 1032 additions and 70 deletions

View File

@ -16,3 +16,4 @@ export * from "./link";
export * from "./progress";
export * from "./user";
export * from "./skeleton";
export * from "./snippet";

View File

@ -0,0 +1,22 @@
const App = `import {Snippet} from "@nextui-org/react";
export default function App() {
return (
<div className="flex gap-4">
<Snippet color="default">npm install @nextui-org/react</Snippet>
<Snippet color="primary">npm install @nextui-org/react</Snippet>
<Snippet color="secondary">npm install @nextui-org/react</Snippet>
<Snippet color="success">npm install @nextui-org/react</Snippet>
<Snippet color="warning">npm install @nextui-org/react</Snippet>
<Snippet color="danger">npm install @nextui-org/react</Snippet>
</div>
);
}`;
const react = {
"/App.jsx": App,
};
export default {
...react,
};

View File

@ -0,0 +1,64 @@
export const CopyIcon = `export const CopyIcon = ({ size, height, width, ...props }) => {
return (
<svg
fill="none"
height={height || 20}
shape-rendering="geometricPrecision"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="1.5"
viewBox="0 0 24 24"
width={width || 20}
{...props}
>
<path d="M6 17C4.89543 17 4 16.1046 4 15V5C4 3.89543 4.89543 3 6 3H13C13.7403 3 14.3866 3.4022 14.7324 4M11 21H18C19.1046 21 20 20.1046 20 19V9C20 7.89543 19.1046 7 18 7H11C9.89543 7 9 7.89543 9 9V19C9 20.1046 9.89543 21 11 21Z" />
</svg>
);
};`;
export const CheckIcon = `export const CheckIcon = ({
size,
height,
width,
...props
}) => {
return (
<svg
width={size || width || 24}
height={size || height || 24}
viewBox="0 0 24 24"
fill="currentColor"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path d="m2.394 13.742 4.743 3.62 7.616-8.704-1.506-1.316-6.384 7.296-3.257-2.486zm19.359-5.084-1.506-1.316-6.369 7.279-.753-.602-1.25 1.562 2.247 1.798z"/>
</svg>
);
};`;
const App = `import {Snippet} from "@nextui-org/react";
import {CopyIcon} from "./CopyIcon";
import {CheckIcon} from "./CheckIcon";
export default function App() {
return (
<Snippet
variant="bordered"
copyIcon={<CopyIcon />}
checkIcon={<CheckIcon />}
>
npm install @nextui-org/react
</Snippet>
);
}`;
const react = {
"/App.jsx": App,
"/CopyIcon.jsx": CopyIcon,
"/CheckIcon.jsx": CheckIcon,
};
export default {
...react,
};

View File

@ -0,0 +1,25 @@
const App = `import {Snippet} from "@nextui-org/react";
export default function App() {
return (
<Snippet
tooltipProps={{
color: "foreground",
content: "Copy this snippet",
disableAnimation: true,
placement: "right",
closeDelay: 0
}}
>
npm install @nextui-org/react
</Snippet>
);
}`;
const react = {
"/App.jsx": App,
};
export default {
...react,
};

View File

@ -0,0 +1,21 @@
import usage from "./usage";
import sizes from "./sizes";
import colors from "./colors";
import variants from "./variants";
import symbol from "./symbol";
import withoutCopy from "./without-copy";
import customTooltip from "./custom-tooltip";
import multiline from "./multiline";
import customIcons from "./custom-icons";
export const snippetContent = {
usage,
sizes,
colors,
variants,
symbol,
withoutCopy,
customTooltip,
multiline,
customIcons,
};

View File

@ -0,0 +1,19 @@
const App = `import {Snippet} from "@nextui-org/react";
export default function App() {
return (
<Snippet>
<span>npm install @nextui-org/react</span>
<span>yarn add @nextui-org/react</span>
<span>pnpm add @nextui-org/react</span>
</Snippet>
);
}`;
const react = {
"/App.jsx": App,
};
export default {
...react,
};

View File

@ -0,0 +1,21 @@
const App = `import {Snippet} from "@nextui-org/react";
export default function App() {
return (
<div className="flex gap-4">
<Snippet size="xs">npm install @nextui-org/react</Snippet>
<Snippet size="sm">npm install @nextui-org/react</Snippet>
<Snippet size="md">npm install @nextui-org/react</Snippet>
<Snippet size="lg">npm install @nextui-org/react</Snippet>
<Snippet size="xl">npm install @nextui-org/react</Snippet>
</div>
);
}`;
const react = {
"/App.jsx": App,
};
export default {
...react,
};

View File

@ -0,0 +1,15 @@
const App = `import {Snippet} from "@nextui-org/react";
export default function App() {
return (
<Snippet symbol="#" variant="bordered">npm install @nextui-org/react</Snippet>
);
}`;
const react = {
"/App.jsx": App,
};
export default {
...react,
};

View File

@ -0,0 +1,15 @@
const App = `import {Snippet} from "@nextui-org/react";
export default function App() {
return (
<Snippet>npm install @nextui-org/react</Snippet>
);
}`;
const react = {
"/App.jsx": App,
};
export default {
...react,
};

View File

@ -0,0 +1,20 @@
const App = `import {Snippet} from "@nextui-org/react";
export default function App() {
return (
<div className="flex gap-4">
<Snippet variant="bordered">npm install @nextui-org/react</Snippet>
<Snippet variant="flat" color="warning">npm install @nextui-org/react</Snippet>
<Snippet variant="solid" color="primary">npm install @nextui-org/react</Snippet>
<Snippet variant="shadow" color="secondary">npm install @nextui-org/react</Snippet>
</div>
);
}`;
const react = {
"/App.jsx": App,
};
export default {
...react,
};

View File

@ -0,0 +1,17 @@
const App = `import {Snippet} from "@nextui-org/react";
export default function App() {
return (
<Snippet hideCopyButton color="primary" variant="solid">
npm install @nextui-org/react
</Snippet>
);
}`;
const react = {
"/App.jsx": App,
};
export default {
...react,
};

View File

@ -0,0 +1,103 @@
---
title: "Snippet"
description: "Snippet is a component that can be used to display inline or multiline code snippets."
url: https://nextui.org/docs/components/code
---
# Snippet
Snippet is a component that can be used to display inline or multiline code snippets.
<ComponentLinks component="snippet" />
---
## Import
<ImportTabs
commands={{
main: 'import {Snippet} from "@nextui-org/react";',
individual: 'import {Snippet} from "@nextui-org/snippet";',
}}
/>
## Usage
<CodeDemo title="Snippet" files={snippetContent.usage} />
### Sizes
<CodeDemo title="Sizes" files={snippetContent.sizes} />
### Colors
<CodeDemo title="Colors" files={snippetContent.colors} />
### Variants
<CodeDemo title="Variants" files={snippetContent.variants} />
### Custom Symbol
<CodeDemo title="Custom Symbol" files={snippetContent.symbol} />
### Without Copy
You can hide the copy button by setting the `hideCopyButton` property to `true`.
<CodeDemo title="Without Copy" files={snippetContent.withoutCopy} />
### Custom Tooltip
You can customize the tooltip by using the `tooltipProps` property.
<CodeDemo title="Custom Tooltip" highlightedLines="7-10" files={snippetContent.customTooltip} />
> **Note**: For more information about the `Tootlip` props, please visit the [Tooltip](/docs/components/tooltip) page.
### Multiline
<CodeDemo title="Multiline" files={snippetContent.multiline} />
### Custom Icons
You can customize the copy and copied icons by using the `copyIcon` and `checkIcon` properties.
<CodeDemo title="Custom Icons" highlightedLines="9-10" files={snippetContent.customIcons} />
## Slots
- **base**: The base slot of the snippet, it is the main container.
- **content**: This is the wrapper of the `<pre/>` slot.
- **pre**: The `<pre/>` slot of the snippet. It is used to wrap the code.
- **symbol**: The symbol wrapper slot.
- **copyButton**: The copy button slot.
- **copyIcon**: The copy icon slot.
- **checkIcon**: The check icon slot.
## API
### Snippet Props
| Attribute | Type | Description | Default |
| ---------------- | ------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ------- |
| children | `ReactNode` \| `ReactNode[]` | The content of the snippet. | - |
| symbol | `string` \| `ReactNode` | The symbol to show before the snippet. | `$` |
| timeout | `number` | he time in milliseconds to wait before resetting the clipboard. | `2000` |
| codeString | `string` | The code string to copy. if `codeString` is passed, it will be copied instead of the children. | - |
| tooltipProps | [TooltipProps](/docs/components/tooltip#tooltip-props) | The props of the tooltip. | - |
| copyIcon | `ReactNode` | The copy icon. | - |
| checkIcon | `ReactNode` | The check icon. | - |
| disableTooltip | `boolean` | Whether to disable the tooltip. | `false` |
| disableCopy | `boolean` | Whether to disable the copy button. | `false` |
| hideCopyButton | `boolean` | Whether to hide the copy button. | `false` |
| hideSymbol | `boolean` | Whether to hide the symbol. | `false` |
| copyButtonProps | [ButtonProps](/docs/components/button#button-props) | The props of the copy button. | - |
| disableAnimation | `boolean` | Whether to disable the animations. | `false` |
| classNames | `Record<"base""content""pre""symbol""copyButton""checkIcon", string>` | Allows to set custom class names for the skeleton slots. | - |
### Snippet Events
| Attribute | Type | Description |
| --------- | -------------------------------------- | ----------------------------------------------- |
| onCopy | `(value: string string[]) => void;` | Handler that is called when the code is copied. |

View File

@ -1,5 +1,20 @@
# @nextui-org/accordion
## 0.0.0-dev-v2-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
- Updated dependencies
- @nextui-org/use-aria-accordion-item@0.0.0-dev-v2-20230528191554
- @nextui-org/framer-transitions@0.0.0-dev-v2-20230528191554
- @nextui-org/shared-icons@0.0.0-dev-v2-20230528191554
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/aria-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/system@0.0.0-dev-v2-20230528191554
- @nextui-org/theme@0.0.0-dev-v2-20230528191554
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/accordion",
"version": "0.0.0-dev-v2-20230528153341",
"version": "0.0.0-dev-v2-20230528191554",
"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-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/use-image@0.0.0-dev-v2-20230528191554
- @nextui-org/system@0.0.0-dev-v2-20230528191554
- @nextui-org/theme@0.0.0-dev-v2-20230528191554
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/avatar",
"version": "0.0.0-dev-v2-20230528153341",
"version": "0.0.0-dev-v2-20230528191554",
"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-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/system@0.0.0-dev-v2-20230528191554
- @nextui-org/theme@0.0.0-dev-v2-20230528191554
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

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

View File

@ -1,5 +1,19 @@
# @nextui-org/button
## 0.0.0-dev-v2-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/use-aria-button@0.0.0-dev-v2-20230528191554
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/spinner@0.0.0-dev-v2-20230528191554
- @nextui-org/drip@0.0.0-dev-v2-20230528191554
- @nextui-org/system@0.0.0-dev-v2-20230528191554
- @nextui-org/theme@0.0.0-dev-v2-20230528191554
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

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

View File

@ -1,5 +1,18 @@
# @nextui-org/card
## 0.0.0-dev-v2-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/use-aria-button@0.0.0-dev-v2-20230528191554
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/drip@0.0.0-dev-v2-20230528191554
- @nextui-org/system@0.0.0-dev-v2-20230528191554
- @nextui-org/theme@0.0.0-dev-v2-20230528191554
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

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

View File

@ -1,5 +1,16 @@
# @nextui-org/checkbox
## 0.0.0-dev-v2-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/system@0.0.0-dev-v2-20230528191554
- @nextui-org/theme@0.0.0-dev-v2-20230528191554
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/checkbox",
"version": "0.0.0-dev-v2-20230528153341",
"version": "0.0.0-dev-v2-20230528191554",
"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-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
- Updated dependencies
- @nextui-org/shared-icons@0.0.0-dev-v2-20230528191554
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/system@0.0.0-dev-v2-20230528191554
- @nextui-org/theme@0.0.0-dev-v2-20230528191554
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/chip",
"version": "0.0.0-dev-v2-20230528153341",
"version": "0.0.0-dev-v2-20230528191554",
"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-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/system@0.0.0-dev-v2-20230528191554
- @nextui-org/theme@0.0.0-dev-v2-20230528191554
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

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

View File

@ -1,5 +1,16 @@
# @nextui-org/divider
## 0.0.0-dev-v2-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/system@0.0.0-dev-v2-20230528191554
- @nextui-org/theme@0.0.0-dev-v2-20230528191554
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/divider",
"version": "0.0.0-dev-v2-20230528153341",
"version": "0.0.0-dev-v2-20230528191554",
"description": ". A separator is a visual divider between two groups of content",
"keywords": [
"divider"

View File

@ -1,5 +1,16 @@
# @nextui-org/drip
## 0.0.0-dev-v2-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/system@0.0.0-dev-v2-20230528191554
- @nextui-org/theme@0.0.0-dev-v2-20230528191554
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

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

View File

@ -1,5 +1,19 @@
# @nextui-org/dropdown
## 0.0.0-dev-v2-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/aria-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/use-is-mobile@0.0.0-dev-v2-20230528191554
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/popover@0.0.0-dev-v2-20230528191554
- @nextui-org/system@0.0.0-dev-v2-20230528191554
- @nextui-org/theme@0.0.0-dev-v2-20230528191554
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/dropdown",
"version": "0.0.0-dev-v2-20230528153341",
"version": "0.0.0-dev-v2-20230528191554",
"description": "A dropdown displays a list of actions or options that a user can choose.",
"keywords": [
"dropdown"

View File

@ -1,5 +1,17 @@
# @nextui-org/image
## 0.0.0-dev-v2-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/use-image@0.0.0-dev-v2-20230528191554
- @nextui-org/system@0.0.0-dev-v2-20230528191554
- @nextui-org/theme@0.0.0-dev-v2-20230528191554
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/image",
"version": "0.0.0-dev-v2-20230528153341",
"version": "0.0.0-dev-v2-20230528191554",
"description": "A simple image component",
"keywords": [
"image"

View File

@ -1,5 +1,18 @@
# @nextui-org/input
## 0.0.0-dev-v2-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
- Updated dependencies
- @nextui-org/shared-icons@0.0.0-dev-v2-20230528191554
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/use-aria-field@0.0.0-dev-v2-20230528191554
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/system@0.0.0-dev-v2-20230528191554
- @nextui-org/theme@0.0.0-dev-v2-20230528191554
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/input",
"version": "0.0.0-dev-v2-20230528153341",
"version": "0.0.0-dev-v2-20230528191554",
"description": "The input component is designed for capturing user input within a text field.",
"keywords": [
"input"

View File

@ -1,5 +1,16 @@
# @nextui-org/kbd
## 0.0.0-dev-v2-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/system@0.0.0-dev-v2-20230528191554
- @nextui-org/theme@0.0.0-dev-v2-20230528191554
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/kbd",
"version": "0.0.0-dev-v2-20230528153341",
"version": "0.0.0-dev-v2-20230528191554",
"description": "The keyboard key components indicates which key or set of keys used to execute a specificv action",
"keywords": [
"kbd"

View File

@ -1,5 +1,17 @@
# @nextui-org/link
## 0.0.0-dev-v2-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
- Updated dependencies
- @nextui-org/shared-icons@0.0.0-dev-v2-20230528191554
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/system@0.0.0-dev-v2-20230528191554
- @nextui-org/theme@0.0.0-dev-v2-20230528191554
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/link",
"version": "0.0.0-dev-v2-20230528153341",
"version": "0.0.0-dev-v2-20230528191554",
"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,20 @@
# @nextui-org/modal
## 0.0.0-dev-v2-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
- Updated dependencies
- @nextui-org/framer-transitions@0.0.0-dev-v2-20230528191554
- @nextui-org/shared-icons@0.0.0-dev-v2-20230528191554
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/use-aria-button@0.0.0-dev-v2-20230528191554
- @nextui-org/use-disclosure@0.0.0-dev-v2-20230528191554
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/system@0.0.0-dev-v2-20230528191554
- @nextui-org/theme@0.0.0-dev-v2-20230528191554
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/modal",
"version": "0.0.0-dev-v2-20230528153341",
"version": "0.0.0-dev-v2-20230528191554",
"description": "Displays a dialog with a custom content that requires attention or provides additional information.",
"keywords": [
"modal"

View File

@ -1,5 +1,19 @@
# @nextui-org/navbar
## 0.0.0-dev-v2-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
- Updated dependencies
- @nextui-org/use-aria-toggle-button@0.0.0-dev-v2-20230528191554
- @nextui-org/framer-transitions@0.0.0-dev-v2-20230528191554
- @nextui-org/use-scroll-position@0.0.0-dev-v2-20230528191554
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/system@0.0.0-dev-v2-20230528191554
- @nextui-org/theme@0.0.0-dev-v2-20230528191554
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/navbar",
"version": "0.0.0-dev-v2-20230528153341",
"version": "0.0.0-dev-v2-20230528191554",
"description": "A responsive navigation header positioned on top side of your page that includes support for branding, links, navigation, collapse and more.",
"keywords": [
"navbar"

View File

@ -1,5 +1,18 @@
# @nextui-org/pagination
## 0.0.0-dev-v2-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
- Updated dependencies
- @nextui-org/shared-icons@0.0.0-dev-v2-20230528191554
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/use-pagination@0.0.0-dev-v2-20230528191554
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/system@0.0.0-dev-v2-20230528191554
- @nextui-org/theme@0.0.0-dev-v2-20230528191554
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

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

View File

@ -1,5 +1,20 @@
# @nextui-org/popover
## 0.0.0-dev-v2-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
- Updated dependencies
- @nextui-org/framer-transitions@0.0.0-dev-v2-20230528191554
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/use-aria-button@0.0.0-dev-v2-20230528191554
- @nextui-org/aria-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/button@0.0.0-dev-v2-20230528191554
- @nextui-org/system@0.0.0-dev-v2-20230528191554
- @nextui-org/theme@0.0.0-dev-v2-20230528191554
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/popover",
"version": "0.0.0-dev-v2-20230528153341",
"version": "0.0.0-dev-v2-20230528191554",
"description": "A popover is an overlay element positioned relative to a trigger.",
"keywords": [
"popover"

View File

@ -1,5 +1,18 @@
# @nextui-org/progress
## 0.0.0-dev-v2-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/use-aria-label@0.0.0-dev-v2-20230528191554
- @nextui-org/use-is-mounted@0.0.0-dev-v2-20230528191554
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/system@0.0.0-dev-v2-20230528191554
- @nextui-org/theme@0.0.0-dev-v2-20230528191554
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/progress",
"version": "0.0.0-dev-v2-20230528153341",
"version": "0.0.0-dev-v2-20230528191554",
"description": "Progress bars show either determinate or indeterminate progress of an operation over time.",
"keywords": [
"progress"

View File

@ -1,5 +1,16 @@
# @nextui-org/radio
## 0.0.0-dev-v2-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/system@0.0.0-dev-v2-20230528191554
- @nextui-org/theme@0.0.0-dev-v2-20230528191554
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

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

View File

@ -1,5 +1,16 @@
# @nextui-org/skeleton
## 0.0.0-dev-v2-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/system@0.0.0-dev-v2-20230528191554
- @nextui-org/theme@0.0.0-dev-v2-20230528191554
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/skeleton",
"version": "0.0.0-dev-v2-20230528153341",
"version": "0.0.0-dev-v2-20230528191554",
"description": "Skeleton is used to display the loading state of some component.",
"keywords": [
"skeleton"

View File

@ -1,5 +1,20 @@
# @nextui-org/snippet
## 0.0.0-dev-v2-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
- Updated dependencies
- @nextui-org/shared-icons@0.0.0-dev-v2-20230528191554
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/use-clipboard@0.0.0-dev-v2-20230528191554
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/tooltip@0.0.0-dev-v2-20230528191554
- @nextui-org/button@0.0.0-dev-v2-20230528191554
- @nextui-org/system@0.0.0-dev-v2-20230528191554
- @nextui-org/theme@0.0.0-dev-v2-20230528191554
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

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

View File

@ -195,22 +195,30 @@ export function useSnippet(originalProps: UseSnippetProps) {
return;
}
let value = "";
let stringValue = "";
if (typeof children === "string") {
value = children;
stringValue = children;
} else if (Array.isArray(children)) {
value = children.join("\n");
children.forEach((child) => {
// @ts-ignore
const childString = typeof child === "string" ? child : child?.props?.children?.toString();
if (childString) {
stringValue += childString + "\n";
}
});
}
const valueToCopy = codeString || value || preRef.current?.textContent || "";
const valueToCopy = codeString || stringValue || preRef.current?.textContent || "";
copy(valueToCopy);
onCopyProp?.(valueToCopy);
}, [copy, codeString, disableCopy, onCopyProp, children]);
const defaultCopyButtonProps: ButtonProps = {
"aria-label": "Copy to clipboard",
"aria-label":
typeof tooltipProps.content === "string" ? tooltipProps.content : "Copy to clipboard",
size: "sm",
variant: "light",
radius: "lg",

View File

@ -1,5 +1,16 @@
# @nextui-org/spacer
## 0.0.0-dev-v2-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/system@0.0.0-dev-v2-20230528191554
- @nextui-org/theme@0.0.0-dev-v2-20230528191554
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/spacer",
"version": "0.0.0-dev-v2-20230528153341",
"version": "0.0.0-dev-v2-20230528191554",
"description": "A flexible spacer component designed to create consistent spacing and maintain alignment in your layout.",
"keywords": [
"spacer"

View File

@ -1,5 +1,16 @@
# @nextui-org/spinner
## 0.0.0-dev-v2-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/system@0.0.0-dev-v2-20230528191554
- @nextui-org/theme@0.0.0-dev-v2-20230528191554
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/spinner",
"version": "0.0.0-dev-v2-20230528153341",
"version": "0.0.0-dev-v2-20230528191554",
"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-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/system@0.0.0-dev-v2-20230528191554
- @nextui-org/theme@0.0.0-dev-v2-20230528191554
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/switch",
"version": "0.0.0-dev-v2-20230528153341",
"version": "0.0.0-dev-v2-20230528191554",
"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/table
## 0.0.0-dev-v2-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
- Updated dependencies
- @nextui-org/shared-icons@0.0.0-dev-v2-20230528191554
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/checkbox@0.0.0-dev-v2-20230528191554
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/spacer@0.0.0-dev-v2-20230528191554
- @nextui-org/system@0.0.0-dev-v2-20230528191554
- @nextui-org/theme@0.0.0-dev-v2-20230528191554
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/table",
"version": "0.0.0-dev-v2-20230528153341",
"version": "0.0.0-dev-v2-20230528191554",
"description": "Tables are used to display tabular data using rows and columns. ",
"keywords": [
"table"

View File

@ -1,5 +1,19 @@
# @nextui-org/tabs
## 0.0.0-dev-v2-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
- Updated dependencies
- @nextui-org/framer-transitions@0.0.0-dev-v2-20230528191554
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/use-is-mounted@0.0.0-dev-v2-20230528191554
- @nextui-org/aria-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/system@0.0.0-dev-v2-20230528191554
- @nextui-org/theme@0.0.0-dev-v2-20230528191554
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/tabs",
"version": "0.0.0-dev-v2-20230528153341",
"version": "0.0.0-dev-v2-20230528191554",
"description": "Tabs organize content into multiple sections and allow users to navigate between them.",
"keywords": [
"tabs"

View File

@ -1,5 +1,18 @@
# @nextui-org/tooltip
## 0.0.0-dev-v2-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
- Updated dependencies
- @nextui-org/framer-transitions@0.0.0-dev-v2-20230528191554
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/aria-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/system@0.0.0-dev-v2-20230528191554
- @nextui-org/theme@0.0.0-dev-v2-20230528191554
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/tooltip",
"version": "0.0.0-dev-v2-20230528153341",
"version": "0.0.0-dev-v2-20230528191554",
"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-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528191554
- @nextui-org/avatar@0.0.0-dev-v2-20230528191554
- @nextui-org/system@0.0.0-dev-v2-20230528191554
- @nextui-org/theme@0.0.0-dev-v2-20230528191554
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

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

View File

@ -1,5 +1,44 @@
# @nextui-org/react
## 0.0.0-dev-v2-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
- Updated dependencies
- @nextui-org/pagination@0.0.0-dev-v2-20230528191554
- @nextui-org/accordion@0.0.0-dev-v2-20230528191554
- @nextui-org/checkbox@0.0.0-dev-v2-20230528191554
- @nextui-org/dropdown@0.0.0-dev-v2-20230528191554
- @nextui-org/progress@0.0.0-dev-v2-20230528191554
- @nextui-org/skeleton@0.0.0-dev-v2-20230528191554
- @nextui-org/divider@0.0.0-dev-v2-20230528191554
- @nextui-org/popover@0.0.0-dev-v2-20230528191554
- @nextui-org/snippet@0.0.0-dev-v2-20230528191554
- @nextui-org/spinner@0.0.0-dev-v2-20230528191554
- @nextui-org/tooltip@0.0.0-dev-v2-20230528191554
- @nextui-org/avatar@0.0.0-dev-v2-20230528191554
- @nextui-org/button@0.0.0-dev-v2-20230528191554
- @nextui-org/navbar@0.0.0-dev-v2-20230528191554
- @nextui-org/spacer@0.0.0-dev-v2-20230528191554
- @nextui-org/switch@0.0.0-dev-v2-20230528191554
- @nextui-org/badge@0.0.0-dev-v2-20230528191554
- @nextui-org/image@0.0.0-dev-v2-20230528191554
- @nextui-org/input@0.0.0-dev-v2-20230528191554
- @nextui-org/modal@0.0.0-dev-v2-20230528191554
- @nextui-org/radio@0.0.0-dev-v2-20230528191554
- @nextui-org/table@0.0.0-dev-v2-20230528191554
- @nextui-org/card@0.0.0-dev-v2-20230528191554
- @nextui-org/chip@0.0.0-dev-v2-20230528191554
- @nextui-org/code@0.0.0-dev-v2-20230528191554
- @nextui-org/drip@0.0.0-dev-v2-20230528191554
- @nextui-org/link@0.0.0-dev-v2-20230528191554
- @nextui-org/tabs@0.0.0-dev-v2-20230528191554
- @nextui-org/user@0.0.0-dev-v2-20230528191554
- @nextui-org/kbd@0.0.0-dev-v2-20230528191554
- @nextui-org/system@0.0.0-dev-v2-20230528191554
- @nextui-org/theme@0.0.0-dev-v2-20230528191554
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/react",
"version": "0.0.0-dev-v2-20230528153341",
"version": "0.0.0-dev-v2-20230528191554",
"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-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

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

View File

@ -1,5 +1,11 @@
# @nextui-org/theme
## 0.0.0-dev-v2-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

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

View File

@ -24,11 +24,19 @@ import {colorVariants} from "../utils";
*/
const snippet = tv({
slots: {
base: "inline-flex items-center justify-between rounded-md",
pre: "bg-transparent text-inherit font-mono whitespace-pre-wrap",
base: "inline-flex items-center justify-between h-fit rounded-md",
pre: "bg-transparent text-inherit font-mono font-normal inline-block whitespace-nowrap",
content: "flex flex-col",
symbol: "select-none",
copyButton: ["group", "relative", "z-10", "text-inherit", "data-[hover=true]:bg-transparent"],
copyButton: [
"group",
"relative",
"z-10",
"ml-2",
"text-lg",
"text-inherit",
"data-[hover=true]:bg-transparent",
],
copyIcon: [
"absolute text-inherit opacity-100 scale-100 group-data-[copied=true]:opacity-0 group-data-[copied=true]:scale-50",
],
@ -71,13 +79,13 @@ const snippet = tv({
base: "px-2 py-1 text-sm",
},
md: {
base: "px-3 py-1.5 text-base",
base: "px-3 py-1.5 text-sm",
},
lg: {
base: "px-4 py-2 text-lg",
base: "px-4 py-2 text-base",
},
xl: {
base: "px-4 py-2 text-xl",
base: "px-4 py-2 text-lg",
},
},
radius: {

View File

@ -1,5 +1,11 @@
# @nextui-org/use-aria-accordion-item
## 0.0.0-dev-v2-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/use-aria-accordion-item",
"version": "0.0.0-dev-v2-20230528153341",
"version": "0.0.0-dev-v2-20230528191554",
"description": "Internal impl for react aria accordion item",
"keywords": [
"use-aria-accordion-item"

View File

@ -1,5 +1,11 @@
# @nextui-org/use-aria-button
## 0.0.0-dev-v2-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/use-aria-button",
"version": "0.0.0-dev-v2-20230528153341",
"version": "0.0.0-dev-v2-20230528191554",
"description": "Internal hook to handle button a11y and events, this is based on react-aria button hook but without the onClick warning",
"keywords": [
"use-aria-button"

View File

@ -1,5 +1,14 @@
# @nextui-org/use-aria-field
## 0.0.0-dev-v2-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
- Updated dependencies
- @nextui-org/use-aria-slot-id@0.0.0-dev-v2-20230528191554
- @nextui-org/use-aria-label@0.0.0-dev-v2-20230528191554
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/use-aria-field",
"version": "0.0.0-dev-v2-20230528153341",
"version": "0.0.0-dev-v2-20230528191554",
"description": "Based on react-aria useField hook, provides the accessibility implementation for input fields",
"keywords": [
"use-aria-field"

View File

@ -1,5 +1,11 @@
# @nextui-org/use-aria-label
## 0.0.0-dev-v2-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/use-aria-label",
"version": "0.0.0-dev-v2-20230528153341",
"version": "0.0.0-dev-v2-20230528191554",
"description": "Based on react-aria label hook, it provides the accessibility implementation for labels and their associated elements. Labels provide context for user inputs.",
"keywords": [
"use-aria-label"

View File

@ -1,5 +1,11 @@
# @nextui-org/use-aria-slot-id
## 0.0.0-dev-v2-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/use-aria-slot-id",
"version": "0.0.0-dev-v2-20230528153341",
"version": "0.0.0-dev-v2-20230528191554",
"description": "Based on react-aria useSlotId, used to generate an id, and after render check if that id is rendered",
"keywords": [
"use-aria-slot-id"

View File

@ -1,5 +1,13 @@
# @nextui-org/use-aria-toggle-button
## 0.0.0-dev-v2-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
- Updated dependencies
- @nextui-org/use-aria-button@0.0.0-dev-v2-20230528191554
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/use-aria-toggle-button",
"version": "0.0.0-dev-v2-20230528153341",
"version": "0.0.0-dev-v2-20230528191554",
"description": "Internal hook to handle button a11y and events, this is based on react-aria button hook but without the onClick warning",
"keywords": [
"use-aria-toggle-button"

View File

@ -1,5 +1,13 @@
# @nextui-org/use-callback-ref
## 0.0.0-dev-v2-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
- Updated dependencies
- @nextui-org/use-safe-layout-effect@0.0.0-dev-v2-20230528191554
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/use-callback-ref",
"version": "0.0.0-dev-v2-20230528153341",
"version": "0.0.0-dev-v2-20230528191554",
"description": "React hook to persist any value between renders, but keeps it up-to-date if it changes.",
"keywords": [
"use-callback-ref"

View File

@ -1,5 +1,11 @@
# @nextui-org/use-clipboard
## 0.0.0-dev-v2-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

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

View File

@ -1,5 +1,13 @@
# @nextui-org/use-disclosure
## 0.0.0-dev-v2-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
- Updated dependencies
- @nextui-org/use-callback-ref@0.0.0-dev-v2-20230528191554
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/use-disclosure",
"version": "0.0.0-dev-v2-20230528153341",
"version": "0.0.0-dev-v2-20230528191554",
"description": "The hook in charge of managing modals",
"keywords": [
"use-disclosure"

View File

@ -1,5 +1,13 @@
# @nextui-org/use-image
## 0.0.0-dev-v2-20230528191554
### Patch Changes
- Snippet multiline copy fixed and styles improved
- Updated dependencies
- @nextui-org/use-safe-layout-effect@0.0.0-dev-v2-20230528191554
## 0.0.0-dev-v2-20230528153341
### Patch Changes

View File

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

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