UNPKG

native-base

Version:

Essential cross-platform UI components for React Native

66 lines (61 loc) 1.09 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _tools = require("../tools"); const defaultProps = { colorScheme: 'primary', size: 'sm', rounded: 'full', min: 0, max: 100, value: 0, isIndeterminate: false }; function baseStyle(props) { const colorScheme = (0, _tools.getColorScheme)(props); return { bg: "".concat(colorScheme, ".200"), overflow: 'hidden', _filledTrack: { bg: (0, _tools.mode)("".concat(colorScheme, ".600"), "".concat(colorScheme, ".500"))(props), shadow: 0, height: '100%', display: 'flex', alignItems: 'center', justifyContent: 'center', _text: { color: 'white', fontWeight: 'bold' } } }; } const sizes = { 'xs': { height: 1 }, 'sm': { height: 2 }, 'md': { height: 3 }, 'lg': { height: 4 }, 'xl': { height: 5 }, '2xl': { height: 6 } }; var _default = { baseStyle, defaultProps, sizes }; exports.default = _default; //# sourceMappingURL=progress.js.map