Initial commit

This commit is contained in:
Ammaar Reshi
2025-01-04 14:06:53 +00:00
parent 7082408604
commit d6025af146
23760 changed files with 3299690 additions and 0 deletions

9
node_modules/motion-utils/.turbo/turbo-build.log generated vendored Normal file
View File

@ -0,0 +1,9 @@

lib/index.js → dist/cjs...
created dist/cjs in 18ms

lib/index.js → dist/es...
created dist/es in 7ms

types/index.d.ts → dist/index.d.ts...
created dist/index.d.ts in 11ms

21
node_modules/motion-utils/LICENSE.md generated vendored Normal file
View File

@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2018 [Framer](https://www.framer.com?utm_source=motion-license) B.V.
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.

22
node_modules/motion-utils/dist/cjs/index.js generated vendored Normal file
View File

@ -0,0 +1,22 @@
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
const noop = (any) => any;
exports.warning = noop;
exports.invariant = noop;
if (process.env.NODE_ENV !== "production") {
exports.warning = (check, message) => {
if (!check && typeof console !== "undefined") {
console.warn(message);
}
};
exports.invariant = (check, message) => {
if (!check) {
throw new Error(message);
}
};
}
exports.noop = noop;

18
node_modules/motion-utils/dist/es/errors.mjs generated vendored Normal file
View File

@ -0,0 +1,18 @@
import { noop } from './noop.mjs';
let warning = noop;
let invariant = noop;
if (process.env.NODE_ENV !== "production") {
warning = (check, message) => {
if (!check && typeof console !== "undefined") {
console.warn(message);
}
};
invariant = (check, message) => {
if (!check) {
throw new Error(message);
}
};
}
export { invariant, warning };

2
node_modules/motion-utils/dist/es/index.mjs generated vendored Normal file
View File

@ -0,0 +1,2 @@
export { invariant, warning } from './errors.mjs';
export { noop } from './noop.mjs';

3
node_modules/motion-utils/dist/es/noop.mjs generated vendored Normal file
View File

@ -0,0 +1,3 @@
const noop = (any) => any;
export { noop };

7
node_modules/motion-utils/dist/index.d.ts generated vendored Normal file
View File

@ -0,0 +1,7 @@
type DevMessage = (check: boolean, message: string) => void;
declare let warning: DevMessage;
declare let invariant: DevMessage;
declare const noop: <T>(any: T) => T;
export { type DevMessage, invariant, noop, warning };

17
node_modules/motion-utils/lib/errors.js generated vendored Normal file
View File

@ -0,0 +1,17 @@
import { noop } from "./noop";
let warning = noop;
let invariant = noop;
if (process.env.NODE_ENV !== "production") {
warning = (check, message) => {
if (!check && typeof console !== "undefined") {
console.warn(message);
}
};
invariant = (check, message) => {
if (!check) {
throw new Error(message);
}
};
}
export { warning, invariant };
//# sourceMappingURL=errors.js.map

1
node_modules/motion-utils/lib/errors.js.map generated vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAI7B,IAAI,OAAO,GAAe,IAAI,CAAA;AAC9B,IAAI,SAAS,GAAe,IAAI,CAAA;AAEhC,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE,CAAC;IACxC,OAAO,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;QACzB,IAAI,CAAC,KAAK,IAAI,OAAO,OAAO,KAAK,WAAW,EAAE,CAAC;YAC3C,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QACzB,CAAC;IACL,CAAC,CAAA;IAED,SAAS,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;QAC3B,IAAI,CAAC,KAAK,EAAE,CAAC;YACT,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAA;QAC5B,CAAC;IACL,CAAC,CAAA;AACL,CAAC;AAED,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,CAAA"}

3
node_modules/motion-utils/lib/index.js generated vendored Normal file
View File

@ -0,0 +1,3 @@
export * from "./errors";
export * from "./noop";
//# sourceMappingURL=index.js.map

1
node_modules/motion-utils/lib/index.js.map generated vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}

2
node_modules/motion-utils/lib/noop.js generated vendored Normal file
View File

@ -0,0 +1,2 @@
export const noop = (any) => any;
//# sourceMappingURL=noop.js.map

1
node_modules/motion-utils/lib/noop.js.map generated vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"noop.js","sourceRoot":"","sources":["../src/noop.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG,CAAI,GAAM,EAAK,EAAE,CAAC,GAAG,CAAA"}

21
node_modules/motion-utils/package.json generated vendored Normal file
View File

@ -0,0 +1,21 @@
{
"name": "motion-utils",
"version": "11.13.0",
"main": "./lib/index.js",
"types": "./types/index.d.ts",
"module": "./lib/index.js",
"exports": {
".": {
"types": "./types/index.d.ts",
"require": "./dist/cjs/index.js",
"import": "./dist/es/index.mjs",
"default": "./lib/index.js"
}
},
"scripts": {
"clean": "rm -rf types dist lib",
"build": "yarn clean && tsc -p . && rollup -c",
"dev": "concurrently -c blue,red -n tsc,rollup --kill-others \"tsc --watch -p . --preserveWatchOutput\" \"rollup --config --watch --no-watch.clearScreen\""
},
"gitHead": "c6ea900aecfec3e946a0f33db4672e0194f3048b"
}

94
node_modules/motion-utils/rollup.config.mjs generated vendored Normal file
View File

@ -0,0 +1,94 @@
import resolve from "@rollup/plugin-node-resolve"
import replace from "@rollup/plugin-replace"
import dts from "rollup-plugin-dts"
import pkg from "./package.json" with { type: "json"}
import tsconfig from "./tsconfig.json" with { type: "json" }
import preserveDirectives from "rollup-plugin-preserve-directives";
const config = {
input: "lib/index.js",
}
export const replaceSettings = (env) => {
const replaceConfig = env
? {
"process.env.NODE_ENV": JSON.stringify(env),
preventAssignment: false,
}
: {
preventAssignment: false,
}
replaceConfig.__VERSION__ = `${pkg.version}`
return replace(replaceConfig)
}
const external = [
...Object.keys(pkg.dependencies || {}),
...Object.keys(pkg.peerDependencies || {}),
...Object.keys(pkg.optionalDependencies || {}),
"react/jsx-runtime",
]
const cjs = Object.assign({}, config, {
input: "lib/index.js",
output: {
entryFileNames: `[name].js`,
dir: "dist/cjs",
format: "cjs",
exports: "named",
esModule: true
},
plugins: [resolve(), replaceSettings()],
external,
onwarn(warning, warn) {
if (warning.code === 'MODULE_LEVEL_DIRECTIVE') {
return
}
warn(warning)
}
})
export const es = Object.assign({}, config, {
input: ["lib/index.js"],
output: {
entryFileNames: "[name].mjs",
format: "es",
exports: "named",
preserveModules: true,
dir: "dist/es",
},
plugins: [resolve(), replaceSettings(), preserveDirectives()],
external,
onwarn(warning, warn) {
if (warning.code === 'MODULE_LEVEL_DIRECTIVE') {
return
}
warn(warning)
}
})
const typePlugins = [dts({compilerOptions: {...tsconfig, baseUrl:"types"}})]
function createTypes(input, file) {
return {
input,
output: {
format: "es",
file: file,
},
plugins: typePlugins,
}
}
const types = createTypes("types/index.d.ts", "dist/index.d.ts")
// eslint-disable-next-line import/no-default-export
export default [
cjs,
es,
types,
]

22
node_modules/motion-utils/src/errors.ts generated vendored Normal file
View File

@ -0,0 +1,22 @@
import { noop } from "./noop"
export type DevMessage = (check: boolean, message: string) => void
let warning: DevMessage = noop
let invariant: DevMessage = noop
if (process.env.NODE_ENV !== "production") {
warning = (check, message) => {
if (!check && typeof console !== "undefined") {
console.warn(message)
}
}
invariant = (check, message) => {
if (!check) {
throw new Error(message)
}
}
}
export { warning, invariant }

2
node_modules/motion-utils/src/index.ts generated vendored Normal file
View File

@ -0,0 +1,2 @@
export * from "./errors"
export * from "./noop"

1
node_modules/motion-utils/src/noop.ts generated vendored Normal file
View File

@ -0,0 +1 @@
export const noop = <T>(any: T): T => any

25
node_modules/motion-utils/tsconfig.json generated vendored Normal file
View File

@ -0,0 +1,25 @@
{
"extends": "config/tsconfig.json",
"filesGlob": ["./src/**/*.ts"],
"exclude": [
"node_modules",
"build",
"**/__tests__/*",
"jest.setup.tsx",
"dev",
"types",
"dev/examples.framer",
"test",
"skins",
"dist",
"temp",
"api",
"cypress"
],
"compilerOptions": {
"baseUrl": "src",
"declarationDir": "types",
"outDir": "lib",
"rootDir": "src"
}
}

4
node_modules/motion-utils/types/errors.d.ts generated vendored Normal file
View File

@ -0,0 +1,4 @@
export type DevMessage = (check: boolean, message: string) => void;
declare let warning: DevMessage;
declare let invariant: DevMessage;
export { warning, invariant };

2
node_modules/motion-utils/types/index.d.ts generated vendored Normal file
View File

@ -0,0 +1,2 @@
export * from "./errors";
export * from "./noop";

1
node_modules/motion-utils/types/noop.d.ts generated vendored Normal file
View File

@ -0,0 +1 @@
export declare const noop: <T>(any: T) => T;