@bikiran/utils 1.18.1 → 2.0.1
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.
- package/LICENSE +21 -21
- package/README.md +168 -102
- package/dist/components/Profile/authTypes.ts +21 -21
- package/dist/components/Profile/style/LoginBtn.module.css +6 -6
- package/dist/components/Profile/style/ProfileManage.module.css +6 -6
- package/dist/components/Profile/style/ProfileMenuList.module.css +50 -50
- package/dist/components/Profile/style/ProfileMenuPopup.module.css +30 -30
- package/dist/components/Profile/style/ProfileUserInformation.module.css +26 -26
- package/dist/components/Profile/style/ProfileView.module.css +12 -12
- package/dist/components/button-wrapper/style/style.module.css +18 -18
- package/dist/components/cookie-accept-popup/style/CookieAcceptPopup.module.css +12 -12
- package/dist/components/currency-selector/style/CurrencySelector.module.css +28 -28
- package/dist/components/custom-sidebar/style/CustomSidebar.module.css +21 -21
- package/dist/components/filter-wrapper/style/FilterBarWrapper.module.css +41 -41
- package/dist/components/header/header.css +61 -61
- package/dist/components/header/headerType.ts +15 -15
- package/dist/components/header/icons/icon-about-us-submenu.svg +6 -6
- package/dist/components/header/icons/icon-about-us.svg +5 -5
- package/dist/components/header/icons/icon-all-service.svg +11 -11
- package/dist/components/header/icons/icon-arrow-v2.svg +3 -3
- package/dist/components/header/icons/icon-bell-fill.svg +3 -3
- package/dist/components/header/icons/icon-bik-logo.svg +13 -13
- package/dist/components/header/icons/icon-contacts.svg +6 -6
- package/dist/components/header/icons/icon-domain.svg +4 -4
- package/dist/components/header/icons/icon-hosting.svg +5 -5
- package/dist/components/header/icons/icon-our-clients.svg +4 -4
- package/dist/components/header/sidebar/SidebarConstants.ts +55 -55
- package/dist/components/header/sidebar/sidebarStyle.css +32 -32
- package/dist/components/information-tooltip/icons.js +4 -4
- package/dist/components/information-tooltip/style/InfoTooltip.module.css +62 -62
- package/dist/components/loading-comp/style/LoadingComp.module.css +3 -3
- package/dist/components/pageLoading/style/PageLoading.module.css +7 -7
- package/dist/components/pagination2/style/Pagination.module.css +27 -27
- package/dist/components/project-selector/projectConstants.ts +23 -23
- package/dist/components/project-selector/projectTypes.ts +22 -22
- package/dist/components/project-selector/selector-icons/icon-arrow-down.svg +3 -3
- package/dist/components/project-selector/selector-icons/icon-default-app.svg +9 -9
- package/dist/components/services-popup/ServiceAppType.ts +10 -10
- package/dist/components/services-popup/icons/icon-account.svg +7 -7
- package/dist/components/services-popup/icons/icon-cross.svg +3 -3
- package/dist/components/services-popup/icons/icon-default-app.svg +9 -9
- package/dist/components/user-info/style/ToolTipUserInfo.module.css +28 -28
- package/dist/declaration.d.ts +9 -9
- package/dist/index.ts +15 -15
- package/dist/lib/types/GlobalType.ts +17 -17
- package/dist/lib/utils/Cookie.ts +58 -58
- package/dist/lib/utils/Copy.ts +37 -37
- package/dist/lib/utils/Env.ts +235 -235
- package/dist/lib/utils/capitalizeFirstLetter.ts +7 -7
- package/dist/lib/utils/cn.ts +4 -4
- package/dist/lib/utils/option.ts +7 -7
- package/dist/package.json +1 -1
- package/package.json +60 -60
package/dist/lib/utils/cn.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import clsx, { ClassValue } from "clsx";
|
|
2
|
-
import { twMerge } from "tailwind-merge";
|
|
3
|
-
|
|
4
|
-
export const cn = (...input: ClassValue[]) => twMerge(clsx(input));
|
|
1
|
+
import clsx, { ClassValue } from "clsx";
|
|
2
|
+
import { twMerge } from "tailwind-merge";
|
|
3
|
+
|
|
4
|
+
export const cn = (...input: ClassValue[]) => twMerge(clsx(input));
|
package/dist/lib/utils/option.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export const addOption = (id: any, title: any, value: any) => {
|
|
2
|
-
return { id, title, value };
|
|
3
|
-
};
|
|
4
|
-
|
|
5
|
-
export const addOption2 = (id: any, title: any, value: any) => {
|
|
6
|
-
return { id, title, value };
|
|
7
|
-
};
|
|
1
|
+
export const addOption = (id: any, title: any, value: any) => {
|
|
2
|
+
return { id, title, value };
|
|
3
|
+
};
|
|
4
|
+
|
|
5
|
+
export const addOption2 = (id: any, title: any, value: any) => {
|
|
6
|
+
return { id, title, value };
|
|
7
|
+
};
|
package/dist/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type":"module"}
|
|
1
|
+
'{"type":"module"}'
|
package/package.json
CHANGED
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@bikiran/utils",
|
|
3
|
-
"version": "
|
|
4
|
-
"main": "dist/index.js",
|
|
5
|
-
"types": "dist/index.d.ts",
|
|
6
|
-
"files": [
|
|
7
|
-
"dist"
|
|
8
|
-
],
|
|
9
|
-
"scripts": {
|
|
10
|
-
"dev": "vite example",
|
|
11
|
-
"build": "tsc && echo 'Running copyfiles...' && copyfiles src/**/*.{js,ts,svg,css} dist --up 1 && echo 'Creating package.json...' && echo '{\"type\":\"module\"}' > dist/package.json",
|
|
12
|
-
"vite-build": "vite build",
|
|
13
|
-
"preview": "vite preview example",
|
|
14
|
-
"prepublishOnly": "npm run build",
|
|
15
|
-
"pack-local": "npm run build && npm pack",
|
|
16
|
-
"clean": "node clean.js",
|
|
17
|
-
"test": "vitest",
|
|
18
|
-
"build:tailwind": "npm exec tailwindcss -i src/tailwind.css -o dist/output.css --minify"
|
|
19
|
-
},
|
|
20
|
-
"keywords": [
|
|
21
|
-
"react",
|
|
22
|
-
"button",
|
|
23
|
-
"component",
|
|
24
|
-
"ui"
|
|
25
|
-
],
|
|
26
|
-
"author": "Kumar Bishojit Paul",
|
|
27
|
-
"license": "MIT",
|
|
28
|
-
"type": "module",
|
|
29
|
-
"description": "A simple and reusable React input component library",
|
|
30
|
-
"repository": {
|
|
31
|
-
"type": "git",
|
|
32
|
-
"url": "https://github.com/bikirandev/
|
|
33
|
-
},
|
|
34
|
-
"bugs": {
|
|
35
|
-
"url": "https://github.com/bikirandev/
|
|
36
|
-
},
|
|
37
|
-
"homepage": "https://github.com/bikirandev/
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
},
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
"@
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"react": "^19.
|
|
51
|
-
"react
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
}
|
|
60
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@bikiran/utils",
|
|
3
|
+
"version": "2.0.1",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"types": "dist/index.d.ts",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"scripts": {
|
|
10
|
+
"dev": "vite example",
|
|
11
|
+
"build": "tsc && echo 'Running copyfiles...' && copyfiles src/**/*.{js,ts,svg,css} dist --up 1 && echo 'Creating package.json...' && echo '{\"type\":\"module\"}' > dist/package.json",
|
|
12
|
+
"vite-build": "vite build",
|
|
13
|
+
"preview": "vite preview example",
|
|
14
|
+
"prepublishOnly": "npm run build",
|
|
15
|
+
"pack-local": "npm run build && npm pack",
|
|
16
|
+
"clean": "node clean.js",
|
|
17
|
+
"test": "vitest",
|
|
18
|
+
"build:tailwind": "npm exec tailwindcss -i src/tailwind.css -o dist/output.css --minify"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [
|
|
21
|
+
"react",
|
|
22
|
+
"button",
|
|
23
|
+
"component",
|
|
24
|
+
"ui"
|
|
25
|
+
],
|
|
26
|
+
"author": "Kumar Bishojit Paul",
|
|
27
|
+
"license": "MIT",
|
|
28
|
+
"type": "module",
|
|
29
|
+
"description": "A simple and reusable React input component library",
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "https://github.com/bikirandev/bikiran-utils.git"
|
|
33
|
+
},
|
|
34
|
+
"bugs": {
|
|
35
|
+
"url": "https://github.com/bikirandev/bikiran-utils/issues"
|
|
36
|
+
},
|
|
37
|
+
"homepage": "https://github.com/bikirandev/bikiran-utils#readme",
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"clsx": "^2.1.1",
|
|
40
|
+
"tailwind-merge": "^3.2.0"
|
|
41
|
+
},
|
|
42
|
+
"peerDependencies": {
|
|
43
|
+
"react": "^19.1.0",
|
|
44
|
+
"react-dom": "^19.1.0"
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@testing-library/react": "^16.3.0",
|
|
48
|
+
"@types/node": "^22.15.2",
|
|
49
|
+
"@types/react": "^19.1.2",
|
|
50
|
+
"@types/react-dom": "^19.1.2",
|
|
51
|
+
"@vitejs/plugin-react": "^4.4.1",
|
|
52
|
+
"copyfiles": "^2.4.1",
|
|
53
|
+
"jsdom": "^26.1.0",
|
|
54
|
+
"react": "^19.1.0",
|
|
55
|
+
"react-dom": "^19.1.0",
|
|
56
|
+
"typescript": "^5.8.3",
|
|
57
|
+
"vite": "^6.3.3",
|
|
58
|
+
"vitest": "^3.1.2"
|
|
59
|
+
}
|
|
60
|
+
}
|