Skip to content

Commit

Permalink
review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
brijeshb42 committed Jun 3, 2024
1 parent 455c26f commit b03fd52
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 173 deletions.
9 changes: 0 additions & 9 deletions packages/pigment-css-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,15 +142,6 @@
"require": "./build/Box.js",
"default": "./build/Box.js"
},
"./createTransitions": {
"types": "./build/createTransitions.d.ts",
"import": {
"types": "./build/createTransitions.d.mts",
"default": "./build/createTransitions.mjs"
},
"require": "./build/createTransitions.js",
"default": "./build/createTransitions.js"
},
"./RtlProvider": {
"types": "./build/RtlProvider.d.ts",
"import": {
Expand Down
161 changes: 0 additions & 161 deletions packages/pigment-css-react/src/createTransitions.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/pigment-css-react/src/processors/useTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ export class UseThemeProcessor extends BaseProcessor {
}

get value(): Expression {
return this.astService.stringLiteral(this.className);
return this.astService.nullLiteral();
}
}
4 changes: 3 additions & 1 deletion packages/pigment-css-react/src/useTheme.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export default function useTheme() {
return null;
throw new Error(
`${process.env.PACKAGE_NAME}: You were trying to call "useTheme" function without configuring your bundler. Make sure to install the bundler specific plugin and use it. @pigment-css/vite-plugin for Vite integration or @pigment-css/nextjs-plugin for Next.js integration.`,
);
}
2 changes: 1 addition & 1 deletion packages/pigment-css-react/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const baseConfig: Options = {
external,
};

const BASE_FILES = ['index.ts', 'theme.ts', 'Box.jsx', 'RtlProvider.tsx', 'createTransitions.ts'];
const BASE_FILES = ['index.ts', 'theme.ts', 'Box.jsx', 'RtlProvider.tsx'];

export default defineConfig([
{
Expand Down

0 comments on commit b03fd52

Please sign in to comment.