@adapttable/unstyled 0.3.2 → 1.0.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/CHANGELOG.md +26 -0
- package/dist/index.cjs +17 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +18 -15
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @adapttable/unstyled
|
|
2
2
|
|
|
3
|
+
## 1.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- a94745e: AdaptTable 1.0 — the public API is now stable under semantic versioning.
|
|
8
|
+
|
|
9
|
+
This release freezes the committed-stable surface: the `@adapttable/core` engine
|
|
10
|
+
(source builders, `useDataTable` and its prop-getters, the core types, and the
|
|
11
|
+
URL-state hooks), every adapter's `<DataTable>` props and extension points
|
|
12
|
+
(`slots`, `classNames`, `toolbar`, `confirm`), and the `@adapttable/i18n` locale
|
|
13
|
+
presets. From this release on, breaking changes to that surface ship only in a
|
|
14
|
+
major version. There are no runtime behavior changes — this marks the stability
|
|
15
|
+
commitment. `@adapttable/cli` is a scaffolding tool and keeps its own cadence.
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [a94745e]
|
|
20
|
+
- @adapttable/core@1.0.0
|
|
21
|
+
|
|
22
|
+
## 0.3.3
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- Updated dependencies [761be36]
|
|
27
|
+
- @adapttable/core@0.3.3
|
|
28
|
+
|
|
3
29
|
## 0.3.2
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -1514,26 +1514,29 @@ function Footer(t0) {
|
|
|
1514
1514
|
if ($[23] !== classNames.pageButton || $[24] !== classNames.pageEllipsis || $[25] !== safePage || $[26] !== source || $[27] !== totalPages) {
|
|
1515
1515
|
let t11;
|
|
1516
1516
|
if ($[29] !== classNames.pageButton || $[30] !== classNames.pageEllipsis || $[31] !== safePage || $[32] !== source) {
|
|
1517
|
-
t11 = (
|
|
1518
|
-
|
|
1519
|
-
"
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1517
|
+
t11 = (t12) => {
|
|
1518
|
+
const { item, key } = t12;
|
|
1519
|
+
return item === "ellipsis" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
1520
|
+
"data-adapttable-part": "page-ellipsis",
|
|
1521
|
+
"aria-hidden": "true",
|
|
1522
|
+
className: classNames.pageEllipsis,
|
|
1523
|
+
children: "…"
|
|
1524
|
+
}, key) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
1525
|
+
type: "button",
|
|
1526
|
+
"data-adapttable-part": "page-number",
|
|
1527
|
+
"aria-current": item === safePage ? "page" : void 0,
|
|
1528
|
+
className: classNames.pageButton,
|
|
1529
|
+
onClick: () => source.setPage(item),
|
|
1530
|
+
children: item
|
|
1531
|
+
}, key);
|
|
1532
|
+
};
|
|
1530
1533
|
$[29] = classNames.pageButton;
|
|
1531
1534
|
$[30] = classNames.pageEllipsis;
|
|
1532
1535
|
$[31] = safePage;
|
|
1533
1536
|
$[32] = source;
|
|
1534
1537
|
$[33] = t11;
|
|
1535
1538
|
} else t11 = $[33];
|
|
1536
|
-
t10 = (0, _adapttable_core.
|
|
1539
|
+
t10 = (0, _adapttable_core.paginationSlots)(safePage, totalPages).map(t11);
|
|
1537
1540
|
$[23] = classNames.pageButton;
|
|
1538
1541
|
$[24] = classNames.pageEllipsis;
|
|
1539
1542
|
$[25] = safePage;
|