Skip to content

Commit dc0bcf1

Browse files
jrgarciadevwingkwongShrinidhiUpadhyayashrinidhi.upadhyayawinchesHe
authored
v2.3.0 [WIP] (#2618)
* refactor(input): input ref test (#2613) * refactor(input): remove duplicate test * refactor(input): remove unncessary waitFor * fix(radio): isRequired & missing warning message in Form (#2597) * fix(radio): avoid overriding required props * fix(radio): merge with domRef * feat(changeset): fixed missing required props and validationMessage * fix(radio): unnecessary mergeRefs * Calendar component 📅 (#2456) * feat(calendar): initial structure * feat(calendar): calendar structure completed, styles in progress * chore(calendar): dark colors adjusted * feat(calendar): styles improved, variants added, animations added with framer motion * chore(calendar): animation changed, shadow improved * chore(calendar): disableAnimation support added as well as weekDays format * feat(calendar): more stories added * chore(calendar): refactor calendar cell styling * feat(calendar): create calendar function added to the root provider * feat(calendar): invalid state and error message added * feat(calendar): calendar picker added, provider modified * feat(root): object.values deps replaced by new func, intersection hoook added, types version unified * feat(calendar): calendar pickers in progress * feat(calendar): calendar pickers added * fix(calendar): year label formatting * chore(calendar): add layout parameter to Calendar stories * feat(calendar): pickers completed, context added * feat(calendar): visibleMonths supported, warnings fixed, tests added * chore(root): changeset * chore(calendar): add topContent and bottomContent props to calendar * feat(calendar): add @nextui-org/radio package and update calendar component * refactor: assigned type(DateValue) to focusedDate(ControlledFocusedVaue) (#2637) Co-authored-by: shrinidhi.upadhyaya <[email protected]> * Range Calendar 📆 (#2634) * feat(calendar): range calendar added, calendar and context adapted * feat(calendar): range calendar stories added * chore(calendar): range calendar tests added * fix(calendar): update calendar styles to adjust to dynamic width * Date Input 🗓️ (#2641) * feat(date-picker): date field component initialized * chore(date-picker): date field renamed to date-input * feat(date-picker): date input completed * chore(date-input): commented code removed * feat(avatar): support slots in AvatarGroup (#2669) * feat: rename newPost to new (#2665) * fix(avatar): spread getAvatarGroupCountProps in avatar count * feat(avatar): support slots in avatarGroup * feat(avatar): support classNames and add getAvatarGroupCountProps * feat(docs): add classNames to avatar group * feat(avatar): add CustomSlots in avatar group * feat(changeset): support slots in avatar group --------- Co-authored-by: winches <[email protected]> * Date Picker Component 🗓️ (#2652) * feat(date-picker): first iteration * chore(date-picker): update date-picker README.md with improved description * feat(date-picker): code organized, integration done * fix(date-picker): min and max value + styles * fix(date-picker): popover offset adn calendar styles * feat(date-picker): stories added * fix(date-picker): calendar width properly handled * feat(date-picker): styles simplified * chore(date-picker): almost all test passing * fix(date-picker): test and styles * chore(date-picker): calendar popover tests added * fix(date-picker): props to be passed to the date-input * TimeInput Component 🕒 (#2672) * feat(time-input): time input added with some stories, tests and date-picker integration missing * feat(time-input): tests added, date-picker integration added, missing stories added * chore(react): missing packages added * chore(time-input): fix stories names * fix(time-input): time value type * fix: date-picker visibleMonth width does not get widen enough (#2703) * DateRangePicker Component 🗓️ (#2682) * chore(date-range-picker): in progress * chore(date-range-picker): in progress * feat(date-input): components separated into multiple pieces to be able to implement the date range picker * feat(date-range-picker): first version of it working * chore(date-picker): hyphen symbol changed * feat(date-range-picker): stories done * fix(range-calendar): styles * docs: Calendar & RangeCalendar (#2686) * feat(docs): add calendar in routes.json * feat(docs): refresh search-meta.json * feat(docs): add calendar examples * feat(docs): calendar content * feat(deps): add @internationalized/date * refactor(docs): remove div wrapper * feat(docs): add calendar doc * fix(docs): calendar presets * fix(docs): preset styles * chore(docs): remove calendar iframe examples * refactor(docs): discard iframe in calendar doc * fix(docs): incorrect DateValue import * feat(docs): include @internationalized/date in live demo scope * feat(docs): add presets description * chore(docs): update search-meta.json * fix(docs): remove DateValue * feat(docs): include reactAriaI18n in react live demo scope * fix(docs): presets import issue * chore(docs): update search-meta.json * feat(docs): add api reference for nextui provider * fix(calendar): ixExpanded typo * feat(docs): add missing props & event * chore(docs): update search-meta.json * chore(docs): update route keywords * chore(docs): revise value style add defaultFocusedValue * chore(docs): remove padding and revise gap * feat(docs): range calendar * chore(docs): update search-meta.json * feat(docs): add reactAriaHook * fix(docs): incorrect component and add storybook and reactAriaHook * fix(docs): incorrect import path * chore(docs): reorder range calendar position in sidebar * chore(Docs): remove custom styles & implementation * chore(docs): remove last item from accessibility * chore(docs): onValueChange -> onChange * feat(docs): add ts example for range calendar * chore(docs): remove unwanted content in range calendar * feat(docs): add ts examples for calendar * chore(docs): update import path * chore(docs): update import path * chore(docs): styles adjusted, routes updated --------- Co-authored-by: Junior Garcia <[email protected]> * docs: TimeInput (#2698) * feat(docs): add time input to routes.json * feat(deps): add @internationalized/date * feat(docs): add @internationalized/date and @react-aria/i18n to code demo scopes * feat(docs): time input contetnt * chore(docs): revise time input examples * feat(docs): time input content * chore(time-input): update description * feat(docs): add ts examples in time-input * chore(docs): revise TimeValue import --------- Co-authored-by: Junior Garcia <[email protected]> * chore(date-picker): exports updated * docs: DatePicker (#2700) * docs: created the doc for datepicker and its examples * docs: regenerate search-meta.json * fix: reverted the unncessary change to Input component * fix: fixed the component-link for date-picker * fix: fixed the component-link for date-picker * fix: added variants section to the doc * fix: made adjustment to the explanations for the props of DatePicker comp --------- Co-authored-by: Junior Garcia <[email protected]> * doc: DateInput (#2711) * docs: created base examples and the document * chore: created search-meta and follow-up fix for each date-input example cases * fix: fixed some example components styles * fix(docs): updated routes.json * fix(docs): fixed typo in the docs * fix: fixed the component-link for date-input * fix: fixed the component-link for date-input * fix: label-placements example flex style adjustment * fix: added variants section to the doc --------- Co-authored-by: HaRuki Kuriwada <[email protected]> Co-authored-by: Junior Garcia <[email protected]> * refactor(theme): units removed, tailwind-variants upgraded (#2713) * fix(theme): units replaced by spacing * fix(select): positioning the label if a description is used (#2553) Co-authored-by: Poli Sour <[email protected]> * Upgrade to new react aria version (#2561) * chore(root): pkg upgraded * fix: type error * fix: build error * chore: update packages from a~d * chore: update packages from i~r * chore: update packages from s~u * chore: update core, hooks, and utilities packages * feat: add support radio group validationBehavior props * fix: validationBehavior default to native * chore: add validationBehavior props in RadioGroup Stories * fix: handling of errorMessage * chore: add support validationBehavior autocomplete * chore: partial support for validation of select * chore: add support validationBehavior checkbox * chore: change validationBehavior default to native * Merge branch 'v.2.3.0' into feat/upgrade-react-aria * fix: validation logic * fix: add default value for autocomplete * chore: add example using error message function * chore: fixed error displayed in storybook * chore: omit validationBehavior from component props * chore: update docs and storybook on validate * fix: pnpm-lock version --------- Co-authored-by: Junior Garcia <[email protected]> * fix(core): build and date input / time input apis * chore(date-picker): omit validation behavior * chore(docs): add missing props to calendar and range calendar * docs: add nextui-cli page (#2714) * docs: add nextui-cli page * docs: update search meta * docs: typo * docs: typo * docs: typo * feat(docs): cli docs done --------- Co-authored-by: Junior Garcia <[email protected]> * chore(docs): add cli commands to installation docs * fix(checkbox): prettier * fix(docs): incorrect cli api references link * doc: DateRangePicker (#2712) * chore: created base for date-range-picker doc * fix: added follow-up story examples to the doc * fix: fixed bugs happening on the doc * fix: fixed bugs happening on the doc * fix(docs): incorrect file path and revise title * fix: component examples style fixes * fix: component presets typo fix * refactor(core): date range picker docs completed, standaline date picker field fixed --------- Co-authored-by: HaRuki Kuriwada <[email protected]> Co-authored-by: աɨռɢӄաօռɢ <[email protected]> Co-authored-by: Junior Garcia <[email protected]> * fix: only two keyframes currently supported with spring and inertia animations (#2596) * chore(deps): bump framer-motion * feat(changeset): fixed framer motion issue * chore(changeset): revise changeset message * chore(deps): update pnpm-lock.yaml * fix: react hook form issue (#2603) * fix(input): pass domRef?.current?.value to controlled state * fix(input): pass domRef?.current?.value to useTextField instead * fix(checkbox): handle RHF case * fix(checkbox): add missing isSelected case * chore(checkbox): update ref type * chore(deps): add @nextui-org/use-safe-layout-effect * chore(deps): update pnpm-lock.yaml * chore(deps): update pnpm-lock.yaml * fix(select): handle RHF case * chore(deps): add @nextui-org/use-safe-layout-effect to select * fix(autocomplete): handle RHF case * chore(deps): add @nextui-org/use-safe-layout-effect to autocomplete * refactor(components): revise comments * feat(changeset): react-hook-form uncontrolled components * chore(deps): pnpm-lock.yaml * fix(input): domRef.current.value has higher precedence * fix(checkbox): set isChecked based on input ref checked * feat(components): tabs component add tabPosition prop (#2398) * feat(components): tabs component add tabPosition prop * fix: review problem change * test: add tabs position vertical test * docs: update changeset * fix(tabs): optimize return of tabs * fix(tabs): rename orientation to placement * fix(tabs): optimize description * chore(docs): routes * fix: isReadOnly in Autocomplete MDX (#2444) * feat(autocomplete): add isReadOnly example * fix(autocomplete): isReadOnly logic in Autocomplete * feat(root): add changeset - fixed isReadOnly logic in Autocomplete * chore(autocomplete component) isReadOnly property demo isReadOnly property demo in website MDX for autocomplete component. * Update apps/docs/content/docs/components/autocomplete.mdx Co-authored-by: Junior Garcia <[email protected]> --------- Co-authored-by: աɨռɢӄաօռɢ <[email protected]> Co-authored-by: Alpha <[email protected]> Co-authored-by: Junior Garcia <[email protected]> * fix(select): only trigger setSelectedKeys when domRef.current.value is true (#2722) * chore(docs): blog changes (#2724) * chore(docs): blog changes * feat(docs): blog improved * chore(blog): draft param added * chore: version changeset added * feat(blog): v2.3.0 almost done * chore(docs): tailwind colors updated, calendar overflow fixed * chore(blog): add presets demo * fix(calendar): overflow on windows * chore(docs): improve popover placements demo * fix(autocomplete): set shouldUseVirtualFocus to false in getListboxProps (#2731) * chore(blog): add cotributors * chore(blog): draft --------- Co-authored-by: աӄա <[email protected]> Co-authored-by: Shrinidhi Upadhyaya <[email protected]> Co-authored-by: shrinidhi.upadhyaya <[email protected]> Co-authored-by: winches <[email protected]> Co-authored-by: HaRuki <[email protected]> Co-authored-by: HaRuki Kuriwada <[email protected]> Co-authored-by: Poli Sour <[email protected]> Co-authored-by: Poli Sour <[email protected]> Co-authored-by: Ryo Matsukawa <[email protected]> Co-authored-by: winches <[email protected]> Co-authored-by: Alpha Xek <[email protected]> Co-authored-by: Alpha <[email protected]>
1 parent aab1f19 commit dc0bcf1

File tree

463 files changed

+29660
-8323
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

463 files changed

+29660
-8323
lines changed

.changeset/clean-poems-divide.md

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
"@nextui-org/react": minor
3+
"@nextui-org/system": minor
4+
"@nextui-org/system-rsc": minor
5+
"@nextui-org/theme": minor
6+
"@nextui-org/accordion": patch
7+
"@nextui-org/autocomplete": patch
8+
"@nextui-org/avatar": patch
9+
"@nextui-org/badge": patch
10+
"@nextui-org/breadcrumbs": patch
11+
"@nextui-org/button": patch
12+
"@nextui-org/calendar": patch
13+
"@nextui-org/card": patch
14+
"@nextui-org/checkbox": patch
15+
"@nextui-org/chip": patch
16+
"@nextui-org/code": patch
17+
"@nextui-org/date-input": patch
18+
"@nextui-org/date-picker": patch
19+
"@nextui-org/divider": patch
20+
"@nextui-org/dropdown": patch
21+
"@nextui-org/image": patch
22+
"@nextui-org/input": patch
23+
"@nextui-org/kbd": patch
24+
"@nextui-org/link": patch
25+
"@nextui-org/listbox": patch
26+
"@nextui-org/menu": patch
27+
"@nextui-org/modal": patch
28+
"@nextui-org/navbar": patch
29+
"@nextui-org/pagination": patch
30+
"@nextui-org/popover": patch
31+
"@nextui-org/progress": patch
32+
"@nextui-org/radio": patch
33+
"@nextui-org/ripple": patch
34+
"@nextui-org/scroll-shadow": patch
35+
"@nextui-org/select": patch
36+
"@nextui-org/skeleton": patch
37+
"@nextui-org/slider": patch
38+
"@nextui-org/snippet": patch
39+
"@nextui-org/spacer": patch
40+
"@nextui-org/spinner": patch
41+
"@nextui-org/switch": patch
42+
"@nextui-org/table": patch
43+
"@nextui-org/tabs": patch
44+
"@nextui-org/tooltip": patch
45+
"@nextui-org/user": patch
46+
"@nextui-org/use-aria-accordion": patch
47+
"@nextui-org/use-aria-accordion-item": patch
48+
"@nextui-org/use-aria-button": patch
49+
"@nextui-org/use-aria-link": patch
50+
"@nextui-org/use-aria-modal-overlay": patch
51+
"@nextui-org/use-aria-multiselect": patch
52+
"@nextui-org/use-aria-toggle-button": patch
53+
"@nextui-org/use-disclosure": patch
54+
"@nextui-org/use-intersection-observer": patch
55+
"@nextui-org/use-is-mobile": patch
56+
"@nextui-org/use-measure": patch
57+
"@nextui-org/use-pagination": patch
58+
"@nextui-org/aria-utils": patch
59+
"@nextui-org/framer-utils": patch
60+
"@nextui-org/react-rsc-utils": patch
61+
"@nextui-org/react-utils": patch
62+
"@nextui-org/shared-icons": patch
63+
"@nextui-org/shared-utils": patch
64+
"@nextui-org/test-utils": patch
65+
---
66+
67+
v2.3.0

.changeset/famous-jobs-wonder.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
"@nextui-org/accordion": patch
3+
"@nextui-org/autocomplete": patch
4+
"@nextui-org/dropdown": patch
5+
"@nextui-org/modal": patch
6+
"@nextui-org/popover": patch
7+
"@nextui-org/ripple": patch
8+
"@nextui-org/select": patch
9+
"@nextui-org/tabs": patch
10+
"@nextui-org/tooltip": patch
11+
"@nextui-org/framer-transitions": patch
12+
---
13+
14+
Fixed the issue where only two keyframes were supported with spring and inertia animations.

.changeset/famous-panthers-know.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@nextui-org/tabs": patch
3+
---
4+
5+
Add placement and isVertical prop

.changeset/fifty-cups-shout.md

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
---
2+
"@nextui-org/react": minor
3+
"@nextui-org/accordion": patch
4+
"@nextui-org/autocomplete": patch
5+
"@nextui-org/avatar": patch
6+
"@nextui-org/badge": patch
7+
"@nextui-org/breadcrumbs": patch
8+
"@nextui-org/button": patch
9+
"@nextui-org/calendar": patch
10+
"@nextui-org/card": patch
11+
"@nextui-org/checkbox": patch
12+
"@nextui-org/chip": patch
13+
"@nextui-org/code": patch
14+
"@nextui-org/divider": patch
15+
"@nextui-org/dropdown": patch
16+
"@nextui-org/image": patch
17+
"@nextui-org/input": patch
18+
"@nextui-org/kbd": patch
19+
"@nextui-org/link": patch
20+
"@nextui-org/listbox": patch
21+
"@nextui-org/menu": patch
22+
"@nextui-org/modal": patch
23+
"@nextui-org/navbar": patch
24+
"@nextui-org/pagination": patch
25+
"@nextui-org/popover": patch
26+
"@nextui-org/progress": patch
27+
"@nextui-org/radio": patch
28+
"@nextui-org/ripple": patch
29+
"@nextui-org/scroll-shadow": patch
30+
"@nextui-org/select": patch
31+
"@nextui-org/skeleton": patch
32+
"@nextui-org/slider": patch
33+
"@nextui-org/snippet": patch
34+
"@nextui-org/spacer": patch
35+
"@nextui-org/spinner": patch
36+
"@nextui-org/switch": patch
37+
"@nextui-org/table": patch
38+
"@nextui-org/tabs": patch
39+
"@nextui-org/tooltip": patch
40+
"@nextui-org/user": patch
41+
"@nextui-org/system": patch
42+
"@nextui-org/system-rsc": patch
43+
"@nextui-org/theme": patch
44+
"@nextui-org/use-aria-accordion": patch
45+
"@nextui-org/use-aria-accordion-item": patch
46+
"@nextui-org/use-aria-button": patch
47+
"@nextui-org/use-aria-link": patch
48+
"@nextui-org/use-aria-modal-overlay": patch
49+
"@nextui-org/use-aria-multiselect": patch
50+
"@nextui-org/use-aria-press": patch
51+
"@nextui-org/use-aria-toggle-button": patch
52+
"@nextui-org/use-callback-ref": patch
53+
"@nextui-org/use-clipboard": patch
54+
"@nextui-org/use-data-scroll-overflow": patch
55+
"@nextui-org/use-disclosure": patch
56+
"@nextui-org/use-image": patch
57+
"@nextui-org/use-infinite-scroll": patch
58+
"@nextui-org/use-intersection-observer": patch
59+
"@nextui-org/use-is-mobile": patch
60+
"@nextui-org/use-is-mounted": patch
61+
"@nextui-org/use-measure": patch
62+
"@nextui-org/use-pagination": patch
63+
"@nextui-org/use-real-shape": patch
64+
"@nextui-org/use-ref-state": patch
65+
"@nextui-org/use-resize": patch
66+
"@nextui-org/use-safe-layout-effect": patch
67+
"@nextui-org/use-scroll-position": patch
68+
"@nextui-org/use-ssr": patch
69+
"@nextui-org/use-update-effect": patch
70+
"@nextui-org/aria-utils": patch
71+
"@nextui-org/framer-utils": patch
72+
"@nextui-org/react-rsc-utils": patch
73+
"@nextui-org/react-utils": patch
74+
"@nextui-org/shared-icons": patch
75+
"@nextui-org/shared-utils": patch
76+
"@nextui-org/stories-utils": patch
77+
"@nextui-org/test-utils": patch
78+
---
79+
80+
- Calendar component added
81+
- objectToDeps function applied all across components
82+
- `useMeasure` hook added
83+
- `useIntersectionObserver` hook added
84+
- `framer-transitions` renamed to `framer-utils`
85+
- `ResizablePanel` component added to `framer-utils`
86+
- `test-utils` updated

.changeset/forty-ants-promise.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@nextui-org/avatar": patch
3+
"@nextui-org/theme": patch
4+
---
5+
6+
Support slots in AvatarGroup

.changeset/giant-carrots-reply.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@nextui-org/select": patch
3+
---
4+
5+
Fixed the bug of positioning the label in the `Select` component if the description field was used

.changeset/many-ways-laugh.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"@nextui-org/autocomplete": patch
3+
"@nextui-org/checkbox": patch
4+
"@nextui-org/input": patch
5+
"@nextui-org/select": patch
6+
---
7+
8+
Fixed react-hook-form uncontrolled components (#1969)

.changeset/sour-actors-juggle.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@nextui-org/autocomplete": patch
3+
---
4+
5+
Fixed autocomplete listbox keyboard navigation (#2680)

.changeset/thirty-islands-trade.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@nextui-org/radio": patch
3+
---
4+
5+
Fixed missing required props and validationMessage

apps/docs/app/blog/[slug]/page.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {format, parseISO} from "date-fns";
77
import NextLink from "next/link";
88
import {Balancer} from "react-wrap-balancer";
99

10+
import {__DEV__, __PREVIEW__} from "@/utils";
1011
import {MDXContent} from "@/components/mdx-content";
1112
import {siteConfig} from "@/config/site";
1213
import {Route} from "@/libs/docs/page";
@@ -18,6 +19,8 @@ interface BlogPostProps {
1819
};
1920
}
2021

22+
const isDraftVisible = __DEV__ || __PREVIEW__;
23+
2124
async function getBlogPostFromParams({params}: BlogPostProps) {
2225
const slug = params.slug || "";
2326
const post = allBlogPosts.find((post) => post.slugAsParams === slug);
@@ -78,7 +81,7 @@ export async function generateStaticParams(): Promise<BlogPostProps["params"][]>
7881
export default async function DocPage({params}: BlogPostProps) {
7982
const {post} = await getBlogPostFromParams({params});
8083

81-
if (!post) {
84+
if (!post || (post.draft && !isDraftVisible)) {
8285
notFound();
8386
}
8487

@@ -96,6 +99,7 @@ export default async function DocPage({params}: BlogPostProps) {
9699
<ChevronRightLinearIcon className="rotate-180 inline-block mr-1" size={15} />
97100
Back to blog
98101
</Link>
102+
99103
<time className="block text-small mb-2 text-default-500" dateTime={post.date}>
100104
{format(parseISO(post.date), "LLLL d, yyyy")}
101105
</time>
@@ -119,6 +123,7 @@ export default async function DocPage({params}: BlogPostProps) {
119123
</div>
120124
<h1 className="mb-2 font-bold text-4xl">
121125
<Balancer>{post.title}</Balancer>
126+
<strong className="text-default-300">{post?.draft && " (Draft)"}</strong>
122127
</h1>
123128
<MDXContent code={post.body.code} />
124129
</div>

0 commit comments

Comments
 (0)