@pactor-app/ui 1.30.0 → 1.32.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/{chunk-B5GFF7DZ.js → chunk-R5KHWCWB.js} +6 -6
- package/dist/{chunk-JWZHJEUS.js → chunk-WYISCB4V.js} +1 -1
- package/dist/components/index.cjs +6 -6
- package/dist/components/index.js +2 -2
- package/dist/index.cjs +6 -6
- package/dist/index.js +2 -2
- package/dist/ui/index.cjs +1 -1
- package/dist/ui/index.js +1 -1
- package/package.json +6 -6
- package/styles.css +6 -0
|
@@ -141,7 +141,7 @@ import {
|
|
|
141
141
|
Typography,
|
|
142
142
|
navigationMenuTriggerStyle,
|
|
143
143
|
toast
|
|
144
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-WYISCB4V.js";
|
|
145
145
|
import {
|
|
146
146
|
Dialog,
|
|
147
147
|
DialogContent,
|
|
@@ -595,11 +595,11 @@ function useFormContext() {
|
|
|
595
595
|
function formItemClass(layout) {
|
|
596
596
|
switch (layout) {
|
|
597
597
|
case "horizontal":
|
|
598
|
-
return "mb-
|
|
598
|
+
return "mb-2 flex min-h-9 items-center gap-2";
|
|
599
599
|
case "inline":
|
|
600
|
-
return "flex items-center gap-2";
|
|
600
|
+
return "flex min-h-9 items-center gap-2";
|
|
601
601
|
default:
|
|
602
|
-
return "mb-
|
|
602
|
+
return "mb-2 flex min-h-9 flex-col justify-center gap-1.5";
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
605
|
|
|
@@ -2672,7 +2672,7 @@ function Field2({
|
|
|
2672
2672
|
errorStyle
|
|
2673
2673
|
}) {
|
|
2674
2674
|
return /* @__PURE__ */ jsxs30(Field, { className, style, children: [
|
|
2675
|
-
label || labelHint ? /* @__PURE__ */ jsxs30("div", { className: "flex w-full items-center justify-between gap-2", children: [
|
|
2675
|
+
label || labelHint ? /* @__PURE__ */ jsxs30("div", { className: "flex min-h-3.5 w-full items-center justify-between gap-2", children: [
|
|
2676
2676
|
label ? /* @__PURE__ */ jsxs30(FieldLabel, { className: labelClassName, style: labelStyle, children: [
|
|
2677
2677
|
required ? /* @__PURE__ */ jsxs30("span", { "aria-hidden": true, className: "text-destructive", children: [
|
|
2678
2678
|
"*",
|
|
@@ -2697,7 +2697,7 @@ function Field2({
|
|
|
2697
2697
|
"div",
|
|
2698
2698
|
{
|
|
2699
2699
|
"data-slot": "field-control",
|
|
2700
|
-
className: cn(
|
|
2700
|
+
className: cn(controlClassName),
|
|
2701
2701
|
style: controlStyle,
|
|
2702
2702
|
children
|
|
2703
2703
|
}
|
|
@@ -1478,11 +1478,11 @@ function useFormContext() {
|
|
|
1478
1478
|
function formItemClass(layout) {
|
|
1479
1479
|
switch (layout) {
|
|
1480
1480
|
case "horizontal":
|
|
1481
|
-
return "mb-
|
|
1481
|
+
return "mb-2 flex min-h-9 items-center gap-2";
|
|
1482
1482
|
case "inline":
|
|
1483
|
-
return "flex items-center gap-2";
|
|
1483
|
+
return "flex min-h-9 items-center gap-2";
|
|
1484
1484
|
default:
|
|
1485
|
-
return "mb-
|
|
1485
|
+
return "mb-2 flex min-h-9 flex-col justify-center gap-1.5";
|
|
1486
1486
|
}
|
|
1487
1487
|
}
|
|
1488
1488
|
|
|
@@ -4558,7 +4558,7 @@ function Field({ className, ...props }) {
|
|
|
4558
4558
|
import_field.Field.Root,
|
|
4559
4559
|
{
|
|
4560
4560
|
"data-slot": "field",
|
|
4561
|
-
className: cn("flex flex-col gap-
|
|
4561
|
+
className: cn("flex flex-col gap-2", className),
|
|
4562
4562
|
...props
|
|
4563
4563
|
}
|
|
4564
4564
|
);
|
|
@@ -4617,7 +4617,7 @@ function Field2({
|
|
|
4617
4617
|
errorStyle
|
|
4618
4618
|
}) {
|
|
4619
4619
|
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(Field, { className, style, children: [
|
|
4620
|
-
label || labelHint ? /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex w-full items-center justify-between gap-2", children: [
|
|
4620
|
+
label || labelHint ? /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex min-h-3.5 w-full items-center justify-between gap-2", children: [
|
|
4621
4621
|
label ? /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(FieldLabel, { className: labelClassName, style: labelStyle, children: [
|
|
4622
4622
|
required ? /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("span", { "aria-hidden": true, className: "text-destructive", children: [
|
|
4623
4623
|
"*",
|
|
@@ -4642,7 +4642,7 @@ function Field2({
|
|
|
4642
4642
|
"div",
|
|
4643
4643
|
{
|
|
4644
4644
|
"data-slot": "field-control",
|
|
4645
|
-
className: cn(
|
|
4645
|
+
className: cn(controlClassName),
|
|
4646
4646
|
style: controlStyle,
|
|
4647
4647
|
children
|
|
4648
4648
|
}
|
package/dist/components/index.js
CHANGED
|
@@ -154,7 +154,7 @@ import {
|
|
|
154
154
|
inferKind,
|
|
155
155
|
registerBuiltinComponents,
|
|
156
156
|
useFormContext
|
|
157
|
-
} from "../chunk-
|
|
157
|
+
} from "../chunk-R5KHWCWB.js";
|
|
158
158
|
import {
|
|
159
159
|
ICONS,
|
|
160
160
|
Icon,
|
|
@@ -164,7 +164,7 @@ import {
|
|
|
164
164
|
normalizeIconName,
|
|
165
165
|
useSidebarDrawer
|
|
166
166
|
} from "../chunk-44DAGWXZ.js";
|
|
167
|
-
import "../chunk-
|
|
167
|
+
import "../chunk-WYISCB4V.js";
|
|
168
168
|
import "../chunk-HAOAXDTW.js";
|
|
169
169
|
import "../chunk-RB7RCKAX.js";
|
|
170
170
|
import "../chunk-WKJUCGV4.js";
|
package/dist/index.cjs
CHANGED
|
@@ -1494,11 +1494,11 @@ function useFormContext() {
|
|
|
1494
1494
|
function formItemClass(layout) {
|
|
1495
1495
|
switch (layout) {
|
|
1496
1496
|
case "horizontal":
|
|
1497
|
-
return "mb-
|
|
1497
|
+
return "mb-2 flex min-h-9 items-center gap-2";
|
|
1498
1498
|
case "inline":
|
|
1499
|
-
return "flex items-center gap-2";
|
|
1499
|
+
return "flex min-h-9 items-center gap-2";
|
|
1500
1500
|
default:
|
|
1501
|
-
return "mb-
|
|
1501
|
+
return "mb-2 flex min-h-9 flex-col justify-center gap-1.5";
|
|
1502
1502
|
}
|
|
1503
1503
|
}
|
|
1504
1504
|
|
|
@@ -4597,7 +4597,7 @@ function Field({ className, ...props }) {
|
|
|
4597
4597
|
import_field.Field.Root,
|
|
4598
4598
|
{
|
|
4599
4599
|
"data-slot": "field",
|
|
4600
|
-
className: cn("flex flex-col gap-
|
|
4600
|
+
className: cn("flex flex-col gap-2", className),
|
|
4601
4601
|
...props
|
|
4602
4602
|
}
|
|
4603
4603
|
);
|
|
@@ -4656,7 +4656,7 @@ function Field2({
|
|
|
4656
4656
|
errorStyle
|
|
4657
4657
|
}) {
|
|
4658
4658
|
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(Field, { className, style, children: [
|
|
4659
|
-
label || labelHint ? /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex w-full items-center justify-between gap-2", children: [
|
|
4659
|
+
label || labelHint ? /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex min-h-3.5 w-full items-center justify-between gap-2", children: [
|
|
4660
4660
|
label ? /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(FieldLabel, { className: labelClassName, style: labelStyle, children: [
|
|
4661
4661
|
required ? /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("span", { "aria-hidden": true, className: "text-destructive", children: [
|
|
4662
4662
|
"*",
|
|
@@ -4681,7 +4681,7 @@ function Field2({
|
|
|
4681
4681
|
"div",
|
|
4682
4682
|
{
|
|
4683
4683
|
"data-slot": "field-control",
|
|
4684
|
-
className: cn(
|
|
4684
|
+
className: cn(controlClassName),
|
|
4685
4685
|
style: controlStyle,
|
|
4686
4686
|
children
|
|
4687
4687
|
}
|
package/dist/index.js
CHANGED
|
@@ -154,7 +154,7 @@ import {
|
|
|
154
154
|
inferKind,
|
|
155
155
|
registerBuiltinComponents,
|
|
156
156
|
useFormContext
|
|
157
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-R5KHWCWB.js";
|
|
158
158
|
import {
|
|
159
159
|
InteractionProvider,
|
|
160
160
|
OVERLAY_CANCEL_PAYLOAD,
|
|
@@ -184,7 +184,7 @@ import {
|
|
|
184
184
|
normalizeIconName,
|
|
185
185
|
useSidebarDrawer
|
|
186
186
|
} from "./chunk-44DAGWXZ.js";
|
|
187
|
-
import "./chunk-
|
|
187
|
+
import "./chunk-WYISCB4V.js";
|
|
188
188
|
import "./chunk-HAOAXDTW.js";
|
|
189
189
|
import "./chunk-RB7RCKAX.js";
|
|
190
190
|
import "./chunk-WKJUCGV4.js";
|
package/dist/ui/index.cjs
CHANGED
|
@@ -2934,7 +2934,7 @@ function Field({ className, ...props }) {
|
|
|
2934
2934
|
import_field.Field.Root,
|
|
2935
2935
|
{
|
|
2936
2936
|
"data-slot": "field",
|
|
2937
|
-
className: cn("flex flex-col gap-
|
|
2937
|
+
className: cn("flex flex-col gap-2", className),
|
|
2938
2938
|
...props
|
|
2939
2939
|
}
|
|
2940
2940
|
);
|
package/dist/ui/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pactor-app/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.32.0",
|
|
4
4
|
"description": "Pactor UI kit (shadcn): the single built-in UI kit — vendored shadcn/ui components (Base UI primitives + cva + tailwind-merge + lucide-react), props contracts, interaction core (OverlayManager / UiBridge) and layouts, with build-time Tailwind v4 prebuilt styles.css (zero consumer-side Tailwind config)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pactor",
|
|
@@ -107,11 +107,11 @@
|
|
|
107
107
|
"react-resizable-panels": "^4.12.3",
|
|
108
108
|
"tailwind-merge": "^3.6.0",
|
|
109
109
|
"vaul": "^1.1.2",
|
|
110
|
-
"@pactor-app/core": "1.
|
|
111
|
-
"@pactor-app/markdown": "1.
|
|
112
|
-
"@pactor-app/permission": "1.
|
|
113
|
-
"@pactor-app/router": "1.
|
|
114
|
-
"@pactor-app/runtime": "1.
|
|
110
|
+
"@pactor-app/core": "1.32.0",
|
|
111
|
+
"@pactor-app/markdown": "1.32.0",
|
|
112
|
+
"@pactor-app/permission": "1.32.0",
|
|
113
|
+
"@pactor-app/router": "1.32.0",
|
|
114
|
+
"@pactor-app/runtime": "1.32.0"
|
|
115
115
|
},
|
|
116
116
|
"peerDependencies": {
|
|
117
117
|
"react": ">=18",
|
package/styles.css
CHANGED
|
@@ -832,9 +832,15 @@
|
|
|
832
832
|
.min-h-0 {
|
|
833
833
|
min-height: 0px;
|
|
834
834
|
}
|
|
835
|
+
.min-h-3\.5 {
|
|
836
|
+
min-height: calc(var(--spacing) * 3.5);
|
|
837
|
+
}
|
|
835
838
|
.min-h-4 {
|
|
836
839
|
min-height: calc(var(--spacing) * 4);
|
|
837
840
|
}
|
|
841
|
+
.min-h-9 {
|
|
842
|
+
min-height: calc(var(--spacing) * 9);
|
|
843
|
+
}
|
|
838
844
|
.min-h-16 {
|
|
839
845
|
min-height: calc(var(--spacing) * 16);
|
|
840
846
|
}
|