import 'react';
import '@emotion/core';
import { a as __assign, b as __makeTemplateObject } from './_tslib-5c49bd3f.js';
import { jsxs, jsx } from '@emotion/react/jsx-runtime';
import '@emotion/styled';
import '@emotion/react';
import { s as styled } from './css-efbd0d2d.js';
import { u as useId } from './auto-id.esm-d84df351.js';
import { u as useCustomCss } from './utilities-357c56e6.js';

var ContextDataChip = function (_a) {
    var label = _a.label, value = _a.value, variant = _a.variant, userProvidedId = _a.id, _b = _a.customCss, customCss = _b === void 0 ? '' : _b;
    var id = useId(userProvidedId);
    var resolvedCss = useCustomCss(customCss);
    return (jsxs(StyledWrapperDiv, __assign({ css: resolvedCss, id: id }, { children: [jsx(StyledTitleDiv, { children: label }, void 0),
            jsx(StyledNumberDiv, __assign({ "data-variant": variant }, { children: value }), void 0)] }), void 0));
};
var StyledWrapperDiv = styled('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n  display: flex;\n  flex-direction: column;\n  font-weight: bold;\n"], ["\n  display: flex;\n  flex-direction: column;\n  font-weight: bold;\n"])));
var StyledTitleDiv = styled('div')(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n  font-size: 12px;\n  color: #868686;\n"], ["\n  font-size: 12px;\n  color: #868686;\n"])));
var StyledNumberDiv = styled('div')(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n  font-size: 28px;\n  &[data-variant='primary'] {\n    color: ", ";\n  }\n  &[data-variant='success'] {\n    color: ", ";\n  }\n  &[data-variant='danger'] {\n    color: ", ";\n  }\n"], ["\n  font-size: 28px;\n  &[data-variant='primary'] {\n    color: ", ";\n  }\n  &[data-variant='success'] {\n    color: ", ";\n  }\n  &[data-variant='danger'] {\n    color: ", ";\n  }\n"])), function (_a) {
    var theme = _a.theme;
    return theme.colors.primary;
}, function (_a) {
    var theme = _a.theme;
    return theme.colors.success;
}, function (_a) {
    var theme = _a.theme;
    return theme.colors.danger;
});
var templateObject_1, templateObject_2, templateObject_3;

export { ContextDataChip };
//# sourceMappingURL=ContextDataChip.js.map
