UNPKG

baseui

Version:

A React Component library implementing the Base design language

38 lines (35 loc) 709 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({ colors, disabled, minHitArea, isLoading, isSelected, kind, shape, size, backgroundSafe, widthType }) { return { $colors: colors, $disabled: disabled, $minHitArea: minHitArea, $isLoading: isLoading, $isSelected: Boolean(isSelected), $kind: kind, $shape: shape, $size: size, $backgroundSafe: backgroundSafe, $widthType: widthType }; }