11import React from 'react' ;
2- import { Collapse , Select , Typography } from '@tiny-design/react' ;
2+ import { Collapse , Select , Text } from '@tiny-design/react' ;
33import { COLOR_GROUPS , CORE_COLOR_GROUP_TITLES , FONT_OPTIONS , MONO_OPTIONS } from './editor-config' ;
44import { ColorField , SliderField , TextField } from './editor-fields' ;
55import type { FieldKey , ThemeEditorDraft , ThemeEditorSection , ThemeEditorColorGroup } from './types' ;
@@ -12,7 +12,7 @@ function renderColorGroups(
1212 return groups . map ( ( group ) => (
1313 < div key = { group . title } className = "theme-studio__group-card" >
1414 < div className = "theme-studio__group-header" >
15- < Typography . Text strong > { group . title } </ Typography . Text >
15+ < Text strong > { group . title } </ Text >
1616 </ div >
1717 < div className = "theme-studio__group-fields" >
1818 { group . fields . map ( ( field ) => (
@@ -46,10 +46,10 @@ export function ThemeStudioSidebarContent({
4646 < div className = "theme-studio__panel-stack" >
4747 < div className = "theme-studio__group-section" >
4848 < div className = "theme-studio__section-header" >
49- < Typography . Text strong > Core Colors</ Typography . Text >
50- < Typography . Text type = "secondary" >
49+ < Text strong > Core Colors</ Text >
50+ < Text type = "secondary" >
5151 Start with brand, surfaces, feedback, and focus.
52- </ Typography . Text >
52+ </ Text >
5353 </ div >
5454 { renderColorGroups ( coreColorGroups , draft , updateField ) }
5555 </ div >
@@ -64,10 +64,10 @@ export function ThemeStudioSidebarContent({
6464 itemKey = "advanced-colors"
6565 header = { (
6666 < div className = "theme-studio__section-header theme-studio__section-header_inline" >
67- < Typography . Text strong > Advanced Tokens</ Typography . Text >
68- < Typography . Text type = "secondary" >
67+ < Text strong > Advanced Tokens</ Text >
68+ < Text type = "secondary" >
6969 Card, popover, sidebar, chart.
70- </ Typography . Text >
70+ </ Text >
7171 </ div >
7272 ) }
7373 >
@@ -86,8 +86,8 @@ export function ThemeStudioSidebarContent({
8686 < div className = "theme-studio__group-card theme-studio__group-card_toolbar" >
8787 < div className = "theme-studio__group-toolbar theme-studio__group-toolbar_start" >
8888 < div >
89- < Typography . Text strong > Typography System</ Typography . Text >
90- < Typography . Text type = "secondary" > Font, scale, rhythm.</ Typography . Text >
89+ < Text strong > Typography System</ Text >
90+ < Text type = "secondary" > Font, scale, rhythm.</ Text >
9191 </ div >
9292 </ div >
9393 < div className = "theme-studio__summary-grid theme-studio__summary-grid_compact" >
@@ -107,7 +107,7 @@ export function ThemeStudioSidebarContent({
107107 </ div >
108108
109109 < div className = "theme-studio__group-card" >
110- < Typography . Text strong > Font Family</ Typography . Text >
110+ < Text strong > Font Family</ Text >
111111 < div className = "theme-studio__type-preview-card" >
112112 < strong style = { { fontFamily : draft . fields . fontSans } } > The quick brown fox jumps over the lazy dog.</ strong >
113113 < code style = { { fontFamily : draft . fields . fontMono } } > const theme = { mode: "{ draft . mode } " }</ code >
@@ -137,15 +137,15 @@ export function ThemeStudioSidebarContent({
137137 </ div >
138138
139139 < div className = "theme-studio__group-card" >
140- < Typography . Text strong > Type Scale</ Typography . Text >
140+ < Text strong > Type Scale</ Text >
141141 < SliderField label = "Base Font Size" value = { draft . fields . fontSizeBase } onChange = { ( next ) => updateField ( 'fontSizeBase' , next ) } config = { { min : 12 , max : 20 , step : 1 , unit : 'px' } } />
142142 < SliderField label = "Line Height" value = { draft . fields . lineHeightBase } onChange = { ( next ) => updateField ( 'lineHeightBase' , next ) } config = { { min : 1.1 , max : 2 , step : 0.05 } } />
143143 < SliderField label = "H1 Size" value = { draft . fields . h1Size } onChange = { ( next ) => updateField ( 'h1Size' , next ) } config = { { min : 28 , max : 64 , step : 1 , unit : 'px' } } />
144144 < SliderField label = "H2 Size" value = { draft . fields . h2Size } onChange = { ( next ) => updateField ( 'h2Size' , next ) } config = { { min : 22 , max : 48 , step : 1 , unit : 'px' } } />
145145 </ div >
146146
147147 < div className = "theme-studio__group-card" >
148- < Typography . Text strong > Fine Tuning</ Typography . Text >
148+ < Text strong > Fine Tuning</ Text >
149149 < SliderField label = "Letter Spacing" value = { draft . fields . letterSpacing } onChange = { ( next ) => updateField ( 'letterSpacing' , next ) } config = { { min : - 0.08 , max : 0.08 , step : 0.01 , unit : 'em' } } />
150150 < div className = "theme-studio__type-preview-lines" >
151151 < span style = { { fontSize : draft . fields . h1Size , letterSpacing : draft . fields . letterSpacing } } > Heading Preview</ span >
@@ -162,8 +162,8 @@ export function ThemeStudioSidebarContent({
162162 < div className = "theme-studio__group-card theme-studio__group-card_toolbar" >
163163 < div className = "theme-studio__group-toolbar theme-studio__group-toolbar_start" >
164164 < div >
165- < Typography . Text strong > Surface & Shape </ Typography . Text >
166- < Typography . Text type = "secondary" > Corners, density, elevation.</ Typography . Text >
165+ < Text strong > Surface & Shape </ Text >
166+ < Text type = "secondary" > Corners, density, elevation.</ Text >
167167 </ div >
168168 </ div >
169169 < div className = "theme-studio__summary-grid theme-studio__summary-grid_compact" >
@@ -187,7 +187,7 @@ export function ThemeStudioSidebarContent({
187187 </ div >
188188
189189 < div className = "theme-studio__group-card" >
190- < Typography . Text strong > Shape</ Typography . Text >
190+ < Text strong > Shape</ Text >
191191 < SliderField label = "Global Radius" value = { draft . fields . radius } onChange = { ( next ) => updateField ( 'radius' , next ) } config = { { min : 0 , max : 2 , step : 0.0625 , unit : 'rem' } } />
192192 < SliderField label = "Button Radius" value = { draft . fields . buttonRadius } onChange = { ( next ) => updateField ( 'buttonRadius' , next ) } config = { { min : 0 , max : 4 , step : 0.0625 , unit : 'rem' } } />
193193 < SliderField label = "Input Radius" value = { draft . fields . inputRadius } onChange = { ( next ) => updateField ( 'inputRadius' , next ) } config = { { min : 0 , max : 2 , step : 0.0625 , unit : 'rem' } } />
@@ -196,20 +196,20 @@ export function ThemeStudioSidebarContent({
196196
197197 < div className = "theme-studio__group-card" >
198198 < div className = "theme-studio__section-header" >
199- < Typography . Text strong > Density</ Typography . Text >
200- < Typography . Text type = "secondary" > Tune spacing and heights for fields, buttons, and cards.</ Typography . Text >
199+ < Text strong > Density</ Text >
200+ < Text type = "secondary" > Tune spacing and heights for fields, buttons, and cards.</ Text >
201201 </ div >
202202 < div className = "theme-studio__group-fields" >
203- < Typography . Text className = "theme-studio__subgroup-title" > Fields</ Typography . Text >
203+ < Text className = "theme-studio__subgroup-title" > Fields</ Text >
204204 < SliderField label = "Field Height / Medium" value = { draft . fields . fieldHeightMd } onChange = { ( next ) => updateField ( 'fieldHeightMd' , next ) } config = { { min : 20 , max : 56 , step : 1 , unit : 'px' } } />
205205 < SliderField label = "Field Padding / Medium" value = { draft . fields . fieldPaddingMd } onChange = { ( next ) => updateField ( 'fieldPaddingMd' , next ) } config = { { min : 0 , max : 32 , step : 1 , unit : 'px' } } />
206206 < Collapse bordered = { false } className = "theme-studio__advanced-collapse" defaultActiveKey = { [ ] } >
207207 < Panel
208208 itemKey = "field-density-advanced"
209209 header = { (
210210 < div className = "theme-studio__section-header theme-studio__section-header_inline" >
211- < Typography . Text strong > Advanced Sizes</ Typography . Text >
212- < Typography . Text type = "secondary" > Small and large field density.</ Typography . Text >
211+ < Text strong > Advanced Sizes</ Text >
212+ < Text type = "secondary" > Small and large field density.</ Text >
213213 </ div >
214214 ) }
215215 >
@@ -222,16 +222,16 @@ export function ThemeStudioSidebarContent({
222222 </ div >
223223
224224 < div className = "theme-studio__group-fields" >
225- < Typography . Text className = "theme-studio__subgroup-title" > Buttons</ Typography . Text >
225+ < Text className = "theme-studio__subgroup-title" > Buttons</ Text >
226226 < SliderField label = "Button Height / Medium" value = { draft . fields . buttonHeightMd } onChange = { ( next ) => updateField ( 'buttonHeightMd' , next ) } config = { { min : 20 , max : 56 , step : 1 , unit : 'px' } } />
227227 < SliderField label = "Button Padding / Medium" value = { draft . fields . buttonPaddingMd } onChange = { ( next ) => updateField ( 'buttonPaddingMd' , next ) } config = { { min : 0 , max : 32 , step : 1 , unit : 'px' } } />
228228 < Collapse bordered = { false } className = "theme-studio__advanced-collapse" defaultActiveKey = { [ ] } >
229229 < Panel
230230 itemKey = "button-density-advanced"
231231 header = { (
232232 < div className = "theme-studio__section-header theme-studio__section-header_inline" >
233- < Typography . Text strong > Advanced Sizes</ Typography . Text >
234- < Typography . Text type = "secondary" > Small and large button density.</ Typography . Text >
233+ < Text strong > Advanced Sizes</ Text >
234+ < Text type = "secondary" > Small and large button density.</ Text >
235235 </ div >
236236 ) }
237237 >
@@ -244,13 +244,13 @@ export function ThemeStudioSidebarContent({
244244 </ div >
245245
246246 < div className = "theme-studio__group-fields" >
247- < Typography . Text className = "theme-studio__subgroup-title" > Cards</ Typography . Text >
247+ < Text className = "theme-studio__subgroup-title" > Cards</ Text >
248248 < SliderField label = "Card Padding" value = { draft . fields . cardPadding } onChange = { ( next ) => updateField ( 'cardPadding' , next ) } config = { { min : 12 , max : 40 , step : 1 , unit : 'px' } } />
249249 </ div >
250250 </ div >
251251
252252 < div className = "theme-studio__group-card" >
253- < Typography . Text strong > Elevation & Focus </ Typography . Text >
253+ < Text strong > Elevation & Focus </ Text >
254254 < div className = "theme-studio__surface-preview-card" >
255255 < div className = "theme-studio__surface-proxy" > Card Surface</ div >
256256 < div className = "theme-studio__focus-proxy" > Focus Ring</ div >
0 commit comments