UNPKG

baseui

Version:

A React Component library implementing the Base design language

58 lines (56 loc) 1.39 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.WIDTH_TYPE = exports.SIZE = exports.SHAPE = exports.MIN_HIT_AREA = exports.KIND = exports.BUTTON_GROUP_EXCLUSIVE_KINDS = void 0; /* 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. */ const KIND = exports.KIND = { primary: 'primary', secondary: 'secondary', tertiary: 'tertiary', dangerPrimary: 'dangerPrimary', dangerSecondary: 'dangerSecondary', dangerTertiary: 'dangerTertiary' }; const BUTTON_GROUP_EXCLUSIVE_KINDS = exports.BUTTON_GROUP_EXCLUSIVE_KINDS = Object.freeze({ outline: 'outline' }); const SHAPE = exports.SHAPE = { default: 'default', rectangular: 'rectangular', // same as default rounded: 'rounded', // same as pill pill: 'pill', /** * @deprecated Use 'circle' or 'square' instead for icon-only buttons */ round: 'round', circle: 'circle', square: 'square' }; const SIZE = exports.SIZE = { mini: 'mini', // 'xSmall' default: 'default', // 'medium' compact: 'compact', // 'small' large: 'large', // 'large' xSmall: 'xSmall', small: 'small', medium: 'medium' }; const MIN_HIT_AREA = exports.MIN_HIT_AREA = { tap: 'tap', click: 'click' }; const WIDTH_TYPE = exports.WIDTH_TYPE = { hug: 'hug', fill: 'fill' };