Skip to content

Commit

Permalink
feat: add exports for experimental components
Browse files Browse the repository at this point in the history
  • Loading branch information
Martí Malek authored and Lena Rashkovan committed Sep 13, 2024
1 parent a6afc67 commit 6dd5632
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 6 deletions.
24 changes: 21 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,29 @@
{
"name": "@freenow/wave",
"version": "2.5.0",
"version": "2.6.0-rc.8",
"description": "React components of the Wave design system for your Front-End project",
"main": "lib/cjs/index.js",
"typings": "lib/types/index.d.ts",
"module": "lib/esm/index.js",
"exports": {
".": {
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"default": "./lib/esm/index.js"
},
"./experimental": {
"import": "./lib/esm/experimental/index.js",
"require": "./lib/cjs/experimental/index.js",
"default": "./lib/esm/experimental/index.js"
}
},
"typesVersions": {
"*": {
"experimental": [
"lib/types/experimental/index.d.ts"
]
}
},
"bin": {
"run_v2_migration": "./scripts/run_v2_migration.sh"
},
Expand Down Expand Up @@ -44,8 +63,7 @@
"url": "https://github.com/freenowtech/wave.git"
},
"files": [
"lib/",
"codemods/"
"lib/"
],
"license": "Apache-2.0",
"overrides": {
Expand Down
1 change: 1 addition & 0 deletions src/essentials/experimental/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './theme';
6 changes: 3 additions & 3 deletions src/essentials/experimental/theme.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { DefaultTheme } from 'styled-components';
import { Spaces, Breakpoints, MediaQueries } from '../index';
import { Breakpoints, MediaQueries } from '../index';

const ExperimentalSpaces = [
'0', // 0
Expand All @@ -24,7 +24,7 @@ interface ExperimentalFontWeights {
bold: number;
}

export interface ExperimentalTheme extends DefaultTheme {
interface ExperimentalTheme extends DefaultTheme {
lineHeights: string[];
fontWeights: ExperimentalFontWeights;
chips: any;
Expand Down Expand Up @@ -109,4 +109,4 @@ function fontStack(fonts: string[]): string {
return fonts.map(font => (font.includes(' ') ? `"${font}"` : font)).join(', ');
}

export { theme };
export { theme, ExperimentalTheme };
2 changes: 2 additions & 0 deletions src/experimental/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from '../components/experimental';
export * from '../essentials/experimental';
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export * from './components';
export * from './essentials';
export * as experimental from './experimental';
export * from './hooks';
export * from './icons';
export * from './utils';

0 comments on commit 6dd5632

Please sign in to comment.