Skip to content

Commit

Permalink
Merge branch 'canary' into feat/eng-707
Browse files Browse the repository at this point in the history
  • Loading branch information
wingkwong committed May 17, 2024
2 parents 08281f6 + 8988981 commit a3e219b
Show file tree
Hide file tree
Showing 159 changed files with 831 additions and 394 deletions.
5 changes: 5 additions & 0 deletions .changeset/heavy-hairs-join.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nextui-org/accordion": patch
---

Make the accordion item heading tag customizable to satisfy a11y needs. Headings on web pages need to be consistent and semantic; this will help all users better find the content they are looking for. (#2950)
5 changes: 5 additions & 0 deletions .changeset/honest-pianos-sleep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nextui-org/theme": patch
---

remove unnecessary origin-bottom in button
6 changes: 6 additions & 0 deletions .changeset/mean-parrots-cheat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@nextui-org/tabs": patch
"@nextui-org/theme": patch
---

Add `destroyInactiveTabPanel` prop for Tabs component (#1562)
40 changes: 40 additions & 0 deletions .changeset/seven-bears-vanish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
"@nextui-org/accordion": patch
"@nextui-org/autocomplete": patch
"@nextui-org/avatar": patch
"@nextui-org/badge": patch
"@nextui-org/breadcrumbs": patch
"@nextui-org/button": patch
"@nextui-org/calendar": patch
"@nextui-org/card": patch
"@nextui-org/checkbox": patch
"@nextui-org/date-input": patch
"@nextui-org/date-picker": patch
"@nextui-org/dropdown": patch
"@nextui-org/image": patch
"@nextui-org/input": patch
"@nextui-org/link": patch
"@nextui-org/listbox": patch
"@nextui-org/menu": patch
"@nextui-org/modal": patch
"@nextui-org/navbar": patch
"@nextui-org/pagination": patch
"@nextui-org/popover": patch
"@nextui-org/progress": patch
"@nextui-org/radio": patch
"@nextui-org/ripple": patch
"@nextui-org/select": patch
"@nextui-org/skeleton": patch
"@nextui-org/slider": patch
"@nextui-org/snippet": patch
"@nextui-org/switch": patch
"@nextui-org/table": patch
"@nextui-org/tabs": patch
"@nextui-org/tooltip": patch
"@nextui-org/react": patch
"@nextui-org/system": patch
"@nextui-org/theme": patch
"@nextui-org/framer-utils": patch
---

Add support for disabling the animations globally.
5 changes: 5 additions & 0 deletions .changeset/slow-mice-act.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nextui-org/theme": patch
---

add pointer-events-none to skeleton base (#1714)
5 changes: 5 additions & 0 deletions .changeset/wicked-planets-float.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nextui-org/theme": patch
---

set overflow visible after skeleton loaded (#2125)
6 changes: 4 additions & 2 deletions apps/docs/config/routes.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@
"key": "badge",
"title": "Badge",
"keywords": "badge, markers, status indication, count display",
"path": "/docs/components/badge.mdx"
"path": "/docs/components/badge.mdx",
"updated": true
},
{
"key": "button",
Expand Down Expand Up @@ -334,7 +335,8 @@
"key": "skeleton",
"title": "Skeleton",
"keywords": "skeleton, loading state, placeholder, content preview",
"path": "/docs/components/skeleton.mdx"
"path": "/docs/components/skeleton.mdx",
"updated": true
},
{
"key": "snippet",
Expand Down
4 changes: 2 additions & 2 deletions apps/docs/content/components/input/custom-styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ export default function App() {
"backdrop-saturate-200",
"hover:bg-default-200/70",
"dark:hover:bg-default/70",
"group-data-[focused=true]:bg-default-200/50",
"dark:group-data-[focused=true]:bg-default/60",
"group-data-[focus=true]:bg-default-200/50",
"dark:group-data-[focus=true]:bg-default/60",
"!cursor-text",
],
}}
Expand Down
33 changes: 17 additions & 16 deletions apps/docs/content/docs/components/accordion.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Accordion display a list of high-level options that can expand/collapse to revea
<PackageManagers
showGlobalInstallWarning
commands={{
cli: "nextui add accordion",
cli: "npx nextui-cli@latest add accordion",
npm: "npm install @nextui-org/accordion",
yarn: "yarn add @nextui-org/accordion",
pnpm: "pnpm add @nextui-org/accordion",
Expand Down Expand Up @@ -220,21 +220,22 @@ Here's an example of how to customize the accordion styles:

### Accordion Item Props

| Attribute | Type | Description | Default |
| ------------------------- | ------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ------- |
| children | `ReactNode` \| `string` | The content of the component. | |
| title | `ReactNode` \| `string` | The accordion item title. | |
| subtitle | `ReactNode` \| `string` | The accordion item subtitle. | |
| indicator | [IndicatorProps](#accordion-item-indicator-props) | The accordion item `expanded` indicator, usually an arrow icon. | |
| startContent | `ReactNode` | The accordion item start content, usually an icon or avatar. | |
| motionProps | [MotionProps](#motion-props) | The props to modify the framer motion animation. Use the `variants` API to create your own animation. | |
| isCompact | `boolean` | Whether the AccordionItem is compact. | `false` |
| isDisabled | `boolean` | The current disabled status. | `false` |
| keepContentMounted | `boolean` | Whether the AccordionItem content is kept mounted when closed. | `false` |
| hideIndicator | `boolean` | Whether the AccordionItem indicator is hidden. | `false` |
| disableAnimation | `boolean` | Whether the AccordionItem animation is disabled. | `false` |
| disableIndicatorAnimation | `boolean` | Whether the AccordionItem indicator animation is disabled. | `false` |
| classNames | [Classnames](#accordion-item-classnames) | Allows to set custom class names for the accordion item slots. | - |
| Attribute | Type | Description | Default |
|---------------------------|---------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------|---------|
| children | `ReactNode` \| `string` | The content of the component. | |
| title | `ReactNode` \| `string` | The accordion item title. | |
| subtitle | `ReactNode` \| `string` | The accordion item subtitle. | |
| indicator | [IndicatorProps](#accordion-item-indicator-props) | The accordion item `expanded` indicator, usually an arrow icon. | |
| startContent | `ReactNode` | The accordion item start content, usually an icon or avatar. | |
| motionProps | [MotionProps](#motion-props) | The props to modify the framer motion animation. Use the `variants` API to create your own animation. | |
| isCompact | `boolean` | Whether the AccordionItem is compact. | `false` |
| isDisabled | `boolean` | The current disabled status. | `false` |
| keepContentMounted | `boolean` | Whether the AccordionItem content is kept mounted when closed. | `false` |
| hideIndicator | `boolean` | Whether the AccordionItem indicator is hidden. | `false` |
| disableAnimation | `boolean` | Whether the AccordionItem animation is disabled. | `false` |
| disableIndicatorAnimation | `boolean` | Whether the AccordionItem indicator animation is disabled. | `false` |
| HeadingComponent | `React.ElementType` | Customizable heading tag for Web accessibility. Use headings to describe content and use them consistently and semantically. | `h2` |
| classNames | [Classnames](#accordion-item-classnames) | Allows to set custom class names for the accordion item slots. | - |

### Accordion Item Events

Expand Down
5 changes: 1 addition & 4 deletions apps/docs/content/docs/components/autocomplete.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ An autocomplete combines a text input with a listbox, allowing users to filter a
<PackageManagers
showGlobalInstallWarning
commands={{
cli: "nextui add autocomplete",
cli: "npx nextui-cli@latest add autocomplete",
npm: "npm install @nextui-org/autocomplete",
yarn: "yarn add @nextui-org/autocomplete",
pnpm: "pnpm add @nextui-org/autocomplete",
Expand Down Expand Up @@ -210,7 +210,6 @@ The following example shows how you would create a controlled `Autocomplete`, co
We recommend using the `useFilter` hook from [@react-aria/i18n](https://react-spectrum.adobe.com/react-aria/useFilter.html#usefilter) to manage the filtering of the items.

<PackageManagers
showGlobalInstallWarning
commands={{
npm: "npm install @react-aria/i18n",
yarn: "yarn add @react-aria/i18n",
Expand Down Expand Up @@ -259,7 +258,6 @@ Autocomplete supports asynchronous filtering, in the example below we are using
from [react-aria](https://react-spectrum.adobe.com) to handle asynchronous loading and filtering of data from a server.

<PackageManagers
showGlobalInstallWarning
commands={{
npm: "npm install @react-stately/data",
yarn: "yarn add @react-stately/data",
Expand Down Expand Up @@ -288,7 +286,6 @@ Autocomplete supports asynchronous loading, in the example below we are using a
The `isLoading` prop is used to show a loading indicator instead of the selector icon when the data is being fetched.

<PackageManagers
showGlobalInstallWarning
commands={{
npm: "npm install @nextui-org/use-infinite-scroll",
yarn: "yarn add @nextui-org/use-infinite-scroll",
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/docs/components/avatar.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The Avatar component is used to represent a user, and displays the profile pictu
<PackageManagers
showGlobalInstallWarning
commands={{
cli: "nextui add avatar",
cli: "npx nextui-cli@latest add avatar",
npm: "npm install @nextui-org/avatar",
yarn: "yarn add @nextui-org/avatar",
pnpm: "pnpm add @nextui-org/avatar",
Expand Down
4 changes: 2 additions & 2 deletions apps/docs/content/docs/components/badge.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {badgeContent} from "@/content/components/badge";

Badges are used as a small numerical value or status descriptor for UI elements.

<ComponentLinks component="badge" rscCompatible />
<ComponentLinks component="badge" />

---

Expand All @@ -20,7 +20,7 @@ Badges are used as a small numerical value or status descriptor for UI elements.
<PackageManagers
showGlobalInstallWarning
commands={{
cli: "nextui add badge",
cli: "npx nextui-cli@latest add badge",
npm: "npm install @nextui-org/badge",
yarn: "yarn add @nextui-org/badge",
pnpm: "pnpm add @nextui-org/badge",
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/docs/components/breadcrumbs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Breadcrumbs display a hierarchy of links to the current page or resource in an a
<PackageManagers
showGlobalInstallWarning
commands={{
cli: "nextui add breadcrumbs",
cli: "npx nextui-cli@latest add breadcrumbs",
npm: "npm install @nextui-org/breadcrumbs",
yarn: "yarn add @nextui-org/breadcrumbs",
pnpm: "pnpm add @nextui-org/breadcrumbs",
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/docs/components/button.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Buttons allow users to perform actions and choose with a single tap.
<PackageManagers
showGlobalInstallWarning
commands={{
cli: "nextui add button",
cli: "npx nextui-cli@latest add button",
npm: "npm install @nextui-org/button",
yarn: "yarn add @nextui-org/button",
pnpm: "pnpm add @nextui-org/button",
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/docs/components/calendar.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ A calendar consists of a grouping element containing one or more date grids (e.g
<PackageManagers
showGlobalInstallWarning
commands={{
cli: "nextui add calendar",
cli: "npx nextui-cli@latest add calendar",
npm: "npm install @nextui-org/calendar",
yarn: "yarn add @nextui-org/calendar",
pnpm: "pnpm add @nextui-org/calendar",
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/docs/components/card.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Card is a container for text, photos, and actions in the context of a single sub
<PackageManagers
showGlobalInstallWarning
commands={{
cli: "nextui add card",
cli: "npx nextui-cli@latest add card",
npm: "npm install @nextui-org/card",
yarn: "yarn add @nextui-org/card",
pnpm: "pnpm add @nextui-org/card",
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/docs/components/checkbox-group.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ A CheckboxGroup allows users to select one or more items from a list of choices.
<PackageManagers
showGlobalInstallWarning
commands={{
cli: "nextui add checkbox",
cli: "npx nextui-cli@latest add checkbox",
npm: "npm install @nextui-org/checkbox",
yarn: "yarn add @nextui-org/checkbox",
pnpm: "pnpm add @nextui-org/checkbox",
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/docs/components/checkbox.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Checkboxes allow users to select multiple items from a list of individual items,
<PackageManagers
showGlobalInstallWarning
commands={{
cli: "nextui add checkbox",
cli: "npx nextui-cli@latest add checkbox",
npm: "npm install @nextui-org/checkbox",
yarn: "yarn add @nextui-org/checkbox",
pnpm: "pnpm add @nextui-org/checkbox",
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/docs/components/chip.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ A Chip is a small block of essential information that represent an input, attrib
<PackageManagers
showGlobalInstallWarning
commands={{
cli: "nextui add chip",
cli: "npx nextui-cli@latest add chip",
npm: "npm install @nextui-org/chip",
yarn: "yarn add @nextui-org/chip",
pnpm: "pnpm add @nextui-org/chip",
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/docs/components/circular-progress.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Circular progress indicators are utilized to indicate an undetermined wait perio
<PackageManagers
showGlobalInstallWarning
commands={{
cli: "nextui add progress",
cli: "npx nextui-cli@latest add progress",
npm: "npm install @nextui-org/progress",
yarn: "yarn add @nextui-org/progress",
pnpm: "pnpm add @nextui-org/progress",
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/docs/components/code.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Code is a component used to display inline code.
<PackageManagers
showGlobalInstallWarning
commands={{
cli: "nextui add code",
cli: "npx nextui-cli@latest add code",
npm: "npm install @nextui-org/code",
yarn: "yarn add @nextui-org/code",
pnpm: "pnpm add @nextui-org/code",
Expand Down
8 changes: 1 addition & 7 deletions apps/docs/content/docs/components/date-input.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Each part of a date value is displayed in an individually editable segment.
<PackageManagers
showGlobalInstallWarning
commands={{
cli: "nextui add date-input",
cli: "npx nextui-cli@latest add date-input",
npm: "npm install @nextui-org/date-input",
yarn: "yarn add @nextui-org/date-input",
pnpm: "pnpm add @nextui-org/date-input",
Expand Down Expand Up @@ -99,7 +99,6 @@ and time zone concerns such as daylight saving time are taken into account when
in multiple formats into `ZonedDateTime` objects.

<PackageManagers
showGlobalInstallWarning
commands={{
npm: "npm install @internationalized/date",
yarn: "yarn add @internationalized/date",
Expand All @@ -125,7 +124,6 @@ and `CalendarDateTime` and `ZonedDateTime` values are displayed with "minute" gr
in multiple formats into `ZonedDateTime` objects.

<PackageManagers
showGlobalInstallWarning
commands={{
npm: "npm install @internationalized/date @react-aria/i18n",
yarn: "yarn add @internationalized/date @react-aria/i18n",
Expand All @@ -150,7 +148,6 @@ The minValue and maxValue props can also be used to ensure the value is within a
in multiple formats into `ZonedDateTime` objects.

<PackageManagers
showGlobalInstallWarning
commands={{
npm: "npm install @internationalized/date",
yarn: "yarn add @internationalized/date",
Expand All @@ -175,7 +172,6 @@ passed to the [I18nProvider](https://react-spectrum.adobe.com/react-aria/I18nPro
in multiple formats into `ZonedDateTime` objects.

<PackageManagers
showGlobalInstallWarning
commands={{
npm: "npm install @internationalized/date @react-aria/i18n",
yarn: "yarn add @internationalized/date @react-aria/i18n",
Expand All @@ -199,7 +195,6 @@ However, if this is displayed elsewhere or implicit based on the usecase, it can
in multiple formats into `ZonedDateTime` objects.

<PackageManagers
showGlobalInstallWarning
commands={{
npm: "npm install @internationalized/date",
yarn: "yarn add @internationalized/date",
Expand All @@ -223,7 +218,6 @@ This example forces DateInput to use 24-hour time, regardless of the locale.
in multiple formats into `ZonedDateTime` objects.

<PackageManagers
showGlobalInstallWarning
commands={{
npm: "npm install @internationalized/date",
yarn: "yarn add @internationalized/date",
Expand Down

0 comments on commit a3e219b

Please sign in to comment.