UNPKG

baseui

Version:

A React Component library implementing the Base design language

41 lines (38 loc) 752 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getSharedProps = getSharedProps; /* Copyright (c) Uber Technologies, Inc. This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. */ function getSharedProps(props, state) { const { disabled, error, positive, adjoined, size, required, resize, readOnly } = props; const { isFocused } = state; return { $isFocused: isFocused, $disabled: disabled, $error: error, $positive: positive, // @ts-ignore $adjoined: adjoined, // @ts-ignore $size: size, $required: required, $resize: resize, $isReadOnly: readOnly }; }