Skip to content

Commit

Permalink
export tokens and required types directly (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanielgrossman authored Aug 15, 2023
1 parent 0266186 commit 70992cd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 0 additions & 4 deletions components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@
"./styles": {
"import": "./dist/style.css",
"require": "./dist/style.css"
},
"./types": {
"import": "./dist/index.es.js",
"require": "./dist/index.cjs.js"
}
},
"sideEffects": [
Expand Down
5 changes: 4 additions & 1 deletion components/src/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export * from './icons'
export type { BoxProps } from './Box'
export { Avatar, getAvatarGradient } from './Avatar'
export { AvatarGroup } from './AvatarGroup'
export { Box } from './Box'
Expand Down Expand Up @@ -29,3 +28,7 @@ export {
getThemeAccentStyles,
} from './ThemeProvider'
export { VisuallyHidden } from './VisuallyHidden'

export type { BoxProps } from './Box'
export type { ThemeProviderProps } from './ThemeProvider'
export type { TagProps } from './Tag'
4 changes: 3 additions & 1 deletion components/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export {
VisuallyHidden,
NumericSelect,
} from './components'
export type { BoxProps } from './components'
export type { BoxProps, ThemeProviderProps, TagProps } from './components'

// Export generated icons
export * from './components/icons/generated'
Expand All @@ -55,3 +55,5 @@ export type {
Sprinkles,
Theme,
} from './css'

export * from './tokens'

1 comment on commit 70992cd

@vercel
Copy link

@vercel vercel bot commented on 70992cd Aug 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.