"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Text = void 0;
const styled_components_1 = __importDefault(require("styled-components"));
const styled_system_1 = require("styled-system");
const content_styles_1 = __importDefault(require("../../utils/content-styles"));
const css_class_1 = require("../../utils/css-class");
const variants = styled_system_1.variant({
variants: {
xs: {
fontSize: 'xs',
},
sm: {
fontSize: 'sm',
},
lg: {
fontSize: 'lg',
},
},
});
/**
* @classdesc
*
*
*
* Use the Text component to control font size, weight, alignment, and color.
* By default it is rendered as a `div` but you can change this to other (like `span`)
* by using `as` prop,
*
* ### Usage
*
* ```javascript
* import { Text, TextProps } from '@adminjs/design-system'
* ```
*
* @component
* @subcategory Atoms
* @see TextProps
* @see {@link https://storybook.adminjs.co/?path=/story/designsystem-atoms-text--default Storybook}
* @hideconstructor
* @example