Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

feat: wavy-dot-pattern (#62)

Tomonari Feehan7d915af04e3a
diff --git a/config/docs.ts b/config/docs.ts
index a7ae0c44..cc39991f 100644
--- a/config/docs.ts
+++ b/config/docs.ts
@@ -341,6 +341,12 @@ export const docsConfig: DocsConfig = {
href: `/docs/components/radial-gradient`,
items: [],
},
+ {
+ title: "Wavy Dot Pattern",
+ href: `/docs/components/wavy-dot-pattern`,
+ items: [],
+ label: "New",
+ },
],
},
],
diff --git a/content/docs/components/wavy-dot-pattern.mdx b/content/docs/components/wavy-dot-pattern.mdx
new file mode 100644
index 00000000..9fc536fb
--- /dev/null
+++ b/content/docs/components/wavy-dot-pattern.mdx
@@ -0,0 +1,39 @@
+---
+title: Wavy Dot Pattern
+date: 2024-05-24
+description: A background dot pattern that ripples when dots are clicked.
+author: tomonarifeehan
+published: true
+---
+
+<ComponentPreview name = "wavy-dot-pattern-demo" />
+
+<Steps>
+
+### Installation
+
+Copy and paste the following code into your project.
+
+```bash
+npm i react-anime
+```
+
+```text
+components/magicui/wavy-dot-pattern.tsx
+```
+
+<ComponentSource name = "wavy-dot-pattern" />
+
+</Steps>
+
+## Props
+
+### Dot Pattern
+
+| Prop | Type | Description | Default |
+| ---------- | ------ | ----------------------------- | ------- |
+| className | string | Class name of the dot grid | - |
+| gridWidth | number | Width of the dot grid | 30 |
+| gridHeight | number | Height of the dot grid | 15 |
+| dotWidth | number | Width of the dot | 8 |
+| dotWidth | number | Width of the dot | 8 |
\ No newline at end of file
diff --git a/package.json b/package.json
index cee6ba15..bdeda6c3 100644
--- a/package.json
+++ b/package.json
@@ -89,6 +89,7 @@
"postcss": "8.4.32",
"posthog-js": "^1.96.1",
"react": "18.2.0",
+ "react-anime": "^4.1.1",
"react-day-picker": "^8.9.1",
"react-dom": "18.2.0",
"react-email": "1.9.4",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 63eaae61..c859d7f2 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -209,6 +209,9 @@ importers:
react:
specifier: 18.2.0
version: 18.2.0
+ react-anime:
+ specifier: ^4.1.1
react-day-picker:
specifier: ^8.9.1
@@ -374,8 +377,8 @@ packages:
resolution: {integrity: sha512-qrSfCYxYQB5owCmGLbl8XRpX1ytXlpueOb0N0UmQwA073KZxejgQTzAmJezxvpwQD9uGtK2shHdi55QT+MbjIw==}
engines: {node: '>=6.9.0'}
- '@babel/[email protected]':
- resolution: {integrity: sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg==}
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-DitEzDfOMnd13kZnDqns1ccmftwJTS9DMkyn9pYTxulS7bZxUxpMly3Nf23QQ6NwA4UB8lAqjbqWtyvElEMAkg==}
engines: {node: '>=6.9.0'}
@@ -419,8 +422,8 @@ packages:
resolution: {integrity: sha512-6gfrPwh7OuT6gZyJZvd6WbTfrqAo7vm4xCzAXOusKqq/vWdKXphTpj5klHKNmRUU6/QRGlBsyU9mAIPaWHlqJA==}
engines: {node: '>=6.9.0'}
- '@babel/[email protected]':
- resolution: {integrity: sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==}
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-a26dmxFJBF62rRO9mmpgrfTLsAuyHk4e1hKTUkD/fcMfynt8gvEKwQPQDVxWhca8dHoDck+55DFt42zV0QMw5g==}
engines: {node: '>=6.9.0'}
@@ -433,8 +436,8 @@ packages:
resolution: {integrity: sha512-HBwaojN0xFRx4yIvpwGqxiV2tUfl7401jlok564NgB9EHS1y6QT17FmKWm4ztqjeVdXLuC4fSvHc5ePpQjoTbw==}
engines: {node: '>=6.9.0'}
- '@babel/[email protected]':
- resolution: {integrity: sha512-9cUznXMG0+FxRuJfvL82QlTqIzhVW9sL0KjMPHhAOOvpQGL8QtdxnBKILjBqxlHyliz0yCa1G903ZXI/FuHy2w==}
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-MZG/JcWfxybKwsA9N9PmtF2lOSFSEMVCpIRrbxccZFLJPrJciJdG/UhSh5W96GEteJI2ARqm5UAHxISwRDLSNg==}
engines: {node: '>=6.9.0'}
@@ -461,16 +464,20 @@ packages:
resolution: {integrity: sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==}
engines: {node: '>=6.9.0'}
- '@babel/[email protected]':
- resolution: {integrity: sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==}
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-WdJjwMEkmBicq5T9fm/cHND3+UlFa2Yj8ALLgmoSQAJZysYbBjw+azChSGPN4DSPLXOcooGRvDwZWMcF/mLO2Q==}
engines: {node: '>=6.9.0'}
resolution: {integrity: sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==}
engines: {node: '>=6.9.0'}
- '@babel/[email protected]':
- resolution: {integrity: sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==}
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-4yA7s865JHaqUdRbnaxarZREuPTHrjpDT+pXoAZ1yhyo6uFnIEpS8VMu16siFOHDpZNKYv5BObhsB//ycbICyw==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-Jktc8KkF3zIkePb48QO+IapbXlSapOW9S+ogZZkcO6bABgYAxtZcjZ/O005111YLf+j4M84uEgwYoidDkXbCkQ==}
engines: {node: '>=6.9.0'}
@@ -629,8 +636,8 @@ packages:
peerDependencies:
'@babel/core': ^7.0.0-0
- '@babel/[email protected]':
- resolution: {integrity: sha512-EB2MELswq55OHUoRZLGg/zC7QWUKfNLpE57m/S2yr1uEneIgsTgrSzXP3NXEsMkVn76OlaVVnzN+ugObuYGwhg==}
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-lWfvAIFNWMlCsU0DRUun2GpFwZdGTukLaHJqRh1JRb80NdAP5Sb1HDHB5X9P9OtgZHQl089UzQkpYlBq2VTPRw==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
@@ -917,8 +924,8 @@ packages:
peerDependencies:
'@babel/core': ^7.0.0-0
- '@babel/[email protected]':
- resolution: {integrity: sha512-GnvhtVfA2OAtzdX58FJxU19rhoGeQzyVndw3GgtdECQvQFXPEZIOVULHVZGAYmOgmqjXpVpfocAbSjh99V/Fqw==}
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-/3iiEEHDsJuj9QU09gbyWGSUxDboFcD7Nj6dnHIlboWSodxXAoaY/zlNMHeYAC0WsERMqgO9a7UaM77CsYgWcg==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
@@ -935,8 +942,8 @@ packages:
peerDependencies:
'@babel/core': ^7.0.0-0
- '@babel/[email protected]':
- resolution: {integrity: sha512-5xOpoPguCZCRbo/JeHlloSkTA8Bld1J/E1/kLfD1nsuiW1m8tduTA1ERCgIZokDflX/IBzKcqR3l7VlRgiIfHA==}
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-pCtPHhpRZHfwdA5G1Gpk5mIzMA99hv0R8S/Ket50Rw+S+8hkt3wBWqdqHaPw0CuUYxdshUgsPiLQ5fAs4ASMhw==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0-0
@@ -1063,8 +1070,8 @@ packages:
resolution: {integrity: sha512-HfuJlI8qq3dEDmNU5ChzzpZRWq+oxCZQyMzIMEqLho+AQnhMnKQUzH6ydo3RBl/YjPCuk68Y6s0Gx0AeyULiWw==}
engines: {node: '>=6.9.0'}
- '@babel/[email protected]':
- resolution: {integrity: sha512-+j7a5c253RfKh8iABBhywc8NSfP5LURe7Uh4qpsh6jc+aLJguvmIUBdjSdEMQv2bENrCR5MfRdjGo7vzS/ob7w==}
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-WaMsgi6Q8zMgMth93GvWPXkhAIEobfsIkLTacoVZoK1J0CevIPGYY2Vo5YvJGqyHqXM6P4ppOYGsIRU8MM9pFQ==}
engines: {node: '>=6.9.0'}
'@commander-js/[email protected]':
@@ -3038,6 +3045,9 @@ packages:
resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==}
+ resolution: {integrity: sha512-Ao95qWLpDPXXM+WrmwcKbl6uNlC5tjnowlaRYtuVDHHoygjtIPfDUoK9NthrlZsQSKjZXlmji2TrBUAVbiH0LQ==}
+
resolution: {integrity: sha512-hCv9AqTQ8ycjpSd3upOJd7vFwW1JaoYQ7tpham03GJ1ca8/65rqn0RpaWpItOAd6ylW9wAw6luXYPJIyPFVOww==}
@@ -6106,6 +6116,12 @@ packages:
resolution: {integrity: sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==}
engines: {node: '>= 0.6'}
+ resolution: {integrity: sha512-w6oe/6PZ3Swm2Z0EKvawJzvK8iN2gC0NbevjSIEguxY8KuDg/HaDROksLHVrPO5tFpRSEQg2jzy48gcfquDREQ==}
+ peerDependencies:
+ react: ^17.x
+ react-dom: ^17.x
+
resolution: {integrity: sha512-mz+qeyrOM7++1NCb1ARXmkjMkzWVh2GL9YiPbRjKe0zHccvekk4HE+0MPOZOrosn8r8zTHIIeOUXTmXRqmkRmg==}
peerDependencies:
@@ -7328,7 +7344,7 @@ snapshots:
'@babel/parser': 7.24.0
'@babel/template': 7.24.0
'@babel/traverse': 7.24.0
- '@babel/types': 7.24.0
+ '@babel/types': 7.24.6
convert-source-map: 2.0.0
debug: 4.3.4
gensync: 1.0.0-beta.2
@@ -7339,23 +7355,23 @@ snapshots:
dependencies:
- '@babel/types': 7.24.0
+ '@babel/types': 7.24.6
'@jridgewell/gen-mapping': 0.3.4
'@jridgewell/trace-mapping': 0.3.23
jsesc: 2.5.2
- '@babel/[email protected]':
+ '@babel/[email protected]':
dependencies:
- '@babel/types': 7.24.0
+ '@babel/types': 7.24.6
dependencies:
- '@babel/types': 7.24.0
+ '@babel/types': 7.24.6
dependencies:
'@babel/compat-data': 7.23.5
- '@babel/helper-validator-option': 7.23.5
+ '@babel/helper-validator-option': 7.24.6
browserslist: 4.23.0
lru-cache: 5.1.1
semver: 6.3.1
@@ -7363,7 +7379,7 @@ snapshots:
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-annotate-as-pure': 7.22.5
+ '@babel/helper-annotate-as-pure': 7.24.6
'@babel/helper-environment-visitor': 7.22.20
'@babel/helper-function-name': 7.23.0
'@babel/helper-member-expression-to-functions': 7.23.0
@@ -7376,7 +7392,7 @@ snapshots:
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-annotate-as-pure': 7.22.5
+ '@babel/helper-annotate-as-pure': 7.24.6
regexpu-core: 5.3.2
semver: 6.3.1
@@ -7384,7 +7400,7 @@ snapshots:
dependencies:
'@babel/core': 7.24.0
'@babel/helper-compilation-targets': 7.23.6
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
debug: 4.3.4
lodash.debounce: 4.0.8
resolve: 1.22.8
@@ -7396,39 +7412,39 @@ snapshots:
dependencies:
'@babel/template': 7.24.0
- '@babel/types': 7.24.0
+ '@babel/types': 7.24.6
dependencies:
- '@babel/types': 7.24.0
+ '@babel/types': 7.24.6
dependencies:
- '@babel/types': 7.24.0
+ '@babel/types': 7.24.6
- '@babel/[email protected]':
+ '@babel/[email protected]':
dependencies:
- '@babel/types': 7.24.0
+ '@babel/types': 7.24.6
dependencies:
'@babel/core': 7.24.0
'@babel/helper-environment-visitor': 7.22.20
- '@babel/helper-module-imports': 7.22.15
+ '@babel/helper-module-imports': 7.24.6
'@babel/helper-simple-access': 7.22.5
'@babel/helper-split-export-declaration': 7.22.6
- '@babel/helper-validator-identifier': 7.22.20
+ '@babel/helper-validator-identifier': 7.24.6
dependencies:
- '@babel/types': 7.24.0
+ '@babel/types': 7.24.6
- '@babel/[email protected]': {}
+ '@babel/[email protected]': {}
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-annotate-as-pure': 7.22.5
+ '@babel/helper-annotate-as-pure': 7.24.6
'@babel/helper-environment-visitor': 7.22.20
'@babel/helper-wrap-function': 7.22.20
@@ -7441,33 +7457,35 @@ snapshots:
dependencies:
- '@babel/types': 7.24.0
+ '@babel/types': 7.24.6
dependencies:
- '@babel/types': 7.24.0
+ '@babel/types': 7.24.6
dependencies:
- '@babel/types': 7.24.0
+ '@babel/types': 7.24.6
- '@babel/[email protected]': {}
+ '@babel/[email protected]': {}
'@babel/[email protected]': {}
- '@babel/[email protected]': {}
+ '@babel/[email protected]': {}
+
+ '@babel/[email protected]': {}
dependencies:
'@babel/helper-function-name': 7.23.0
'@babel/template': 7.24.0
- '@babel/types': 7.24.0
+ '@babel/types': 7.24.6
dependencies:
'@babel/template': 7.24.0
'@babel/traverse': 7.24.0
- '@babel/types': 7.24.0
+ '@babel/types': 7.24.6
transitivePeerDependencies:
- supports-color
@@ -7479,17 +7497,17 @@ snapshots:
dependencies:
- '@babel/types': 7.24.0
+ '@babel/types': 7.24.6
'@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.23.3(@babel/[email protected])':
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
'@babel/helper-skip-transparent-expression-wrappers': 7.22.5
'@babel/plugin-transform-optional-chaining': 7.23.4(@babel/[email protected])
@@ -7497,13 +7515,13 @@ snapshots:
dependencies:
'@babel/core': 7.24.0
'@babel/helper-environment-visitor': 7.22.20
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
'@babel/helper-environment-visitor': 7.22.20
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
'@babel/helper-remap-async-to-generator': 7.22.20(@babel/[email protected])
'@babel/plugin-syntax-async-generators': 7.8.4(@babel/[email protected])
@@ -7511,24 +7529,24 @@ snapshots:
dependencies:
'@babel/core': 7.24.0
'@babel/helper-create-class-features-plugin': 7.24.0(@babel/[email protected])
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
'@babel/plugin-syntax-export-default-from': 7.23.3(@babel/[email protected])
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
'@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/[email protected])
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
'@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/[email protected])
@@ -7536,20 +7554,20 @@ snapshots:
'@babel/compat-data': 7.23.5
'@babel/core': 7.24.0
'@babel/helper-compilation-targets': 7.23.6
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
'@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/[email protected])
'@babel/plugin-transform-parameters': 7.23.3(@babel/[email protected])
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
'@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/[email protected])
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
'@babel/helper-skip-transparent-expression-wrappers': 7.22.5
'@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/[email protected])
@@ -7560,165 +7578,165 @@ snapshots:
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
'@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/[email protected])
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
'@babel/helper-environment-visitor': 7.22.20
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
'@babel/helper-remap-async-to-generator': 7.22.20(@babel/[email protected])
'@babel/plugin-syntax-async-generators': 7.8.4(@babel/[email protected])
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-module-imports': 7.22.15
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-module-imports': 7.24.6
+ '@babel/helper-plugin-utils': 7.24.6
'@babel/helper-remap-async-to-generator': 7.22.20(@babel/[email protected])
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
'@babel/helper-create-class-features-plugin': 7.24.0(@babel/[email protected])
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
'@babel/helper-create-class-features-plugin': 7.24.0(@babel/[email protected])
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
'@babel/plugin-syntax-class-static-block': 7.14.5(@babel/[email protected])
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-annotate-as-pure': 7.22.5
+ '@babel/helper-annotate-as-pure': 7.24.6
'@babel/helper-compilation-targets': 7.23.6
'@babel/helper-environment-visitor': 7.22.20
'@babel/helper-function-name': 7.23.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
'@babel/helper-replace-supers': 7.22.20(@babel/[email protected])
'@babel/helper-split-export-declaration': 7.22.6
globals: 11.12.0
@@ -7726,53 +7744,53 @@ snapshots:
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
'@babel/template': 7.24.0
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
'@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/[email protected])
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
'@babel/plugin-syntax-dynamic-import': 7.8.3(@babel/[email protected])
dependencies:
'@babel/core': 7.24.0
'@babel/helper-builder-binary-assignment-operator-visitor': 7.22.15
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
'@babel/plugin-syntax-export-namespace-from': 7.8.3(@babel/[email protected])
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
'@babel/plugin-syntax-flow': 7.23.3(@babel/[email protected])
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
'@babel/helper-skip-transparent-expression-wrappers': 7.22.5
@@ -7780,41 +7798,41 @@ snapshots:
'@babel/core': 7.24.0
'@babel/helper-compilation-targets': 7.23.6
'@babel/helper-function-name': 7.23.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
'@babel/plugin-syntax-json-strings': 7.8.3(@babel/[email protected])
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
'@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/[email protected])
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
'@babel/helper-module-transforms': 7.23.3(@babel/[email protected])
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
'@babel/helper-module-transforms': 7.23.3(@babel/[email protected])
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
'@babel/helper-simple-access': 7.22.5
@@ -7822,36 +7840,36 @@ snapshots:
'@babel/core': 7.24.0
'@babel/helper-hoist-variables': 7.22.5
'@babel/helper-module-transforms': 7.23.3(@babel/[email protected])
- '@babel/helper-plugin-utils': 7.24.0
- '@babel/helper-validator-identifier': 7.22.20
+ '@babel/helper-plugin-utils': 7.24.6
+ '@babel/helper-validator-identifier': 7.24.6
dependencies:
'@babel/core': 7.24.0
'@babel/helper-module-transforms': 7.23.3(@babel/[email protected])
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
'@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/[email protected])
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
'@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/[email protected])
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
'@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/[email protected])
@@ -7859,93 +7877,93 @@ snapshots:
'@babel/compat-data': 7.23.5
'@babel/core': 7.24.0
'@babel/helper-compilation-targets': 7.23.6
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
'@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/[email protected])
'@babel/plugin-transform-parameters': 7.23.3(@babel/[email protected])
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
'@babel/helper-replace-supers': 7.22.20(@babel/[email protected])
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
'@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/[email protected])
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
'@babel/helper-skip-transparent-expression-wrappers': 7.22.5
'@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/[email protected])
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
'@babel/helper-create-class-features-plugin': 7.24.0(@babel/[email protected])
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-annotate-as-pure': 7.22.5
+ '@babel/helper-annotate-as-pure': 7.24.6
'@babel/helper-create-class-features-plugin': 7.24.0(@babel/[email protected])
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
'@babel/plugin-syntax-private-property-in-object': 7.14.5(@babel/[email protected])
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-annotate-as-pure': 7.22.5
- '@babel/helper-module-imports': 7.22.15
- '@babel/helper-plugin-utils': 7.24.0
- '@babel/plugin-syntax-jsx': 7.23.3(@babel/[email protected])
- '@babel/types': 7.24.0
+ '@babel/helper-annotate-as-pure': 7.24.6
+ '@babel/helper-module-imports': 7.24.6
+ '@babel/helper-plugin-utils': 7.24.6
+ '@babel/plugin-syntax-jsx': 7.24.6(@babel/[email protected])
+ '@babel/types': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
regenerator-transform: 0.15.2
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-module-imports': 7.22.15
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-module-imports': 7.24.6
+ '@babel/helper-plugin-utils': 7.24.6
babel-plugin-polyfill-corejs2: 0.4.8(@babel/[email protected])
babel-plugin-polyfill-corejs3: 0.9.0(@babel/[email protected])
babel-plugin-polyfill-regenerator: 0.5.5(@babel/[email protected])
@@ -7956,67 +7974,67 @@ snapshots:
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
'@babel/helper-skip-transparent-expression-wrappers': 7.22.5
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-annotate-as-pure': 7.22.5
+ '@babel/helper-annotate-as-pure': 7.24.6
'@babel/helper-create-class-features-plugin': 7.24.0(@babel/[email protected])
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
'@babel/plugin-syntax-typescript': 7.23.3(@babel/[email protected])
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
'@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/[email protected])
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
'@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/[email protected])
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/core': 7.24.0
'@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/[email protected])
- '@babel/helper-plugin-utils': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
dependencies:
'@babel/compat-data': 7.23.5
'@babel/core': 7.24.0
'@babel/helper-compilation-targets': 7.23.6
- '@babel/helper-plugin-utils': 7.24.0
- '@babel/helper-validator-option': 7.23.5
+ '@babel/helper-plugin-utils': 7.24.6
+ '@babel/helper-validator-option': 7.24.6
'@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression': 7.23.3(@babel/[email protected])
'@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining': 7.23.3(@babel/[email protected])
'@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly': 7.23.7(@babel/[email protected])
@@ -8099,23 +8117,23 @@ snapshots:
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
- '@babel/helper-validator-option': 7.23.5
+ '@babel/helper-plugin-utils': 7.24.6
+ '@babel/helper-validator-option': 7.24.6
'@babel/plugin-transform-flow-strip-types': 7.23.3(@babel/[email protected])
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
- '@babel/types': 7.24.0
+ '@babel/helper-plugin-utils': 7.24.6
+ '@babel/types': 7.24.6
esutils: 2.0.3
dependencies:
'@babel/core': 7.24.0
- '@babel/helper-plugin-utils': 7.24.0
- '@babel/helper-validator-option': 7.23.5
- '@babel/plugin-syntax-jsx': 7.23.3(@babel/[email protected])
+ '@babel/helper-plugin-utils': 7.24.6
+ '@babel/helper-validator-option': 7.24.6
+ '@babel/plugin-syntax-jsx': 7.24.6(@babel/[email protected])
'@babel/plugin-transform-modules-commonjs': 7.23.3(@babel/[email protected])
'@babel/plugin-transform-typescript': 7.23.6(@babel/[email protected])
@@ -8138,7 +8156,7 @@ snapshots:
dependencies:
'@babel/code-frame': 7.23.5
'@babel/parser': 7.24.0
- '@babel/types': 7.24.0
+ '@babel/types': 7.24.6
dependencies:
@@ -8149,16 +8167,16 @@ snapshots:
'@babel/helper-hoist-variables': 7.22.5
'@babel/helper-split-export-declaration': 7.22.6
'@babel/parser': 7.24.0
- '@babel/types': 7.24.0
+ '@babel/types': 7.24.6
debug: 4.3.4
globals: 11.12.0
transitivePeerDependencies:
- supports-color
- '@babel/[email protected]':
+ '@babel/[email protected]':
dependencies:
- '@babel/helper-string-parser': 7.23.4
- '@babel/helper-validator-identifier': 7.22.20
+ '@babel/helper-string-parser': 7.24.6
+ '@babel/helper-validator-identifier': 7.24.6
to-fast-properties: 2.0.0
@@ -10001,8 +10019,8 @@ snapshots:
'@babel/plugin-transform-parameters': 7.23.3(@babel/[email protected])
'@babel/plugin-transform-private-methods': 7.23.3(@babel/[email protected])
'@babel/plugin-transform-private-property-in-object': 7.23.4(@babel/[email protected])
- '@babel/plugin-transform-react-display-name': 7.23.3(@babel/[email protected])
- '@babel/plugin-transform-react-jsx': 7.23.4(@babel/[email protected])
+ '@babel/plugin-transform-react-display-name': 7.24.6(@babel/[email protected])
+ '@babel/plugin-transform-react-jsx': 7.24.6(@babel/[email protected])
'@babel/plugin-transform-react-jsx-self': 7.23.3(@babel/[email protected])
'@babel/plugin-transform-react-jsx-source': 7.23.3(@babel/[email protected])
'@babel/plugin-transform-runtime': 7.24.0(@babel/[email protected])
@@ -10444,6 +10462,8 @@ snapshots:
json-schema-traverse: 0.4.1
uri-js: 4.4.1
+
@@ -12987,7 +13007,7 @@ snapshots:
dependencies:
'@babel/traverse': 7.24.0
- '@babel/types': 7.24.0
+ '@babel/types': 7.24.6
invariant: 2.2.4
metro-symbolicate: 0.80.6
nullthrows: 1.1.1
@@ -13023,7 +13043,7 @@ snapshots:
'@babel/core': 7.24.0
'@babel/generator': 7.23.6
'@babel/parser': 7.24.0
- '@babel/types': 7.24.0
+ '@babel/types': 7.24.6
metro: 0.80.6
metro-babel-transformer: 0.80.6
metro-cache: 0.80.6
@@ -13046,7 +13066,7 @@ snapshots:
'@babel/parser': 7.24.0
'@babel/template': 7.24.0
'@babel/traverse': 7.24.0
- '@babel/types': 7.24.0
+ '@babel/types': 7.24.6
accepts: 1.3.8
chalk: 4.1.2
ci-info: 2.0.0
@@ -14150,6 +14170,12 @@ snapshots:
+ dependencies:
+ animejs: 3.2.2
+ react: 18.2.0
+ react-dom: 18.2.0([email protected])
+
dependencies:
date-fns: 2.30.0
diff --git a/registry/components/example/wavy-dot-pattern-demo.tsx b/registry/components/example/wavy-dot-pattern-demo.tsx
new file mode 100644
index 00000000..5cd64afd
--- /dev/null
+++ b/registry/components/example/wavy-dot-pattern-demo.tsx
@@ -0,0 +1,18 @@
+import WavyDotPattern from "@/registry/components/magicui/wavy-dot-pattern";
+
+export default function WavyDotPatternDemo() {
+ return (
+ <div className="relative flex h-full w-full max-w-[32rem] items-center justify-center overflow-hidden rounded-lg border bg-background p-20 md:shadow-xl ">
+ <p className="z-10 whitespace-pre-wrap text-center text-4xl font-semibold tracking-tighter text-black dark:text-white">
+ Wavy Dot Pattern
+ </p>
+
+ <WavyDotPattern
+ gridWidth={30}
+ gridHeight={15}
+ dotWidth={8}
+ dotHeight={8}
+ />
+ </div>
+ );
+}
diff --git a/registry/components/magicui/wavy-dot-pattern.tsx b/registry/components/magicui/wavy-dot-pattern.tsx
new file mode 100644
index 00000000..63eb63c8
--- /dev/null
+++ b/registry/components/magicui/wavy-dot-pattern.tsx
@@ -0,0 +1,93 @@
+import { cn } from "@/lib/utils";
+import { useState } from "react";
+import { anime } from "react-anime";
+
+interface WavyDotPatternProps {
+ className?: string;
+ gridWidth?: number;
+ gridHeight?: number;
+ dotWidth?: number;
+ dotHeight?: number;
+}
+
+export const WavyDotPattern = ({
+ className,
+ gridWidth,
+ gridHeight,
+ dotWidth,
+ dotHeight,
+}: WavyDotPatternProps) => {
+ const [dotClickDisabled, setDotClickDisabled] = useState<boolean>(false);
+
+ const handleDotClick = (e: any, width: number, height: number) => {
+ setDotClickDisabled(true);
+
+ anime({
+ targets: ".dot-point",
+ scale: [
+ { value: 1.35, easing: "easeOutSine", duration: 250 },
+ { value: 1, easing: "easeInOutQuad", duration: 500 },
+ ],
+ translateY: [
+ { value: -15, easing: "easeOutSine", duration: 250 },
+ { value: 1, easing: "easeInOutQuad", duration: 500 },
+ ],
+ opacity: [
+ { value: 0.7, easing: "easeOutSine", duration: 250 },
+ { value: 0.35, easing: "easeInOutQuad", duration: 500 },
+ ],
+ delay: anime.stagger(100, {
+ grid: [width, height],
+ from: e.target.dataset.index,
+ }),
+ });
+
+ setTimeout(() => setDotClickDisabled(false), 2000);
+ };
+
+ const GRID_WIDTH = gridWidth ? gridWidth : 30;
+ const GRID_HEIGHT = gridHeight ? gridHeight : 30;
+
+ const DOT_WIDTH = dotWidth ? "w-[" + dotWidth + "px]" : "w-[8px]";
+ const DOT_HEIGHT = dotHeight ? "h-[" + dotHeight + "px]" : "h-[8px]";
+
+ let index = 0;
+
+ const dots = [];
+
+ for (let i = 0; i < GRID_WIDTH; i++) {
+ for (let j = 0; j < GRID_HEIGHT; j++) {
+ dots.push(
+ <button
+ className="rounded-[8px] p-[0.8rem]"
+ onClick={(e) => handleDotClick(e, GRID_WIDTH, GRID_HEIGHT)}
+ data-index={index}
+ key={`${i}-${j}`}
+ disabled={dotClickDisabled}
+ >
+ <div
+ className={cn(
+ "dot-point",
+ "rounded-xl bg-gradient-to-r from-[#d9cab3] to-black opacity-35 hover:from-black hover:to-black hover:opacity-100",
+ DOT_WIDTH,
+ DOT_HEIGHT,
+ )}
+ data-index={index}
+ />
+ </button>,
+ );
+ index++;
+ }
+ }
+
+ return (
+ <div
+ style={{ gridTemplateColumns: `repeat(${GRID_WIDTH}, 1fr)` }}
+ className={cn("max-w-3/4 absolute z-0 grid", className)}
+ >
+ {dots.map((dot) => dot)}
+ </div>
+ );
+};
+
+export default WavyDotPattern;
diff --git a/registry/index.tsx b/registry/index.tsx
index 38ecaf91..75fda37b 100644
--- a/registry/index.tsx
+++ b/registry/index.tsx
@@ -197,6 +197,11 @@ const ui: Registry = {
type: "components:ui",
files: ["registry/components/magicui/icon-cloud.tsx"],
},
+ "wavy-dot-pattern": {
+ name: "wavy-dot-pattern",
+ type: "components:ui",
+ files: ["registry/components/magicui/wavy-dot-pattern.tsx"],
+ },
"gradual-spacing": {
name: "gradual-spacing",
type: "components:ui",
@@ -771,6 +776,14 @@ const example: Registry = {
() => import("@/registry/components/example/icon-cloud-demo"),
),
},
+ "wavy-dot-pattern-demo": {
+ name: "wavy-dot-pattern-demo",
+ type: "components:example",
+ files: ["registry/components/example/wavy-dot-pattern-demo.tsx"],
+ component: React.lazy(
+ () => import("@/registry/components/example/wavy-dot-pattern-demo"),
+ ),
+ },
"gradual-spacing-demo": {
name: "gradual-spacing-demo",
type: "components:example",