feat(docs): progress done, internal APi improved

This commit is contained in:
Junior Garcia 2023-05-27 23:25:11 -03:00
parent 0ac5a339f4
commit 90e76df87d
135 changed files with 1018 additions and 89 deletions

View File

@ -13,3 +13,4 @@ export * from "./kbd";
export * from "./spacer"; export * from "./spacer";
export * from "./spinner"; export * from "./spinner";
export * from "./link"; export * from "./link";
export * from "./progress";

View File

@ -3,7 +3,7 @@ const App = `import {Link} from "@nextui-org/react";
export default function App() { export default function App() {
return ( return (
<div className="flex gap-4"> <div className="flex gap-4">
<Link isExternal aria-visible={true} href="https://github.com/nextui-org/nextui"> <Link isExternal href="https://github.com/nextui-org/nextui">
External Link External Link
</Link> </Link>
<Link <Link

View File

@ -0,0 +1,22 @@
const App = `import {Progress} from "@nextui-org/react";
export default function App() {
return (
<div className="flex flex-col gap-6 w-full max-w-md">
<Progress color="default" aria-label="Loading..." value={70} />
<Progress color="primary" aria-label="Loading..." value={70} />
<Progress color="secondary" aria-label="Loading..." value={70} />
<Progress color="success" aria-label="Loading..." value={70} />
<Progress color="warning" aria-label="Loading..." value={70} />
<Progress color="danger" aria-label="Loading..." value={70} />
</div>
);
}`;
const react = {
"/App.jsx": App,
};
export default {
...react,
};

View File

@ -0,0 +1,28 @@
const App = `import { Progress } from "@nextui-org/react";
export default function App() {
return (
<Progress
size="sm"
radius="sm"
classNames={{
base: "max-w-md",
track: "drop-shadow-md border border-default",
indicator: "bg-gradient-to-r from-pink-500 to-yellow-500",
label: "tracking-wider font-medium text-default-600",
value: "text-foreground/60",
}}
label="Lose weight"
value={65}
showValueLabel={true}
/>
);
}`;
const react = {
"/App.jsx": App,
};
export default {
...react,
};

View File

@ -0,0 +1,20 @@
const App = `import { Progress } from "@nextui-org/react";
export default function App() {
return (
<Progress
size="xs"
isIndeterminate
aria-label="Loading..."
className="max-w-md"
/>
);
}`;
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 indeterminate from "./indeterminate";
import striped from "./striped";
import label from "./label";
import value from "./value";
import valueFormatting from "./value-formatting";
import customStyles from "./custom-styles";
export const progressContent = {
usage,
sizes,
colors,
indeterminate,
striped,
label,
value,
valueFormatting,
customStyles,
};

View File

@ -0,0 +1,15 @@
const App = `import {Progress} from "@nextui-org/react";
export default function App() {
return (
<Progress label="Loading..." value={55} className="max-w-md" />
);
}`;
const react = {
"/App.jsx": App,
};
export default {
...react,
};

View File

@ -0,0 +1,21 @@
const App = `import {Progress} from "@nextui-org/react";
export default function App() {
return (
<div className="flex flex-col gap-6 w-full max-w-md">
<Progress size="xs" aria-label="Loading..." value={30} />
<Progress size="sm" aria-label="Loading..." value={40} />
<Progress size="md" aria-label="Loading..." value={50} />
<Progress size="lg" aria-label="Loading..." value={60} />
<Progress size="xl" aria-label="Loading..." value={70} />
</div>
);
}`;
const react = {
"/App.jsx": App,
};
export default {
...react,
};

View File

@ -0,0 +1,22 @@
const App = `import { Progress } from "@nextui-org/react";
export default function App() {
return (
<Progress
isStriped
aria-label="Loading..."
color="secondary"
value={60}
className="max-w-md"
/>
);
}
`;
const react = {
"/App.jsx": App,
};
export default {
...react,
};

View File

@ -0,0 +1,15 @@
const App = `import {Progress} from "@nextui-org/react";
export default function App() {
return (
<Progress aria-label="Loading..." value={60} className="max-w-md"/>
);
}`;
const react = {
"/App.jsx": App,
};
export default {
...react,
};

View File

@ -0,0 +1,24 @@
const App = `import {Progress} from "@nextui-org/react";
export default function App() {
return (
<Progress
label="Monthly expenses"
size="sm"
value={4000}
maxValue={10000}
color="warning"
formatOptions={{style: "currency", currency: "ARS"}}
showValueLabel={true}
className="max-w-md"
/>
);
}`;
const react = {
"/App.jsx": App,
};
export default {
...react,
};

View File

@ -0,0 +1,32 @@
const App = `import {Progress} from "@nextui-org/react";
export default function App() {
const [value, setValue] = React.useState(0);
React.useEffect(() => {
const interval = setInterval(() => {
setValue((v) => (v >= 100 ? 0 : v + 10));
}, 500);
return () => clearInterval(interval);
}, []);
return (
<Progress
aria-label="Downloading..."
size="md"
value={value}
color="success"
showValueLabel={true}
className="max-w-md"
/>
);
}`;
const react = {
"/App.jsx": App,
};
export default {
...react,
};

View File

@ -88,6 +88,7 @@ option parameter of [Intl.NumberFormat](https://developer.mozilla.org/en-US/docs
- Labeling support for accessibility. - Labeling support for accessibility.
- Internationalized number formatting as a percentage or value. - Internationalized number formatting as a percentage or value.
- Determinate and indeterminate progress support. - Determinate and indeterminate progress support.
- Exposes the `aria-valuenow`, `aria-valuemin`, `aria-valuemax` and `aria-valuetext` attributes.
## API ## API
@ -96,12 +97,12 @@ option parameter of [Intl.NumberFormat](https://developer.mozilla.org/en-US/docs
| Attribute | Type | Description | Default | | Attribute | Type | Description | Default |
| ---------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------- | -------------------- | | ---------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------- | -------------------- |
| label | `ReactNode` | The content to display as the label. | - | | label | `ReactNode` | The content to display as the label. | - |
| value | `number` | The current value (controlled). | - |
| size | `xs` \| `sm` \| `md` \| `lg` \| `xl` | The size of the indicator. | `md` | | size | `xs` \| `sm` \| `md` \| `lg` \| `xl` | The size of the indicator. | `md` |
| color | `default` \| `primary` \| `secondary` \| `success` \| `warning` \| `danger` | The color of the indicator. | `primary` | | color | `default` \| `primary` \| `secondary` \| `success` \| `warning` \| `danger` | The color of the indicator. | `primary` |
| value | `number` | The current value (controlled). | - |
| valueLabel | `ReactNode` | The content to display as the value's label (e.g. 1 of 4). | - |
| minValue | `number` | The smallest value allowed for the input. | `0` | | minValue | `number` | The smallest value allowed for the input. | `0` |
| maxValue | `number` | The largest value allowed for the input. | `100` | | maxValue | `number` | The largest value allowed for the input. | `100` |
| valueLabel | `ReactNode` | The content to display as the value's label (e.g. 1 of 4). | - |
| formatOptions | [Intl.NumberFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat) | The options to format the value. | `{style: 'percent'}` | | formatOptions | [Intl.NumberFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat) | The options to format the value. | `{style: 'percent'}` |
| isIndeterminate | `boolean` | Whether the progress is indeterminate. | `true` | | isIndeterminate | `boolean` | Whether the progress is indeterminate. | `true` |
| showValueLabel | `boolean` | Whether to show the value label. | `true` | | showValueLabel | `boolean` | Whether to show the value label. | `true` |

View File

@ -1,6 +1,6 @@
--- ---
title: 'Progress' title: "Progress"
description: 'The Progress component allows you to view the progress of any activity.' description: "The Progress component allows you to view the progress of any activity."
url: https://nextui.org/docs/components/progress url: https://nextui.org/docs/components/progress
--- ---
@ -8,6 +8,110 @@ url: https://nextui.org/docs/components/progress
The Progress component allows you to view the progress of any activity. The Progress component allows you to view the progress of any activity.
```jsx <ComponentLinks component="progress" reactAriaHook="useProgressBar" />
import {Progress} from '@nextui-org/react';
``` ---
## Import
<ImportTabs
commands={{
global: 'import {Progress} from "@nextui-org/react";',
individual: 'import {Progress} from "@nextui-org/progress";',
}}
/>
## Usage
<CodeDemo title="Usage" files={progressContent.usage} />
> **Note**: Make sure to pass the `aria-label` prop when the `label` prop is not provided. This is required for accessibility.
### Sizes
<CodeDemo title="Sizes" files={progressContent.sizes} />
### Colors
<CodeDemo title="Colors" files={progressContent.colors} />
### Indeterminate
You can use the `isIndeterminate` prop to display an indeterminate progress bar.
This is useful when you don't know how long an operation will take.
<CodeDemo title="Indeterminate" highlightedLines={7} files={progressContent.indeterminate} />
### Striped
<CodeDemo title="Striped" highlightedLines={6} files={progressContent.striped} />
### With Label
<CodeDemo title="With Label" files={progressContent.label} />
> **Note**: If you pass the `label` prop you don't need to pass `aria-label` prop anymore.
### With Value
<CodeDemo title="With Value" files={progressContent.value} />
### Value Formatting
Values are formatted as a percentage by default, but this can be modified by using the
`formatOptions` prop to specify a different format. `formatOptions` is compatible with the
option parameter of [Intl.NumberFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat) and is applied based on the current locale.
<CodeDemo title="Value Formatting" files={progressContent.valueFormatting} highlightedLines="10" />
## Slots
- **base**: The base slot of the progress, it is the main container.
- **labelWrapper**: The label and value label wrapper.
- **label**: The label of the progress.
- **value**: The value label of the progress.
- **track**: The track is the background bar of the progress.
- **indicator**: The indicator is the bar that is filled according to the `value`.
### Custom Styles
<CodeDemo title="Custom Styles" files={progressContent.customStyles} highlightedLines="9-13" />
## Data Attributes
`CircularProgress` has the following attributes on the `root` element:
- **data-indeterminate**:
Indicates whether the progress is indeterminate.
- **data-disabled**:
Indicates whether the progress is disabled. Based on `isDisabled` prop.
## Accessibility
- Exposed to assistive technology as a progress bar via ARIA.
- Labeling support for accessibility.
- Internationalized number formatting as a percentage or value.
- Determinate and indeterminate progress support.
- Exposes the `aria-valuenow`, `aria-valuemin`, `aria-valuemax` and `aria-valuetext` attributes.
## API
### Circular Progress Props
| Attribute | Type | Description | Default |
| ---------------- | ----------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------- | -------------------- |
| label | `ReactNode` | The content to display as the label. | - |
| size | `xs` \| `sm` \| `md` \| `lg` \| `xl` | The size of the indicator. | `md` |
| color | `default` \| `primary` \| `secondary` \| `success` \| `warning` \| `danger` | The color of the indicator. | `primary` |
| radius | `none` \| `base` \| `sm` \| `md` \| `lg` \| `xl` \| `full` | The progress border radius. | `full` |
| value | `number` | The current value (controlled). | - |
| valueLabel | `ReactNode` | The content to display as the value's label (e.g. 1 of 4). | - |
| minValue | `number` | The smallest value allowed for the input. | `0` |
| maxValue | `number` | The largest value allowed for the input. | `100` |
| formatOptions | [Intl.NumberFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat) | The options to format the value. | `{style: 'percent'}` |
| isIndeterminate | `boolean` | Whether the progress is indeterminate. | `false` |
| isStriped | `boolean` | Whether the progress is striped. | `false` |
| showValueLabel | `boolean` | Whether to show the value label. | `true` |
| isDisabled | `boolean` | Whether the progress is disabled. | `false` |
| disableAnimation | `boolean` | Whether to disable the animation. | `false` |
| classNames | `Record<"base""labelWrapper""label""track""value""track""indicator", string>` | Allows to set custom class names for the progress slots. | - |

View File

@ -1,5 +1,20 @@
# @nextui-org/accordion # @nextui-org/accordion
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
- Updated dependencies
- @nextui-org/use-aria-accordion-item@0.0.0-dev-v2-20230528022407
- @nextui-org/framer-transitions@0.0.0-dev-v2-20230528022407
- @nextui-org/shared-icons@0.0.0-dev-v2-20230528022407
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/aria-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/system@0.0.0-dev-v2-20230528022407
- @nextui-org/theme@0.0.0-dev-v2-20230528022407
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

View File

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

View File

@ -1,5 +1,17 @@
# @nextui-org/avatar # @nextui-org/avatar
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/use-image@0.0.0-dev-v2-20230528022407
- @nextui-org/system@0.0.0-dev-v2-20230528022407
- @nextui-org/theme@0.0.0-dev-v2-20230528022407
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

View File

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

View File

@ -1,5 +1,16 @@
# @nextui-org/badge # @nextui-org/badge
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/system@0.0.0-dev-v2-20230528022407
- @nextui-org/theme@0.0.0-dev-v2-20230528022407
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

View File

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

View File

@ -1,5 +1,19 @@
# @nextui-org/button # @nextui-org/button
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/use-aria-button@0.0.0-dev-v2-20230528022407
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/spinner@0.0.0-dev-v2-20230528022407
- @nextui-org/drip@0.0.0-dev-v2-20230528022407
- @nextui-org/system@0.0.0-dev-v2-20230528022407
- @nextui-org/theme@0.0.0-dev-v2-20230528022407
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

View File

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

View File

@ -1,5 +1,18 @@
# @nextui-org/card # @nextui-org/card
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/use-aria-button@0.0.0-dev-v2-20230528022407
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/drip@0.0.0-dev-v2-20230528022407
- @nextui-org/system@0.0.0-dev-v2-20230528022407
- @nextui-org/theme@0.0.0-dev-v2-20230528022407
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

View File

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

View File

@ -1,5 +1,16 @@
# @nextui-org/checkbox # @nextui-org/checkbox
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/system@0.0.0-dev-v2-20230528022407
- @nextui-org/theme@0.0.0-dev-v2-20230528022407
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

View File

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

View File

@ -1,5 +1,17 @@
# @nextui-org/chip # @nextui-org/chip
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
- Updated dependencies
- @nextui-org/shared-icons@0.0.0-dev-v2-20230528022407
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/system@0.0.0-dev-v2-20230528022407
- @nextui-org/theme@0.0.0-dev-v2-20230528022407
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

View File

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

View File

@ -1,5 +1,16 @@
# @nextui-org/code # @nextui-org/code
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/system@0.0.0-dev-v2-20230528022407
- @nextui-org/theme@0.0.0-dev-v2-20230528022407
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

View File

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

View File

@ -1,5 +1,16 @@
# @nextui-org/divider # @nextui-org/divider
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/system@0.0.0-dev-v2-20230528022407
- @nextui-org/theme@0.0.0-dev-v2-20230528022407
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

View File

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

View File

@ -1,5 +1,16 @@
# @nextui-org/drip # @nextui-org/drip
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/system@0.0.0-dev-v2-20230528022407
- @nextui-org/theme@0.0.0-dev-v2-20230528022407
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

View File

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

View File

@ -1,5 +1,19 @@
# @nextui-org/dropdown # @nextui-org/dropdown
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/aria-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/use-is-mobile@0.0.0-dev-v2-20230528022407
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/popover@0.0.0-dev-v2-20230528022407
- @nextui-org/system@0.0.0-dev-v2-20230528022407
- @nextui-org/theme@0.0.0-dev-v2-20230528022407
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

View File

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

View File

@ -1,5 +1,17 @@
# @nextui-org/image # @nextui-org/image
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/use-image@0.0.0-dev-v2-20230528022407
- @nextui-org/system@0.0.0-dev-v2-20230528022407
- @nextui-org/theme@0.0.0-dev-v2-20230528022407
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

View File

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

View File

@ -1,5 +1,18 @@
# @nextui-org/input # @nextui-org/input
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
- Updated dependencies
- @nextui-org/shared-icons@0.0.0-dev-v2-20230528022407
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/use-aria-field@0.0.0-dev-v2-20230528022407
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/system@0.0.0-dev-v2-20230528022407
- @nextui-org/theme@0.0.0-dev-v2-20230528022407
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

View File

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

View File

@ -1,5 +1,16 @@
# @nextui-org/kbd # @nextui-org/kbd
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/system@0.0.0-dev-v2-20230528022407
- @nextui-org/theme@0.0.0-dev-v2-20230528022407
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

View File

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

View File

@ -1,5 +1,17 @@
# @nextui-org/link # @nextui-org/link
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
- Updated dependencies
- @nextui-org/shared-icons@0.0.0-dev-v2-20230528022407
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/system@0.0.0-dev-v2-20230528022407
- @nextui-org/theme@0.0.0-dev-v2-20230528022407
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

View File

@ -1,6 +1,6 @@
{ {
"name": "@nextui-org/link", "name": "@nextui-org/link",
"version": "0.0.0-dev-v2-20230527161625", "version": "0.0.0-dev-v2-20230528022407",
"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;", "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": [ "keywords": [
"link" "link"

View File

@ -1,5 +1,20 @@
# @nextui-org/modal # @nextui-org/modal
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
- Updated dependencies
- @nextui-org/framer-transitions@0.0.0-dev-v2-20230528022407
- @nextui-org/shared-icons@0.0.0-dev-v2-20230528022407
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/use-aria-button@0.0.0-dev-v2-20230528022407
- @nextui-org/use-disclosure@0.0.0-dev-v2-20230528022407
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/system@0.0.0-dev-v2-20230528022407
- @nextui-org/theme@0.0.0-dev-v2-20230528022407
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

View File

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

View File

@ -1,5 +1,19 @@
# @nextui-org/navbar # @nextui-org/navbar
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
- Updated dependencies
- @nextui-org/use-aria-toggle-button@0.0.0-dev-v2-20230528022407
- @nextui-org/framer-transitions@0.0.0-dev-v2-20230528022407
- @nextui-org/use-scroll-position@0.0.0-dev-v2-20230528022407
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/system@0.0.0-dev-v2-20230528022407
- @nextui-org/theme@0.0.0-dev-v2-20230528022407
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

View File

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

View File

@ -1,5 +1,18 @@
# @nextui-org/pagination # @nextui-org/pagination
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
- Updated dependencies
- @nextui-org/shared-icons@0.0.0-dev-v2-20230528022407
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/use-pagination@0.0.0-dev-v2-20230528022407
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/system@0.0.0-dev-v2-20230528022407
- @nextui-org/theme@0.0.0-dev-v2-20230528022407
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

View File

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

View File

@ -1,5 +1,20 @@
# @nextui-org/popover # @nextui-org/popover
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
- Updated dependencies
- @nextui-org/framer-transitions@0.0.0-dev-v2-20230528022407
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/use-aria-button@0.0.0-dev-v2-20230528022407
- @nextui-org/aria-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/button@0.0.0-dev-v2-20230528022407
- @nextui-org/system@0.0.0-dev-v2-20230528022407
- @nextui-org/theme@0.0.0-dev-v2-20230528022407
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

View File

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

View File

@ -1,5 +1,18 @@
# @nextui-org/progress # @nextui-org/progress
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/use-aria-label@0.0.0-dev-v2-20230528022407
- @nextui-org/use-is-mounted@0.0.0-dev-v2-20230528022407
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/system@0.0.0-dev-v2-20230528022407
- @nextui-org/theme@0.0.0-dev-v2-20230528022407
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

View File

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

View File

@ -33,7 +33,7 @@ const Progress = forwardRef<ProgressProps, "div">((props, ref) => {
) : null} ) : null}
<div className={slots.track({class: classNames?.track})}> <div className={slots.track({class: classNames?.track})}>
<div <div
className={slots.filler({class: classNames?.filler})} className={slots.indicator({class: classNames?.indicator})}
style={{ style={{
transform: `translateX(-${100 - (percentage || 0)}%)`, transform: `translateX(-${100 - (percentage || 0)}%)`,
}} }}

View File

@ -34,7 +34,7 @@ interface Props extends HTMLNextUIProps<"div"> {
* label: "label-classes", * label: "label-classes",
* value: "value-classes", * value: "value-classes",
* track: "track-classes", * track: "track-classes",
* filler: "filler-classes", * indicator: "indicator-classes",
* }} /> * }} />
* ``` * ```
*/ */

View File

@ -1,5 +1,16 @@
# @nextui-org/radio # @nextui-org/radio
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/system@0.0.0-dev-v2-20230528022407
- @nextui-org/theme@0.0.0-dev-v2-20230528022407
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

View File

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

View File

@ -1,5 +1,16 @@
# @nextui-org/skeleton # @nextui-org/skeleton
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/system@0.0.0-dev-v2-20230528022407
- @nextui-org/theme@0.0.0-dev-v2-20230528022407
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

View File

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

View File

@ -1,5 +1,20 @@
# @nextui-org/snippet # @nextui-org/snippet
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
- Updated dependencies
- @nextui-org/shared-icons@0.0.0-dev-v2-20230528022407
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/use-clipboard@0.0.0-dev-v2-20230528022407
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/tooltip@0.0.0-dev-v2-20230528022407
- @nextui-org/button@0.0.0-dev-v2-20230528022407
- @nextui-org/system@0.0.0-dev-v2-20230528022407
- @nextui-org/theme@0.0.0-dev-v2-20230528022407
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

View File

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

View File

@ -1,5 +1,16 @@
# @nextui-org/spacer # @nextui-org/spacer
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/system@0.0.0-dev-v2-20230528022407
- @nextui-org/theme@0.0.0-dev-v2-20230528022407
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

View File

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

View File

@ -1,5 +1,16 @@
# @nextui-org/spinner # @nextui-org/spinner
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/system@0.0.0-dev-v2-20230528022407
- @nextui-org/theme@0.0.0-dev-v2-20230528022407
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

View File

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

View File

@ -1,5 +1,16 @@
# @nextui-org/switch # @nextui-org/switch
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/system@0.0.0-dev-v2-20230528022407
- @nextui-org/theme@0.0.0-dev-v2-20230528022407
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

View File

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

View File

@ -1,5 +1,19 @@
# @nextui-org/table # @nextui-org/table
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
- Updated dependencies
- @nextui-org/shared-icons@0.0.0-dev-v2-20230528022407
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/checkbox@0.0.0-dev-v2-20230528022407
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/spacer@0.0.0-dev-v2-20230528022407
- @nextui-org/system@0.0.0-dev-v2-20230528022407
- @nextui-org/theme@0.0.0-dev-v2-20230528022407
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

View File

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

View File

@ -1,5 +1,19 @@
# @nextui-org/tabs # @nextui-org/tabs
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
- Updated dependencies
- @nextui-org/framer-transitions@0.0.0-dev-v2-20230528022407
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/use-is-mounted@0.0.0-dev-v2-20230528022407
- @nextui-org/aria-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/system@0.0.0-dev-v2-20230528022407
- @nextui-org/theme@0.0.0-dev-v2-20230528022407
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

View File

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

View File

@ -1,5 +1,18 @@
# @nextui-org/tooltip # @nextui-org/tooltip
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
- Updated dependencies
- @nextui-org/framer-transitions@0.0.0-dev-v2-20230528022407
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/aria-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/system@0.0.0-dev-v2-20230528022407
- @nextui-org/theme@0.0.0-dev-v2-20230528022407
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

View File

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

View File

@ -1,5 +1,17 @@
# @nextui-org/user # @nextui-org/user
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
- Updated dependencies
- @nextui-org/shared-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/dom-utils@0.0.0-dev-v2-20230528022407
- @nextui-org/avatar@0.0.0-dev-v2-20230528022407
- @nextui-org/system@0.0.0-dev-v2-20230528022407
- @nextui-org/theme@0.0.0-dev-v2-20230528022407
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

View File

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

View File

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

View File

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

View File

@ -1,5 +1,11 @@
# @nextui-org/system # @nextui-org/system
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

View File

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

View File

@ -1,5 +1,11 @@
# @nextui-org/theme # @nextui-org/theme
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

View File

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

View File

@ -7,7 +7,7 @@ import {tv} from "tailwind-variants";
* *
* @example * @example
* ```js * ```js
* const {base, labelWrapper, label, value, track, filler} = progress({...}) * const {base, labelWrapper, label, value, track, indicator} = progress({...})
* *
* <div className={base()} aria-label="progress" role="progressbar" aria-valuenow={value} aria-valuemin={min} aria-valuemax={max}> * <div className={base()} aria-label="progress" role="progressbar" aria-valuenow={value} aria-valuemin={min} aria-valuemax={max}>
* <div className={labelWrapper()}> * <div className={labelWrapper()}>
@ -15,7 +15,7 @@ import {tv} from "tailwind-variants";
* <span className={value()}>{value}</span> * <span className={value()}>{value}</span>
* </div> * </div>
* <div className={track()}> * <div className={track()}>
* <div className={filler()} style={{width: `${value}%`}} /> * <div className={indicator()} style={{width: `${value}%`}} />
* </div> * </div>
* </div> * </div>
* ``` * ```
@ -28,27 +28,27 @@ const progress = tv(
labelWrapper: "flex justify-between", labelWrapper: "flex justify-between",
value: "", value: "",
track: "z-0 relative bg-default-300/50 overflow-hidden", track: "z-0 relative bg-default-300/50 overflow-hidden",
filler: "h-full", indicator: "h-full",
}, },
variants: { variants: {
color: { color: {
default: { default: {
filler: "bg-default-400", indicator: "bg-default-400",
}, },
primary: { primary: {
filler: "bg-primary", indicator: "bg-primary",
}, },
secondary: { secondary: {
filler: "bg-secondary", indicator: "bg-secondary",
}, },
success: { success: {
filler: "bg-success", indicator: "bg-success",
}, },
warning: { warning: {
filler: "bg-warning", indicator: "bg-warning",
}, },
danger: { danger: {
filler: "bg-danger", indicator: "bg-danger",
}, },
}, },
size: { size: {
@ -81,41 +81,41 @@ const progress = tv(
radius: { radius: {
none: { none: {
track: "rounded-none", track: "rounded-none",
filler: "rounded-none", indicator: "rounded-none",
}, },
base: { base: {
track: "rounded", track: "rounded",
filler: "rounded", indicator: "rounded",
}, },
sm: { sm: {
track: "rounded-sm", track: "rounded-sm",
filler: "rounded-sm", indicator: "rounded-sm",
}, },
md: { md: {
track: "rounded-md", track: "rounded-md",
filler: "rounded-md", indicator: "rounded-md",
}, },
lg: { lg: {
track: "rounded-lg", track: "rounded-lg",
filler: "rounded-lg", indicator: "rounded-lg",
}, },
xl: { xl: {
track: "rounded-xl", track: "rounded-xl",
filler: "rounded-xl", indicator: "rounded-xl",
}, },
full: { full: {
track: "rounded-full", track: "rounded-full",
filler: "rounded-full", indicator: "rounded-full",
}, },
}, },
isStriped: { isStriped: {
true: { true: {
filler: "bg-stripe-gradient bg-[length:1.25rem_1.25rem]", indicator: "bg-stripe-gradient bg-[length:1.25rem_1.25rem]",
}, },
}, },
isIndeterminate: { isIndeterminate: {
true: { true: {
filler: ["absolute", "w-full", "origin-left", "animate-indeterminate-bar"], indicator: ["absolute", "w-full", "origin-left", "animate-indeterminate-bar"],
}, },
}, },
isDisabled: { isDisabled: {
@ -126,7 +126,7 @@ const progress = tv(
disableAnimation: { disableAnimation: {
true: {}, true: {},
false: { false: {
filler: "transition-transform !duration-500", indicator: "transition-transform !duration-500",
}, },
}, },
}, },
@ -145,7 +145,7 @@ const progress = tv(
disableAnimation: true, disableAnimation: true,
isIndeterminate: false, isIndeterminate: false,
class: { class: {
filler: "!transition-none motion-reduce:transition-none", indicator: "!transition-none motion-reduce:transition-none",
}, },
}, },
], ],

View File

@ -1,5 +1,11 @@
# @nextui-org/use-aria-accordion-item # @nextui-org/use-aria-accordion-item
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

View File

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

View File

@ -1,5 +1,11 @@
# @nextui-org/use-aria-button # @nextui-org/use-aria-button
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

View File

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

View File

@ -1,5 +1,14 @@
# @nextui-org/use-aria-field # @nextui-org/use-aria-field
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
- Updated dependencies
- @nextui-org/use-aria-slot-id@0.0.0-dev-v2-20230528022407
- @nextui-org/use-aria-label@0.0.0-dev-v2-20230528022407
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

View File

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

View File

@ -1,5 +1,11 @@
# @nextui-org/use-aria-label # @nextui-org/use-aria-label
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

View File

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

View File

@ -1,5 +1,11 @@
# @nextui-org/use-aria-slot-id # @nextui-org/use-aria-slot-id
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

View File

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

View File

@ -1,5 +1,13 @@
# @nextui-org/use-aria-toggle-button # @nextui-org/use-aria-toggle-button
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
- Updated dependencies
- @nextui-org/use-aria-button@0.0.0-dev-v2-20230528022407
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

View File

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

View File

@ -1,5 +1,13 @@
# @nextui-org/use-callback-ref # @nextui-org/use-callback-ref
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
- Updated dependencies
- @nextui-org/use-safe-layout-effect@0.0.0-dev-v2-20230528022407
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

View File

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

View File

@ -1,5 +1,11 @@
# @nextui-org/use-clipboard # @nextui-org/use-clipboard
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

View File

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

View File

@ -1,5 +1,13 @@
# @nextui-org/use-disclosure # @nextui-org/use-disclosure
## 0.0.0-dev-v2-20230528022407
### Patch Changes
- Progress API improved
- Updated dependencies
- @nextui-org/use-callback-ref@0.0.0-dev-v2-20230528022407
## 0.0.0-dev-v2-20230527161625 ## 0.0.0-dev-v2-20230527161625
### Patch Changes ### Patch Changes

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