You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte-kit-vice/src/uix/eidos/index.ts

230 lines
5.6 KiB

export {
ActiveEidos,
createActiveEidos,
defaultActiveEidosThemeResolver
} from './active-eidos.svelte';
export {
ActiveEidosConfigError,
ActiveEidosNoContextError,
EidosCssVariableError,
EidosConfigDocumentError,
EidosThemeNotFoundError,
EidosConfigValidationError
} from './errors';
export { createEidosCssContract, flattenEidosCssContract } from './lib/contract';
export { buildScheme, schemeDeclarations } from './lib/build-scheme';
export type {
BuildSchemeOptions,
BuildSchemeResult,
SchemeDeclarationsOptions,
SchemeOnSolidPair,
SchemeRoleResult
} from './lib/build-scheme';
export { buildTypeScale, typeScaleDeclarations } from './lib/build-type-scale';
export type {
TypeScaleSeed,
TypeScaleSize,
BuildTypeScaleResult
} from './lib/build-type-scale';
export { buildDepth, depthDeclarations } from './lib/build-depth';
export type { DepthOverrides, BuildDepthResult } from './lib/build-depth';
export { buildShape } from './lib/build-shape';
export type { ShapeSeed, BuildShapeResult } from './lib/build-shape';
export { collectFontPreloads } from './lib/font-preload';
export type { FontPreload } from './lib/font-preload';
export {
createEidosConfigDocumentFromConfig,
getEidosColorRoleScale,
getEidosColorScale,
getEidosCssContract,
getEidosRecipeTokens,
getEidosTheme,
listEidosColorRoles,
listEidosColorScales,
listEidosRecipes,
listEidosThemes,
parseEidosConfigFromJson,
readEidosConfigFromDocument,
serializeEidosConfig,
snapshotEidosConfig,
validateEidosConfig
} from './lib/config';
export { defineEidosConfig, extendEidosConfig, type EidosConfigPatch } from './lib/options';
export {
EIDOS_CONFIG_DOCUMENT_KIND,
EIDOS_CONFIG_DOCUMENT_VERSION,
createEidosConfigDocument,
isEidosConfigDocument,
isEidosConfigDocumentLike,
parseEidosConfigDocument,
readEidosConfigDocument,
serializeEidosConfigDocument
} from './lib/persistence';
// Note: the raw render-* functions are intentionally NOT re-exported here. The
// public CSS-rendering API is the ActiveEidos class (`renderStaticCss()` /
// `renderThemeCss()` / `renderCssVariables()` / `renderContractCss()`), which gates
// them through `assertValid()` + the active config. Reach into `./lib/render-css`
// directly only for internal/tooling use.
export {
THEME_BASE_COLOR_ROLES,
THEME_BASE_DARK_COLOR_SCALES,
THEME_BASE_DARK_COLOR_SEMANTICS,
THEME_BASE_DARK_SHADOW,
THEME_BASE_LIGHT_COLOR_SCALES,
THEME_BASE_LIGHT_COLOR_SEMANTICS,
THEME_BASE_LIGHT_SHADOW,
THEME_BASE_OPTIONS,
createThemeBaseEidosConfig
} from './lib/themes/base';
export { THEME_BASE_RECIPE_TOKENS } from './lib/recipes/base';
export {
STATIC_BORDER,
STATIC_CONTROL_HEIGHT,
STATIC_DENSITY,
STATIC_FOCUS_RING,
STATIC_ICON,
STATIC_LAYOUT,
STATIC_MOTION,
STATIC_OPACITY,
STATIC_PRIMITIVES,
STATIC_RADIUS,
STATIC_SIZE,
STATIC_SPACE,
STATIC_Z_INDEX
} from './lib/primitives/static';
export { STATIC_TYPOGRAPHY } from './lib/primitives/typography';
export type {
ActiveEidosCssVariablesOptions,
ActiveEidosOptions,
ActiveEidosPreferenceSource,
ActiveEidosStyleHost,
ActiveEidosThemeContext,
ActiveEidosThemeResolver,
ActiveEidosThemeSource,
ActiveEidosUserOptions,
ApplyColorSchemeOptions,
ApplyTypeScaleOptions,
ApplyDepthOptions,
ApplyShapeOptions
} from './active-eidos.svelte';
export type {
EidosConfigDocument,
EidosConfigDocumentKind,
EidosConfigDocumentVersion
} from './lib/persistence';
export type {
BorderColorRoles,
BorderPrimitiveSet,
BorderStyleKey,
BorderWidthKey,
AspectRatioKey,
ColorAlphaScale,
ColorAlphaScales,
ColorAlphaStep,
ColorPrimitiveSet,
ColorRole,
ColorRoleDefinition,
ColorRoleMap,
ColorRoleSlot,
ColorScale,
ColorScaleStep,
ColorScales,
ColorSemanticSet,
ContainerWidthKey,
ContentColorRoles,
ContentWidthKey,
ControlHeightKey,
DurationKey,
EaseKey,
Density,
DensityKey,
DensityPrimitiveSet,
ScalingKey,
EidosCssContract,
EidosCssContractScope,
EidosCssContractToken,
EidosCssVariableMap,
EidosCssVariableValue,
EidosCssVarName,
EidosValidationIssue,
EidosValidationReport,
EidosConfig,
EidosConfigSnapshot,
FocusColorRoles,
FocusRingPrimitiveSet,
FontFamily,
FontSource,
HierarchyColorRole,
IconPrimitiveSet,
IconSizeKey,
IconStrokeWidthKey,
LayoutPrimitiveSet,
MotionDistanceKey,
MotionPrimitiveSet,
MotionScaleKey,
OpacityKey,
OpacityPrimitiveSet,
PrimitiveSet,
RadiusKey,
RecipeTokenMap,
RecipeTokenSet,
RecipeTokenValue,
ScaleMap,
SemanticSet,
ShadowKey,
ShadowPhysicalKey,
ShadowScale,
ShadowSemanticKey,
SizePrimitive,
SizePrimitiveKey,
SizePrimitiveSet,
SurfaceColorRoles,
TextMetric,
TextSize,
ThemeColorSet,
ThemeDefinition,
ThemeMap,
TypographyPrimitiveSet,
TypographySizeValue,
TypographyStyle,
ZIndexKey,
ZIndexPrimitiveSet
} from './lib/config-types';
// Momento-`--state` preset-name registry (F7 typegen) — app-extensible via
// `declare module '$uix/eidos' { interface EidosMotionPresets { … } }`.
export type { EidosMotionPresets, MotionPresetName } from './lib/motion/registry';
export {
ASPECT_RATIO_KEYS,
BORDER_STYLE_KEYS,
BORDER_WIDTH_KEYS,
COLOR_ALPHA_STEPS,
BORDER_COLOR_KEYS,
COLOR_ROLE_SLOTS,
COLOR_ROLES,
COLOR_SCALE_STEPS,
CONTAINER_WIDTH_KEYS,
CONTENT_COLOR_KEYS,
CONTENT_WIDTH_KEYS,
DENSITIES,
DENSITY_KEYS,
DURATION_KEYS,
EASE_KEYS,
FOCUS_COLOR_KEYS,
HIERARCHY_COLOR_ROLES,
ICON_STROKE_WIDTH_KEYS,
MOTION_DISTANCE_KEYS,
MOTION_SCALE_KEYS,
OPACITY_KEYS,
RADIUS_KEYS,
SCALING_KEYS,
SHADOW_KEYS,
SHADOW_PHYSICAL_KEYS,
SHADOW_SEMANTIC_KEYS,
SIZE_PRIMITIVE_KEYS,
SIZES,
SURFACE_COLOR_KEYS,
TEXT_SIZES,
Z_INDEX_KEYS
} from './lib/config-types';
export type { Breakpoint, Position, ResponsiveProp, Size } from './lib/types';

Powered by TurnKey Linux.