@swc-react/table 0.0.0-20241211071818
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +36 -0
- package/index.dev.js +78 -0
- package/index.dev.js.map +7 -0
- package/index.js +2 -0
- package/index.js.map +7 -0
- package/next.d.ts +14 -0
- package/next.dev.js +12 -0
- package/next.dev.js.map +7 -0
- package/next.js +2 -0
- package/next.js.map +7 -0
- package/package.json +39 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { EventName } from '@lit/react';
|
|
2
|
+
import { Table as SpTable } from '@spectrum-web-components/table';
|
|
3
|
+
import { TableBody as SpTableBody } from '@spectrum-web-components/table';
|
|
4
|
+
import { TableCell as SpTableCell } from '@spectrum-web-components/table';
|
|
5
|
+
import { TableCheckboxCell as SpTableCheckboxCell } from '@spectrum-web-components/table';
|
|
6
|
+
import { TableHead as SpTableHead } from '@spectrum-web-components/table';
|
|
7
|
+
import { TableHeadCell as SpTableHeadCell } from '@spectrum-web-components/table';
|
|
8
|
+
import { TableRow as SpTableRow } from '@spectrum-web-components/table';
|
|
9
|
+
import '@spectrum-web-components/table/sp-table-body.js';
|
|
10
|
+
import '@spectrum-web-components/table/sp-table-cell.js';
|
|
11
|
+
import '@spectrum-web-components/table/sp-table-checkbox-cell.js';
|
|
12
|
+
import '@spectrum-web-components/table/sp-table-head-cell.js';
|
|
13
|
+
import '@spectrum-web-components/table/sp-table-head.js';
|
|
14
|
+
import '@spectrum-web-components/table/sp-table-row.js';
|
|
15
|
+
import '@spectrum-web-components/table/sp-table.js';
|
|
16
|
+
export declare const Table: import("@lit/react").ReactWebComponent<SpTable, {
|
|
17
|
+
change: EventName<Event>;
|
|
18
|
+
rangeChanged: EventName<Event>;
|
|
19
|
+
}>;
|
|
20
|
+
export declare const TableBody: import("@lit/react").ReactWebComponent<SpTableBody, {}>;
|
|
21
|
+
export declare const TableCell: import("@lit/react").ReactWebComponent<SpTableCell, {}>;
|
|
22
|
+
export declare const TableCheckboxCell: import("@lit/react").ReactWebComponent<SpTableCheckboxCell, {}>;
|
|
23
|
+
export declare const TableHead: import("@lit/react").ReactWebComponent<SpTableHead, {}>;
|
|
24
|
+
export declare const TableHeadCell: import("@lit/react").ReactWebComponent<SpTableHeadCell, {
|
|
25
|
+
sorted: EventName<CustomEvent<any>>;
|
|
26
|
+
}>;
|
|
27
|
+
export declare const TableRow: import("@lit/react").ReactWebComponent<SpTableRow, {
|
|
28
|
+
sorted: EventName<Event>;
|
|
29
|
+
}>;
|
|
30
|
+
export type TableType = EventTarget & SpTable;
|
|
31
|
+
export type TableBodyType = EventTarget & SpTableBody;
|
|
32
|
+
export type TableCellType = EventTarget & SpTableCell;
|
|
33
|
+
export type TableCheckboxCellType = EventTarget & SpTableCheckboxCell;
|
|
34
|
+
export type TableHeadType = EventTarget & SpTableHead;
|
|
35
|
+
export type TableHeadCellType = EventTarget & SpTableHeadCell;
|
|
36
|
+
export type TableRowType = EventTarget & SpTableRow;
|
package/index.dev.js
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import { Table as SpTable } from "@spectrum-web-components/table";
|
|
5
|
+
import { TableBody as SpTableBody } from "@spectrum-web-components/table";
|
|
6
|
+
import { TableCell as SpTableCell } from "@spectrum-web-components/table";
|
|
7
|
+
import { TableCheckboxCell as SpTableCheckboxCell } from "@spectrum-web-components/table";
|
|
8
|
+
import { TableHead as SpTableHead } from "@spectrum-web-components/table";
|
|
9
|
+
import { TableHeadCell as SpTableHeadCell } from "@spectrum-web-components/table";
|
|
10
|
+
import { TableRow as SpTableRow } from "@spectrum-web-components/table";
|
|
11
|
+
import "@spectrum-web-components/table/sp-table-body.js";
|
|
12
|
+
import "@spectrum-web-components/table/sp-table-cell.js";
|
|
13
|
+
import "@spectrum-web-components/table/sp-table-checkbox-cell.js";
|
|
14
|
+
import "@spectrum-web-components/table/sp-table-head-cell.js";
|
|
15
|
+
import "@spectrum-web-components/table/sp-table-head.js";
|
|
16
|
+
import "@spectrum-web-components/table/sp-table-row.js";
|
|
17
|
+
import "@spectrum-web-components/table/sp-table.js";
|
|
18
|
+
export const Table = createComponent({
|
|
19
|
+
displayName: "Table",
|
|
20
|
+
elementClass: SpTable,
|
|
21
|
+
react: React,
|
|
22
|
+
tagName: "sp-table",
|
|
23
|
+
events: {
|
|
24
|
+
change: "change",
|
|
25
|
+
// Announces a change in the `selected` property of a table row
|
|
26
|
+
rangeChanged: "rangeChanged"
|
|
27
|
+
// Announces a change in the range of visible cells on the table body
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
export const TableBody = createComponent({
|
|
31
|
+
displayName: "TableBody",
|
|
32
|
+
elementClass: SpTableBody,
|
|
33
|
+
react: React,
|
|
34
|
+
tagName: "sp-table-body",
|
|
35
|
+
events: {}
|
|
36
|
+
});
|
|
37
|
+
export const TableCell = createComponent({
|
|
38
|
+
displayName: "TableCell",
|
|
39
|
+
elementClass: SpTableCell,
|
|
40
|
+
react: React,
|
|
41
|
+
tagName: "sp-table-cell",
|
|
42
|
+
events: {}
|
|
43
|
+
});
|
|
44
|
+
export const TableCheckboxCell = createComponent({
|
|
45
|
+
displayName: "TableCheckboxCell",
|
|
46
|
+
elementClass: SpTableCheckboxCell,
|
|
47
|
+
react: React,
|
|
48
|
+
tagName: "sp-table-checkbox-cell",
|
|
49
|
+
events: {}
|
|
50
|
+
});
|
|
51
|
+
export const TableHead = createComponent({
|
|
52
|
+
displayName: "TableHead",
|
|
53
|
+
elementClass: SpTableHead,
|
|
54
|
+
react: React,
|
|
55
|
+
tagName: "sp-table-head",
|
|
56
|
+
events: {}
|
|
57
|
+
});
|
|
58
|
+
export const TableHeadCell = createComponent({
|
|
59
|
+
displayName: "TableHeadCell",
|
|
60
|
+
elementClass: SpTableHeadCell,
|
|
61
|
+
react: React,
|
|
62
|
+
tagName: "sp-table-head-cell",
|
|
63
|
+
events: {
|
|
64
|
+
sorted: "sorted"
|
|
65
|
+
// Announces that the table head has been sorted and handles the sorted event
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
export const TableRow = createComponent({
|
|
69
|
+
displayName: "TableRow",
|
|
70
|
+
elementClass: SpTableRow,
|
|
71
|
+
react: React,
|
|
72
|
+
tagName: "sp-table-row",
|
|
73
|
+
events: {
|
|
74
|
+
sorted: "sorted"
|
|
75
|
+
// Announces that `selected` of the table row has changed
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
//# sourceMappingURL=index.dev.js.map
|
package/index.dev.js.map
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["index.ts"],
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as React from 'react';\nimport { createComponent } from '@lit/react';\nimport type { EventName } from '@lit/react';\nimport { Table as SpTable } from '@spectrum-web-components/table';\nimport { TableBody as SpTableBody } from '@spectrum-web-components/table';\nimport { TableCell as SpTableCell } from '@spectrum-web-components/table';\nimport { TableCheckboxCell as SpTableCheckboxCell } from '@spectrum-web-components/table';\nimport { TableHead as SpTableHead } from '@spectrum-web-components/table';\nimport { TableHeadCell as SpTableHeadCell } from '@spectrum-web-components/table';\nimport { TableRow as SpTableRow } from '@spectrum-web-components/table';\n\nimport '@spectrum-web-components/table/sp-table-body.js';\nimport '@spectrum-web-components/table/sp-table-cell.js';\nimport '@spectrum-web-components/table/sp-table-checkbox-cell.js';\nimport '@spectrum-web-components/table/sp-table-head-cell.js';\nimport '@spectrum-web-components/table/sp-table-head.js';\nimport '@spectrum-web-components/table/sp-table-row.js';\nimport '@spectrum-web-components/table/sp-table.js';\n\nexport const Table = createComponent({\n displayName: 'Table',\n elementClass: SpTable,\n react: React,\n tagName: 'sp-table',\n events: {\n change: 'change' as EventName<Event>, // Announces a change in the `selected` property of a table row\n rangeChanged: 'rangeChanged' as EventName<Event>, // Announces a change in the range of visible cells on the table body\n },\n});\nexport const TableBody = createComponent({\n displayName: 'TableBody',\n elementClass: SpTableBody,\n react: React,\n tagName: 'sp-table-body',\n events: {},\n});\nexport const TableCell = createComponent({\n displayName: 'TableCell',\n elementClass: SpTableCell,\n react: React,\n tagName: 'sp-table-cell',\n events: {},\n});\nexport const TableCheckboxCell = createComponent({\n displayName: 'TableCheckboxCell',\n elementClass: SpTableCheckboxCell,\n react: React,\n tagName: 'sp-table-checkbox-cell',\n events: {},\n});\nexport const TableHead = createComponent({\n displayName: 'TableHead',\n elementClass: SpTableHead,\n react: React,\n tagName: 'sp-table-head',\n events: {},\n});\nexport const TableHeadCell = createComponent({\n displayName: 'TableHeadCell',\n elementClass: SpTableHeadCell,\n react: React,\n tagName: 'sp-table-head-cell',\n events: {\n sorted: 'sorted' as EventName<CustomEvent>, // Announces that the table head has been sorted and handles the sorted event\n },\n});\nexport const TableRow = createComponent({\n displayName: 'TableRow',\n elementClass: SpTableRow,\n react: React,\n tagName: 'sp-table-row',\n events: {\n sorted: 'sorted' as EventName<Event>, // Announces that `selected` of the table row has changed\n },\n});\n\nexport type TableType = EventTarget & SpTable;\nexport type TableBodyType = EventTarget & SpTableBody;\nexport type TableCellType = EventTarget & SpTableCell;\nexport type TableCheckboxCellType = EventTarget & SpTableCheckboxCell;\nexport type TableHeadType = EventTarget & SpTableHead;\nexport type TableHeadCellType = EventTarget & SpTableHeadCell;\nexport type TableRowType = EventTarget & SpTableRow;\n"],
|
|
5
|
+
"mappings": ";AAYA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAEhC,SAAS,SAAS,eAAe;AACjC,SAAS,aAAa,mBAAmB;AACzC,SAAS,aAAa,mBAAmB;AACzC,SAAS,qBAAqB,2BAA2B;AACzD,SAAS,aAAa,mBAAmB;AACzC,SAAS,iBAAiB,uBAAuB;AACjD,SAAS,YAAY,kBAAkB;AAEvC,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO;AAEA,aAAM,QAAQ,gBAAgB;AAAA,EACjC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,QAAQ;AAAA;AAAA,IACR,cAAc;AAAA;AAAA,EAClB;AACJ,CAAC;AACM,aAAM,YAAY,gBAAgB;AAAA,EACrC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ,CAAC;AACb,CAAC;AACM,aAAM,YAAY,gBAAgB;AAAA,EACrC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ,CAAC;AACb,CAAC;AACM,aAAM,oBAAoB,gBAAgB;AAAA,EAC7C,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ,CAAC;AACb,CAAC;AACM,aAAM,YAAY,gBAAgB;AAAA,EACrC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ,CAAC;AACb,CAAC;AACM,aAAM,gBAAgB,gBAAgB;AAAA,EACzC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,QAAQ;AAAA;AAAA,EACZ;AACJ,CAAC;AACM,aAAM,WAAW,gBAAgB;AAAA,EACpC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,QAAQ;AAAA;AAAA,EACZ;AACJ,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/index.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";import*as e from"react";import{createComponent as a}from"@lit/react";import{Table as t}from"@spectrum-web-components/table";import{TableBody as l}from"@spectrum-web-components/table";import{TableCell as o}from"@spectrum-web-components/table";import{TableCheckboxCell as p}from"@spectrum-web-components/table";import{TableHead as r}from"@spectrum-web-components/table";import{TableHeadCell as s}from"@spectrum-web-components/table";import{TableRow as b}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 const Table=a({displayName:"Table",elementClass:t,react:e,tagName:"sp-table",events:{change:"change",rangeChanged:"rangeChanged"}}),TableBody=a({displayName:"TableBody",elementClass:l,react:e,tagName:"sp-table-body",events:{}}),TableCell=a({displayName:"TableCell",elementClass:o,react:e,tagName:"sp-table-cell",events:{}}),TableCheckboxCell=a({displayName:"TableCheckboxCell",elementClass:p,react:e,tagName:"sp-table-checkbox-cell",events:{}}),TableHead=a({displayName:"TableHead",elementClass:r,react:e,tagName:"sp-table-head",events:{}}),TableHeadCell=a({displayName:"TableHeadCell",elementClass:s,react:e,tagName:"sp-table-head-cell",events:{sorted:"sorted"}}),TableRow=a({displayName:"TableRow",elementClass:b,react:e,tagName:"sp-table-row",events:{sorted:"sorted"}});
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
package/index.js.map
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["index.ts"],
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as React from 'react';\nimport { createComponent } from '@lit/react';\nimport type { EventName } from '@lit/react';\nimport { Table as SpTable } from '@spectrum-web-components/table';\nimport { TableBody as SpTableBody } from '@spectrum-web-components/table';\nimport { TableCell as SpTableCell } from '@spectrum-web-components/table';\nimport { TableCheckboxCell as SpTableCheckboxCell } from '@spectrum-web-components/table';\nimport { TableHead as SpTableHead } from '@spectrum-web-components/table';\nimport { TableHeadCell as SpTableHeadCell } from '@spectrum-web-components/table';\nimport { TableRow as SpTableRow } from '@spectrum-web-components/table';\n\nimport '@spectrum-web-components/table/sp-table-body.js';\nimport '@spectrum-web-components/table/sp-table-cell.js';\nimport '@spectrum-web-components/table/sp-table-checkbox-cell.js';\nimport '@spectrum-web-components/table/sp-table-head-cell.js';\nimport '@spectrum-web-components/table/sp-table-head.js';\nimport '@spectrum-web-components/table/sp-table-row.js';\nimport '@spectrum-web-components/table/sp-table.js';\n\nexport const Table = createComponent({\n displayName: 'Table',\n elementClass: SpTable,\n react: React,\n tagName: 'sp-table',\n events: {\n change: 'change' as EventName<Event>, // Announces a change in the `selected` property of a table row\n rangeChanged: 'rangeChanged' as EventName<Event>, // Announces a change in the range of visible cells on the table body\n },\n});\nexport const TableBody = createComponent({\n displayName: 'TableBody',\n elementClass: SpTableBody,\n react: React,\n tagName: 'sp-table-body',\n events: {},\n});\nexport const TableCell = createComponent({\n displayName: 'TableCell',\n elementClass: SpTableCell,\n react: React,\n tagName: 'sp-table-cell',\n events: {},\n});\nexport const TableCheckboxCell = createComponent({\n displayName: 'TableCheckboxCell',\n elementClass: SpTableCheckboxCell,\n react: React,\n tagName: 'sp-table-checkbox-cell',\n events: {},\n});\nexport const TableHead = createComponent({\n displayName: 'TableHead',\n elementClass: SpTableHead,\n react: React,\n tagName: 'sp-table-head',\n events: {},\n});\nexport const TableHeadCell = createComponent({\n displayName: 'TableHeadCell',\n elementClass: SpTableHeadCell,\n react: React,\n tagName: 'sp-table-head-cell',\n events: {\n sorted: 'sorted' as EventName<CustomEvent>, // Announces that the table head has been sorted and handles the sorted event\n },\n});\nexport const TableRow = createComponent({\n displayName: 'TableRow',\n elementClass: SpTableRow,\n react: React,\n tagName: 'sp-table-row',\n events: {\n sorted: 'sorted' as EventName<Event>, // Announces that `selected` of the table row has changed\n },\n});\n\nexport type TableType = EventTarget & SpTable;\nexport type TableBodyType = EventTarget & SpTableBody;\nexport type TableCellType = EventTarget & SpTableCell;\nexport type TableCheckboxCellType = EventTarget & SpTableCheckboxCell;\nexport type TableHeadType = EventTarget & SpTableHead;\nexport type TableHeadCellType = EventTarget & SpTableHeadCell;\nexport type TableRowType = EventTarget & SpTableRow;\n"],
|
|
5
|
+
"mappings": "aAYA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,MAAuB,aAEhC,OAAS,SAASC,MAAe,iCACjC,OAAS,aAAaC,MAAmB,iCACzC,OAAS,aAAaC,MAAmB,iCACzC,OAAS,qBAAqBC,MAA2B,iCACzD,OAAS,aAAaC,MAAmB,iCACzC,OAAS,iBAAiBC,MAAuB,iCACjD,OAAS,YAAYC,MAAkB,iCAEvC,MAAO,kDACP,MAAO,kDACP,MAAO,2DACP,MAAO,uDACP,MAAO,kDACP,MAAO,iDACP,MAAO,6CAEA,aAAM,MAAQP,EAAgB,CACjC,YAAa,QACb,aAAcC,EACd,MAAOF,EACP,QAAS,WACT,OAAQ,CACJ,OAAQ,SACR,aAAc,cAClB,CACJ,CAAC,EACY,UAAYC,EAAgB,CACrC,YAAa,YACb,aAAcE,EACd,MAAOH,EACP,QAAS,gBACT,OAAQ,CAAC,CACb,CAAC,EACY,UAAYC,EAAgB,CACrC,YAAa,YACb,aAAcG,EACd,MAAOJ,EACP,QAAS,gBACT,OAAQ,CAAC,CACb,CAAC,EACY,kBAAoBC,EAAgB,CAC7C,YAAa,oBACb,aAAcI,EACd,MAAOL,EACP,QAAS,yBACT,OAAQ,CAAC,CACb,CAAC,EACY,UAAYC,EAAgB,CACrC,YAAa,YACb,aAAcK,EACd,MAAON,EACP,QAAS,gBACT,OAAQ,CAAC,CACb,CAAC,EACY,cAAgBC,EAAgB,CACzC,YAAa,gBACb,aAAcM,EACd,MAAOP,EACP,QAAS,qBACT,OAAQ,CACJ,OAAQ,QACZ,CACJ,CAAC,EACY,SAAWC,EAAgB,CACpC,YAAa,WACb,aAAcO,EACd,MAAOR,EACP,QAAS,eACT,OAAQ,CACJ,OAAQ,QACZ,CACJ,CAAC",
|
|
6
|
+
"names": ["React", "createComponent", "SpTable", "SpTableBody", "SpTableCell", "SpTableCheckboxCell", "SpTableHead", "SpTableHeadCell", "SpTableRow"]
|
|
7
|
+
}
|
package/next.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const Table: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("table/src").Table>, "size" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "change" | "rangeChanged" | "emphasized" | "selected" | "renderOptions" | "isLTR" | "hasVisibleFocusInTree" | "selects" | "items" | "itemValue" | "scroller" | "quiet" | "density" | "renderItem" | "scrollToIndex"> & {
|
|
2
|
+
change?: ((e: Event) => void) | undefined;
|
|
3
|
+
rangeChanged?: ((e: Event) => void) | undefined;
|
|
4
|
+
} & Partial<Omit<import("table/src").Table, keyof HTMLElement>> & import("react").RefAttributes<import("table/src").Table>>;
|
|
5
|
+
export declare const TableBody: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("table/src").TableBody>, "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "renderOptions" | "isLTR" | "hasVisibleFocusInTree"> & {} & Partial<Omit<import("table/src").TableBody, keyof HTMLElement>> & import("react").RefAttributes<import("table/src").TableBody>>;
|
|
6
|
+
export declare const TableCell: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("table/src").TableCell>, "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "renderOptions" | "isLTR" | "hasVisibleFocusInTree"> & {} & Partial<Omit<import("table/src").TableCell, keyof HTMLElement>> & import("react").RefAttributes<import("table/src").TableCell>>;
|
|
7
|
+
export declare const TableCheckboxCell: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("table/src").TableCheckboxCell>, "checked" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "disabled" | "indeterminate" | "emphasized" | "headCell" | "checkbox" | "selectsSingle" | "renderOptions" | "isLTR" | "hasVisibleFocusInTree"> & {} & Partial<Omit<import("table/src").TableCheckboxCell, keyof HTMLElement>> & import("react").RefAttributes<import("table/src").TableCheckboxCell>>;
|
|
8
|
+
export declare const TableHead: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("table/src").TableHead>, "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "selected" | "renderOptions" | "isLTR" | "hasVisibleFocusInTree"> & {} & Partial<Omit<import("table/src").TableHead, keyof HTMLElement>> & import("react").RefAttributes<import("table/src").TableHead>>;
|
|
9
|
+
export declare const TableHeadCell: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("table/src").TableHeadCell>, "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "renderOptions" | "isLTR" | "hasVisibleFocusInTree" | "active" | "sortable" | "sortDirection" | "sortKey" | "sorted"> & {
|
|
10
|
+
sorted?: ((e: CustomEvent<any>) => void) | undefined;
|
|
11
|
+
} & Partial<Omit<import("table/src").TableHeadCell, keyof HTMLElement>> & import("react").RefAttributes<import("table/src").TableHeadCell>>;
|
|
12
|
+
export declare const TableRow: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("table/src").TableRow>, "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "checkboxCells" | "selectable" | "selected" | "value" | "renderOptions" | "isLTR" | "hasVisibleFocusInTree" | "sorted"> & {
|
|
13
|
+
sorted?: ((e: Event) => void) | undefined;
|
|
14
|
+
} & Partial<Omit<import("table/src").TableRow, keyof HTMLElement>> & import("react").RefAttributes<import("table/src").TableRow>>;
|
package/next.dev.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
import dynamic from "next/dynamic";
|
|
3
|
+
export const Table = dynamic(() => import(".").then(({ Table: Table2 }) => Table2), { ssr: false });
|
|
4
|
+
export const TableBody = dynamic(() => import(".").then(({ TableBody: TableBody2 }) => TableBody2), { ssr: false });
|
|
5
|
+
export const TableCell = dynamic(() => import(".").then(({ TableCell: TableCell2 }) => TableCell2), { ssr: false });
|
|
6
|
+
export const TableCheckboxCell = dynamic(() => import(".").then(({ TableCheckboxCell: TableCheckboxCell2 }) => TableCheckboxCell2), {
|
|
7
|
+
ssr: false
|
|
8
|
+
});
|
|
9
|
+
export const TableHead = dynamic(() => import(".").then(({ TableHead: TableHead2 }) => TableHead2), { ssr: false });
|
|
10
|
+
export const TableHeadCell = dynamic(() => import(".").then(({ TableHeadCell: TableHeadCell2 }) => TableHeadCell2), { ssr: false });
|
|
11
|
+
export const TableRow = dynamic(() => import(".").then(({ TableRow: TableRow2 }) => TableRow2), { ssr: false });
|
|
12
|
+
//# sourceMappingURL=next.dev.js.map
|
package/next.dev.js.map
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["next.ts"],
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2023 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport { ComponentProps } from 'react';\nimport dynamic from 'next/dynamic';\n\nimport { Table as SpTable } from '.';\nimport { TableBody as SpTableBody } from '.';\nimport { TableCell as SpTableCell } from '.';\nimport { TableCheckboxCell as SpTableCheckboxCell } from '.';\nimport { TableHead as SpTableHead } from '.';\nimport { TableHeadCell as SpTableHeadCell } from '.';\nimport { TableRow as SpTableRow } from '.';\n\nexport const Table = dynamic<\n JSX.LibraryManagedAttributes<typeof SpTable, ComponentProps<typeof SpTable>>\n>(() => import('.').then(({ Table }) => Table), { ssr: false });\nexport const TableBody = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpTableBody,\n ComponentProps<typeof SpTableBody>\n >\n>(() => import('.').then(({ TableBody }) => TableBody), { ssr: false });\nexport const TableCell = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpTableCell,\n ComponentProps<typeof SpTableCell>\n >\n>(() => import('.').then(({ TableCell }) => TableCell), { ssr: false });\nexport const TableCheckboxCell = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpTableCheckboxCell,\n ComponentProps<typeof SpTableCheckboxCell>\n >\n>(() => import('.').then(({ TableCheckboxCell }) => TableCheckboxCell), {\n ssr: false,\n});\nexport const TableHead = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpTableHead,\n ComponentProps<typeof SpTableHead>\n >\n>(() => import('.').then(({ TableHead }) => TableHead), { ssr: false });\nexport const TableHeadCell = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpTableHeadCell,\n ComponentProps<typeof SpTableHeadCell>\n >\n>(() => import('.').then(({ TableHeadCell }) => TableHeadCell), { ssr: false });\nexport const TableRow = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpTableRow,\n ComponentProps<typeof SpTableRow>\n >\n>(() => import('.').then(({ TableRow }) => TableRow), { ssr: false });\n"],
|
|
5
|
+
"mappings": ";AAaA,OAAO,aAAa;AAUb,aAAM,QAAQ,QAEnB,MAAM,OAAO,GAAG,EAAE,KAAK,CAAC,EAAE,OAAAA,OAAM,MAAMA,MAAK,GAAG,EAAE,KAAK,MAAM,CAAC;AACvD,aAAM,YAAY,QAKvB,MAAM,OAAO,GAAG,EAAE,KAAK,CAAC,EAAE,WAAAC,WAAU,MAAMA,UAAS,GAAG,EAAE,KAAK,MAAM,CAAC;AAC/D,aAAM,YAAY,QAKvB,MAAM,OAAO,GAAG,EAAE,KAAK,CAAC,EAAE,WAAAC,WAAU,MAAMA,UAAS,GAAG,EAAE,KAAK,MAAM,CAAC;AAC/D,aAAM,oBAAoB,QAK/B,MAAM,OAAO,GAAG,EAAE,KAAK,CAAC,EAAE,mBAAAC,mBAAkB,MAAMA,kBAAiB,GAAG;AAAA,EACpE,KAAK;AACT,CAAC;AACM,aAAM,YAAY,QAKvB,MAAM,OAAO,GAAG,EAAE,KAAK,CAAC,EAAE,WAAAC,WAAU,MAAMA,UAAS,GAAG,EAAE,KAAK,MAAM,CAAC;AAC/D,aAAM,gBAAgB,QAK3B,MAAM,OAAO,GAAG,EAAE,KAAK,CAAC,EAAE,eAAAC,eAAc,MAAMA,cAAa,GAAG,EAAE,KAAK,MAAM,CAAC;AACvE,aAAM,WAAW,QAKtB,MAAM,OAAO,GAAG,EAAE,KAAK,CAAC,EAAE,UAAAC,UAAS,MAAMA,SAAQ,GAAG,EAAE,KAAK,MAAM,CAAC;",
|
|
6
|
+
"names": ["Table", "TableBody", "TableCell", "TableCheckboxCell", "TableHead", "TableHeadCell", "TableRow"]
|
|
7
|
+
}
|
package/next.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";import o from"next/dynamic";export const Table=o(()=>import(".").then(({Table:e})=>e),{ssr:!1}),TableBody=o(()=>import(".").then(({TableBody:e})=>e),{ssr:!1}),TableCell=o(()=>import(".").then(({TableCell:e})=>e),{ssr:!1}),TableCheckboxCell=o(()=>import(".").then(({TableCheckboxCell:e})=>e),{ssr:!1}),TableHead=o(()=>import(".").then(({TableHead:e})=>e),{ssr:!1}),TableHeadCell=o(()=>import(".").then(({TableHeadCell:e})=>e),{ssr:!1}),TableRow=o(()=>import(".").then(({TableRow:e})=>e),{ssr:!1});
|
|
2
|
+
//# sourceMappingURL=next.js.map
|
package/next.js.map
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["next.ts"],
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2023 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport { ComponentProps } from 'react';\nimport dynamic from 'next/dynamic';\n\nimport { Table as SpTable } from '.';\nimport { TableBody as SpTableBody } from '.';\nimport { TableCell as SpTableCell } from '.';\nimport { TableCheckboxCell as SpTableCheckboxCell } from '.';\nimport { TableHead as SpTableHead } from '.';\nimport { TableHeadCell as SpTableHeadCell } from '.';\nimport { TableRow as SpTableRow } from '.';\n\nexport const Table = dynamic<\n JSX.LibraryManagedAttributes<typeof SpTable, ComponentProps<typeof SpTable>>\n>(() => import('.').then(({ Table }) => Table), { ssr: false });\nexport const TableBody = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpTableBody,\n ComponentProps<typeof SpTableBody>\n >\n>(() => import('.').then(({ TableBody }) => TableBody), { ssr: false });\nexport const TableCell = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpTableCell,\n ComponentProps<typeof SpTableCell>\n >\n>(() => import('.').then(({ TableCell }) => TableCell), { ssr: false });\nexport const TableCheckboxCell = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpTableCheckboxCell,\n ComponentProps<typeof SpTableCheckboxCell>\n >\n>(() => import('.').then(({ TableCheckboxCell }) => TableCheckboxCell), {\n ssr: false,\n});\nexport const TableHead = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpTableHead,\n ComponentProps<typeof SpTableHead>\n >\n>(() => import('.').then(({ TableHead }) => TableHead), { ssr: false });\nexport const TableHeadCell = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpTableHeadCell,\n ComponentProps<typeof SpTableHeadCell>\n >\n>(() => import('.').then(({ TableHeadCell }) => TableHeadCell), { ssr: false });\nexport const TableRow = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpTableRow,\n ComponentProps<typeof SpTableRow>\n >\n>(() => import('.').then(({ TableRow }) => TableRow), { ssr: false });\n"],
|
|
5
|
+
"mappings": "aAaA,OAAOA,MAAa,eAUb,aAAM,MAAQA,EAEnB,IAAM,OAAO,GAAG,EAAE,KAAK,CAAC,CAAE,MAAAC,CAAM,IAAMA,CAAK,EAAG,CAAE,IAAK,EAAM,CAAC,EACjD,UAAYD,EAKvB,IAAM,OAAO,GAAG,EAAE,KAAK,CAAC,CAAE,UAAAE,CAAU,IAAMA,CAAS,EAAG,CAAE,IAAK,EAAM,CAAC,EACzD,UAAYF,EAKvB,IAAM,OAAO,GAAG,EAAE,KAAK,CAAC,CAAE,UAAAG,CAAU,IAAMA,CAAS,EAAG,CAAE,IAAK,EAAM,CAAC,EACzD,kBAAoBH,EAK/B,IAAM,OAAO,GAAG,EAAE,KAAK,CAAC,CAAE,kBAAAI,CAAkB,IAAMA,CAAiB,EAAG,CACpE,IAAK,EACT,CAAC,EACY,UAAYJ,EAKvB,IAAM,OAAO,GAAG,EAAE,KAAK,CAAC,CAAE,UAAAK,CAAU,IAAMA,CAAS,EAAG,CAAE,IAAK,EAAM,CAAC,EACzD,cAAgBL,EAK3B,IAAM,OAAO,GAAG,EAAE,KAAK,CAAC,CAAE,cAAAM,CAAc,IAAMA,CAAa,EAAG,CAAE,IAAK,EAAM,CAAC,EACjE,SAAWN,EAKtB,IAAM,OAAO,GAAG,EAAE,KAAK,CAAC,CAAE,SAAAO,CAAS,IAAMA,CAAQ,EAAG,CAAE,IAAK,EAAM,CAAC",
|
|
6
|
+
"names": ["dynamic", "Table", "TableBody", "TableCell", "TableCheckboxCell", "TableHead", "TableHeadCell", "TableRow"]
|
|
7
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@swc-react/table",
|
|
3
|
+
"version": "0.0.0-20241211071818",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
6
|
+
},
|
|
7
|
+
"description": "React and Next.js wrapper of the @spectrum-web-components/table component",
|
|
8
|
+
"license": "Apache-2.0",
|
|
9
|
+
"author": "",
|
|
10
|
+
"type": "module",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"development": "./index.dev.js",
|
|
14
|
+
"default": "./index.js"
|
|
15
|
+
},
|
|
16
|
+
"./next.js": {
|
|
17
|
+
"development": "./next.dev.js",
|
|
18
|
+
"default": "./next.js"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"files": ["**/*.d.ts", "**/*.js", "**/*.js.map"],
|
|
22
|
+
"keywords": [
|
|
23
|
+
"React",
|
|
24
|
+
"Spectrum Web Components",
|
|
25
|
+
"@spectrum-web-components/table"
|
|
26
|
+
],
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@lit/react": "^1.0.2",
|
|
29
|
+
"@spectrum-web-components/table": "^0.0.0-20241211071818"
|
|
30
|
+
},
|
|
31
|
+
"peerDependencies": {
|
|
32
|
+
"next": "~13.4 || ~14"
|
|
33
|
+
},
|
|
34
|
+
"peerDependenciesMeta": {
|
|
35
|
+
"next": {
|
|
36
|
+
"optional": true
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|