-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core): named exports instead of * from, use client directive adde…
…d to main pkg
- Loading branch information
1 parent
158c2aa
commit fbb211b
Showing
8 changed files
with
44 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,31 @@ | ||
export * from "./types"; | ||
export * from "./utils"; | ||
export * from "./extend-variants"; | ||
export type { | ||
As, | ||
DOMElement, | ||
DOMElements, | ||
CapitalizedDOMElements, | ||
DOMAttributes, | ||
OmitCommonProps, | ||
RightJoinProps, | ||
MergeWithAs, | ||
InternalForwardRefRenderFunction, | ||
PropsOf, | ||
Merge, | ||
HTMLNextUIProps, | ||
PropGetter, | ||
} from "./types"; | ||
|
||
export { | ||
cn, | ||
forwardRef, | ||
toIterator, | ||
mapPropsVariants, | ||
mapPropsVariantsWithCommon, | ||
isNextUIEl, | ||
} from "./utils"; | ||
|
||
export {extendVariants} from "./extend-variants"; | ||
export type { | ||
ExtendVariantProps, | ||
ExtendVariantWithSlotsProps, | ||
ExtendVariants, | ||
} from "./extend-variants"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import {defineConfig} from "tsup"; | ||
|
||
export default defineConfig({ | ||
clean: true, | ||
target: "es2019", | ||
format: ["cjs", "esm"], | ||
banner: {js: '"use client";'}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export * from "./children"; | ||
export * from "./filter-dom-props"; | ||
export * from "./dom-props"; | ||
export * from "./functions"; | ||
export {getValidChildren, pickChildren} from "./children"; | ||
export {filterDOMProps} from "./filter-dom-props"; | ||
export {DOMPropNames, DOMEventNames} from "./dom-props"; | ||
export {renderFn} from "./functions"; |