@swc-react/table 1.5.0 → 1.7.0
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.dev.js.map +2 -2
- package/index.js.map +2 -2
- package/next.d.ts +10 -10
- package/next.dev.js +16 -7
- package/next.dev.js.map +2 -2
- package/next.js +1 -1
- package/next.js.map +2 -2
- package/package.json +3 -3
package/index.dev.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["index.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2025 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*/\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": ";AAWA,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
6
|
"names": []
|
|
7
7
|
}
|
package/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["index.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2025 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*/\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": "aAWA,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
6
|
"names": ["React", "createComponent", "SpTable", "SpTableBody", "SpTableCell", "SpTableCheckboxCell", "SpTableHead", "SpTableHeadCell", "SpTableRow"]
|
|
7
7
|
}
|
package/next.d.ts
CHANGED
|
@@ -1,14 +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"> & {
|
|
1
|
+
export declare const Table: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("table/src/Table.js").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
2
|
change?: ((e: Event) => void) | undefined;
|
|
3
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"> & {
|
|
4
|
+
} & Partial<Omit<import("table/src/Table.js").Table, keyof HTMLElement>> & import("react").RefAttributes<import("table/src/Table.js").Table>>;
|
|
5
|
+
export declare const TableBody: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("table/src/TableBody.js").TableBody>, "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "renderOptions" | "isLTR" | "hasVisibleFocusInTree"> & {} & Partial<Omit<import("table/src/TableBody.js").TableBody, keyof HTMLElement>> & import("react").RefAttributes<import("table/src/TableBody.js").TableBody>>;
|
|
6
|
+
export declare const TableCell: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("table/src/TableCell.js").TableCell>, "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "renderOptions" | "isLTR" | "hasVisibleFocusInTree"> & {} & Partial<Omit<import("table/src/TableCell.js").TableCell, keyof HTMLElement>> & import("react").RefAttributes<import("table/src/TableCell.js").TableCell>>;
|
|
7
|
+
export declare const TableCheckboxCell: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("table/src/TableCheckboxCell.js").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.js").TableCheckboxCell, keyof HTMLElement>> & import("react").RefAttributes<import("table/src/TableCheckboxCell.js").TableCheckboxCell>>;
|
|
8
|
+
export declare const TableHead: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("table/src/TableHead.js").TableHead>, "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "selected" | "renderOptions" | "isLTR" | "hasVisibleFocusInTree"> & {} & Partial<Omit<import("table/src/TableHead.js").TableHead, keyof HTMLElement>> & import("react").RefAttributes<import("table/src/TableHead.js").TableHead>>;
|
|
9
|
+
export declare const TableHeadCell: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("table/src/TableHeadCell.js").TableHeadCell>, "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "renderOptions" | "isLTR" | "hasVisibleFocusInTree" | "active" | "sortable" | "sortDirection" | "sortKey" | "sorted"> & {
|
|
10
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"> & {
|
|
11
|
+
} & Partial<Omit<import("table/src/TableHeadCell.js").TableHeadCell, keyof HTMLElement>> & import("react").RefAttributes<import("table/src/TableHeadCell.js").TableHeadCell>>;
|
|
12
|
+
export declare const TableRow: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("table/src/TableRow.js").TableRow>, "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "checkboxCells" | "selectable" | "selected" | "value" | "renderOptions" | "isLTR" | "hasVisibleFocusInTree" | "sorted"> & {
|
|
13
13
|
sorted?: ((e: Event) => void) | undefined;
|
|
14
|
-
} & Partial<Omit<import("table/src").TableRow, keyof HTMLElement>> & import("react").RefAttributes<import("table/src").TableRow>>;
|
|
14
|
+
} & Partial<Omit<import("table/src/TableRow.js").TableRow, keyof HTMLElement>> & import("react").RefAttributes<import("table/src/TableRow.js").TableRow>>;
|
package/next.dev.js
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
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), {
|
|
5
|
-
export const TableCell = dynamic(() => import(".").then(({ TableCell: TableCell2 }) => TableCell2), { ssr: false });
|
|
6
|
-
export const TableCheckboxCell = dynamic(() => import(".").then(({ TableCheckboxCell: TableCheckboxCell2 }) => TableCheckboxCell2), {
|
|
3
|
+
export const Table = dynamic(() => import("./index.dev.js").then(({ Table: Table2 }) => Table2), { ssr: false });
|
|
4
|
+
export const TableBody = dynamic(() => import("./index.dev.js").then(({ TableBody: TableBody2 }) => TableBody2), {
|
|
7
5
|
ssr: false
|
|
8
6
|
});
|
|
9
|
-
export const
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
export const TableCell = dynamic(() => import("./index.dev.js").then(({ TableCell: TableCell2 }) => TableCell2), {
|
|
8
|
+
ssr: false
|
|
9
|
+
});
|
|
10
|
+
export const TableCheckboxCell = dynamic(
|
|
11
|
+
() => import("./index.dev.js").then(({ TableCheckboxCell: TableCheckboxCell2 }) => TableCheckboxCell2),
|
|
12
|
+
{ ssr: false }
|
|
13
|
+
);
|
|
14
|
+
export const TableHead = dynamic(() => import("./index.dev.js").then(({ TableHead: TableHead2 }) => TableHead2), {
|
|
15
|
+
ssr: false
|
|
16
|
+
});
|
|
17
|
+
export const TableHeadCell = dynamic(() => import("./index.dev.js").then(({ TableHeadCell: TableHeadCell2 }) => TableHeadCell2), {
|
|
18
|
+
ssr: false
|
|
19
|
+
});
|
|
20
|
+
export const TableRow = dynamic(() => import("./index.dev.js").then(({ TableRow: TableRow2 }) => TableRow2), { ssr: false });
|
|
12
21
|
//# sourceMappingURL=next.dev.js.map
|
package/next.dev.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["next.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2025 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*/\nimport { ComponentProps } from 'react';\nimport dynamic from 'next/dynamic';\n\nimport { Table as SpTable } from './index.dev.js'\nimport { TableBody as SpTableBody } from './index.dev.js'\nimport { TableCell as SpTableCell } from './index.dev.js'\nimport { TableCheckboxCell as SpTableCheckboxCell } from './index.dev.js'\nimport { TableHead as SpTableHead } from './index.dev.js'\nimport { TableHeadCell as SpTableHeadCell } from './index.dev.js'\nimport { TableRow as SpTableRow } from './index.dev.js'\n\nexport const Table = dynamic<\n JSX.LibraryManagedAttributes<typeof SpTable, ComponentProps<typeof SpTable>>\n>(() => import('./index.dev.js').then(({ Table }) => Table), { ssr: false });\nexport const TableBody = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpTableBody,\n ComponentProps<typeof SpTableBody>\n >\n>(() => import('./index.dev.js').then(({ TableBody }) => TableBody), {\n ssr: false,\n});\nexport const TableCell = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpTableCell,\n ComponentProps<typeof SpTableCell>\n >\n>(() => import('./index.dev.js').then(({ TableCell }) => TableCell), {\n ssr: false,\n});\nexport const TableCheckboxCell = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpTableCheckboxCell,\n ComponentProps<typeof SpTableCheckboxCell>\n >\n>(\n () =>\n import('./index.dev.js').then(({ TableCheckboxCell }) => TableCheckboxCell),\n { ssr: false }\n);\nexport const TableHead = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpTableHead,\n ComponentProps<typeof SpTableHead>\n >\n>(() => import('./index.dev.js').then(({ TableHead }) => TableHead), {\n ssr: false,\n});\nexport const TableHeadCell = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpTableHeadCell,\n ComponentProps<typeof SpTableHeadCell>\n >\n>(() => import('./index.dev.js').then(({ TableHeadCell }) => TableHeadCell), {\n ssr: false,\n});\nexport const TableRow = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpTableRow,\n ComponentProps<typeof SpTableRow>\n >\n>(() => import('./index.dev.js').then(({ TableRow }) => TableRow), { ssr: false });\n"],
|
|
5
|
+
"mappings": ";AAYA,OAAO,aAAa;AAUb,aAAM,QAAQ,QAEnB,MAAM,OAAO,gBAAgB,EAAE,KAAK,CAAC,EAAE,OAAAA,OAAM,MAAMA,MAAK,GAAG,EAAE,KAAK,MAAM,CAAC;AACpE,aAAM,YAAY,QAKvB,MAAM,OAAO,gBAAgB,EAAE,KAAK,CAAC,EAAE,WAAAC,WAAU,MAAMA,UAAS,GAAG;AAAA,EACjE,KAAK;AACT,CAAC;AACM,aAAM,YAAY,QAKvB,MAAM,OAAO,gBAAgB,EAAE,KAAK,CAAC,EAAE,WAAAC,WAAU,MAAMA,UAAS,GAAG;AAAA,EACjE,KAAK;AACT,CAAC;AACM,aAAM,oBAAoB;AAAA,EAM7B,MACI,OAAO,gBAAgB,EAAE,KAAK,CAAC,EAAE,mBAAAC,mBAAkB,MAAMA,kBAAiB;AAAA,EAC9E,EAAE,KAAK,MAAM;AACjB;AACO,aAAM,YAAY,QAKvB,MAAM,OAAO,gBAAgB,EAAE,KAAK,CAAC,EAAE,WAAAC,WAAU,MAAMA,UAAS,GAAG;AAAA,EACjE,KAAK;AACT,CAAC;AACM,aAAM,gBAAgB,QAK3B,MAAM,OAAO,gBAAgB,EAAE,KAAK,CAAC,EAAE,eAAAC,eAAc,MAAMA,cAAa,GAAG;AAAA,EACzE,KAAK;AACT,CAAC;AACM,aAAM,WAAW,QAKtB,MAAM,OAAO,gBAAgB,EAAE,KAAK,CAAC,EAAE,UAAAC,UAAS,MAAMA,SAAQ,GAAG,EAAE,KAAK,MAAM,CAAC;",
|
|
6
6
|
"names": ["Table", "TableBody", "TableCell", "TableCheckboxCell", "TableHead", "TableHeadCell", "TableRow"]
|
|
7
7
|
}
|
package/next.js
CHANGED
|
@@ -1,2 +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});
|
|
1
|
+
"use strict";import o from"next/dynamic";export const Table=o(()=>import("./index.js").then(({Table:e})=>e),{ssr:!1}),TableBody=o(()=>import("./index.js").then(({TableBody:e})=>e),{ssr:!1}),TableCell=o(()=>import("./index.js").then(({TableCell:e})=>e),{ssr:!1}),TableCheckboxCell=o(()=>import("./index.js").then(({TableCheckboxCell:e})=>e),{ssr:!1}),TableHead=o(()=>import("./index.js").then(({TableHead:e})=>e),{ssr:!1}),TableHeadCell=o(()=>import("./index.js").then(({TableHeadCell:e})=>e),{ssr:!1}),TableRow=o(()=>import("./index.js").then(({TableRow:e})=>e),{ssr:!1});
|
|
2
2
|
//# sourceMappingURL=next.js.map
|
package/next.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["next.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2025 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*/\nimport { ComponentProps } from 'react';\nimport dynamic from 'next/dynamic';\n\nimport { Table as SpTable } from './index.js';\nimport { TableBody as SpTableBody } from './index.js';\nimport { TableCell as SpTableCell } from './index.js';\nimport { TableCheckboxCell as SpTableCheckboxCell } from './index.js';\nimport { TableHead as SpTableHead } from './index.js';\nimport { TableHeadCell as SpTableHeadCell } from './index.js';\nimport { TableRow as SpTableRow } from './index.js';\n\nexport const Table = dynamic<\n JSX.LibraryManagedAttributes<typeof SpTable, ComponentProps<typeof SpTable>>\n>(() => import('./index.js').then(({ Table }) => Table), { ssr: false });\nexport const TableBody = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpTableBody,\n ComponentProps<typeof SpTableBody>\n >\n>(() => import('./index.js').then(({ TableBody }) => TableBody), {\n ssr: false,\n});\nexport const TableCell = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpTableCell,\n ComponentProps<typeof SpTableCell>\n >\n>(() => import('./index.js').then(({ TableCell }) => TableCell), {\n ssr: false,\n});\nexport const TableCheckboxCell = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpTableCheckboxCell,\n ComponentProps<typeof SpTableCheckboxCell>\n >\n>(\n () =>\n import('./index.js').then(({ TableCheckboxCell }) => TableCheckboxCell),\n { ssr: false }\n);\nexport const TableHead = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpTableHead,\n ComponentProps<typeof SpTableHead>\n >\n>(() => import('./index.js').then(({ TableHead }) => TableHead), {\n ssr: false,\n});\nexport const TableHeadCell = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpTableHeadCell,\n ComponentProps<typeof SpTableHeadCell>\n >\n>(() => import('./index.js').then(({ TableHeadCell }) => TableHeadCell), {\n ssr: false,\n});\nexport const TableRow = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpTableRow,\n ComponentProps<typeof SpTableRow>\n >\n>(() => import('./index.js').then(({ TableRow }) => TableRow), { ssr: false });\n"],
|
|
5
|
+
"mappings": "aAYA,OAAOA,MAAa,eAUb,aAAM,MAAQA,EAEnB,IAAM,OAAO,YAAY,EAAE,KAAK,CAAC,CAAE,MAAAC,CAAM,IAAMA,CAAK,EAAG,CAAE,IAAK,EAAM,CAAC,EAC1D,UAAYD,EAKvB,IAAM,OAAO,YAAY,EAAE,KAAK,CAAC,CAAE,UAAAE,CAAU,IAAMA,CAAS,EAAG,CAC7D,IAAK,EACT,CAAC,EACY,UAAYF,EAKvB,IAAM,OAAO,YAAY,EAAE,KAAK,CAAC,CAAE,UAAAG,CAAU,IAAMA,CAAS,EAAG,CAC7D,IAAK,EACT,CAAC,EACY,kBAAoBH,EAM7B,IACI,OAAO,YAAY,EAAE,KAAK,CAAC,CAAE,kBAAAI,CAAkB,IAAMA,CAAiB,EAC1E,CAAE,IAAK,EAAM,CACjB,EACa,UAAYJ,EAKvB,IAAM,OAAO,YAAY,EAAE,KAAK,CAAC,CAAE,UAAAK,CAAU,IAAMA,CAAS,EAAG,CAC7D,IAAK,EACT,CAAC,EACY,cAAgBL,EAK3B,IAAM,OAAO,YAAY,EAAE,KAAK,CAAC,CAAE,cAAAM,CAAc,IAAMA,CAAa,EAAG,CACrE,IAAK,EACT,CAAC,EACY,SAAWN,EAKtB,IAAM,OAAO,YAAY,EAAE,KAAK,CAAC,CAAE,SAAAO,CAAS,IAAMA,CAAQ,EAAG,CAAE,IAAK,EAAM,CAAC",
|
|
6
6
|
"names": ["dynamic", "Table", "TableBody", "TableCell", "TableCheckboxCell", "TableHead", "TableHeadCell", "TableRow"]
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc-react/table",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
7
|
"description": "React and Next.js wrapper of the @spectrum-web-components/table component",
|
|
8
8
|
"license": "Apache-2.0",
|
|
9
|
-
"author": "",
|
|
9
|
+
"author": "Adobe",
|
|
10
10
|
"type": "module",
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@lit/react": "^1.0.2",
|
|
29
|
-
"@spectrum-web-components/table": "^1.
|
|
29
|
+
"@spectrum-web-components/table": "^1.7.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"next": "~13.4 || ~14"
|