From d22f2f86431c9a08fd95e76964c073cc4afc76f0 Mon Sep 17 00:00:00 2001 From: Ivan Mendez Date: Mon, 9 Feb 2026 13:55:11 +0000 Subject: [PATCH 1/2] chore: rename package to kompkit-core and update all references --- README.md | 2 +- docs/getting-started.md | 2 +- docs/recipes.md | 22 +++++++++++----------- docs/web.md | 16 ++++++++-------- lerna.json | 4 ++-- package-lock.json | 13 +++++++------ package.json | 2 +- 7 files changed, 31 insertions(+), 30 deletions(-) diff --git a/README.md b/README.md index c826e69..ffd2e5e 100644 --- a/README.md +++ b/README.md @@ -114,7 +114,7 @@ Once installed, you can import and use KompKit utilities: **TypeScript/JavaScript:** ```typescript -import { debounce, isEmail, formatCurrency } from "@kompkit/core"; +import { debounce, isEmail, formatCurrency } from "kompkit-core"; const search = debounce((query: string) => { console.log("Searching:", query); diff --git a/docs/getting-started.md b/docs/getting-started.md index 4415637..33caa7d 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -9,7 +9,7 @@ Status: `V0.2.0-alpha`. ### Web (React/Vue) ```bash -npm i @kompkit/core +npm i kompkit-core ``` ### Android (Gradle) diff --git a/docs/recipes.md b/docs/recipes.md index 17f4a1e..75e0bef 100644 --- a/docs/recipes.md +++ b/docs/recipes.md @@ -6,7 +6,7 @@ Real-world examples using KompKit Core utilities. ```tsx import { useState, useEffect } from "react"; -import { debounce } from "@kompkit/core"; +import { debounce } from "kompkit-core"; function SearchComponent() { const [query, setQuery] = useState(""); @@ -160,7 +160,7 @@ class _SearchScreenState extends State { ```tsx import { useState } from "react"; -import { formatCurrency } from "@kompkit/core"; +import { formatCurrency } from "kompkit-core"; function PriceDisplay({ amount }: { amount: number }) { const [locale, setLocale] = useState<"en-US" | "es-ES" | "ja-JP">("en-US"); @@ -191,7 +191,7 @@ function PriceDisplay({ amount }: { amount: number }) { ```tsx import { useState } from "react"; -import { isEmail } from "@kompkit/core"; +import { isEmail } from "kompkit-core"; function ContactForm() { const [email, setEmail] = useState(""); @@ -231,22 +231,22 @@ import 'package:kompkit_core/kompkit_core.dart'; class PriceDisplay extends StatefulWidget { final double amount; - + const PriceDisplay({Key? key, required this.amount}) : super(key: key); - + @override _PriceDisplayState createState() => _PriceDisplayState(); } class _PriceDisplayState extends State { String _selectedLocale = 'en_US'; - + final Map> _localeConfig = { 'en_US': {'currency': 'USD', 'locale': 'en_US'}, 'es_ES': {'currency': 'EUR', 'locale': 'es_ES'}, 'ja_JP': {'currency': 'JPY', 'locale': 'ja_JP'}, }; - + @override Widget build(BuildContext context) { final config = _localeConfig[_selectedLocale]!; @@ -255,7 +255,7 @@ class _PriceDisplayState extends State { currency: config['currency']!, locale: config['locale']!, ); - + return Column( children: [ Text( @@ -297,7 +297,7 @@ class ContactForm extends StatefulWidget { class _ContactFormState extends State { final TextEditingController _emailController = TextEditingController(); final GlobalKey _formKey = GlobalKey(); - + void _handleSubmit() { if (_formKey.currentState!.validate()) { // Submit form @@ -307,7 +307,7 @@ class _ContactFormState extends State { ); } } - + String? _validateEmail(String? value) { if (value == null || value.isEmpty) { return 'Email is required'; @@ -317,7 +317,7 @@ class _ContactFormState extends State { } return null; } - + @override Widget build(BuildContext context) { return Scaffold( diff --git a/docs/web.md b/docs/web.md index bfaa9ce..b815d1f 100644 --- a/docs/web.md +++ b/docs/web.md @@ -7,7 +7,7 @@ Status: `V0.2.0-alpha`. ## Installation ```bash -npm i @kompkit/core +npm i kompkit-core ``` ## Imports @@ -15,13 +15,13 @@ npm i @kompkit/core ESM: ```ts -import { debounce, isEmail, formatCurrency } from "@kompkit/core"; +import { debounce, isEmail, formatCurrency } from "kompkit-core"; ``` CommonJS: ```js -const { debounce, isEmail, formatCurrency } = require("@kompkit/core"); +const { debounce, isEmail, formatCurrency } = require("kompkit-core"); ``` ## Usage examples @@ -29,7 +29,7 @@ const { debounce, isEmail, formatCurrency } = require("@kompkit/core"); ### debounce ```ts -import { debounce } from "@kompkit/core"; +import { debounce } from "kompkit-core"; const onType = debounce((value: string) => { console.log("Search:", value); @@ -43,7 +43,7 @@ onType("kompkit"); // only this call will execute after ~300ms ### isEmail ```ts -import { isEmail } from "@kompkit/core"; +import { isEmail } from "kompkit-core"; isEmail("test@example.com"); // true isEmail("invalid@"); // false @@ -52,7 +52,7 @@ isEmail("invalid@"); // false ### formatCurrency ```ts -import { formatCurrency } from "@kompkit/core"; +import { formatCurrency } from "kompkit-core"; formatCurrency(1234.56); // "1.234,56 €" (es-ES by default) formatCurrency(1234.56, "USD", "en-US"); // "$1,234.56" @@ -62,7 +62,7 @@ formatCurrency(1234.56, "USD", "en-US"); // "$1,234.56" ```tsx import { useState } from "react"; -import { debounce } from "@kompkit/core"; +import { debounce } from "kompkit-core"; export function SearchBox() { const [value, setValue] = useState(""); @@ -85,7 +85,7 @@ export function SearchBox() { ```vue