From 99ab7e9e08f4644632e5dd8e8cd044720211e67a Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Wed, 3 Jun 2026 10:36:15 +0300 Subject: [PATCH] refactor(shared/ui): stop deep-importing sibling config/types (C-3) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Badge and TechText reached into $shared/ui/Label/config, and SearchBar into $shared/ui/Input/types — bypassing the siblings public surface. - Label/config.ts was explicitly shared text-styling config, not Labels internals; relocate it to shared/ui/labelConfig.ts (a neutral peer module) and point Label/Badge/TechText at it relatively. - inputIconSize is a consumer-facing map; export it from Input/index.ts so SearchBar imports it through the barrel alongside Input. --- src/shared/ui/Badge/Badge.svelte | 6 +++--- src/shared/ui/Input/index.ts | 1 + src/shared/ui/Label/Label.svelte | 2 +- src/shared/ui/SearchBar/SearchBar.svelte | 6 ++++-- src/shared/ui/TechText/TechText.svelte | 4 ++-- src/shared/ui/{Label/config.ts => labelConfig.ts} | 0 6 files changed, 11 insertions(+), 8 deletions(-) rename src/shared/ui/{Label/config.ts => labelConfig.ts} (100%) diff --git a/src/shared/ui/Badge/Badge.svelte b/src/shared/ui/Badge/Badge.svelte index 9c46dd3..d2738bb 100644 --- a/src/shared/ui/Badge/Badge.svelte +++ b/src/shared/ui/Badge/Badge.svelte @@ -4,12 +4,12 @@ -->