diff --git a/src/features/AdjustTypography/model/store/typographySettingsStore/typographySettingsStore.svelte.ts b/src/features/AdjustTypography/model/store/typographySettingsStore/typographySettingsStore.svelte.ts index 58eabd9..7461b22 100644 --- a/src/features/AdjustTypography/model/store/typographySettingsStore/typographySettingsStore.svelte.ts +++ b/src/features/AdjustTypography/model/store/typographySettingsStore/typographySettingsStore.svelte.ts @@ -11,22 +11,23 @@ */ import { - type ControlId, DEFAULT_FONT_SIZE, DEFAULT_FONT_WEIGHT, DEFAULT_LETTER_SPACING, DEFAULT_LINE_HEIGHT, - DEFAULT_TYPOGRAPHY_CONTROLS_DATA, } from '$entities/Font'; import { - type ControlDataModel, - type ControlModel, type PersistentStore, - type TypographyControl, createPersistentStore, - createTypographyControl, } from '$shared/lib'; +import type { NumericControl } from '$shared/ui'; import { SvelteMap } from 'svelte/reactivity'; +import { DEFAULT_TYPOGRAPHY_CONTROLS_DATA } from '../../const/const'; +import type { + ControlId, + ControlModel, +} from '../../types/typography'; +import { createTypographyControl } from '../../typographyControl/createTypographyControl.svelte'; /** * Epsilon for detecting "significant" base-size changes when reconciling @@ -36,7 +37,7 @@ import { SvelteMap } from 'svelte/reactivity'; */ const BASE_SIZE_EPSILON = 0.01; -type ControlOnlyFields = Omit, keyof ControlDataModel>; +type ControlOnlyFields = Omit, 'value' | 'min' | 'max' | 'step'>; /** * A control with its associated instance @@ -45,7 +46,7 @@ export interface Control extends ControlOnlyFields { /** * The reactive typography control instance */ - instance: TypographyControl; + instance: NumericControl; } /** diff --git a/src/features/AdjustTypography/ui/TypographyMenu/TypographyMenu.svelte b/src/features/AdjustTypography/ui/TypographyMenu/TypographyMenu.svelte index 1e234dd..d5b7b2e 100644 --- a/src/features/AdjustTypography/ui/TypographyMenu/TypographyMenu.svelte +++ b/src/features/AdjustTypography/ui/TypographyMenu/TypographyMenu.svelte @@ -5,11 +5,6 @@ Desktop: inline bar with combo controls. -->