@pactor-app/ui 1.14.0 → 1.15.1

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.js CHANGED
@@ -71,7 +71,7 @@ import {
71
71
  createComponentRegistry,
72
72
  registerBuiltinComponents,
73
73
  useFormContext
74
- } from "./chunk-L77EOXU3.js";
74
+ } from "./chunk-LFV72DC2.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-V2J6FHWX.js";
94
+ } from "./chunk-VNKSGMTT.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-GQE62HDV.js";
104
- import "./chunk-NQQAPB7Q.js";
103
+ } from "./chunk-EDKF6SKZ.js";
104
+ import "./chunk-S6AHT3PD.js";
105
105
  import "./chunk-XUHJ5YSG.js";
106
- import "./chunk-AUSWAD26.js";
106
+ import "./chunk-O7UAPVPB.js";
107
107
  import "./chunk-WKJUCGV4.js";
108
108
  export {
109
109
  Accordion,
@@ -1186,9 +1186,7 @@ function SheetDescription({
1186
1186
  var import_jsx_runtime9 = require("react/jsx-runtime");
1187
1187
  var SIDEBAR_COOKIE_NAME = "sidebar_state";
1188
1188
  var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
1189
- var SIDEBAR_WIDTH = "16rem";
1190
1189
  var SIDEBAR_WIDTH_MOBILE = "18rem";
1191
- var SIDEBAR_WIDTH_ICON = "3rem";
1192
1190
  var SIDEBAR_KEYBOARD_SHORTCUT = "b";
1193
1191
  var SidebarContext = React.createContext(null);
1194
1192
  function useSidebar() {
@@ -1253,11 +1251,7 @@ function SidebarProvider({
1253
1251
  "div",
1254
1252
  {
1255
1253
  "data-slot": "sidebar-wrapper",
1256
- style: {
1257
- "--sidebar-width": SIDEBAR_WIDTH,
1258
- "--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
1259
- ...style
1260
- },
1254
+ style,
1261
1255
  className: cn(
1262
1256
  "group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",
1263
1257
  className
@@ -1341,7 +1335,12 @@ function SidebarRoot({
1341
1335
  className: cn(
1342
1336
  "fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
1343
1337
  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)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",
1338
+ variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : (
1339
+ // 边框色显式声明:不能只给宽度——宿主引入 Tailwind 时其
1340
+ // preflight(同为 base 层且后加载)会把默认 border-color
1341
+ // 重置为 currentColor,宽度型边框会脱离皮肤令牌
1342
+ "border-sidebar-border group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l"
1343
+ ),
1345
1344
  className
1346
1345
  ),
1347
1346
  ...props,
@@ -9,9 +9,9 @@ import {
9
9
  findMenuChain,
10
10
  registerBuiltinLayouts,
11
11
  resolveLayout
12
- } from "../chunk-V2J6FHWX.js";
13
- import "../chunk-GQE62HDV.js";
14
- import "../chunk-AUSWAD26.js";
12
+ } from "../chunk-VNKSGMTT.js";
13
+ import "../chunk-EDKF6SKZ.js";
14
+ import "../chunk-O7UAPVPB.js";
15
15
  import "../chunk-WKJUCGV4.js";
16
16
  export {
17
17
  AdminLayout,
package/dist/ui/index.cjs CHANGED
@@ -3717,9 +3717,7 @@ function Skeleton({ className, ...props }) {
3717
3717
  var import_jsx_runtime48 = require("react/jsx-runtime");
3718
3718
  var SIDEBAR_COOKIE_NAME = "sidebar_state";
3719
3719
  var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
3720
- var SIDEBAR_WIDTH = "16rem";
3721
3720
  var SIDEBAR_WIDTH_MOBILE = "18rem";
3722
- var SIDEBAR_WIDTH_ICON = "3rem";
3723
3721
  var SIDEBAR_KEYBOARD_SHORTCUT = "b";
3724
3722
  var SidebarContext = React7.createContext(null);
3725
3723
  function useSidebar() {
@@ -3784,11 +3782,7 @@ function SidebarProvider({
3784
3782
  "div",
3785
3783
  {
3786
3784
  "data-slot": "sidebar-wrapper",
3787
- style: {
3788
- "--sidebar-width": SIDEBAR_WIDTH,
3789
- "--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
3790
- ...style
3791
- },
3785
+ style,
3792
3786
  className: cn(
3793
3787
  "group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",
3794
3788
  className
@@ -3872,7 +3866,12 @@ function SidebarRoot({
3872
3866
  className: cn(
3873
3867
  "fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
3874
3868
  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)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",
3869
+ variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : (
3870
+ // 边框色显式声明:不能只给宽度——宿主引入 Tailwind 时其
3871
+ // preflight(同为 base 层且后加载)会把默认 border-color
3872
+ // 重置为 currentColor,宽度型边框会脱离皮肤令牌
3873
+ "border-sidebar-border group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l"
3874
+ ),
3876
3875
  className
3877
3876
  ),
3878
3877
  ...props,
package/dist/ui/index.js CHANGED
@@ -160,7 +160,7 @@ import {
160
160
  toggleVariants,
161
161
  typographyVariants,
162
162
  useCarousel
163
- } from "../chunk-NQQAPB7Q.js";
163
+ } from "../chunk-S6AHT3PD.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-AUSWAD26.js";
242
+ } from "../chunk-O7UAPVPB.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.14.0",
3
+ "version": "1.15.1",
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.14.0",
109
- "@pactor-app/runtime": "1.14.0",
110
- "@pactor-app/router": "1.14.0",
111
- "@pactor-app/permission": "1.14.0"
108
+ "@pactor-app/core": "1.15.1",
109
+ "@pactor-app/permission": "1.15.1",
110
+ "@pactor-app/runtime": "1.15.1",
111
+ "@pactor-app/router": "1.15.1"
112
112
  },
113
113
  "peerDependencies": {
114
114
  "react": ">=18",
package/styles.css CHANGED
@@ -3259,6 +3259,8 @@
3259
3259
  --sidebar-accent-foreground: var(--accent-foreground);
3260
3260
  --sidebar-border: var(--border);
3261
3261
  --sidebar-ring: var(--ring);
3262
+ --sidebar-width: 16rem;
3263
+ --sidebar-width-icon: 3rem;
3262
3264
  --font-sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
3263
3265
  'Helvetica Neue', Arial, sans-serif;
3264
3266
  --background-image: none;
@@ -3338,7 +3340,7 @@
3338
3340
  );
3339
3341
  }
3340
3342
  @media (prefers-color-scheme: dark) {
3341
- :root:not([data-pactor-theme='light']):not([data-pactor-theme='dark']) {
3343
+ :root:where(:not([data-pactor-theme='light']):not([data-pactor-theme='dark'])) {
3342
3344
  color-scheme: dark;
3343
3345
  --background: oklch(0.145 0 0);
3344
3346
  --foreground: oklch(0.985 0 0);