UNPKG

@swc-react/table

Version:

React and Next.js wrapper of the @spectrum-web-components/table component

48 lines (47 loc) 2.79 kB
/** * Copyright 2026 Adobe. All rights reserved. * This file is licensed to you under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. You may obtain a copy * of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS * OF ANY KIND, either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ import type { EventName } from '@lit/react'; import { Table as SpTable } from '@spectrum-web-components/table'; import { TableBody as SpTableBody } from '@spectrum-web-components/table'; import { TableCell as SpTableCell } from '@spectrum-web-components/table'; import { TableCheckboxCell as SpTableCheckboxCell } from '@spectrum-web-components/table'; import { TableHead as SpTableHead } from '@spectrum-web-components/table'; import { TableHeadCell as SpTableHeadCell } from '@spectrum-web-components/table'; import { TableRow as SpTableRow } from '@spectrum-web-components/table'; import '@spectrum-web-components/table/sp-table-body.js'; import '@spectrum-web-components/table/sp-table-cell.js'; import '@spectrum-web-components/table/sp-table-checkbox-cell.js'; import '@spectrum-web-components/table/sp-table-head-cell.js'; import '@spectrum-web-components/table/sp-table-head.js'; import '@spectrum-web-components/table/sp-table-row.js'; import '@spectrum-web-components/table/sp-table.js'; export declare const Table: import("@lit/react").ReactWebComponent<SpTable, { change: EventName<Event>; rangeChanged: EventName<Event>; }>; export declare const TableBody: import("@lit/react").ReactWebComponent<SpTableBody, {}>; export declare const TableCell: import("@lit/react").ReactWebComponent<SpTableCell, {}>; export declare const TableCheckboxCell: import("@lit/react").ReactWebComponent<SpTableCheckboxCell, {}>; export declare const TableHead: import("@lit/react").ReactWebComponent<SpTableHead, {}>; export declare const TableHeadCell: import("@lit/react").ReactWebComponent<SpTableHeadCell, { sorted: EventName<CustomEvent>; }>; export declare const TableRow: import("@lit/react").ReactWebComponent<SpTableRow, { sorted: EventName<Event>; }>; export type TableType = EventTarget & SpTable; export type TableBodyType = EventTarget & SpTableBody; export type TableCellType = EventTarget & SpTableCell; export type TableCheckboxCellType = EventTarget & SpTableCheckboxCell; export type TableHeadType = EventTarget & SpTableHead; export type TableHeadCellType = EventTarget & SpTableHeadCell; export type TableRowType = EventTarget & SpTableRow;