Skip to content

Commit

Permalink
fix import breakpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedElywa committed Jul 1, 2020
1 parent e8d3aec commit 78db3fa
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 7 deletions.
14 changes: 13 additions & 1 deletion packages/theme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,23 @@
"main": "dist/index.js",
"module": "dist/theme.esm.js",
"types": "dist/index.d.ts",
"description": "@paljs/theme package for @paljs/ui package",
"repository": "https://github.com/paljs/ui.git",
"author": "Ahmed Elywa <[email protected]> (https://github.com/paljs/ui)",
"license": "MIT",
"scripts": {
"test": "cross-env CI=1 react-scripts test --env=jsdom",
"test:watch": "react-scripts test --env=jsdom",
"build": "tsdx build --transpileOnly",
"prepack": "yarn build",
"start": "tsdx watch"
}
},
"files": [
"dist"
],
"bugs": {
"url": "https://github.com/paljs/ui",
"email": "[email protected]"
},
"homepage": "https://github.com/paljs/ui"
}
2 changes: 1 addition & 1 deletion packages/ui/src/Col/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import React from 'react';
import styled, { css } from 'styled-components';
import { breakpointUp, getGridSize, breakpoints, getGridGutter, BreakPointKeys } from '@paljs/theme';
import { breakpointUp, getGridSize, breakpoints, getGridGutter, BreakPointKeys } from '../breakpoints';

const BP = Object.keys(breakpoints);

Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/Container/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import React from 'react';
import styled, { css } from 'styled-components';
import { maxContainer, breakpointUp, getGridGutter, BreakPointKeys } from '@paljs/theme';
import { maxContainer, breakpointUp, getGridGutter, BreakPointKeys } from '../breakpoints';

const width = css<{ fluid?: boolean }>`
${({ fluid }) =>
Expand Down
3 changes: 2 additions & 1 deletion packages/ui/src/Layout/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
*/

import styled, { css } from 'styled-components';
import { breakpointDown, ThemeKeys, ThemeObject } from '@paljs/theme';
import { ThemeKeys, ThemeObject } from '@paljs/theme';
import { breakpointDown } from '../breakpoints';
import SidebarStyle from '../Sidebar/style';
import { scrollbars } from '../utils';

Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/Row/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import React from 'react';
import styled, { css } from 'styled-components';
import { breakpointUp, getGridGutter, BreakPointKeys } from '@paljs/theme';
import { breakpointUp, getGridGutter, BreakPointKeys } from '../breakpoints';

const RowStyle = styled.div<RowProps>`
display: flex;
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/Sidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import React from 'react';
import SidebarStyle from './style';
import { ifWidthInBreakpoint, BreakPointKeys } from '@paljs/theme';
import { ifWidthInBreakpoint, BreakPointKeys } from '../breakpoints';

export interface SidebarStyleProps {
state?: 'hidden' | 'visible' | 'compacted' | 'expanded';
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/Sidebar/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import styled, { css } from 'styled-components';
import { breakpointDown } from '@paljs/theme';
import { breakpointDown } from '../breakpoints';
import { MenuStyle } from '../Menu/style';
import { scrollbars } from '../utils';
import { SidebarStyleProps } from './index';
Expand Down

0 comments on commit 78db3fa

Please sign in to comment.