@pactor-app/ui 1.11.0 → 1.13.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-VM4FESQB.js → chunk-AUSWAD26.js} +79 -79
- package/dist/{chunk-HW6M3BEF.js → chunk-CFUWF54N.js} +42 -8
- package/dist/{chunk-PECP7DJB.js → chunk-GQE62HDV.js} +24 -3
- package/dist/{chunk-NVORKHWX.js → chunk-NQQAPB7Q.js} +6 -4
- package/dist/{chunk-TAJXMOEX.js → chunk-V2J6FHWX.js} +2 -2
- package/dist/components/index.cjs +509 -450
- package/dist/components/index.d.cts +22 -6
- package/dist/components/index.d.ts +22 -6
- package/dist/components/index.js +4 -4
- package/dist/index.cjs +512 -453
- package/dist/index.js +5 -5
- package/dist/layout/index.cjs +23 -2
- package/dist/layout/index.js +3 -3
- package/dist/ui/index.cjs +5 -3
- package/dist/ui/index.js +2 -2
- package/package.json +5 -5
- package/styles.css +6 -0
package/dist/index.js
CHANGED
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
createComponentRegistry,
|
|
72
72
|
registerBuiltinComponents,
|
|
73
73
|
useFormContext
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-CFUWF54N.js";
|
|
75
75
|
import {
|
|
76
76
|
InteractionProvider,
|
|
77
77
|
OVERLAY_CANCEL_PAYLOAD,
|
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
findMenuChain,
|
|
92
92
|
registerBuiltinLayouts,
|
|
93
93
|
resolveLayout
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-V2J6FHWX.js";
|
|
95
95
|
import {
|
|
96
96
|
ICONS,
|
|
97
97
|
Icon,
|
|
@@ -100,10 +100,10 @@ import {
|
|
|
100
100
|
Sidebar,
|
|
101
101
|
normalizeIconName,
|
|
102
102
|
useSidebarDrawer
|
|
103
|
-
} from "./chunk-
|
|
104
|
-
import "./chunk-
|
|
103
|
+
} from "./chunk-GQE62HDV.js";
|
|
104
|
+
import "./chunk-NQQAPB7Q.js";
|
|
105
105
|
import "./chunk-XUHJ5YSG.js";
|
|
106
|
-
import "./chunk-
|
|
106
|
+
import "./chunk-AUSWAD26.js";
|
|
107
107
|
import "./chunk-WKJUCGV4.js";
|
|
108
108
|
export {
|
|
109
109
|
Accordion,
|
package/dist/layout/index.cjs
CHANGED
|
@@ -325,7 +325,28 @@ var ICONS = {
|
|
|
325
325
|
"rotate-ccw": import_lucide_react2.RotateCcw,
|
|
326
326
|
quote: import_lucide_react2.Quote,
|
|
327
327
|
chat: import_lucide_react2.MessageSquare,
|
|
328
|
-
brain: import_lucide_react2.Brain
|
|
328
|
+
brain: import_lucide_react2.Brain,
|
|
329
|
+
// lucide 规范名别名(kebab-case 原名直通;上方短别名保留兼容)——
|
|
330
|
+
// 白名单文档承诺 kebab-case 键,缺别名时规范名(如 trash-2)会落入未知占位
|
|
331
|
+
"trash-2": import_lucide_react2.Trash2,
|
|
332
|
+
"share-2": import_lucide_react2.Share2,
|
|
333
|
+
"building-2": import_lucide_react2.Building2,
|
|
334
|
+
house: import_lucide_react2.House,
|
|
335
|
+
"triangle-alert": import_lucide_react2.TriangleAlert,
|
|
336
|
+
"circle-alert": import_lucide_react2.CircleAlert,
|
|
337
|
+
"circle-check": import_lucide_react2.CircleCheck,
|
|
338
|
+
"circle-x": import_lucide_react2.CircleX,
|
|
339
|
+
"circle-question-mark": import_lucide_react2.CircleQuestionMark,
|
|
340
|
+
"square-pen": import_lucide_react2.SquarePen,
|
|
341
|
+
"refresh-ccw": import_lucide_react2.RefreshCcw,
|
|
342
|
+
"chart-column": import_lucide_react2.ChartColumn,
|
|
343
|
+
"layout-grid": import_lucide_react2.LayoutGrid,
|
|
344
|
+
funnel: import_lucide_react2.Funnel,
|
|
345
|
+
"loader-circle": import_lucide_react2.LoaderCircle,
|
|
346
|
+
ellipsis: import_lucide_react2.Ellipsis,
|
|
347
|
+
"ellipsis-vertical": import_lucide_react2.EllipsisVertical,
|
|
348
|
+
"message-circle": import_lucide_react2.MessageCircle,
|
|
349
|
+
"lock-open": import_lucide_react2.LockOpen
|
|
329
350
|
};
|
|
330
351
|
function normalizeIconName(name) {
|
|
331
352
|
return name.replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/[_\s]+/g, "-").toLowerCase();
|
|
@@ -355,7 +376,7 @@ function Icon({
|
|
|
355
376
|
size: px,
|
|
356
377
|
color,
|
|
357
378
|
strokeWidth,
|
|
358
|
-
className: cn("shrink-0
|
|
379
|
+
className: cn("shrink-0", className),
|
|
359
380
|
style,
|
|
360
381
|
"aria-hidden": "true"
|
|
361
382
|
}
|
package/dist/layout/index.js
CHANGED
|
@@ -9,9 +9,9 @@ import {
|
|
|
9
9
|
findMenuChain,
|
|
10
10
|
registerBuiltinLayouts,
|
|
11
11
|
resolveLayout
|
|
12
|
-
} from "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
12
|
+
} from "../chunk-V2J6FHWX.js";
|
|
13
|
+
import "../chunk-GQE62HDV.js";
|
|
14
|
+
import "../chunk-AUSWAD26.js";
|
|
15
15
|
import "../chunk-WKJUCGV4.js";
|
|
16
16
|
export {
|
|
17
17
|
AdminLayout,
|
package/dist/ui/index.cjs
CHANGED
|
@@ -4591,7 +4591,8 @@ var tabsListVariants = (0, import_class_variance_authority9.cva)(
|
|
|
4591
4591
|
variants: {
|
|
4592
4592
|
variant: {
|
|
4593
4593
|
default: "h-9 rounded-lg bg-muted p-[3px]",
|
|
4594
|
-
line
|
|
4594
|
+
// line:页签栏通栏(下划线轨道占满容器宽),触发器自然宽度靠左排列
|
|
4595
|
+
line: "h-auto w-full justify-start gap-1 rounded-none border-b border-border bg-transparent p-0"
|
|
4595
4596
|
}
|
|
4596
4597
|
},
|
|
4597
4598
|
defaultVariants: {
|
|
@@ -4627,8 +4628,9 @@ function TabsTrigger({
|
|
|
4627
4628
|
// default 变体:激活态胶囊(边框 + 卡片底 + 阴影)
|
|
4628
4629
|
"group-data-[variant=default]/tabs-list:data-active:border-border group-data-[variant=default]/tabs-list:data-active:bg-card group-data-[variant=default]/tabs-list:data-active:shadow-sm",
|
|
4629
4630
|
// line 变体:下划线指示——弱化未激活文字,激活态底部 2px 主色线
|
|
4630
|
-
//(叠在 List
|
|
4631
|
-
|
|
4631
|
+
//(叠在 List 的底边轨道上),无底色/圆角/阴影;通栏 List 下取消
|
|
4632
|
+
// flex-1 拉伸,触发器保持自然宽度
|
|
4633
|
+
"group-data-[variant=line]/tabs-list:-mb-px group-data-[variant=line]/tabs-list:h-9 group-data-[variant=line]/tabs-list:flex-none group-data-[variant=line]/tabs-list:rounded-none group-data-[variant=line]/tabs-list:border-x-0 group-data-[variant=line]/tabs-list:border-t-0 group-data-[variant=line]/tabs-list:border-b-2 group-data-[variant=line]/tabs-list:py-1.5 group-data-[variant=line]/tabs-list:text-muted-foreground group-data-[variant=line]/tabs-list:data-active:border-b-primary group-data-[variant=line]/tabs-list:data-active:text-foreground",
|
|
4632
4634
|
className
|
|
4633
4635
|
),
|
|
4634
4636
|
...props
|
package/dist/ui/index.js
CHANGED
|
@@ -160,7 +160,7 @@ import {
|
|
|
160
160
|
toggleVariants,
|
|
161
161
|
typographyVariants,
|
|
162
162
|
useCarousel
|
|
163
|
-
} from "../chunk-
|
|
163
|
+
} from "../chunk-NQQAPB7Q.js";
|
|
164
164
|
import {
|
|
165
165
|
Dialog,
|
|
166
166
|
DialogClose,
|
|
@@ -239,7 +239,7 @@ import {
|
|
|
239
239
|
TooltipProvider,
|
|
240
240
|
TooltipTrigger,
|
|
241
241
|
useSidebar
|
|
242
|
-
} from "../chunk-
|
|
242
|
+
} from "../chunk-AUSWAD26.js";
|
|
243
243
|
import {
|
|
244
244
|
Button,
|
|
245
245
|
buttonVariants,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pactor-app/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.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",
|
|
@@ -105,10 +105,10 @@
|
|
|
105
105
|
"recharts": "^3.10.1",
|
|
106
106
|
"tailwind-merge": "^3.6.0",
|
|
107
107
|
"vaul": "^1.1.2",
|
|
108
|
-
"@pactor-app/core": "1.
|
|
109
|
-
"@pactor-app/
|
|
110
|
-
"@pactor-app/
|
|
111
|
-
"@pactor-app/
|
|
108
|
+
"@pactor-app/core": "1.13.0",
|
|
109
|
+
"@pactor-app/router": "1.13.0",
|
|
110
|
+
"@pactor-app/runtime": "1.13.0",
|
|
111
|
+
"@pactor-app/permission": "1.13.0"
|
|
112
112
|
},
|
|
113
113
|
"peerDependencies": {
|
|
114
114
|
"react": ">=18",
|
package/styles.css
CHANGED
|
@@ -740,6 +740,9 @@
|
|
|
740
740
|
.flex-1 {
|
|
741
741
|
flex: 1;
|
|
742
742
|
}
|
|
743
|
+
.flex-none {
|
|
744
|
+
flex: none;
|
|
745
|
+
}
|
|
743
746
|
.shrink-0 {
|
|
744
747
|
flex-shrink: 0;
|
|
745
748
|
}
|
|
@@ -1894,6 +1897,9 @@
|
|
|
1894
1897
|
.group-data-\[variant\=line\]\/tabs-list\:h-9:is(:where(.group\/tabs-list)[data-variant="line"] *) {
|
|
1895
1898
|
height: calc(var(--spacing) * 9);
|
|
1896
1899
|
}
|
|
1900
|
+
.group-data-\[variant\=line\]\/tabs-list\:flex-none:is(:where(.group\/tabs-list)[data-variant="line"] *) {
|
|
1901
|
+
flex: none;
|
|
1902
|
+
}
|
|
1897
1903
|
.group-data-\[variant\=line\]\/tabs-list\:rounded-none:is(:where(.group\/tabs-list)[data-variant="line"] *) {
|
|
1898
1904
|
border-radius: 0;
|
|
1899
1905
|
}
|