Junior Garcia
1091377e4d
chore: add all minor releases
2024-11-04 18:34:15 -03:00
Shrinidhi Upadhyaya
a5cac45619
fix(theme): added stripe color gradients for progress ( #3938 )
...
* fix(breadcrumbs): added separator rotation for RTL #2486
* chore(changeset): added changeset
* fix(docs): removed unused Link import and merged classnames in dropdown
* fix(theme):added stripe color gradients for progress #1933
* refactor(theme): added stripe-size and createStripeGradient
2024-11-04 18:31:56 -03:00
աӄա
2aebfcca59
refactor(menu): Use useMenu and useMenuItem from RA ( #3261 )
...
* refactor(menu): use useMenu from react-aria instead
* refactor(menu): use useMenuItem from react-aria instead
* feat(changeset): add changeset
* chore: merged with canary
* fix: dropdown tests
---------
Co-authored-by: Junior Garcia <jrgarciadev@gmail.com>
2024-11-04 18:09:03 -03:00
Junior Garcia
90cb5b14ab
Fix/avatar flashing ( #3987 )
...
* fix(use-image): cached image flashing
* chore: merged with canary
---------
Co-authored-by: Rakha Kanz Kautsar <rkkautsar@gmail.com>
2024-11-04 17:57:28 -03:00
աӄա
ad7e2615d3
feat(hooks): use-theme hook ( #3169 )
...
* feat(docs): update dark mode content
* feat(hooks): @nextui-org/use-theme
* chore(docs): revise ThemeSwitcher code
* refactor(hooks): simplify useTheme and support custom theme names
* feat(hooks): add use-theme test cases
* feat(changeset): add changeset
* refactor(hooks): make localStorageMock globally and clear before each test
* fix(docs): typo
* fix(hooks): coderabbitai comments
* chore(hooks): remove unnecessary +
* chore(changeset): change to minor
* feat(hooks): handle system theme
* chore(hooks): add EOL
* refactor(hooks): add default theme
* refactor(hooks): revise useTheme
* refactor(hooks): resolve pr comments
* refactor(hooks): resolve pr comments
* refactor(hooks): resolve pr comments
* refactor(hooks): remove unused theme in dependency array
* chore(docs): typos
* refactor(hooks): mark system as key for system theme
* chore: merged with canary
---------
Co-authored-by: Junior Garcia <jrgarciadev@gmail.com>
2024-11-04 17:53:04 -03:00
աӄա
3f0d81b560
refactor: optimisations ( #3523 )
...
* refactor: replace lodash with native approaches
* refactor(deps): update framer-motion versions
* feat(utilities): add @nextui-org/dom-animation
* refactor(components): load domAnimation dynamically
* refactor(deps): add @nextui-org/dom-animation
* fix(utilities): relocate index.ts
* feat(changeset): framer motion optimization
* chore(deps): bump framer-motion version
* fix(docs): conflict issue
* refactor(hooks): remove the unnecessary this aliasing
* refactor(utilities): remove the unnecessary this aliasing
* chore(docs): remove {} so that it won't be true all the time
* chore(dom-animation): end with new line
* refactor(hooks): use debounce from `@nextui-org/shared-utils`
* chore(deps): add `@nextui-org/shared-utils`
* refactor: move mapKeys logic to `@nextui-org/shared-utils`
* refactor: use `get` from `@nextui-org/shared-utils`
* refactor(docs): use `get` from `@nextui-org/shared-utils`
* refactor(shared-utils): mapKeys
* chore(deps): bump framer-motion version
* chore(deps): remove lodash
* refactor(docs): use intersectionBy from shared-utils
* feat(shared-utils): add intersectionBy
* chore(dom-animation): remove extra blank line
* refactor(shared-utils): revise intersectionBy
* fix(modal): add willChange
* refactor(shared-utils): add comments
* fix: build & tests
---------
Co-authored-by: Junior Garcia <jrgarciadev@gmail.com>
2024-11-04 17:47:43 -03:00
Junior Garcia
58a77cb6b9
feat: added drawer component ( #3986 )
...
Signed-off-by: The1111mp <The1111mp@outlook.com>
Co-authored-by: The1111mp <The1111mp@outlook.com>
2024-11-04 17:20:46 -03:00
աӄա
ae73de1a61
chore(deps): bump tailwind-merge version ( #3657 )
...
* chore(deps): bump tailwind-merge versions
* chore(theme): adopt latest extendTailwindMerge
* chore(changeset): add changeset
* chore(changeset): change to minor
* Update .changeset/grumpy-mayflies-rhyme.md
---------
Co-authored-by: Junior Garcia <jrgarciadev@gmail.com>
2024-11-04 17:20:01 -03:00
Ryo Matsukawa
a4a1d8fb69
feat: add month and year pickers to DateRangePicker and RangeCalendar ( #3302 )
...
* feat: add month and year pickers to DateRangePicker and RangeCalendar
* chore: update docs
* Update .changeset/kind-cobras-travel.md
* chore: react package version
---------
Co-authored-by: Junior Garcia <jrgarciadev@gmail.com>
2024-11-04 15:27:24 -03:00
Abhinandan
9f6839faf9
feat(popover): added control for closing popover on scroll ( #3595 )
...
* fix(navbar): fixed the height when style h-full
* fix(navbar): fixed the height when style h-full
* docs(changeset): resolved extra file
* feat(popover): added control for closing popover on scroll
* update(changeset): correction
* feat(popover): removed extra story
* refactor(test): corrected test for both true and false values of shouldCloseOnScroll
* refactor(docs): added shouldCloseOnScroll prop
* chore(changeset): change to minor
---------
Co-authored-by: աӄա <wingkwong.code@gmail.com>
2024-11-04 12:25:30 -03:00
աӄա
80f6cf5a7b
feat: pre-release workflow ( #2910 )
...
* feat(workflow): pre-release
* feat(workflow): exit pre-release
* chore(workflow): update version & publish commands
* fix(workflow): add missing attributes and use schangeset:beta cmd
* feat(root): add changeset:beta
* fix(workflows): revise pre-release logic
* fix(workflows): add missing run
* fix(workflows): use changeset:exit with version instead
* feat(root): add changeset:exit cmd
* refactor(workflows): add pths, id, and format
* feat(workflows): enter pre-release mode
* chore(workflows): remove pre.json only
* refactor(workflows): remove enter-pre-release-mode
* fix(workflows): incorrect url
* refactor(root): remove unused exit command
* refactor(workflows): add comments
* feat(changeset): change to main branch as baseBranch
* feat(root): add changeset:canary
* refactor(workflows): remove unused workflow
* feat(workflow): support canary pre-release mode
* refactor(docs): change to canary
2024-11-04 12:06:40 -03:00
winches
7c2c9c4875
feat: add tab ref ( #3974 )
...
* feat: add tab ref
* feat: add changeset
2024-11-04 12:05:47 -03:00
Ryo Matsukawa
cb1b3135bc
feat(date-picker): add selectorButtonPlacement property ( #3248 )
...
* feat(date-picker): add selectorButtonPlacement property
* chore: update changeset
* Update .changeset/neat-donkeys-accept.md
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
---------
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Junior Garcia <jrgarciadev@gmail.com>
2024-11-04 11:54:08 -03:00
Ryo Matsukawa
67ea2f65e1
chore: upgrade react-aria / React 19 & Next.js 15 support ( #3732 )
...
* chore: upgrade react-aria
* chore: add changeset
* chore: fix type error
---------
Co-authored-by: Junior Garcia <jrgarciadev@gmail.com>
2024-11-04 11:53:47 -03:00
Junior Garcia
2d6ae74c36
Feat/add draggable modal ( #3983 )
...
* feat(hooks): add use-draggable hook
* feat(components): [modal] export use-draggable
* docs(components): [modal] add draggable modal
* feat(components): [modal] add ref prop for modal-header
* chore(components): [modal] add draggable modal for storybook
* chore: add changeset for draggable modal
* docs(hooks): [use-draggable] fix typo
* chore: upper changeset
* chore(components): [modal] add overflow draggable modal to sb
* test(components): [modal] add draggable modal tests
* build: update pnpm-lock
* chore(changeset): include issue number
* feat(hooks): [use-draggable] set user-select to none when during the dragging
* docs(components): [modal] update code demo title
* docs(components): [modal] condense description for draggable overflow
* feat(hooks): [use-draggable] change version to 0.1.0
* refactor(hooks): [use-draggable] use use-move implement use-draggable
* feat(hooks): [use-draggable] remove repeated user-select
* test(components): [modal] update test case to use-draggable base use-move
* docs(components): [modal] update draggable examples
* fix(hooks): [use-draggable] fix mobile device touchmove event conflict
* refactor(hooks): [use-draggable] remove drag ref prop
* refactor(hooks): [use-draggable] draggable2is-disabled overflow2can-overflow
* test(components): [modal] add draggble disable test
* chore(hooks): [use-draggable] add commant for body touchmove
* Update packages/hooks/use-draggable/src/index.ts
Co-authored-by: Ryo Matsukawa <76232929+ryo-manba@users.noreply.github.com>
* fix(hooks): [use-draggable] import use-callback
* test(components): [modal] add mobile-sized test for draggable
* chore(hooks): [use-draggable] add use-callback for func
* chore(hooks): [use-draggable] update version to 2.0.0
* chore: fix typo
* Update .changeset/soft-apricots-sleep.md
* fix: pnpm lock
* fix: build
* chore: add updated moadl
---------
Co-authored-by: wzc520pyfm <1528857653@qq.com>
Co-authored-by: աɨռɢӄաօռɢ <wingkwong.code@gmail.com>
Co-authored-by: Ryo Matsukawa <76232929+ryo-manba@users.noreply.github.com>
2024-11-04 11:27:10 -03:00
Junior Garcia
d90ad05b13
Alert component ( #3982 )
...
* feat(alert): began the work on alert component
* fix(readme): making correction
* chore(deps): change to 2.0.0
* chore(docs): update README.md
* feat(theme): init alert tv
* chore(alert): update package.json
* feat(alert): init alert storybook structure
* chore(changeset): add changeset
* chore(changeset): change to minor
* chore(alert): revise alert package.json
* feat(alert): init test structure
* chore(deps): pnpm-lock.yaml
* feat(alert): initailized theme and basic structure
* feat(alert): completed use-alert.ts and alert.tsx
* feat(alert): remove innerWrapper, replace helperWrapper with mainWrapper, adding isCloseable prop
* feat(alert): adding isCloseable prop to baseWrapper dependency
* feat(alert): setting the default value of isCloseable prop to true
* feat(alert): moving CloseIcon inside the button
* feat(alert): updated package.json
* feat(alert): default variant and default story
* feat(alert): adding color and radius stories
* feat(alert): completed the styling
* feat(alert): add stories for isCloseable prop and restyle other stories
* feat(alert): correcting ref type
* feat(alert): add test cases
* feat(alert): remove startContent and endContent props
* feat(alert): make styling more accurate
* feat(alert): fixed default props
* feat(alert): fixed theme docs
* feat(alert): add logic for icons
* feat(alert): begin to add docs
* chore(alert): implement the changes suggested in code review
* feat(alert): add onclose prop to alert
* feat(alert): add test cases
* docs(alert): add onClose event
* feat(docs): add alert to routes.json
* fix(alert): correct the text colors
* docs(alert): fix imports and syntax errors
* chore(alert): implement the changes suggested in code review
* chore(alert): lint the code and change isCloseable to isClosable
* chore(alert): lint the code
* chore(alert): run pnpm i
* fix(alert): fix the logic for close button and add test case
* docs(alert): fix docs, change isCloseable to isClosable and change docs for isClosable property
* chore(alert): add the support for RTL, refactor the code and fix the typos
* docs(alert): grammer issues fix
* fix(alert): replace rtl with ms
* chore(alert): custom style and custom implementation, remove isClosable={false}, refactor, fix typos
* chore(alert): linting and implement coderabbit suggestions
* chore(alert): refactor and typos fix
* chore(alert): add import for closeIcon
* chore(alert): add props for closeIcon
* chore(alert): refactor fixes
* chore(alert): implement ryo-manba's suggestion on close Icon
* chore(alert): make alert more responsive
* chore(alert): fix grammer issues suggested by coderabbit
* fix(alert): add max-w property to make alert responsive
* chore(alert): improve responsiveness and refactor alertIcon
* chore(alert): add missing dependency to useMemo
* chore(alert): implement coderabbit's suggestions
* chore(alert): update docs and refactor
* chore(alert): refactor alertIcon and implement coderabbit's suggestion
* chore: fixes
---------
Co-authored-by: Abhinav Agarwal <abhinavagrawal700@gmail.com>
Co-authored-by: WK Wong <wingkwong.code@gmail.com>
Co-authored-by: Abhinav Agarwal <78839973+abhinav700@users.noreply.github.com>
2024-11-04 10:54:34 -03:00
Shrinidhi Upadhyaya
9fe0aa79c8
fix(tabs): correct inert value for true condition ( #3978 )
2024-11-04 00:22:20 +08:00
Ryo Matsukawa
8de427b81a
fix: prevent test matcher warning ( #3893 )
...
* fix: prevent test matcher warning
* chore: add node types
* chore: update Jest related packages
* chore: run pnpm install
2024-10-29 00:44:08 +08:00
winches
5ac433a905
feat: add git hook to auto update dependencies ( #3365 )
...
* feat: add git hook to auto update dependencies
* feat: update color
2024-10-29 00:39:34 +08:00
winches
1c1fd39d37
fix: avatar filter disableAnimation to dom prop ( #3946 )
2024-10-26 16:36:58 -03:00
Shrinidhi Upadhyaya
c847ffb2a3
fix(docs): removed unused import and merged classNames in dropdown ( #3936 )
...
* fix(breadcrumbs): added separator rotation for RTL #2486
* chore(changeset): added changeset
* fix(docs): removed unused Link import and merged classnames in dropdown
2024-10-24 14:40:50 +08:00
Shrinidhi Upadhyaya
a0d7141db3
fix(theme): support RTL for breadcrumbs ( #3927 )
...
* fix(breadcrumbs): added separator rotation for RTL #2486
* chore(changeset): added changeset
2024-10-23 20:50:06 +08:00
Jeff.
ff04a87b6d
fix(docs): typos in hero section ( #3928 )
2024-10-22 12:10:05 +08:00
աӄա
765dac53cf
refactor(docs): dx improvement in accordion ( #3856 )
...
* refactor: improve dx for writing a docs component (#2544 )
* refactor: improve dx for write a docs component
Signed-off-by: Innei <i@innei.in>
* refactor(docs): switch to contentlayer2
* chore(docs): rename to avoid conflict
* refactor(docs): switch to next-contentlayer2
* refactor(docs): revise docs lib
* chore(deps): bump docs related dependencies
* fix(use-aria-multiselect): type issue due to ts version bump
---------
Signed-off-by: Innei <i@innei.in>
Co-authored-by: WK Wong <wingkwong.code@gmail.com>
* refactor(docs): accordion codes
* feat(docs): declare module `*.jsx?raw`
* feat(docs): include `**/*.jsx`
* fix(docs): incorrect content
* chore(docs): add new lines
* refactor(docs): lint
---------
Signed-off-by: Innei <i@innei.in>
Co-authored-by: Innei <tukon479@gmail.com>
2024-10-20 00:54:13 +08:00
Anuj Sharma
38a54ab497
fix(theme): removed pseudo cancel btn from input ( #3912 )
...
* fix(theme): removed pseudo cancel btn from input
* chore(changeset): adding the changeset
* fix(input): conditionally hiding the webkit search
* chore(changeset): revise changeset message
---------
Co-authored-by: WK Wong <wingkwong.code@gmail.com>
2024-10-19 11:34:46 +08:00
Shrinidhi Upadhyaya
8a33eabb25
fix(theme): show margin only with label in Switch component ( #3861 )
...
* fix(switch): removed right margin in wrapper #3791
* feat(changeset): added changeset
* fix(switch): removed me-2 in wrapper
* fix(switch): added ms-2 to label
* chore(changeset): correct package and message
---------
Co-authored-by: WK Wong <wingkwong.code@gmail.com>
2024-10-15 15:16:05 +08:00
Ryo Matsukawa
507887eac3
chore(test): update testing libraries and refactor ( #3886 )
2024-10-14 11:13:04 -03:00
Ryo Matsukawa
3bc2490156
chore: comment out section prompts in PR template ( #3884 )
2024-10-14 13:40:27 +08:00
Ryo Matsukawa
a2e562b03f
fix(listbox): change listBoxItem key to optional ( #3883 )
...
* fix(listbox): listBoxItem key to optional
* chore: add defaultSelectedKeys test for numeric keys and ids
* chore: add changeset
2024-10-14 13:39:26 +08:00
max
8f62613701
fix(docs): avoid translating the code block ( #3878 )
...
* docs(Codeblock): avoid code be translated
* fix(docs): lint issue
---------
Co-authored-by: WK Wong <wingkwong.code@gmail.com>
2024-10-13 14:06:57 +08:00
Maharshi Alpesh
0cf91395c7
fix(theme): label placement in select and input ( #3869 )
...
* fix(theme): fix the label placement
* chore(changeset): adding the changeset
* chore(select): adding comments
2024-10-11 18:02:34 +08:00
Maharshi Alpesh
488a18f525
fix(select): label placement discrepancy in Select ( #3853 )
...
* fix(select): label placement incorrect in case of multiline
* chore(select): adding the changeset
* chore(select): adding the tests
* chore(select): code imrovement, wkw's suggestions
* chore(changeset): update changeset message
---------
Co-authored-by: WK Wong <wingkwong.code@gmail.com>
2024-10-11 17:06:57 +08:00
Maharshi Alpesh
af3c4f706b
refactor(theme): replace the use of RTL-specific styles with logical properties ( #3868 )
...
* chore(rtl): remove the usages of rtl
* chore(changeset): adding the changeset
* chore(changeset): update changeset message
---------
Co-authored-by: WK Wong <wingkwong.code@gmail.com>
2024-10-11 16:50:50 +08:00
Junior Garcia
88c97f6bf3
chore: merge branch with main
2024-10-07 09:20:40 -03:00
The Master Fuhua's Little Phoenix
14cc26fefe
Update the "Dynamic items"'s code highlight line. ( #3838 )
...
The wrong highlight wasted me 1 hour to fix the null error
2024-10-05 12:31:36 -03:00
Donato Perconti
c0fb1bcc53
Update date-picker.mdx with typo ( #3516 )
...
`canlendar` → `calendar`
2024-10-05 12:31:21 -03:00
աӄա
a07f887971
fix: incorrect domain for images ( #3843 )
2024-10-05 12:31:06 -03:00
Alex Nguyen
780ba43162
fix(autocomplete): exit animation on popover close ( #3845 )
...
* fix(autocomplete): exit animation on popover close
* refactor(autocomplete): getListBoxProps
---------
Co-authored-by: WK Wong <wingkwong.code@gmail.com>
2024-10-05 13:18:29 +08:00
Maharshi Alpesh
781b85566e
fix(theme): fullWidth in input and select ( #3768 )
...
* fix(input): fixing the fullWidth functionality
* chore(changeset): add issue number
* chore(changeset): revise changeset message
---------
Co-authored-by: Maharshi Alpesh <maharshialpesh@Maharshi-Book.local>
Co-authored-by: WK Wong <wingkwong.code@gmail.com>
2024-10-04 00:21:30 +08:00
աӄա
66f1738d9c
fix(docs): typos in dark mode page ( #3823 )
2024-10-03 14:15:16 +08:00
Alex Nguyen
7134996eab
docs(accordion): add overflow to custom motion example ( #3793 )
2024-10-01 16:59:51 +08:00
Julie Saia
557f10f5ec
feat(autocomplete): automatically focus first non-disabled item ( #2186 )
...
Co-authored-by: WK Wong <wingkwong.code@gmail.com>
2024-10-01 16:58:59 +08:00
Maharshi Alpesh
a4ab02006a
fix(date-picker): adding props from calendarProps to getCalendarProps ( #3773 )
...
* fix(date-picker): adding props from calendarProps to the getCalendarProps
* chore(date-picker): adding the changeset
* chore(changeset): add issue number
---------
Co-authored-by: Maharshi Alpesh <maharshialpesh@Maharshi-Book.local>
Co-authored-by: WK Wong <wingkwong.code@gmail.com>
2024-10-01 13:31:09 +08:00
David Gonzalez
e308198644
fix(docs): replace twitter logo/links with x logo/links ( #3815 )
...
* fix(docs): replace Twitter logo/links with X logo/links
* docs: update twitter references to x
* docs: update changeset for twitter to x changes
* docs: update twitter references to x
* docs: update twitter references to x
* chore(docs): undo .sponsorsrc since it's generated
* refactor(docs): remove unnecessary classes
* chore(docs): undo .sponsorsrc since it's generated
---------
Co-authored-by: WK Wong <wingkwong.code@gmail.com>
2024-09-29 13:44:07 +08:00
Maharshi Alpesh
5d9f3380cb
refactor(docs): example of blurred card ( #3741 )
...
* docs(card): adding info regarding the gradient for blurred card
* chore(nit): adding example
* chore(docs): revise content for card isBlurred example
* chore(docs): revise isBlurred note
---------
Co-authored-by: Maharshi Alpesh <maharshialpesh@Maharshi-Book.local>
Co-authored-by: WK Wong <wingkwong.code@gmail.com>
2024-09-28 12:57:25 +08:00
Abhinav Agarwal
2e82f165a9
fix(autocomplete): popover should remain open after clicking clear button ( #3788 )
...
* fix: add state.open() so that dropdown is not closed
* chore: add changeset
* chore(autocomplete): add testcases for keeping lisbox open when clearButton is clicked
* chore: update changeset
* chore(autocomplete): change the docs for test cases
* chore(changeset): update changeset message and add issue number
---------
Co-authored-by: WK Wong <wingkwong.code@gmail.com>
2024-09-28 11:56:28 +08:00
աӄա
06c4b2f763
fix(image): add missing w to getWrapperProps dependency ( #3802 )
...
* fix(image): add missing `w` to `getWrapperProps` dependency
* chore(changeset): add changeset
2024-09-28 00:12:30 +08:00
ryoon
606f75726c
fix(input): ensure clear button is not focusable when disabled ( #3774 )
...
* fix(input): ensure clear button is not focusable when disabled
* test(input): add test to ensure clear button is not focusable when disabled
* chore: add changeset for clear button focus fix when input is disabled
* fix(input): update clear button to use button element
* test(input): add focus test when disabled
and update tests for clear button using button element
* test(input): replace querySelector with getByRole for clear button
* fix(input): set tabIndex to -1 for clear button
* test(input): ensure clear button is not focusable
2024-09-27 00:53:59 +08:00
Junior Garcia
3f8b63e6e5
chore: ethical ads added ( #3803 )
2024-09-24 17:12:00 -07:00
աӄա
e10ea001b6
fix(docs): broken links ( #3796 )
...
* fix(docs): broken link in date-picker page
* fix(docs): broken links
2024-09-23 09:21:12 -07:00