@pactor-app/blocks 1.44.0 → 1.47.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/dist/index.cjs +7 -7
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +7 -7
- package/package.json +7 -5
- package/styles.css +2 -2
package/dist/index.cjs
CHANGED
|
@@ -336,7 +336,7 @@ function Login({
|
|
|
336
336
|
]
|
|
337
337
|
}
|
|
338
338
|
);
|
|
339
|
-
const authColumn = (variant, identityAlways = false) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex min-h-
|
|
339
|
+
const authColumn = (variant, identityAlways = false) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex min-h-[var(--login-min-h,100svh)] flex-col bg-linear-to-b from-primary/5 via-background to-background dark:from-primary/10", children: [
|
|
340
340
|
brandIdentity ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: cn("p-6", !identityAlways && "md:hidden"), children: brandIdentity }) : null,
|
|
341
341
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex flex-1 items-center justify-center p-6", children: authBox(variant) }),
|
|
342
342
|
footerBar
|
|
@@ -367,7 +367,7 @@ function Login({
|
|
|
367
367
|
brandVisual(),
|
|
368
368
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {})
|
|
369
369
|
] });
|
|
370
|
-
const backdropAuthColumn = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "relative flex min-h-
|
|
370
|
+
const backdropAuthColumn = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "relative flex min-h-[var(--login-min-h,100svh)] flex-col", children: [
|
|
371
371
|
brandIdentity ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "p-6 md:hidden", children: brandIdentity }) : null,
|
|
372
372
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex flex-1 items-center justify-center p-6", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components2.Card, { className: "w-full max-w-[400px] p-2 shadow-xl md:p-4", children: authContent }) }),
|
|
373
373
|
footerBar
|
|
@@ -379,7 +379,7 @@ function Login({
|
|
|
379
379
|
"data-slot": "login",
|
|
380
380
|
"data-layout": layout,
|
|
381
381
|
className: cn(
|
|
382
|
-
"relative flex min-h-
|
|
382
|
+
"relative flex min-h-[var(--login-min-h,100svh)] w-full flex-col overflow-hidden bg-background bg-linear-to-b from-primary/10 via-background to-background dark:from-primary/15",
|
|
383
383
|
className
|
|
384
384
|
),
|
|
385
385
|
style,
|
|
@@ -402,7 +402,7 @@ function Login({
|
|
|
402
402
|
"data-layout": layout,
|
|
403
403
|
"data-brand-side": brandSide,
|
|
404
404
|
className: cn(
|
|
405
|
-
"relative flex min-h-
|
|
405
|
+
"relative flex min-h-[var(--login-min-h,100svh)] w-full flex-col overflow-hidden bg-background p-6 md:p-10",
|
|
406
406
|
className
|
|
407
407
|
),
|
|
408
408
|
style,
|
|
@@ -428,7 +428,7 @@ function Login({
|
|
|
428
428
|
"data-layout": layout,
|
|
429
429
|
"data-brand-side": brandSide,
|
|
430
430
|
className: cn(
|
|
431
|
-
"relative flex min-h-
|
|
431
|
+
"relative flex min-h-[var(--login-min-h,100svh)] w-full flex-col overflow-hidden bg-background p-6 md:p-10",
|
|
432
432
|
className
|
|
433
433
|
),
|
|
434
434
|
style,
|
|
@@ -454,7 +454,7 @@ function Login({
|
|
|
454
454
|
"data-layout": layout,
|
|
455
455
|
"data-brand-side": brandSide,
|
|
456
456
|
className: cn(
|
|
457
|
-
"relative grid min-h-
|
|
457
|
+
"relative grid min-h-[var(--login-min-h,100svh)] w-full overflow-hidden bg-linear-to-br from-primary/20 via-accent to-primary/10 md:grid-cols-2 dark:from-primary/25 dark:to-primary/15",
|
|
458
458
|
className
|
|
459
459
|
),
|
|
460
460
|
style,
|
|
@@ -483,7 +483,7 @@ function Login({
|
|
|
483
483
|
"data-layout": layout,
|
|
484
484
|
"data-brand-side": brandSide,
|
|
485
485
|
className: cn(
|
|
486
|
-
"grid min-h-
|
|
486
|
+
"grid min-h-[var(--login-min-h,100svh)] w-full bg-background md:[grid-template-columns:var(--login-grid)]",
|
|
487
487
|
className
|
|
488
488
|
),
|
|
489
489
|
style: rootStyle,
|
package/dist/index.d.cts
CHANGED
|
@@ -79,7 +79,11 @@ interface LoginProps {
|
|
|
79
79
|
children?: ReactNode;
|
|
80
80
|
/** 通用:根节点 class(与内置样式合并) */
|
|
81
81
|
className?: string;
|
|
82
|
-
/**
|
|
82
|
+
/**
|
|
83
|
+
* 通用:根节点内联样式。
|
|
84
|
+
* 最小高度默认撑满视口(100svh);嵌入定高容器(如预览框)时经 CSS 变量
|
|
85
|
+
* `--login-min-h` 覆盖(如 `100%`),变量继承到内部分栏列
|
|
86
|
+
*/
|
|
83
87
|
style?: CSSProperties;
|
|
84
88
|
/** 校验通过后触发,参数为 { username, password };登录请求与跳转由 DSL 编排 */
|
|
85
89
|
onSubmit?: (values: Record<string, unknown>) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -79,7 +79,11 @@ interface LoginProps {
|
|
|
79
79
|
children?: ReactNode;
|
|
80
80
|
/** 通用:根节点 class(与内置样式合并) */
|
|
81
81
|
className?: string;
|
|
82
|
-
/**
|
|
82
|
+
/**
|
|
83
|
+
* 通用:根节点内联样式。
|
|
84
|
+
* 最小高度默认撑满视口(100svh);嵌入定高容器(如预览框)时经 CSS 变量
|
|
85
|
+
* `--login-min-h` 覆盖(如 `100%`),变量继承到内部分栏列
|
|
86
|
+
*/
|
|
83
87
|
style?: CSSProperties;
|
|
84
88
|
/** 校验通过后触发,参数为 { username, password };登录请求与跳转由 DSL 编排 */
|
|
85
89
|
onSubmit?: (values: Record<string, unknown>) => void;
|
package/dist/index.js
CHANGED
|
@@ -290,7 +290,7 @@ function Login({
|
|
|
290
290
|
]
|
|
291
291
|
}
|
|
292
292
|
);
|
|
293
|
-
const authColumn = (variant, identityAlways = false) => /* @__PURE__ */ jsxs("div", { className: "flex min-h-
|
|
293
|
+
const authColumn = (variant, identityAlways = false) => /* @__PURE__ */ jsxs("div", { className: "flex min-h-[var(--login-min-h,100svh)] flex-col bg-linear-to-b from-primary/5 via-background to-background dark:from-primary/10", children: [
|
|
294
294
|
brandIdentity ? /* @__PURE__ */ jsx("div", { className: cn("p-6", !identityAlways && "md:hidden"), children: brandIdentity }) : null,
|
|
295
295
|
/* @__PURE__ */ jsx("div", { className: "flex flex-1 items-center justify-center p-6", children: authBox(variant) }),
|
|
296
296
|
footerBar
|
|
@@ -321,7 +321,7 @@ function Login({
|
|
|
321
321
|
brandVisual(),
|
|
322
322
|
/* @__PURE__ */ jsx("div", {})
|
|
323
323
|
] });
|
|
324
|
-
const backdropAuthColumn = /* @__PURE__ */ jsxs("div", { className: "relative flex min-h-
|
|
324
|
+
const backdropAuthColumn = /* @__PURE__ */ jsxs("div", { className: "relative flex min-h-[var(--login-min-h,100svh)] flex-col", children: [
|
|
325
325
|
brandIdentity ? /* @__PURE__ */ jsx("div", { className: "p-6 md:hidden", children: brandIdentity }) : null,
|
|
326
326
|
/* @__PURE__ */ jsx("div", { className: "flex flex-1 items-center justify-center p-6", children: /* @__PURE__ */ jsx(Card, { className: "w-full max-w-[400px] p-2 shadow-xl md:p-4", children: authContent }) }),
|
|
327
327
|
footerBar
|
|
@@ -333,7 +333,7 @@ function Login({
|
|
|
333
333
|
"data-slot": "login",
|
|
334
334
|
"data-layout": layout,
|
|
335
335
|
className: cn(
|
|
336
|
-
"relative flex min-h-
|
|
336
|
+
"relative flex min-h-[var(--login-min-h,100svh)] w-full flex-col overflow-hidden bg-background bg-linear-to-b from-primary/10 via-background to-background dark:from-primary/15",
|
|
337
337
|
className
|
|
338
338
|
),
|
|
339
339
|
style,
|
|
@@ -356,7 +356,7 @@ function Login({
|
|
|
356
356
|
"data-layout": layout,
|
|
357
357
|
"data-brand-side": brandSide,
|
|
358
358
|
className: cn(
|
|
359
|
-
"relative flex min-h-
|
|
359
|
+
"relative flex min-h-[var(--login-min-h,100svh)] w-full flex-col overflow-hidden bg-background p-6 md:p-10",
|
|
360
360
|
className
|
|
361
361
|
),
|
|
362
362
|
style,
|
|
@@ -382,7 +382,7 @@ function Login({
|
|
|
382
382
|
"data-layout": layout,
|
|
383
383
|
"data-brand-side": brandSide,
|
|
384
384
|
className: cn(
|
|
385
|
-
"relative flex min-h-
|
|
385
|
+
"relative flex min-h-[var(--login-min-h,100svh)] w-full flex-col overflow-hidden bg-background p-6 md:p-10",
|
|
386
386
|
className
|
|
387
387
|
),
|
|
388
388
|
style,
|
|
@@ -408,7 +408,7 @@ function Login({
|
|
|
408
408
|
"data-layout": layout,
|
|
409
409
|
"data-brand-side": brandSide,
|
|
410
410
|
className: cn(
|
|
411
|
-
"relative grid min-h-
|
|
411
|
+
"relative grid min-h-[var(--login-min-h,100svh)] w-full overflow-hidden bg-linear-to-br from-primary/20 via-accent to-primary/10 md:grid-cols-2 dark:from-primary/25 dark:to-primary/15",
|
|
412
412
|
className
|
|
413
413
|
),
|
|
414
414
|
style,
|
|
@@ -437,7 +437,7 @@ function Login({
|
|
|
437
437
|
"data-layout": layout,
|
|
438
438
|
"data-brand-side": brandSide,
|
|
439
439
|
className: cn(
|
|
440
|
-
"grid min-h-
|
|
440
|
+
"grid min-h-[var(--login-min-h,100svh)] w-full bg-background md:[grid-template-columns:var(--login-grid)]",
|
|
441
441
|
className
|
|
442
442
|
),
|
|
443
443
|
style: rootStyle,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pactor-app/blocks",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.47.0",
|
|
4
4
|
"description": "Pactor blocks: composite block components built from @pactor-app/ui primitives (Login / EntityCard / CardList / RecordingPage / SiteFooter / rule & expression editors) with block component registry for the Renderer",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pactor",
|
|
@@ -35,7 +35,9 @@
|
|
|
35
35
|
},
|
|
36
36
|
"./styles.css": "./styles.css"
|
|
37
37
|
},
|
|
38
|
-
"sideEffects":
|
|
38
|
+
"sideEffects": [
|
|
39
|
+
"./styles.css"
|
|
40
|
+
],
|
|
39
41
|
"engines": {
|
|
40
42
|
"node": ">=18"
|
|
41
43
|
},
|
|
@@ -51,9 +53,9 @@
|
|
|
51
53
|
"clsx": "^2.1.1",
|
|
52
54
|
"lucide-react": "^1.34.0",
|
|
53
55
|
"tailwind-merge": "^3.6.0",
|
|
54
|
-
"@pactor-app/runtime": "1.
|
|
55
|
-
"@pactor-app/ui": "1.
|
|
56
|
-
"@pactor-app/core": "1.
|
|
56
|
+
"@pactor-app/runtime": "1.47.0",
|
|
57
|
+
"@pactor-app/ui": "1.47.0",
|
|
58
|
+
"@pactor-app/core": "1.47.0"
|
|
57
59
|
},
|
|
58
60
|
"peerDependencies": {
|
|
59
61
|
"react": ">=18",
|
package/styles.css
CHANGED
|
@@ -259,8 +259,8 @@
|
|
|
259
259
|
.min-h-10 {
|
|
260
260
|
min-height: calc(var(--spacing) * 10);
|
|
261
261
|
}
|
|
262
|
-
.min-h-
|
|
263
|
-
min-height: 100svh;
|
|
262
|
+
.min-h-\[var\(--login-min-h\,100svh\)\] {
|
|
263
|
+
min-height: var(--login-min-h,100svh);
|
|
264
264
|
}
|
|
265
265
|
.w-\(--anchor-width\) {
|
|
266
266
|
width: var(--anchor-width);
|