chore(root): react-aria packages upgraded (#1359)
43
.changeset/tender-gifts-unite.md
Normal file
@ -0,0 +1,43 @@
|
||||
---
|
||||
"@nextui-org/use-aria-accordion-item": patch
|
||||
"@nextui-org/use-aria-modal-overlay": patch
|
||||
"@nextui-org/use-aria-toggle-button": patch
|
||||
"@nextui-org/framer-transitions": patch
|
||||
"@nextui-org/pagination": patch
|
||||
"@nextui-org/use-aria-button": patch
|
||||
"@nextui-org/accordion": patch
|
||||
"@nextui-org/use-disclosure": patch
|
||||
"@nextui-org/aria-utils": patch
|
||||
"@nextui-org/checkbox": patch
|
||||
"@nextui-org/dropdown": patch
|
||||
"@nextui-org/progress": patch
|
||||
"@nextui-org/use-is-mobile": patch
|
||||
"@nextui-org/divider": patch
|
||||
"@nextui-org/popover": patch
|
||||
"@nextui-org/snippet": patch
|
||||
"@nextui-org/tooltip": patch
|
||||
"@nextui-org/avatar": patch
|
||||
"@nextui-org/button": patch
|
||||
"@nextui-org/navbar": patch
|
||||
"@nextui-org/ripple": patch
|
||||
"@nextui-org/switch": patch
|
||||
"@nextui-org/image": patch
|
||||
"@nextui-org/input": patch
|
||||
"@nextui-org/modal": patch
|
||||
"@nextui-org/radio": patch
|
||||
"@nextui-org/table": patch
|
||||
"@nextui-org/card": patch
|
||||
"@nextui-org/chip": patch
|
||||
"@nextui-org/link": patch
|
||||
"@nextui-org/tabs": patch
|
||||
"@nextui-org/user": patch
|
||||
"@nextui-org/kbd": patch
|
||||
"@nextui-org/system": patch
|
||||
"@nextui-org/react": patch
|
||||
---
|
||||
|
||||
\n
|
||||
|
||||
- react-aria packages updgraded to the latest version
|
||||
- image storybooks fixed
|
||||
- other bug fixes..
|
||||
@ -32,16 +32,16 @@
|
||||
"@nextui-org/use-clipboard": "workspace:*",
|
||||
"@nextui-org/use-infinite-scroll": "workspace:*",
|
||||
"@nextui-org/use-is-mobile": "workspace:*",
|
||||
"@react-aria/focus": "^3.13.0",
|
||||
"@react-aria/interactions": "^3.16.0",
|
||||
"@react-aria/selection": "^3.15.0",
|
||||
"@react-aria/ssr": "^3.6.0",
|
||||
"@react-aria/utils": "^3.18.0",
|
||||
"@react-aria/virtualizer": "^3.8.0",
|
||||
"@react-aria/visually-hidden": "^3.8.0",
|
||||
"@react-stately/data": "^3.10.0",
|
||||
"@react-stately/layout": "^3.12.0",
|
||||
"@react-stately/tree": "^3.7.0",
|
||||
"@react-aria/focus": "^3.14.0",
|
||||
"@react-aria/interactions": "^3.17.0",
|
||||
"@react-aria/selection": "^3.16.1",
|
||||
"@react-aria/ssr": "^3.7.1",
|
||||
"@react-aria/utils": "^3.19.0",
|
||||
"@react-aria/virtualizer": "^3.9.1",
|
||||
"@react-aria/visually-hidden": "^3.8.3",
|
||||
"@react-stately/data": "^3.10.1",
|
||||
"@react-stately/layout": "^3.13.0",
|
||||
"@react-stately/tree": "^3.7.1",
|
||||
"@rehooks/local-storage": "^2.4.4",
|
||||
"@vercel/analytics": "^1.0.1",
|
||||
"canvas-confetti": "^1.4.0",
|
||||
@ -49,7 +49,7 @@
|
||||
"color2k": "^2.0.2",
|
||||
"contentlayer": "^0.3.4",
|
||||
"date-fns": "^2.30.0",
|
||||
"framer-motion": "^10.12.18",
|
||||
"framer-motion": "^10.15.1",
|
||||
"github-slugger": "^2.0.0",
|
||||
"gray-matter": "^4.0.3",
|
||||
"hast-util-to-html": "7.1.2",
|
||||
|
||||
@ -53,18 +53,18 @@
|
||||
"@nextui-org/system": "workspace:*",
|
||||
"@nextui-org/theme": "workspace:*",
|
||||
"@nextui-org/divider": "workspace:*",
|
||||
"@react-aria/accordion": "3.0.0-alpha.19",
|
||||
"@react-aria/interactions": "^3.16.0",
|
||||
"@react-aria/focus": "^3.13.0",
|
||||
"@react-aria/utils": "^3.18.0",
|
||||
"@react-stately/tree": "^3.7.0"
|
||||
"@react-aria/accordion": "3.0.0-alpha.20",
|
||||
"@react-aria/interactions": "^3.17.0",
|
||||
"@react-aria/focus": "^3.14.0",
|
||||
"@react-aria/utils": "^3.19.0",
|
||||
"@react-stately/tree": "^3.7.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@nextui-org/avatar": "workspace:*",
|
||||
"@nextui-org/test-utils": "workspace:*",
|
||||
"@react-types/accordion": "3.0.0-alpha.14",
|
||||
"@react-types/shared": "^3.18.1",
|
||||
"framer-motion": "^10.12.18",
|
||||
"@react-types/accordion": "3.0.0-alpha.15",
|
||||
"@react-types/shared": "^3.19.0",
|
||||
"framer-motion": "^10.15.1",
|
||||
"clean-package": "2.2.0",
|
||||
"react": "^18.0.0"
|
||||
},
|
||||
|
||||
@ -6,7 +6,6 @@ export type {AccordionProps} from "./accordion";
|
||||
export type {AccordionItemProps} from "./accordion-item";
|
||||
export type {AccordionItemIndicatorProps} from "./base/accordion-item-base";
|
||||
export type {AccordionItemBaseProps} from "./base/accordion-item-base";
|
||||
export type {Selection} from "@react-types/shared";
|
||||
|
||||
// export hooks
|
||||
export {useAccordionItem} from "./use-accordion-item";
|
||||
|
||||
@ -42,9 +42,9 @@
|
||||
"@nextui-org/shared-utils": "workspace:*",
|
||||
"@nextui-org/react-utils": "workspace:*",
|
||||
"@nextui-org/use-image": "workspace:*",
|
||||
"@react-aria/interactions": "^3.16.0",
|
||||
"@react-aria/focus": "^3.13.0",
|
||||
"@react-aria/utils": "^3.18.0"
|
||||
"@react-aria/interactions": "^3.17.0",
|
||||
"@react-aria/focus": "^3.14.0",
|
||||
"@react-aria/utils": "^3.19.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@nextui-org/shared-icons": "workspace:*",
|
||||
|
||||
@ -44,12 +44,12 @@
|
||||
"@nextui-org/theme": "workspace:*",
|
||||
"@nextui-org/ripple": "workspace:*",
|
||||
"@nextui-org/spinner": "workspace:*",
|
||||
"@react-aria/button": "^3.8.0",
|
||||
"@react-aria/interactions": "^3.16.0",
|
||||
"@react-aria/utils": "^3.18.0",
|
||||
"@react-aria/focus": "^3.13.0",
|
||||
"@react-types/shared": "^3.18.1",
|
||||
"@react-types/button": "^3.7.3"
|
||||
"@react-aria/button": "^3.8.1",
|
||||
"@react-aria/interactions": "^3.17.0",
|
||||
"@react-aria/utils": "^3.19.0",
|
||||
"@react-aria/focus": "^3.14.0",
|
||||
"@react-types/shared": "^3.19.0",
|
||||
"@react-types/button": "^3.7.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@nextui-org/shared-icons": "workspace:*",
|
||||
|
||||
@ -43,11 +43,11 @@
|
||||
"@nextui-org/react-utils": "workspace:*",
|
||||
"@nextui-org/use-aria-button": "workspace:*",
|
||||
"@nextui-org/ripple": "workspace:*",
|
||||
"@react-aria/focus": "^3.13.0",
|
||||
"@react-aria/utils": "^3.18.0",
|
||||
"@react-aria/interactions": "^3.16.0",
|
||||
"@react-aria/button": "^3.8.0",
|
||||
"@react-types/shared": "^3.18.1"
|
||||
"@react-aria/focus": "^3.14.0",
|
||||
"@react-aria/utils": "^3.19.0",
|
||||
"@react-aria/interactions": "^3.17.0",
|
||||
"@react-aria/button": "^3.8.1",
|
||||
"@react-types/shared": "^3.19.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@nextui-org/code": "workspace:*",
|
||||
|
||||
@ -41,15 +41,15 @@
|
||||
"@nextui-org/shared-utils": "workspace:*",
|
||||
"@nextui-org/react-utils": "workspace:*",
|
||||
"@nextui-org/theme": "workspace:*",
|
||||
"@react-aria/checkbox": "^3.9.2",
|
||||
"@react-aria/focus": "^3.13.0",
|
||||
"@react-aria/interactions": "^3.16.0",
|
||||
"@react-aria/visually-hidden": "^3.8.2",
|
||||
"@react-stately/checkbox": "^3.4.3",
|
||||
"@react-stately/toggle": "^3.6.0",
|
||||
"@react-aria/utils": "^3.18.0",
|
||||
"@react-types/checkbox": "^3.4.4",
|
||||
"@react-types/shared": "^3.18.1"
|
||||
"@react-aria/checkbox": "^3.10.0",
|
||||
"@react-aria/focus": "^3.14.0",
|
||||
"@react-aria/interactions": "^3.17.0",
|
||||
"@react-aria/visually-hidden": "^3.8.3",
|
||||
"@react-stately/checkbox": "^3.4.4",
|
||||
"@react-stately/toggle": "^3.6.1",
|
||||
"@react-aria/utils": "^3.19.0",
|
||||
"@react-types/checkbox": "^3.5.0",
|
||||
"@react-types/shared": "^3.19.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@nextui-org/shared-icons": "workspace:*",
|
||||
|
||||
@ -42,10 +42,10 @@
|
||||
"@nextui-org/react-utils": "workspace:*",
|
||||
"@nextui-org/system": "workspace:*",
|
||||
"@nextui-org/theme": "workspace:*",
|
||||
"@react-aria/focus": "^3.13.0",
|
||||
"@react-aria/interactions": "^3.16.0",
|
||||
"@react-aria/utils": "^3.18.0",
|
||||
"@react-types/checkbox": "^3.4.4"
|
||||
"@react-aria/focus": "^3.14.0",
|
||||
"@react-aria/interactions": "^3.17.0",
|
||||
"@react-aria/utils": "^3.19.0",
|
||||
"@react-types/checkbox": "^3.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@nextui-org/avatar": "workspace:*",
|
||||
|
||||
@ -41,7 +41,7 @@
|
||||
"@nextui-org/react-rsc-utils": "workspace:*",
|
||||
"@nextui-org/system-rsc": "workspace:*",
|
||||
"@nextui-org/theme": "workspace:*",
|
||||
"@react-types/shared": "^3.18.1"
|
||||
"@react-types/shared": "^3.19.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"clean-package": "2.2.0",
|
||||
|
||||
@ -46,21 +46,21 @@
|
||||
"@nextui-org/theme": "workspace:*",
|
||||
"@nextui-org/divider": "workspace:*",
|
||||
"@nextui-org/use-is-mobile": "workspace:*",
|
||||
"@react-aria/menu": "^3.10.0",
|
||||
"@react-aria/utils": "^3.18.0",
|
||||
"@react-stately/menu": "^3.5.3",
|
||||
"@react-stately/tree": "^3.7.0",
|
||||
"@react-aria/focus": "^3.13.0",
|
||||
"@react-aria/interactions": "^3.16.0",
|
||||
"@react-types/menu": "^3.9.2",
|
||||
"@react-types/shared": "^3.18.1"
|
||||
"@react-aria/menu": "^3.10.1",
|
||||
"@react-aria/utils": "^3.19.0",
|
||||
"@react-stately/menu": "^3.5.4",
|
||||
"@react-stately/tree": "^3.7.1",
|
||||
"@react-aria/focus": "^3.14.0",
|
||||
"@react-aria/interactions": "^3.17.0",
|
||||
"@react-types/menu": "^3.9.3",
|
||||
"@react-types/shared": "^3.19.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@nextui-org/button": "workspace:*",
|
||||
"@nextui-org/avatar": "workspace:*",
|
||||
"@nextui-org/user": "workspace:*",
|
||||
"@nextui-org/shared-icons": "workspace:*",
|
||||
"framer-motion": "^10.12.18",
|
||||
"framer-motion": "^10.15.1",
|
||||
"clean-package": "2.2.0",
|
||||
"react": "^18.0.0"
|
||||
},
|
||||
|
||||
@ -47,7 +47,7 @@ export default {
|
||||
|
||||
const defaultProps = {
|
||||
...image.defaultVariants,
|
||||
src: require("./assets/local-image-1.jpeg"),
|
||||
src: "./images/local-image-1.jpeg",
|
||||
alt: "NextUI hero image",
|
||||
disableSkeleton: true,
|
||||
};
|
||||
@ -82,7 +82,7 @@ export const Blurred = {
|
||||
...defaultProps,
|
||||
width: 300,
|
||||
isBlurred: true,
|
||||
src: require("./assets/local-image-small.jpg"),
|
||||
src: "/images/local-image-small.jpg",
|
||||
// src:
|
||||
// "https://images.unsplash.com/photo-1519638831568-d9897f54ed69?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1770&q=80",
|
||||
},
|
||||
@ -105,7 +105,7 @@ export const Shadow = {
|
||||
isZoomed: true,
|
||||
radius: "lg",
|
||||
shadow: "md",
|
||||
src: require("./assets/local-image-small.jpg"),
|
||||
src: "/images/local-image-small.jpg",
|
||||
},
|
||||
};
|
||||
|
||||
@ -126,7 +126,7 @@ export const Fallback = {
|
||||
width: 300,
|
||||
radius: "lg",
|
||||
src: "https://app.requestly.io/delay/3000/https://images.unsplash.com/photo-1539571696357-5a69c17a67c6",
|
||||
fallbackSrc: "https://via.placeholder.com/300x450",
|
||||
fallbackSrc: "/images/placeholder_300x450.png",
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@ -42,14 +42,14 @@
|
||||
"@nextui-org/shared-utils": "workspace:*",
|
||||
"@nextui-org/system": "workspace:*",
|
||||
"@nextui-org/theme": "workspace:*",
|
||||
"@react-aria/focus": "^3.13.0",
|
||||
"@react-aria/interactions": "^3.16.0",
|
||||
"@react-aria/textfield": "^3.10.0",
|
||||
"@react-aria/utils": "^3.18.0",
|
||||
"@react-aria/focus": "^3.14.0",
|
||||
"@react-aria/interactions": "^3.17.0",
|
||||
"@react-aria/textfield": "^3.11.0",
|
||||
"@react-aria/utils": "^3.19.0",
|
||||
"@react-stately/utils": "^3.7.0",
|
||||
"@react-types/shared": "^3.18.1",
|
||||
"@react-types/textfield": "^3.7.2",
|
||||
"react-textarea-autosize": "^8.5.1"
|
||||
"@react-types/shared": "^3.19.0",
|
||||
"@react-types/textfield": "^3.7.3",
|
||||
"react-textarea-autosize": "^8.5.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"clean-package": "2.2.0",
|
||||
|
||||
@ -41,7 +41,7 @@
|
||||
"@nextui-org/theme": "workspace:*",
|
||||
"@nextui-org/shared-utils": "workspace:*",
|
||||
"@nextui-org/react-utils": "workspace:*",
|
||||
"@react-aria/utils": "^3.18.0"
|
||||
"@react-aria/utils": "^3.19.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"clean-package": "2.2.0",
|
||||
|
||||
@ -42,10 +42,10 @@
|
||||
"@nextui-org/react-utils": "workspace:*",
|
||||
"@nextui-org/system": "workspace:*",
|
||||
"@nextui-org/theme": "workspace:*",
|
||||
"@react-aria/link": "^3.5.2",
|
||||
"@react-aria/utils": "^3.18.0",
|
||||
"@react-aria/focus": "^3.13.0",
|
||||
"@react-types/link": "^3.4.3"
|
||||
"@react-aria/link": "^3.5.3",
|
||||
"@react-aria/utils": "^3.19.0",
|
||||
"@react-aria/focus": "^3.14.0",
|
||||
"@react-types/link": "^3.4.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"clean-package": "2.2.0",
|
||||
|
||||
@ -47,13 +47,13 @@
|
||||
"@nextui-org/react-utils": "workspace:*",
|
||||
"@nextui-org/shared-icons": "workspace:*",
|
||||
"@nextui-org/use-aria-modal-overlay": "workspace:*",
|
||||
"@react-aria/dialog": "^3.5.3",
|
||||
"@react-aria/interactions": "^3.16.0",
|
||||
"@react-aria/overlays": "^3.15.0",
|
||||
"@react-aria/utils": "^3.18.0",
|
||||
"@react-stately/overlays": "^3.6.0",
|
||||
"@react-aria/focus": "^3.13.0",
|
||||
"@react-types/overlays": "^3.8.0",
|
||||
"@react-aria/dialog": "^3.5.4",
|
||||
"@react-aria/interactions": "^3.17.0",
|
||||
"@react-aria/overlays": "^3.16.0",
|
||||
"@react-aria/utils": "^3.19.0",
|
||||
"@react-stately/overlays": "^3.6.1",
|
||||
"@react-aria/focus": "^3.14.0",
|
||||
"@react-types/overlays": "^3.8.1",
|
||||
"react-remove-scroll": "^2.5.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
@ -62,7 +62,7 @@
|
||||
"@nextui-org/button": "workspace:*",
|
||||
"@nextui-org/link": "workspace:*",
|
||||
"react-lorem-component": "0.13.0",
|
||||
"framer-motion": "^10.12.18",
|
||||
"framer-motion": "^10.15.1",
|
||||
"clean-package": "2.2.0",
|
||||
"react": "^18.0.0"
|
||||
},
|
||||
|
||||
@ -45,12 +45,12 @@
|
||||
"@nextui-org/framer-transitions": "workspace:*",
|
||||
"@nextui-org/use-aria-toggle-button": "workspace:*",
|
||||
"@nextui-org/use-scroll-position": "workspace:*",
|
||||
"@react-aria/focus": "^3.13.0",
|
||||
"@react-aria/interactions": "^3.16.0",
|
||||
"@react-aria/utils": "^3.18.0",
|
||||
"@react-stately/toggle": "^3.6.0",
|
||||
"@react-aria/focus": "^3.14.0",
|
||||
"@react-aria/interactions": "^3.17.0",
|
||||
"@react-aria/utils": "^3.19.0",
|
||||
"@react-stately/toggle": "^3.6.1",
|
||||
"@react-stately/utils": "^3.7.0",
|
||||
"@react-aria/overlays": "^3.15.0",
|
||||
"@react-aria/overlays": "^3.16.0",
|
||||
"react-remove-scroll": "^2.5.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@ -43,9 +43,9 @@
|
||||
"@nextui-org/theme": "workspace:*",
|
||||
"@nextui-org/shared-icons": "workspace:*",
|
||||
"@nextui-org/use-pagination": "workspace:*",
|
||||
"@react-aria/focus": "^3.13.0",
|
||||
"@react-aria/interactions": "^3.16.0",
|
||||
"@react-aria/utils": "^3.18.0",
|
||||
"@react-aria/focus": "^3.14.0",
|
||||
"@react-aria/interactions": "^3.17.0",
|
||||
"@react-aria/utils": "^3.19.0",
|
||||
"scroll-into-view-if-needed": "3.0.10"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@ -46,20 +46,20 @@
|
||||
"@nextui-org/react-utils": "workspace:*",
|
||||
"@nextui-org/system": "workspace:*",
|
||||
"@nextui-org/theme": "workspace:*",
|
||||
"@react-aria/dialog": "^3.5.3",
|
||||
"@react-aria/interactions": "^3.16.0",
|
||||
"@react-aria/overlays": "^3.15.0",
|
||||
"@react-aria/utils": "^3.18.0",
|
||||
"@react-stately/overlays": "^3.6.0",
|
||||
"@react-aria/focus": "^3.13.0",
|
||||
"@react-types/overlays": "^3.8.0",
|
||||
"@react-types/button": "^3.7.3",
|
||||
"@react-aria/dialog": "^3.5.4",
|
||||
"@react-aria/interactions": "^3.17.0",
|
||||
"@react-aria/overlays": "^3.16.0",
|
||||
"@react-aria/utils": "^3.19.0",
|
||||
"@react-stately/overlays": "^3.6.1",
|
||||
"@react-aria/focus": "^3.14.0",
|
||||
"@react-types/overlays": "^3.8.1",
|
||||
"@react-types/button": "^3.7.4",
|
||||
"react-remove-scroll": "^2.5.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@nextui-org/input": "workspace:*",
|
||||
"@nextui-org/card": "workspace:*",
|
||||
"framer-motion": "^10.12.18",
|
||||
"framer-motion": "^10.15.1",
|
||||
"clean-package": "2.2.0",
|
||||
"react": "^18.0.0"
|
||||
},
|
||||
|
||||
@ -243,7 +243,6 @@ export function usePopover(originalProps: UsePopoverProps) {
|
||||
shouldBlockScroll,
|
||||
backdrop: originalProps.backdrop ?? "transparent",
|
||||
motionProps,
|
||||
focusProps,
|
||||
getBackdropProps,
|
||||
getPopoverProps,
|
||||
getTriggerProps,
|
||||
|
||||
@ -42,9 +42,9 @@
|
||||
"@nextui-org/use-is-mounted": "workspace:*",
|
||||
"@nextui-org/system": "workspace:*",
|
||||
"@nextui-org/theme": "workspace:*",
|
||||
"@react-aria/i18n": "^3.8.0",
|
||||
"@react-aria/progress": "^3.4.3",
|
||||
"@react-aria/utils": "^3.18.0",
|
||||
"@react-aria/i18n": "^3.8.1",
|
||||
"@react-aria/progress": "^3.4.4",
|
||||
"@react-aria/utils": "^3.19.0",
|
||||
"@react-types/progress": "^3.4.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@ -41,14 +41,14 @@
|
||||
"@nextui-org/shared-utils": "workspace:*",
|
||||
"@nextui-org/react-utils": "workspace:*",
|
||||
"@nextui-org/system": "workspace:*",
|
||||
"@react-aria/focus": "^3.13.0",
|
||||
"@react-aria/interactions": "^3.16.0",
|
||||
"@react-aria/radio": "^3.6.2",
|
||||
"@react-aria/utils": "^3.18.0",
|
||||
"@react-aria/visually-hidden": "^3.8.2",
|
||||
"@react-stately/radio": "^3.8.2",
|
||||
"@react-types/radio": "^3.4.2",
|
||||
"@react-types/shared": "^3.18.1"
|
||||
"@react-aria/focus": "^3.14.0",
|
||||
"@react-aria/interactions": "^3.17.0",
|
||||
"@react-aria/radio": "^3.7.0",
|
||||
"@react-aria/utils": "^3.19.0",
|
||||
"@react-aria/visually-hidden": "^3.8.3",
|
||||
"@react-stately/radio": "^3.8.3",
|
||||
"@react-types/radio": "^3.5.0",
|
||||
"@react-types/shared": "^3.19.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@nextui-org/button": "workspace:*",
|
||||
|
||||
@ -45,7 +45,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"clean-package": "2.2.0",
|
||||
"framer-motion": "^10.12.18",
|
||||
"framer-motion": "^10.15.1",
|
||||
"react": "^18.0.0"
|
||||
},
|
||||
"clean-package": "../../../clean-package.config.json"
|
||||
|
||||
@ -46,8 +46,8 @@
|
||||
"@nextui-org/shared-icons": "workspace:*",
|
||||
"@nextui-org/use-clipboard": "workspace:*",
|
||||
"@nextui-org/tooltip": "workspace:*",
|
||||
"@react-aria/focus": "^3.13.0",
|
||||
"@react-aria/utils": "^3.18.0"
|
||||
"@react-aria/focus": "^3.14.0",
|
||||
"@react-aria/utils": "^3.19.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"clean-package": "2.2.0",
|
||||
|
||||
@ -41,13 +41,13 @@
|
||||
"@nextui-org/react-utils": "workspace:*",
|
||||
"@nextui-org/system": "workspace:*",
|
||||
"@nextui-org/theme": "workspace:*",
|
||||
"@react-aria/focus": "^3.13.0",
|
||||
"@react-aria/interactions": "^3.16.0",
|
||||
"@react-aria/switch": "^3.5.2",
|
||||
"@react-aria/utils": "^3.18.0",
|
||||
"@react-aria/visually-hidden": "^3.8.2",
|
||||
"@react-stately/toggle": "^3.6.0",
|
||||
"@react-types/shared": "^3.18.1"
|
||||
"@react-aria/focus": "^3.14.0",
|
||||
"@react-aria/interactions": "^3.17.0",
|
||||
"@react-aria/switch": "^3.5.3",
|
||||
"@react-aria/utils": "^3.19.0",
|
||||
"@react-aria/visually-hidden": "^3.8.3",
|
||||
"@react-stately/toggle": "^3.6.1",
|
||||
"@react-types/shared": "^3.19.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"clean-package": "2.2.0",
|
||||
|
||||
@ -44,14 +44,14 @@
|
||||
"@nextui-org/spacer": "workspace:*",
|
||||
"@nextui-org/system": "workspace:*",
|
||||
"@nextui-org/theme": "workspace:*",
|
||||
"@react-aria/focus": "^3.13.0",
|
||||
"@react-aria/interactions": "^3.16.0",
|
||||
"@react-aria/table": "^3.10.0",
|
||||
"@react-aria/utils": "^3.18.0",
|
||||
"@react-aria/visually-hidden": "^3.8.2",
|
||||
"@react-stately/table": "^3.10.0",
|
||||
"@react-types/grid": "^3.1.8",
|
||||
"@react-types/table": "^3.7.0"
|
||||
"@react-aria/focus": "^3.14.0",
|
||||
"@react-aria/interactions": "^3.17.0",
|
||||
"@react-aria/table": "^3.11.0",
|
||||
"@react-aria/utils": "^3.19.0",
|
||||
"@react-aria/visually-hidden": "^3.8.3",
|
||||
"@react-stately/table": "^3.11.0",
|
||||
"@react-types/grid": "^3.2.0",
|
||||
"@react-types/table": "^3.8.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@nextui-org/chip": "workspace:*",
|
||||
@ -61,7 +61,7 @@
|
||||
"@nextui-org/use-infinite-scroll": "workspace:*",
|
||||
"@nextui-org/tooltip": "workspace:*",
|
||||
"@nextui-org/user": "workspace:*",
|
||||
"@react-stately/data": "^3.10.0",
|
||||
"@react-stately/data": "^3.10.1",
|
||||
"clean-package": "2.2.0",
|
||||
"react": "^18.0.0"
|
||||
},
|
||||
|
||||
@ -2,7 +2,8 @@ import {HTMLNextUIProps} from "@nextui-org/system";
|
||||
import {Row} from "@react-stately/table";
|
||||
import {RowProps} from "@react-types/table";
|
||||
|
||||
export type TableRowProps = RowProps & Omit<HTMLNextUIProps<"tr">, keyof RowProps>;
|
||||
export type TableRowProps<T = object> = RowProps<T> &
|
||||
Omit<HTMLNextUIProps<"tr">, keyof RowProps<T>>;
|
||||
|
||||
const TableRow = Row as (props: TableRowProps) => JSX.Element;
|
||||
|
||||
|
||||
@ -272,7 +272,6 @@ export function useTable<T extends object>(originalProps: UseTableProps<T>) {
|
||||
topContent,
|
||||
bottomContent,
|
||||
removeWrapper,
|
||||
selectionMode,
|
||||
topContentPlacement,
|
||||
bottomContentPlacement,
|
||||
getBaseProps,
|
||||
|
||||
@ -46,17 +46,17 @@
|
||||
"@nextui-org/framer-transitions": "workspace:*",
|
||||
"@nextui-org/use-is-mounted": "workspace:*",
|
||||
"@nextui-org/use-update-effect": "workspace:*",
|
||||
"@react-aria/focus": "^3.13.0",
|
||||
"@react-aria/interactions": "^3.16.0",
|
||||
"@react-aria/tabs": "^3.6.1",
|
||||
"@react-aria/utils": "^3.18.0",
|
||||
"@react-stately/tabs": "^3.5.0",
|
||||
"@react-types/shared": "^3.18.1",
|
||||
"@react-types/tabs": "^3.3.0",
|
||||
"@react-aria/focus": "^3.14.0",
|
||||
"@react-aria/interactions": "^3.17.0",
|
||||
"@react-aria/tabs": "^3.6.2",
|
||||
"@react-aria/utils": "^3.19.0",
|
||||
"@react-stately/tabs": "^3.5.1",
|
||||
"@react-types/shared": "^3.19.0",
|
||||
"@react-types/tabs": "^3.3.1",
|
||||
"scroll-into-view-if-needed": "3.0.10"
|
||||
},
|
||||
"devDependencies": {
|
||||
"framer-motion": "^10.12.18",
|
||||
"framer-motion": "^10.15.1",
|
||||
"react-lorem-component": "0.13.0",
|
||||
"@nextui-org/card": "workspace:*",
|
||||
"@nextui-org/input": "workspace:*",
|
||||
|
||||
@ -44,17 +44,17 @@
|
||||
"@nextui-org/system": "workspace:*",
|
||||
"@nextui-org/theme": "workspace:*",
|
||||
"@nextui-org/framer-transitions": "workspace:*",
|
||||
"@react-aria/overlays": "^3.15.0",
|
||||
"@react-aria/tooltip": "^3.6.0",
|
||||
"@react-stately/tooltip": "^3.4.2",
|
||||
"@react-aria/interactions": "^3.16.0",
|
||||
"@react-aria/utils": "^3.18.0",
|
||||
"@react-types/tooltip": "^3.4.2",
|
||||
"@react-types/overlays": "^3.8.0"
|
||||
"@react-aria/overlays": "^3.16.0",
|
||||
"@react-aria/tooltip": "^3.6.1",
|
||||
"@react-stately/tooltip": "^3.4.3",
|
||||
"@react-aria/interactions": "^3.17.0",
|
||||
"@react-aria/utils": "^3.19.0",
|
||||
"@react-types/tooltip": "^3.4.3",
|
||||
"@react-types/overlays": "^3.8.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@nextui-org/button": "workspace:*",
|
||||
"framer-motion": "^10.12.18",
|
||||
"framer-motion": "^10.15.1",
|
||||
"clean-package": "2.2.0",
|
||||
"react": "^18.0.0"
|
||||
},
|
||||
|
||||
@ -249,7 +249,6 @@ export function useTooltip(originalProps: UseTooltipProps) {
|
||||
children,
|
||||
isOpen,
|
||||
triggerRef,
|
||||
triggerProps,
|
||||
showArrow,
|
||||
portalContainer,
|
||||
placement: placementProp,
|
||||
|
||||
@ -42,8 +42,8 @@
|
||||
"@nextui-org/theme": "workspace:*",
|
||||
"@nextui-org/shared-utils": "workspace:*",
|
||||
"@nextui-org/react-utils": "workspace:*",
|
||||
"@react-aria/focus": "^3.13.0",
|
||||
"@react-aria/utils": "^3.18.0"
|
||||
"@react-aria/focus": "^3.14.0",
|
||||
"@react-aria/utils": "^3.19.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"clean-package": "2.2.0",
|
||||
|
||||
@ -6,10 +6,10 @@ import {useFocusRing} from "@react-aria/focus";
|
||||
import {HTMLNextUIProps, PropGetter} from "@nextui-org/system";
|
||||
import {user} from "@nextui-org/theme";
|
||||
import {clsx, dataAttr} from "@nextui-org/shared-utils";
|
||||
import {ReactRef} from "@nextui-org/react-utils";
|
||||
import {filterDOMProps, ReactRef} from "@nextui-org/react-utils";
|
||||
import {useDOMRef} from "@nextui-org/react-utils";
|
||||
import {mergeProps} from "@react-aria/utils";
|
||||
export interface UseUserProps extends Omit<HTMLNextUIProps, "children"> {
|
||||
interface Props {
|
||||
/**
|
||||
* Ref to the DOM node.
|
||||
*/
|
||||
@ -49,6 +49,8 @@ export interface UseUserProps extends Omit<HTMLNextUIProps, "children"> {
|
||||
classNames?: SlotsToClasses<UserSlots>;
|
||||
}
|
||||
|
||||
export type UseUserProps = Props & Omit<HTMLNextUIProps<"div">, "children">;
|
||||
|
||||
export function useUser(props: UseUserProps) {
|
||||
const {
|
||||
as,
|
||||
@ -66,6 +68,7 @@ export function useUser(props: UseUserProps) {
|
||||
} = props;
|
||||
|
||||
const Component = as || "div";
|
||||
const shouldFilterDOMProps = typeof Component === "string";
|
||||
|
||||
const domRef = useDOMRef(ref);
|
||||
|
||||
@ -88,7 +91,12 @@ export function useUser(props: UseUserProps) {
|
||||
className: slots.base({
|
||||
class: baseStyles,
|
||||
}),
|
||||
...mergeProps(otherProps, canBeFocused ? focusProps : {}),
|
||||
...mergeProps(
|
||||
filterDOMProps(otherProps, {
|
||||
enabled: shouldFilterDOMProps,
|
||||
}),
|
||||
canBeFocused ? focusProps : {},
|
||||
),
|
||||
}),
|
||||
[canBeFocused, slots, baseStyles, focusProps, otherProps],
|
||||
);
|
||||
@ -101,7 +109,6 @@ export function useUser(props: UseUserProps) {
|
||||
description,
|
||||
classNames,
|
||||
baseStyles,
|
||||
focusProps,
|
||||
avatarProps,
|
||||
getUserProps,
|
||||
};
|
||||
|
||||
@ -72,7 +72,7 @@
|
||||
"@nextui-org/kbd": "workspace:*",
|
||||
"@nextui-org/tabs": "workspace:*",
|
||||
"@nextui-org/skeleton": "workspace:*",
|
||||
"@react-aria/visually-hidden": "^3.8.2"
|
||||
"@react-aria/visually-hidden": "^3.8.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": ">=18",
|
||||
|
||||
@ -51,7 +51,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@nextui-org/system-rsc": "workspace:*",
|
||||
"@react-aria/i18n": "^3.8.0",
|
||||
"@react-aria/overlays": "^3.15.0"
|
||||
"@react-aria/i18n": "^3.8.1",
|
||||
"@react-aria/overlays": "^3.16.0"
|
||||
}
|
||||
}
|
||||
|
||||
@ -34,10 +34,10 @@
|
||||
"postpack": "clean-package restore"
|
||||
},
|
||||
"dependencies": {
|
||||
"@react-aria/focus": "^3.13.0",
|
||||
"@react-stately/tree": "^3.7.0",
|
||||
"@react-aria/button": "^3.8.0",
|
||||
"@react-types/shared": "^3.18.1"
|
||||
"@react-aria/focus": "^3.14.0",
|
||||
"@react-stately/tree": "^3.7.1",
|
||||
"@react-aria/button": "^3.8.1",
|
||||
"@react-types/shared": "^3.19.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": ">=18"
|
||||
|
||||
@ -37,11 +37,11 @@
|
||||
"react": ">=18"
|
||||
},
|
||||
"dependencies": {
|
||||
"@react-aria/utils": "^3.18.0",
|
||||
"@react-aria/focus": "^3.13.0",
|
||||
"@react-aria/interactions": "^3.16.0",
|
||||
"@react-types/button": "^3.7.3",
|
||||
"@react-types/shared": "^3.18.1"
|
||||
"@react-aria/utils": "^3.19.0",
|
||||
"@react-aria/focus": "^3.14.0",
|
||||
"@react-aria/interactions": "^3.17.0",
|
||||
"@react-types/button": "^3.7.4",
|
||||
"@react-types/shared": "^3.19.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"clean-package": "2.2.0",
|
||||
|
||||
@ -34,10 +34,10 @@
|
||||
"postpack": "clean-package restore"
|
||||
},
|
||||
"dependencies": {
|
||||
"@react-aria/overlays": "^3.15.0",
|
||||
"@react-stately/overlays": "^3.6.0",
|
||||
"@react-types/shared": "^3.18.1",
|
||||
"@react-aria/utils": "^3.18.0"
|
||||
"@react-aria/overlays": "^3.16.0",
|
||||
"@react-stately/overlays": "^3.6.1",
|
||||
"@react-types/shared": "^3.19.0",
|
||||
"@react-aria/utils": "^3.19.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": ">=18"
|
||||
|
||||
@ -38,10 +38,10 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@nextui-org/use-aria-button": "workspace:*",
|
||||
"@react-stately/toggle": "^3.6.0",
|
||||
"@react-aria/utils": "^3.18.0",
|
||||
"@react-types/shared": "^3.18.1",
|
||||
"@react-types/button": "^3.7.3"
|
||||
"@react-stately/toggle": "^3.6.1",
|
||||
"@react-aria/utils": "^3.19.0",
|
||||
"@react-types/shared": "^3.19.0",
|
||||
"@react-types/button": "^3.7.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"clean-package": "2.2.0",
|
||||
|
||||
@ -39,7 +39,7 @@
|
||||
"dependencies": {
|
||||
"@nextui-org/use-callback-ref": "workspace:*",
|
||||
"@react-stately/utils": "^3.7.0",
|
||||
"@react-aria/utils": "^3.18.0"
|
||||
"@react-aria/utils": "^3.19.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"clean-package": "2.2.0",
|
||||
|
||||
@ -34,7 +34,7 @@
|
||||
"postpack": "clean-package restore"
|
||||
},
|
||||
"dependencies": {
|
||||
"@react-aria/ssr": "^3.6.0"
|
||||
"@react-aria/ssr": "^3.7.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": ">=18"
|
||||
|
||||
|
Before Width: | Height: | Size: 328 KiB After Width: | Height: | Size: 328 KiB |
|
Before Width: | Height: | Size: 6.8 MiB After Width: | Height: | Size: 6.8 MiB |
|
Before Width: | Height: | Size: 102 KiB After Width: | Height: | Size: 102 KiB |
BIN
packages/storybook/public/images/placeholder_300x450.png
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
@ -38,10 +38,10 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@nextui-org/system": "workspace:*",
|
||||
"@react-aria/utils": "^3.18.0",
|
||||
"@react-stately/collections": "^3.9.0",
|
||||
"@react-types/shared": "^3.18.1",
|
||||
"@react-types/overlays": "^3.8.0"
|
||||
"@react-aria/utils": "^3.19.0",
|
||||
"@react-stately/collections": "^3.10.0",
|
||||
"@react-types/shared": "^3.19.0",
|
||||
"@react-types/overlays": "^3.8.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"clean-package": "2.2.0",
|
||||
|
||||
@ -44,7 +44,7 @@
|
||||
"devDependencies": {
|
||||
"react": "^18.0.0",
|
||||
"clean-package": "2.2.0",
|
||||
"framer-motion": "^10.12.18"
|
||||
"framer-motion": "^10.15.1"
|
||||
},
|
||||
"clean-package": "../../../clean-package.config.json"
|
||||
}
|
||||
|
||||