holie-vkit 0.1.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/README.md +21 -0
- package/dist/components/Footer.d.ts +2 -0
- package/dist/components/Footer.js +6 -0
- package/dist/components/LanguageSwitcher.d.ts +2 -0
- package/dist/components/LanguageSwitcher.js +6 -0
- package/dist/components/Navbar.d.ts +2 -0
- package/dist/components/Navbar.js +6 -0
- package/dist/components/Toaster.d.ts +2 -0
- package/dist/components/Toaster.js +6 -0
- package/dist/hooks/useAICompletion.d.ts +3 -0
- package/dist/hooks/useAICompletion.js +5 -0
- package/dist/hooks/useAnalytics.d.ts +3 -0
- package/dist/hooks/useAnalytics.js +5 -0
- package/dist/hooks/useI18n.d.ts +3 -0
- package/dist/hooks/useI18n.js +5 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +9 -0
- package/dist/utils/analytics.d.ts +1 -0
- package/dist/utils/analytics.js +4 -0
- package/dist/utils/i18n.d.ts +1 -0
- package/dist/utils/i18n.js +5 -0
- package/package.json +21 -0
package/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# holie-vkit
|
|
2
|
+
|
|
3
|
+
Shared React component library for holie, eendje, hapklik, and related projects.
|
|
4
|
+
|
|
5
|
+
## Inhoud
|
|
6
|
+
- Meertaligheid (LanguageSwitcher, useI18n)
|
|
7
|
+
- Analytics (useAnalytics, analytics utils)
|
|
8
|
+
- AI hooks (useAICompletion)
|
|
9
|
+
- Basis UI (Navbar, Footer, Toaster)
|
|
10
|
+
|
|
11
|
+
## Gebruik
|
|
12
|
+
Installeer lokaal via monorepo workspace of npm link.
|
|
13
|
+
|
|
14
|
+
```js
|
|
15
|
+
import { Navbar, Footer, LanguageSwitcher, useI18n } from 'holie-vkit';
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Ontwikkeling
|
|
19
|
+
- Voeg generieke componenten toe
|
|
20
|
+
- Houd API's zo universeel mogelijk
|
|
21
|
+
- Zie TODO's in de code voor verdere implementatie
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// Placeholder for shared LanguageSwitcher
|
|
3
|
+
export const LanguageSwitcher = () => {
|
|
4
|
+
// TODO: Implement shared logic or delegate to project-specific context
|
|
5
|
+
return _jsx("div", { children: "Language Switcher (shared)" });
|
|
6
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './components/LanguageSwitcher';
|
|
2
|
+
export * from './components/Toaster';
|
|
3
|
+
export * from './components/Navbar';
|
|
4
|
+
export * from './components/Footer';
|
|
5
|
+
export * from './hooks/useI18n';
|
|
6
|
+
export * from './hooks/useAnalytics';
|
|
7
|
+
export * from './hooks/useAICompletion';
|
|
8
|
+
export * from './utils/i18n';
|
|
9
|
+
export * from './utils/analytics';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './components/LanguageSwitcher';
|
|
2
|
+
export * from './components/Toaster';
|
|
3
|
+
export * from './components/Navbar';
|
|
4
|
+
export * from './components/Footer';
|
|
5
|
+
export * from './hooks/useI18n';
|
|
6
|
+
export * from './hooks/useAnalytics';
|
|
7
|
+
export * from './hooks/useAICompletion';
|
|
8
|
+
export * from './utils/i18n';
|
|
9
|
+
export * from './utils/analytics';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function trackEvent(event: string, data?: any): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function translate(key: string, lang: string): string;
|
package/package.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "holie-vkit",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"types": "dist/index.d.ts",
|
|
6
|
+
"module": "dist/index.js",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "tsc"
|
|
12
|
+
},
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"react": "^18.0.0"
|
|
15
|
+
},
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"@types/react": "^19.2.10",
|
|
18
|
+
"@types/react-dom": "^19.2.3",
|
|
19
|
+
"typescript": "^5.9.3"
|
|
20
|
+
}
|
|
21
|
+
}
|