import "core-js/modules/es.symbol.js";
import "core-js/modules/es.array.filter.js";
import "core-js/modules/es.array.for-each.js";
import "core-js/modules/es.array.push.js";
import "core-js/modules/es.object.define-properties.js";
import "core-js/modules/es.object.define-property.js";
import "core-js/modules/es.object.get-own-property-descriptor.js";
import "core-js/modules/es.object.get-own-property-descriptors.js";
import "core-js/modules/es.object.keys.js";
import "core-js/modules/es.object.to-string.js";
import "core-js/modules/esnext.iterator.constructor.js";
import "core-js/modules/esnext.iterator.filter.js";
import "core-js/modules/esnext.iterator.for-each.js";
import "core-js/modules/web.dom-collections.for-each.js";
import _defineProperty from "@babel/runtime/helpers/defineProperty";
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
import "core-js/modules/es.string.bold.js";
import classNames from 'classnames';
import React from 'react';
import './index.css';
import { jsx as _jsx } from "react/jsx-runtime";
export var TextBubble = function TextBubble(_ref) {
  var styles = _ref.styles,
    _ref$type = _ref.type,
    type = _ref$type === void 0 ? 'gray' : _ref$type,
    _ref$size = _ref.size,
    size = _ref$size === void 0 ? 'medium' : _ref$size,
    _ref$txt = _ref.txt,
    txt = _ref$txt === void 0 ? 'Hello, World!' : _ref$txt,
    _ref$bold = _ref.bold,
    bold = _ref$bold === void 0 ? false : _ref$bold,
    _ref$lineHeight = _ref.lineHeight,
    lineHeight = _ref$lineHeight === void 0 ? 'medium' : _ref$lineHeight,
    _ref$marginBottom = _ref.marginBottom,
    marginBottom = _ref$marginBottom === void 0 ? 0 : _ref$marginBottom,
    classnames = _ref.classnames;
  var cls = classNames('fcr-text-bubble', classnames, _defineProperty(_defineProperty(_defineProperty(_defineProperty({
    'fcr-text-bubble--gray': type === 'gray',
    'fcr-text-bubble--gray-2': type === 'gray_2',
    'fcr-text-bubble--white': type === 'white',
    'fcr-text-bubble--purple': type === 'purple',
    'fcr-text-bubble--transparent': type === 'transparent',
    'fcr-text-bubble--small': size === 'small',
    'fcr-text-bubble--medium': size === 'medium',
    'fcr-text-bubble--large': size === 'large'
  }, bold ? 'fcr-text-bubble--weight-bold' : 'fcr-text-bubble--weight-normal', true), 'fcr-text-bubble--line-height-small', lineHeight === 'small'), 'fcr-text-bubble--line-height-medium', lineHeight === 'medium'), 'fcr-text-bubble--line-height-large', lineHeight === 'large'));
  return /*#__PURE__*/_jsx("div", {
    className: cls,
    style: _objectSpread(_objectSpread({}, styles), marginBottom ? {
      marginBottom: marginBottom
    } : {}),
    children: typeof txt === 'string' ? /*#__PURE__*/_jsx("span", {
      children: txt
    }) : txt
  });
};