@hezhijie0327/zjdesign 0.1.2 → 0.1.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/AGENTS.md +1 -1
- package/dist/index.d.mts +14 -14
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -150,7 +150,7 @@ pnpm test # vitest run (jsdom)
|
|
|
150
150
|
pnpm dev # vite playground (visual verification, :5199 in docs)
|
|
151
151
|
```
|
|
152
152
|
|
|
153
|
-
Release:
|
|
153
|
+
Release (OIDC trusted publishing — no NPM_TOKEN secret): `./bump_version.sh [major|minor|patch|X.Y.Z]` (PowerShell twin: `bump_version.ps1`), then commit, tag `v<version>`, push — `.github/workflows/release.yml` gates on lint + typecheck + tests + build and publishes via the GitHub Actions OIDC token (requires the one-time "Trusted Publisher" binding on npmjs.com: repo `hezhijie0327/ZJDesign` + workflow `release.yml`; npm CLI ≥ 11.5.1, provided by Node 24). Provenance is automatic; the tag must match package.json. npm package names are lowercase — the scope is `@hezhijie0327`, package `zjdesign`.
|
|
154
154
|
|
|
155
155
|
## Conventions
|
|
156
156
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as watchSystemTheme, a as THEME_BOOTSTRAP, c as THEME_COLOR_LIGHT, d as applyThemeStyle, f as cookieThemeStorage, g as setThemeStyle, h as readThemeStyle, i as useExitPresence, l as ThemeStorage, m as localStorageThemeStorage, n as UseThemeResult, o as THEME_COLOR_BLACK, p as createThemeController, r as useTheme, s as THEME_COLOR_DARK, t as UseThemeOptions, u as ThemeStyle, v as watchThemeDark, y as reducedMotion } from "./index-B-bZqvO6.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react1 from "react";
|
|
3
3
|
import { ButtonHTMLAttributes, ReactNode, RefObject } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/Button/Button.d.ts
|
|
@@ -9,7 +9,7 @@ interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
9
9
|
}
|
|
10
10
|
/** Pill button in the family language (BTN_PRIMARY / BTN_OUTLINE / BTN_GHOST
|
|
11
11
|
* fragments + the danger state). */
|
|
12
|
-
declare const Button:
|
|
12
|
+
declare const Button: react1.ForwardRefExoticComponent<ButtonProps & react1.RefAttributes<HTMLButtonElement>>;
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/components/Collapse/Collapse.d.ts
|
|
15
15
|
/**
|
|
@@ -42,7 +42,7 @@ declare function Collapse({
|
|
|
42
42
|
className?: string;
|
|
43
43
|
id?: string;
|
|
44
44
|
children: ReactNode;
|
|
45
|
-
}):
|
|
45
|
+
}): react1.JSX.Element | null;
|
|
46
46
|
//#endregion
|
|
47
47
|
//#region src/components/IconButton/IconButton.d.ts
|
|
48
48
|
interface IconButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
@@ -51,7 +51,7 @@ interface IconButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
51
51
|
active?: boolean;
|
|
52
52
|
}
|
|
53
53
|
/** Round icon button (ICON_BTN fragment); `active` lights the accent. */
|
|
54
|
-
declare const IconButton:
|
|
54
|
+
declare const IconButton: react1.ForwardRefExoticComponent<IconButtonProps & react1.RefAttributes<HTMLButtonElement>>;
|
|
55
55
|
//#endregion
|
|
56
56
|
//#region src/components/CopyButton/CopyButton.d.ts
|
|
57
57
|
interface CopyButtonProps extends Omit<IconButtonProps, "label" | "children" | "onClick"> {
|
|
@@ -69,7 +69,7 @@ declare function CopyButton({
|
|
|
69
69
|
label,
|
|
70
70
|
feedbackMs,
|
|
71
71
|
...props
|
|
72
|
-
}: CopyButtonProps):
|
|
72
|
+
}: CopyButtonProps): react1.JSX.Element;
|
|
73
73
|
//#endregion
|
|
74
74
|
//#region src/components/Dropdown/Dropdown.d.ts
|
|
75
75
|
interface DropdownOption {
|
|
@@ -101,7 +101,7 @@ declare function Dropdown({
|
|
|
101
101
|
menuClassName,
|
|
102
102
|
disabled,
|
|
103
103
|
id
|
|
104
|
-
}: DropdownProps):
|
|
104
|
+
}: DropdownProps): react1.JSX.Element;
|
|
105
105
|
//#endregion
|
|
106
106
|
//#region src/components/Kbd/Kbd.d.ts
|
|
107
107
|
/** Mono chip for keys / states (MONO_CHIP fragment with tighter padding). */
|
|
@@ -111,7 +111,7 @@ declare function Kbd({
|
|
|
111
111
|
}: {
|
|
112
112
|
children: ReactNode;
|
|
113
113
|
className?: string;
|
|
114
|
-
}):
|
|
114
|
+
}): react1.JSX.Element;
|
|
115
115
|
/** Single-line panel row label (text-sm) — the standard row label inside
|
|
116
116
|
* toolbar panels. Never wraps: narrow rows scale via column layout instead. */
|
|
117
117
|
declare const ROW_LABEL = "shrink-0 whitespace-nowrap text-sm text-ink";
|
|
@@ -136,7 +136,7 @@ declare function Modal({
|
|
|
136
136
|
label,
|
|
137
137
|
className,
|
|
138
138
|
children
|
|
139
|
-
}: ModalProps):
|
|
139
|
+
}: ModalProps): react1.ReactPortal | null;
|
|
140
140
|
//#endregion
|
|
141
141
|
//#region src/components/Popover/Popover.d.ts
|
|
142
142
|
interface PopoverProps {
|
|
@@ -160,7 +160,7 @@ declare function Popover({
|
|
|
160
160
|
className,
|
|
161
161
|
children,
|
|
162
162
|
anchorRef
|
|
163
|
-
}: PopoverProps):
|
|
163
|
+
}: PopoverProps): react1.JSX.Element | null;
|
|
164
164
|
//#endregion
|
|
165
165
|
//#region src/components/ProgressBar/ProgressBar.d.ts
|
|
166
166
|
/** Top-of-page loading bar: 2px accent strip riding the `progress` keyframes
|
|
@@ -170,7 +170,7 @@ declare function ProgressBar({
|
|
|
170
170
|
className
|
|
171
171
|
}: {
|
|
172
172
|
className?: string;
|
|
173
|
-
}):
|
|
173
|
+
}): react1.JSX.Element;
|
|
174
174
|
//#endregion
|
|
175
175
|
//#region src/components/Segmented/Segmented.d.ts
|
|
176
176
|
interface SegmentedProps<T extends string | number> {
|
|
@@ -190,7 +190,7 @@ declare function Segmented<T extends string | number>({
|
|
|
190
190
|
onChange,
|
|
191
191
|
label,
|
|
192
192
|
className
|
|
193
|
-
}: SegmentedProps<T>):
|
|
193
|
+
}: SegmentedProps<T>): react1.JSX.Element;
|
|
194
194
|
//#endregion
|
|
195
195
|
//#region src/components/Slider/Slider.d.ts
|
|
196
196
|
interface SliderProps {
|
|
@@ -215,7 +215,7 @@ declare function Slider({
|
|
|
215
215
|
label,
|
|
216
216
|
display,
|
|
217
217
|
className
|
|
218
|
-
}: SliderProps):
|
|
218
|
+
}: SliderProps): react1.JSX.Element;
|
|
219
219
|
//#endregion
|
|
220
220
|
//#region src/components/Switch/Switch.d.ts
|
|
221
221
|
interface SwitchProps {
|
|
@@ -232,12 +232,12 @@ declare function Switch({
|
|
|
232
232
|
label,
|
|
233
233
|
className,
|
|
234
234
|
disabled
|
|
235
|
-
}: SwitchProps):
|
|
235
|
+
}: SwitchProps): react1.JSX.Element;
|
|
236
236
|
//#endregion
|
|
237
237
|
//#region src/components/Toast/Toaster.d.ts
|
|
238
238
|
/** Toast stack: bottom-center paper cards, fade-up in, auto-removed after 3 s.
|
|
239
239
|
* Mount once near the app root. */
|
|
240
|
-
declare function Toaster():
|
|
240
|
+
declare function Toaster(): react1.JSX.Element | null;
|
|
241
241
|
//#endregion
|
|
242
242
|
//#region src/components/Toast/types.d.ts
|
|
243
243
|
interface ToastItem {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hezhijie0327/zjdesign",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "ZJ Design — the shared design system of the ZJ product family (warm paper / ink / amber-gold). Tokens, Tailwind fragments, hooks and React components.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"design-system",
|