From 8676516cf7c5debde86da8b78ea30b22efb6c7a4 Mon Sep 17 00:00:00 2001 From: Matheus Henrique Date: Fri, 21 Jul 2023 17:18:06 -0300 Subject: [PATCH] Revert "refactor: improve tokens exports" This reverts commit f869552a692d950a6da81c301498b5823127b913. --- packages/tokens/src/global/index.ts | 15 +++++++++++++++ packages/tokens/src/index.ts | 3 +-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/packages/tokens/src/global/index.ts b/packages/tokens/src/global/index.ts index 35374b34b2..2e122991a7 100644 --- a/packages/tokens/src/global/index.ts +++ b/packages/tokens/src/global/index.ts @@ -10,7 +10,22 @@ import elevations from './elevations'; import spacing from './spacing'; import transition from './transition'; +const tokens = { + borders, + breakpoints, + colors, + fonts, + fontSizes, + fontWeights, + lineHeights, + radii, + elevations, + spacing, + transition, +}; + export { + tokens as default, borders, breakpoints, colors, diff --git a/packages/tokens/src/index.ts b/packages/tokens/src/index.ts index c9b301058a..d810575bf3 100644 --- a/packages/tokens/src/index.ts +++ b/packages/tokens/src/index.ts @@ -1,5 +1,4 @@ -import * as tokens from './global'; +import tokens from './global'; import znCn from './locale/zn-cn'; -export * from './global'; export { tokens as default, znCn };