Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.4.8 #3765

Merged
merged 227 commits into from
Sep 15, 2024
Merged

v2.4.8 #3765

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
227 commits
Select commit Hold shift + click to select a range
aba1716
chore(root): reat-aria packages updated (#2889)
jrgarciadev Apr 28, 2024
add893c
Merge branch 'canary' of github.com:nextui-org/nextui into canary
jrgarciadev Apr 28, 2024
6aacde2
chore(storybook): common colors enabled (#2902)
jrgarciadev Apr 28, 2024
c83ff38
fix(range-calendar): hide only dates outside the month (#2906)
ShrinidhiUpadhyaya Apr 29, 2024
2a2a069
fix(date-picker): keep date picker style consistent for different var…
wingkwong Apr 29, 2024
5f5ad7a
fix: add missing TableRowProps export (#2866)
sapkra Apr 29, 2024
648edad
fix(input): correct label margin for RTL required inputs (#2781)
mrbadri Apr 29, 2024
f8b917a
docs(core): add storybook and canary release info (#2914)
wingkwong Apr 29, 2024
e3afa47
Cn utility refactor (#2915)
jrgarciadev Apr 29, 2024
91127f8
docs(date-picker): change to jsx instead (#2919)
wingkwong Apr 30, 2024
72a950a
Merge branch 'main' of github.com:nextui-org/nextui into canary
jrgarciadev May 1, 2024
3748abe
Merge branch 'main' of github.com:nextui-org/nextui into canary
jrgarciadev May 2, 2024
9acf3ea
fix(switch): support uncontrolled switch in react-hook-form (#2924)
wingkwong May 3, 2024
c7bdd06
Merge branch 'main' of github.com:nextui-org/nextui into canary
jrgarciadev May 3, 2024
f28b1e9
Merge branch 'canary' of github.com:nextui-org/nextui into canary
jrgarciadev May 3, 2024
ec6fd12
Merge branch 'main' of github.com:nextui-org/nextui into canary
jrgarciadev May 4, 2024
73d9695
refactor(root): react aria packages fixed (#2944)
jrgarciadev May 4, 2024
dc24587
feat(docs): docs changes (#2868)
wingkwong May 4, 2024
76f4dd8
fix(slider): missing marks when hideThumb is true & revise slider sty…
wingkwong May 4, 2024
633f9d2
feat(test): react hook form tests & stories (#2931)
wingkwong May 4, 2024
10497f1
fix: update accordion item heading tag to be customizable (#2265)
outputboy May 13, 2024
5f735a9
fix(theme): add pointer-events-none to skeleton base (#2972)
wingkwong May 13, 2024
e34c5e3
feat(tabs): add `destroyInactiveTabPanel` prop for Tabs component (#2…
wingkwong May 13, 2024
422770c
refactor: add support for disabling the animation globally (#2929)
jrgarciadev May 13, 2024
7af584a
Merge branch 'main' of github.com:nextui-org/nextui into canary
jrgarciadev May 13, 2024
81eeea5
Merge branch 'main' of github.com:nextui-org/nextui into canary
jrgarciadev May 13, 2024
ad08010
fix(theme): remove origin-bottom from button (#2990)
wingkwong May 13, 2024
8988981
fix(skeleton): overflow issue in skeleton (#2986)
wingkwong May 13, 2024
3312d4e
Merge branch 'main' of github.com:nextui-org/nextui into canary
jrgarciadev May 18, 2024
b51cd52
Merge branch 'main' of github.com:nextui-org/nextui into canary
jrgarciadev May 18, 2024
f5bf12a
Merge branch 'main' of github.com:nextui-org/nextui into canary
jrgarciadev May 18, 2024
9d63259
fix(table): v2 input/textarea don't allow spaces inside a table (#3020)
wingkwong May 19, 2024
5329de4
fix(slider): calculate the correct value on mark click (#3017)
wingkwong May 19, 2024
77e85e6
fix(theme): revise input isInvalid styles (#3010)
wingkwong May 19, 2024
ca8554c
feat(date-picker): add missing ref to input wrapper (#3011)
wingkwong May 19, 2024
1109bae
fix(core): incorrect tailwind classnames (#3018)
wingkwong May 19, 2024
7df2c71
fix(dropdown): focus behaviour on press / enter keydown (#2970)
wingkwong May 19, 2024
c8f792c
fix(component): update type definition to prevent primitive values as…
ryo-manba May 19, 2024
a213300
fix(select): onSelectionChange can handle number (#2937)
ryo-manba May 19, 2024
0108d06
fix(calendar): scrolling is hidden when changing the month (#2949)
novsource May 19, 2024
06ecd21
fix: make VisuallyHidden's element type as span when it's inside phra…
kosmotema May 20, 2024
bc75983
docs: sync nextui-cli api (#3035)
winchesHe May 22, 2024
540aa21
feat: switch default validationBehavior to aria and allow switching v…
ryo-manba May 22, 2024
3b14c21
fix: popover-based focus behaviour (#2854)
wingkwong May 24, 2024
8048dcc
fix(components): Fix 'Tap to click' behavior on macOS with Edge/Chrom…
ericfabreu May 24, 2024
bf68c91
fix(date-picker): corrected inert value for true condition (#3054)
ShrinidhiUpadhyaya May 24, 2024
f24a973
fix(hooks): resolve type error in onKeyDown event handler (#3064)
Gaic4o May 24, 2024
07d722d
Update dependency array on setPage useCallback hook (#3029)
jesuzon May 24, 2024
20ba819
fix: error peerDep in pkg (#3014)
winchesHe May 24, 2024
6bbd234
Fix DatePicker Time Input (#2845)
chirokas May 24, 2024
39bc460
fix(date-picker): test
jrgarciadev May 24, 2024
fa26ce0
fix(hooks): optimize useScrollPosition with useCallback and useRef (#…
Gaic4o May 24, 2024
31bfaeb
fix(select): placeholder text display for controlled component (#3081)
ryo-manba May 26, 2024
5194a02
Merge branch 'main' of github.com:nextui-org/nextui into canary
jrgarciadev May 26, 2024
384cf11
chore(docs): v2.4.0 (#3084)
jrgarciadev May 27, 2024
578cf5a
chore(changese): update @nextui-org/react dependency to minor version
jrgarciadev May 27, 2024
59fcfa0
docs: update cli docs (#3096)
winchesHe May 27, 2024
9a2cf47
ci(changesets): version packages (#2903)
github-actions[bot] May 27, 2024
41d2eeb
fix(radio): remove required attribute for Radio with validationBehavi…
ryo-manba May 28, 2024
43bef07
fix(theme): add missing pointer event after data loaded (#3126)
wingkwong May 29, 2024
685995a
fix(system): listbox href issue (experimental) (#3119)
wingkwong May 29, 2024
cdbc651
fix(avatar): avoid passing `disableAnimation` prop to a DOM element (…
wingkwong May 31, 2024
0c10581
fix(docs): removed unused import & corrected prop for disabled DatePi…
ShrinidhiUpadhyaya May 31, 2024
750b466
ci(changesets): version packages (#3115)
github-actions[bot] May 31, 2024
68d1629
fix(pagination): missing animation (#3144)
wingkwong May 31, 2024
be29da1
chore(root): merge branch 'main' of github.com:nextui-org/nextui into…
jrgarciadev May 31, 2024
d9327f9
fix tsup domain (#3158)
egoist Jun 1, 2024
f3fdb7b
chore(docs): remove destroyInactiveTabPanel from Tab due to merge con…
wingkwong Jun 1, 2024
2069a7a
fix(autocomplete): maximum update depth exceeded in autocomplete (#3175)
wingkwong Jun 4, 2024
eae28e4
Merge branch 'main' of github.com:nextui-org/nextui into canary
jrgarciadev Jun 6, 2024
3500147
chore(checkbox): avoid passing non-DOM attributes to svg (#3199)
wingkwong Jun 6, 2024
6df27c6
fix(docs): fix typo in autocomplete documentation page (#3182)
ShiiFu Jun 7, 2024
a0d6a77
fix(select): add missing data-invalid in select and add missing data …
wingkwong Jun 7, 2024
5c83e9c
fix(tabs): destroyInactiveTabPanel unmounts inactive tabs' content (#…
wingkwong Jun 7, 2024
a06422f
fix(select): unset form value after unselecting an item (#3157)
wingkwong Jun 7, 2024
d8ceab3
fix(tabs): set tab panel id correctly (#3246)
ryo-manba Jun 14, 2024
995041a
docs(tooltip): supplement correct style path (#3183)
wingkwong Jun 14, 2024
5b9e317
fix(use-aria-menu): link logic in useMenuItem (#3229)
wingkwong Jun 14, 2024
bea1bde
chore(deps): bump @internationalized/date version (#3230)
wingkwong Jun 14, 2024
dbb4b8e
fix(input): input display with hidden type (#3174)
wingkwong Jun 14, 2024
3da8149
feat(date-picker): add support for DatePicker to apply styles to Date…
ryo-manba Jun 14, 2024
df0126f
refactor(date): updated errorMessage story and modified to import pro…
ryo-manba Jun 15, 2024
0e4213c
Update regex-validation.ts (#3123)
Softwaremanufaktur Jun 15, 2024
255c641
fix(autocomplete): controlled state logic (#2969)
chirokas Jun 15, 2024
b9bb06f
fix(utilities): resolve assignRef TypeScript ref assignment issue (#3…
Gaic4o Jun 15, 2024
75d1223
fix(table): table-column align prop (#2900)
chirokas Jun 15, 2024
be932c1
fix(navbar): fixed the height of navbar menu (#1805)
nozomemein Jun 15, 2024
47c2472
fix: RA dependencies bump (#3240)
wingkwong Jun 15, 2024
571522c
ci(changesets): version packages (#3147)
github-actions[bot] Jun 15, 2024
1e3e970
Merge branch 'main' of github.com:nextui-org/nextui into canary
jrgarciadev Jun 15, 2024
6951b1f
fix(avatar): remove extra `disableAnimation` prop in `getImageProps` …
wingkwong Jun 16, 2024
f785d1f
fix(system-rsc): extendVariants with defaultVariants (#3299)
wingkwong Jun 22, 2024
773f300
fix(date-picker): update calendar classNames in useDateRangePicker (#…
jrgarciadev Jun 22, 2024
e9a6a16
fix(accordion): variants for nested accordions (#3291)
wingkwong Jun 22, 2024
cd0c15d
Merge branch 'main' of github.com:nextui-org/nextui into canary
jrgarciadev Jun 22, 2024
2ce7d74
Merge branch 'main' of github.com:nextui-org/nextui into canary
jrgarciadev Jun 22, 2024
0691630
refactor(.github): nextui version description in bug report template …
wingkwong Jun 22, 2024
edd48a0
chore: add accessible name to the icon button (#3300)
ryo-manba Jun 23, 2024
4218335
fix(radio): ensure radio input correctly references description (#3301)
ryo-manba Jun 23, 2024
720f2f5
refactor(.github): github action warnings (#3317)
wingkwong Jun 25, 2024
78d4216
Merge branch 'main' of github.com:nextui-org/nextui into canary
jrgarciadev Jun 27, 2024
0711b66
fix(doc): migrated ScriptProvider component from the root level to ea…
kuri-sun Jun 29, 2024
f1fd2a8
Merge branch 'main' of github.com:nextui-org/nextui into canary
jrgarciadev Jun 29, 2024
8b0b7e0
refactor(docs): fix international calendar bug (#3363)
deval2498 Jun 29, 2024
9daef56
fix(table): custom with class names storybook styles (#3344)
ankitts Jun 29, 2024
ec7c417
chore(deps): pnpm-lock.yaml (#3372)
wingkwong Jul 3, 2024
106752a
fix(accordion): allow cursor navigation within text (#3419)
ryo-manba Jul 6, 2024
9806d1c
fix(date-range-picker): input field clear error (#3409)
ShrinidhiUpadhyaya Jul 6, 2024
3cdfb2a
fix: remove autoCapitalize to prevent Firefox warning (#3376)
ryo-manba Jul 6, 2024
c5ab49a
fix(user): avatar icon not shown in User component (#3387)
wingkwong Jul 6, 2024
7cc1bd7
fix(select): close select by pressing selector button (#3374)
wingkwong Jul 6, 2024
1cd64b2
fix(select): import HiddenSelect and UseSelectProps (#3368)
ryo-manba Jul 6, 2024
167e197
feat: eslint add rule prefer top level type import (#3354)
winchesHe Jul 6, 2024
fd4b720
fix(calendar): disable button picker in calendar if `isDisabled` is t…
wingkwong Jul 6, 2024
f5d94f9
fix: incorrect year in showMonthAndYearPickers with locale (#3331)
wingkwong Jul 6, 2024
0462dde
fix(popover): dialog focus behaviour (#3311)
wingkwong Jul 6, 2024
9d26d02
refactor(docs): sort component routes alphabetically (#3328)
wingkwong Jul 6, 2024
1671f56
docs(pagination): fix typo of missing "`" in doc (#3324)
wiyco Jul 6, 2024
57f7c95
fix(image): override default auto height (#3327)
wingkwong Jul 6, 2024
b4c046f
fix(table): differentiate selected bg color from striped bg color (#3…
sjoerdvanBommel Jul 6, 2024
a164c26
fix(date-picker): open and close datepicker after pressing selector b…
wingkwong Jul 6, 2024
444d320
fix(popover): close popover on scroll (#3414)
wingkwong Jul 6, 2024
35e709d
fix(navbar): shouldHideOnScroll fixed (#3315)
pratyush3124 Jul 6, 2024
8dce94e
fix(accordion): pass missing `dividerProps` to Divider (#3392)
chirokas Jul 6, 2024
a3a77bf
fix(image): optional height (#3420)
wingkwong Jul 6, 2024
93f1787
fix(input): input with file type (#3268)
wingkwong Jul 6, 2024
5652e7b
fix(date-picker): resolve width clipping issue on 90/110% zoom (#3416)
awesome-pro Jul 6, 2024
0cdfdb4
fix: onSelectionChange type incorrect (#3336)
winchesHe Jul 6, 2024
22682db
Merge branch 'canary' of github.com:nextui-org/nextui into canary
jrgarciadev Jul 7, 2024
60bb09f
fix: tsc errors (#3362)
winchesHe Jul 7, 2024
89ccf17
feat: add tw config to get the intelliSense (#3385)
winchesHe Jul 7, 2024
134f371
fix(datePicker): prevent year, month change in showMonthAndYearPicker…
KumJungMin Jul 8, 2024
9438dfd
fix: add onClear prop to Ripple component in button custom implementa…
ryxxn Jul 12, 2024
2333c39
fix(input): fixed the background change on autofill in Chrome (#3430)
awesome-pro Jul 12, 2024
c1f05ec
fix(time-input): minValue and maxValue validation (#3426)
chirokas Jul 12, 2024
30f0755
fix(docs): incorrect image height (#3427)
wingkwong Jul 12, 2024
6ec494a
docs: removed show more from code example (#3373)
ankitts Jul 12, 2024
049d236
fix(table): resolve double fetch issue in useInfiniteScroll hook (#3332)
abhisektomar1 Jul 12, 2024
b762141
docs(frameworks): update highlighted line numbers in Frameworks examp…
RockerFlower Jul 12, 2024
bbebb79
fix(autocomplete): remove unnecessary state.close (#3464)
wingkwong Jul 16, 2024
e968f54
Merge branch 'canary' of github.com:nextui-org/nextui into canary
jrgarciadev Jul 17, 2024
0071ec2
Merge branch 'main' of github.com:nextui-org/nextui into canary
jrgarciadev Jul 17, 2024
8192e0e
ci(changesets): version packages (#3266)
github-actions[bot] Jul 17, 2024
a41ed42
Merge branch 'main' of github.com:nextui-org/nextui into canary
jrgarciadev Jul 17, 2024
5591138
fix(system-rsc): defaultVariants null case in extendVariants (#3503)
wingkwong Jul 18, 2024
1fdbf2a
fix(date-range-picker): calendar-content width as per visible-months …
awesome-pro Jul 18, 2024
7d61cf3
fix: normalize 'status' field values to lowercase across multiple fil…
codeesura Jul 18, 2024
8b19307
fix(modal): double scrollbar in inside scrollbehaviour (#3495)
awesome-pro Jul 18, 2024
46edcca
fix(table): sortable header slow color change during theme change (#3…
awesome-pro Jul 18, 2024
59428b1
fix(theme): button scaling when disableAnimation is true (#3499)
wingkwong Jul 18, 2024
fbd4f4b
fix(system-rsc): add @react-types/shared to dependencies (#3501)
simPod Jul 18, 2024
4dfe194
build(script): fixing Clean script (#3500)
sandeep36butte Jul 18, 2024
0185952
ci(changesets): version packages (#3507)
github-actions[bot] Jul 18, 2024
cef1122
ci(changesets): version packages (#3508)
github-actions[bot] Jul 18, 2024
2d2d300
feat(chanageset): bump versions (#3512)
wingkwong Jul 19, 2024
f052c34
ci(changesets): version packages (#3513)
github-actions[bot] Jul 19, 2024
e67b028
chore: merged with main
jrgarciadev Jul 21, 2024
e9eb949
Merge branch 'main' of github.com:nextui-org/nextui into canary
jrgarciadev Jul 21, 2024
df765bc
Merge branch 'main' of github.com:nextui-org/nextui into canary
jrgarciadev Jul 22, 2024
710644f
fix(deps): overrides RA utils pkg (#3537)
wingkwong Jul 23, 2024
b806ca4
chore(deps): rollback PR3537 (#3541)
wingkwong Jul 23, 2024
6d9995b
chore(docs): lint sponsors (#3547)
wingkwong Jul 24, 2024
1973864
chore(deps): upgrade pnpm to v9 (#3589)
wingkwong Aug 9, 2024
4f8ae50
fix(dropdown): respect closeOnSelect prop on DropdownItem (#2598)
gtoxlili Aug 16, 2024
2ada285
fix: typo in home page (#3615)
Jay-Karia Aug 29, 2024
e15c43b
docs: fix typo in override styles doc (#3611)
BlueZ-95 Aug 29, 2024
2a34880
docs(storybook): remove overriding and unused code (#3566)
awesome-pro Aug 29, 2024
a254abf
fix(input): sync ref value to internal value (#3533)
AnthonyPaulO Aug 29, 2024
44e89a0
fix(system-rsc): missing StringToBoolean<keyof V[K]>[] (#3559)
awesome-pro Aug 29, 2024
8ec338c
doc(sandpack): improved logic for react import (#3582)
awesome-pro Aug 29, 2024
715cd1d
fix(docs): typo in snippet page (#3555)
hanxiao790 Aug 29, 2024
14e25e1
docs(card, badge): slots section addition (#3580)
awesome-pro Aug 29, 2024
97f233b
fix(theme): double click issue on checkbox, toggle and radio (#3552)
awesome-pro Aug 29, 2024
9d6bcb5
fix(theme): skeleton overflow issue (#3217)
chirokas Aug 29, 2024
3c0a486
fix(link): deprecated onClick warning on using onPress (#3569)
awesome-pro Aug 29, 2024
048de6e
fix(navbar): allow height prop to accept number type and fix broken m…
FacundoTenuta Aug 29, 2024
56f1d68
feat(docs): added tanstack router to the routing section in the docum…
kuri-sun Aug 29, 2024
55c9298
fix(calendar): arrows changing order when html has dir="rtl" (#3656)
ameybh Aug 30, 2024
59ea6b7
chore(theme): export default-layout (#2946)
rockey2020 Aug 31, 2024
3e06ef6
fix(modal): modal position when keyboard appears (#3691)
wingkwong Sep 1, 2024
f36df43
fix(utilities): gregorian year offset for persian (#3603)
wingkwong Sep 1, 2024
3d68655
fix(input): prevent clearable when input is readonly (#3643)
ryxxn Sep 3, 2024
87336c7
fix(docs): changed breakpoint to md (#2630)
ShrinidhiUpadhyaya Sep 3, 2024
26d8f01
fix(docs): added ts example for infinite pagination (#2718)
kuri-sun Sep 4, 2024
eda316a
fix(hooks): ensure exposed functions wrap by `useCallback` (#3607)
AnYiEE Sep 5, 2024
5c8cc7a
fix(select): prevent select from closing instantly when clicking on l…
sohan01fw Sep 5, 2024
19c331b
refactor(popover): use `usePreventScroll` instead of `react-remove-sc…
chirokas Sep 5, 2024
81da063
fix(autocomplete): ignore pointer events when the clear button is hid…
chirokas Sep 5, 2024
123b7fb
refactor(overlays): improve stability, and complexity (#3467)
chirokas Sep 5, 2024
485b865
chore(input): rollback PR3533 (#3720)
wingkwong Sep 6, 2024
60cd878
chore(autocomplete): should blur after clicking outside autocomplete …
wingkwong Sep 6, 2024
46cc019
fix(theme): color discrepancy in select (#3663)
macci001 Sep 7, 2024
324fd6d
fix(listbox): card shadow clipping when inside listbox item (#3486)
awesome-pro Sep 7, 2024
985c2e1
fix(input): added hover and focus to input when label placement is ou…
ShrinidhiUpadhyaya Sep 7, 2024
d621b29
fix(autocomplete): highlight item in `AutocompleteSection` during key…
chirokas Sep 7, 2024
659cdcf
chore: run tests and storybook in StrictMode (#3352)
chirokas Sep 8, 2024
84c1574
fix(root): .nvmrc version (#2795)
atharva-upadhye Sep 8, 2024
f0eb7a6
chore(docs): add global css import to root layout (#2688)
elibullockpapa Sep 8, 2024
f4d16e1
chore(ci): update github action versions (#2439)
robinsmith-source Sep 8, 2024
deb1507
fix(components): improve RTL support for input component (#2038)
amirhhashemi Sep 8, 2024
6f44cd6
fix(components): improve RTL support for select component (#2041)
amirhhashemi Sep 8, 2024
fe30dc8
fix(components): improve RTL support for pagination component (#2044)
amirhhashemi Sep 8, 2024
c2c3534
fix(docs): remove unwanted generic from PaginationItemRenderProps(#3729)
matheusrocha89 Sep 9, 2024
06b97d0
fix(table): improve RTL support for table component (#2097)
amirhhashemi Sep 10, 2024
bc0f72f
fix(theme): use data-hover instead of hover (#2110)
black197 Sep 10, 2024
3ed05ab
chore(docs): update component link (#3737)
wingkwong Sep 10, 2024
4ac7674
fix(system): missing useHref logic (#2943)
wingkwong Sep 10, 2024
5fd001c
refactor(docs): add package manager options (#3731)
macci001 Sep 10, 2024
446a6bf
refactor(deps): remove react copy from react-rsc-utils bundle (#3597)
wingkwong Sep 11, 2024
74792f7
fix(select): missing onChange when there are more than 300 items (#3598)
wingkwong Sep 11, 2024
54bd9cd
fix(theme): update flat variant text colors to be accessible (#3738)
rileybutterfield Sep 11, 2024
142f394
fix(theme): set the min-height of base height to 100dvh where size eq…
HydenLiu Sep 12, 2024
b0728e3
fix(hook): re-attached scroll event behavior in `useScrollPosition` (…
vetan2 Sep 12, 2024
5b5a974
fix(theme): applied tw nested group (#3658)
wingkwong Sep 13, 2024
a6eccbe
fix(docs): Floating components clipping in hero section (#3432)
awesome-pro Sep 14, 2024
def45d4
ci(changesets): version packages (#3662)
github-actions[bot] Sep 14, 2024
4a0739f
fix(docs): missing tw nested groups in docs (#3751)
wingkwong Sep 14, 2024
339a5e7
fix(docs): set shouldBlockScroll to false (#3752)
wingkwong Sep 14, 2024
fccb19f
Merge branch 'main' of github.com:nextui-org/nextui into canary
jrgarciadev Sep 14, 2024
5517a05
chore: undo pr3658 & pr3751 (#3754)
wingkwong Sep 14, 2024
4c01d18
chore: undo pr3307 (#3756)
wingkwong Sep 14, 2024
d67579c
Merge branch 'main' of github.com:nextui-org/nextui into canary
jrgarciadev Sep 15, 2024
324f912
Merge branch 'canary' of github.com:nextui-org/nextui into canary
jrgarciadev Sep 15, 2024
2293884
chore: rollback pr3467 (#3759)
wingkwong Sep 15, 2024
8fecb5a
fix(dropdown): _a2.find is not a function (#3762)
wingkwong Sep 15, 2024
2c9c817
ci(changesets): version packages (#3755)
github-actions[bot] Sep 15, 2024
559436d
fix(theme): ghost danger button style (#3764)
wingkwong Sep 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/witty-socks-bathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nextui-org/theme": patch
---

add missing `data-[hover=true]:` for ghost button with danger color
2 changes: 1 addition & 1 deletion apps/docs/app/examples/perf/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const MyInput = extendVariants(Input, {
"focus-within:bg-zinc-100",
"data-[hover=true]:border-zinc-600",
"data-[hover=true]:bg-zinc-100",
"group-data-[focus=true]/input:border-zinc-600",
"group-data-[focus=true]:border-zinc-600",
// dark theme
"dark:bg-zinc-900",
"dark:border-zinc-800",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ export const FloatingComponents: React.FC<{}> = () => {
content="Developers love Next.js"
isOpen={!isTablet}
placement="top"
shouldBlockScroll={false}
style={{
zIndex: 39,
}}
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/components/theme-switch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const ThemeSwitch: FC<ThemeSwitchProps> = ({className, classNames}) => {
"bg-transparent",
"rounded-lg",
"flex items-center justify-center",
"group-data-[selected=true]/toggle:bg-transparent",
"group-data-[selected=true]:bg-transparent",
"!text-default-600 dark:!text-default-500",
"pt-px",
"px-0",
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-[focus=true]/input:bg-default-200/50",
"dark:group-data-[focus=true]/input:bg-default/60",
"group-data-[focus=true]:bg-default-200/50",
"dark:group-data-[focus=true]:bg-default/60",
"!cursor-text",
],
}}
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/components/select/custom-styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export default function App() {
className="max-w-xs"
variant="bordered"
classNames={{
label: "group-data-[filled=true]/select:-translate-y-5",
label: "group-data-[filled=true]:-translate-y-5",
trigger: "min-h-16",
listboxWrapper: "max-h-[400px]",
}}
Expand Down
8 changes: 4 additions & 4 deletions apps/docs/content/components/switch/custom-styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ export default function App() {
),
wrapper: "p-0 h-4 overflow-visible",
thumb: cn("w-6 h-6 border-2 shadow-lg",
"group-data-[hover=true]/toggle:border-primary",
"group-data-[hover=true]:border-primary",
//selected
"group-data-[selected=true]/toggle:ml-6",
"group-data-[selected=true]:ml-6",
// pressed
"group-data-[pressed=true]/toggle:w-7",
"group-data-[selected]:group-data-[pressed]/toggle:ml-4",
"group-data-[pressed=true]:w-7",
"group-data-[selected]:group-data-[pressed]:ml-4",
),
}}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const MyInput = extendVariants(Input, {
"focus-within:bg-zinc-100",
"data-[hover=true]:border-zinc-600",
"data-[hover=true]:bg-zinc-100",
"group-data-[focus=true]/input:border-zinc-600",
"group-data-[focus=true]:border-zinc-600",
"dark:bg-zinc-900",
"dark:border-zinc-800",
"dark:data-[hover=true]:bg-zinc-900",
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/docs/customization/custom-variants.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const MyInput = extendVariants(Input, {
"focus-within:bg-zinc-100",
"data-[hover=true]:border-zinc-600",
"data-[hover=true]:bg-zinc-100",
"group-data-[focus=true]/input:border-zinc-600",
"group-data-[focus=true]:border-zinc-600",
// dark theme
"dark:bg-zinc-900",
"dark:border-zinc-800",
Expand Down
8 changes: 8 additions & 0 deletions packages/components/accordion/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @nextui-org/accordion

## 2.0.40

### Patch Changes

- Updated dependencies [[`229388422`](https://github.com/nextui-org/nextui/commit/2293884229541e363b1983fea88ba6e3bee6be14)]:
- @nextui-org/[email protected]
- @nextui-org/[email protected]

## 2.0.39

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/components/accordion/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nextui-org/accordion",
"version": "2.0.39",
"version": "2.0.40",
"description": "Collapse display a list of high-level options that can expand/collapse to reveal more information.",
"keywords": [
"react",
Expand Down
15 changes: 15 additions & 0 deletions packages/components/autocomplete/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# @nextui-org/autocomplete

## 2.1.7

### Patch Changes

- [#3759](https://github.com/nextui-org/nextui/pull/3759) [`229388422`](https://github.com/nextui-org/nextui/commit/2293884229541e363b1983fea88ba6e3bee6be14) Thanks [@wingkwong](https://github.com/wingkwong)! - rollback pr3467. rescheduled to v2.5.0.

- Updated dependencies [[`4c01d1824`](https://github.com/nextui-org/nextui/commit/4c01d1824d4dde22d89232968a3a4c48fe04678f), [`229388422`](https://github.com/nextui-org/nextui/commit/2293884229541e363b1983fea88ba6e3bee6be14)]:
- @nextui-org/[email protected]
- @nextui-org/[email protected]
- @nextui-org/[email protected]
- @nextui-org/[email protected]
- @nextui-org/[email protected]
- @nextui-org/[email protected]
- @nextui-org/[email protected]

## 2.1.6

### Patch Changes
Expand Down
3 changes: 2 additions & 1 deletion packages/components/autocomplete/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nextui-org/autocomplete",
"version": "2.1.6",
"version": "2.1.7",
"description": "An autocomplete combines a text input with a listbox, allowing users to filter a list of options to items matching a query.",
"keywords": [
"autocomplete"
Expand Down Expand Up @@ -41,6 +41,7 @@
"react-dom": ">=18"
},
"dependencies": {
"@nextui-org/aria-utils": "workspace:*",
"@nextui-org/button": "workspace:*",
"@nextui-org/input": "workspace:*",
"@nextui-org/listbox": "workspace:*",
Expand Down
4 changes: 4 additions & 0 deletions packages/components/autocomplete/src/use-autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {chain, mergeProps} from "@react-aria/utils";
import {ButtonProps} from "@nextui-org/button";
import {AsyncLoadable, PressEvent} from "@react-types/shared";
import {useComboBox} from "@react-aria/combobox";
import {ariaShouldCloseOnInteractOutside} from "@nextui-org/aria-utils";

interface Props<T> extends Omit<HTMLNextUIProps<"input">, keyof ComboBoxProps<T>> {
/**
Expand Down Expand Up @@ -443,6 +444,9 @@ export function useAutocomplete<T extends object>(originalProps: UseAutocomplete
),
}),
},
shouldCloseOnInteractOutside: popoverProps?.shouldCloseOnInteractOutside
? popoverProps.shouldCloseOnInteractOutside
: (element: Element) => ariaShouldCloseOnInteractOutside(element, inputWrapperRef, state),
// when the popover is open, the focus should be on input instead of dialog
// therefore, we skip dialog focus here
disableDialogFocus: true,
Expand Down
13 changes: 13 additions & 0 deletions packages/components/date-picker/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @nextui-org/date-picker

## 2.1.8

### Patch Changes

- [#3759](https://github.com/nextui-org/nextui/pull/3759) [`229388422`](https://github.com/nextui-org/nextui/commit/2293884229541e363b1983fea88ba6e3bee6be14) Thanks [@wingkwong](https://github.com/wingkwong)! - rollback pr3467. rescheduled to v2.5.0.

- Updated dependencies [[`4c01d1824`](https://github.com/nextui-org/nextui/commit/4c01d1824d4dde22d89232968a3a4c48fe04678f), [`229388422`](https://github.com/nextui-org/nextui/commit/2293884229541e363b1983fea88ba6e3bee6be14)]:
- @nextui-org/[email protected]
- @nextui-org/[email protected]
- @nextui-org/[email protected]
- @nextui-org/[email protected]
- @nextui-org/[email protected]

## 2.1.7

### Patch Changes
Expand Down
3 changes: 2 additions & 1 deletion packages/components/date-picker/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nextui-org/date-picker",
"version": "2.1.7",
"version": "2.1.8",
"description": "A date picker combines a DateInput and a Calendar popover to allow users to enter or select a date and time value.",
"keywords": [
"date-picker"
Expand Down Expand Up @@ -41,6 +41,7 @@
},
"dependencies": {
"@internationalized/date": "^3.5.4",
"@nextui-org/aria-utils": "workspace:*",
"@nextui-org/button": "workspace:*",
"@nextui-org/calendar": "workspace:*",
"@nextui-org/date-input": "workspace:*",
Expand Down
4 changes: 4 additions & 0 deletions packages/components/date-picker/src/use-date-picker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {useDatePickerState} from "@react-stately/datepicker";
import {AriaDatePickerProps, useDatePicker as useAriaDatePicker} from "@react-aria/datepicker";
import {clsx, dataAttr, objectToDeps} from "@nextui-org/shared-utils";
import {mergeProps} from "@react-aria/utils";
import {ariaShouldCloseOnInteractOutside} from "@nextui-org/aria-utils";

import {useDatePickerBase} from "./use-date-picker-base";

Expand Down Expand Up @@ -192,6 +193,9 @@ export function useDatePicker<T extends DateValue>({
),
}),
},
shouldCloseOnInteractOutside: popoverProps?.shouldCloseOnInteractOutside
? popoverProps.shouldCloseOnInteractOutside
: (element: Element) => ariaShouldCloseOnInteractOutside(element, popoverTriggerRef, state),
};
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {useDateRangePicker as useAriaDateRangePicker} from "@react-aria/datepick
import {clsx, dataAttr, objectToDeps} from "@nextui-org/shared-utils";
import {mergeProps} from "@react-aria/utils";
import {dateRangePicker, dateInput, cn} from "@nextui-org/theme";
import {ariaShouldCloseOnInteractOutside} from "@nextui-org/aria-utils";

import {useDatePickerBase} from "./use-date-picker-base";
interface Props<T extends DateValue>
Expand Down Expand Up @@ -214,6 +215,10 @@ export function useDateRangePicker<T extends DateValue>({
props.className,
),
}),
shouldCloseOnInteractOutside: popoverProps?.shouldCloseOnInteractOutside
? popoverProps.shouldCloseOnInteractOutside
: (element: Element) =>
ariaShouldCloseOnInteractOutside(element, popoverTriggerRef, state),
},
} as PopoverProps;
};
Expand Down
13 changes: 13 additions & 0 deletions packages/components/dropdown/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @nextui-org/dropdown

## 2.1.31

### Patch Changes

- [#3762](https://github.com/nextui-org/nextui/pull/3762) [`8fecb5afa`](https://github.com/nextui-org/nextui/commit/8fecb5afa9aabe73e32243ca313f97856da8aa08) Thanks [@wingkwong](https://github.com/wingkwong)! - fixed `_a2.find` is not a function (#3761)

- [#3759](https://github.com/nextui-org/nextui/pull/3759) [`229388422`](https://github.com/nextui-org/nextui/commit/2293884229541e363b1983fea88ba6e3bee6be14) Thanks [@wingkwong](https://github.com/wingkwong)! - rollback pr3467. rescheduled to v2.5.0.

- Updated dependencies [[`4c01d1824`](https://github.com/nextui-org/nextui/commit/4c01d1824d4dde22d89232968a3a4c48fe04678f), [`229388422`](https://github.com/nextui-org/nextui/commit/2293884229541e363b1983fea88ba6e3bee6be14)]:
- @nextui-org/[email protected]
- @nextui-org/[email protected]
- @nextui-org/[email protected]

## 2.1.30

### Patch Changes
Expand Down
49 changes: 48 additions & 1 deletion packages/components/dropdown/__tests__/dropdown.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ describe("Keyboard interactions", () => {
logSpy.mockRestore();
});

it("should respect closeOnSelect setting of DropdownItem", async () => {
it("should respect closeOnSelect setting of DropdownItem (static)", async () => {
const onOpenChange = jest.fn();
const wrapper = render(
<Dropdown onOpenChange={onOpenChange}>
Expand Down Expand Up @@ -831,4 +831,51 @@ describe("Keyboard interactions", () => {
expect(onOpenChange).toBeCalledTimes(2);
});
});

it("should respect closeOnSelect setting of DropdownItem (dynamic)", async () => {
const onOpenChange = jest.fn();
const items = [
{
key: "new",
label: "New file",
},
{
key: "copy",
label: "Copy link",
},
];
const wrapper = render(
<Dropdown onOpenChange={onOpenChange}>
<DropdownTrigger>
<Button data-testid="trigger-test">Trigger</Button>
</DropdownTrigger>
<DropdownMenu aria-label="Actions" items={items}>
{(item) => (
<DropdownItem key={item.key} closeOnSelect={item.key !== "new"}>
{item.label}
</DropdownItem>
)}
</DropdownMenu>
</Dropdown>,
);

let triggerButton = wrapper.getByTestId("trigger-test");

act(() => {
triggerButton.click();
});
expect(onOpenChange).toBeCalledTimes(1);

let menuItems = wrapper.getAllByRole("menuitem");

await act(async () => {
await userEvent.click(menuItems[0]);
expect(onOpenChange).toBeCalledTimes(1);
});

await act(async () => {
await userEvent.click(menuItems[1]);
expect(onOpenChange).toBeCalledTimes(2);
});
});
});
3 changes: 2 additions & 1 deletion packages/components/dropdown/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nextui-org/dropdown",
"version": "2.1.30",
"version": "2.1.31",
"description": "A dropdown displays a list of actions or options that a user can choose.",
"keywords": [
"dropdown"
Expand Down Expand Up @@ -41,6 +41,7 @@
"react-dom": ">=18"
},
"dependencies": {
"@nextui-org/aria-utils": "workspace:*",
"@nextui-org/menu": "workspace:*",
"@nextui-org/popover": "workspace:*",
"@nextui-org/react-utils": "workspace:*",
Expand Down
Loading