@bikiran/utils 1.18.0
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 -0
- package/README.md +102 -0
- package/dist/components/Profile/LoginBtn.d.ts +8 -0
- package/dist/components/Profile/LoginBtn.js +13 -0
- package/dist/components/Profile/ProfileManage.d.ts +12 -0
- package/dist/components/Profile/ProfileManage.js +45 -0
- package/dist/components/Profile/ProfileMenuList.d.ts +5 -0
- package/dist/components/Profile/ProfileMenuList.js +32 -0
- package/dist/components/Profile/ProfileMenuPopup.d.ts +12 -0
- package/dist/components/Profile/ProfileMenuPopup.js +26 -0
- package/dist/components/Profile/ProfileUserInformation.d.ts +8 -0
- package/dist/components/Profile/ProfileUserInformation.js +9 -0
- package/dist/components/Profile/ProfileView.d.ts +14 -0
- package/dist/components/Profile/ProfileView.js +9 -0
- package/dist/components/Profile/authTypes.d.ts +21 -0
- package/dist/components/Profile/authTypes.js +1 -0
- package/dist/components/Profile/authTypes.ts +22 -0
- package/dist/components/Profile/icons.d.ts +9 -0
- package/dist/components/Profile/icons.js +33 -0
- package/dist/components/Profile/style/LoginBtn.module.css +6 -0
- package/dist/components/Profile/style/ProfileManage.module.css +6 -0
- package/dist/components/Profile/style/ProfileMenuList.module.css +50 -0
- package/dist/components/Profile/style/ProfileMenuPopup.module.css +30 -0
- package/dist/components/Profile/style/ProfileUserInformation.module.css +26 -0
- package/dist/components/Profile/style/ProfileView.module.css +12 -0
- package/dist/components/button-wrapper/ButtonWrapper.d.ts +14 -0
- package/dist/components/button-wrapper/ButtonWrapper.js +11 -0
- package/dist/components/button-wrapper/icons/icon.d.ts +1 -0
- package/dist/components/button-wrapper/icons/icon.js +4 -0
- package/dist/components/button-wrapper/style/style.module.css +18 -0
- package/dist/components/cookie-accept-popup/CookiesAcceptPopup.d.ts +2 -0
- package/dist/components/cookie-accept-popup/CookiesAcceptPopup.js +28 -0
- package/dist/components/cookie-accept-popup/style/CookieAcceptPopup.module.css +12 -0
- package/dist/components/copy-wrapper/CopyWrapper.d.ts +6 -0
- package/dist/components/copy-wrapper/CopyWrapper.js +9 -0
- package/dist/components/copy-wrapper/icon/icons.d.ts +2 -0
- package/dist/components/copy-wrapper/icon/icons.js +7 -0
- package/dist/components/currency-selector/CurrencySelector.d.ts +14 -0
- package/dist/components/currency-selector/CurrencySelector.js +47 -0
- package/dist/components/currency-selector/style/CurrencySelector.module.css +28 -0
- package/dist/components/custom-sidebar/CustomSidebar.d.ts +15 -0
- package/dist/components/custom-sidebar/CustomSidebar.js +29 -0
- package/dist/components/custom-sidebar/icons.d.ts +3 -0
- package/dist/components/custom-sidebar/icons.js +7 -0
- package/dist/components/custom-sidebar/style/CustomSidebar.module.css +21 -0
- package/dist/components/filter-wrapper/FilterBarWrapper.d.ts +12 -0
- package/dist/components/filter-wrapper/FilterBarWrapper.js +85 -0
- package/dist/components/filter-wrapper/SearchInput.d.ts +10 -0
- package/dist/components/filter-wrapper/SearchInput.js +8 -0
- package/dist/components/filter-wrapper/icons/Icons.d.ts +2 -0
- package/dist/components/filter-wrapper/icons/Icons.js +7 -0
- package/dist/components/filter-wrapper/style/FilterBarWrapper.module.css +41 -0
- package/dist/components/header/FixedHeaderControl.d.ts +7 -0
- package/dist/components/header/FixedHeaderControl.js +23 -0
- package/dist/components/header/HeaderLoginColumnComp.d.ts +25 -0
- package/dist/components/header/HeaderLoginColumnComp.js +36 -0
- package/dist/components/header/HeaderLogoComp.d.ts +6 -0
- package/dist/components/header/HeaderLogoComp.js +6 -0
- package/dist/components/header/HeaderSection.d.ts +21 -0
- package/dist/components/header/HeaderSection.js +27 -0
- package/dist/components/header/HeaderServiceBtnComp.d.ts +10 -0
- package/dist/components/header/HeaderServiceBtnComp.js +17 -0
- package/dist/components/header/HeaderToggleMenuComp.d.ts +9 -0
- package/dist/components/header/HeaderToggleMenuComp.js +16 -0
- package/dist/components/header/NavbarComp.d.ts +11 -0
- package/dist/components/header/NavbarComp.js +46 -0
- package/dist/components/header/header.css +61 -0
- package/dist/components/header/headerType.d.ts +14 -0
- package/dist/components/header/headerType.js +1 -0
- package/dist/components/header/headerType.ts +15 -0
- package/dist/components/header/icons/icon-about-us-submenu.svg +6 -0
- package/dist/components/header/icons/icon-about-us.svg +5 -0
- package/dist/components/header/icons/icon-all-service.svg +11 -0
- package/dist/components/header/icons/icon-arrow-v2.svg +3 -0
- package/dist/components/header/icons/icon-bell-fill.svg +3 -0
- package/dist/components/header/icons/icon-bik-logo.svg +13 -0
- package/dist/components/header/icons/icon-contacts.svg +6 -0
- package/dist/components/header/icons/icon-domain.svg +4 -0
- package/dist/components/header/icons/icon-hosting.svg +5 -0
- package/dist/components/header/icons/icon-our-clients.svg +4 -0
- package/dist/components/header/icons/icons.d.ts +14 -0
- package/dist/components/header/icons/icons.js +27 -0
- package/dist/components/header/sidebar/SidebarConstants.d.ts +0 -0
- package/dist/components/header/sidebar/SidebarConstants.js +55 -0
- package/dist/components/header/sidebar/SidebarConstants.ts +55 -0
- package/dist/components/header/sidebar/SidebarIcons.d.ts +5 -0
- package/dist/components/header/sidebar/SidebarIcons.js +9 -0
- package/dist/components/header/sidebar/SidebarMenu.d.ts +12 -0
- package/dist/components/header/sidebar/SidebarMenu.js +28 -0
- package/dist/components/header/sidebar/SidebarMenuRow.d.ts +10 -0
- package/dist/components/header/sidebar/SidebarMenuRow.js +32 -0
- package/dist/components/header/sidebar/SidebarSubMenu.d.ts +9 -0
- package/dist/components/header/sidebar/SidebarSubMenu.js +14 -0
- package/dist/components/header/sidebar/SidebarTopRow.d.ts +0 -0
- package/dist/components/header/sidebar/SidebarTopRow.js +100 -0
- package/dist/components/header/sidebar/sidebarStyle.css +32 -0
- package/dist/components/information-tooltip/InformationTooltip.d.ts +11 -0
- package/dist/components/information-tooltip/InformationTooltip.js +27 -0
- package/dist/components/information-tooltip/icons.d.ts +6 -0
- package/dist/components/information-tooltip/icons.js +10 -0
- package/dist/components/information-tooltip/style/InfoTooltip.module.css +62 -0
- package/dist/components/loading-comp/LoadingComp.d.ts +2 -0
- package/dist/components/loading-comp/LoadingComp.js +7 -0
- package/dist/components/loading-comp/style/LoadingComp.module.css +3 -0
- package/dist/components/pageLoading/PageLoading.d.ts +2 -0
- package/dist/components/pageLoading/PageLoading.js +6 -0
- package/dist/components/pageLoading/style/PageLoading.module.css +7 -0
- package/dist/components/pagination2/Pagination.d.ts +18 -0
- package/dist/components/pagination2/Pagination.js +40 -0
- package/dist/components/pagination2/style/Pagination.module.css +27 -0
- package/dist/components/project-selector/ProjectListBody.d.ts +9 -0
- package/dist/components/project-selector/ProjectListBody.js +10 -0
- package/dist/components/project-selector/ProjectListPopup.d.ts +12 -0
- package/dist/components/project-selector/ProjectListPopup.js +31 -0
- package/dist/components/project-selector/ProjectSelector.d.ts +11 -0
- package/dist/components/project-selector/ProjectSelector.js +38 -0
- package/dist/components/project-selector/ProjectSelectorSkeleton.d.ts +3 -0
- package/dist/components/project-selector/ProjectSelectorSkeleton.js +6 -0
- package/dist/components/project-selector/ProjectServiceTabs.d.ts +0 -0
- package/dist/components/project-selector/ProjectServiceTabs.js +28 -0
- package/dist/components/project-selector/ProjectServices.d.ts +3 -0
- package/dist/components/project-selector/ProjectServices.js +12 -0
- package/dist/components/project-selector/SelectorMainComp.d.ts +8 -0
- package/dist/components/project-selector/SelectorMainComp.js +6 -0
- package/dist/components/project-selector/projectConstants.d.ts +2 -0
- package/dist/components/project-selector/projectConstants.js +20 -0
- package/dist/components/project-selector/projectConstants.ts +23 -0
- package/dist/components/project-selector/projectTypes.d.ts +22 -0
- package/dist/components/project-selector/projectTypes.js +1 -0
- package/dist/components/project-selector/projectTypes.ts +22 -0
- package/dist/components/project-selector/selector-icons/icon-arrow-down.svg +3 -0
- package/dist/components/project-selector/selector-icons/icon-default-app.svg +9 -0
- package/dist/components/project-selector/selector-icons/selectorIcons.d.ts +4 -0
- package/dist/components/project-selector/selector-icons/selectorIcons.js +6 -0
- package/dist/components/services-popup/ServiceAppType.d.ts +9 -0
- package/dist/components/services-popup/ServiceAppType.js +1 -0
- package/dist/components/services-popup/ServiceAppType.ts +10 -0
- package/dist/components/services-popup/ServicesPopup.d.ts +19 -0
- package/dist/components/services-popup/ServicesPopup.js +35 -0
- package/dist/components/services-popup/components/AppAccount.d.ts +7 -0
- package/dist/components/services-popup/components/AppAccount.js +8 -0
- package/dist/components/services-popup/components/ServiceApp.d.ts +8 -0
- package/dist/components/services-popup/components/ServiceApp.js +6 -0
- package/dist/components/services-popup/icons/Icons.d.ts +5 -0
- package/dist/components/services-popup/icons/Icons.js +8 -0
- package/dist/components/services-popup/icons/icon-account.svg +7 -0
- package/dist/components/services-popup/icons/icon-cross.svg +3 -0
- package/dist/components/services-popup/icons/icon-default-app.svg +9 -0
- package/dist/components/user-info/TooltipUserInfo.d.ts +8 -0
- package/dist/components/user-info/TooltipUserInfo.js +29 -0
- package/dist/components/user-info/UserInfoComp.d.ts +8 -0
- package/dist/components/user-info/UserInfoComp.js +7 -0
- package/dist/components/user-info/icons/icons.d.ts +1 -0
- package/dist/components/user-info/icons/icons.js +4 -0
- package/dist/components/user-info/style/ToolTipUserInfo.module.css +28 -0
- package/dist/declaration.d.ts +9 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +15 -0
- package/dist/index.ts +15 -0
- package/dist/lib/Skeleton.d.ts +4 -0
- package/dist/lib/Skeleton.js +18 -0
- package/dist/lib/types/GlobalType.d.ts +9 -0
- package/dist/lib/types/GlobalType.js +1 -0
- package/dist/lib/types/GlobalType.ts +17 -0
- package/dist/lib/utils/Cookie.d.ts +11 -0
- package/dist/lib/utils/Cookie.js +46 -0
- package/dist/lib/utils/Cookie.ts +58 -0
- package/dist/lib/utils/Copy.d.ts +5 -0
- package/dist/lib/utils/Copy.js +32 -0
- package/dist/lib/utils/Copy.ts +37 -0
- package/dist/lib/utils/Env.d.ts +35 -0
- package/dist/lib/utils/Env.js +190 -0
- package/dist/lib/utils/Env.ts +236 -0
- package/dist/lib/utils/capitalizeFirstLetter.d.ts +2 -0
- package/dist/lib/utils/capitalizeFirstLetter.js +7 -0
- package/dist/lib/utils/capitalizeFirstLetter.ts +7 -0
- package/dist/lib/utils/cn.d.ts +2 -0
- package/dist/lib/utils/cn.js +3 -0
- package/dist/lib/utils/cn.ts +4 -0
- package/dist/lib/utils/option.d.ts +10 -0
- package/dist/lib/utils/option.js +6 -0
- package/dist/lib/utils/option.ts +7 -0
- package/dist/package.json +1 -0
- package/package.json +60 -0
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
export const SUB_DOMAIN_NAMES = {
|
|
2
|
+
WWW: "www",
|
|
3
|
+
ACCOUNT: "account",
|
|
4
|
+
DOMAIN: "domain",
|
|
5
|
+
ADMANAGE: "admanage",
|
|
6
|
+
DNS: "dns",
|
|
7
|
+
HOSTING: "hosting",
|
|
8
|
+
APPOCEAN: "appocean",
|
|
9
|
+
DOCS: "docs",
|
|
10
|
+
PROBACKUP: "probackup",
|
|
11
|
+
EDUSOFT: "edusoft",
|
|
12
|
+
SUPPORT: "support",
|
|
13
|
+
ICON: "icon",
|
|
14
|
+
DRIVE: "drive",
|
|
15
|
+
API: "io",
|
|
16
|
+
API2: "api2",
|
|
17
|
+
API3: "api3",
|
|
18
|
+
} as const;
|
|
19
|
+
|
|
20
|
+
const subDomainMap: Record<string, string> = {
|
|
21
|
+
www: `http://localhost:7201`,
|
|
22
|
+
account: `http://localhost:5000`,
|
|
23
|
+
domain: `http://localhost:7203`,
|
|
24
|
+
dns: `http://localhost:7204`,
|
|
25
|
+
hosting: `http://localhost:7205`,
|
|
26
|
+
appocean: `http://localhost:7206`,
|
|
27
|
+
docs: `http://localhost:7207`,
|
|
28
|
+
admanage: `http://localhost:7208`,
|
|
29
|
+
probackup: `http://localhost:7209`,
|
|
30
|
+
edusoft: `http://localhost:7210`,
|
|
31
|
+
icon: `http://localhost:7211`,
|
|
32
|
+
drive: `http://localhost:7212`,
|
|
33
|
+
support: `http://localhost:7216`,
|
|
34
|
+
api: `https://io.bikiran.win`,
|
|
35
|
+
api2:
|
|
36
|
+
process.env.NEXT_PUBLIC_LOCAL_API === "true"
|
|
37
|
+
? `http://localhost:5010`
|
|
38
|
+
: `https://api2.bikiran.win`,
|
|
39
|
+
api3:
|
|
40
|
+
process.env.NEXT_PUBLIC_LOCAL_API === "true"
|
|
41
|
+
? `http://localhost:7301`
|
|
42
|
+
: `https://api3.bikiran.win`,
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export const isDev = process.env.NEXT_PUBLIC_MODE === "dev";
|
|
46
|
+
export function getMode(): "dev" | "win" | "com" {
|
|
47
|
+
if (isDev) {
|
|
48
|
+
return "dev";
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
const isWin = process.env.NEXT_PUBLIC_MODE === "win";
|
|
52
|
+
if (isWin) {
|
|
53
|
+
return "win";
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
return "com";
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
const getDomain = (): string => {
|
|
60
|
+
return process.env.NEXT_PUBLIC_DOMAIN || "";
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
interface DomainObject {
|
|
64
|
+
sub: string;
|
|
65
|
+
name: string;
|
|
66
|
+
tld: string;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
const getDomainObject = (): DomainObject => {
|
|
70
|
+
const domainParts = getDomain().split(".");
|
|
71
|
+
return {
|
|
72
|
+
sub: domainParts[0],
|
|
73
|
+
name: domainParts[1],
|
|
74
|
+
tld: domainParts[2],
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
export const getBaseDomain = (): string => {
|
|
79
|
+
const mode = getMode();
|
|
80
|
+
if (mode === "dev") {
|
|
81
|
+
return "localhost";
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
const d = getDomainObject();
|
|
85
|
+
return `${d.name}.${mode}`;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
// https://www.bikiran.com/
|
|
89
|
+
export function getBikiranUrl(): string {
|
|
90
|
+
const d = getDomainObject();
|
|
91
|
+
const mode = getMode();
|
|
92
|
+
if (mode === "dev") {
|
|
93
|
+
return subDomainMap.www;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
return `https://${SUB_DOMAIN_NAMES.WWW}.${d.name}.${mode}`;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// https://www.hosting.bikiran.com/
|
|
100
|
+
export function getHostingUrl(): string {
|
|
101
|
+
const d = getDomainObject();
|
|
102
|
+
const mode = getMode();
|
|
103
|
+
if (mode === "dev") {
|
|
104
|
+
return subDomainMap.hosting;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
return `https://${SUB_DOMAIN_NAMES.HOSTING}.${d.name}.${mode}`;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// https://www.domain.bikiran.com/
|
|
111
|
+
export function getDomainUrl(): string {
|
|
112
|
+
const d = getDomainObject();
|
|
113
|
+
const mode = getMode();
|
|
114
|
+
if (mode === "dev") {
|
|
115
|
+
return subDomainMap.domain;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
return `https://${SUB_DOMAIN_NAMES.DOMAIN}.${d.name}.${mode}`;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// https://www.appocean.bikiran.com/
|
|
122
|
+
export function getAppoceanUrl(): string {
|
|
123
|
+
const d = getDomainObject();
|
|
124
|
+
const mode = getMode();
|
|
125
|
+
if (mode === "dev") {
|
|
126
|
+
return subDomainMap.appocean;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
return `https://${SUB_DOMAIN_NAMES.APPOCEAN}.${d.name}.${mode}`;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// https://www.admanage.bikiran.com/
|
|
133
|
+
export function getAdManageUrl(): string {
|
|
134
|
+
const d = getDomainObject();
|
|
135
|
+
const mode = getMode();
|
|
136
|
+
if (mode === "dev") {
|
|
137
|
+
return subDomainMap.admanage;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
return `https://${SUB_DOMAIN_NAMES.ADMANAGE}.${d.name}.${mode}`;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
// https://www.support.bikiran.com/
|
|
144
|
+
export function getSupportUrl(): string {
|
|
145
|
+
const d = getDomainObject();
|
|
146
|
+
const mode = getMode();
|
|
147
|
+
if (mode === "dev") {
|
|
148
|
+
return subDomainMap.support;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
return `https://${SUB_DOMAIN_NAMES.SUPPORT}.${d.name}.${mode}`;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export function getSiteUrl(): string {
|
|
155
|
+
const d = getDomainObject();
|
|
156
|
+
const mode = getMode();
|
|
157
|
+
if (mode === "dev") {
|
|
158
|
+
return subDomainMap[d.sub];
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
return `https://${d.sub}.${d.name}.${mode}`;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export function getApiUrl(): string {
|
|
165
|
+
const d = getDomainObject();
|
|
166
|
+
const mode = getMode();
|
|
167
|
+
if (mode === "dev") {
|
|
168
|
+
return subDomainMap.api;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
return `https://${SUB_DOMAIN_NAMES.API}.${d.name}.${mode}`;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export function getApi2Url(): string {
|
|
175
|
+
const d = getDomainObject();
|
|
176
|
+
const mode = getMode();
|
|
177
|
+
if (mode === "dev") {
|
|
178
|
+
return subDomainMap.api2;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
return `https://${SUB_DOMAIN_NAMES.API2}.${d.name}.${mode}`;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export function getApi3Url(): string {
|
|
185
|
+
const d = getDomainObject();
|
|
186
|
+
const mode = getMode();
|
|
187
|
+
if (mode === "dev") {
|
|
188
|
+
return subDomainMap.api3;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
return `https://${SUB_DOMAIN_NAMES.API3}.${d.name}.${mode}`;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export function getAccountUrl(): string {
|
|
195
|
+
const d = getDomainObject();
|
|
196
|
+
const mode = getMode();
|
|
197
|
+
if (mode === "dev") {
|
|
198
|
+
return subDomainMap.account;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
return `https://${SUB_DOMAIN_NAMES.ACCOUNT}.${d.name}.${mode}`;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export function getDocsUrl(): string {
|
|
205
|
+
const d = getDomainObject();
|
|
206
|
+
const mode = getMode();
|
|
207
|
+
if (mode === "dev") {
|
|
208
|
+
return subDomainMap.docs;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
return `https://${SUB_DOMAIN_NAMES.DOCS}.${d.name}.${mode}`;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export function generateAnyUrl(subDomain: string): string {
|
|
215
|
+
const d = getDomainObject();
|
|
216
|
+
const mode = getMode();
|
|
217
|
+
if (mode === "dev") {
|
|
218
|
+
return subDomainMap[d.sub];
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
return `https://${subDomain}.${d.name}.${mode}`;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export function getDBConnectionString(): string {
|
|
225
|
+
const mode = getMode();
|
|
226
|
+
if (mode === "dev") {
|
|
227
|
+
return process.env.DATABASE_URL_DEV || "";
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
if (mode === "win") {
|
|
231
|
+
return process.env.DATABASE_URL_WIN || "";
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
return process.env.DATABASE_URL_COM || "";
|
|
235
|
+
}
|
|
236
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
package/package.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@bikiran/utils",
|
|
3
|
+
"version": "1.18.0",
|
|
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/7501NPM-Bikiran-Inputs.git"
|
|
33
|
+
},
|
|
34
|
+
"bugs": {
|
|
35
|
+
"url": "https://github.com/bikirandev/7501NPM-Bikiran-Inputs/issues"
|
|
36
|
+
},
|
|
37
|
+
"homepage": "https://github.com/bikirandev/7501NPM-Bikiran-Inputs#readme",
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"react": "^19.0.0",
|
|
40
|
+
"react-dom": "^19.0.0"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@testing-library/react": "^16.2.0",
|
|
44
|
+
"@types/node": "^22.13.1",
|
|
45
|
+
"@types/react": "^19.0.8",
|
|
46
|
+
"@types/react-dom": "^19.0.3",
|
|
47
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
48
|
+
"copyfiles": "^2.4.1",
|
|
49
|
+
"jsdom": "^23.0.1",
|
|
50
|
+
"react": "^19.0.0",
|
|
51
|
+
"react-dom": "^19.0.0",
|
|
52
|
+
"typescript": "^5.7.3",
|
|
53
|
+
"vite": "^6.1.0",
|
|
54
|
+
"vitest": "^1.0.4"
|
|
55
|
+
},
|
|
56
|
+
"dependencies": {
|
|
57
|
+
"clsx": "^2.1.1",
|
|
58
|
+
"tailwind-merge": "^3.0.1"
|
|
59
|
+
}
|
|
60
|
+
}
|