Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
fd9d9cf
feature/new-docs 🧊 init docs
tungulin Mar 1, 2026
da0ff28
feat: docs wip
tungulin Mar 1, 2026
4b45bf3
feat: docs wip
tungulin Mar 1, 2026
7daf803
feat: docs wip
tungulin Mar 1, 2026
8edfb72
feat: docs wip
tungulin Mar 4, 2026
ab58d85
feat: wip
tungulin Mar 7, 2026
30e49de
feat: wip
tungulin Mar 7, 2026
0dd2baa
feat: minor
tungulin Mar 7, 2026
79426ae
feat: clear
tungulin Mar 7, 2026
71b1d4e
feat: clear
tungulin Mar 7, 2026
92cc66d
feat: wip
tungulin Mar 7, 2026
74011c0
feat:wip
tungulin Mar 7, 2026
e71fd51
feat:wip
tungulin Mar 7, 2026
904f0f5
feature/new-docs 🧊 feat: add script for generation
tungulin Mar 7, 2026
ac1d4ab
feat:wip
tungulin Mar 7, 2026
2a629cd
feat:wip
tungulin Mar 14, 2026
675edfa
feature/new-docs 🧊 feat: docs wip
tungulin Mar 21, 2026
d562940
feat: docs wip
tungulin Mar 21, 2026
71a943c
feat: docs wip
tungulin Mar 21, 2026
52c727a
feature/new-docs 🧊 feat: wip
tungulin Mar 22, 2026
c674abd
feature/new-docs 🧊 feat: wip
tungulin Mar 23, 2026
5929c9f
feature/new-docs 🧊 feat: add search
tungulin Mar 28, 2026
f08901e
feature/new-docs 🧊 feat: docs wip
tungulin Mar 29, 2026
371fbf1
feature/new-docs 🧊 feat: toc section
tungulin Mar 29, 2026
8489022
feature/new-docs 🧊 feat: docs wip
tungulin Mar 29, 2026
e5727ca
feature/new-docs 🧊 add gitignore docgen
tungulin Apr 2, 2026
ea695f9
feature/new-docs 🧊 docs: wip
tungulin Apr 5, 2026
cccdc1a
feature/new-docs 🧊 feat: delete old docs
tungulin Apr 5, 2026
a301679
feature/new-docs 🧊 feat: delete old docs
tungulin Apr 5, 2026
f4c8cc7
feature/new-docs 🧊 feat: wip
tungulin Apr 5, 2026
02dd845
feature/new-docs 🧊 feat: wip
tungulin Apr 5, 2026
1233903
feat: pretty
tungulin Apr 5, 2026
435383b
feat: alias import
tungulin Apr 5, 2026
b9b6756
feature/new-docs 🧊 feat:docs wip
tungulin Apr 11, 2026
776b8a0
feature/new-docs 🧊 feat:docs wip
tungulin Apr 11, 2026
daa5959
feature/new-docs 🧊 feat:merge develop
tungulin Apr 11, 2026
03b1f1a
feature/new-docs 🧊 feat: lint
tungulin Apr 11, 2026
2807391
feature/new-docs 🧊 feat:docs wip
tungulin Apr 11, 2026
f702c26
feature/new-docs 🧊 feat:docs minor
tungulin Apr 13, 2026
d017e1c
feature/new-docs 🧊 feat:docs minor
tungulin Apr 13, 2026
a7985c8
feature/new-docs 🧊 feat:docs minor
tungulin Apr 13, 2026
5075037
feature/new-docs 🧊 feat:docs minor
tungulin Apr 13, 2026
71ef209
feat:docs minor
tungulin Apr 13, 2026
e485c21
Merge branch 'main' into feature/new-docs
debabin Apr 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -222,3 +222,8 @@ generated
# Reactuse

**/registry.json


# Docgen. Generated content
packages/docs/content/docs/hooks/
.source
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
**/dist
**/node_modules
**/cache
**/pnpm-lock.yaml
**/pnpm-lock.yaml
**/.next
4 changes: 2 additions & 2 deletions .prettierrc.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { prettier } from "@siberiacancode/prettier";
import { prettier } from '@siberiacancode/prettier';

export default { ...prettier, plugins: ["prettier-plugin-tailwindcss"] };
export default { ...prettier, plugins: ['prettier-plugin-tailwindcss'] };
4 changes: 1 addition & 3 deletions packages/cli/src/registry/utils/extractDependencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ export const extractDependencies = (content: string) => {
const packages = new Set<string>();

const hookMatches = Array.from(
content.matchAll(
/import\s+\{([^}]+)\}\s+from\s+['"]((?:@\/hooks)|(?:[^'"]*use[^'"]*))['"]/g
)
content.matchAll(/import\s+\{([^}]+)\}\s+from\s+['"]((?:@\/hooks)|(?:[^'"]*use[^'"]*))['"]/g)
);
for (const match of hookMatches) {
const imports = match[1].split(',').map((item) => item.trim());
Expand Down
48 changes: 24 additions & 24 deletions packages/core/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
import { eslint } from "@siberiacancode/eslint";
import { eslint } from '@siberiacancode/eslint';

export default eslint(
{
typescript: true,
javascript: true,
react: true,
jsx: true,
vue: true,
vue: true
},
{
name: "siberiacancode/core/md",
files: ["*.md"],
name: 'siberiacancode/core/md',
files: ['*.md'],
rules: {
"react-refresh/only-export-components": "warn",
},
'react-refresh/only-export-components': 'warn'
}
},
{
name: "siberiacancode/core/ignores",
ignores: ["**/bundle/**/*.js"],
name: 'siberiacancode/core/ignores',
ignores: ['**/bundle/**/*.js']
},
{
name: "siberiacancode/core/hooks",
files: ["**/{hooks,helpers}/**/*.{ts,tsx}"],
name: 'siberiacancode/core/hooks',
files: ['**/{hooks,helpers}/**/*.{ts,tsx}'],
rules: {
"react-dom/no-flush-sync": "warn",
"jsdoc/no-defaults": "off",
"react-hooks/rules-of-hooks": "warn",
"react/no-use-context": "off",
"react/no-context-provider": "off",
},
'react-dom/no-flush-sync': 'warn',
'jsdoc/no-defaults': 'off',
'react-hooks/rules-of-hooks': 'warn',
'react/no-use-context': 'off',
'react/no-context-provider': 'off'
}
},
{
name: "siberiacancode/core/tests",
files: ["**/*.test.ts"],
name: 'siberiacancode/core/tests',
files: ['**/*.test.ts'],
rules: {
"react/no-create-ref": "off",
},
'react/no-create-ref': 'off'
}
},
{
name: "siberiacancode/core/demo",
files: ["**/*.demo.tsx"],
name: 'siberiacancode/core/demo',
files: ['**/*.demo.tsx'],
rules: {
"no-alert": "off",
},
'no-alert': 'off'
}
}
);
4 changes: 2 additions & 2 deletions packages/core/src/bundle/hooks/useDropZone/useDropZone.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const useDropZone = (...params) => {
const dataTypes = options.dataTypes;
const getFiles = (event) => {
if (!event.dataTransfer) return null;
const list = Array.from(event.dataTransfer.files);
const list = [...event.dataTransfer.files];
if (options.multiple) return list;
if (!list.length) return null;
return [list[0]];
Expand All @@ -77,7 +77,7 @@ export const useDropZone = (...params) => {
return types.every((type) => dataTypes.some((dataType) => type.includes(dataType)));
};
const checkValidity = (items) => {
const types = Array.from(items).map((item) => item.type);
const types = Array.from(items, (item) => item.type);
const dataTypesValid = checkDataTypes(types);
const multipleFilesValid = options.multiple || items.length <= 1;
return dataTypesValid && multipleFilesValid;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { cn } from '@siberiacancode/docs/utils';
import { cn } from '../../../../docs/lib/utils';
import { useClickOutside, useCounter } from '@siberiacancode/reactuse';

const Demo = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ const Demo = () => {
</Collapse>

<div className='mt-4 flex flex-wrap gap-1'>
<button type='button' onClick={controlledCollapse.toggle}>
<button type='button' onClick={() => controlledCollapse.toggle()}>
{controlledCollapse.opened ? 'Close' : 'Open'}
</button>

<button type='button' onClick={controlledCollapse.toggle}>
<button type='button' onClick={() => controlledCollapse.toggle()}>
Toggle
</button>
</div>
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/hooks/useDropZone/useDropZone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export const useDropZone = ((...params: any[]) => {

const getFiles = (event: DragEvent) => {
if (!event.dataTransfer) return null;
const list = Array.from(event.dataTransfer.files);
const list = [...event.dataTransfer.files];
if (options.multiple) return list;
if (!list.length) return null;
return [list[0]];
Expand All @@ -141,7 +141,7 @@ export const useDropZone = ((...params: any[]) => {
};

const checkValidity = (items: DataTransferItemList) => {
const types = Array.from(items).map((item) => item.type);
const types = Array.from(items, (item) => item.type);
const dataTypesValid = checkDataTypes(types);
const multipleFilesValid = options.multiple || items.length <= 1;

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/hooks/useIdle/useIdle.demo.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { cn } from '@siberiacancode/docs/utils';
import { cn } from '../../../../docs/lib/utils';
import { useIdle } from '@siberiacancode/reactuse';

const Demo = () => {
Expand Down
3 changes: 2 additions & 1 deletion packages/core/src/hooks/useMergedRef/useMergedRef.demo.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { cn } from '@siberiacancode/docs/utils';
import {
useClickOutside,
useCounter,
Expand All @@ -8,6 +7,8 @@ import {
} from '@siberiacancode/reactuse';
import { useRef } from 'react';

import { cn } from '../../../../docs/lib/utils';

const Demo = () => {
const counter = useCounter();

Expand Down
3 changes: 2 additions & 1 deletion packages/core/src/hooks/useMouse/useMouse.demo.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { cn } from '@siberiacancode/docs/utils';
import { useHover, useMouse } from '@siberiacancode/reactuse';
import { useRef } from 'react';

import { cn } from '../../../../docs/lib/utils';

const Demo = () => {
const modalRef = useRef<HTMLDivElement>(null);
const mouse = useMouse<HTMLDivElement>((value) => {
Expand Down
Loading