@patternfly/elements
Version:
PatternFly Elements
1 lines • 1.18 kB
Source Map (JSON)
{"version":3,"file":"pf-tbody.js","sourceRoot":"","sources":["pf-tbody.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAuB,MAAM,KAAK,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;;;AAS1D,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,UAAU;IAG5B,iBAAiB;QACxB,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACxC,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAA;;KAEV,CAAC;IACJ,CAAC;;AAXe,cAAM,GAAoB,CAAC,MAAM,CAAC,AAA5B,CAA6B;;AADxC,OAAO;IADnB,aAAa,CAAC,UAAU,CAAC;GACb,OAAO","sourcesContent":["import { LitElement, html, type TemplateResult } from 'lit';\nimport { customElement } from 'lit/decorators/custom-element.js';\n\nimport styles from './pf-tbody.css';\n\n/**\n * Table body\n * @slot - Place element content here\n */\n@customElement('pf-tbody')\nexport class PfTbody extends LitElement {\n static readonly styles: CSSStyleSheet[] = [styles];\n\n override connectedCallback(): void {\n super.connectedCallback();\n this.setAttribute('role', 'rowgroup');\n }\n\n render(): TemplateResult<1> {\n return html`\n <slot></slot>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'pf-tbody': PfTbody;\n }\n}\n"]}