@redocly/graphql-docs
Version:
Redocly GraphQL docs
4 lines (3 loc) • 658 B
JavaScript
import{jsx as t,jsxs as n,Fragment as o}from"react/jsx-runtime";import{useSettings as i}from"../../settings/index.js";import{Markdown as s}from"../../markdown/index.js";import{styled as m}from"../../styled-components.js";import{PanelAnnotation as d,SchemaItemWrapper as p,Value as c}from"./styled.js";function w({values:e}){const{markdown:a}=i();return t(o,{children:e.map(r=>n(p,{"data-testid":"item",children:[t(l,{"data-testid":"name",children:r.name}),t(d,{"data-testid":r.name+"-description",children:t(s,{rawMarkdown:r.description,parser:a?.parser,isField:!0})})]},r.name))})}const l=m(c)`
color: var(--text-color-primary);
`;export{w as ValueList};