@heigin/ui 0.1.0 → 0.1.1
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 +14 -1
- package/dist/components/ui/pagination.d.ts +1 -2
- package/dist/components/ui/pagination.js +0 -1
- package/dist/styles.css +1 -1
- package/dist/tokens.css +1 -1
- package/dist/tokens.d.ts +2 -2
- package/dist/tokens.js +7 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@heigin/ui` are recorded here. This project follows [Semantic Versioning](https://semver.org).
|
|
4
4
|
|
|
5
|
-
## Unreleased
|
|
5
|
+
## Unreleased
|
|
6
|
+
|
|
7
|
+
## 0.1.1 — 2026-10-11
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- Menus and selects opened inside a Dialog or Drawer rendered behind it. The `--hg-z-popover` token is now 110 (above `--hg-z-modal` 100).
|
|
12
|
+
- `Pagination`: removed an unused React import.
|
|
13
|
+
|
|
14
|
+
### Docs
|
|
15
|
+
|
|
16
|
+
- New **Builder**: compose pages, sections or components from library blocks and copy type-checked TSX.
|
|
17
|
+
|
|
18
|
+
## 0.1.0
|
|
6
19
|
|
|
7
20
|
### Added
|
|
8
21
|
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
1
|
export interface PaginationProps {
|
|
3
2
|
/** 1-based current page. */
|
|
4
3
|
page: number;
|
|
@@ -10,4 +9,4 @@ export interface PaginationProps {
|
|
|
10
9
|
className?: string;
|
|
11
10
|
}
|
|
12
11
|
/** Previous/next pager with a live range label. Controlled. */
|
|
13
|
-
export declare function Pagination({ page, pageSize, totalItems, onPageChange, formatRange, className }: PaginationProps):
|
|
12
|
+
export declare function Pagination({ page, pageSize, totalItems, onPageChange, formatRange, className }: PaginationProps): import("react").JSX.Element;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
import { cn } from "../../lib/cn.js";
|
|
4
4
|
import { IconButton } from "./icon-button.js";
|
|
5
|
-
import "react";
|
|
6
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
6
|
import { ChevronLeft, ChevronRight } from "lucide-react";
|
|
8
7
|
//#region src/components/ui/pagination.tsx
|
package/dist/styles.css
CHANGED
package/dist/tokens.css
CHANGED
package/dist/tokens.d.ts
CHANGED
|
@@ -149,8 +149,8 @@ export declare const tokens: {
|
|
|
149
149
|
readonly sticky: "20";
|
|
150
150
|
readonly header: "40";
|
|
151
151
|
readonly nav: "50";
|
|
152
|
-
readonly popover: "90";
|
|
153
152
|
readonly modal: "100";
|
|
153
|
+
readonly popover: "110";
|
|
154
154
|
readonly toast: "200";
|
|
155
155
|
readonly tooltip: "210";
|
|
156
156
|
};
|
|
@@ -314,8 +314,8 @@ export declare const vars: {
|
|
|
314
314
|
readonly sticky: "var(--hg-z-sticky)";
|
|
315
315
|
readonly header: "var(--hg-z-header)";
|
|
316
316
|
readonly nav: "var(--hg-z-nav)";
|
|
317
|
-
readonly popover: "var(--hg-z-popover)";
|
|
318
317
|
readonly modal: "var(--hg-z-modal)";
|
|
318
|
+
readonly popover: "var(--hg-z-popover)";
|
|
319
319
|
readonly toast: "var(--hg-z-toast)";
|
|
320
320
|
readonly tooltip: "var(--hg-z-tooltip)";
|
|
321
321
|
};
|
package/dist/tokens.js
CHANGED
|
@@ -148,8 +148,8 @@ var tokens = {
|
|
|
148
148
|
"sticky": "20",
|
|
149
149
|
"header": "40",
|
|
150
150
|
"nav": "50",
|
|
151
|
-
"popover": "90",
|
|
152
151
|
"modal": "100",
|
|
152
|
+
"popover": "110",
|
|
153
153
|
"toast": "200",
|
|
154
154
|
"tooltip": "210"
|
|
155
155
|
},
|
|
@@ -311,8 +311,8 @@ var vars = {
|
|
|
311
311
|
"sticky": "var(--hg-z-sticky)",
|
|
312
312
|
"header": "var(--hg-z-header)",
|
|
313
313
|
"nav": "var(--hg-z-nav)",
|
|
314
|
-
"popover": "var(--hg-z-popover)",
|
|
315
314
|
"modal": "var(--hg-z-modal)",
|
|
315
|
+
"popover": "var(--hg-z-popover)",
|
|
316
316
|
"toast": "var(--hg-z-toast)",
|
|
317
317
|
"tooltip": "var(--hg-z-tooltip)"
|
|
318
318
|
},
|
|
@@ -748,14 +748,15 @@ var tokenMeta = {
|
|
|
748
748
|
"evidence": "observed",
|
|
749
749
|
"description": "Mobile bottom tab bar."
|
|
750
750
|
},
|
|
751
|
-
"z.popover": {
|
|
752
|
-
"evidence": "observed",
|
|
753
|
-
"description": "Menus, selects, popovers."
|
|
754
|
-
},
|
|
755
751
|
"z.modal": {
|
|
756
752
|
"evidence": "observed",
|
|
757
753
|
"description": "Dialog scrim and dialogs/drawers."
|
|
758
754
|
},
|
|
755
|
+
"z.popover": {
|
|
756
|
+
"evidence": "derived",
|
|
757
|
+
"live": "z-[90]",
|
|
758
|
+
"description": "Menus, selects, popovers. Production uses 90 for in-page dropdowns; raised above modal (100) so selects and menus inside dialogs are not hidden behind them."
|
|
759
|
+
},
|
|
759
760
|
"z.toast": {
|
|
760
761
|
"evidence": "observed",
|
|
761
762
|
"description": "Toast stack (fixed bottom-5 right-5)."
|