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 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,2 @@
1
+ import React from 'react';
2
+ export declare const Footer: React.FC;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ // Placeholder for shared Footer
3
+ export const Footer = () => {
4
+ // TODO: Implement shared logic or delegate to project-specific context
5
+ return _jsx("footer", { children: "Footer (shared)" });
6
+ };
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const LanguageSwitcher: React.FC;
@@ -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
+ };
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const Navbar: React.FC;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ // Placeholder for shared Navbar
3
+ export const Navbar = () => {
4
+ // TODO: Implement shared logic or delegate to project-specific context
5
+ return _jsx("nav", { children: "Navbar (shared)" });
6
+ };
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const Toaster: React.FC;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ // Placeholder for shared Toaster
3
+ export const Toaster = () => {
4
+ // TODO: Implement shared logic or delegate to project-specific context
5
+ return _jsx("div", { children: "Toaster (shared)" });
6
+ };
@@ -0,0 +1,3 @@
1
+ export declare function useAICompletion(): {
2
+ complete: (prompt: string) => Promise<string>;
3
+ };
@@ -0,0 +1,5 @@
1
+ // Shared AI completion hook placeholder
2
+ export function useAICompletion() {
3
+ // TODO: Implement shared AI completion logic or delegate to project-specific context
4
+ return { complete: async (prompt) => '' };
5
+ }
@@ -0,0 +1,3 @@
1
+ export declare function useAnalytics(): {
2
+ track: (event: string, data?: any) => void;
3
+ };
@@ -0,0 +1,5 @@
1
+ // Shared analytics hook placeholder
2
+ export function useAnalytics() {
3
+ // TODO: Implement shared analytics logic or delegate to project-specific context
4
+ return { track: (event, data) => { } };
5
+ }
@@ -0,0 +1,3 @@
1
+ export declare function useI18n(): {
2
+ t: (key: string) => string;
3
+ };
@@ -0,0 +1,5 @@
1
+ // Shared i18n hook placeholder
2
+ export function useI18n() {
3
+ // TODO: Implement shared i18n logic or delegate to project-specific context
4
+ return { t: (key) => key };
5
+ }
@@ -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,4 @@
1
+ // Shared analytics utility placeholder
2
+ export function trackEvent(event, data) {
3
+ // TODO: Implement analytics event tracking
4
+ }
@@ -0,0 +1 @@
1
+ export declare function translate(key: string, lang: string): string;
@@ -0,0 +1,5 @@
1
+ // Shared i18n utility placeholder
2
+ export function translate(key, lang) {
3
+ // TODO: Implement translation logic
4
+ return key;
5
+ }
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
+ }