@pactor-app/ui 1.14.0 → 1.15.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-GQE62HDV.js → chunk-5PTCPU2F.js} +1 -1
- package/dist/{chunk-L77EOXU3.js → chunk-E3BFTXSJ.js} +48 -11
- package/dist/{chunk-AUSWAD26.js → chunk-HGVZUEZG.js} +6 -1
- package/dist/{chunk-V2J6FHWX.js → chunk-PQA6RJ52.js} +2 -2
- package/dist/{chunk-NQQAPB7Q.js → chunk-VFPLY2GI.js} +1 -1
- package/dist/components/index.cjs +86 -44
- package/dist/components/index.d.cts +12 -6
- package/dist/components/index.d.ts +12 -6
- package/dist/components/index.js +4 -4
- package/dist/index.cjs +120 -78
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -5
- package/dist/layout/index.cjs +6 -1
- package/dist/layout/index.js +3 -3
- package/dist/ui/index.cjs +6 -1
- package/dist/ui/index.js +2 -2
- package/package.json +5 -5
- package/styles.css +1 -1
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-E3BFTXSJ.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-PQA6RJ52.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-5PTCPU2F.js";
|
|
104
|
+
import "./chunk-VFPLY2GI.js";
|
|
105
105
|
import "./chunk-XUHJ5YSG.js";
|
|
106
|
-
import "./chunk-
|
|
106
|
+
import "./chunk-HGVZUEZG.js";
|
|
107
107
|
import "./chunk-WKJUCGV4.js";
|
|
108
108
|
export {
|
|
109
109
|
Accordion,
|
package/dist/layout/index.cjs
CHANGED
|
@@ -1341,7 +1341,12 @@ function SidebarRoot({
|
|
|
1341
1341
|
className: cn(
|
|
1342
1342
|
"fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
|
|
1343
1343
|
side === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
|
|
1344
|
-
variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" :
|
|
1344
|
+
variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : (
|
|
1345
|
+
// 边框色显式声明:不能只给宽度——宿主引入 Tailwind 时其
|
|
1346
|
+
// preflight(同为 base 层且后加载)会把默认 border-color
|
|
1347
|
+
// 重置为 currentColor,宽度型边框会脱离皮肤令牌
|
|
1348
|
+
"border-sidebar-border group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l"
|
|
1349
|
+
),
|
|
1345
1350
|
className
|
|
1346
1351
|
),
|
|
1347
1352
|
...props,
|
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-PQA6RJ52.js";
|
|
13
|
+
import "../chunk-5PTCPU2F.js";
|
|
14
|
+
import "../chunk-HGVZUEZG.js";
|
|
15
15
|
import "../chunk-WKJUCGV4.js";
|
|
16
16
|
export {
|
|
17
17
|
AdminLayout,
|
package/dist/ui/index.cjs
CHANGED
|
@@ -3872,7 +3872,12 @@ function SidebarRoot({
|
|
|
3872
3872
|
className: cn(
|
|
3873
3873
|
"fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
|
|
3874
3874
|
side === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
|
|
3875
|
-
variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" :
|
|
3875
|
+
variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : (
|
|
3876
|
+
// 边框色显式声明:不能只给宽度——宿主引入 Tailwind 时其
|
|
3877
|
+
// preflight(同为 base 层且后加载)会把默认 border-color
|
|
3878
|
+
// 重置为 currentColor,宽度型边框会脱离皮肤令牌
|
|
3879
|
+
"border-sidebar-border group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l"
|
|
3880
|
+
),
|
|
3876
3881
|
className
|
|
3877
3882
|
),
|
|
3878
3883
|
...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-VFPLY2GI.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-HGVZUEZG.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.15.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/runtime": "1.
|
|
110
|
-
"@pactor-app/
|
|
111
|
-
"@pactor-app/
|
|
108
|
+
"@pactor-app/core": "1.15.0",
|
|
109
|
+
"@pactor-app/runtime": "1.15.0",
|
|
110
|
+
"@pactor-app/permission": "1.15.0",
|
|
111
|
+
"@pactor-app/router": "1.15.0"
|
|
112
112
|
},
|
|
113
113
|
"peerDependencies": {
|
|
114
114
|
"react": ">=18",
|
package/styles.css
CHANGED
|
@@ -3338,7 +3338,7 @@
|
|
|
3338
3338
|
);
|
|
3339
3339
|
}
|
|
3340
3340
|
@media (prefers-color-scheme: dark) {
|
|
3341
|
-
:root:not([data-pactor-theme='light']):not([data-pactor-theme='dark']) {
|
|
3341
|
+
:root:where(:not([data-pactor-theme='light']):not([data-pactor-theme='dark'])) {
|
|
3342
3342
|
color-scheme: dark;
|
|
3343
3343
|
--background: oklch(0.145 0 0);
|
|
3344
3344
|
--foreground: oklch(0.985 0 0);
|