Skip to content

Commit

Permalink
re-export utils to consumers
Browse files Browse the repository at this point in the history
  • Loading branch information
keithamus committed Apr 15, 2024
1 parent 05ae1ee commit 10f46cf
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@
"import": "./lib-esm/index.js",
"require": "./lib/index.js"
},
"./utils/*": {
"import": "./lib-esm/utils/*",
"require": "./lib/utils/*"
},
"./utils": {
"import": "./lib-esm/utils/index.js",
"require": "./lib/utils/index.js"
},
"./experimental": {
"import": "./lib-esm/experimental/index.js",
"require": "./lib/experimental/index.js"
Expand Down
21 changes: 21 additions & 0 deletions packages/react/src/utils/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import isNumeric from './isNumeric'
import useIsomorpyhicLayoutEffect from './useIsomorphicLayoutEffect'

export {isNumeric, useIsomorpyhicLayoutEffect}

export * from './createComponent'
export * from './defaultSxProp'
export * from './deprecate'
export * from './environment'
export * from './form-story-helpers'
export * from './getBreakpointDeclarations'
export * from './invariant'
export * from './layout'
export * from './scroll'
export * from './ssr'
export * from './theme'
export * from './use-force-update'
export * from './warning'

export type * from './types'
export type {ForwardRefComponent, OwnProps, IntrinsicElement} from './polymorphic'

0 comments on commit 10f46cf

Please sign in to comment.