Skip to content

Commit

Permalink
Merge pull request #271 from AppQuality/update-styled-components
Browse files Browse the repository at this point in the history
Update-styled-components
  • Loading branch information
marcbon authored Oct 9, 2023
2 parents 1be7e3d + d03cf96 commit ac701a0
Show file tree
Hide file tree
Showing 11 changed files with 334 additions and 628 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"rollup": "~2.66",
"rollup-plugin-typescript2": "^0.34.1",
"storybook": "^7.0.9",
"styled-components": "^5.3.3",
"styled-components": "^6.0.0",
"typescript": "^4.5.0",
"web-vitals": "^2.1.4"
},
Expand Down Expand Up @@ -137,6 +137,6 @@
"formik": "^2.2.9",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"styled-components": "^5.3.3"
"styled-components": "^6.0.0"
}
}
2 changes: 0 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ export * from "./stories/loaders/progress";
export * from "./stories/loaders/skeleton";
export * from "./stories/loaders/spinner";
export * from "./stories/loaders/dots";
export * from "./stories/page/pageLoader";

// --- Login Form ---
export * from "./stories/login-form";
Expand All @@ -120,7 +119,6 @@ export * from "./stories/navigation/app-header";
export * from "./stories/navigation/main";
export * from "./stories/navigation/nav";
export * from "./stories/navigation/nav/nav-item";
export * from "./stories/navigation/sidebar";
export * from "./stories/navigation/chrome";

// --- Notifications ---
Expand Down
28 changes: 0 additions & 28 deletions src/stories/close/index.stories.tsx

This file was deleted.

5 changes: 2 additions & 3 deletions src/stories/navigation/header/header-item/utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { getValueAndUnit } from 'polished';
import { ThemeProps } from "styled-components";
import { theme } from "../../../theme";
import { DefaultTheme } from "styled-components";

/**
* Get unitless line height based on the given pixel-valued height and font size.
Expand All @@ -26,7 +25,7 @@ const getLineHeight = (height: string | number, fontSize: string | number) => {
return (heightValue as number) / (fontSizeValue as number);
}

export const getNavWidth = (props: ThemeProps<typeof theme>) => {
export const getNavWidth = (props: DefaultTheme) => {
return `${props.theme.space.base * 15}px`;
};

Expand Down
30 changes: 0 additions & 30 deletions src/stories/navigation/sidebar/_types.tsx

This file was deleted.

95 changes: 0 additions & 95 deletions src/stories/navigation/sidebar/index.stories.tsx

This file was deleted.

Loading

0 comments on commit ac701a0

Please sign in to comment.