mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
fix(core): export * from not supported on client components (#2789)
* fix(core): export * from not supported on client components * fix(core): named exports implemented in several packages * chore(root): changeset description
This commit is contained in:
parent
2bc1d1a58b
commit
eccc2f2f3d
9
.changeset/sharp-planes-reply.md
Normal file
9
.changeset/sharp-planes-reply.md
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
"@nextui-org/react": patch
|
||||
"@nextui-org/system": patch
|
||||
"@nextui-org/aria-utils": patch
|
||||
"@nextui-org/framer-utils": patch
|
||||
"@nextui-org/react-utils": patch
|
||||
---
|
||||
|
||||
Fix #2749 Introduced named exports for several UI-related packages to enhance modularity and usability in Next.js projects.
|
||||
@ -5,5 +5,4 @@ export default defineConfig({
|
||||
target: "es2019",
|
||||
entry: ["src/index.ts", "!src/scripts"],
|
||||
format: ["cjs", "esm"],
|
||||
banner: {js: '"use client";'},
|
||||
});
|
||||
|
||||
@ -1,6 +1,35 @@
|
||||
export * from "./provider";
|
||||
export * from "./provider-context";
|
||||
export type {
|
||||
As,
|
||||
DOMElement,
|
||||
DOMElements,
|
||||
CapitalizedDOMElements,
|
||||
DOMAttributes,
|
||||
OmitCommonProps,
|
||||
RightJoinProps,
|
||||
MergeWithAs,
|
||||
InternalForwardRefRenderFunction,
|
||||
PropsOf,
|
||||
Merge,
|
||||
HTMLNextUIProps,
|
||||
PropGetter,
|
||||
ExtendVariantProps,
|
||||
ExtendVariantWithSlotsProps,
|
||||
ExtendVariants,
|
||||
} from "@nextui-org/system-rsc";
|
||||
|
||||
export * from "@nextui-org/system-rsc";
|
||||
export {
|
||||
cn,
|
||||
forwardRef,
|
||||
toIterator,
|
||||
mapPropsVariants,
|
||||
mapPropsVariantsWithCommon,
|
||||
isNextUIEl,
|
||||
extendVariants,
|
||||
} from "@nextui-org/system-rsc";
|
||||
|
||||
export type {SupportedCalendars} from "./types";
|
||||
export type {NextUIProviderProps} from "./provider";
|
||||
export type {ProviderContextProps} from "./provider-context";
|
||||
|
||||
export {NextUIProvider} from "./provider";
|
||||
export {ProviderContext, useProviderContext} from "./provider-context";
|
||||
|
||||
@ -1,3 +1,7 @@
|
||||
export * from "./item";
|
||||
export * from "./section";
|
||||
export * from "./types";
|
||||
export type {ItemProps} from "./item";
|
||||
export {BaseItem} from "./item";
|
||||
|
||||
export type {SectionProps} from "./section";
|
||||
export {BaseSection} from "./section";
|
||||
|
||||
export type {CollectionProps, PartialNode} from "./types";
|
||||
|
||||
@ -1,4 +1,15 @@
|
||||
export * from "./collections";
|
||||
export * from "./utils";
|
||||
export * from "./type-utils";
|
||||
export * from "./overlays";
|
||||
export type {NodeWithProps} from "./type-utils";
|
||||
export type {ItemProps, SectionProps, CollectionProps, PartialNode} from "./collections";
|
||||
export type {OverlayPlacement, OverlayOptions} from "./overlays";
|
||||
|
||||
export {BaseItem, BaseSection} from "./collections";
|
||||
export {isNonContiguousSelectionModifier, isCtrlKeyPressed} from "./utils";
|
||||
|
||||
export {
|
||||
ariaHideOutside,
|
||||
getTransformOrigins,
|
||||
toReactAriaPlacement,
|
||||
toOverlayPlacement,
|
||||
getShouldUseAxisPlacement,
|
||||
getArrowPlacement,
|
||||
} from "./overlays";
|
||||
|
||||
@ -1,3 +1,11 @@
|
||||
export * from "./types";
|
||||
export * from "./utils";
|
||||
export * from "./ariaHideOutside";
|
||||
export type {OverlayPlacement, OverlayOptions} from "./types";
|
||||
|
||||
export {
|
||||
getTransformOrigins,
|
||||
toReactAriaPlacement,
|
||||
toOverlayPlacement,
|
||||
getShouldUseAxisPlacement,
|
||||
getArrowPlacement,
|
||||
} from "./utils";
|
||||
|
||||
export {ariaHideOutside} from "./ariaHideOutside";
|
||||
|
||||
@ -1,2 +1,11 @@
|
||||
export * from "./transition-utils";
|
||||
export * from "./resizable-panel";
|
||||
export type {
|
||||
TransitionConfig,
|
||||
TransitionEndConfig,
|
||||
TransitionProperties,
|
||||
Variants,
|
||||
} from "./transition-utils";
|
||||
|
||||
export {TRANSITION_EASINGS, TRANSITION_DEFAULTS, TRANSITION_VARIANTS} from "./transition-utils";
|
||||
|
||||
export type {ResizablePanelProps} from "./resizable-panel";
|
||||
export {ResizablePanel} from "./resizable-panel";
|
||||
|
||||
@ -1,6 +1,34 @@
|
||||
export * from "./context";
|
||||
export * from "./refs";
|
||||
export * from "./dom";
|
||||
export * from "./dimensions";
|
||||
export type {CreateContextOptions, CreateContextReturn} from "./context";
|
||||
export type {ReactRef} from "./refs";
|
||||
export type {ShapeType} from "./dimensions";
|
||||
export type {UserAgentBrowser, UserAgentOS, ContextValue, UserAgentDeviceType} from "./dom";
|
||||
|
||||
export * from "@nextui-org/react-rsc-utils";
|
||||
export {createContext} from "./context";
|
||||
export {assignRef, mergeRefs} from "./refs";
|
||||
export {
|
||||
isBrowser,
|
||||
canUseDOM,
|
||||
getUserAgentBrowser,
|
||||
getUserAgentOS,
|
||||
detectOS,
|
||||
detectDeviceType,
|
||||
detectBrowser,
|
||||
detectTouch,
|
||||
createDOMRef,
|
||||
createFocusableRef,
|
||||
useDOMRef,
|
||||
useFocusableRef,
|
||||
useSyncRef,
|
||||
areRectsIntersecting,
|
||||
} from "./dom";
|
||||
|
||||
export {getCSSStyleVal, getRealShape} from "./dimensions";
|
||||
|
||||
export {
|
||||
DOMPropNames,
|
||||
DOMEventNames,
|
||||
getValidChildren,
|
||||
pickChildren,
|
||||
renderFn,
|
||||
filterDOMProps,
|
||||
} from "@nextui-org/react-rsc-utils";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user