Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: realvjy/coolshapes-react
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: lowcoder-org/coolshapes-react
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref

There isn’t anything to compare.

realvjy:main and lowcoder-org:main are entirely different commit histories.

Showing with 16,028 additions and 0 deletions.
  1. +2 −0 .eslintignore
  2. +18 −0 .eslintrc.json
  3. +2 −0 .github/FUNDING.yml
  4. +22 −0 .github/workflows/coolshapes.js.yml
  5. +19 −0 .github/workflows/release.js.yml
  6. +4 −0 .gitignore
  7. +5 −0 .npmignore
  8. +2 −0 .prettierignore
  9. +6 −0 .prettierrc
  10. +82 −0 CHANGELOG.md
  11. +21 −0 LICENSE
  12. +269 −0 README.md
  13. +2 −0 dist/cjs/coolshapes.js
  14. +1 −0 dist/cjs/coolshapes.js.map
  15. +2 −0 dist/esm/coolshapes.js
  16. +1 −0 dist/esm/coolshapes.js.map
  17. +53 −0 dist/index.d.ts
  18. +2 −0 dist/umd/coolshapes.js
  19. +1 −0 dist/umd/coolshapes.js.map
  20. +6,531 −0 package-lock.json
  21. +85 −0 package.json
  22. +54 −0 rollup.config.mjs
  23. +2 −0 src/index.tsx
  24. +70 −0 src/lib/iconBase.tsx
  25. +2 −0 src/lib/index.tsx
  26. +53 −0 src/lib/noiseMask.tsx
  27. +74 −0 src/lib/shapes.tsx
  28. +79 −0 src/shapes/ellipses/e_1.tsx
  29. +83 −0 src/shapes/ellipses/e_10.tsx
  30. +69 −0 src/shapes/ellipses/e_11.tsx
  31. +65 −0 src/shapes/ellipses/e_12.tsx
  32. +82 −0 src/shapes/ellipses/e_2.tsx
  33. +78 −0 src/shapes/ellipses/e_3.tsx
  34. +67 −0 src/shapes/ellipses/e_4.tsx
  35. +78 −0 src/shapes/ellipses/e_5.tsx
  36. +90 −0 src/shapes/ellipses/e_6.tsx
  37. +62 −0 src/shapes/ellipses/e_7.tsx
  38. +70 −0 src/shapes/ellipses/e_8.tsx
  39. +70 −0 src/shapes/ellipses/e_9.tsx
  40. +77 −0 src/shapes/flowers/f_1.tsx
  41. +65 −0 src/shapes/flowers/f_10.tsx
  42. +61 −0 src/shapes/flowers/f_11.tsx
  43. +64 −0 src/shapes/flowers/f_12.tsx
  44. +75 −0 src/shapes/flowers/f_13.tsx
  45. +72 −0 src/shapes/flowers/f_14.tsx
  46. +72 −0 src/shapes/flowers/f_15.tsx
  47. +59 −0 src/shapes/flowers/f_16.tsx
  48. +82 −0 src/shapes/flowers/f_2.tsx
  49. +78 −0 src/shapes/flowers/f_3.tsx
  50. +60 −0 src/shapes/flowers/f_4.tsx
  51. +62 −0 src/shapes/flowers/f_5.tsx
  52. +77 −0 src/shapes/flowers/f_6.tsx
  53. +78 −0 src/shapes/flowers/f_7.tsx
  54. +63 −0 src/shapes/flowers/f_8.tsx
  55. +71 −0 src/shapes/flowers/f_9.tsx
  56. +279 −0 src/shapes/index.tsx
  57. +73 −0 src/shapes/miscs/m_1.tsx
  58. +82 −0 src/shapes/miscs/m_10.tsx
  59. +58 −0 src/shapes/miscs/m_11.tsx
  60. +82 −0 src/shapes/miscs/m_2.tsx
  61. +95 −0 src/shapes/miscs/m_3.tsx
  62. +71 −0 src/shapes/miscs/m_4.tsx
  63. +65 −0 src/shapes/miscs/m_5.tsx
  64. +80 −0 src/shapes/miscs/m_6.tsx
  65. +80 −0 src/shapes/miscs/m_7.tsx
  66. +51 −0 src/shapes/miscs/m_8.tsx
  67. +84 −0 src/shapes/miscs/m_9.tsx
  68. +66 −0 src/shapes/moons/m_1.tsx
  69. +70 −0 src/shapes/moons/m_10.tsx
  70. +64 −0 src/shapes/moons/m_11.tsx
  71. +80 −0 src/shapes/moons/m_12.tsx
  72. +74 −0 src/shapes/moons/m_13.tsx
  73. +66 −0 src/shapes/moons/m_14.tsx
  74. +74 −0 src/shapes/moons/m_15.tsx
  75. +66 −0 src/shapes/moons/m_2.tsx
  76. +63 −0 src/shapes/moons/m_3.tsx
  77. +84 −0 src/shapes/moons/m_4.tsx
  78. +63 −0 src/shapes/moons/m_5.tsx
  79. +64 −0 src/shapes/moons/m_6.tsx
  80. +91 −0 src/shapes/moons/m_7.tsx
  81. +61 −0 src/shapes/moons/m_8.tsx
  82. +72 −0 src/shapes/moons/m_9.tsx
  83. +77 −0 src/shapes/numbers/n_0.tsx
  84. +72 −0 src/shapes/numbers/n_1.tsx
  85. +65 −0 src/shapes/numbers/n_2.tsx
  86. +79 −0 src/shapes/numbers/n_3.tsx
  87. +72 −0 src/shapes/numbers/n_4.tsx
  88. +68 −0 src/shapes/numbers/n_5.tsx
  89. +79 −0 src/shapes/numbers/n_6.tsx
  90. +74 −0 src/shapes/numbers/n_7.tsx
  91. +76 −0 src/shapes/numbers/n_8.tsx
  92. +76 −0 src/shapes/numbers/n_9.tsx
  93. +80 −0 src/shapes/polygons/p_1.tsx
  94. +64 −0 src/shapes/polygons/p_2.tsx
  95. +84 −0 src/shapes/polygons/p_3.tsx
  96. +78 −0 src/shapes/polygons/p_4.tsx
  97. +65 −0 src/shapes/polygons/p_5.tsx
  98. +74 −0 src/shapes/polygons/p_6.tsx
  99. +65 −0 src/shapes/polygons/p_7.tsx
  100. +45 −0 src/shapes/polygons/p_8.tsx
  101. +79 −0 src/shapes/rectangles/r_1.tsx
  102. +64 −0 src/shapes/rectangles/r_2.tsx
  103. +67 −0 src/shapes/rectangles/r_3.tsx
  104. +72 −0 src/shapes/rectangles/r_4.tsx
  105. +86 −0 src/shapes/rectangles/r_5.tsx
  106. +51 −0 src/shapes/rectangles/r_6.tsx
  107. +86 −0 src/shapes/rectangles/r_7.tsx
  108. +88 −0 src/shapes/rectangles/r_8.tsx
  109. +72 −0 src/shapes/rectangles/r_9.tsx
  110. +75 −0 src/shapes/stars/s_1.tsx
  111. +65 −0 src/shapes/stars/s_10.tsx
  112. +73 −0 src/shapes/stars/s_11.tsx
  113. +65 −0 src/shapes/stars/s_12.tsx
  114. +77 −0 src/shapes/stars/s_13.tsx
  115. +73 −0 src/shapes/stars/s_2.tsx
  116. +74 −0 src/shapes/stars/s_3.tsx
  117. +60 −0 src/shapes/stars/s_4.tsx
  118. +65 −0 src/shapes/stars/s_5.tsx
  119. +59 −0 src/shapes/stars/s_6.tsx
  120. +60 −0 src/shapes/stars/s_7.tsx
  121. +72 −0 src/shapes/stars/s_8.tsx
  122. +84 −0 src/shapes/stars/s_9.tsx
  123. +73 −0 src/shapes/triangles/t_1.tsx
  124. +74 −0 src/shapes/triangles/t_10.tsx
  125. +73 −0 src/shapes/triangles/t_11.tsx
  126. +66 −0 src/shapes/triangles/t_12.tsx
  127. +60 −0 src/shapes/triangles/t_13.tsx
  128. +71 −0 src/shapes/triangles/t_14.tsx
  129. +76 −0 src/shapes/triangles/t_2.tsx
  130. +64 −0 src/shapes/triangles/t_3.tsx
  131. +78 −0 src/shapes/triangles/t_4.tsx
  132. +80 −0 src/shapes/triangles/t_5.tsx
  133. +65 −0 src/shapes/triangles/t_6.tsx
  134. +76 −0 src/shapes/triangles/t_7.tsx
  135. +72 −0 src/shapes/triangles/t_8.tsx
  136. +91 −0 src/shapes/triangles/t_9.tsx
  137. +66 −0 src/shapes/wheels/w_1.tsx
  138. +51 −0 src/shapes/wheels/w_2.tsx
  139. +80 −0 src/shapes/wheels/w_3.tsx
  140. +67 −0 src/shapes/wheels/w_4.tsx
  141. +52 −0 src/shapes/wheels/w_5.tsx
  142. +65 −0 src/shapes/wheels/w_6.tsx
  143. +60 −0 src/shapes/wheels/w_7.tsx
  144. +125 −0 tests/shape.test.tsx
  145. +20 −0 tsconfig.json
  146. +11 −0 vitest.config.mjs
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist/
node_modules/
18 changes: 18 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"env": {
"node": true,
"browser": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "react"],
"rules": {}
}
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: realvjy
buy_me_a_coffee: realvjy
22 changes: 22 additions & 0 deletions .github/workflows/coolshapes.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build and test

on:
push:
branches: ["dev", "main"]
pull_request:
branches: ["dev", "main"]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Builds and test
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: "npm"
- run: npm ci
- run: npm run build
- run: npm test
19 changes: 19 additions & 0 deletions .github/workflows/release.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Publish Package
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run test
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.DS_Store
node_modules
.idea
*.env
5 changes: 5 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
tsconfig.json
src/
.babelrc
node_modules
rollup.config.mjs
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/

6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"tabWidth": 2,
"trailingComma": "es5",
"bracketSpacing": true,
"bracketSameLine": true
}
82 changes: 82 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# Changelog

## 1.0.0
- Update Cover

## 1.0.0
- Added SVG + PNG Zip
- Releasing v1

## 0.1.2-beta.0

- Bug fix
- Readme Update
- Action

## 0.1.1-beta.0

- Fix Random Function
- Fix state issue

## 0.1.0-beta.0

- Bug Fix
- Update Interface of iconBase
- Ready to release

## 0.0.8-alpha.1

- Bug Fix

## 0.0.7-alpha.0

- Rendering View Bug Fix for some shapes


## 0.0.6-alpha.0

- Add `number` type shapes, Total count 115
- Change the index to start from 0

## 0.0.5-alpha.1

- Add more shapes. Total count 105
- Fix noise toggle

## 0.0.5-alpha.0

- Change name to `coolshapes-react@0.0.5-alpha.0`
- Fix rendering bugs
- Added all remaining shapes

## 0.0.4-alpha.0

- Changed versioning to alpha `react-coolshapes@0.0.4-alpha.0`
- Added 90+ shapes from different categories
`Coolshape`, `Ellipse`, `Flower`, `Misc`, `Moon`, `Polygon`, `Rectangle`, `Star`, `Triangle`

## 0.0.3

- `react-coolshapes@0.0.3`
- Changed render type of shapes and added dynamic support

```jsx
<Coolshape type="star" noise="true">
```

## 0.0.2

- Published - `react-coolshapes@0.0.2`
- Minor fixes

## 0.0.1 First Publish

- NPM package published - `react-coolshapes`

- Added these 4 shapes and publish to test on [coolshap.es](https://coolshapes)
```jsx
"star-1": ShapeType;
"star-2": ShapeType;
"circle-1": ShapeType;
"circle-2": ShapeType;
```
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 Coolshapes

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading