diff --git a/packages/system/src/elevation.android.js b/packages/system/src/elevation/elevation.android.ts similarity index 77% rename from packages/system/src/elevation.android.js rename to packages/system/src/elevation/elevation.android.ts index 328402c913..c34ea60b55 100644 --- a/packages/system/src/elevation.android.js +++ b/packages/system/src/elevation/elevation.android.ts @@ -1,4 +1,4 @@ -import { getElevation, generator } from './theme'; +import { getElevation, generator } from '../theme'; const elevation = props => generator({ diff --git a/packages/system/src/elevation.test.js b/packages/system/src/elevation/elevation.test.js similarity index 98% rename from packages/system/src/elevation.test.js rename to packages/system/src/elevation/elevation.test.js index d88f7dabbf..ff23592f83 100644 --- a/packages/system/src/elevation.test.js +++ b/packages/system/src/elevation/elevation.test.js @@ -1,5 +1,5 @@ import { css } from 'styled-components'; -import { elevation } from './elevation'; +import { elevation } from '.'; import { elevation as androidElevation } from './elevation.android'; describe('Web and iOS', () => { diff --git a/packages/system/src/elevation.js b/packages/system/src/elevation/elevation.ts similarity index 77% rename from packages/system/src/elevation.js rename to packages/system/src/elevation/elevation.ts index 0bfdd1a2a7..09bd1b7eb8 100644 --- a/packages/system/src/elevation.js +++ b/packages/system/src/elevation/elevation.ts @@ -1,4 +1,4 @@ -import { getElevation, generator } from './theme'; +import { getElevation, generator } from '../theme'; const elevation = props => generator({ diff --git a/packages/system/src/elevation/index.ts b/packages/system/src/elevation/index.ts new file mode 100644 index 0000000000..eb1744ec93 --- /dev/null +++ b/packages/system/src/elevation/index.ts @@ -0,0 +1,2 @@ +export * from './elevation'; +export type { Elevations } from './types'; diff --git a/packages/system/src/elevation/types.ts b/packages/system/src/elevation/types.ts new file mode 100644 index 0000000000..c47e93c5af --- /dev/null +++ b/packages/system/src/elevation/types.ts @@ -0,0 +1,9 @@ +import { elevations } from '@gympass/yoga-tokens'; + +type ElevationsValues = typeof elevations | string; + +export type Elevations = { + boxShadow?: ElevationsValues; + bs?: ElevationsValues; + elevation?: ElevationsValues; +};