UNPKG

design-system-govbr-rnp

Version:

## Padrão Digital de Governo - React Biblioteca de componentes React que implementa o [Padrão Visual digital do governo](https://www.gov.br/ds/). O objetivo da biblioteca é facilitar a implementação e promover a padronização das interfaces de sistemas do

105 lines (104 loc) 2.49 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = exports.Default = void 0; var _react = _interopRequireDefault(require("react")); var _Typography = _interopRequireDefault(require("./Typography")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var _default = { title: "Utilities/CSS/Typography", component: _Typography.default, argTypes: { title: { name: "title", table: { type: { summary: "string" } }, control: { type: "text" } }, component: { name: "tag", type: { name: "string" }, description: "Tag do componente", control: { type: "select", options: ["h1", "h2", "h3", "h4", "h5", "h6", "label"] } }, fontWeight: { name: "fontWeight", description: "Peso da fonte", control: { type: "select", options: ["thin", "extra-light", "light", "regular", "medium", "semi-bold", "bold", "extra-bold", "black"] } }, fontStyle: { name: "fontStyle", type: { name: "string" }, description: "Estilo da fonte", control: { type: "select", options: ["normal", "italic"] } }, lineHeight: { name: "lineHeight", type: { name: "string" }, description: "Entrelinha", control: { type: "select", options: ["low", "medium", "high"] } }, theme: { name: "theme", type: { name: "string" }, description: "Tema", control: { type: "select", options: ["light", "dark"] } }, spacing: { name: "spacing", type: { name: "string" }, description: "Espaçamento do elemento", control: { type: "select", options: ["2x", "2xh", "22xh", "3x", "3xh", "4x", "4xh", "5x", "5xh", "6x", "6xh", "7x", "7xh", "8x", "8xh", "9x", "9xh", "10x", "10xh"] } } } }; exports.default = _default; var Template = function Template(args) { return /*#__PURE__*/_react.default.createElement(_Typography.default, args); }; var Default = Template.bind({}); exports.Default = Default; Default.storyName = "Tipografia"; Default.args = { title: "Tipografia", component: "h1", fontWeight: "regular", fontStyle: "normal", lineHeight: "medium", theme: "light", spacing: "2x" };