Skip to content

Commit

Permalink
chore(styled-components): removed
Browse files Browse the repository at this point in the history
  • Loading branch information
eunchurn committed Aug 25, 2024
1 parent 2c46b91 commit 7f974b4
Show file tree
Hide file tree
Showing 13 changed files with 332 additions and 61 deletions.
7 changes: 7 additions & 0 deletions apps/next-app/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# next-app

## 1.0.5

### Patch Changes

- Updated dependencies
- @eunchurn/react-windrose@1.3.4

## 1.0.4

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/next-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "next-app",
"version": "1.0.4",
"version": "1.0.5",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
7 changes: 7 additions & 0 deletions apps/react-app/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## 1.2.15

### Patch Changes

- Updated dependencies
- @eunchurn/react-windrose@1.3.4

## 1.2.14

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/react-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-app",
"version": "1.2.14",
"version": "1.2.15",
"private": true,
"scripts": {
"build": "tsc -b && vite build",
Expand Down
6 changes: 6 additions & 0 deletions packages/react-windrose/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

## 1.3.4

### Patch Changes

- removed styled-components

## 1.3.3

### Patch Changes
Expand Down
11 changes: 4 additions & 7 deletions packages/react-windrose/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eunchurn/react-windrose",
"version": "1.3.3",
"version": "1.3.4",
"private": false,
"types": "lib/index.d.ts",
"exports": {
Expand Down Expand Up @@ -34,14 +34,12 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"lodash": "^4.17.21",
"react": "18.3.1",
"react-dom": "18.3.1",
"styled-components": "^6.1.12"
"react-dom": "18.3.1"
},
"peerDependencies": {
"react": ">=17.0.2",
"react-dom": ">=17.0.2"
"react": ">=18",
"react-dom": ">=18"
},
"devDependencies": {
"@babel/preset-typescript": "^7.24.7",
Expand All @@ -51,7 +49,6 @@
"@types/react": "18.3.4",
"@types/react-dom": "18.3.0",
"@types/react-is": "18.3.0",
"@types/styled-components": "5.1.34",
"jest-environment-jsdom": "29.7.0",
"react-is": "18.3.1",
"ts-jest": "29.2.5",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* eslint-disable @typescript-eslint/ban-ts-comment */
import React from "react";
import * as d3 from "d3";
import { AxisContainer, Axis } from "./WindRoseChart.style";
import { ChartPropTypes, ChartPropsOnly, ChartDefaultProps, DataType } from "./Types";
import { useResponsive } from "./hooks";

Expand Down Expand Up @@ -220,13 +219,12 @@ export function Chart(props: ChartPropTypes) {
g.exit().remove();
}, [containerSize.width, data]);
return (
<AxisContainer ref={axisContainerRef} {...restProps}>
<Axis
className="axis"
<div ref={axisContainerRef} {...restProps}>
<svg
width={size.width}
height={size.height}
ref={containerRef}
/>
</AxisContainer>
</div>
);
}
13 changes: 0 additions & 13 deletions packages/react-windrose/src/WindRose/WindRoseChart.style.tsx

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"use client";

import { entries } from "lodash";
import React from "react";

export function useResponsive(
Expand Down
1 change: 0 additions & 1 deletion packages/react-windrose/src/WindRose/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export * from "./WindRoseChart.component";
export * from "./Types";
export * from "./WindRoseChart.style";
12 changes: 9 additions & 3 deletions packages/react-windrose/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
"target": "esnext",
"module": "esnext"
},
"include": ["src"],
"exclude": ["lib", "node_modules", "**/__tests__"]
}
"include": [
"src"
],
"exclude": [
"lib",
"node_modules",
"**/__tests__"
]
}
4 changes: 2 additions & 2 deletions packages/react-windrose/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { defineConfig } from "tsup";
import cssModulesPlugin from "esbuild-css-modules-plugin";

export default defineConfig((options) => ({
entry: ["src/index.ts", "src/**/*.ts", "src/**/*.tsx", "!**/__tests__"],
Expand All @@ -13,5 +14,4 @@ export default defineConfig((options) => ({
minify: !options.watch,
banner: { js: '"use client";' },
...options,
}));

}));
Loading

0 comments on commit 7f974b4

Please sign in to comment.