Skip to content

Commit

Permalink
[react] Remove sx transform logic and leverage Emotion unitless (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp authored Jun 19, 2024
1 parent 7678829 commit e15b24f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 80 deletions.
10 changes: 0 additions & 10 deletions packages/pigment-css-react/src/utils/cssFnValueToVariable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { parseExpression } from '@babel/parser';
import * as t from '@babel/types';
import type { Expression } from '@babel/types';
import { isUnitLess } from './isUnitLess';
import { cssFunctionTransformerPlugin } from './cssFunctionTransformerPlugin';
import type { Theme } from './extendTheme';

interface StyleObj {
Expand Down Expand Up @@ -92,15 +91,6 @@ function transformThemeKeysInFn(
}

const result = transformSync(functionString, {
plugins: [
[
cssFunctionTransformerPlugin,
{
styleKey,
options,
},
],
],
filename: filename ?? 'intermediate-fn.ts',
ast: true,
configFile: false,
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ function App(props) {
{
className: 'd1h14by3',
vars: {
'd1h14by3-0': [
props.tier.title === 'Professional' ? 'var(--mui-palette-grey-50)' : undefined,
false,
],
'd1h14by3-0': [props.tier.title === 'Professional' ? 'grey.50' : undefined, false],
},
},
{},
Expand Down

0 comments on commit e15b24f

Please sign in to comment.