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

142 lines (141 loc) 3.09 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = exports.LetterAvatar = exports.IconicAvatar = exports.FotoGraphicAvatar = void 0; var _react = _interopRequireDefault(require("react")); var _Avatar = _interopRequireDefault(require("./Avatar")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var _default = { title: 'Components/Avatar', component: _Avatar.default, argTypes: { title: { name: 'Título', type: { name: 'string', required: true }, description: 'Título do Avatar', table: { type: { summary: 'string' } }, control: { type: 'text' } }, size: { name: 'Tamanho', type: { name: 'string', required: true }, description: 'Tamanho do Avatar', table: { type: { summary: 'string' }, defaultValue: { summary: 'small' } }, control: { type: 'select', options: ['small', 'medium', 'large'] } }, bgColor: { name: 'Cor de Fundo', type: { name: 'string', required: true }, description: 'Cor de fundo do Avatar', table: { type: { summary: 'string' }, defaultValue: { summary: '#dbe8fb' } }, control: { type: 'color' } }, textColor: { name: 'Cor do Texto', type: { name: 'string', required: true }, description: 'Cor do texto do Avatar', table: { type: { summary: 'string' }, defaultValue: { summary: '#c5d4eb' } }, control: { type: 'color' } }, type: { table: { disable: true } } } }; exports.default = _default; var Template = function Template(args) { return /*#__PURE__*/_react.default.createElement(_Avatar.default, args); }; var IconicAvatar = Template.bind({}); exports.IconicAvatar = IconicAvatar; IconicAvatar.storyName = 'Avatar Icônico'; IconicAvatar.args = { type: 'iconic', title: 'Avatar Icônico', size: 'small', bgColor: '#dbe8fb', textColor: '#c5d4eb' }; IconicAvatar.parameters = { controls: { exclude: ['src'] } }; var FotoGraphicAvatar = Template.bind({}); exports.FotoGraphicAvatar = FotoGraphicAvatar; FotoGraphicAvatar.storyName = 'Avatar Fotográfico'; FotoGraphicAvatar.args = { type: 'fotographic', title: 'Avatar Fotográfico', size: 'small', src: 'https://picsum.photos/id/823/400' }; FotoGraphicAvatar.parameters = { controls: { exclude: ['bgColor', 'textColor'] } }; var LetterAvatar = Template.bind({}); exports.LetterAvatar = LetterAvatar; LetterAvatar.storyName = 'Avatar Letra'; LetterAvatar.args = { type: 'letter', title: 'Avatar Letra', size: 'small', bgColor: '#dbe8fb', textColor: '#c5d4eb' }; LetterAvatar.parameters = { controls: { exclude: ['src'] } };