// __SDEFILE__ - This file is a dependency for the stand-alone environment import { formatMm } from 'shared/utils.mjs' import { mergeOptions } from '@freesewing/core' import { BoolInput, ConstantInput, SliderInput, DegInput, ListInput, PctInput, } from '../shared/inputs.mjs' const PctOptionInput = (props) => { const { config, settings, changed } = props const currentOrDefault = changed ? props.current : config.dflt / 100 return (
{config.toAbs ? formatMm( config.toAbs( currentOrDefault, settings, mergeOptions(settings, props.patternConfig.options) ) ) : ' '}
) } // Facilitate lookup of the input component export const inputs = { bool: BoolInput, constant: ConstantInput, count: (props) => , deg: DegInput, list: (props) => , mm: () => FIXME: Mm options are deprecated. Please report this , pct: PctOptionInput, }