@adapttable/unstyled 0.3.1 → 0.3.3
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 +21 -0
- package/README.md +0 -2
- 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,26 @@
|
|
|
1
1
|
# @adapttable/unstyled
|
|
2
2
|
|
|
3
|
+
## 0.3.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [761be36]
|
|
8
|
+
- @adapttable/core@0.3.3
|
|
9
|
+
|
|
10
|
+
## 0.3.2
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 682d3b7: Road-to-1.0 prep: document the versioning & stability contract, mark the
|
|
15
|
+
`mergeProps`/`Props` prop-getter plumbing as `@internal` (consumers use the
|
|
16
|
+
`useDataTable` prop-getters, not the merge helper), add a `smoke-dist`
|
|
17
|
+
post-build check that asserts every advertised `exports`/`main`/`module`/`types`
|
|
18
|
+
target is actually emitted, and harden `getPath`/`humanizeKey` to tolerate an
|
|
19
|
+
empty/undefined key so a transiently-malformed column key can never crash a
|
|
20
|
+
render. No behaviour changes; no breaking changes.
|
|
21
|
+
- Updated dependencies [682d3b7]
|
|
22
|
+
- @adapttable/core@0.3.2
|
|
23
|
+
|
|
3
24
|
## 0.3.1
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://orwa-mahmoud.github.io/adapttable/media/demo-unstyled.mp4)
|
|
4
4
|
|
|
5
|
-
▶ **[Watch the demo](https://orwa-mahmoud.github.io/adapttable/media/demo-unstyled.mp4)**
|
|
6
|
-
|
|
7
5
|
**[📖 Documentation](https://orwa-mahmoud.github.io/adapttable/)** · **[🚀 Live demo](https://orwa-mahmoud.github.io/adapttable/demo/)** · **[Get started](https://orwa-mahmoud.github.io/adapttable/getting-started/)**
|
|
8
6
|
|
|
9
7
|
The **headless, unstyled** adapter for [AdaptTable](https://github.com/orwa-mahmoud/adapttable).
|
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;
|