Skip to content

Commit

Permalink
Merge pull request #808 from gympass/DS-836
Browse files Browse the repository at this point in the history
[DS-836] - Elevation typing
  • Loading branch information
evilamaior authored May 27, 2024
2 parents 1c02bec + 07ad010 commit 6eaa8b5
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getElevation, generator } from './theme';
import { getElevation, generator } from '../theme';

const elevation = props =>
generator({
Expand Down
Original file line number Diff line number Diff line change
@@ -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', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getElevation, generator } from './theme';
import { getElevation, generator } from '../theme';

const elevation = props =>
generator({
Expand Down
2 changes: 2 additions & 0 deletions packages/system/src/elevation/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './elevation';
export type { Elevations } from './types';
9 changes: 9 additions & 0 deletions packages/system/src/elevation/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { elevations } from '@gympass/yoga-tokens';

type ElevationsValues = typeof elevations | string;

export type Elevations = {
boxShadow?: ElevationsValues;
bs?: ElevationsValues;
elevation?: ElevationsValues;
};

0 comments on commit 6eaa8b5

Please sign in to comment.