main repo

This commit is contained in:
Basilosaurusrex
2025-11-24 18:09:40 +01:00
parent b636ee5e70
commit f027651f9b
34146 changed files with 4436636 additions and 0 deletions

21
node_modules/tailwindcss-animate/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2020 Jamie Kyle
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.

295
node_modules/tailwindcss-animate/README.md generated vendored Normal file
View File

@@ -0,0 +1,295 @@
# `tailwindcss-animate`
> A Tailwind CSS plugin for creating beautiful animations.
```html
<!-- Add an animated fade and zoom entrance -->
<div class="animate-in fade-in zoom-in">...</div>
<!-- Add an animated slide to top-left exit -->
<div class="animate-out slide-out-to-top slide-out-to-left">...</div>
<!-- Control animation duration -->
<div class="... duration-300">...</div>
<!-- Control animation delay -->
<div class="... delay-150">...</div>
<!-- And so much more! -->
```
## Installation
Install the plugin from npm:
```sh
npm install -D tailwindcss-animate
```
Then add the plugin to your `tailwind.config.js` file:
```js
// @filename tailwind.config.js
module.exports = {
theme: {
// ...
},
plugins: [
require("tailwindcss-animate"),
// ...
],
}
```
## Documentation
- [Basic Usage](#basic-usage)
- [Changing animation delay](#changing-animation-delay)
- [Changing animation direction](#changing-animation-direction)
- [Changing animation duration](#changing-animation-duration)
- [Changing animation fill mode](#changing-animation-fill-mode)
- [Changing animation iteration count](#changing-animation-iteration-count)
- [Changing animation play state](#changing-animation-play-state)
- [Changing animation timing function](#changing-animation-timing-function)
- [Prefers-reduced-motion](#prefers-reduced-motion)
- [Enter & Exit Animations](#enter-and-exit-animations)
- [Adding enter animations](#adding-enter-animations)
- [Adding exit animations](#adding-exit-animations)
- [Changing enter animation starting opacity](#changing-enter-animation-starting-opacity)
- [Changing enter animation starting rotation](#changing-enter-animation-starting-rotation)
- [Changing enter animation starting scale](#changing-enter-animation-starting-scale)
- [Changing enter animation starting translate](#changing-enter-animation-starting-translate)
- [Changing exit animation ending opacity](#changing-exit-animation-ending-opacity)
- [Changing exit animation ending rotation](#changing-exit-animation-ending-rotation)
- [Changing exit animation ending scale](#changing-exit-animation-ending-scale)
- [Changing exit animation ending translate](#changing-exit-animation-ending-translate)
### Basic Usage
#### Changing animation delay
Use the `delay-{amount}` utilities to control an elements `animation-delay`.
```html
<button class="animate-bounce delay-150 duration-300 ...">Button A</button>
<button class="animate-bounce delay-300 duration-300 ...">Button B</button>
<button class="animate-bounce delay-700 duration-300 ...">Button C</button>
```
Learn more in the [animation delay](/docs/animation-delay.md) documentation.
#### Changing animation direction
Use the `direction-{keyword}` utilities to control an elements `animation-delay`.
```html
<button class="animate-bounce direction-normal ...">Button A</button>
<button class="animate-bounce direction-reverse ...">Button B</button>
<button class="animate-bounce direction-alternate ...">Button C</button>
<button class="animate-bounce direction-alternate-reverse ...">Button C</button>
```
Learn more in the [animation direction](/docs/animation-direction.md) documentation.
#### Changing animation duration
Use the `duration-{amount}` utilities to control an elements `animation-duration`.
```html
<button class="animate-bounce duration-150 ...">Button A</button>
<button class="animate-bounce duration-300 ...">Button B</button>
<button class="animate-bounce duration-700 ...">Button C</button>
```
Learn more in the [animation duration](/docs/animation-duration.md) documentation.
#### Changing animation fill mode
Use the `fill-mode-{keyword}` utilities to control an elements `animation-fill-mode`.
```html
<button class="animate-bounce fill-mode-none ...">Button A</button>
<button class="animate-bounce fill-mode-forwards ...">Button B</button>
<button class="animate-bounce fill-mode-backwards ...">Button C</button>
<button class="animate-bounce fill-mode-both ...">Button C</button>
```
Learn more in the [animation fill mode](/docs/animation-fill-mode.md) documentation.
#### Changing animation iteration count
Use the `repeat-{amount}` utilities to control an elements `animation-iteration-count`.
```html
<button class="animate-bounce repeat-0 ...">Button A</button>
<button class="animate-bounce repeat-1 ...">Button B</button>
<button class="animate-bounce repeat-infinite ...">Button C</button>
```
Learn more in the [animation iteration count](/docs/animation-iteration-count.md) documentation.
#### Changing animation play state
Use the `running` and `paused` utilities to control an elements `animation-play-state`.
```html
<button class="animate-bounce running ...">Button B</button>
<button class="animate-bounce paused ...">Button A</button>
```
Learn more in the [animation play state](/docs/animation-play-state.md) documentation.
#### Changing animation timing function
Use the `ease-{keyword}` utilities to control an elements `animation-timing-function`.
```html
<button class="animate-bounce ease-linear ...">Button A</button>
<button class="animate-bounce ease-in ...">Button B</button>
<button class="animate-bounce ease-out ...">Button C</button>
<button class="animate-bounce ease-in-out ...">Button C</button>
```
Learn more in the [animation timing function](/docs/animation-timing-function.md) documentation.
#### Prefers-reduced-motion
For situations where the user has specified that they prefer reduced motion, you can conditionally apply animations and transitions using the `motion-safe` and `motion-reduce` variants:
```html
<button class="motion-safe:animate-bounce ...">Button B</button>
```
### Enter & Exit Animations
### Adding enter animations
To give an element an enter animation, use the `animate-in` utility, in combination with some [`fade-in`](/docs/enter-animation-scale.md), [`spin-in`](/docs/enter-animation-rotate.md), [`zoom-in`](/docs/enter-animation-scale.md), and [`slide-in-from`](/docs/enter-animation-translate.md) utilities.
```html
<button class="animate-in fade-in ...">Button A</button>
<button class="animate-in spin-in ...">Button B</button>
<button class="animate-in zoom-in ...">Button C</button>
<button class="animate-in slide-in-from-top ...">Button D</button>
<button class="animate-in slide-in-from-left ...">Button E</button>
```
Learn more in the [enter animation](/docs/enter-animation.md) documentation.
### Adding exit animations
To give an element an exit animation, use the `animate-out` utility, in combination with some [`fade-out`](/docs/exit-animation-scale.md), [`spin-out`](/docs/exit-animation-rotate.md), [`zoom-out`](/docs/exit-animation-scale.md), and [`slide-out-from`](/docs/exit-animation-translate.md) utilities.
```html
<button class="animate-out fade-out ...">Button A</button>
<button class="animate-out spin-out ...">Button B</button>
<button class="animate-out zoom-out ...">Button C</button>
<button class="animate-out slide-out-from-top ...">Button D</button>
<button class="animate-out slide-out-from-left ...">Button E</button>
```
Learn more in the [exit animation](/docs/exit-animation.md) documentation.
#### Changing enter animation starting opacity
Set the starting opacity of an animation using the `fade-in-{amount}` utilities.
```html
<button class="animate-in fade-in ...">Button A</button>
<button class="animate-in fade-in-25 ...">Button B</button>
<button class="animate-in fade-in-50 ...">Button C</button>
<button class="animate-in fade-in-75 ...">Button C</button>
```
Learn more in the [enter animation opacity](/docs/enter-animation-opacity.md) documentation.
#### Changing enter animation starting rotation
Set the starting rotation of an animation using the `spin-in-{amount}` utilities.
```html
<button class="animate-in spin-in-1 ...">Button A</button>
<button class="animate-in spin-in-6 ...">Button B</button>
<button class="animate-in spin-in-75 ...">Button C</button>
<button class="animate-in spin-in-90 ...">Button C</button>
```
Learn more in the [enter animation rotate](/docs/enter-animation-rotate.md) documentation.
#### Changing enter animation starting scale
Set the starting scale of an animation using the `zoom-in-{amount}` utilities.
```html
<button class="animate-in zoom-in ...">Button A</button>
<button class="animate-in zoom-in-50 ...">Button B</button>
<button class="animate-in zoom-in-75 ...">Button C</button>
<button class="animate-in zoom-in-95 ...">Button C</button>
```
Learn more in the [enter animation scale](/docs/enter-animation-scale.md) documentation.
#### Changing enter animation starting translate
Set the starting translate of an animation using the `slide-in-from-{direction}-{amount}` utilities.
```html
<button class="animate-in slide-in-from-top ...">Button A</button>
<button class="animate-in slide-in-from-bottom-48 ...">Button B</button>
<button class="animate-in slide-in-from-left-72 ...">Button C</button>
<button class="animate-in slide-in-from-right-96 ...">Button C</button>
```
Learn more in the [enter animation translate](/docs/enter-animation-translate.md) documentation.
#### Changing exit animation ending opacity
Set the ending opacity of an animation using the `fade-out-{amount}` utilities.
```html
<button class="animate-out fade-out ...">Button A</button>
<button class="animate-out fade-out-25 ...">Button B</button>
<button class="animate-out fade-out-50 ...">Button C</button>
<button class="animate-out fade-out-75 ...">Button C</button>
```
Learn more in the [exit animation opacity](/docs/exit-animation-opacity.md) documentation.
#### Changing exit animation ending rotation
Set the ending rotation of an animation using the `spin-out-{amount}` utilities.
```html
<button class="animate-out spin-out-1 ...">Button A</button>
<button class="animate-out spin-out-6 ...">Button B</button>
<button class="animate-out spin-out-75 ...">Button C</button>
<button class="animate-out spin-out-90 ...">Button C</button>
```
Learn more in the [exit animation rotate](/docs/exit-animation-rotate.md) documentation.
#### Changing exit animation ending scale
Set the ending scale of an animation using the `zoom-out-{amount}` utilities.
```html
<button class="animate-out zoom-out ...">Button A</button>
<button class="animate-out zoom-out-50 ...">Button B</button>
<button class="animate-out zoom-out-75 ...">Button C</button>
<button class="animate-out zoom-out-95 ...">Button C</button>
```
Learn more in the [exit animation scale](/docs/exit-animation-scale.md) documentation.
#### Changing exit animation ending translate
Set the ending translate of an animation using the `slide-out-to-{direction}-{amount}` utilities.
```html
<button class="animate-out slide-out-to-top ...">Button A</button>
<button class="animate-out slide-out-to-bottom-48 ...">Button B</button>
<button class="animate-out slide-out-to-left-72 ...">Button C</button>
<button class="animate-out slide-out-to-right-96 ...">Button C</button>
```
Learn more in the [exit animation translate](/docs/exit-animation-translate.md) documentation.

3
node_modules/tailwindcss-animate/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,3 @@
declare const plugin: { handler: () => void }
export = plugin

188
node_modules/tailwindcss-animate/index.js generated vendored Normal file
View File

@@ -0,0 +1,188 @@
const plugin = require("tailwindcss/plugin")
function filterDefault(values) {
return Object.fromEntries(
Object.entries(values).filter(([key]) => key !== "DEFAULT"),
)
}
module.exports = plugin(
({ addUtilities, matchUtilities, theme }) => {
addUtilities({
"@keyframes enter": theme("keyframes.enter"),
"@keyframes exit": theme("keyframes.exit"),
".animate-in": {
animationName: "enter",
animationDuration: theme("animationDuration.DEFAULT"),
"--tw-enter-opacity": "initial",
"--tw-enter-scale": "initial",
"--tw-enter-rotate": "initial",
"--tw-enter-translate-x": "initial",
"--tw-enter-translate-y": "initial",
},
".animate-out": {
animationName: "exit",
animationDuration: theme("animationDuration.DEFAULT"),
"--tw-exit-opacity": "initial",
"--tw-exit-scale": "initial",
"--tw-exit-rotate": "initial",
"--tw-exit-translate-x": "initial",
"--tw-exit-translate-y": "initial",
},
})
matchUtilities(
{
"fade-in": (value) => ({ "--tw-enter-opacity": value }),
"fade-out": (value) => ({ "--tw-exit-opacity": value }),
},
{ values: theme("animationOpacity") },
)
matchUtilities(
{
"zoom-in": (value) => ({ "--tw-enter-scale": value }),
"zoom-out": (value) => ({ "--tw-exit-scale": value }),
},
{ values: theme("animationScale") },
)
matchUtilities(
{
"spin-in": (value) => ({ "--tw-enter-rotate": value }),
"spin-out": (value) => ({ "--tw-exit-rotate": value }),
},
{ values: theme("animationRotate") },
)
matchUtilities(
{
"slide-in-from-top": (value) => ({
"--tw-enter-translate-y": `-${value}`,
}),
"slide-in-from-bottom": (value) => ({
"--tw-enter-translate-y": value,
}),
"slide-in-from-left": (value) => ({
"--tw-enter-translate-x": `-${value}`,
}),
"slide-in-from-right": (value) => ({
"--tw-enter-translate-x": value,
}),
"slide-out-to-top": (value) => ({
"--tw-exit-translate-y": `-${value}`,
}),
"slide-out-to-bottom": (value) => ({
"--tw-exit-translate-y": value,
}),
"slide-out-to-left": (value) => ({
"--tw-exit-translate-x": `-${value}`,
}),
"slide-out-to-right": (value) => ({
"--tw-exit-translate-x": value,
}),
},
{ values: theme("animationTranslate") },
)
matchUtilities(
{ duration: (value) => ({ animationDuration: value }) },
{ values: filterDefault(theme("animationDuration")) },
)
matchUtilities(
{ delay: (value) => ({ animationDelay: value }) },
{ values: theme("animationDelay") },
)
matchUtilities(
{ ease: (value) => ({ animationTimingFunction: value }) },
{ values: filterDefault(theme("animationTimingFunction")) },
)
addUtilities({
".running": { animationPlayState: "running" },
".paused": { animationPlayState: "paused" },
})
matchUtilities(
{ "fill-mode": (value) => ({ animationFillMode: value }) },
{ values: theme("animationFillMode") },
)
matchUtilities(
{ direction: (value) => ({ animationDirection: value }) },
{ values: theme("animationDirection") },
)
matchUtilities(
{ repeat: (value) => ({ animationIterationCount: value }) },
{ values: theme("animationRepeat") },
)
},
{
theme: {
extend: {
animationDelay: ({ theme }) => ({
...theme("transitionDelay"),
}),
animationDuration: ({ theme }) => ({
0: "0ms",
...theme("transitionDuration"),
}),
animationTimingFunction: ({ theme }) => ({
...theme("transitionTimingFunction"),
}),
animationFillMode: {
none: "none",
forwards: "forwards",
backwards: "backwards",
both: "both",
},
animationDirection: {
normal: "normal",
reverse: "reverse",
alternate: "alternate",
"alternate-reverse": "alternate-reverse",
},
animationOpacity: ({ theme }) => ({
DEFAULT: 0,
...theme("opacity"),
}),
animationTranslate: ({ theme }) => ({
DEFAULT: "100%",
...theme("translate"),
}),
animationScale: ({ theme }) => ({
DEFAULT: 0,
...theme("scale"),
}),
animationRotate: ({ theme }) => ({
DEFAULT: "30deg",
...theme("rotate"),
}),
animationRepeat: {
0: "0",
1: "1",
infinite: "infinite",
},
keyframes: {
enter: {
from: {
opacity: "var(--tw-enter-opacity, 1)",
transform:
"translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))",
},
},
exit: {
to: {
opacity: "var(--tw-exit-opacity, 1)",
transform:
"translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))",
},
},
},
},
},
},
)

50
node_modules/tailwindcss-animate/package.json generated vendored Normal file
View File

@@ -0,0 +1,50 @@
{
"name": "tailwindcss-animate",
"version": "1.0.7",
"description": "A Tailwind CSS plugin for creating beautiful animations.",
"main": "index.js",
"files": [
"index.js",
"index.d.ts"
],
"scripts": {
"format": "prettier --write '**'",
"format:check": "prettier --check '**'",
"prepare": "husky install"
},
"keywords": [
"tailwind",
"tailwindcss",
"css",
"postcss",
"plugin",
"animation",
"transition",
"animate",
"animated",
"animatecss",
"animate.css",
"fade",
"slide",
"zoom",
"spin",
"opacity",
"transform",
"translate",
"scale"
],
"author": "Jamie Kyle <me@thejameskyle.com>",
"license": "MIT",
"peerDependencies": {
"tailwindcss": ">=3.0.0 || insiders"
},
"devDependencies": {
"husky": "^7.0.4",
"lint-staged": "^12.3.4",
"prettier": "^2.5.1",
"tailwindcss": "^3.0.22"
},
"lint-staged": {
"*.**": "prettier --write"
}
}