Skip to content

Commit

Permalink
mod: rename the util calc to genCalc
Browse files Browse the repository at this point in the history
  • Loading branch information
YumoImer committed Jun 13, 2024
1 parent 2fc7119 commit 1e06d3f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
import type { StyleProviderProps } from './StyleContext';
import { createCache, StyleProvider } from './StyleContext';
import type { AbstractCalculator, DerivativeFunc, TokenType } from './theme';
import { calc, createTheme, Theme } from './theme';
import { createTheme, genCalc, Theme } from './theme';
import type { Transformer } from './transformers/interface';
import legacyLogicalPropertiesTransformer from './transformers/legacyLogicalProperties';
import px2remTransformer from './transformers/px2rem';
Expand Down Expand Up @@ -46,7 +46,7 @@ export {
// util
token2CSSVar,
unit,
calc,
genCalc,
};
export type {
TokenType,
Expand Down
2 changes: 1 addition & 1 deletion src/theme/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export { default as calc } from './calc';
export { default as genCalc } from './calc';
export type { default as AbstractCalculator } from './calc/calculator';
export { default as createTheme } from './createTheme';
export type { DerivativeFunc, TokenType } from './interface';
Expand Down
2 changes: 1 addition & 1 deletion tests/calc.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { AbstractCalculator } from '../src';
import { calc as genCalc } from '../src';
import { genCalc } from '../src';

describe('calculator', () => {
const cases: [
Expand Down

0 comments on commit 1e06d3f

Please sign in to comment.