Project Init

This commit is contained in:
Muluhabt
2026-05-29 15:23:46 +03:00
commit 2fbc557aac
67387 changed files with 6063341 additions and 0 deletions

21
node_modules/@mantine/store/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2021 Vitaly Rtishchev
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.

21
node_modules/@mantine/store/README.md generated vendored Normal file
View File

@@ -0,0 +1,21 @@
# Mantine Store
[![npm](https://img.shields.io/npm/dm/@mantine/store)](https://www.npmjs.com/package/@mantine/store)
Global state manager for `@mantine/notifications`, `@mantine/nprogress`, `@mantine/spotlight` and other Mantine packages.
[View documentation](https://mantine.dev/)
## Installation
```bash
# With yarn
yarn add @mantine/store
# With npm
npm install @mantine/store
```
## License
MIT

9
node_modules/@mantine/store/cjs/index.cjs generated vendored Normal file
View File

@@ -0,0 +1,9 @@
'use strict';
var store = require('./store.cjs');
exports.createStore = store.createStore;
exports.useStore = store.useStore;
//# sourceMappingURL=index.cjs.map

1
node_modules/@mantine/store/cjs/index.cjs.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}

43
node_modules/@mantine/store/cjs/store.cjs generated vendored Normal file
View File

@@ -0,0 +1,43 @@
'use client';
'use strict';
var react = require('react');
function createStore(initialState) {
let state = initialState;
let initialized = false;
const listeners = /* @__PURE__ */ new Set();
return {
getState() {
return state;
},
updateState(value) {
state = typeof value === "function" ? value(state) : value;
},
setState(value) {
this.updateState(value);
listeners.forEach((listener) => listener(state));
},
initialize(value) {
if (!initialized) {
state = value;
initialized = true;
}
},
subscribe(callback) {
listeners.add(callback);
return () => listeners.delete(callback);
}
};
}
function useStore(store) {
return react.useSyncExternalStore(
store.subscribe,
() => store.getState(),
() => store.getState()
);
}
exports.createStore = createStore;
exports.useStore = useStore;
//# sourceMappingURL=store.cjs.map

1
node_modules/@mantine/store/cjs/store.cjs.map generated vendored Normal file

File diff suppressed because one or more lines are too long

2
node_modules/@mantine/store/esm/index.mjs generated vendored Normal file
View File

@@ -0,0 +1,2 @@
export { createStore, useStore } from './store.mjs';
//# sourceMappingURL=index.mjs.map

1
node_modules/@mantine/store/esm/index.mjs.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}

40
node_modules/@mantine/store/esm/store.mjs generated vendored Normal file
View File

@@ -0,0 +1,40 @@
'use client';
import { useSyncExternalStore } from 'react';
function createStore(initialState) {
let state = initialState;
let initialized = false;
const listeners = /* @__PURE__ */ new Set();
return {
getState() {
return state;
},
updateState(value) {
state = typeof value === "function" ? value(state) : value;
},
setState(value) {
this.updateState(value);
listeners.forEach((listener) => listener(state));
},
initialize(value) {
if (!initialized) {
state = value;
initialized = true;
}
},
subscribe(callback) {
listeners.add(callback);
return () => listeners.delete(callback);
}
};
}
function useStore(store) {
return useSyncExternalStore(
store.subscribe,
() => store.getState(),
() => store.getState()
);
}
export { createStore, useStore };
//# sourceMappingURL=store.mjs.map

1
node_modules/@mantine/store/esm/store.mjs.map generated vendored Normal file

File diff suppressed because one or more lines are too long

2
node_modules/@mantine/store/lib/index.d.mts generated vendored Normal file
View File

@@ -0,0 +1,2 @@
export { useStore, createStore } from './store';
export type { MantineStore, MantineStoreSubscriber, MantineStoreValue } from './store';

2
node_modules/@mantine/store/lib/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,2 @@
export { useStore, createStore } from './store';
export type { MantineStore, MantineStoreSubscriber, MantineStoreValue } from './store';

13
node_modules/@mantine/store/lib/store.d.ts generated vendored Normal file
View File

@@ -0,0 +1,13 @@
export type MantineStoreSubscriber<Value> = (value: Value) => void;
type SetStateCallback<Value> = (value: Value) => Value;
export interface MantineStore<Value> {
getState: () => Value;
setState: (value: Value | SetStateCallback<Value>) => void;
updateState: (value: Value | SetStateCallback<Value>) => void;
initialize: (value: Value) => void;
subscribe: (callback: MantineStoreSubscriber<Value>) => () => void;
}
export type MantineStoreValue<Store extends MantineStore<any>> = ReturnType<Store['getState']>;
export declare function createStore<Value extends Record<string, any>>(initialState: Value): MantineStore<Value>;
export declare function useStore<Store extends MantineStore<any>>(store: Store): ReturnType<Store["getState"]>;
export {};

42
node_modules/@mantine/store/package.json generated vendored Normal file
View File

@@ -0,0 +1,42 @@
{
"name": "@mantine/store",
"version": "8.3.18",
"description": "A library to sync external React state updates",
"homepage": "https://mantine.dev",
"license": "MIT",
"author": "Vitaly Rtishchev <rtivital@gmail.com>",
"keywords": [
"frontend",
"hooks",
"library",
"next",
"nextjs",
"react",
"react-hooks",
"state"
],
"sideEffects": false,
"main": "./cjs/index.cjs",
"module": "./esm/index.mjs",
"types": "./lib/index.d.ts",
"exports": {
".": {
"import": {
"types": "./lib/index.d.mts",
"default": "./esm/index.mjs"
},
"require": {
"types": "./lib/index.d.ts",
"default": "./cjs/index.cjs"
}
}
},
"repository": {
"url": "https://github.com/mantinedev/mantine.git",
"type": "git",
"directory": "packages/@mantine/store"
},
"peerDependencies": {
"react": "^18.x || ^19.x"
}
}