@elastic/eui
Version:
Elastic UI Component Library
36 lines (31 loc) • 1.15 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.focus = void 0;
var _utils = require("../../../../services/theme/utils");
var _size = require("../../../../global_styling/functions/size");
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
/**
* NOTE: These were quick conversions of their Sass counterparts.
* The commented out keys have not been established as necessary yet.
*/
var focus = {
color: 'currentColor',
width: (0, _utils.computed)((0, _size.sizeToPixel)(0.125))
// transparency: { LIGHT: 0.9, DARK: 0.7 },
// backgroundColor: computed(({ colors, focus }) =>
// transparentize(colors.primary, focus!.transparency)
// ),
// Outline
// outline: {
// outline: computed(({ focus }) => `${focus!.width} solid ${focus!.color}`),
// },
};
exports.focus = focus;