@sohanemon/utils 4.0.14 → 4.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -38,9 +38,9 @@ export const ResponsiveIndicator = () => {
|
|
|
38
38
|
}
|
|
39
39
|
// Define positions
|
|
40
40
|
const positions = [
|
|
41
|
-
{ bottom: '2rem', left: '2rem' },
|
|
42
|
-
{ bottom: '2rem', right: '2rem' },
|
|
43
|
-
{ top: '2rem', right: '2rem' },
|
|
41
|
+
{ bottom: '2rem', left: '2rem' }, // Bottom left
|
|
42
|
+
{ bottom: '2rem', right: '2rem' }, // Bottom right
|
|
43
|
+
{ top: '2rem', right: '2rem' }, // Top right
|
|
44
44
|
{ top: '2rem', left: '2rem' }, // Top left
|
|
45
45
|
];
|
|
46
46
|
const buttonStyle = {
|
|
@@ -3,4 +3,4 @@ import type * as React from 'react';
|
|
|
3
3
|
export declare function cn(...inputs: ClassValue[]): string;
|
|
4
4
|
export declare function isNavActive(href: string, path: string): boolean;
|
|
5
5
|
export declare function cleanSrc(src: string): string;
|
|
6
|
-
export declare const scrollTo: (containerSelector: string | React.RefObject<HTMLDivElement>, to:
|
|
6
|
+
export declare const scrollTo: (containerSelector: string | React.RefObject<HTMLDivElement>, to: "top" | "bottom") => void;
|
package/package.json
CHANGED
|
@@ -1,29 +1,40 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sohanemon/utils",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.16",
|
|
4
4
|
"description": "",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"source": "./src/index.ts",
|
|
6
7
|
"main": "./dist/index.js",
|
|
7
8
|
"types": "./dist/index.d.ts",
|
|
8
9
|
"exports": {
|
|
9
10
|
".": "./dist/index.js",
|
|
11
|
+
"./core": "./dist/index.js",
|
|
10
12
|
"./hooks": "./dist/hooks/index.js",
|
|
11
|
-
"./components": "./dist/components/index.js"
|
|
12
|
-
"./package.json": "./package.json"
|
|
13
|
+
"./components": "./dist/components/index.js"
|
|
13
14
|
},
|
|
14
15
|
"typesVersions": {
|
|
15
16
|
"*": {
|
|
16
|
-
"hooks": [
|
|
17
|
-
|
|
17
|
+
"hooks": [
|
|
18
|
+
"dist/hooks/index.d.ts"
|
|
19
|
+
],
|
|
20
|
+
"components": [
|
|
21
|
+
"dist/components/index.d.ts"
|
|
22
|
+
]
|
|
18
23
|
}
|
|
19
24
|
},
|
|
20
|
-
"files": [
|
|
25
|
+
"files": [
|
|
26
|
+
"dist",
|
|
27
|
+
"README.md"
|
|
28
|
+
],
|
|
21
29
|
"scripts": {
|
|
22
30
|
"build": "tsc",
|
|
23
31
|
"build:watch": "tsc --watch",
|
|
24
32
|
"export": "tsc && npm publish"
|
|
25
33
|
},
|
|
26
|
-
"keywords": [
|
|
34
|
+
"keywords": [
|
|
35
|
+
"utils",
|
|
36
|
+
"cn"
|
|
37
|
+
],
|
|
27
38
|
"author": "sohanemon",
|
|
28
39
|
"license": "ISC",
|
|
29
40
|
"devDependencies": {
|