Skip to content

Rename "space" models, values and primitives to "size" #201

@andrezero

Description

@andrezero

Why

We want to share the same Size primitive and createSize() raw value between Space and Typogrpahy values

What

Note: we are NOT renaming the domain, it's still space

Rename primitives

All types in packages/libs/designer-decisions/src/inputs/types/primitives/space

  • space.ts => size.ts
  • all types within it become SizeValueInput, Size...
  • SpaceWithUnits becomes SizeObjectLiteral
  • remove 'em' from units (later...)

Note: there will be other space related values when we look into responsiveness (FluidSizeValue, maybe a separate RelativeSizeValue, BreakpointValue, ...)

Create Size and createSize()

change base of SpaceValue

from BaseNumericValue to BaseValue

Rename SpaceValue and SpaceScale

  • to SizeValue to SizeScale
  • rename also components ShowSpaceViz and ShowSizeViz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions