From 1d5052a308ad1208a1df99b9109d72e0b00f04f9 Mon Sep 17 00:00:00 2001 From: Roman Barlos Date: Tue, 24 Dec 2024 15:15:34 +0300 Subject: [PATCH] fix: rename unstable namespace keyset (#253) --- src/components/unstable/Stories/i18n/index.ts | 4 ++-- src/components/utils/cn.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/unstable/Stories/i18n/index.ts b/src/components/unstable/Stories/i18n/index.ts index 4f213944..a7574679 100644 --- a/src/components/unstable/Stories/i18n/index.ts +++ b/src/components/unstable/Stories/i18n/index.ts @@ -1,8 +1,8 @@ import {addComponentKeysets} from '@gravity-ui/uikit/i18n'; -import {NAMESPACE} from '../../../utils/cn'; +import {UNSTABLE_NAMESPACE} from '../../../utils/cn'; import en from './en.json'; import ru from './ru.json'; -export const i18n = addComponentKeysets({en, ru}, `${NAMESPACE}stories`); +export const i18n = addComponentKeysets({en, ru}, `${UNSTABLE_NAMESPACE}stories`); diff --git a/src/components/utils/cn.ts b/src/components/utils/cn.ts index d6861921..cc6a4af6 100644 --- a/src/components/utils/cn.ts +++ b/src/components/utils/cn.ts @@ -3,6 +3,7 @@ import {withNaming} from '@bem-react/classname'; export type CnMods = Record; export const NAMESPACE = 'gc-'; +export const UNSTABLE_NAMESPACE = 'gcu-'; export const cn = withNaming({e: '__', m: '_', v: '_'}); export const block = withNaming({n: NAMESPACE, e: '__', m: '_', v: '_'});